donut-decomp/asm/bte/sdp_utils.s

1482 lines
60 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 sdpu_find_ccb_by_cid
sdpu_find_ccb_by_cid:
/* 800A0DB8 0009CBF8 3C 80 80 50 */ lis r4, sdp_cb@ha
/* 800A0DBC 0009CBFC 38 84 9C 20 */ addi r4, r4, sdp_cb@l
2022-10-16 16:05:58 +00:00
/* 800A0DC0 0009CC00 8C 04 00 3C */ lbzu r0, 0x3c(r4)
/* 800A0DC4 0009CC04 2C 00 00 00 */ cmpwi r0, 0x0
/* 800A0DC8 0009CC08 41 82 00 18 */ beq lbl_800A0DE0
/* 800A0DCC 0009CC0C A0 04 00 22 */ lhz r0, 0x22(r4)
/* 800A0DD0 0009CC10 7C 00 18 40 */ cmplw r0, r3
/* 800A0DD4 0009CC14 40 82 00 0C */ bne lbl_800A0DE0
/* 800A0DD8 0009CC18 7C 83 23 78 */ mr r3, r4
/* 800A0DDC 0009CC1C 4E 80 00 20 */ blr
.global lbl_800A0DE0
lbl_800A0DE0:
/* 800A0DE0 0009CC20 8C 04 04 78 */ lbzu r0, 0x478(r4)
/* 800A0DE4 0009CC24 2C 00 00 00 */ cmpwi r0, 0x0
/* 800A0DE8 0009CC28 41 82 00 18 */ beq lbl_800A0E00
/* 800A0DEC 0009CC2C A0 04 00 22 */ lhz r0, 0x22(r4)
/* 800A0DF0 0009CC30 7C 00 18 40 */ cmplw r0, r3
/* 800A0DF4 0009CC34 40 82 00 0C */ bne lbl_800A0E00
/* 800A0DF8 0009CC38 7C 83 23 78 */ mr r3, r4
/* 800A0DFC 0009CC3C 4E 80 00 20 */ blr
.global lbl_800A0E00
lbl_800A0E00:
/* 800A0E00 0009CC40 8C 04 04 78 */ lbzu r0, 0x478(r4)
/* 800A0E04 0009CC44 2C 00 00 00 */ cmpwi r0, 0x0
/* 800A0E08 0009CC48 41 82 00 18 */ beq lbl_800A0E20
/* 800A0E0C 0009CC4C A0 04 00 22 */ lhz r0, 0x22(r4)
/* 800A0E10 0009CC50 7C 00 18 40 */ cmplw r0, r3
/* 800A0E14 0009CC54 40 82 00 0C */ bne lbl_800A0E20
/* 800A0E18 0009CC58 7C 83 23 78 */ mr r3, r4
/* 800A0E1C 0009CC5C 4E 80 00 20 */ blr
.global lbl_800A0E20
lbl_800A0E20:
/* 800A0E20 0009CC60 8C 04 04 78 */ lbzu r0, 0x478(r4)
/* 800A0E24 0009CC64 2C 00 00 00 */ cmpwi r0, 0x0
/* 800A0E28 0009CC68 41 82 00 18 */ beq lbl_800A0E40
/* 800A0E2C 0009CC6C A0 04 00 22 */ lhz r0, 0x22(r4)
/* 800A0E30 0009CC70 7C 00 18 40 */ cmplw r0, r3
/* 800A0E34 0009CC74 40 82 00 0C */ bne lbl_800A0E40
/* 800A0E38 0009CC78 7C 83 23 78 */ mr r3, r4
/* 800A0E3C 0009CC7C 4E 80 00 20 */ blr
.global lbl_800A0E40
lbl_800A0E40:
/* 800A0E40 0009CC80 38 60 00 00 */ li r3, 0x0
/* 800A0E44 0009CC84 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global sdpu_allocate_ccb
sdpu_allocate_ccb:
2022-10-16 16:05:58 +00:00
/* 800A0E48 0009CC88 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 800A0E4C 0009CC8C 7C 08 02 A6 */ mflr r0
2022-10-16 16:31:36 +00:00
/* 800A0E50 0009CC90 3C 60 80 50 */ lis r3, sdp_cb@ha
2022-10-16 16:05:58 +00:00
/* 800A0E54 0009CC94 38 80 00 00 */ li r4, 0x0
/* 800A0E58 0009CC98 90 01 00 14 */ stw r0, 0x14(r1)
/* 800A0E5C 0009CC9C 38 00 00 04 */ li r0, 0x4
2022-10-16 16:31:36 +00:00
/* 800A0E60 0009CCA0 38 63 9C 20 */ addi r3, r3, sdp_cb@l
2022-10-16 16:05:58 +00:00
/* 800A0E64 0009CCA4 93 E1 00 0C */ stw r31, 0xc(r1)
/* 800A0E68 0009CCA8 3B E3 00 3C */ addi r31, r3, 0x3c
/* 800A0E6C 0009CCAC 7C 09 03 A6 */ mtctr r0
.global lbl_800A0E70
lbl_800A0E70:
/* 800A0E70 0009CCB0 88 1F 00 00 */ lbz r0, 0x0(r31)
/* 800A0E74 0009CCB4 2C 00 00 00 */ cmpwi r0, 0x0
/* 800A0E78 0009CCB8 40 82 00 20 */ bne lbl_800A0E98
/* 800A0E7C 0009CCBC 7F E3 FB 78 */ mr r3, r31
/* 800A0E80 0009CCC0 38 80 00 00 */ li r4, 0x0
/* 800A0E84 0009CCC4 38 A0 04 78 */ li r5, 0x478
2022-10-16 16:31:36 +00:00
/* 800A0E88 0009CCC8 4B F6 34 C9 */ bl memset
2022-10-16 16:05:58 +00:00
/* 800A0E8C 0009CCCC 93 FF 00 18 */ stw r31, 0x18(r31)
/* 800A0E90 0009CCD0 7F E3 FB 78 */ mr r3, r31
/* 800A0E94 0009CCD4 48 00 00 14 */ b lbl_800A0EA8
.global lbl_800A0E98
lbl_800A0E98:
/* 800A0E98 0009CCD8 38 84 00 01 */ addi r4, r4, 0x1
/* 800A0E9C 0009CCDC 3B FF 04 78 */ addi r31, r31, 0x478
/* 800A0EA0 0009CCE0 42 00 FF D0 */ bdnz lbl_800A0E70
/* 800A0EA4 0009CCE4 38 60 00 00 */ li r3, 0x0
.global lbl_800A0EA8
lbl_800A0EA8:
/* 800A0EA8 0009CCE8 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800A0EAC 0009CCEC 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 800A0EB0 0009CCF0 7C 08 03 A6 */ mtlr r0
/* 800A0EB4 0009CCF4 38 21 00 10 */ addi r1, r1, 0x10
/* 800A0EB8 0009CCF8 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global sdpu_release_ccb
sdpu_release_ccb:
2022-10-16 16:05:58 +00:00
/* 800A0EBC 0009CCFC 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 800A0EC0 0009CD00 7C 08 02 A6 */ mflr r0
/* 800A0EC4 0009CD04 90 01 00 14 */ stw r0, 0x14(r1)
/* 800A0EC8 0009CD08 93 E1 00 0C */ stw r31, 0xc(r1)
/* 800A0ECC 0009CD0C 7C 7F 1B 78 */ mr r31, r3
/* 800A0ED0 0009CD10 38 63 00 08 */ addi r3, r3, 0x8
2022-10-16 16:31:36 +00:00
/* 800A0ED4 0009CD14 4B FD 70 4D */ bl btu_stop_timer
2022-10-16 16:05:58 +00:00
/* 800A0ED8 0009CD18 38 00 00 00 */ li r0, 0x0
/* 800A0EDC 0009CD1C 98 1F 00 00 */ stb r0, 0x0(r31)
/* 800A0EE0 0009CD20 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 800A0EE4 0009CD24 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800A0EE8 0009CD28 7C 08 03 A6 */ mtlr r0
/* 800A0EEC 0009CD2C 38 21 00 10 */ addi r1, r1, 0x10
/* 800A0EF0 0009CD30 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global sdpu_build_attrib_seq
sdpu_build_attrib_seq:
2022-10-16 16:05:58 +00:00
/* 800A0EF4 0009CD34 2C 04 00 00 */ cmpwi r4, 0x0
/* 800A0EF8 0009CD38 41 82 00 14 */ beq lbl_800A0F0C
/* 800A0EFC 0009CD3C 54 A0 10 3A */ slwi r0, r5, 2
/* 800A0F00 0009CD40 7C 05 00 50 */ subf r0, r5, r0
/* 800A0F04 0009CD44 54 07 04 3E */ clrlwi r7, r0, 16
/* 800A0F08 0009CD48 48 00 00 08 */ b lbl_800A0F10
.global lbl_800A0F0C
lbl_800A0F0C:
/* 800A0F0C 0009CD4C 38 E0 00 05 */ li r7, 0x5
.global lbl_800A0F10
lbl_800A0F10:
/* 800A0F10 0009CD50 28 07 00 FF */ cmplwi r7, 0xff
/* 800A0F14 0009CD54 40 81 00 20 */ ble lbl_800A0F34
/* 800A0F18 0009CD58 54 E0 C6 3E */ extrwi r0, r7, 8, 16
/* 800A0F1C 0009CD5C 38 C0 00 36 */ li r6, 0x36
/* 800A0F20 0009CD60 98 C3 00 00 */ stb r6, 0x0(r3)
/* 800A0F24 0009CD64 38 C3 00 03 */ addi r6, r3, 0x3
/* 800A0F28 0009CD68 98 03 00 01 */ stb r0, 0x1(r3)
/* 800A0F2C 0009CD6C 98 E3 00 02 */ stb r7, 0x2(r3)
/* 800A0F30 0009CD70 48 00 00 14 */ b lbl_800A0F44
.global lbl_800A0F34
lbl_800A0F34:
/* 800A0F34 0009CD74 38 00 00 35 */ li r0, 0x35
/* 800A0F38 0009CD78 98 E3 00 01 */ stb r7, 0x1(r3)
/* 800A0F3C 0009CD7C 38 C3 00 02 */ addi r6, r3, 0x2
/* 800A0F40 0009CD80 98 03 00 00 */ stb r0, 0x0(r3)
.global lbl_800A0F44
lbl_800A0F44:
/* 800A0F44 0009CD84 2C 04 00 00 */ cmpwi r4, 0x0
/* 800A0F48 0009CD88 40 82 00 2C */ bne lbl_800A0F74
/* 800A0F4C 0009CD8C 38 00 00 0A */ li r0, 0xa
/* 800A0F50 0009CD90 38 60 00 00 */ li r3, 0x0
/* 800A0F54 0009CD94 98 06 00 00 */ stb r0, 0x0(r6)
/* 800A0F58 0009CD98 38 00 00 FF */ li r0, 0xff
/* 800A0F5C 0009CD9C 98 66 00 01 */ stb r3, 0x1(r6)
/* 800A0F60 0009CDA0 98 66 00 02 */ stb r3, 0x2(r6)
/* 800A0F64 0009CDA4 98 06 00 03 */ stb r0, 0x3(r6)
/* 800A0F68 0009CDA8 98 06 00 04 */ stb r0, 0x4(r6)
/* 800A0F6C 0009CDAC 38 C6 00 05 */ addi r6, r6, 0x5
/* 800A0F70 0009CDB0 48 00 01 4C */ b lbl_800A10BC
.global lbl_800A0F74
lbl_800A0F74:
/* 800A0F74 0009CDB4 2C 05 00 00 */ cmpwi r5, 0x0
/* 800A0F78 0009CDB8 38 60 00 00 */ li r3, 0x0
/* 800A0F7C 0009CDBC 41 82 01 40 */ beq lbl_800A10BC
/* 800A0F80 0009CDC0 28 05 00 08 */ cmplwi r5, 0x8
/* 800A0F84 0009CDC4 3C E5 00 01 */ addis r7, r5, 0x1
/* 800A0F88 0009CDC8 38 E7 FF F8 */ addi r7, r7, -0x8
/* 800A0F8C 0009CDCC 40 81 00 F0 */ ble lbl_800A107C
/* 800A0F90 0009CDD0 54 E8 04 3E */ clrlwi r8, r7, 16
/* 800A0F94 0009CDD4 38 00 00 09 */ li r0, 0x9
/* 800A0F98 0009CDD8 38 E8 00 07 */ addi r7, r8, 0x7
/* 800A0F9C 0009CDDC 54 E7 E8 FE */ srwi r7, r7, 3
/* 800A0FA0 0009CDE0 7C E9 03 A6 */ mtctr r7
/* 800A0FA4 0009CDE4 28 08 00 00 */ cmplwi r8, 0x0
/* 800A0FA8 0009CDE8 40 81 00 D4 */ ble lbl_800A107C
.global lbl_800A0FAC
lbl_800A0FAC:
/* 800A0FAC 0009CDEC 98 06 00 00 */ stb r0, 0x0(r6)
/* 800A0FB0 0009CDF0 38 63 00 08 */ addi r3, r3, 0x8
/* 800A0FB4 0009CDF4 A0 E4 00 00 */ lhz r7, 0x0(r4)
/* 800A0FB8 0009CDF8 7C E7 46 70 */ srawi r7, r7, 8
/* 800A0FBC 0009CDFC 98 E6 00 01 */ stb r7, 0x1(r6)
/* 800A0FC0 0009CE00 A0 E4 00 00 */ lhz r7, 0x0(r4)
/* 800A0FC4 0009CE04 98 E6 00 02 */ stb r7, 0x2(r6)
/* 800A0FC8 0009CE08 98 06 00 03 */ stb r0, 0x3(r6)
/* 800A0FCC 0009CE0C A0 E4 00 02 */ lhz r7, 0x2(r4)
/* 800A0FD0 0009CE10 7C E7 46 70 */ srawi r7, r7, 8
/* 800A0FD4 0009CE14 98 E6 00 04 */ stb r7, 0x4(r6)
/* 800A0FD8 0009CE18 A0 E4 00 02 */ lhz r7, 0x2(r4)
/* 800A0FDC 0009CE1C 98 E6 00 05 */ stb r7, 0x5(r6)
/* 800A0FE0 0009CE20 98 06 00 06 */ stb r0, 0x6(r6)
/* 800A0FE4 0009CE24 A0 E4 00 04 */ lhz r7, 0x4(r4)
/* 800A0FE8 0009CE28 7C E7 46 70 */ srawi r7, r7, 8
/* 800A0FEC 0009CE2C 98 E6 00 07 */ stb r7, 0x7(r6)
/* 800A0FF0 0009CE30 A0 E4 00 04 */ lhz r7, 0x4(r4)
/* 800A0FF4 0009CE34 98 E6 00 08 */ stb r7, 0x8(r6)
/* 800A0FF8 0009CE38 98 06 00 09 */ stb r0, 0x9(r6)
/* 800A0FFC 0009CE3C A0 E4 00 06 */ lhz r7, 0x6(r4)
/* 800A1000 0009CE40 7C E7 46 70 */ srawi r7, r7, 8
/* 800A1004 0009CE44 98 E6 00 0A */ stb r7, 0xa(r6)
/* 800A1008 0009CE48 A0 E4 00 06 */ lhz r7, 0x6(r4)
/* 800A100C 0009CE4C 98 E6 00 0B */ stb r7, 0xb(r6)
/* 800A1010 0009CE50 98 06 00 0C */ stb r0, 0xc(r6)
/* 800A1014 0009CE54 A0 E4 00 08 */ lhz r7, 0x8(r4)
/* 800A1018 0009CE58 7C E7 46 70 */ srawi r7, r7, 8
/* 800A101C 0009CE5C 98 E6 00 0D */ stb r7, 0xd(r6)
/* 800A1020 0009CE60 A0 E4 00 08 */ lhz r7, 0x8(r4)
/* 800A1024 0009CE64 98 E6 00 0E */ stb r7, 0xe(r6)
/* 800A1028 0009CE68 98 06 00 0F */ stb r0, 0xf(r6)
/* 800A102C 0009CE6C A0 E4 00 0A */ lhz r7, 0xa(r4)
/* 800A1030 0009CE70 7C E7 46 70 */ srawi r7, r7, 8
/* 800A1034 0009CE74 98 E6 00 10 */ stb r7, 0x10(r6)
/* 800A1038 0009CE78 A0 E4 00 0A */ lhz r7, 0xa(r4)
/* 800A103C 0009CE7C 98 E6 00 11 */ stb r7, 0x11(r6)
/* 800A1040 0009CE80 98 06 00 12 */ stb r0, 0x12(r6)
/* 800A1044 0009CE84 A0 E4 00 0C */ lhz r7, 0xc(r4)
/* 800A1048 0009CE88 7C E7 46 70 */ srawi r7, r7, 8
/* 800A104C 0009CE8C 98 E6 00 13 */ stb r7, 0x13(r6)
/* 800A1050 0009CE90 A0 E4 00 0C */ lhz r7, 0xc(r4)
/* 800A1054 0009CE94 98 E6 00 14 */ stb r7, 0x14(r6)
/* 800A1058 0009CE98 98 06 00 15 */ stb r0, 0x15(r6)
/* 800A105C 0009CE9C A0 E4 00 0E */ lhz r7, 0xe(r4)
/* 800A1060 0009CEA0 7C E7 46 70 */ srawi r7, r7, 8
/* 800A1064 0009CEA4 98 E6 00 16 */ stb r7, 0x16(r6)
/* 800A1068 0009CEA8 A0 E4 00 0E */ lhz r7, 0xe(r4)
/* 800A106C 0009CEAC 38 84 00 10 */ addi r4, r4, 0x10
/* 800A1070 0009CEB0 98 E6 00 17 */ stb r7, 0x17(r6)
/* 800A1074 0009CEB4 38 C6 00 18 */ addi r6, r6, 0x18
/* 800A1078 0009CEB8 42 00 FF 34 */ bdnz lbl_800A0FAC
.global lbl_800A107C
lbl_800A107C:
/* 800A107C 0009CEBC 54 67 04 3E */ clrlwi r7, r3, 16
/* 800A1080 0009CEC0 39 00 00 09 */ li r8, 0x9
/* 800A1084 0009CEC4 7C 07 28 50 */ subf r0, r7, r5
/* 800A1088 0009CEC8 7C 09 03 A6 */ mtctr r0
/* 800A108C 0009CECC 7C 07 28 40 */ cmplw r7, r5
/* 800A1090 0009CED0 40 80 00 2C */ bge lbl_800A10BC
.global lbl_800A1094
lbl_800A1094:
/* 800A1094 0009CED4 99 06 00 00 */ stb r8, 0x0(r6)
/* 800A1098 0009CED8 38 63 00 01 */ addi r3, r3, 0x1
/* 800A109C 0009CEDC A0 04 00 00 */ lhz r0, 0x0(r4)
/* 800A10A0 0009CEE0 7C 00 46 70 */ srawi r0, r0, 8
/* 800A10A4 0009CEE4 98 06 00 01 */ stb r0, 0x1(r6)
/* 800A10A8 0009CEE8 A0 04 00 00 */ lhz r0, 0x0(r4)
/* 800A10AC 0009CEEC 38 84 00 02 */ addi r4, r4, 0x2
/* 800A10B0 0009CEF0 98 06 00 02 */ stb r0, 0x2(r6)
/* 800A10B4 0009CEF4 38 C6 00 03 */ addi r6, r6, 0x3
/* 800A10B8 0009CEF8 42 00 FF DC */ bdnz lbl_800A1094
.global lbl_800A10BC
lbl_800A10BC:
/* 800A10BC 0009CEFC 7C C3 33 78 */ mr r3, r6
/* 800A10C0 0009CF00 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global sdpu_build_attrib_entry
sdpu_build_attrib_entry:
2022-10-16 16:05:58 +00:00
/* 800A10C4 0009CF04 38 00 00 09 */ li r0, 0x9
/* 800A10C8 0009CF08 98 03 00 00 */ stb r0, 0x0(r3)
/* 800A10CC 0009CF0C A0 04 00 08 */ lhz r0, 0x8(r4)
/* 800A10D0 0009CF10 7C 00 46 70 */ srawi r0, r0, 8
/* 800A10D4 0009CF14 98 03 00 01 */ stb r0, 0x1(r3)
/* 800A10D8 0009CF18 A0 04 00 08 */ lhz r0, 0x8(r4)
/* 800A10DC 0009CF1C 98 03 00 02 */ stb r0, 0x2(r3)
/* 800A10E0 0009CF20 88 C4 00 0A */ lbz r6, 0xa(r4)
/* 800A10E4 0009CF24 2C 06 00 05 */ cmpwi r6, 0x5
/* 800A10E8 0009CF28 41 82 00 64 */ beq lbl_800A114C
/* 800A10EC 0009CF2C 40 80 00 10 */ bge lbl_800A10FC
/* 800A10F0 0009CF30 2C 06 00 04 */ cmpwi r6, 0x4
/* 800A10F4 0009CF34 40 80 00 10 */ bge lbl_800A1104
/* 800A10F8 0009CF38 48 00 00 54 */ b lbl_800A114C
.global lbl_800A10FC
lbl_800A10FC:
/* 800A10FC 0009CF3C 2C 06 00 09 */ cmpwi r6, 0x9
/* 800A1100 0009CF40 40 80 00 4C */ bge lbl_800A114C
.global lbl_800A1104
lbl_800A1104:
/* 800A1104 0009CF44 54 C0 1D 78 */ rlwinm r0, r6, 3, 21, 28
/* 800A1108 0009CF48 38 C3 00 05 */ addi r6, r3, 0x5
/* 800A110C 0009CF4C 60 00 00 05 */ ori r0, r0, 0x5
/* 800A1110 0009CF50 38 A0 00 00 */ li r5, 0x0
/* 800A1114 0009CF54 98 03 00 03 */ stb r0, 0x3(r3)
/* 800A1118 0009CF58 80 04 00 00 */ lwz r0, 0x0(r4)
/* 800A111C 0009CF5C 98 03 00 04 */ stb r0, 0x4(r3)
/* 800A1120 0009CF60 48 00 00 18 */ b lbl_800A1138
.global lbl_800A1124
lbl_800A1124:
/* 800A1124 0009CF64 80 64 00 04 */ lwz r3, 0x4(r4)
/* 800A1128 0009CF68 7C 03 28 AE */ lbzx r0, r3, r5
/* 800A112C 0009CF6C 38 A5 00 01 */ addi r5, r5, 0x1
/* 800A1130 0009CF70 98 06 00 00 */ stb r0, 0x0(r6)
/* 800A1134 0009CF74 38 C6 00 01 */ addi r6, r6, 0x1
.global lbl_800A1138
lbl_800A1138:
/* 800A1138 0009CF78 80 04 00 00 */ lwz r0, 0x0(r4)
/* 800A113C 0009CF7C 7C 05 00 00 */ cmpw r5, r0
/* 800A1140 0009CF80 41 80 FF E4 */ blt lbl_800A1124
/* 800A1144 0009CF84 7C C3 33 78 */ mr r3, r6
/* 800A1148 0009CF88 4E 80 00 20 */ blr
.global lbl_800A114C
lbl_800A114C:
/* 800A114C 0009CF8C 80 04 00 00 */ lwz r0, 0x0(r4)
/* 800A1150 0009CF90 28 00 00 10 */ cmplwi r0, 0x10
/* 800A1154 0009CF94 41 81 00 7C */ bgt lbl_800A11D0
2022-10-16 16:31:36 +00:00
/* 800A1158 0009CF98 3C A0 80 44 */ lis r5, "@1109"@ha
2022-10-16 16:05:58 +00:00
/* 800A115C 0009CF9C 54 00 10 3A */ slwi r0, r0, 2
2022-10-16 16:31:36 +00:00
/* 800A1160 0009CFA0 38 A5 FF 38 */ addi r5, r5, "@1109"@l
2022-10-16 16:05:58 +00:00
/* 800A1164 0009CFA4 7C A5 00 2E */ lwzx r5, r5, r0
/* 800A1168 0009CFA8 7C A9 03 A6 */ mtctr r5
/* 800A116C 0009CFAC 4E 80 04 20 */ bctr
.global lbl_800A1170
lbl_800A1170:
/* 800A1170 0009CFB0 54 C0 1E 38 */ rlwinm r0, r6, 3, 24, 28
/* 800A1174 0009CFB4 38 C3 00 04 */ addi r6, r3, 0x4
/* 800A1178 0009CFB8 98 03 00 03 */ stb r0, 0x3(r3)
/* 800A117C 0009CFBC 48 00 00 6C */ b lbl_800A11E8
.global lbl_800A1180
lbl_800A1180:
/* 800A1180 0009CFC0 54 C0 1D 78 */ rlwinm r0, r6, 3, 21, 28
/* 800A1184 0009CFC4 38 C3 00 04 */ addi r6, r3, 0x4
/* 800A1188 0009CFC8 60 00 00 01 */ ori r0, r0, 0x1
/* 800A118C 0009CFCC 98 03 00 03 */ stb r0, 0x3(r3)
/* 800A1190 0009CFD0 48 00 00 58 */ b lbl_800A11E8
.global lbl_800A1194
lbl_800A1194:
/* 800A1194 0009CFD4 54 C0 1D 78 */ rlwinm r0, r6, 3, 21, 28
/* 800A1198 0009CFD8 38 C3 00 04 */ addi r6, r3, 0x4
/* 800A119C 0009CFDC 60 00 00 02 */ ori r0, r0, 0x2
/* 800A11A0 0009CFE0 98 03 00 03 */ stb r0, 0x3(r3)
/* 800A11A4 0009CFE4 48 00 00 44 */ b lbl_800A11E8
.global lbl_800A11A8
lbl_800A11A8:
/* 800A11A8 0009CFE8 54 C0 1D 78 */ rlwinm r0, r6, 3, 21, 28
/* 800A11AC 0009CFEC 38 C3 00 04 */ addi r6, r3, 0x4
/* 800A11B0 0009CFF0 60 00 00 03 */ ori r0, r0, 0x3
/* 800A11B4 0009CFF4 98 03 00 03 */ stb r0, 0x3(r3)
/* 800A11B8 0009CFF8 48 00 00 30 */ b lbl_800A11E8
.global lbl_800A11BC
lbl_800A11BC:
/* 800A11BC 0009CFFC 54 C0 1D 78 */ rlwinm r0, r6, 3, 21, 28
/* 800A11C0 0009D000 38 C3 00 04 */ addi r6, r3, 0x4
/* 800A11C4 0009D004 60 00 00 04 */ ori r0, r0, 0x4
/* 800A11C8 0009D008 98 03 00 03 */ stb r0, 0x3(r3)
/* 800A11CC 0009D00C 48 00 00 1C */ b lbl_800A11E8
.global lbl_800A11D0
lbl_800A11D0:
/* 800A11D0 0009D010 54 C0 1D 78 */ rlwinm r0, r6, 3, 21, 28
/* 800A11D4 0009D014 38 C3 00 05 */ addi r6, r3, 0x5
/* 800A11D8 0009D018 60 00 00 05 */ ori r0, r0, 0x5
/* 800A11DC 0009D01C 98 03 00 03 */ stb r0, 0x3(r3)
/* 800A11E0 0009D020 80 04 00 00 */ lwz r0, 0x0(r4)
/* 800A11E4 0009D024 98 03 00 04 */ stb r0, 0x4(r3)
.global lbl_800A11E8
lbl_800A11E8:
/* 800A11E8 0009D028 38 A0 00 00 */ li r5, 0x0
/* 800A11EC 0009D02C 48 00 00 18 */ b lbl_800A1204
.global lbl_800A11F0
lbl_800A11F0:
/* 800A11F0 0009D030 80 64 00 04 */ lwz r3, 0x4(r4)
/* 800A11F4 0009D034 7C 03 28 AE */ lbzx r0, r3, r5
/* 800A11F8 0009D038 38 A5 00 01 */ addi r5, r5, 0x1
/* 800A11FC 0009D03C 98 06 00 00 */ stb r0, 0x0(r6)
/* 800A1200 0009D040 38 C6 00 01 */ addi r6, r6, 0x1
.global lbl_800A1204
lbl_800A1204:
/* 800A1204 0009D044 80 04 00 00 */ lwz r0, 0x0(r4)
/* 800A1208 0009D048 7C 05 00 00 */ cmpw r5, r0
/* 800A120C 0009D04C 41 80 FF E4 */ blt lbl_800A11F0
/* 800A1210 0009D050 7C C3 33 78 */ mr r3, r6
/* 800A1214 0009D054 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global sdpu_build_n_send_error
sdpu_build_n_send_error:
2022-10-16 16:05:58 +00:00
/* 800A1218 0009D058 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 800A121C 0009D05C 7C 08 02 A6 */ mflr r0
/* 800A1220 0009D060 90 01 00 34 */ stw r0, 0x34(r1)
/* 800A1224 0009D064 39 61 00 30 */ addi r11, r1, 0x30
/* 800A1228 0009D068 4B F6 61 09 */ bl lbl_80007330
2022-10-16 16:31:36 +00:00
/* 800A122C 0009D06C 3C E0 80 50 */ lis r7, sdp_cb@ha
2022-10-16 16:05:58 +00:00
/* 800A1230 0009D070 7C 7F 1B 78 */ mr r31, r3
2022-10-16 16:31:36 +00:00
/* 800A1234 0009D074 38 E7 9C 20 */ addi r7, r7, sdp_cb@l
2022-10-16 16:05:58 +00:00
/* 800A1238 0009D078 7C 9E 23 78 */ mr r30, r4
/* 800A123C 0009D07C 88 07 46 30 */ lbz r0, 0x4630(r7)
/* 800A1240 0009D080 7C B9 2B 78 */ mr r25, r5
/* 800A1244 0009D084 7C D8 33 78 */ mr r24, r6
/* 800A1248 0009D088 28 00 00 02 */ cmplwi r0, 0x2
/* 800A124C 0009D08C 41 80 00 1C */ blt lbl_800A1268
/* 800A1250 0009D090 3C 60 00 0A */ lis r3, 0xa
2022-10-16 16:31:36 +00:00
/* 800A1254 0009D094 3C 80 80 44 */ lis r4, "@1118"@ha
2022-10-16 16:05:58 +00:00
/* 800A1258 0009D098 A0 DF 00 22 */ lhz r6, 0x22(r31)
/* 800A125C 0009D09C 38 63 00 01 */ addi r3, r3, 0x1
2022-10-16 16:31:36 +00:00
/* 800A1260 0009D0A0 38 84 FF 7C */ addi r4, r4, "@1118"@l
/* 800A1264 0009D0A4 4B FD 66 FD */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
.global lbl_800A1268
lbl_800A1268:
/* 800A1268 0009D0A8 38 60 00 02 */ li r3, 0x2
2022-10-16 16:31:36 +00:00
/* 800A126C 0009D0AC 4B FD 3B B5 */ bl GKI_getpoolbuf
2022-10-16 16:05:58 +00:00
/* 800A1270 0009D0B0 2C 03 00 00 */ cmpwi r3, 0x0
/* 800A1274 0009D0B4 7C 7A 1B 78 */ mr r26, r3
/* 800A1278 0009D0B8 40 82 00 2C */ bne lbl_800A12A4
2022-10-16 16:31:36 +00:00
/* 800A127C 0009D0BC 3C 60 80 50 */ lis r3, sdp_cb@ha
/* 800A1280 0009D0C0 38 63 9C 20 */ addi r3, r3, sdp_cb@l
2022-10-16 16:05:58 +00:00
/* 800A1284 0009D0C4 88 03 46 30 */ lbz r0, 0x4630(r3)
/* 800A1288 0009D0C8 28 00 00 01 */ cmplwi r0, 0x1
/* 800A128C 0009D0CC 41 80 00 B0 */ blt lbl_800A133C
2022-10-16 16:31:36 +00:00
/* 800A1290 0009D0D0 3C 80 80 44 */ lis r4, "@1119"@ha
2022-10-16 16:05:58 +00:00
/* 800A1294 0009D0D4 3C 60 00 0A */ lis r3, 0xa
2022-10-16 16:31:36 +00:00
/* 800A1298 0009D0D8 38 84 FF B4 */ addi r4, r4, "@1119"@l
/* 800A129C 0009D0DC 4B FD 66 C5 */ bl LogMsg_0
2022-10-16 16:05:58 +00:00
/* 800A12A0 0009D0E0 48 00 00 9C */ b lbl_800A133C
.global lbl_800A12A4
lbl_800A12A4:
/* 800A12A4 0009D0E4 38 00 00 09 */ li r0, 0x9
/* 800A12A8 0009D0E8 3B 83 00 11 */ addi r28, r3, 0x11
/* 800A12AC 0009D0EC B0 03 00 04 */ sth r0, 0x4(r3)
/* 800A12B0 0009D0F0 38 00 00 01 */ li r0, 0x1
/* 800A12B4 0009D0F4 3B BC 00 03 */ addi r29, r28, 0x3
/* 800A12B8 0009D0F8 7F C3 46 70 */ srawi r3, r30, 8
/* 800A12BC 0009D0FC 98 1C 00 00 */ stb r0, 0x0(r28)
/* 800A12C0 0009D100 7F BB EB 78 */ mr r27, r29
/* 800A12C4 0009D104 57 20 C6 3E */ extrwi r0, r25, 8, 16
/* 800A12C8 0009D108 2C 18 00 00 */ cmpwi r24, 0x0
/* 800A12CC 0009D10C 98 7C 00 01 */ stb r3, 0x1(r28)
/* 800A12D0 0009D110 3B BD 00 04 */ addi r29, r29, 0x4
/* 800A12D4 0009D114 9B DC 00 02 */ stb r30, 0x2(r28)
/* 800A12D8 0009D118 98 1C 00 05 */ stb r0, 0x5(r28)
/* 800A12DC 0009D11C 9B 3C 00 06 */ stb r25, 0x6(r28)
/* 800A12E0 0009D120 41 82 00 34 */ beq lbl_800A1314
/* 800A12E4 0009D124 7F 1E C3 78 */ mr r30, r24
/* 800A12E8 0009D128 3B 20 00 00 */ li r25, 0x0
/* 800A12EC 0009D12C 48 00 00 18 */ b lbl_800A1304
.global lbl_800A12F0
lbl_800A12F0:
/* 800A12F0 0009D130 88 1E 00 00 */ lbz r0, 0x0(r30)
/* 800A12F4 0009D134 3B 39 00 01 */ addi r25, r25, 0x1
/* 800A12F8 0009D138 3B DE 00 01 */ addi r30, r30, 0x1
/* 800A12FC 0009D13C 98 1D 00 00 */ stb r0, 0x0(r29)
/* 800A1300 0009D140 3B BD 00 01 */ addi r29, r29, 0x1
.global lbl_800A1304
lbl_800A1304:
/* 800A1304 0009D144 7F 03 C3 78 */ mr r3, r24
2022-10-16 16:31:36 +00:00
/* 800A1308 0009D148 4B F6 57 85 */ bl strlen
2022-10-16 16:05:58 +00:00
/* 800A130C 0009D14C 7C 19 18 00 */ cmpw r25, r3
/* 800A1310 0009D150 41 80 FF E0 */ blt lbl_800A12F0
.global lbl_800A1314
lbl_800A1314:
/* 800A1314 0009D154 7C 7B E8 50 */ subf r3, r27, r29
/* 800A1318 0009D158 7C 1C E8 50 */ subf r0, r28, r29
/* 800A131C 0009D15C 38 A3 FF FE */ addi r5, r3, -0x2
/* 800A1320 0009D160 7F 44 D3 78 */ mr r4, r26
/* 800A1324 0009D164 54 A3 C6 3E */ extrwi r3, r5, 8, 16
/* 800A1328 0009D168 98 7B 00 00 */ stb r3, 0x0(r27)
/* 800A132C 0009D16C 98 BB 00 01 */ stb r5, 0x1(r27)
/* 800A1330 0009D170 B0 1A 00 02 */ sth r0, 0x2(r26)
/* 800A1334 0009D174 A0 7F 00 22 */ lhz r3, 0x22(r31)
2022-10-16 16:31:36 +00:00
/* 800A1338 0009D178 4B FE F7 69 */ bl L2CA_DataWrite
2022-10-16 16:05:58 +00:00
.global lbl_800A133C
lbl_800A133C:
/* 800A133C 0009D17C 39 61 00 30 */ addi r11, r1, 0x30
/* 800A1340 0009D180 4B F6 60 3D */ bl lbl_8000737C
/* 800A1344 0009D184 80 01 00 34 */ lwz r0, 0x34(r1)
/* 800A1348 0009D188 7C 08 03 A6 */ mtlr r0
/* 800A134C 0009D18C 38 21 00 30 */ addi r1, r1, 0x30
/* 800A1350 0009D190 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global sdpu_extract_uid_seq
sdpu_extract_uid_seq:
2022-10-16 16:05:58 +00:00
/* 800A1354 0009D194 38 00 00 00 */ li r0, 0x0
/* 800A1358 0009D198 39 03 00 01 */ addi r8, r3, 0x1
/* 800A135C 0009D19C B0 05 00 00 */ sth r0, 0x0(r5)
/* 800A1360 0009D1A0 88 63 00 00 */ lbz r3, 0x0(r3)
/* 800A1364 0009D1A4 7C 60 1E 70 */ srawi r0, r3, 3
/* 800A1368 0009D1A8 54 66 07 7E */ clrlwi r6, r3, 29
/* 800A136C 0009D1AC 28 00 00 06 */ cmplwi r0, 0x6
/* 800A1370 0009D1B0 41 82 00 0C */ beq lbl_800A137C
/* 800A1374 0009D1B4 38 60 00 00 */ li r3, 0x0
/* 800A1378 0009D1B8 4E 80 00 20 */ blr
.global lbl_800A137C
lbl_800A137C:
/* 800A137C 0009D1BC 28 06 00 07 */ cmplwi r6, 0x7
/* 800A1380 0009D1C0 41 81 00 8C */ bgt lbl_800A140C
2022-10-16 16:31:36 +00:00
/* 800A1384 0009D1C4 3C 60 80 44 */ lis r3, "@1172_8043FFF0"@ha
2022-10-16 16:05:58 +00:00
/* 800A1388 0009D1C8 54 C0 10 3A */ slwi r0, r6, 2
2022-10-16 16:31:36 +00:00
/* 800A138C 0009D1CC 38 63 FF F0 */ addi r3, r3, "@1172_8043FFF0"@l
2022-10-16 16:05:58 +00:00
/* 800A1390 0009D1D0 7C 63 00 2E */ lwzx r3, r3, r0
/* 800A1394 0009D1D4 7C 69 03 A6 */ mtctr r3
/* 800A1398 0009D1D8 4E 80 04 20 */ bctr
.global lbl_800A139C
lbl_800A139C:
/* 800A139C 0009D1DC 38 00 00 02 */ li r0, 0x2
/* 800A13A0 0009D1E0 48 00 00 74 */ b lbl_800A1414
.global lbl_800A13A4
lbl_800A13A4:
/* 800A13A4 0009D1E4 38 00 00 04 */ li r0, 0x4
/* 800A13A8 0009D1E8 48 00 00 6C */ b lbl_800A1414
.global lbl_800A13AC
lbl_800A13AC:
/* 800A13AC 0009D1EC 38 00 00 10 */ li r0, 0x10
/* 800A13B0 0009D1F0 48 00 00 64 */ b lbl_800A1414
.global lbl_800A13B4
lbl_800A13B4:
/* 800A13B4 0009D1F4 88 08 00 00 */ lbz r0, 0x0(r8)
/* 800A13B8 0009D1F8 39 08 00 01 */ addi r8, r8, 0x1
/* 800A13BC 0009D1FC 48 00 00 58 */ b lbl_800A1414
.global lbl_800A13C0
lbl_800A13C0:
/* 800A13C0 0009D200 88 68 00 00 */ lbz r3, 0x0(r8)
/* 800A13C4 0009D204 88 08 00 01 */ lbz r0, 0x1(r8)
/* 800A13C8 0009D208 39 08 00 02 */ addi r8, r8, 0x2
/* 800A13CC 0009D20C 54 63 40 2E */ slwi r3, r3, 8
/* 800A13D0 0009D210 7C 03 02 14 */ add r0, r3, r0
/* 800A13D4 0009D214 54 00 04 3E */ clrlwi r0, r0, 16
/* 800A13D8 0009D218 48 00 00 3C */ b lbl_800A1414
.global lbl_800A13DC
lbl_800A13DC:
/* 800A13DC 0009D21C 88 C8 00 00 */ lbz r6, 0x0(r8)
/* 800A13E0 0009D220 88 68 00 01 */ lbz r3, 0x1(r8)
/* 800A13E4 0009D224 88 08 00 02 */ lbz r0, 0x2(r8)
/* 800A13E8 0009D228 54 C7 C0 0E */ slwi r7, r6, 24
/* 800A13EC 0009D22C 88 C8 00 03 */ lbz r6, 0x3(r8)
/* 800A13F0 0009D230 54 63 80 1E */ slwi r3, r3, 16
/* 800A13F4 0009D234 54 00 40 2E */ slwi r0, r0, 8
/* 800A13F8 0009D238 39 08 00 04 */ addi r8, r8, 0x4
/* 800A13FC 0009D23C 7C 67 1A 14 */ add r3, r7, r3
/* 800A1400 0009D240 7C 06 02 14 */ add r0, r6, r0
/* 800A1404 0009D244 7C 03 02 14 */ add r0, r3, r0
/* 800A1408 0009D248 48 00 00 0C */ b lbl_800A1414
.global lbl_800A140C
lbl_800A140C:
/* 800A140C 0009D24C 38 60 00 00 */ li r3, 0x0
/* 800A1410 0009D250 4E 80 00 20 */ blr
.global lbl_800A1414
lbl_800A1414:
/* 800A1414 0009D254 7C 00 20 40 */ cmplw r0, r4
/* 800A1418 0009D258 41 80 00 0C */ blt lbl_800A1424
/* 800A141C 0009D25C 38 60 00 00 */ li r3, 0x0
/* 800A1420 0009D260 4E 80 00 20 */ blr
.global lbl_800A1424
lbl_800A1424:
/* 800A1424 0009D264 7C 08 02 14 */ add r0, r8, r0
2022-10-16 16:31:36 +00:00
/* 800A1428 0009D268 3C 80 80 44 */ lis r4, "@1173_8043FFD0"@ha
2022-10-16 16:05:58 +00:00
/* 800A142C 0009D26C 3C 60 80 00 */ lis r3, 0x8000
/* 800A1430 0009D270 48 00 02 58 */ b lbl_800A1688
.global lbl_800A1434
lbl_800A1434:
/* 800A1434 0009D274 88 E8 00 00 */ lbz r7, 0x0(r8)
/* 800A1438 0009D278 39 08 00 01 */ addi r8, r8, 0x1
/* 800A143C 0009D27C 7C E6 1E 70 */ srawi r6, r7, 3
/* 800A1440 0009D280 54 E9 07 7E */ clrlwi r9, r7, 29
/* 800A1444 0009D284 28 06 00 03 */ cmplwi r6, 0x3
/* 800A1448 0009D288 41 82 00 0C */ beq lbl_800A1454
/* 800A144C 0009D28C 38 60 00 00 */ li r3, 0x0
/* 800A1450 0009D290 4E 80 00 20 */ blr
.global lbl_800A1454
lbl_800A1454:
/* 800A1454 0009D294 28 09 00 07 */ cmplwi r9, 0x7
/* 800A1458 0009D298 41 81 00 88 */ bgt lbl_800A14E0
2022-10-16 16:31:36 +00:00
/* 800A145C 0009D29C 38 E4 FF D0 */ addi r7, r4, "@1173_8043FFD0"@l
2022-10-16 16:05:58 +00:00
/* 800A1460 0009D2A0 55 26 10 3A */ slwi r6, r9, 2
/* 800A1464 0009D2A4 7C E7 30 2E */ lwzx r7, r7, r6
/* 800A1468 0009D2A8 7C E9 03 A6 */ mtctr r7
/* 800A146C 0009D2AC 4E 80 04 20 */ bctr
.global lbl_800A1470
lbl_800A1470:
/* 800A1470 0009D2B0 38 C0 00 02 */ li r6, 0x2
/* 800A1474 0009D2B4 48 00 00 74 */ b lbl_800A14E8
.global lbl_800A1478
lbl_800A1478:
/* 800A1478 0009D2B8 38 C0 00 04 */ li r6, 0x4
/* 800A147C 0009D2BC 48 00 00 6C */ b lbl_800A14E8
.global lbl_800A1480
lbl_800A1480:
/* 800A1480 0009D2C0 38 C0 00 10 */ li r6, 0x10
/* 800A1484 0009D2C4 48 00 00 64 */ b lbl_800A14E8
.global lbl_800A1488
lbl_800A1488:
/* 800A1488 0009D2C8 88 C8 00 00 */ lbz r6, 0x0(r8)
/* 800A148C 0009D2CC 39 08 00 01 */ addi r8, r8, 0x1
/* 800A1490 0009D2D0 48 00 00 58 */ b lbl_800A14E8
.global lbl_800A1494
lbl_800A1494:
/* 800A1494 0009D2D4 88 E8 00 00 */ lbz r7, 0x0(r8)
/* 800A1498 0009D2D8 88 C8 00 01 */ lbz r6, 0x1(r8)
/* 800A149C 0009D2DC 39 08 00 02 */ addi r8, r8, 0x2
/* 800A14A0 0009D2E0 54 E7 40 2E */ slwi r7, r7, 8
/* 800A14A4 0009D2E4 7C C7 32 14 */ add r6, r7, r6
/* 800A14A8 0009D2E8 54 C6 04 3E */ clrlwi r6, r6, 16
/* 800A14AC 0009D2EC 48 00 00 3C */ b lbl_800A14E8
.global lbl_800A14B0
lbl_800A14B0:
/* 800A14B0 0009D2F0 89 28 00 00 */ lbz r9, 0x0(r8)
/* 800A14B4 0009D2F4 88 E8 00 01 */ lbz r7, 0x1(r8)
/* 800A14B8 0009D2F8 88 C8 00 02 */ lbz r6, 0x2(r8)
/* 800A14BC 0009D2FC 55 2A C0 0E */ slwi r10, r9, 24
/* 800A14C0 0009D300 89 28 00 03 */ lbz r9, 0x3(r8)
/* 800A14C4 0009D304 54 E7 80 1E */ slwi r7, r7, 16
/* 800A14C8 0009D308 54 C6 40 2E */ slwi r6, r6, 8
/* 800A14CC 0009D30C 39 08 00 04 */ addi r8, r8, 0x4
/* 800A14D0 0009D310 7C EA 3A 14 */ add r7, r10, r7
/* 800A14D4 0009D314 7C C9 32 14 */ add r6, r9, r6
/* 800A14D8 0009D318 7C C7 32 14 */ add r6, r7, r6
/* 800A14DC 0009D31C 48 00 00 0C */ b lbl_800A14E8
.global lbl_800A14E0
lbl_800A14E0:
/* 800A14E0 0009D320 38 60 00 00 */ li r3, 0x0
/* 800A14E4 0009D324 4E 80 00 20 */ blr
.global lbl_800A14E8
lbl_800A14E8:
/* 800A14E8 0009D328 28 06 00 02 */ cmplwi r6, 0x2
/* 800A14EC 0009D32C 41 82 00 14 */ beq lbl_800A1500
/* 800A14F0 0009D330 28 06 00 04 */ cmplwi r6, 0x4
/* 800A14F4 0009D334 41 82 00 0C */ beq lbl_800A1500
/* 800A14F8 0009D338 28 06 00 10 */ cmplwi r6, 0x10
/* 800A14FC 0009D33C 40 82 01 70 */ bne lbl_800A166C
.global lbl_800A1500
lbl_800A1500:
/* 800A1500 0009D340 A1 25 00 00 */ lhz r9, 0x0(r5)
/* 800A1504 0009D344 2C 86 00 00 */ cmpwi cr1, r6, 0x0
/* 800A1508 0009D348 38 E0 00 00 */ li r7, 0x0
/* 800A150C 0009D34C 1D 29 00 12 */ mulli r9, r9, 0x12
/* 800A1510 0009D350 7D 25 4A 14 */ add r9, r5, r9
/* 800A1514 0009D354 B0 C9 00 02 */ sth r6, 0x2(r9)
/* 800A1518 0009D358 40 85 01 44 */ ble cr1, lbl_800A165C
/* 800A151C 0009D35C 2C 06 00 08 */ cmpwi r6, 0x8
/* 800A1520 0009D360 39 46 FF F8 */ addi r10, r6, -0x8
/* 800A1524 0009D364 40 81 01 04 */ ble lbl_800A1628
/* 800A1528 0009D368 39 60 00 00 */ li r11, 0x0
/* 800A152C 0009D36C 41 84 00 14 */ blt cr1, lbl_800A1540
/* 800A1530 0009D370 39 23 FF FE */ addi r9, r3, -0x2
/* 800A1534 0009D374 7C 06 48 00 */ cmpw r6, r9
/* 800A1538 0009D378 41 81 00 08 */ bgt lbl_800A1540
/* 800A153C 0009D37C 39 60 00 01 */ li r11, 0x1
.global lbl_800A1540
lbl_800A1540:
/* 800A1540 0009D380 2C 0B 00 00 */ cmpwi r11, 0x0
/* 800A1544 0009D384 41 82 00 E4 */ beq lbl_800A1628
/* 800A1548 0009D388 39 2A 00 07 */ addi r9, r10, 0x7
/* 800A154C 0009D38C 55 29 E8 FE */ srwi r9, r9, 3
/* 800A1550 0009D390 7D 29 03 A6 */ mtctr r9
/* 800A1554 0009D394 2C 0A 00 00 */ cmpwi r10, 0x0
/* 800A1558 0009D398 40 81 00 D0 */ ble lbl_800A1628
.global lbl_800A155C
lbl_800A155C:
/* 800A155C 0009D39C A1 25 00 00 */ lhz r9, 0x0(r5)
/* 800A1560 0009D3A0 89 48 00 00 */ lbz r10, 0x0(r8)
/* 800A1564 0009D3A4 1D 29 00 12 */ mulli r9, r9, 0x12
/* 800A1568 0009D3A8 7D 25 4A 14 */ add r9, r5, r9
/* 800A156C 0009D3AC 7D 29 3A 14 */ add r9, r9, r7
/* 800A1570 0009D3B0 99 49 00 04 */ stb r10, 0x4(r9)
/* 800A1574 0009D3B4 A1 25 00 00 */ lhz r9, 0x0(r5)
/* 800A1578 0009D3B8 89 48 00 01 */ lbz r10, 0x1(r8)
/* 800A157C 0009D3BC 1D 29 00 12 */ mulli r9, r9, 0x12
/* 800A1580 0009D3C0 7D 25 4A 14 */ add r9, r5, r9
/* 800A1584 0009D3C4 7D 29 3A 14 */ add r9, r9, r7
/* 800A1588 0009D3C8 99 49 00 05 */ stb r10, 0x5(r9)
/* 800A158C 0009D3CC A1 25 00 00 */ lhz r9, 0x0(r5)
/* 800A1590 0009D3D0 89 48 00 02 */ lbz r10, 0x2(r8)
/* 800A1594 0009D3D4 1D 29 00 12 */ mulli r9, r9, 0x12
/* 800A1598 0009D3D8 7D 25 4A 14 */ add r9, r5, r9
/* 800A159C 0009D3DC 7D 29 3A 14 */ add r9, r9, r7
/* 800A15A0 0009D3E0 99 49 00 06 */ stb r10, 0x6(r9)
/* 800A15A4 0009D3E4 A1 25 00 00 */ lhz r9, 0x0(r5)
/* 800A15A8 0009D3E8 89 48 00 03 */ lbz r10, 0x3(r8)
/* 800A15AC 0009D3EC 1D 29 00 12 */ mulli r9, r9, 0x12
/* 800A15B0 0009D3F0 7D 25 4A 14 */ add r9, r5, r9
/* 800A15B4 0009D3F4 7D 29 3A 14 */ add r9, r9, r7
/* 800A15B8 0009D3F8 99 49 00 07 */ stb r10, 0x7(r9)
/* 800A15BC 0009D3FC A1 25 00 00 */ lhz r9, 0x0(r5)
/* 800A15C0 0009D400 89 48 00 04 */ lbz r10, 0x4(r8)
/* 800A15C4 0009D404 1D 29 00 12 */ mulli r9, r9, 0x12
/* 800A15C8 0009D408 7D 25 4A 14 */ add r9, r5, r9
/* 800A15CC 0009D40C 7D 29 3A 14 */ add r9, r9, r7
/* 800A15D0 0009D410 99 49 00 08 */ stb r10, 0x8(r9)
/* 800A15D4 0009D414 A1 25 00 00 */ lhz r9, 0x0(r5)
/* 800A15D8 0009D418 89 48 00 05 */ lbz r10, 0x5(r8)
/* 800A15DC 0009D41C 1D 29 00 12 */ mulli r9, r9, 0x12
/* 800A15E0 0009D420 7D 25 4A 14 */ add r9, r5, r9
/* 800A15E4 0009D424 7D 29 3A 14 */ add r9, r9, r7
/* 800A15E8 0009D428 99 49 00 09 */ stb r10, 0x9(r9)
/* 800A15EC 0009D42C A1 25 00 00 */ lhz r9, 0x0(r5)
/* 800A15F0 0009D430 89 48 00 06 */ lbz r10, 0x6(r8)
/* 800A15F4 0009D434 1D 29 00 12 */ mulli r9, r9, 0x12
/* 800A15F8 0009D438 7D 25 4A 14 */ add r9, r5, r9
/* 800A15FC 0009D43C 7D 29 3A 14 */ add r9, r9, r7
/* 800A1600 0009D440 99 49 00 0A */ stb r10, 0xa(r9)
/* 800A1604 0009D444 A1 25 00 00 */ lhz r9, 0x0(r5)
/* 800A1608 0009D448 89 48 00 07 */ lbz r10, 0x7(r8)
/* 800A160C 0009D44C 39 08 00 08 */ addi r8, r8, 0x8
/* 800A1610 0009D450 1D 29 00 12 */ mulli r9, r9, 0x12
/* 800A1614 0009D454 7D 25 4A 14 */ add r9, r5, r9
/* 800A1618 0009D458 7D 29 3A 14 */ add r9, r9, r7
/* 800A161C 0009D45C 38 E7 00 08 */ addi r7, r7, 0x8
/* 800A1620 0009D460 99 49 00 0B */ stb r10, 0xb(r9)
/* 800A1624 0009D464 42 00 FF 38 */ bdnz lbl_800A155C
.global lbl_800A1628
lbl_800A1628:
/* 800A1628 0009D468 7D 27 30 50 */ subf r9, r7, r6
/* 800A162C 0009D46C 7D 29 03 A6 */ mtctr r9
/* 800A1630 0009D470 7C 07 30 00 */ cmpw r7, r6
/* 800A1634 0009D474 40 80 00 28 */ bge lbl_800A165C
.global lbl_800A1638
lbl_800A1638:
/* 800A1638 0009D478 A0 C5 00 00 */ lhz r6, 0x0(r5)
/* 800A163C 0009D47C 89 28 00 00 */ lbz r9, 0x0(r8)
/* 800A1640 0009D480 39 08 00 01 */ addi r8, r8, 0x1
/* 800A1644 0009D484 1C C6 00 12 */ mulli r6, r6, 0x12
/* 800A1648 0009D488 7C C5 32 14 */ add r6, r5, r6
/* 800A164C 0009D48C 7C C6 3A 14 */ add r6, r6, r7
/* 800A1650 0009D490 38 E7 00 01 */ addi r7, r7, 0x1
/* 800A1654 0009D494 99 26 00 04 */ stb r9, 0x4(r6)
/* 800A1658 0009D498 42 00 FF E0 */ bdnz lbl_800A1638
.global lbl_800A165C
lbl_800A165C:
/* 800A165C 0009D49C A0 C5 00 00 */ lhz r6, 0x0(r5)
/* 800A1660 0009D4A0 38 C6 00 01 */ addi r6, r6, 0x1
/* 800A1664 0009D4A4 B0 C5 00 00 */ sth r6, 0x0(r5)
/* 800A1668 0009D4A8 48 00 00 0C */ b lbl_800A1674
.global lbl_800A166C
lbl_800A166C:
/* 800A166C 0009D4AC 38 60 00 00 */ li r3, 0x0
/* 800A1670 0009D4B0 4E 80 00 20 */ blr
.global lbl_800A1674
lbl_800A1674:
/* 800A1674 0009D4B4 54 C6 04 3E */ clrlwi r6, r6, 16
/* 800A1678 0009D4B8 28 06 00 10 */ cmplwi r6, 0x10
/* 800A167C 0009D4BC 41 80 00 0C */ blt lbl_800A1688
/* 800A1680 0009D4C0 38 60 00 00 */ li r3, 0x0
/* 800A1684 0009D4C4 4E 80 00 20 */ blr
.global lbl_800A1688
lbl_800A1688:
/* 800A1688 0009D4C8 7C 08 00 40 */ cmplw r8, r0
/* 800A168C 0009D4CC 41 80 FD A8 */ blt lbl_800A1434
/* 800A1690 0009D4D0 41 82 00 0C */ beq lbl_800A169C
/* 800A1694 0009D4D4 38 60 00 00 */ li r3, 0x0
/* 800A1698 0009D4D8 4E 80 00 20 */ blr
.global lbl_800A169C
lbl_800A169C:
/* 800A169C 0009D4DC 7D 03 43 78 */ mr r3, r8
/* 800A16A0 0009D4E0 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global sdpu_extract_attr_seq
sdpu_extract_attr_seq:
2022-10-16 16:05:58 +00:00
/* 800A16A4 0009D4E4 38 00 00 00 */ li r0, 0x0
/* 800A16A8 0009D4E8 B0 05 00 00 */ sth r0, 0x0(r5)
/* 800A16AC 0009D4EC 88 C3 00 00 */ lbz r6, 0x0(r3)
/* 800A16B0 0009D4F0 7C C0 1E 70 */ srawi r0, r6, 3
/* 800A16B4 0009D4F4 54 C6 07 7E */ clrlwi r6, r6, 29
/* 800A16B8 0009D4F8 28 00 00 06 */ cmplwi r0, 0x6
/* 800A16BC 0009D4FC 41 82 00 0C */ beq lbl_800A16C8
/* 800A16C0 0009D500 38 63 00 01 */ addi r3, r3, 0x1
/* 800A16C4 0009D504 4E 80 00 20 */ blr
.global lbl_800A16C8
lbl_800A16C8:
/* 800A16C8 0009D508 2C 06 00 06 */ cmpwi r6, 0x6
/* 800A16CC 0009D50C 41 82 00 2C */ beq lbl_800A16F8
/* 800A16D0 0009D510 40 80 00 10 */ bge lbl_800A16E0
/* 800A16D4 0009D514 2C 06 00 05 */ cmpwi r6, 0x5
/* 800A16D8 0009D518 40 80 00 14 */ bge lbl_800A16EC
/* 800A16DC 0009D51C 48 00 00 68 */ b lbl_800A1744
.global lbl_800A16E0
lbl_800A16E0:
/* 800A16E0 0009D520 2C 06 00 08 */ cmpwi r6, 0x8
/* 800A16E4 0009D524 40 80 00 60 */ bge lbl_800A1744
/* 800A16E8 0009D528 48 00 00 2C */ b lbl_800A1714
.global lbl_800A16EC
lbl_800A16EC:
/* 800A16EC 0009D52C 88 03 00 01 */ lbz r0, 0x1(r3)
/* 800A16F0 0009D530 38 C3 00 02 */ addi r6, r3, 0x2
/* 800A16F4 0009D534 48 00 00 58 */ b lbl_800A174C
.global lbl_800A16F8
lbl_800A16F8:
/* 800A16F8 0009D538 88 E3 00 01 */ lbz r7, 0x1(r3)
/* 800A16FC 0009D53C 38 C3 00 03 */ addi r6, r3, 0x3
/* 800A1700 0009D540 88 03 00 02 */ lbz r0, 0x2(r3)
/* 800A1704 0009D544 54 E3 40 2E */ slwi r3, r7, 8
/* 800A1708 0009D548 7C 03 02 14 */ add r0, r3, r0
/* 800A170C 0009D54C 54 00 04 3E */ clrlwi r0, r0, 16
/* 800A1710 0009D550 48 00 00 3C */ b lbl_800A174C
.global lbl_800A1714
lbl_800A1714:
/* 800A1714 0009D554 89 03 00 01 */ lbz r8, 0x1(r3)
/* 800A1718 0009D558 38 C3 00 05 */ addi r6, r3, 0x5
/* 800A171C 0009D55C 88 E3 00 02 */ lbz r7, 0x2(r3)
/* 800A1720 0009D560 88 03 00 03 */ lbz r0, 0x3(r3)
/* 800A1724 0009D564 55 08 C0 0E */ slwi r8, r8, 24
/* 800A1728 0009D568 88 63 00 04 */ lbz r3, 0x4(r3)
/* 800A172C 0009D56C 54 E7 80 1E */ slwi r7, r7, 16
/* 800A1730 0009D570 54 00 40 2E */ slwi r0, r0, 8
/* 800A1734 0009D574 7C 67 1A 14 */ add r3, r7, r3
/* 800A1738 0009D578 7C 08 02 14 */ add r0, r8, r0
/* 800A173C 0009D57C 7C 03 02 14 */ add r0, r3, r0
/* 800A1740 0009D580 48 00 00 0C */ b lbl_800A174C
.global lbl_800A1744
lbl_800A1744:
/* 800A1744 0009D584 38 63 00 01 */ addi r3, r3, 0x1
/* 800A1748 0009D588 4E 80 00 20 */ blr
.global lbl_800A174C
lbl_800A174C:
/* 800A174C 0009D58C 7C 00 20 40 */ cmplw r0, r4
/* 800A1750 0009D590 40 81 00 0C */ ble lbl_800A175C
/* 800A1754 0009D594 7C C3 33 78 */ mr r3, r6
/* 800A1758 0009D598 4E 80 00 20 */ blr
.global lbl_800A175C
lbl_800A175C:
/* 800A175C 0009D59C 7C 06 02 14 */ add r0, r6, r0
/* 800A1760 0009D5A0 48 00 01 84 */ b lbl_800A18E4
.global lbl_800A1764
lbl_800A1764:
/* 800A1764 0009D5A4 88 86 00 00 */ lbz r4, 0x0(r6)
/* 800A1768 0009D5A8 38 C6 00 01 */ addi r6, r6, 0x1
/* 800A176C 0009D5AC 7C 83 1E 70 */ srawi r3, r4, 3
/* 800A1770 0009D5B0 54 84 07 7E */ clrlwi r4, r4, 29
/* 800A1774 0009D5B4 28 03 00 01 */ cmplwi r3, 0x1
/* 800A1778 0009D5B8 41 82 00 0C */ beq lbl_800A1784
/* 800A177C 0009D5BC 7C C3 33 78 */ mr r3, r6
/* 800A1780 0009D5C0 4E 80 00 20 */ blr
.global lbl_800A1784
lbl_800A1784:
/* 800A1784 0009D5C4 2C 04 00 05 */ cmpwi r4, 0x5
/* 800A1788 0009D5C8 41 82 00 40 */ beq lbl_800A17C8
/* 800A178C 0009D5CC 40 80 00 1C */ bge lbl_800A17A8
/* 800A1790 0009D5D0 2C 04 00 02 */ cmpwi r4, 0x2
/* 800A1794 0009D5D4 41 82 00 2C */ beq lbl_800A17C0
/* 800A1798 0009D5D8 40 80 00 88 */ bge lbl_800A1820
/* 800A179C 0009D5DC 2C 04 00 01 */ cmpwi r4, 0x1
/* 800A17A0 0009D5E0 40 80 00 18 */ bge lbl_800A17B8
/* 800A17A4 0009D5E4 48 00 00 7C */ b lbl_800A1820
.global lbl_800A17A8
lbl_800A17A8:
/* 800A17A8 0009D5E8 2C 04 00 07 */ cmpwi r4, 0x7
/* 800A17AC 0009D5EC 41 82 00 44 */ beq lbl_800A17F0
/* 800A17B0 0009D5F0 40 80 00 70 */ bge lbl_800A1820
/* 800A17B4 0009D5F4 48 00 00 20 */ b lbl_800A17D4
.global lbl_800A17B8
lbl_800A17B8:
/* 800A17B8 0009D5F8 38 60 00 02 */ li r3, 0x2
/* 800A17BC 0009D5FC 48 00 00 6C */ b lbl_800A1828
.global lbl_800A17C0
lbl_800A17C0:
/* 800A17C0 0009D600 38 60 00 04 */ li r3, 0x4
/* 800A17C4 0009D604 48 00 00 64 */ b lbl_800A1828
.global lbl_800A17C8
lbl_800A17C8:
/* 800A17C8 0009D608 88 66 00 00 */ lbz r3, 0x0(r6)
/* 800A17CC 0009D60C 38 C6 00 01 */ addi r6, r6, 0x1
/* 800A17D0 0009D610 48 00 00 58 */ b lbl_800A1828
.global lbl_800A17D4
lbl_800A17D4:
/* 800A17D4 0009D614 88 86 00 00 */ lbz r4, 0x0(r6)
/* 800A17D8 0009D618 88 66 00 01 */ lbz r3, 0x1(r6)
/* 800A17DC 0009D61C 38 C6 00 02 */ addi r6, r6, 0x2
/* 800A17E0 0009D620 54 84 40 2E */ slwi r4, r4, 8
/* 800A17E4 0009D624 7C 64 1A 14 */ add r3, r4, r3
/* 800A17E8 0009D628 54 63 04 3E */ clrlwi r3, r3, 16
/* 800A17EC 0009D62C 48 00 00 3C */ b lbl_800A1828
.global lbl_800A17F0
lbl_800A17F0:
/* 800A17F0 0009D630 88 E6 00 00 */ lbz r7, 0x0(r6)
/* 800A17F4 0009D634 88 86 00 01 */ lbz r4, 0x1(r6)
/* 800A17F8 0009D638 88 66 00 02 */ lbz r3, 0x2(r6)
/* 800A17FC 0009D63C 54 E8 C0 0E */ slwi r8, r7, 24
/* 800A1800 0009D640 88 E6 00 03 */ lbz r7, 0x3(r6)
/* 800A1804 0009D644 54 84 80 1E */ slwi r4, r4, 16
/* 800A1808 0009D648 54 63 40 2E */ slwi r3, r3, 8
/* 800A180C 0009D64C 38 C6 00 04 */ addi r6, r6, 0x4
/* 800A1810 0009D650 7C 88 22 14 */ add r4, r8, r4
/* 800A1814 0009D654 7C 67 1A 14 */ add r3, r7, r3
/* 800A1818 0009D658 7C 64 1A 14 */ add r3, r4, r3
/* 800A181C 0009D65C 48 00 00 0C */ b lbl_800A1828
.global lbl_800A1820
lbl_800A1820:
/* 800A1820 0009D660 38 60 00 00 */ li r3, 0x0
/* 800A1824 0009D664 4E 80 00 20 */ blr
.global lbl_800A1828
lbl_800A1828:
/* 800A1828 0009D668 28 03 00 02 */ cmplwi r3, 0x2
/* 800A182C 0009D66C 40 82 00 40 */ bne lbl_800A186C
/* 800A1830 0009D670 88 E6 00 00 */ lbz r7, 0x0(r6)
/* 800A1834 0009D674 A0 65 00 00 */ lhz r3, 0x0(r5)
/* 800A1838 0009D678 88 86 00 01 */ lbz r4, 0x1(r6)
/* 800A183C 0009D67C 54 E7 40 2E */ slwi r7, r7, 8
/* 800A1840 0009D680 54 63 10 3A */ slwi r3, r3, 2
/* 800A1844 0009D684 38 C6 00 02 */ addi r6, r6, 0x2
/* 800A1848 0009D688 7C 87 22 14 */ add r4, r7, r4
/* 800A184C 0009D68C 7C 65 1A 14 */ add r3, r5, r3
/* 800A1850 0009D690 B0 83 00 02 */ sth r4, 0x2(r3)
/* 800A1854 0009D694 A0 65 00 00 */ lhz r3, 0x0(r5)
/* 800A1858 0009D698 54 63 10 3A */ slwi r3, r3, 2
/* 800A185C 0009D69C 7C 85 1A 14 */ add r4, r5, r3
/* 800A1860 0009D6A0 A0 64 00 02 */ lhz r3, 0x2(r4)
/* 800A1864 0009D6A4 B0 64 00 04 */ sth r3, 0x4(r4)
/* 800A1868 0009D6A8 48 00 00 5C */ b lbl_800A18C4
.global lbl_800A186C
lbl_800A186C:
/* 800A186C 0009D6AC 28 03 00 04 */ cmplwi r3, 0x4
/* 800A1870 0009D6B0 40 82 00 4C */ bne lbl_800A18BC
/* 800A1874 0009D6B4 88 E6 00 00 */ lbz r7, 0x0(r6)
/* 800A1878 0009D6B8 A0 65 00 00 */ lhz r3, 0x0(r5)
/* 800A187C 0009D6BC 88 86 00 01 */ lbz r4, 0x1(r6)
/* 800A1880 0009D6C0 54 E7 40 2E */ slwi r7, r7, 8
/* 800A1884 0009D6C4 54 63 10 3A */ slwi r3, r3, 2
/* 800A1888 0009D6C8 7C 87 22 14 */ add r4, r7, r4
/* 800A188C 0009D6CC 7C 65 1A 14 */ add r3, r5, r3
/* 800A1890 0009D6D0 B0 83 00 02 */ sth r4, 0x2(r3)
/* 800A1894 0009D6D4 88 E6 00 02 */ lbz r7, 0x2(r6)
/* 800A1898 0009D6D8 A0 65 00 00 */ lhz r3, 0x0(r5)
/* 800A189C 0009D6DC 88 86 00 03 */ lbz r4, 0x3(r6)
/* 800A18A0 0009D6E0 54 E7 40 2E */ slwi r7, r7, 8
/* 800A18A4 0009D6E4 54 63 10 3A */ slwi r3, r3, 2
/* 800A18A8 0009D6E8 38 C6 00 04 */ addi r6, r6, 0x4
/* 800A18AC 0009D6EC 7C 87 22 14 */ add r4, r7, r4
/* 800A18B0 0009D6F0 7C 65 1A 14 */ add r3, r5, r3
/* 800A18B4 0009D6F4 B0 83 00 04 */ sth r4, 0x4(r3)
/* 800A18B8 0009D6F8 48 00 00 0C */ b lbl_800A18C4
.global lbl_800A18BC
lbl_800A18BC:
/* 800A18BC 0009D6FC 38 60 00 00 */ li r3, 0x0
/* 800A18C0 0009D700 4E 80 00 20 */ blr
.global lbl_800A18C4
lbl_800A18C4:
/* 800A18C4 0009D704 A0 65 00 00 */ lhz r3, 0x0(r5)
/* 800A18C8 0009D708 38 83 00 01 */ addi r4, r3, 0x1
/* 800A18CC 0009D70C 54 83 04 3E */ clrlwi r3, r4, 16
/* 800A18D0 0009D710 B0 85 00 00 */ sth r4, 0x0(r5)
/* 800A18D4 0009D714 28 03 00 10 */ cmplwi r3, 0x10
/* 800A18D8 0009D718 41 80 00 0C */ blt lbl_800A18E4
/* 800A18DC 0009D71C 38 60 00 00 */ li r3, 0x0
/* 800A18E0 0009D720 4E 80 00 20 */ blr
.global lbl_800A18E4
lbl_800A18E4:
/* 800A18E4 0009D724 7C 06 00 40 */ cmplw r6, r0
/* 800A18E8 0009D728 41 80 FE 7C */ blt lbl_800A1764
/* 800A18EC 0009D72C 7C C3 33 78 */ mr r3, r6
/* 800A18F0 0009D730 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global sdpu_get_len_from_type
sdpu_get_len_from_type:
2022-10-16 16:05:58 +00:00
/* 800A18F4 0009D734 54 80 07 7E */ clrlwi r0, r4, 29
/* 800A18F8 0009D738 7C 68 1B 78 */ mr r8, r3
/* 800A18FC 0009D73C 28 00 00 07 */ cmplwi r0, 0x7
/* 800A1900 0009D740 41 81 00 BC */ bgt lbl_800A19BC
2022-10-16 16:31:36 +00:00
/* 800A1904 0009D744 3C 80 80 44 */ lis r4, "@1221_80440010"@ha
2022-10-16 16:05:58 +00:00
/* 800A1908 0009D748 54 00 10 3A */ slwi r0, r0, 2
2022-10-16 16:31:36 +00:00
/* 800A190C 0009D74C 38 84 00 10 */ addi r4, r4, "@1221_80440010"@l
2022-10-16 16:05:58 +00:00
/* 800A1910 0009D750 7C 84 00 2E */ lwzx r4, r4, r0
/* 800A1914 0009D754 7C 89 03 A6 */ mtctr r4
/* 800A1918 0009D758 4E 80 04 20 */ bctr
.global lbl_800A191C
lbl_800A191C:
/* 800A191C 0009D75C 38 00 00 01 */ li r0, 0x1
/* 800A1920 0009D760 90 05 00 00 */ stw r0, 0x0(r5)
/* 800A1924 0009D764 48 00 00 98 */ b lbl_800A19BC
.global lbl_800A1928
lbl_800A1928:
/* 800A1928 0009D768 38 00 00 02 */ li r0, 0x2
/* 800A192C 0009D76C 90 05 00 00 */ stw r0, 0x0(r5)
/* 800A1930 0009D770 48 00 00 8C */ b lbl_800A19BC
.global lbl_800A1934
lbl_800A1934:
/* 800A1934 0009D774 38 00 00 04 */ li r0, 0x4
/* 800A1938 0009D778 90 05 00 00 */ stw r0, 0x0(r5)
/* 800A193C 0009D77C 48 00 00 80 */ b lbl_800A19BC
.global lbl_800A1940
lbl_800A1940:
/* 800A1940 0009D780 38 00 00 08 */ li r0, 0x8
/* 800A1944 0009D784 90 05 00 00 */ stw r0, 0x0(r5)
/* 800A1948 0009D788 48 00 00 74 */ b lbl_800A19BC
.global lbl_800A194C
lbl_800A194C:
/* 800A194C 0009D78C 38 00 00 10 */ li r0, 0x10
/* 800A1950 0009D790 90 05 00 00 */ stw r0, 0x0(r5)
/* 800A1954 0009D794 48 00 00 68 */ b lbl_800A19BC
.global lbl_800A1958
lbl_800A1958:
/* 800A1958 0009D798 88 03 00 00 */ lbz r0, 0x0(r3)
/* 800A195C 0009D79C 39 03 00 01 */ addi r8, r3, 0x1
/* 800A1960 0009D7A0 90 05 00 00 */ stw r0, 0x0(r5)
/* 800A1964 0009D7A4 48 00 00 58 */ b lbl_800A19BC
.global lbl_800A1968
lbl_800A1968:
/* 800A1968 0009D7A8 88 83 00 00 */ lbz r4, 0x0(r3)
/* 800A196C 0009D7AC 39 03 00 02 */ addi r8, r3, 0x2
/* 800A1970 0009D7B0 88 03 00 01 */ lbz r0, 0x1(r3)
/* 800A1974 0009D7B4 54 83 40 2E */ slwi r3, r4, 8
/* 800A1978 0009D7B8 7C 03 02 14 */ add r0, r3, r0
/* 800A197C 0009D7BC 54 00 04 3E */ clrlwi r0, r0, 16
/* 800A1980 0009D7C0 90 05 00 00 */ stw r0, 0x0(r5)
/* 800A1984 0009D7C4 48 00 00 38 */ b lbl_800A19BC
.global lbl_800A1988
lbl_800A1988:
/* 800A1988 0009D7C8 88 C3 00 00 */ lbz r6, 0x0(r3)
/* 800A198C 0009D7CC 39 03 00 04 */ addi r8, r3, 0x4
/* 800A1990 0009D7D0 88 03 00 02 */ lbz r0, 0x2(r3)
/* 800A1994 0009D7D4 88 83 00 01 */ lbz r4, 0x1(r3)
/* 800A1998 0009D7D8 54 C7 C0 0E */ slwi r7, r6, 24
/* 800A199C 0009D7DC 54 00 40 2E */ slwi r0, r0, 8
/* 800A19A0 0009D7E0 54 86 80 1E */ slwi r6, r4, 16
/* 800A19A4 0009D7E4 88 83 00 03 */ lbz r4, 0x3(r3)
/* 800A19A8 0009D7E8 7C 67 32 14 */ add r3, r7, r6
/* 800A19AC 0009D7EC 7C 04 02 14 */ add r0, r4, r0
/* 800A19B0 0009D7F0 7C 03 02 14 */ add r0, r3, r0
/* 800A19B4 0009D7F4 54 00 04 3E */ clrlwi r0, r0, 16
/* 800A19B8 0009D7F8 90 05 00 00 */ stw r0, 0x0(r5)
.global lbl_800A19BC
lbl_800A19BC:
/* 800A19BC 0009D7FC 7D 03 43 78 */ mr r3, r8
/* 800A19C0 0009D800 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global sdpu_is_base_uuid
sdpu_is_base_uuid:
/* 800A19C4 0009D804 3C A0 80 41 */ lis r5, sdp_base_uuid@ha
2022-10-16 16:05:58 +00:00
/* 800A19C8 0009D808 38 00 00 02 */ li r0, 0x2
2022-10-16 16:31:36 +00:00
/* 800A19CC 0009D80C 38 A5 82 50 */ addi r5, r5, sdp_base_uuid@l
2022-10-16 16:05:58 +00:00
/* 800A19D0 0009D810 38 C0 00 04 */ li r6, 0x4
/* 800A19D4 0009D814 7C 09 03 A6 */ mtctr r0
.global lbl_800A19D8
lbl_800A19D8:
/* 800A19D8 0009D818 54 C0 04 3E */ clrlwi r0, r6, 16
/* 800A19DC 0009D81C 7C 85 00 AE */ lbzx r4, r5, r0
/* 800A19E0 0009D820 7C 03 00 AE */ lbzx r0, r3, r0
/* 800A19E4 0009D824 7C 04 00 40 */ cmplw r4, r0
/* 800A19E8 0009D828 41 82 00 0C */ beq lbl_800A19F4
/* 800A19EC 0009D82C 38 60 00 00 */ li r3, 0x0
/* 800A19F0 0009D830 4E 80 00 20 */ blr
.global lbl_800A19F4
lbl_800A19F4:
/* 800A19F4 0009D834 38 C6 00 01 */ addi r6, r6, 0x1
/* 800A19F8 0009D838 54 C0 04 3E */ clrlwi r0, r6, 16
/* 800A19FC 0009D83C 7C 85 00 AE */ lbzx r4, r5, r0
/* 800A1A00 0009D840 7C 03 00 AE */ lbzx r0, r3, r0
/* 800A1A04 0009D844 7C 04 00 40 */ cmplw r4, r0
/* 800A1A08 0009D848 41 82 00 0C */ beq lbl_800A1A14
/* 800A1A0C 0009D84C 38 60 00 00 */ li r3, 0x0
/* 800A1A10 0009D850 4E 80 00 20 */ blr
.global lbl_800A1A14
lbl_800A1A14:
/* 800A1A14 0009D854 38 C6 00 01 */ addi r6, r6, 0x1
/* 800A1A18 0009D858 54 C0 04 3E */ clrlwi r0, r6, 16
/* 800A1A1C 0009D85C 7C 85 00 AE */ lbzx r4, r5, r0
/* 800A1A20 0009D860 7C 03 00 AE */ lbzx r0, r3, r0
/* 800A1A24 0009D864 7C 04 00 40 */ cmplw r4, r0
/* 800A1A28 0009D868 41 82 00 0C */ beq lbl_800A1A34
/* 800A1A2C 0009D86C 38 60 00 00 */ li r3, 0x0
/* 800A1A30 0009D870 4E 80 00 20 */ blr
.global lbl_800A1A34
lbl_800A1A34:
/* 800A1A34 0009D874 38 C6 00 01 */ addi r6, r6, 0x1
/* 800A1A38 0009D878 54 C0 04 3E */ clrlwi r0, r6, 16
/* 800A1A3C 0009D87C 7C 85 00 AE */ lbzx r4, r5, r0
/* 800A1A40 0009D880 7C 03 00 AE */ lbzx r0, r3, r0
/* 800A1A44 0009D884 7C 04 00 40 */ cmplw r4, r0
/* 800A1A48 0009D888 41 82 00 0C */ beq lbl_800A1A54
/* 800A1A4C 0009D88C 38 60 00 00 */ li r3, 0x0
/* 800A1A50 0009D890 4E 80 00 20 */ blr
.global lbl_800A1A54
lbl_800A1A54:
/* 800A1A54 0009D894 38 C6 00 01 */ addi r6, r6, 0x1
/* 800A1A58 0009D898 54 C0 04 3E */ clrlwi r0, r6, 16
/* 800A1A5C 0009D89C 7C 85 00 AE */ lbzx r4, r5, r0
/* 800A1A60 0009D8A0 7C 03 00 AE */ lbzx r0, r3, r0
/* 800A1A64 0009D8A4 7C 04 00 40 */ cmplw r4, r0
/* 800A1A68 0009D8A8 41 82 00 0C */ beq lbl_800A1A74
/* 800A1A6C 0009D8AC 38 60 00 00 */ li r3, 0x0
/* 800A1A70 0009D8B0 4E 80 00 20 */ blr
.global lbl_800A1A74
lbl_800A1A74:
/* 800A1A74 0009D8B4 38 C6 00 01 */ addi r6, r6, 0x1
/* 800A1A78 0009D8B8 54 C0 04 3E */ clrlwi r0, r6, 16
/* 800A1A7C 0009D8BC 7C 85 00 AE */ lbzx r4, r5, r0
/* 800A1A80 0009D8C0 7C 03 00 AE */ lbzx r0, r3, r0
/* 800A1A84 0009D8C4 7C 04 00 40 */ cmplw r4, r0
/* 800A1A88 0009D8C8 41 82 00 0C */ beq lbl_800A1A94
/* 800A1A8C 0009D8CC 38 60 00 00 */ li r3, 0x0
/* 800A1A90 0009D8D0 4E 80 00 20 */ blr
.global lbl_800A1A94
lbl_800A1A94:
/* 800A1A94 0009D8D4 38 C6 00 01 */ addi r6, r6, 0x1
/* 800A1A98 0009D8D8 42 00 FF 40 */ bdnz lbl_800A19D8
/* 800A1A9C 0009D8DC 38 60 00 01 */ li r3, 0x1
/* 800A1AA0 0009D8E0 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global sdpu_compare_uuid_arrays
sdpu_compare_uuid_arrays:
2022-10-16 16:05:58 +00:00
/* 800A1AA4 0009D8E4 94 21 FF C0 */ stwu r1, -0x40(r1)
/* 800A1AA8 0009D8E8 7C 08 02 A6 */ mflr r0
/* 800A1AAC 0009D8EC 7C 04 30 40 */ cmplw r4, r6
/* 800A1AB0 0009D8F0 90 01 00 44 */ stw r0, 0x44(r1)
/* 800A1AB4 0009D8F4 93 E1 00 3C */ stw r31, 0x3c(r1)
/* 800A1AB8 0009D8F8 7C DF 33 78 */ mr r31, r6
/* 800A1ABC 0009D8FC 93 C1 00 38 */ stw r30, 0x38(r1)
/* 800A1AC0 0009D900 7C BE 2B 78 */ mr r30, r5
/* 800A1AC4 0009D904 93 A1 00 34 */ stw r29, 0x34(r1)
/* 800A1AC8 0009D908 7C 9D 23 78 */ mr r29, r4
/* 800A1ACC 0009D90C 93 81 00 30 */ stw r28, 0x30(r1)
/* 800A1AD0 0009D910 7C 7C 1B 78 */ mr r28, r3
/* 800A1AD4 0009D914 40 82 00 AC */ bne lbl_800A1B80
/* 800A1AD8 0009D918 28 04 00 02 */ cmplwi r4, 0x2
/* 800A1ADC 0009D91C 40 82 00 34 */ bne lbl_800A1B10
/* 800A1AE0 0009D920 88 83 00 00 */ lbz r4, 0x0(r3)
/* 800A1AE4 0009D924 38 C0 00 00 */ li r6, 0x0
/* 800A1AE8 0009D928 88 05 00 00 */ lbz r0, 0x0(r5)
/* 800A1AEC 0009D92C 7C 04 00 40 */ cmplw r4, r0
/* 800A1AF0 0009D930 40 82 00 18 */ bne lbl_800A1B08
/* 800A1AF4 0009D934 88 63 00 01 */ lbz r3, 0x1(r3)
/* 800A1AF8 0009D938 88 05 00 01 */ lbz r0, 0x1(r5)
/* 800A1AFC 0009D93C 7C 03 00 40 */ cmplw r3, r0
/* 800A1B00 0009D940 40 82 00 08 */ bne lbl_800A1B08
/* 800A1B04 0009D944 38 C0 00 01 */ li r6, 0x1
.global lbl_800A1B08
lbl_800A1B08:
/* 800A1B08 0009D948 7C C3 33 78 */ mr r3, r6
/* 800A1B0C 0009D94C 48 00 01 EC */ b lbl_800A1CF8
.global lbl_800A1B10
lbl_800A1B10:
/* 800A1B10 0009D950 28 04 00 04 */ cmplwi r4, 0x4
/* 800A1B14 0009D954 40 82 00 50 */ bne lbl_800A1B64
/* 800A1B18 0009D958 88 83 00 00 */ lbz r4, 0x0(r3)
/* 800A1B1C 0009D95C 38 C0 00 00 */ li r6, 0x0
/* 800A1B20 0009D960 88 05 00 00 */ lbz r0, 0x0(r5)
/* 800A1B24 0009D964 7C 04 00 40 */ cmplw r4, r0
/* 800A1B28 0009D968 40 82 00 50 */ bne lbl_800A1B78
/* 800A1B2C 0009D96C 88 83 00 01 */ lbz r4, 0x1(r3)
/* 800A1B30 0009D970 88 05 00 01 */ lbz r0, 0x1(r5)
/* 800A1B34 0009D974 7C 04 00 40 */ cmplw r4, r0
/* 800A1B38 0009D978 40 82 00 40 */ bne lbl_800A1B78
/* 800A1B3C 0009D97C 88 83 00 02 */ lbz r4, 0x2(r3)
/* 800A1B40 0009D980 88 05 00 02 */ lbz r0, 0x2(r5)
/* 800A1B44 0009D984 7C 04 00 40 */ cmplw r4, r0
/* 800A1B48 0009D988 40 82 00 30 */ bne lbl_800A1B78
/* 800A1B4C 0009D98C 88 63 00 03 */ lbz r3, 0x3(r3)
/* 800A1B50 0009D990 88 05 00 03 */ lbz r0, 0x3(r5)
/* 800A1B54 0009D994 7C 03 00 40 */ cmplw r3, r0
/* 800A1B58 0009D998 40 82 00 20 */ bne lbl_800A1B78
/* 800A1B5C 0009D99C 38 C0 00 01 */ li r6, 0x1
/* 800A1B60 0009D9A0 48 00 00 18 */ b lbl_800A1B78
.global lbl_800A1B64
lbl_800A1B64:
/* 800A1B64 0009D9A4 7F C4 F3 78 */ mr r4, r30
/* 800A1B68 0009D9A8 7F A5 EB 78 */ mr r5, r29
2022-10-16 16:31:36 +00:00
/* 800A1B6C 0009D9AC 4B F6 93 05 */ bl memcmp
2022-10-16 16:05:58 +00:00
/* 800A1B70 0009D9B0 7C 60 00 34 */ cntlzw r0, r3
/* 800A1B74 0009D9B4 54 06 DE 3E */ extrwi r6, r0, 8, 19
.global lbl_800A1B78
lbl_800A1B78:
/* 800A1B78 0009D9B8 7C C3 33 78 */ mr r3, r6
/* 800A1B7C 0009D9BC 48 00 01 7C */ b lbl_800A1CF8
.global lbl_800A1B80
lbl_800A1B80:
/* 800A1B80 0009D9C0 40 81 00 C0 */ ble lbl_800A1C40
/* 800A1B84 0009D9C4 28 04 00 04 */ cmplwi r4, 0x4
/* 800A1B88 0009D9C8 40 82 00 4C */ bne lbl_800A1BD4
/* 800A1B8C 0009D9CC 88 03 00 00 */ lbz r0, 0x0(r3)
/* 800A1B90 0009D9D0 38 C0 00 00 */ li r6, 0x0
/* 800A1B94 0009D9D4 2C 00 00 00 */ cmpwi r0, 0x0
/* 800A1B98 0009D9D8 40 82 00 34 */ bne lbl_800A1BCC
/* 800A1B9C 0009D9DC 88 03 00 01 */ lbz r0, 0x1(r3)
/* 800A1BA0 0009D9E0 2C 00 00 00 */ cmpwi r0, 0x0
/* 800A1BA4 0009D9E4 40 82 00 28 */ bne lbl_800A1BCC
/* 800A1BA8 0009D9E8 88 83 00 02 */ lbz r4, 0x2(r3)
/* 800A1BAC 0009D9EC 88 05 00 00 */ lbz r0, 0x0(r5)
/* 800A1BB0 0009D9F0 7C 04 00 40 */ cmplw r4, r0
/* 800A1BB4 0009D9F4 40 82 00 18 */ bne lbl_800A1BCC
/* 800A1BB8 0009D9F8 88 63 00 03 */ lbz r3, 0x3(r3)
/* 800A1BBC 0009D9FC 88 05 00 01 */ lbz r0, 0x1(r5)
/* 800A1BC0 0009DA00 7C 03 00 40 */ cmplw r3, r0
/* 800A1BC4 0009DA04 40 82 00 08 */ bne lbl_800A1BCC
/* 800A1BC8 0009DA08 38 C0 00 01 */ li r6, 0x1
.global lbl_800A1BCC
lbl_800A1BCC:
/* 800A1BCC 0009DA0C 7C C3 33 78 */ mr r3, r6
/* 800A1BD0 0009DA10 48 00 01 28 */ b lbl_800A1CF8
.global lbl_800A1BD4
lbl_800A1BD4:
/* 800A1BD4 0009DA14 7F 84 E3 78 */ mr r4, r28
/* 800A1BD8 0009DA18 38 61 00 18 */ addi r3, r1, 0x18
/* 800A1BDC 0009DA1C 38 A0 00 10 */ li r5, 0x10
2022-10-16 16:31:36 +00:00
/* 800A1BE0 0009DA20 4B F6 24 21 */ bl memcpy
/* 800A1BE4 0009DA24 3C 80 80 41 */ lis r4, sdp_base_uuid@ha
2022-10-16 16:05:58 +00:00
/* 800A1BE8 0009DA28 38 61 00 08 */ addi r3, r1, 0x8
2022-10-16 16:31:36 +00:00
/* 800A1BEC 0009DA2C 38 84 82 50 */ addi r4, r4, sdp_base_uuid@l
2022-10-16 16:05:58 +00:00
/* 800A1BF0 0009DA30 38 A0 00 10 */ li r5, 0x10
2022-10-16 16:31:36 +00:00
/* 800A1BF4 0009DA34 4B F6 24 0D */ bl memcpy
2022-10-16 16:05:58 +00:00
/* 800A1BF8 0009DA38 28 1F 00 04 */ cmplwi r31, 0x4
/* 800A1BFC 0009DA3C 40 82 00 18 */ bne lbl_800A1C14
/* 800A1C00 0009DA40 7F C4 F3 78 */ mr r4, r30
/* 800A1C04 0009DA44 7F E5 FB 78 */ mr r5, r31
/* 800A1C08 0009DA48 38 61 00 08 */ addi r3, r1, 0x8
2022-10-16 16:31:36 +00:00
/* 800A1C0C 0009DA4C 4B F6 23 F5 */ bl memcpy
2022-10-16 16:05:58 +00:00
/* 800A1C10 0009DA50 48 00 00 14 */ b lbl_800A1C24
.global lbl_800A1C14
lbl_800A1C14:
/* 800A1C14 0009DA54 7F C4 F3 78 */ mr r4, r30
/* 800A1C18 0009DA58 7F E5 FB 78 */ mr r5, r31
/* 800A1C1C 0009DA5C 38 61 00 0A */ addi r3, r1, 0xa
2022-10-16 16:31:36 +00:00
/* 800A1C20 0009DA60 4B F6 23 E1 */ bl memcpy
2022-10-16 16:05:58 +00:00
.global lbl_800A1C24
lbl_800A1C24:
/* 800A1C24 0009DA64 38 61 00 18 */ addi r3, r1, 0x18
/* 800A1C28 0009DA68 38 81 00 08 */ addi r4, r1, 0x8
/* 800A1C2C 0009DA6C 38 A0 00 10 */ li r5, 0x10
2022-10-16 16:31:36 +00:00
/* 800A1C30 0009DA70 4B F6 92 41 */ bl memcmp
2022-10-16 16:05:58 +00:00
/* 800A1C34 0009DA74 7C 60 00 34 */ cntlzw r0, r3
/* 800A1C38 0009DA78 54 03 DE 3E */ extrwi r3, r0, 8, 19
/* 800A1C3C 0009DA7C 48 00 00 BC */ b lbl_800A1CF8
.global lbl_800A1C40
lbl_800A1C40:
/* 800A1C40 0009DA80 28 06 00 04 */ cmplwi r6, 0x4
/* 800A1C44 0009DA84 40 82 00 4C */ bne lbl_800A1C90
/* 800A1C48 0009DA88 88 05 00 00 */ lbz r0, 0x0(r5)
/* 800A1C4C 0009DA8C 38 C0 00 00 */ li r6, 0x0
/* 800A1C50 0009DA90 2C 00 00 00 */ cmpwi r0, 0x0
/* 800A1C54 0009DA94 40 82 00 34 */ bne lbl_800A1C88
/* 800A1C58 0009DA98 88 05 00 01 */ lbz r0, 0x1(r5)
/* 800A1C5C 0009DA9C 2C 00 00 00 */ cmpwi r0, 0x0
/* 800A1C60 0009DAA0 40 82 00 28 */ bne lbl_800A1C88
/* 800A1C64 0009DAA4 88 85 00 02 */ lbz r4, 0x2(r5)
/* 800A1C68 0009DAA8 88 03 00 00 */ lbz r0, 0x0(r3)
/* 800A1C6C 0009DAAC 7C 04 00 40 */ cmplw r4, r0
/* 800A1C70 0009DAB0 40 82 00 18 */ bne lbl_800A1C88
/* 800A1C74 0009DAB4 88 85 00 03 */ lbz r4, 0x3(r5)
/* 800A1C78 0009DAB8 88 03 00 01 */ lbz r0, 0x1(r3)
/* 800A1C7C 0009DABC 7C 04 00 40 */ cmplw r4, r0
/* 800A1C80 0009DAC0 40 82 00 08 */ bne lbl_800A1C88
/* 800A1C84 0009DAC4 38 C0 00 01 */ li r6, 0x1
.global lbl_800A1C88
lbl_800A1C88:
/* 800A1C88 0009DAC8 7C C3 33 78 */ mr r3, r6
/* 800A1C8C 0009DACC 48 00 00 6C */ b lbl_800A1CF8
.global lbl_800A1C90
lbl_800A1C90:
/* 800A1C90 0009DAD0 7F C4 F3 78 */ mr r4, r30
/* 800A1C94 0009DAD4 38 61 00 08 */ addi r3, r1, 0x8
/* 800A1C98 0009DAD8 38 A0 00 10 */ li r5, 0x10
2022-10-16 16:31:36 +00:00
/* 800A1C9C 0009DADC 4B F6 23 65 */ bl memcpy
/* 800A1CA0 0009DAE0 3C 80 80 41 */ lis r4, sdp_base_uuid@ha
2022-10-16 16:05:58 +00:00
/* 800A1CA4 0009DAE4 38 61 00 18 */ addi r3, r1, 0x18
2022-10-16 16:31:36 +00:00
/* 800A1CA8 0009DAE8 38 84 82 50 */ addi r4, r4, sdp_base_uuid@l
2022-10-16 16:05:58 +00:00
/* 800A1CAC 0009DAEC 38 A0 00 10 */ li r5, 0x10
2022-10-16 16:31:36 +00:00
/* 800A1CB0 0009DAF0 4B F6 23 51 */ bl memcpy
2022-10-16 16:05:58 +00:00
/* 800A1CB4 0009DAF4 28 1D 00 04 */ cmplwi r29, 0x4
/* 800A1CB8 0009DAF8 40 82 00 18 */ bne lbl_800A1CD0
/* 800A1CBC 0009DAFC 7F 84 E3 78 */ mr r4, r28
/* 800A1CC0 0009DB00 7F A5 EB 78 */ mr r5, r29
/* 800A1CC4 0009DB04 38 61 00 18 */ addi r3, r1, 0x18
2022-10-16 16:31:36 +00:00
/* 800A1CC8 0009DB08 4B F6 23 39 */ bl memcpy
2022-10-16 16:05:58 +00:00
/* 800A1CCC 0009DB0C 48 00 00 14 */ b lbl_800A1CE0
.global lbl_800A1CD0
lbl_800A1CD0:
/* 800A1CD0 0009DB10 7F 84 E3 78 */ mr r4, r28
/* 800A1CD4 0009DB14 7F A5 EB 78 */ mr r5, r29
/* 800A1CD8 0009DB18 38 61 00 1A */ addi r3, r1, 0x1a
2022-10-16 16:31:36 +00:00
/* 800A1CDC 0009DB1C 4B F6 23 25 */ bl memcpy
2022-10-16 16:05:58 +00:00
.global lbl_800A1CE0
lbl_800A1CE0:
/* 800A1CE0 0009DB20 38 61 00 18 */ addi r3, r1, 0x18
/* 800A1CE4 0009DB24 38 81 00 08 */ addi r4, r1, 0x8
/* 800A1CE8 0009DB28 38 A0 00 10 */ li r5, 0x10
2022-10-16 16:31:36 +00:00
/* 800A1CEC 0009DB2C 4B F6 91 85 */ bl memcmp
2022-10-16 16:05:58 +00:00
/* 800A1CF0 0009DB30 7C 60 00 34 */ cntlzw r0, r3
/* 800A1CF4 0009DB34 54 03 DE 3E */ extrwi r3, r0, 8, 19
.global lbl_800A1CF8
lbl_800A1CF8:
/* 800A1CF8 0009DB38 80 01 00 44 */ lwz r0, 0x44(r1)
/* 800A1CFC 0009DB3C 83 E1 00 3C */ lwz r31, 0x3c(r1)
/* 800A1D00 0009DB40 83 C1 00 38 */ lwz r30, 0x38(r1)
/* 800A1D04 0009DB44 83 A1 00 34 */ lwz r29, 0x34(r1)
/* 800A1D08 0009DB48 83 81 00 30 */ lwz r28, 0x30(r1)
/* 800A1D0C 0009DB4C 7C 08 03 A6 */ mtlr r0
/* 800A1D10 0009DB50 38 21 00 40 */ addi r1, r1, 0x40
/* 800A1D14 0009DB54 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global sdpu_compare_uuid_with_attr
sdpu_compare_uuid_with_attr:
2022-10-16 16:05:58 +00:00
/* 800A1D18 0009DB58 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 800A1D1C 0009DB5C 7C 08 02 A6 */ mflr r0
/* 800A1D20 0009DB60 90 01 00 14 */ stw r0, 0x14(r1)
/* 800A1D24 0009DB64 A0 04 00 06 */ lhz r0, 0x6(r4)
/* 800A1D28 0009DB68 A0 A3 00 00 */ lhz r5, 0x0(r3)
/* 800A1D2C 0009DB6C 54 00 05 3E */ clrlwi r0, r0, 20
/* 800A1D30 0009DB70 7C 05 00 40 */ cmplw r5, r0
/* 800A1D34 0009DB74 41 82 00 0C */ beq lbl_800A1D40
/* 800A1D38 0009DB78 38 60 00 00 */ li r3, 0x0
/* 800A1D3C 0009DB7C 48 00 00 5C */ b lbl_800A1D98
.global lbl_800A1D40
lbl_800A1D40:
/* 800A1D40 0009DB80 28 05 00 02 */ cmplwi r5, 0x2
/* 800A1D44 0009DB84 40 82 00 1C */ bne lbl_800A1D60
/* 800A1D48 0009DB88 A0 63 00 04 */ lhz r3, 0x4(r3)
/* 800A1D4C 0009DB8C A0 04 00 08 */ lhz r0, 0x8(r4)
/* 800A1D50 0009DB90 7C 03 00 50 */ subf r0, r3, r0
/* 800A1D54 0009DB94 7C 00 00 34 */ cntlzw r0, r0
/* 800A1D58 0009DB98 54 03 DE 3E */ extrwi r3, r0, 8, 19
/* 800A1D5C 0009DB9C 48 00 00 3C */ b lbl_800A1D98
.global lbl_800A1D60
lbl_800A1D60:
/* 800A1D60 0009DBA0 28 05 00 04 */ cmplwi r5, 0x4
/* 800A1D64 0009DBA4 40 82 00 1C */ bne lbl_800A1D80
/* 800A1D68 0009DBA8 80 63 00 04 */ lwz r3, 0x4(r3)
/* 800A1D6C 0009DBAC 80 04 00 08 */ lwz r0, 0x8(r4)
/* 800A1D70 0009DBB0 7C 03 00 50 */ subf r0, r3, r0
/* 800A1D74 0009DBB4 7C 00 00 34 */ cntlzw r0, r0
/* 800A1D78 0009DBB8 54 03 DE 3E */ extrwi r3, r0, 8, 19
/* 800A1D7C 0009DBBC 48 00 00 1C */ b lbl_800A1D98
.global lbl_800A1D80
lbl_800A1D80:
/* 800A1D80 0009DBC0 38 A0 00 10 */ li r5, 0x10
/* 800A1D84 0009DBC4 38 63 00 04 */ addi r3, r3, 0x4
/* 800A1D88 0009DBC8 38 84 00 08 */ addi r4, r4, 0x8
2022-10-16 16:31:36 +00:00
/* 800A1D8C 0009DBCC 4B F6 90 E5 */ bl memcmp
2022-10-16 16:05:58 +00:00
/* 800A1D90 0009DBD0 7C 60 00 34 */ cntlzw r0, r3
/* 800A1D94 0009DBD4 54 03 DE 3E */ extrwi r3, r0, 8, 19
.global lbl_800A1D98
lbl_800A1D98:
/* 800A1D98 0009DBD8 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800A1D9C 0009DBDC 7C 08 03 A6 */ mtlr r0
/* 800A1DA0 0009DBE0 38 21 00 10 */ addi r1, r1, 0x10
/* 800A1DA4 0009DBE4 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global sdpu_sort_attr_list
sdpu_sort_attr_list:
2022-10-16 16:05:58 +00:00
/* 800A1DA8 0009DBE8 28 03 00 01 */ cmplwi r3, 0x1
/* 800A1DAC 0009DBEC 4C 81 00 20 */ blelr
/* 800A1DB0 0009DBF0 38 A3 FF FF */ addi r5, r3, -0x1
/* 800A1DB4 0009DBF4 39 00 00 00 */ li r8, 0x0
/* 800A1DB8 0009DBF8 3C 60 00 01 */ lis r3, 0x1
/* 800A1DBC 0009DBFC 48 00 00 2C */ b lbl_800A1DE8
.global lbl_800A1DC0
lbl_800A1DC0:
/* 800A1DC0 0009DC00 55 00 0B FC */ rlwinm r0, r8, 1, 15, 30
/* 800A1DC4 0009DC04 7C E4 02 14 */ add r7, r4, r0
/* 800A1DC8 0009DC08 A0 C7 00 50 */ lhz r6, 0x50(r7)
/* 800A1DCC 0009DC0C A0 07 00 4E */ lhz r0, 0x4e(r7)
/* 800A1DD0 0009DC10 7C 00 30 40 */ cmplw r0, r6
/* 800A1DD4 0009DC14 40 81 00 10 */ ble lbl_800A1DE4
/* 800A1DD8 0009DC18 B0 C7 00 4E */ sth r6, 0x4e(r7)
/* 800A1DDC 0009DC1C 39 03 FF FF */ addi r8, r3, -0x1
/* 800A1DE0 0009DC20 B0 07 00 50 */ sth r0, 0x50(r7)
.global lbl_800A1DE4
lbl_800A1DE4:
/* 800A1DE4 0009DC24 39 08 00 01 */ addi r8, r8, 0x1
.global lbl_800A1DE8
lbl_800A1DE8:
/* 800A1DE8 0009DC28 55 00 04 3E */ clrlwi r0, r8, 16
/* 800A1DEC 0009DC2C 7C 00 28 00 */ cmpw r0, r5
/* 800A1DF0 0009DC30 41 80 FF D0 */ blt lbl_800A1DC0
/* 800A1DF4 0009DC34 4E 80 00 20 */ blr
/* 800A1DF8 0009DC38 00 00 00 00 */ .4byte 0x00000000
/* 800A1DFC 0009DC3C 00 00 00 00 */ .4byte 0x00000000
2022-10-17 08:41:13 +00:00
.include "macros.inc"
.section .rodata, "wa" # 0x80406560 - 0x80421040 ; 0x0001AAE0
.global sdp_base_uuid
sdp_base_uuid:
.4byte 0
.4byte 0x00001000
.4byte 0x80000080
.4byte 0x5F9B34FB
.include "macros.inc"
.section .data, "wa" # 0x80421040 - 0x80496700 ; 0x000756C0
.global "@1109"
"@1109":
.4byte lbl_800A11D0
.4byte lbl_800A1170
.4byte lbl_800A1180
.4byte lbl_800A11D0
.4byte lbl_800A1194
.4byte lbl_800A11D0
.4byte lbl_800A11D0
.4byte lbl_800A11D0
.4byte lbl_800A11A8
.4byte lbl_800A11D0
.4byte lbl_800A11D0
.4byte lbl_800A11D0
.4byte lbl_800A11D0
.4byte lbl_800A11D0
.4byte lbl_800A11D0
.4byte lbl_800A11D0
.4byte lbl_800A11BC
.global "@1118"
"@1118":
.4byte 0x53445020
.4byte 0x2D207364
.4byte 0x70755F62
.4byte 0x75696C64
.4byte 0x5F6E5F73
.4byte 0x656E645F
.4byte 0x6572726F
.4byte 0x72202063
.4byte 0x6F64653A
.4byte 0x20307825
.4byte 0x78202043
.4byte 0x49443A20
.4byte 0x30782578
.4byte 0
.global "@1119"
"@1119":
.4byte 0x53445020
.4byte 0x2D206E6F
.4byte 0x20627566
.4byte 0x20666F72
.4byte 0x20657272
.4byte 0x206D7367
.4byte 0
.global "@1173_8043FFD0"
"@1173_8043FFD0":
.4byte lbl_800A14E0
.4byte lbl_800A1470
.4byte lbl_800A1478
.4byte lbl_800A14E0
.4byte lbl_800A1480
.4byte lbl_800A1488
.4byte lbl_800A1494
.4byte lbl_800A14B0
.global "@1172_8043FFF0"
"@1172_8043FFF0":
.4byte lbl_800A140C
.4byte lbl_800A139C
.4byte lbl_800A13A4
.4byte lbl_800A140C
.global lbl_80440000
lbl_80440000:
.4byte lbl_800A13AC
.global lbl_80440004
lbl_80440004:
.4byte lbl_800A13B4
.global lbl_80440008
lbl_80440008:
.4byte lbl_800A13C0
.global lbl_8044000C
lbl_8044000C:
.4byte lbl_800A13DC
.global "@1221_80440010"
"@1221_80440010":
.4byte lbl_800A191C
.global lbl_80440014
lbl_80440014:
.4byte lbl_800A1928
.global lbl_80440018
lbl_80440018:
.4byte lbl_800A1934
.global lbl_8044001C
lbl_8044001C:
.4byte lbl_800A1940
.global lbl_80440020
lbl_80440020:
.4byte lbl_800A194C
.4byte lbl_800A1958
.4byte lbl_800A1968
.4byte lbl_800A1988