donut-decomp/asm/bte/sdp_db.s

1061 lines
47 KiB
ArmAsm
Raw Normal View History

2022-10-16 16:05:58 +00:00
.include "macros.inc"
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
2022-10-16 16:31:36 +00:00
.global sdp_db_service_search
sdp_db_service_search:
2022-10-16 16:05:58 +00:00
/* 8009D5F8 00099438 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8009D5FC 0009943C 7C 08 02 A6 */ mflr r0
/* 8009D600 00099440 90 01 00 34 */ stw r0, 0x34(r1)
/* 8009D604 00099444 39 61 00 30 */ addi r11, r1, 0x30
/* 8009D608 00099448 4B F6 9D 29 */ bl lbl_80007330
2022-10-16 16:31:36 +00:00
/* 8009D60C 0009944C 3C A0 80 50 */ lis r5, sdp_cb@ha
2022-10-16 16:05:58 +00:00
/* 8009D610 00099450 2C 03 00 00 */ cmpwi r3, 0x0
2022-10-16 16:31:36 +00:00
/* 8009D614 00099454 38 A5 9C 20 */ addi r5, r5, sdp_cb@l
2022-10-16 16:05:58 +00:00
/* 8009D618 00099458 7C 9D 23 78 */ mr r29, r4
/* 8009D61C 0009945C A0 05 12 22 */ lhz r0, 0x1222(r5)
/* 8009D620 00099460 1C 00 02 98 */ mulli r0, r0, 0x298
/* 8009D624 00099464 7C 85 02 14 */ add r4, r5, r0
/* 8009D628 00099468 3B C4 12 24 */ addi r30, r4, 0x1224
/* 8009D62C 0009946C 40 82 00 0C */ bne lbl_8009D638
/* 8009D630 00099470 3B 85 12 24 */ addi r28, r5, 0x1224
/* 8009D634 00099474 48 00 00 DC */ b lbl_8009D710
.global lbl_8009D638
lbl_8009D638:
/* 8009D638 00099478 3B 83 02 98 */ addi r28, r3, 0x298
/* 8009D63C 0009947C 48 00 00 D4 */ b lbl_8009D710
.global lbl_8009D640
lbl_8009D640:
/* 8009D640 00099480 3B E0 00 00 */ li r31, 0x0
/* 8009D644 00099484 48 00 00 A0 */ b lbl_8009D6E4
.global lbl_8009D648
lbl_8009D648:
/* 8009D648 00099488 57 E0 04 3E */ clrlwi r0, r31, 16
/* 8009D64C 0009948C 3B 1C 00 0C */ addi r24, r28, 0xc
/* 8009D650 00099490 1C 00 00 12 */ mulli r0, r0, 0x12
/* 8009D654 00099494 3B 20 00 00 */ li r25, 0x0
/* 8009D658 00099498 7F 7D 02 14 */ add r27, r29, r0
/* 8009D65C 0009949C 3B 5B 00 04 */ addi r26, r27, 0x4
/* 8009D660 000994A0 48 00 00 60 */ b lbl_8009D6C0
.global lbl_8009D664
lbl_8009D664:
/* 8009D664 000994A4 88 18 00 0A */ lbz r0, 0xa(r24)
/* 8009D668 000994A8 28 00 00 03 */ cmplwi r0, 0x3
/* 8009D66C 000994AC 40 82 00 24 */ bne lbl_8009D690
/* 8009D670 000994B0 80 78 00 04 */ lwz r3, 0x4(r24)
/* 8009D674 000994B4 7F 45 D3 78 */ mr r5, r26
/* 8009D678 000994B8 80 98 00 00 */ lwz r4, 0x0(r24)
/* 8009D67C 000994BC A0 DB 00 02 */ lhz r6, 0x2(r27)
2022-10-16 16:31:36 +00:00
/* 8009D680 000994C0 48 00 44 25 */ bl sdpu_compare_uuid_arrays
2022-10-16 16:05:58 +00:00
/* 8009D684 000994C4 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8009D688 000994C8 40 82 00 48 */ bne lbl_8009D6D0
/* 8009D68C 000994CC 48 00 00 2C */ b lbl_8009D6B8
.global lbl_8009D690
lbl_8009D690:
/* 8009D690 000994D0 28 00 00 06 */ cmplwi r0, 0x6
/* 8009D694 000994D4 40 82 00 24 */ bne lbl_8009D6B8
/* 8009D698 000994D8 80 78 00 04 */ lwz r3, 0x4(r24)
/* 8009D69C 000994DC 7F 45 D3 78 */ mr r5, r26
/* 8009D6A0 000994E0 80 98 00 00 */ lwz r4, 0x0(r24)
/* 8009D6A4 000994E4 38 E0 00 00 */ li r7, 0x0
/* 8009D6A8 000994E8 A0 DB 00 02 */ lhz r6, 0x2(r27)
2022-10-16 16:31:36 +00:00
/* 8009D6AC 000994EC 48 00 00 89 */ bl find_uuid_in_seq
2022-10-16 16:05:58 +00:00
/* 8009D6B0 000994F0 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8009D6B4 000994F4 40 82 00 1C */ bne lbl_8009D6D0
.global lbl_8009D6B8
lbl_8009D6B8:
/* 8009D6B8 000994F8 3B 39 00 01 */ addi r25, r25, 0x1
/* 8009D6BC 000994FC 3B 18 00 0C */ addi r24, r24, 0xc
.global lbl_8009D6C0
lbl_8009D6C0:
/* 8009D6C0 00099500 A0 1C 00 08 */ lhz r0, 0x8(r28)
/* 8009D6C4 00099504 57 23 04 3E */ clrlwi r3, r25, 16
/* 8009D6C8 00099508 7C 03 00 40 */ cmplw r3, r0
/* 8009D6CC 0009950C 41 80 FF 98 */ blt lbl_8009D664
.global lbl_8009D6D0
lbl_8009D6D0:
/* 8009D6D0 00099510 A0 1C 00 08 */ lhz r0, 0x8(r28)
/* 8009D6D4 00099514 57 23 04 3E */ clrlwi r3, r25, 16
/* 8009D6D8 00099518 7C 03 00 40 */ cmplw r3, r0
/* 8009D6DC 0009951C 41 82 00 18 */ beq lbl_8009D6F4
/* 8009D6E0 00099520 3B FF 00 01 */ addi r31, r31, 0x1
.global lbl_8009D6E4
lbl_8009D6E4:
/* 8009D6E4 00099524 A0 1D 00 00 */ lhz r0, 0x0(r29)
/* 8009D6E8 00099528 57 E3 04 3E */ clrlwi r3, r31, 16
/* 8009D6EC 0009952C 7C 03 00 40 */ cmplw r3, r0
/* 8009D6F0 00099530 41 80 FF 58 */ blt lbl_8009D648
.global lbl_8009D6F4
lbl_8009D6F4:
/* 8009D6F4 00099534 A0 1D 00 00 */ lhz r0, 0x0(r29)
/* 8009D6F8 00099538 57 E3 04 3E */ clrlwi r3, r31, 16
/* 8009D6FC 0009953C 7C 03 00 40 */ cmplw r3, r0
/* 8009D700 00099540 40 82 00 0C */ bne lbl_8009D70C
/* 8009D704 00099544 7F 83 E3 78 */ mr r3, r28
/* 8009D708 00099548 48 00 00 14 */ b lbl_8009D71C
.global lbl_8009D70C
lbl_8009D70C:
/* 8009D70C 0009954C 3B 9C 02 98 */ addi r28, r28, 0x298
.global lbl_8009D710
lbl_8009D710:
/* 8009D710 00099550 7C 1C F0 40 */ cmplw r28, r30
/* 8009D714 00099554 41 80 FF 2C */ blt lbl_8009D640
/* 8009D718 00099558 38 60 00 00 */ li r3, 0x0
.global lbl_8009D71C
lbl_8009D71C:
/* 8009D71C 0009955C 39 61 00 30 */ addi r11, r1, 0x30
/* 8009D720 00099560 4B F6 9C 5D */ bl lbl_8000737C
/* 8009D724 00099564 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8009D728 00099568 7C 08 03 A6 */ mtlr r0
/* 8009D72C 0009956C 38 21 00 30 */ addi r1, r1, 0x30
/* 8009D730 00099570 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global find_uuid_in_seq
find_uuid_in_seq:
2022-10-16 16:05:58 +00:00
/* 8009D734 00099574 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8009D738 00099578 7C 08 02 A6 */ mflr r0
/* 8009D73C 0009957C 90 01 00 34 */ stw r0, 0x34(r1)
/* 8009D740 00099580 39 61 00 30 */ addi r11, r1, 0x30
/* 8009D744 00099584 4B F6 9B F5 */ bl lbl_80007338
/* 8009D748 00099588 2C 07 00 03 */ cmpwi r7, 0x3
/* 8009D74C 0009958C 7C 7A 1B 78 */ mr r26, r3
/* 8009D750 00099590 7C BB 2B 78 */ mr r27, r5
/* 8009D754 00099594 7C DC 33 78 */ mr r28, r6
/* 8009D758 00099598 7C FD 3B 78 */ mr r29, r7
/* 8009D75C 0009959C 7F E3 22 14 */ add r31, r3, r4
/* 8009D760 000995A0 40 81 00 88 */ ble lbl_8009D7E8
/* 8009D764 000995A4 38 60 00 00 */ li r3, 0x0
/* 8009D768 000995A8 48 00 00 8C */ b lbl_8009D7F4
/* 8009D76C 000995AC 48 00 00 7C */ b lbl_8009D7E8
.global lbl_8009D770
lbl_8009D770:
/* 8009D770 000995B0 8B DA 00 00 */ lbz r30, 0x0(r26)
/* 8009D774 000995B4 38 7A 00 01 */ addi r3, r26, 0x1
/* 8009D778 000995B8 38 A1 00 08 */ addi r5, r1, 0x8
/* 8009D77C 000995BC 7F C4 F3 78 */ mr r4, r30
2022-10-16 16:31:36 +00:00
/* 8009D780 000995C0 48 00 41 75 */ bl sdpu_get_len_from_type
2022-10-16 16:05:58 +00:00
/* 8009D784 000995C4 57 C0 EE FE */ extrwi r0, r30, 5, 24
/* 8009D788 000995C8 7C 7A 1B 78 */ mr r26, r3
/* 8009D78C 000995CC 28 00 00 03 */ cmplwi r0, 0x3
/* 8009D790 000995D0 40 82 00 24 */ bne lbl_8009D7B4
/* 8009D794 000995D4 80 81 00 08 */ lwz r4, 0x8(r1)
/* 8009D798 000995D8 7F 65 DB 78 */ mr r5, r27
/* 8009D79C 000995DC 7F 86 E3 78 */ mr r6, r28
2022-10-16 16:31:36 +00:00
/* 8009D7A0 000995E0 48 00 43 05 */ bl sdpu_compare_uuid_arrays
2022-10-16 16:05:58 +00:00
/* 8009D7A4 000995E4 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8009D7A8 000995E8 41 82 00 38 */ beq lbl_8009D7E0
/* 8009D7AC 000995EC 38 60 00 01 */ li r3, 0x1
/* 8009D7B0 000995F0 48 00 00 44 */ b lbl_8009D7F4
.global lbl_8009D7B4
lbl_8009D7B4:
/* 8009D7B4 000995F4 28 00 00 06 */ cmplwi r0, 0x6
/* 8009D7B8 000995F8 40 82 00 28 */ bne lbl_8009D7E0
/* 8009D7BC 000995FC 80 81 00 08 */ lwz r4, 0x8(r1)
/* 8009D7C0 00099600 7F 65 DB 78 */ mr r5, r27
/* 8009D7C4 00099604 7F 86 E3 78 */ mr r6, r28
/* 8009D7C8 00099608 38 FD 00 01 */ addi r7, r29, 0x1
2022-10-16 16:31:36 +00:00
/* 8009D7CC 0009960C 4B FF FF 69 */ bl find_uuid_in_seq
2022-10-16 16:05:58 +00:00
/* 8009D7D0 00099610 54 60 06 3F */ clrlwi. r0, r3, 24
/* 8009D7D4 00099614 41 82 00 0C */ beq lbl_8009D7E0
/* 8009D7D8 00099618 38 60 00 01 */ li r3, 0x1
/* 8009D7DC 0009961C 48 00 00 18 */ b lbl_8009D7F4
.global lbl_8009D7E0
lbl_8009D7E0:
/* 8009D7E0 00099620 80 01 00 08 */ lwz r0, 0x8(r1)
/* 8009D7E4 00099624 7F 5A 02 14 */ add r26, r26, r0
.global lbl_8009D7E8
lbl_8009D7E8:
/* 8009D7E8 00099628 7C 1A F8 40 */ cmplw r26, r31
/* 8009D7EC 0009962C 41 80 FF 84 */ blt lbl_8009D770
/* 8009D7F0 00099630 38 60 00 00 */ li r3, 0x0
.global lbl_8009D7F4
lbl_8009D7F4:
/* 8009D7F4 00099634 39 61 00 30 */ addi r11, r1, 0x30
/* 8009D7F8 00099638 4B F6 9B 8D */ bl lbl_80007384
/* 8009D7FC 0009963C 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8009D800 00099640 7C 08 03 A6 */ mtlr r0
/* 8009D804 00099644 38 21 00 30 */ addi r1, r1, 0x30
/* 8009D808 00099648 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global sdp_db_find_record
sdp_db_find_record:
/* 8009D80C 0009964C 3C A0 80 50 */ lis r5, sdp_cb@ha
2022-10-16 16:05:58 +00:00
/* 8009D810 00099650 38 00 02 98 */ li r0, 0x298
2022-10-16 16:31:36 +00:00
/* 8009D814 00099654 38 A5 9C 20 */ addi r5, r5, sdp_cb@l
2022-10-16 16:05:58 +00:00
/* 8009D818 00099658 A0 85 12 22 */ lhz r4, 0x1222(r5)
/* 8009D81C 0009965C 38 C5 12 24 */ addi r6, r5, 0x1224
/* 8009D820 00099660 1C 84 02 98 */ mulli r4, r4, 0x298
/* 8009D824 00099664 7C 85 22 14 */ add r4, r5, r4
/* 8009D828 00099668 38 A4 12 24 */ addi r5, r4, 0x1224
/* 8009D82C 0009966C 38 85 02 97 */ addi r4, r5, 0x297
/* 8009D830 00099670 7C 86 20 50 */ subf r4, r6, r4
/* 8009D834 00099674 7C 84 03 96 */ divwu r4, r4, r0
/* 8009D838 00099678 7C 89 03 A6 */ mtctr r4
/* 8009D83C 0009967C 7C 06 28 40 */ cmplw r6, r5
/* 8009D840 00099680 40 80 00 20 */ bge lbl_8009D860
.global lbl_8009D844
lbl_8009D844:
/* 8009D844 00099684 80 06 00 00 */ lwz r0, 0x0(r6)
/* 8009D848 00099688 7C 00 18 40 */ cmplw r0, r3
/* 8009D84C 0009968C 40 82 00 0C */ bne lbl_8009D858
/* 8009D850 00099690 7C C3 33 78 */ mr r3, r6
/* 8009D854 00099694 4E 80 00 20 */ blr
.global lbl_8009D858
lbl_8009D858:
/* 8009D858 00099698 38 C6 02 98 */ addi r6, r6, 0x298
/* 8009D85C 0009969C 42 00 FF E8 */ bdnz lbl_8009D844
.global lbl_8009D860
lbl_8009D860:
/* 8009D860 000996A0 38 60 00 00 */ li r3, 0x0
/* 8009D864 000996A4 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global sdp_db_find_attr_in_rec
sdp_db_find_attr_in_rec:
2022-10-16 16:05:58 +00:00
/* 8009D868 000996A8 A0 C3 00 08 */ lhz r6, 0x8(r3)
/* 8009D86C 000996AC 38 63 00 0C */ addi r3, r3, 0xc
/* 8009D870 000996B0 38 E0 00 00 */ li r7, 0x0
/* 8009D874 000996B4 48 00 00 20 */ b lbl_8009D894
.global lbl_8009D878
lbl_8009D878:
/* 8009D878 000996B8 A0 03 00 08 */ lhz r0, 0x8(r3)
/* 8009D87C 000996BC 7C 00 20 40 */ cmplw r0, r4
/* 8009D880 000996C0 41 80 00 0C */ blt lbl_8009D88C
/* 8009D884 000996C4 7C 00 28 40 */ cmplw r0, r5
/* 8009D888 000996C8 4C 81 00 20 */ blelr
.global lbl_8009D88C
lbl_8009D88C:
/* 8009D88C 000996CC 38 E7 00 01 */ addi r7, r7, 0x1
/* 8009D890 000996D0 38 63 00 0C */ addi r3, r3, 0xc
.global lbl_8009D894
lbl_8009D894:
/* 8009D894 000996D4 54 E0 04 3E */ clrlwi r0, r7, 16
/* 8009D898 000996D8 7C 00 30 40 */ cmplw r0, r6
/* 8009D89C 000996DC 41 80 FF DC */ blt lbl_8009D878
/* 8009D8A0 000996E0 38 60 00 00 */ li r3, 0x0
/* 8009D8A4 000996E4 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global SDP_CreateRecord
SDP_CreateRecord:
2022-10-16 16:05:58 +00:00
/* 8009D8A8 000996E8 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8009D8AC 000996EC 7C 08 02 A6 */ mflr r0
2022-10-16 16:31:36 +00:00
/* 8009D8B0 000996F0 3C 60 80 50 */ lis r3, sdp_cb@ha
2022-10-16 16:05:58 +00:00
/* 8009D8B4 000996F4 90 01 00 24 */ stw r0, 0x24(r1)
2022-10-16 16:31:36 +00:00
/* 8009D8B8 000996F8 38 63 9C 20 */ addi r3, r3, sdp_cb@l
2022-10-16 16:05:58 +00:00
/* 8009D8BC 000996FC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8009D8C0 00099700 3B E3 12 1C */ addi r31, r3, 0x121c
/* 8009D8C4 00099704 A0 03 12 22 */ lhz r0, 0x1222(r3)
/* 8009D8C8 00099708 28 00 00 14 */ cmplwi r0, 0x14
/* 8009D8CC 0009970C 40 80 00 A4 */ bge lbl_8009D970
/* 8009D8D0 00099710 1C 00 02 98 */ mulli r0, r0, 0x298
/* 8009D8D4 00099714 38 80 00 00 */ li r4, 0x0
/* 8009D8D8 00099718 38 A0 02 98 */ li r5, 0x298
/* 8009D8DC 0009971C 7C 7F 02 14 */ add r3, r31, r0
/* 8009D8E0 00099720 38 63 00 08 */ addi r3, r3, 0x8
2022-10-16 16:31:36 +00:00
/* 8009D8E4 00099724 4B F6 6A 6D */ bl memset
2022-10-16 16:05:58 +00:00
/* 8009D8E8 00099728 A0 9F 00 06 */ lhz r4, 0x6(r31)
/* 8009D8EC 0009972C 2C 04 00 00 */ cmpwi r4, 0x0
/* 8009D8F0 00099730 41 82 00 1C */ beq lbl_8009D90C
/* 8009D8F4 00099734 38 04 FF FF */ addi r0, r4, -0x1
/* 8009D8F8 00099738 1C 00 02 98 */ mulli r0, r0, 0x298
/* 8009D8FC 0009973C 7C 7F 02 14 */ add r3, r31, r0
/* 8009D900 00099740 80 63 00 08 */ lwz r3, 0x8(r3)
/* 8009D904 00099744 38 63 00 01 */ addi r3, r3, 0x1
/* 8009D908 00099748 48 00 00 08 */ b lbl_8009D910
.global lbl_8009D90C
lbl_8009D90C:
/* 8009D90C 0009974C 3C 60 00 01 */ lis r3, 0x1
.global lbl_8009D910
lbl_8009D910:
/* 8009D910 00099750 1C 84 02 98 */ mulli r4, r4, 0x298
/* 8009D914 00099754 54 60 46 3E */ srwi r0, r3, 24
/* 8009D918 00099758 54 66 86 3E */ extrwi r6, r3, 8, 8
/* 8009D91C 0009975C 98 01 00 08 */ stb r0, 0x8(r1)
/* 8009D920 00099760 54 60 C6 3E */ extrwi r0, r3, 8, 16
/* 8009D924 00099764 7C 9F 22 14 */ add r4, r31, r4
/* 8009D928 00099768 90 64 00 08 */ stw r3, 0x8(r4)
/* 8009D92C 0009976C 38 E1 00 08 */ addi r7, r1, 0x8
/* 8009D930 00099770 38 80 00 00 */ li r4, 0x0
/* 8009D934 00099774 38 A0 00 01 */ li r5, 0x1
/* 8009D938 00099778 A1 1F 00 06 */ lhz r8, 0x6(r31)
/* 8009D93C 0009977C 98 C1 00 09 */ stb r6, 0x9(r1)
/* 8009D940 00099780 38 C0 00 04 */ li r6, 0x4
/* 8009D944 00099784 39 08 00 01 */ addi r8, r8, 0x1
/* 8009D948 00099788 B1 1F 00 06 */ sth r8, 0x6(r31)
/* 8009D94C 0009978C 98 01 00 0A */ stb r0, 0xa(r1)
/* 8009D950 00099790 98 61 00 0B */ stb r3, 0xb(r1)
2022-10-16 16:31:36 +00:00
/* 8009D954 00099794 48 00 01 49 */ bl SDP_AddAttribute
2022-10-16 16:05:58 +00:00
/* 8009D958 00099798 A0 7F 00 06 */ lhz r3, 0x6(r31)
/* 8009D95C 0009979C 38 03 FF FF */ addi r0, r3, -0x1
/* 8009D960 000997A0 1C 00 02 98 */ mulli r0, r0, 0x298
/* 8009D964 000997A4 7C 7F 02 14 */ add r3, r31, r0
/* 8009D968 000997A8 80 63 00 08 */ lwz r3, 0x8(r3)
/* 8009D96C 000997AC 48 00 00 08 */ b lbl_8009D974
.global lbl_8009D970
lbl_8009D970:
/* 8009D970 000997B0 38 60 00 00 */ li r3, 0x0
.global lbl_8009D974
lbl_8009D974:
/* 8009D974 000997B4 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8009D978 000997B8 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8009D97C 000997BC 7C 08 03 A6 */ mtlr r0
/* 8009D980 000997C0 38 21 00 20 */ addi r1, r1, 0x20
/* 8009D984 000997C4 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global SDP_DeleteRecord
SDP_DeleteRecord:
/* 8009D988 000997C8 3C 80 80 50 */ lis r4, sdp_cb@ha
2022-10-16 16:05:58 +00:00
/* 8009D98C 000997CC 2C 03 00 00 */ cmpwi r3, 0x0
2022-10-16 16:31:36 +00:00
/* 8009D990 000997D0 38 84 9C 20 */ addi r4, r4, sdp_cb@l
2022-10-16 16:05:58 +00:00
/* 8009D994 000997D4 39 44 12 24 */ addi r10, r4, 0x1224
/* 8009D998 000997D8 41 82 00 10 */ beq lbl_8009D9A8
/* 8009D99C 000997DC A0 84 12 22 */ lhz r4, 0x1222(r4)
/* 8009D9A0 000997E0 2C 04 00 00 */ cmpwi r4, 0x0
/* 8009D9A4 000997E4 40 82 00 24 */ bne lbl_8009D9C8
.global lbl_8009D9A8
lbl_8009D9A8:
2022-10-16 16:31:36 +00:00
/* 8009D9A8 000997E8 3C 80 80 50 */ lis r4, sdp_cb@ha
2022-10-16 16:05:58 +00:00
/* 8009D9AC 000997EC 38 00 00 00 */ li r0, 0x0
2022-10-16 16:31:36 +00:00
/* 8009D9B0 000997F0 38 84 9C 20 */ addi r4, r4, sdp_cb@l
2022-10-16 16:05:58 +00:00
/* 8009D9B4 000997F4 38 60 00 01 */ li r3, 0x1
/* 8009D9B8 000997F8 B0 04 12 22 */ sth r0, 0x1222(r4)
/* 8009D9BC 000997FC 90 04 12 1C */ stw r0, 0x121c(r4)
/* 8009D9C0 00099800 98 04 12 20 */ stb r0, 0x1220(r4)
/* 8009D9C4 00099804 4E 80 00 20 */ blr
.global lbl_8009D9C8
lbl_8009D9C8:
/* 8009D9C8 00099808 39 20 00 00 */ li r9, 0x0
/* 8009D9CC 0009980C 48 00 00 BC */ b lbl_8009DA88
.global lbl_8009D9D0
lbl_8009D9D0:
/* 8009D9D0 00099810 80 0A 00 00 */ lwz r0, 0x0(r10)
/* 8009D9D4 00099814 7C 00 18 40 */ cmplw r0, r3
/* 8009D9D8 00099818 40 82 00 A8 */ bne lbl_8009DA80
2022-10-16 16:31:36 +00:00
/* 8009D9DC 0009981C 3C A0 80 50 */ lis r5, sdp_cb@ha
2022-10-16 16:05:58 +00:00
/* 8009D9E0 00099820 38 E0 00 53 */ li r7, 0x53
2022-10-16 16:31:36 +00:00
/* 8009D9E4 00099824 38 A5 9C 20 */ addi r5, r5, sdp_cb@l
2022-10-16 16:05:58 +00:00
/* 8009D9E8 00099828 48 00 00 60 */ b lbl_8009DA48
.global lbl_8009D9EC
lbl_8009D9EC:
/* 8009D9EC 0009982C 39 0A FF FC */ addi r8, r10, -0x4
/* 8009D9F0 00099830 38 CA 02 94 */ addi r6, r10, 0x294
/* 8009D9F4 00099834 7C E9 03 A6 */ mtctr r7
.global lbl_8009D9F8
lbl_8009D9F8:
/* 8009D9F8 00099838 80 86 00 04 */ lwz r4, 0x4(r6)
/* 8009D9FC 0009983C 84 06 00 08 */ lwzu r0, 0x8(r6)
/* 8009DA00 00099840 90 88 00 04 */ stw r4, 0x4(r8)
/* 8009DA04 00099844 94 08 00 08 */ stwu r0, 0x8(r8)
/* 8009DA08 00099848 42 00 FF F0 */ bdnz lbl_8009D9F8
/* 8009DA0C 0009984C 39 00 00 00 */ li r8, 0x0
/* 8009DA10 00099850 48 00 00 20 */ b lbl_8009DA30
.global lbl_8009DA14
lbl_8009DA14:
/* 8009DA14 00099854 55 00 04 3E */ clrlwi r0, r8, 16
/* 8009DA18 00099858 39 08 00 01 */ addi r8, r8, 0x1
/* 8009DA1C 0009985C 1C 00 00 0C */ mulli r0, r0, 0xc
/* 8009DA20 00099860 7C CA 02 14 */ add r6, r10, r0
/* 8009DA24 00099864 80 86 00 10 */ lwz r4, 0x10(r6)
/* 8009DA28 00099868 38 04 FD 68 */ addi r0, r4, -0x298
/* 8009DA2C 0009986C 90 06 00 10 */ stw r0, 0x10(r6)
.global lbl_8009DA30
lbl_8009DA30:
/* 8009DA30 00099870 A0 0A 00 08 */ lhz r0, 0x8(r10)
/* 8009DA34 00099874 55 04 04 3E */ clrlwi r4, r8, 16
/* 8009DA38 00099878 7C 04 00 40 */ cmplw r4, r0
/* 8009DA3C 0009987C 41 80 FF D8 */ blt lbl_8009DA14
/* 8009DA40 00099880 39 29 00 01 */ addi r9, r9, 0x1
/* 8009DA44 00099884 39 4A 02 98 */ addi r10, r10, 0x298
.global lbl_8009DA48
lbl_8009DA48:
/* 8009DA48 00099888 A0 85 12 22 */ lhz r4, 0x1222(r5)
/* 8009DA4C 0009988C 55 20 04 3E */ clrlwi r0, r9, 16
/* 8009DA50 00099890 7C 00 20 40 */ cmplw r0, r4
/* 8009DA54 00099894 41 80 FF 98 */ blt lbl_8009D9EC
/* 8009DA58 00099898 80 05 12 1C */ lwz r0, 0x121c(r5)
/* 8009DA5C 0009989C 38 84 FF FF */ addi r4, r4, -0x1
/* 8009DA60 000998A0 B0 85 12 22 */ sth r4, 0x1222(r5)
/* 8009DA64 000998A4 7C 00 18 40 */ cmplw r0, r3
/* 8009DA68 000998A8 40 82 00 10 */ bne lbl_8009DA78
/* 8009DA6C 000998AC 38 00 00 00 */ li r0, 0x0
/* 8009DA70 000998B0 90 05 12 1C */ stw r0, 0x121c(r5)
/* 8009DA74 000998B4 98 05 12 20 */ stb r0, 0x1220(r5)
.global lbl_8009DA78
lbl_8009DA78:
/* 8009DA78 000998B8 38 60 00 01 */ li r3, 0x1
/* 8009DA7C 000998BC 4E 80 00 20 */ blr
.global lbl_8009DA80
lbl_8009DA80:
/* 8009DA80 000998C0 39 29 00 01 */ addi r9, r9, 0x1
/* 8009DA84 000998C4 39 4A 02 98 */ addi r10, r10, 0x298
.global lbl_8009DA88
lbl_8009DA88:
/* 8009DA88 000998C8 55 20 04 3E */ clrlwi r0, r9, 16
/* 8009DA8C 000998CC 7C 00 20 40 */ cmplw r0, r4
/* 8009DA90 000998D0 41 80 FF 40 */ blt lbl_8009D9D0
/* 8009DA94 000998D4 38 60 00 00 */ li r3, 0x0
/* 8009DA98 000998D8 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global SDP_AddAttribute
SDP_AddAttribute:
2022-10-16 16:05:58 +00:00
/* 8009DA9C 000998DC 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8009DAA0 000998E0 7C 08 02 A6 */ mflr r0
/* 8009DAA4 000998E4 90 01 00 34 */ stw r0, 0x34(r1)
/* 8009DAA8 000998E8 39 61 00 30 */ addi r11, r1, 0x30
/* 8009DAAC 000998EC 4B F6 98 81 */ bl lbl_8000732C
2022-10-16 16:31:36 +00:00
/* 8009DAB0 000998F0 3D 00 80 50 */ lis r8, sdp_cb@ha
2022-10-16 16:05:58 +00:00
/* 8009DAB4 000998F4 7C BA 2B 78 */ mr r26, r5
2022-10-16 16:31:36 +00:00
/* 8009DAB8 000998F8 39 08 9C 20 */ addi r8, r8, sdp_cb@l
2022-10-16 16:05:58 +00:00
/* 8009DABC 000998FC 7C 78 1B 78 */ mr r24, r3
/* 8009DAC0 00099900 A1 28 12 22 */ lhz r9, 0x1222(r8)
/* 8009DAC4 00099904 7C 99 23 78 */ mr r25, r4
/* 8009DAC8 00099908 7C DB 33 78 */ mr r27, r6
/* 8009DACC 0009990C 7C FC 3B 78 */ mr r28, r7
/* 8009DAD0 00099910 3B C8 12 24 */ addi r30, r8, 0x1224
/* 8009DAD4 00099914 38 A0 00 00 */ li r5, 0x0
/* 8009DAD8 00099918 48 00 03 34 */ b lbl_8009DE0C
.global lbl_8009DADC
lbl_8009DADC:
/* 8009DADC 0009991C 80 1E 00 00 */ lwz r0, 0x0(r30)
/* 8009DAE0 00099920 7C 00 18 40 */ cmplw r0, r3
/* 8009DAE4 00099924 40 82 03 20 */ bne lbl_8009DE04
/* 8009DAE8 00099928 A0 7E 00 08 */ lhz r3, 0x8(r30)
/* 8009DAEC 0009992C 3B BE 00 0C */ addi r29, r30, 0xc
/* 8009DAF0 00099930 3B E0 00 00 */ li r31, 0x0
/* 8009DAF4 00099934 48 00 00 2C */ b lbl_8009DB20
.global lbl_8009DAF8
lbl_8009DAF8:
/* 8009DAF8 00099938 A0 1D 00 08 */ lhz r0, 0x8(r29)
/* 8009DAFC 0009993C 7C 00 20 40 */ cmplw r0, r4
/* 8009DB00 00099940 40 82 00 14 */ bne lbl_8009DB14
/* 8009DB04 00099944 7F 03 C3 78 */ mr r3, r24
/* 8009DB08 00099948 7F 24 CB 78 */ mr r4, r25
2022-10-16 16:31:36 +00:00
/* 8009DB0C 0009994C 48 00 05 7D */ bl SDP_DeleteAttribute
2022-10-16 16:05:58 +00:00
/* 8009DB10 00099950 48 00 00 1C */ b lbl_8009DB2C
.global lbl_8009DB14
lbl_8009DB14:
/* 8009DB14 00099954 41 81 00 18 */ bgt lbl_8009DB2C
/* 8009DB18 00099958 3B FF 00 01 */ addi r31, r31, 0x1
/* 8009DB1C 0009995C 3B BD 00 0C */ addi r29, r29, 0xc
.global lbl_8009DB20
lbl_8009DB20:
/* 8009DB20 00099960 57 E0 04 3E */ clrlwi r0, r31, 16
/* 8009DB24 00099964 7C 00 18 40 */ cmplw r0, r3
/* 8009DB28 00099968 41 80 FF D0 */ blt lbl_8009DAF8
.global lbl_8009DB2C
lbl_8009DB2C:
/* 8009DB2C 0009996C A0 BE 00 08 */ lhz r5, 0x8(r30)
/* 8009DB30 00099970 28 05 00 19 */ cmplwi r5, 0x19
/* 8009DB34 00099974 40 82 00 0C */ bne lbl_8009DB40
/* 8009DB38 00099978 38 60 00 00 */ li r3, 0x0
/* 8009DB3C 0009997C 48 00 02 E0 */ b lbl_8009DE1C
.global lbl_8009DB40
lbl_8009DB40:
/* 8009DB40 00099980 57 E0 04 3E */ clrlwi r0, r31, 16
/* 8009DB44 00099984 7C 00 28 40 */ cmplw r0, r5
/* 8009DB48 00099988 40 82 00 14 */ bne lbl_8009DB5C
/* 8009DB4C 0009998C 1C 05 00 0C */ mulli r0, r5, 0xc
/* 8009DB50 00099990 7C 7E 02 14 */ add r3, r30, r0
/* 8009DB54 00099994 3B A3 00 0C */ addi r29, r3, 0xc
/* 8009DB58 00099998 48 00 01 C8 */ b lbl_8009DD20
.global lbl_8009DB5C
lbl_8009DB5C:
/* 8009DB5C 0009999C 7C 85 00 40 */ cmplw cr1, r5, r0
/* 8009DB60 000999A0 40 85 01 C0 */ ble cr1, lbl_8009DD20
/* 8009DB64 000999A4 7C 1F 28 50 */ subf r0, r31, r5
/* 8009DB68 000999A8 38 7F 00 08 */ addi r3, r31, 0x8
/* 8009DB6C 000999AC 54 00 04 3E */ clrlwi r0, r0, 16
/* 8009DB70 000999B0 28 00 00 08 */ cmplwi r0, 0x8
/* 8009DB74 000999B4 40 81 01 68 */ ble lbl_8009DCDC
/* 8009DB78 000999B8 41 84 01 64 */ blt cr1, lbl_8009DCDC
/* 8009DB7C 000999BC 54 63 04 3E */ clrlwi r3, r3, 16
/* 8009DB80 000999C0 38 05 00 07 */ addi r0, r5, 0x7
/* 8009DB84 000999C4 7C 03 00 50 */ subf r0, r3, r0
/* 8009DB88 000999C8 54 00 E8 FE */ srwi r0, r0, 3
/* 8009DB8C 000999CC 7C 09 03 A6 */ mtctr r0
/* 8009DB90 000999D0 7C 05 18 40 */ cmplw r5, r3
/* 8009DB94 000999D4 40 81 01 48 */ ble lbl_8009DCDC
.global lbl_8009DB98
lbl_8009DB98:
/* 8009DB98 000999D8 54 A0 04 3E */ clrlwi r0, r5, 16
/* 8009DB9C 000999DC 3C 65 00 01 */ addis r3, r5, 0x1
/* 8009DBA0 000999E0 1C 80 00 0C */ mulli r4, r0, 0xc
/* 8009DBA4 000999E4 7D 24 F0 6E */ lwzux r9, r4, r30
/* 8009DBA8 000999E8 38 C3 FF FF */ addi r6, r3, -0x1
/* 8009DBAC 000999EC 38 03 FF FE */ addi r0, r3, -0x2
/* 8009DBB0 000999F0 80 E4 00 04 */ lwz r7, 0x4(r4)
/* 8009DBB4 000999F4 54 C6 04 3E */ clrlwi r6, r6, 16
/* 8009DBB8 000999F8 1D 06 00 0C */ mulli r8, r6, 0xc
/* 8009DBBC 000999FC 38 A5 FF F8 */ addi r5, r5, -0x8
/* 8009DBC0 00099A00 91 24 00 0C */ stw r9, 0xc(r4)
/* 8009DBC4 00099A04 54 06 04 3E */ clrlwi r6, r0, 16
/* 8009DBC8 00099A08 38 03 FF FD */ addi r0, r3, -0x3
/* 8009DBCC 00099A0C 90 E4 00 10 */ stw r7, 0x10(r4)
/* 8009DBD0 00099A10 54 00 04 3E */ clrlwi r0, r0, 16
/* 8009DBD4 00099A14 7E FE 42 14 */ add r23, r30, r8
/* 8009DBD8 00099A18 81 64 00 08 */ lwz r11, 0x8(r4)
/* 8009DBDC 00099A1C 1D 46 00 0C */ mulli r10, r6, 0xc
/* 8009DBE0 00099A20 38 C3 FF FC */ addi r6, r3, -0x4
/* 8009DBE4 00099A24 91 64 00 14 */ stw r11, 0x14(r4)
/* 8009DBE8 00099A28 1D 20 00 0C */ mulli r9, r0, 0xc
/* 8009DBEC 00099A2C 38 03 FF FB */ addi r0, r3, -0x5
/* 8009DBF0 00099A30 7D 9E 40 2E */ lwzx r12, r30, r8
/* 8009DBF4 00099A34 54 C6 04 3E */ clrlwi r6, r6, 16
/* 8009DBF8 00099A38 81 77 00 04 */ lwz r11, 0x4(r23)
/* 8009DBFC 00099A3C 54 07 04 3E */ clrlwi r7, r0, 16
/* 8009DC00 00099A40 91 84 00 00 */ stw r12, 0x0(r4)
/* 8009DC04 00099A44 7D 9E 52 14 */ add r12, r30, r10
/* 8009DC08 00099A48 38 03 FF FA */ addi r0, r3, -0x6
/* 8009DC0C 00099A4C 7D 5E 4A 14 */ add r10, r30, r9
/* 8009DC10 00099A50 1D 06 00 0C */ mulli r8, r6, 0xc
/* 8009DC14 00099A54 91 64 00 04 */ stw r11, 0x4(r4)
/* 8009DC18 00099A58 54 06 04 3E */ clrlwi r6, r0, 16
/* 8009DC1C 00099A5C 38 03 FF F9 */ addi r0, r3, -0x7
/* 8009DC20 00099A60 1C 66 00 0C */ mulli r3, r6, 0xc
/* 8009DC24 00099A64 80 D7 00 08 */ lwz r6, 0x8(r23)
/* 8009DC28 00099A68 54 00 04 3E */ clrlwi r0, r0, 16
/* 8009DC2C 00099A6C 90 C4 00 08 */ stw r6, 0x8(r4)
/* 8009DC30 00099A70 7D 3E 42 14 */ add r9, r30, r8
/* 8009DC34 00099A74 1C E7 00 0C */ mulli r7, r7, 0xc
/* 8009DC38 00099A78 81 6C 00 00 */ lwz r11, 0x0(r12)
/* 8009DC3C 00099A7C 7D 1E 3A 14 */ add r8, r30, r7
/* 8009DC40 00099A80 7C FE 1A 14 */ add r7, r30, r3
/* 8009DC44 00099A84 80 6C 00 04 */ lwz r3, 0x4(r12)
/* 8009DC48 00099A88 1C 00 00 0C */ mulli r0, r0, 0xc
/* 8009DC4C 00099A8C 91 64 FF F4 */ stw r11, -0xc(r4)
/* 8009DC50 00099A90 90 64 FF F8 */ stw r3, -0x8(r4)
/* 8009DC54 00099A94 7C DE 02 14 */ add r6, r30, r0
/* 8009DC58 00099A98 80 0C 00 08 */ lwz r0, 0x8(r12)
/* 8009DC5C 00099A9C 90 04 FF FC */ stw r0, -0x4(r4)
/* 8009DC60 00099AA0 80 6A 00 00 */ lwz r3, 0x0(r10)
/* 8009DC64 00099AA4 80 0A 00 04 */ lwz r0, 0x4(r10)
/* 8009DC68 00099AA8 90 64 FF E8 */ stw r3, -0x18(r4)
/* 8009DC6C 00099AAC 90 04 FF EC */ stw r0, -0x14(r4)
/* 8009DC70 00099AB0 80 0A 00 08 */ lwz r0, 0x8(r10)
/* 8009DC74 00099AB4 90 04 FF F0 */ stw r0, -0x10(r4)
/* 8009DC78 00099AB8 80 69 00 00 */ lwz r3, 0x0(r9)
/* 8009DC7C 00099ABC 80 09 00 04 */ lwz r0, 0x4(r9)
/* 8009DC80 00099AC0 90 64 FF DC */ stw r3, -0x24(r4)
/* 8009DC84 00099AC4 90 04 FF E0 */ stw r0, -0x20(r4)
/* 8009DC88 00099AC8 80 09 00 08 */ lwz r0, 0x8(r9)
/* 8009DC8C 00099ACC 90 04 FF E4 */ stw r0, -0x1c(r4)
/* 8009DC90 00099AD0 80 68 00 00 */ lwz r3, 0x0(r8)
/* 8009DC94 00099AD4 80 08 00 04 */ lwz r0, 0x4(r8)
/* 8009DC98 00099AD8 90 64 FF D0 */ stw r3, -0x30(r4)
/* 8009DC9C 00099ADC 90 04 FF D4 */ stw r0, -0x2c(r4)
/* 8009DCA0 00099AE0 80 08 00 08 */ lwz r0, 0x8(r8)
/* 8009DCA4 00099AE4 90 04 FF D8 */ stw r0, -0x28(r4)
/* 8009DCA8 00099AE8 80 67 00 00 */ lwz r3, 0x0(r7)
/* 8009DCAC 00099AEC 80 07 00 04 */ lwz r0, 0x4(r7)
/* 8009DCB0 00099AF0 90 64 FF C4 */ stw r3, -0x3c(r4)
/* 8009DCB4 00099AF4 90 04 FF C8 */ stw r0, -0x38(r4)
/* 8009DCB8 00099AF8 80 07 00 08 */ lwz r0, 0x8(r7)
/* 8009DCBC 00099AFC 90 04 FF CC */ stw r0, -0x34(r4)
/* 8009DCC0 00099B00 80 66 00 00 */ lwz r3, 0x0(r6)
/* 8009DCC4 00099B04 80 06 00 04 */ lwz r0, 0x4(r6)
/* 8009DCC8 00099B08 90 64 FF B8 */ stw r3, -0x48(r4)
/* 8009DCCC 00099B0C 90 04 FF BC */ stw r0, -0x44(r4)
/* 8009DCD0 00099B10 80 06 00 08 */ lwz r0, 0x8(r6)
/* 8009DCD4 00099B14 90 04 FF C0 */ stw r0, -0x40(r4)
/* 8009DCD8 00099B18 42 00 FE C0 */ bdnz lbl_8009DB98
.global lbl_8009DCDC
lbl_8009DCDC:
/* 8009DCDC 00099B1C 57 E3 04 3E */ clrlwi r3, r31, 16
/* 8009DCE0 00099B20 54 A4 04 3E */ clrlwi r4, r5, 16
/* 8009DCE4 00099B24 7C 03 20 50 */ subf r0, r3, r4
/* 8009DCE8 00099B28 7C 09 03 A6 */ mtctr r0
/* 8009DCEC 00099B2C 7C 04 18 40 */ cmplw r4, r3
/* 8009DCF0 00099B30 40 81 00 30 */ ble lbl_8009DD20
.global lbl_8009DCF4
lbl_8009DCF4:
/* 8009DCF4 00099B34 54 A0 04 3E */ clrlwi r0, r5, 16
/* 8009DCF8 00099B38 38 A5 FF FF */ addi r5, r5, -0x1
/* 8009DCFC 00099B3C 1C 00 00 0C */ mulli r0, r0, 0xc
/* 8009DD00 00099B40 7C 9E 02 14 */ add r4, r30, r0
/* 8009DD04 00099B44 7C 7E 00 2E */ lwzx r3, r30, r0
/* 8009DD08 00099B48 80 04 00 04 */ lwz r0, 0x4(r4)
/* 8009DD0C 00099B4C 90 64 00 0C */ stw r3, 0xc(r4)
/* 8009DD10 00099B50 90 04 00 10 */ stw r0, 0x10(r4)
/* 8009DD14 00099B54 80 04 00 08 */ lwz r0, 0x8(r4)
/* 8009DD18 00099B58 90 04 00 14 */ stw r0, 0x14(r4)
/* 8009DD1C 00099B5C 42 00 FF D8 */ bdnz lbl_8009DCF4
.global lbl_8009DD20
lbl_8009DD20:
/* 8009DD20 00099B60 A0 7E 00 08 */ lhz r3, 0x8(r30)
/* 8009DD24 00099B64 38 03 00 01 */ addi r0, r3, 0x1
/* 8009DD28 00099B68 B0 1E 00 08 */ sth r0, 0x8(r30)
/* 8009DD2C 00099B6C B3 3D 00 08 */ sth r25, 0x8(r29)
/* 8009DD30 00099B70 93 7D 00 00 */ stw r27, 0x0(r29)
/* 8009DD34 00099B74 9B 5D 00 0A */ stb r26, 0xa(r29)
/* 8009DD38 00099B78 80 DE 00 04 */ lwz r6, 0x4(r30)
/* 8009DD3C 00099B7C 7C 06 DA 14 */ add r0, r6, r27
/* 8009DD40 00099B80 28 00 01 5E */ cmplwi r0, 0x15e
/* 8009DD44 00099B84 41 80 00 50 */ blt lbl_8009DD94
2022-10-16 16:31:36 +00:00
/* 8009DD48 00099B88 3C 60 80 50 */ lis r3, sdp_cb@ha
/* 8009DD4C 00099B8C 38 63 9C 20 */ addi r3, r3, sdp_cb@l
2022-10-16 16:05:58 +00:00
/* 8009DD50 00099B90 88 03 46 30 */ lbz r0, 0x4630(r3)
/* 8009DD54 00099B94 28 00 00 02 */ cmplwi r0, 0x2
/* 8009DD58 00099B98 41 80 00 20 */ blt lbl_8009DD78
/* 8009DD5C 00099B9C 3C 60 00 0A */ lis r3, 0xa
2022-10-16 16:31:36 +00:00
/* 8009DD60 00099BA0 3C 80 80 44 */ lis r4, "@1330"@ha
2022-10-16 16:05:58 +00:00
/* 8009DD64 00099BA4 7F 65 DB 78 */ mr r5, r27
/* 8009DD68 00099BA8 20 C6 01 5E */ subfic r6, r6, 0x15e
/* 8009DD6C 00099BAC 38 63 00 01 */ addi r3, r3, 0x1
2022-10-16 16:31:36 +00:00
/* 8009DD70 00099BB0 38 84 F9 A0 */ addi r4, r4, "@1330"@l
/* 8009DD74 00099BB4 4B FD 9B ED */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
.global lbl_8009DD78
lbl_8009DD78:
/* 8009DD78 00099BB8 80 1E 00 04 */ lwz r0, 0x4(r30)
/* 8009DD7C 00099BBC 38 60 00 00 */ li r3, 0x0
/* 8009DD80 00099BC0 23 60 01 5E */ subfic r27, r0, 0x15e
/* 8009DD84 00099BC4 7C 7C D9 AE */ stbx r3, r28, r27
/* 8009DD88 00099BC8 80 1E 00 04 */ lwz r0, 0x4(r30)
/* 8009DD8C 00099BCC 20 00 01 5F */ subfic r0, r0, 0x15f
/* 8009DD90 00099BD0 7C 7C 01 AE */ stbx r3, r28, r0
.global lbl_8009DD94
lbl_8009DD94:
/* 8009DD94 00099BD4 2C 1B 00 00 */ cmpwi r27, 0x0
/* 8009DD98 00099BD8 41 82 00 40 */ beq lbl_8009DDD8
/* 8009DD9C 00099BDC 2C 1C 00 00 */ cmpwi r28, 0x0
/* 8009DDA0 00099BE0 41 82 00 38 */ beq lbl_8009DDD8
/* 8009DDA4 00099BE4 80 1E 00 04 */ lwz r0, 0x4(r30)
/* 8009DDA8 00099BE8 7F 84 E3 78 */ mr r4, r28
/* 8009DDAC 00099BEC 7F 65 DB 78 */ mr r5, r27
/* 8009DDB0 00099BF0 7C 7E 02 14 */ add r3, r30, r0
/* 8009DDB4 00099BF4 38 63 01 38 */ addi r3, r3, 0x138
2022-10-16 16:31:36 +00:00
/* 8009DDB8 00099BF8 4B F6 62 49 */ bl memcpy
2022-10-16 16:05:58 +00:00
/* 8009DDBC 00099BFC 80 1E 00 04 */ lwz r0, 0x4(r30)
/* 8009DDC0 00099C00 7C 7E 02 14 */ add r3, r30, r0
/* 8009DDC4 00099C04 38 03 01 38 */ addi r0, r3, 0x138
/* 8009DDC8 00099C08 90 1D 00 04 */ stw r0, 0x4(r29)
/* 8009DDCC 00099C0C 80 1E 00 04 */ lwz r0, 0x4(r30)
/* 8009DDD0 00099C10 7C 00 DA 14 */ add r0, r0, r27
/* 8009DDD4 00099C14 90 1E 00 04 */ stw r0, 0x4(r30)
.global lbl_8009DDD8
lbl_8009DDD8:
2022-10-16 16:31:36 +00:00
/* 8009DDD8 00099C18 3C 60 80 50 */ lis r3, sdp_cb@ha
/* 8009DDDC 00099C1C 38 63 9C 20 */ addi r3, r3, sdp_cb@l
2022-10-16 16:05:58 +00:00
/* 8009DDE0 00099C20 80 03 12 1C */ lwz r0, 0x121c(r3)
/* 8009DDE4 00099C24 7C 18 00 40 */ cmplw r24, r0
/* 8009DDE8 00099C28 40 82 00 14 */ bne lbl_8009DDFC
/* 8009DDEC 00099C2C 28 19 80 01 */ cmplwi r25, 0x8001
/* 8009DDF0 00099C30 40 82 00 0C */ bne lbl_8009DDFC
/* 8009DDF4 00099C34 38 00 00 01 */ li r0, 0x1
/* 8009DDF8 00099C38 98 03 12 20 */ stb r0, 0x1220(r3)
.global lbl_8009DDFC
lbl_8009DDFC:
/* 8009DDFC 00099C3C 38 60 00 01 */ li r3, 0x1
/* 8009DE00 00099C40 48 00 00 1C */ b lbl_8009DE1C
.global lbl_8009DE04
lbl_8009DE04:
/* 8009DE04 00099C44 38 A5 00 01 */ addi r5, r5, 0x1
/* 8009DE08 00099C48 3B DE 02 98 */ addi r30, r30, 0x298
.global lbl_8009DE0C
lbl_8009DE0C:
/* 8009DE0C 00099C4C 54 A0 04 3E */ clrlwi r0, r5, 16
/* 8009DE10 00099C50 7C 00 48 40 */ cmplw r0, r9
/* 8009DE14 00099C54 41 80 FC C8 */ blt lbl_8009DADC
/* 8009DE18 00099C58 38 60 00 00 */ li r3, 0x0
.global lbl_8009DE1C
lbl_8009DE1C:
/* 8009DE1C 00099C5C 39 61 00 30 */ addi r11, r1, 0x30
/* 8009DE20 00099C60 4B F6 95 59 */ bl lbl_80007378
/* 8009DE24 00099C64 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8009DE28 00099C68 7C 08 03 A6 */ mtlr r0
/* 8009DE2C 00099C6C 38 21 00 30 */ addi r1, r1, 0x30
/* 8009DE30 00099C70 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global SDP_AddUuidSequence
SDP_AddUuidSequence:
2022-10-16 16:05:58 +00:00
/* 8009DE34 00099C74 94 21 FF 40 */ stwu r1, -0xc0(r1)
/* 8009DE38 00099C78 7C 08 02 A6 */ mflr r0
/* 8009DE3C 00099C7C 38 E0 00 00 */ li r7, 0x0
/* 8009DE40 00099C80 90 01 00 C4 */ stw r0, 0xc4(r1)
/* 8009DE44 00099C84 93 E1 00 BC */ stw r31, 0xbc(r1)
/* 8009DE48 00099C88 3B E1 00 08 */ addi r31, r1, 0x8
/* 8009DE4C 00099C8C 93 C1 00 B8 */ stw r30, 0xb8(r1)
/* 8009DE50 00099C90 7C 9E 23 78 */ mr r30, r4
/* 8009DE54 00099C94 38 80 00 19 */ li r4, 0x19
/* 8009DE58 00099C98 93 A1 00 B4 */ stw r29, 0xb4(r1)
/* 8009DE5C 00099C9C 7C 7D 1B 78 */ mr r29, r3
/* 8009DE60 00099CA0 7F E3 FB 78 */ mr r3, r31
/* 8009DE64 00099CA4 7C A9 03 A6 */ mtctr r5
/* 8009DE68 00099CA8 28 05 00 00 */ cmplwi r5, 0x0
/* 8009DE6C 00099CAC 40 81 00 6C */ ble lbl_8009DED8
.global lbl_8009DE70
lbl_8009DE70:
/* 8009DE70 00099CB0 98 9F 00 00 */ stb r4, 0x0(r31)
/* 8009DE74 00099CB4 A0 06 00 00 */ lhz r0, 0x0(r6)
/* 8009DE78 00099CB8 7C 00 46 70 */ srawi r0, r0, 8
/* 8009DE7C 00099CBC 98 1F 00 01 */ stb r0, 0x1(r31)
/* 8009DE80 00099CC0 A0 06 00 00 */ lhz r0, 0x0(r6)
/* 8009DE84 00099CC4 98 1F 00 02 */ stb r0, 0x2(r31)
/* 8009DE88 00099CC8 3B FF 00 03 */ addi r31, r31, 0x3
/* 8009DE8C 00099CCC 7C 03 F8 50 */ subf r0, r3, r31
/* 8009DE90 00099CD0 2C 00 00 4D */ cmpwi r0, 0x4d
/* 8009DE94 00099CD4 40 81 00 38 */ ble lbl_8009DECC
2022-10-16 16:31:36 +00:00
/* 8009DE98 00099CD8 3C 60 80 50 */ lis r3, sdp_cb@ha
/* 8009DE9C 00099CDC 38 63 9C 20 */ addi r3, r3, sdp_cb@l
2022-10-16 16:05:58 +00:00
/* 8009DEA0 00099CE0 88 03 46 30 */ lbz r0, 0x4630(r3)
/* 8009DEA4 00099CE4 28 00 00 02 */ cmplwi r0, 0x2
/* 8009DEA8 00099CE8 41 80 00 30 */ blt lbl_8009DED8
/* 8009DEAC 00099CEC 3C 60 00 0A */ lis r3, 0xa
2022-10-16 16:31:36 +00:00
/* 8009DEB0 00099CF0 3C 80 80 44 */ lis r4, "@1369"@ha
2022-10-16 16:05:58 +00:00
/* 8009DEB4 00099CF4 7C A6 2B 78 */ mr r6, r5
/* 8009DEB8 00099CF8 54 E5 04 3E */ clrlwi r5, r7, 16
/* 8009DEBC 00099CFC 38 63 00 01 */ addi r3, r3, 0x1
2022-10-16 16:31:36 +00:00
/* 8009DEC0 00099D00 38 84 F9 DC */ addi r4, r4, "@1369"@l
/* 8009DEC4 00099D04 4B FD 9A 9D */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
/* 8009DEC8 00099D08 48 00 00 10 */ b lbl_8009DED8
.global lbl_8009DECC
lbl_8009DECC:
/* 8009DECC 00099D0C 38 E7 00 01 */ addi r7, r7, 0x1
/* 8009DED0 00099D10 38 C6 00 02 */ addi r6, r6, 0x2
/* 8009DED4 00099D14 42 00 FF 9C */ bdnz lbl_8009DE70
.global lbl_8009DED8
lbl_8009DED8:
/* 8009DED8 00099D18 38 E1 00 08 */ addi r7, r1, 0x8
/* 8009DEDC 00099D1C 7F A3 EB 78 */ mr r3, r29
/* 8009DEE0 00099D20 7F C4 F3 78 */ mr r4, r30
/* 8009DEE4 00099D24 38 A0 00 06 */ li r5, 0x6
/* 8009DEE8 00099D28 7C C7 F8 50 */ subf r6, r7, r31
2022-10-16 16:31:36 +00:00
/* 8009DEEC 00099D2C 4B FF FB B1 */ bl SDP_AddAttribute
2022-10-16 16:05:58 +00:00
/* 8009DEF0 00099D30 80 01 00 C4 */ lwz r0, 0xc4(r1)
/* 8009DEF4 00099D34 83 E1 00 BC */ lwz r31, 0xbc(r1)
/* 8009DEF8 00099D38 83 C1 00 B8 */ lwz r30, 0xb8(r1)
/* 8009DEFC 00099D3C 83 A1 00 B4 */ lwz r29, 0xb4(r1)
/* 8009DF00 00099D40 7C 08 03 A6 */ mtlr r0
/* 8009DF04 00099D44 38 21 00 C0 */ addi r1, r1, 0xc0
/* 8009DF08 00099D48 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global SDP_AddServiceClassIdList
SDP_AddServiceClassIdList:
2022-10-16 16:05:58 +00:00
/* 8009DF0C 00099D4C 94 21 FF 50 */ stwu r1, -0xb0(r1)
/* 8009DF10 00099D50 7C 08 02 A6 */ mflr r0
/* 8009DF14 00099D54 2C 04 00 00 */ cmpwi r4, 0x0
/* 8009DF18 00099D58 38 C0 00 00 */ li r6, 0x0
/* 8009DF1C 00099D5C 90 01 00 B4 */ stw r0, 0xb4(r1)
/* 8009DF20 00099D60 39 01 00 08 */ addi r8, r1, 0x8
/* 8009DF24 00099D64 41 82 01 40 */ beq lbl_8009E064
/* 8009DF28 00099D68 28 04 00 08 */ cmplwi r4, 0x8
/* 8009DF2C 00099D6C 3C E4 00 01 */ addis r7, r4, 0x1
/* 8009DF30 00099D70 38 E7 FF F8 */ addi r7, r7, -0x8
/* 8009DF34 00099D74 40 81 00 F0 */ ble lbl_8009E024
/* 8009DF38 00099D78 54 E9 04 3E */ clrlwi r9, r7, 16
/* 8009DF3C 00099D7C 38 00 00 19 */ li r0, 0x19
/* 8009DF40 00099D80 38 E9 00 07 */ addi r7, r9, 0x7
/* 8009DF44 00099D84 54 E7 E8 FE */ srwi r7, r7, 3
/* 8009DF48 00099D88 7C E9 03 A6 */ mtctr r7
/* 8009DF4C 00099D8C 28 09 00 00 */ cmplwi r9, 0x0
/* 8009DF50 00099D90 40 81 00 D4 */ ble lbl_8009E024
.global lbl_8009DF54
lbl_8009DF54:
/* 8009DF54 00099D94 98 08 00 00 */ stb r0, 0x0(r8)
/* 8009DF58 00099D98 38 C6 00 08 */ addi r6, r6, 0x8
/* 8009DF5C 00099D9C A0 E5 00 00 */ lhz r7, 0x0(r5)
/* 8009DF60 00099DA0 7C E7 46 70 */ srawi r7, r7, 8
/* 8009DF64 00099DA4 98 E8 00 01 */ stb r7, 0x1(r8)
/* 8009DF68 00099DA8 A0 E5 00 00 */ lhz r7, 0x0(r5)
/* 8009DF6C 00099DAC 98 E8 00 02 */ stb r7, 0x2(r8)
/* 8009DF70 00099DB0 98 08 00 03 */ stb r0, 0x3(r8)
/* 8009DF74 00099DB4 A0 E5 00 02 */ lhz r7, 0x2(r5)
/* 8009DF78 00099DB8 7C E7 46 70 */ srawi r7, r7, 8
/* 8009DF7C 00099DBC 98 E8 00 04 */ stb r7, 0x4(r8)
/* 8009DF80 00099DC0 A0 E5 00 02 */ lhz r7, 0x2(r5)
/* 8009DF84 00099DC4 98 E8 00 05 */ stb r7, 0x5(r8)
/* 8009DF88 00099DC8 98 08 00 06 */ stb r0, 0x6(r8)
/* 8009DF8C 00099DCC A0 E5 00 04 */ lhz r7, 0x4(r5)
/* 8009DF90 00099DD0 7C E7 46 70 */ srawi r7, r7, 8
/* 8009DF94 00099DD4 98 E8 00 07 */ stb r7, 0x7(r8)
/* 8009DF98 00099DD8 A0 E5 00 04 */ lhz r7, 0x4(r5)
/* 8009DF9C 00099DDC 98 E8 00 08 */ stb r7, 0x8(r8)
/* 8009DFA0 00099DE0 98 08 00 09 */ stb r0, 0x9(r8)
/* 8009DFA4 00099DE4 A0 E5 00 06 */ lhz r7, 0x6(r5)
/* 8009DFA8 00099DE8 7C E7 46 70 */ srawi r7, r7, 8
/* 8009DFAC 00099DEC 98 E8 00 0A */ stb r7, 0xa(r8)
/* 8009DFB0 00099DF0 A0 E5 00 06 */ lhz r7, 0x6(r5)
/* 8009DFB4 00099DF4 98 E8 00 0B */ stb r7, 0xb(r8)
/* 8009DFB8 00099DF8 98 08 00 0C */ stb r0, 0xc(r8)
/* 8009DFBC 00099DFC A0 E5 00 08 */ lhz r7, 0x8(r5)
/* 8009DFC0 00099E00 7C E7 46 70 */ srawi r7, r7, 8
/* 8009DFC4 00099E04 98 E8 00 0D */ stb r7, 0xd(r8)
/* 8009DFC8 00099E08 A0 E5 00 08 */ lhz r7, 0x8(r5)
/* 8009DFCC 00099E0C 98 E8 00 0E */ stb r7, 0xe(r8)
/* 8009DFD0 00099E10 98 08 00 0F */ stb r0, 0xf(r8)
/* 8009DFD4 00099E14 A0 E5 00 0A */ lhz r7, 0xa(r5)
/* 8009DFD8 00099E18 7C E7 46 70 */ srawi r7, r7, 8
/* 8009DFDC 00099E1C 98 E8 00 10 */ stb r7, 0x10(r8)
/* 8009DFE0 00099E20 A0 E5 00 0A */ lhz r7, 0xa(r5)
/* 8009DFE4 00099E24 98 E8 00 11 */ stb r7, 0x11(r8)
/* 8009DFE8 00099E28 98 08 00 12 */ stb r0, 0x12(r8)
/* 8009DFEC 00099E2C A0 E5 00 0C */ lhz r7, 0xc(r5)
/* 8009DFF0 00099E30 7C E7 46 70 */ srawi r7, r7, 8
/* 8009DFF4 00099E34 98 E8 00 13 */ stb r7, 0x13(r8)
/* 8009DFF8 00099E38 A0 E5 00 0C */ lhz r7, 0xc(r5)
/* 8009DFFC 00099E3C 98 E8 00 14 */ stb r7, 0x14(r8)
/* 8009E000 00099E40 98 08 00 15 */ stb r0, 0x15(r8)
/* 8009E004 00099E44 A0 E5 00 0E */ lhz r7, 0xe(r5)
/* 8009E008 00099E48 7C E7 46 70 */ srawi r7, r7, 8
/* 8009E00C 00099E4C 98 E8 00 16 */ stb r7, 0x16(r8)
/* 8009E010 00099E50 A0 E5 00 0E */ lhz r7, 0xe(r5)
/* 8009E014 00099E54 38 A5 00 10 */ addi r5, r5, 0x10
/* 8009E018 00099E58 98 E8 00 17 */ stb r7, 0x17(r8)
/* 8009E01C 00099E5C 39 08 00 18 */ addi r8, r8, 0x18
/* 8009E020 00099E60 42 00 FF 34 */ bdnz lbl_8009DF54
.global lbl_8009E024
lbl_8009E024:
/* 8009E024 00099E64 54 C7 04 3E */ clrlwi r7, r6, 16
/* 8009E028 00099E68 39 20 00 19 */ li r9, 0x19
/* 8009E02C 00099E6C 7C 07 20 50 */ subf r0, r7, r4
/* 8009E030 00099E70 7C 09 03 A6 */ mtctr r0
/* 8009E034 00099E74 7C 07 20 40 */ cmplw r7, r4
/* 8009E038 00099E78 40 80 00 2C */ bge lbl_8009E064
.global lbl_8009E03C
lbl_8009E03C:
/* 8009E03C 00099E7C 99 28 00 00 */ stb r9, 0x0(r8)
/* 8009E040 00099E80 38 C6 00 01 */ addi r6, r6, 0x1
/* 8009E044 00099E84 A0 05 00 00 */ lhz r0, 0x0(r5)
/* 8009E048 00099E88 7C 00 46 70 */ srawi r0, r0, 8
/* 8009E04C 00099E8C 98 08 00 01 */ stb r0, 0x1(r8)
/* 8009E050 00099E90 A0 05 00 00 */ lhz r0, 0x0(r5)
/* 8009E054 00099E94 38 A5 00 02 */ addi r5, r5, 0x2
/* 8009E058 00099E98 98 08 00 02 */ stb r0, 0x2(r8)
/* 8009E05C 00099E9C 39 08 00 03 */ addi r8, r8, 0x3
/* 8009E060 00099EA0 42 00 FF DC */ bdnz lbl_8009E03C
.global lbl_8009E064
lbl_8009E064:
/* 8009E064 00099EA4 38 E1 00 08 */ addi r7, r1, 0x8
/* 8009E068 00099EA8 38 80 00 01 */ li r4, 0x1
/* 8009E06C 00099EAC 7C C7 40 50 */ subf r6, r7, r8
/* 8009E070 00099EB0 38 A0 00 06 */ li r5, 0x6
2022-10-16 16:31:36 +00:00
/* 8009E074 00099EB4 4B FF FA 29 */ bl SDP_AddAttribute
2022-10-16 16:05:58 +00:00
/* 8009E078 00099EB8 80 01 00 B4 */ lwz r0, 0xb4(r1)
/* 8009E07C 00099EBC 7C 08 03 A6 */ mtlr r0
/* 8009E080 00099EC0 38 21 00 B0 */ addi r1, r1, 0xb0
/* 8009E084 00099EC4 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global SDP_DeleteAttribute
SDP_DeleteAttribute:
2022-10-16 16:05:58 +00:00
/* 8009E088 00099EC8 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8009E08C 00099ECC 7C 08 02 A6 */ mflr r0
/* 8009E090 00099ED0 90 01 00 34 */ stw r0, 0x34(r1)
/* 8009E094 00099ED4 39 61 00 30 */ addi r11, r1, 0x30
/* 8009E098 00099ED8 4B F6 92 9D */ bl lbl_80007334
2022-10-16 16:31:36 +00:00
/* 8009E09C 00099EDC 3F 60 80 50 */ lis r27, sdp_cb@ha
2022-10-16 16:05:58 +00:00
/* 8009E0A0 00099EE0 7C 79 1B 78 */ mr r25, r3
2022-10-16 16:31:36 +00:00
/* 8009E0A4 00099EE4 3B 7B 9C 20 */ addi r27, r27, sdp_cb@l
2022-10-16 16:05:58 +00:00
/* 8009E0A8 00099EE8 7C 9A 23 78 */ mr r26, r4
/* 8009E0AC 00099EEC 3B FB 12 24 */ addi r31, r27, 0x1224
/* 8009E0B0 00099EF0 38 60 00 00 */ li r3, 0x0
/* 8009E0B4 00099EF4 3F 80 00 0A */ lis r28, 0xa
2022-10-16 16:31:36 +00:00
/* 8009E0B8 00099EF8 3F A0 80 44 */ lis r29, "@1451"@ha
2022-10-16 16:05:58 +00:00
/* 8009E0BC 00099EFC 48 00 01 DC */ b lbl_8009E298
.global lbl_8009E0C0
lbl_8009E0C0:
/* 8009E0C0 00099F00 80 1F 00 00 */ lwz r0, 0x0(r31)
/* 8009E0C4 00099F04 7C 00 C8 40 */ cmplw r0, r25
/* 8009E0C8 00099F08 40 82 01 C8 */ bne lbl_8009E290
/* 8009E0CC 00099F0C 88 1B 46 30 */ lbz r0, 0x4630(r27)
/* 8009E0D0 00099F10 3B DF 00 0C */ addi r30, r31, 0xc
/* 8009E0D4 00099F14 28 00 00 03 */ cmplwi r0, 0x3
/* 8009E0D8 00099F18 41 80 00 18 */ blt lbl_8009E0F0
/* 8009E0DC 00099F1C 7F 45 D3 78 */ mr r5, r26
/* 8009E0E0 00099F20 7F 26 CB 78 */ mr r6, r25
/* 8009E0E4 00099F24 38 7C 00 02 */ addi r3, r28, 0x2
2022-10-16 16:31:36 +00:00
/* 8009E0E8 00099F28 38 9D FA 10 */ addi r4, r29, "@1451"@l
/* 8009E0EC 00099F2C 4B FD 98 75 */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
.global lbl_8009E0F0
lbl_8009E0F0:
/* 8009E0F0 00099F30 A0 9F 00 08 */ lhz r4, 0x8(r31)
/* 8009E0F4 00099F34 38 60 00 00 */ li r3, 0x0
/* 8009E0F8 00099F38 48 00 01 8C */ b lbl_8009E284
.global lbl_8009E0FC
lbl_8009E0FC:
/* 8009E0FC 00099F3C A0 1E 00 08 */ lhz r0, 0x8(r30)
/* 8009E100 00099F40 7C 00 D0 40 */ cmplw r0, r26
/* 8009E104 00099F44 40 82 01 78 */ bne lbl_8009E27C
/* 8009E108 00099F48 80 1E 00 00 */ lwz r0, 0x0(r30)
/* 8009E10C 00099F4C 80 9E 00 04 */ lwz r4, 0x4(r30)
/* 8009E110 00099F50 2C 00 00 00 */ cmpwi r0, 0x0
/* 8009E114 00099F54 41 82 00 40 */ beq lbl_8009E154
/* 8009E118 00099F58 38 E0 00 00 */ li r7, 0x0
/* 8009E11C 00099F5C 48 00 00 28 */ b lbl_8009E144
.global lbl_8009E120
lbl_8009E120:
/* 8009E120 00099F60 54 E5 04 3E */ clrlwi r5, r7, 16
/* 8009E124 00099F64 1C A5 00 0C */ mulli r5, r5, 0xc
/* 8009E128 00099F68 7C DF 2A 14 */ add r6, r31, r5
/* 8009E12C 00099F6C 80 A6 00 10 */ lwz r5, 0x10(r6)
/* 8009E130 00099F70 7C 05 20 40 */ cmplw r5, r4
/* 8009E134 00099F74 40 81 00 0C */ ble lbl_8009E140
/* 8009E138 00099F78 7C A0 28 50 */ subf r5, r0, r5
/* 8009E13C 00099F7C 90 A6 00 10 */ stw r5, 0x10(r6)
.global lbl_8009E140
lbl_8009E140:
/* 8009E140 00099F80 38 E7 00 01 */ addi r7, r7, 0x1
.global lbl_8009E144
lbl_8009E144:
/* 8009E144 00099F84 A0 BF 00 08 */ lhz r5, 0x8(r31)
/* 8009E148 00099F88 54 E6 04 3E */ clrlwi r6, r7, 16
/* 8009E14C 00099F8C 7C 06 28 40 */ cmplw r6, r5
/* 8009E150 00099F90 41 80 FF D0 */ blt lbl_8009E120
.global lbl_8009E154
lbl_8009E154:
/* 8009E154 00099F94 A0 BF 00 08 */ lhz r5, 0x8(r31)
/* 8009E158 00099F98 38 A5 FF FF */ addi r5, r5, -0x1
/* 8009E15C 00099F9C B0 BF 00 08 */ sth r5, 0x8(r31)
/* 8009E160 00099FA0 48 00 00 24 */ b lbl_8009E184
.global lbl_8009E164
lbl_8009E164:
/* 8009E164 00099FA4 80 DE 00 0C */ lwz r6, 0xc(r30)
/* 8009E168 00099FA8 38 63 00 01 */ addi r3, r3, 0x1
/* 8009E16C 00099FAC 80 BE 00 10 */ lwz r5, 0x10(r30)
/* 8009E170 00099FB0 90 DE 00 00 */ stw r6, 0x0(r30)
/* 8009E174 00099FB4 90 BE 00 04 */ stw r5, 0x4(r30)
/* 8009E178 00099FB8 80 BE 00 14 */ lwz r5, 0x14(r30)
/* 8009E17C 00099FBC 90 BE 00 08 */ stw r5, 0x8(r30)
/* 8009E180 00099FC0 3B DE 00 0C */ addi r30, r30, 0xc
.global lbl_8009E184
lbl_8009E184:
/* 8009E184 00099FC4 A0 BF 00 08 */ lhz r5, 0x8(r31)
/* 8009E188 00099FC8 54 66 04 3E */ clrlwi r6, r3, 16
/* 8009E18C 00099FCC 7C 06 28 40 */ cmplw r6, r5
/* 8009E190 00099FD0 41 80 FF D4 */ blt lbl_8009E164
/* 8009E194 00099FD4 2C 00 00 00 */ cmpwi r0, 0x0
/* 8009E198 00099FD8 41 82 00 DC */ beq lbl_8009E274
/* 8009E19C 00099FDC 38 BF 01 38 */ addi r5, r31, 0x138
/* 8009E1A0 00099FE0 7C C4 02 14 */ add r6, r4, r0
/* 8009E1A4 00099FE4 80 7F 00 04 */ lwz r3, 0x4(r31)
/* 8009E1A8 00099FE8 7C A5 30 50 */ subf r5, r5, r6
/* 8009E1AC 00099FEC 38 E0 00 00 */ li r7, 0x0
/* 8009E1B0 00099FF0 7C 65 18 50 */ subf r3, r5, r3
/* 8009E1B4 00099FF4 54 68 04 3F */ clrlwi. r8, r3, 16
/* 8009E1B8 00099FF8 41 82 00 B0 */ beq lbl_8009E268
/* 8009E1BC 00099FFC 28 08 00 08 */ cmplwi r8, 0x8
/* 8009E1C0 0009A000 3C 68 00 01 */ addis r3, r8, 0x1
/* 8009E1C4 0009A004 38 63 FF F8 */ addi r3, r3, -0x8
/* 8009E1C8 0009A008 40 81 00 70 */ ble lbl_8009E238
/* 8009E1CC 0009A00C 54 65 04 3E */ clrlwi r5, r3, 16
/* 8009E1D0 0009A010 38 65 00 07 */ addi r3, r5, 0x7
/* 8009E1D4 0009A014 54 63 E8 FE */ srwi r3, r3, 3
/* 8009E1D8 0009A018 7C 69 03 A6 */ mtctr r3
/* 8009E1DC 0009A01C 28 05 00 00 */ cmplwi r5, 0x0
/* 8009E1E0 0009A020 40 81 00 58 */ ble lbl_8009E238
.global lbl_8009E1E4
lbl_8009E1E4:
/* 8009E1E4 0009A024 88 66 00 00 */ lbz r3, 0x0(r6)
/* 8009E1E8 0009A028 7C A4 02 14 */ add r5, r4, r0
/* 8009E1EC 0009A02C 38 E7 00 08 */ addi r7, r7, 0x8
/* 8009E1F0 0009A030 38 C6 00 08 */ addi r6, r6, 0x8
/* 8009E1F4 0009A034 98 64 00 00 */ stb r3, 0x0(r4)
/* 8009E1F8 0009A038 88 65 00 01 */ lbz r3, 0x1(r5)
/* 8009E1FC 0009A03C 98 64 00 01 */ stb r3, 0x1(r4)
/* 8009E200 0009A040 88 65 00 02 */ lbz r3, 0x2(r5)
/* 8009E204 0009A044 98 64 00 02 */ stb r3, 0x2(r4)
/* 8009E208 0009A048 88 65 00 03 */ lbz r3, 0x3(r5)
/* 8009E20C 0009A04C 98 64 00 03 */ stb r3, 0x3(r4)
/* 8009E210 0009A050 88 65 00 04 */ lbz r3, 0x4(r5)
/* 8009E214 0009A054 98 64 00 04 */ stb r3, 0x4(r4)
/* 8009E218 0009A058 88 65 00 05 */ lbz r3, 0x5(r5)
/* 8009E21C 0009A05C 98 64 00 05 */ stb r3, 0x5(r4)
/* 8009E220 0009A060 88 65 00 06 */ lbz r3, 0x6(r5)
/* 8009E224 0009A064 98 64 00 06 */ stb r3, 0x6(r4)
/* 8009E228 0009A068 88 65 00 07 */ lbz r3, 0x7(r5)
/* 8009E22C 0009A06C 98 64 00 07 */ stb r3, 0x7(r4)
/* 8009E230 0009A070 38 84 00 08 */ addi r4, r4, 0x8
/* 8009E234 0009A074 42 00 FF B0 */ bdnz lbl_8009E1E4
.global lbl_8009E238
lbl_8009E238:
/* 8009E238 0009A078 54 E6 04 3E */ clrlwi r6, r7, 16
/* 8009E23C 0009A07C 7C A0 22 14 */ add r5, r0, r4
/* 8009E240 0009A080 7C 66 40 50 */ subf r3, r6, r8
/* 8009E244 0009A084 7C 69 03 A6 */ mtctr r3
/* 8009E248 0009A088 7C 06 40 40 */ cmplw r6, r8
/* 8009E24C 0009A08C 40 80 00 1C */ bge lbl_8009E268
.global lbl_8009E250
lbl_8009E250:
/* 8009E250 0009A090 88 65 00 00 */ lbz r3, 0x0(r5)
/* 8009E254 0009A094 38 E7 00 01 */ addi r7, r7, 0x1
/* 8009E258 0009A098 38 A5 00 01 */ addi r5, r5, 0x1
/* 8009E25C 0009A09C 98 64 00 00 */ stb r3, 0x0(r4)
/* 8009E260 0009A0A0 38 84 00 01 */ addi r4, r4, 0x1
/* 8009E264 0009A0A4 42 00 FF EC */ bdnz lbl_8009E250
.global lbl_8009E268
lbl_8009E268:
/* 8009E268 0009A0A8 80 7F 00 04 */ lwz r3, 0x4(r31)
/* 8009E26C 0009A0AC 7C 00 18 50 */ subf r0, r0, r3
/* 8009E270 0009A0B0 90 1F 00 04 */ stw r0, 0x4(r31)
.global lbl_8009E274
lbl_8009E274:
/* 8009E274 0009A0B4 38 60 00 01 */ li r3, 0x1
/* 8009E278 0009A0B8 48 00 00 34 */ b lbl_8009E2AC
.global lbl_8009E27C
lbl_8009E27C:
/* 8009E27C 0009A0BC 38 63 00 01 */ addi r3, r3, 0x1
/* 8009E280 0009A0C0 3B DE 00 0C */ addi r30, r30, 0xc
.global lbl_8009E284
lbl_8009E284:
/* 8009E284 0009A0C4 54 60 04 3E */ clrlwi r0, r3, 16
/* 8009E288 0009A0C8 7C 00 20 40 */ cmplw r0, r4
/* 8009E28C 0009A0CC 41 80 FE 70 */ blt lbl_8009E0FC
.global lbl_8009E290
lbl_8009E290:
/* 8009E290 0009A0D0 38 63 00 01 */ addi r3, r3, 0x1
/* 8009E294 0009A0D4 3B FF 02 98 */ addi r31, r31, 0x298
.global lbl_8009E298
lbl_8009E298:
/* 8009E298 0009A0D8 A0 1B 12 22 */ lhz r0, 0x1222(r27)
/* 8009E29C 0009A0DC 54 64 04 3E */ clrlwi r4, r3, 16
/* 8009E2A0 0009A0E0 7C 04 00 40 */ cmplw r4, r0
/* 8009E2A4 0009A0E4 41 80 FE 1C */ blt lbl_8009E0C0
/* 8009E2A8 0009A0E8 38 60 00 00 */ li r3, 0x0
.global lbl_8009E2AC
lbl_8009E2AC:
/* 8009E2AC 0009A0EC 39 61 00 30 */ addi r11, r1, 0x30
/* 8009E2B0 0009A0F0 4B F6 90 D1 */ bl lbl_80007380
/* 8009E2B4 0009A0F4 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8009E2B8 0009A0F8 7C 08 03 A6 */ mtlr r0
/* 8009E2BC 0009A0FC 38 21 00 30 */ addi r1, r1, 0x30
/* 8009E2C0 0009A100 4E 80 00 20 */ blr
2022-10-17 08:41:13 +00:00
.include "macros.inc"
.section .data, "wa" # 0x80421040 - 0x80496700 ; 0x000756C0
.global "@1330"
"@1330":
.4byte 0x5344505F
.4byte 0x41646441
.4byte 0x74747269
.4byte 0x62757465
.4byte 0x3A206174
.4byte 0x74725F6C
.4byte 0x656E3A25
.4byte 0x6420746F
.4byte 0x6F206C6F
.4byte 0x6E672E20
.4byte 0x7472756E
.4byte 0x63617465
.4byte 0x20746F20
.4byte 0x28256429
.4byte 0
.global "@1369"
"@1369":
.4byte 0x5344505F
.4byte 0x41646455
.4byte 0x75696453
.4byte 0x65717565
.4byte 0x6E636520
.4byte 0x2D20746F
.4byte 0x6F206C6F
.4byte 0x6E672C20
.4byte 0x61646420
.4byte 0x25642075
.4byte 0x75696473
.4byte 0x206F6620
.4byte 0x25640000
.global "@1451"
"@1451":
.4byte 0x44656C65
.4byte 0x74696E67
.4byte 0x20617474
.4byte 0x725F6964
.4byte 0x20307825
.4byte 0x30347820
.4byte 0x666F7220
.4byte 0x68616E64
.4byte 0x6C652030
.4byte 0x78257800