donut-decomp/asm/wpad/WPADHIDParser.s
2022-10-17 09:31:13 +01:00

6318 lines
295 KiB
ArmAsm

.include "macros.inc"
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
.global __wpadAbortInitExtension
__wpadAbortInitExtension:
/* 8005EC90 0005AAD0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8005EC94 0005AAD4 7C 08 02 A6 */ mflr r0
/* 8005EC98 0005AAD8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8005EC9C 0005AADC 39 61 00 20 */ addi r11, r1, 0x20
/* 8005ECA0 0005AAE0 4B FA 86 9D */ bl lbl_8000733C
/* 8005ECA4 0005AAE4 3F C0 80 4C */ lis r30, __rvl_p_wpadcb@ha
/* 8005ECA8 0005AAE8 2C 04 00 00 */ cmpwi r4, 0x0
/* 8005ECAC 0005AAEC 54 7F 10 3A */ slwi r31, r3, 2
/* 8005ECB0 0005AAF0 7C 7B 1B 78 */ mr r27, r3
/* 8005ECB4 0005AAF4 3B DE 1A 50 */ addi r30, r30, __rvl_p_wpadcb@l
/* 8005ECB8 0005AAF8 7C 9C 23 78 */ mr r28, r4
/* 8005ECBC 0005AAFC 7F BE F8 2E */ lwzx r29, r30, r31
/* 8005ECC0 0005AB00 41 82 01 4C */ beq lbl_8005EE0C
/* 8005ECC4 0005AB04 38 7D 05 EC */ addi r3, r29, 0x5ec
/* 8005ECC8 0005AB08 4B FF E9 69 */ bl WPADiClearQueue
/* 8005ECCC 0005AB0C 2C 1C FF FF */ cmpwi r28, -0x1
/* 8005ECD0 0005AB10 38 00 00 00 */ li r0, 0x0
/* 8005ECD4 0005AB14 98 1D 0B 85 */ stb r0, 0xb85(r29)
/* 8005ECD8 0005AB18 40 82 00 0C */ bne lbl_8005ECE4
/* 8005ECDC 0005AB1C 38 80 00 FD */ li r4, 0xfd
/* 8005ECE0 0005AB20 48 00 01 04 */ b lbl_8005EDE4
.global lbl_8005ECE4
lbl_8005ECE4:
/* 8005ECE4 0005AB24 80 1D 08 40 */ lwz r0, 0x840(r29)
/* 8005ECE8 0005AB28 2C 00 00 00 */ cmpwi r0, 0x0
/* 8005ECEC 0005AB2C 41 82 00 E0 */ beq lbl_8005EDCC
/* 8005ECF0 0005AB30 38 8D E9 E8 */ addi r4, r13, _wpadExtInitRetryCnt@sda21
/* 8005ECF4 0005AB34 7C 64 D8 AE */ lbzx r3, r4, r27
/* 8005ECF8 0005AB38 28 03 00 20 */ cmplwi r3, 0x20
/* 8005ECFC 0005AB3C 38 03 00 01 */ addi r0, r3, 0x1
/* 8005ED00 0005AB40 7C 04 D9 AE */ stbx r0, r4, r27
/* 8005ED04 0005AB44 40 80 00 C0 */ bge lbl_8005EDC4
/* 8005ED08 0005AB48 7F BE F8 2E */ lwzx r29, r30, r31
/* 8005ED0C 0005AB4C 38 7D 05 EC */ addi r3, r29, 0x5ec
/* 8005ED10 0005AB50 4B FF E9 21 */ bl WPADiClearQueue
/* 8005ED14 0005AB54 3F C0 80 06 */ lis r30, __wpadAbortInitExtension@ha
/* 8005ED18 0005AB58 80 9D 08 FC */ lwz r4, 0x8fc(r29)
/* 8005ED1C 0005AB5C 88 BD 0B 86 */ lbz r5, 0xb86(r29)
/* 8005ED20 0005AB60 38 7D 05 EC */ addi r3, r29, 0x5ec
/* 8005ED24 0005AB64 38 DE EC 90 */ addi r6, r30, __wpadAbortInitExtension@l
/* 8005ED28 0005AB68 4B FF E0 A9 */ bl WPADiSendSetReportType
/* 8005ED2C 0005AB6C 38 00 00 01 */ li r0, 0x1
/* 8005ED30 0005AB70 98 1D 0B 85 */ stb r0, 0xb85(r29)
/* 8005ED34 0005AB74 88 1D 09 3A */ lbz r0, 0x93a(r29)
/* 8005ED38 0005AB78 2C 00 00 00 */ cmpwi r0, 0x0
/* 8005ED3C 0005AB7C 41 82 00 38 */ beq lbl_8005ED74
/* 8005ED40 0005AB80 3F E0 04 A4 */ lis r31, 0x4a4
/* 8005ED44 0005AB84 38 7D 05 EC */ addi r3, r29, 0x5ec
/* 8005ED48 0005AB88 38 BF 00 FB */ addi r5, r31, 0xfb
/* 8005ED4C 0005AB8C 38 DE EC 90 */ addi r6, r30, -0x1370
/* 8005ED50 0005AB90 38 80 00 00 */ li r4, 0x0
/* 8005ED54 0005AB94 4B FF E3 1D */ bl WPADiSendWriteDataCmd
/* 8005ED58 0005AB98 38 7D 05 EC */ addi r3, r29, 0x5ec
/* 8005ED5C 0005AB9C 38 9D 0B 2C */ addi r4, r29, 0xb2c
/* 8005ED60 0005ABA0 38 DF 00 F0 */ addi r6, r31, 0xf0
/* 8005ED64 0005ABA4 38 FE EC 90 */ addi r7, r30, -0x1370
/* 8005ED68 0005ABA8 38 A0 00 10 */ li r5, 0x10
/* 8005ED6C 0005ABAC 4B FF E6 85 */ bl WPADiSendReadData
/* 8005ED70 0005ABB0 48 00 00 48 */ b lbl_8005EDB8
.global lbl_8005ED74
lbl_8005ED74:
/* 8005ED74 0005ABB4 3F E0 04 A4 */ lis r31, 0x4a4
/* 8005ED78 0005ABB8 38 7D 05 EC */ addi r3, r29, 0x5ec
/* 8005ED7C 0005ABBC 38 BF 00 F0 */ addi r5, r31, 0xf0
/* 8005ED80 0005ABC0 38 DE EC 90 */ addi r6, r30, -0x1370
/* 8005ED84 0005ABC4 38 80 00 55 */ li r4, 0x55
/* 8005ED88 0005ABC8 4B FF E2 E9 */ bl WPADiSendWriteDataCmd
/* 8005ED8C 0005ABCC 38 7D 05 EC */ addi r3, r29, 0x5ec
/* 8005ED90 0005ABD0 38 BF 00 FB */ addi r5, r31, 0xfb
/* 8005ED94 0005ABD4 38 DE EC 90 */ addi r6, r30, -0x1370
/* 8005ED98 0005ABD8 38 80 00 00 */ li r4, 0x0
/* 8005ED9C 0005ABDC 4B FF E2 D5 */ bl WPADiSendWriteDataCmd
/* 8005EDA0 0005ABE0 38 7D 05 EC */ addi r3, r29, 0x5ec
/* 8005EDA4 0005ABE4 38 9D 0B 36 */ addi r4, r29, 0xb36
/* 8005EDA8 0005ABE8 38 DF 00 FA */ addi r6, r31, 0xfa
/* 8005EDAC 0005ABEC 38 FE EC 90 */ addi r7, r30, -0x1370
/* 8005EDB0 0005ABF0 38 A0 00 06 */ li r5, 0x6
/* 8005EDB4 0005ABF4 4B FF E6 3D */ bl WPADiSendReadData
.global lbl_8005EDB8
lbl_8005EDB8:
/* 8005EDB8 0005ABF8 38 00 00 00 */ li r0, 0x0
/* 8005EDBC 0005ABFC 98 1D 09 3A */ stb r0, 0x93a(r29)
/* 8005EDC0 0005AC00 48 00 00 4C */ b lbl_8005EE0C
.global lbl_8005EDC4
lbl_8005EDC4:
/* 8005EDC4 0005AC04 38 80 00 FC */ li r4, 0xfc
/* 8005EDC8 0005AC08 48 00 00 1C */ b lbl_8005EDE4
.global lbl_8005EDCC
lbl_8005EDCC:
/* 8005EDCC 0005AC0C 80 9D 08 FC */ lwz r4, 0x8fc(r29)
/* 8005EDD0 0005AC10 38 7D 05 EC */ addi r3, r29, 0x5ec
/* 8005EDD4 0005AC14 88 BD 0B 86 */ lbz r5, 0xb86(r29)
/* 8005EDD8 0005AC18 38 C0 00 00 */ li r6, 0x0
/* 8005EDDC 0005AC1C 4B FF DF F5 */ bl WPADiSendSetReportType
/* 8005EDE0 0005AC20 48 00 00 2C */ b lbl_8005EE0C
.global lbl_8005EDE4
lbl_8005EDE4:
/* 8005EDE4 0005AC24 98 9D 09 05 */ stb r4, 0x905(r29)
/* 8005EDE8 0005AC28 38 00 00 00 */ li r0, 0x0
/* 8005EDEC 0005AC2C 98 9D 0B 88 */ stb r4, 0xb88(r29)
/* 8005EDF0 0005AC30 98 1D 0B 89 */ stb r0, 0xb89(r29)
/* 8005EDF4 0005AC34 81 9D 08 E4 */ lwz r12, 0x8e4(r29)
/* 8005EDF8 0005AC38 2C 0C 00 00 */ cmpwi r12, 0x0
/* 8005EDFC 0005AC3C 41 82 00 10 */ beq lbl_8005EE0C
/* 8005EE00 0005AC40 7F 63 DB 78 */ mr r3, r27
/* 8005EE04 0005AC44 7D 89 03 A6 */ mtctr r12
/* 8005EE08 0005AC48 4E 80 04 21 */ bctrl
.global lbl_8005EE0C
lbl_8005EE0C:
/* 8005EE0C 0005AC4C 39 61 00 20 */ addi r11, r1, 0x20
/* 8005EE10 0005AC50 4B FA 85 79 */ bl lbl_80007388
/* 8005EE14 0005AC54 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8005EE18 0005AC58 7C 08 03 A6 */ mtlr r0
/* 8005EE1C 0005AC5C 38 21 00 20 */ addi r1, r1, 0x20
/* 8005EE20 0005AC60 4E 80 00 20 */ blr
/* 8005EE24 0005AC64 00 00 00 00 */ .4byte 0x00000000
/* 8005EE28 0005AC68 00 00 00 00 */ .4byte 0x00000000
/* 8005EE2C 0005AC6C 00 00 00 00 */ .4byte 0x00000000
.global __wpadGetDevConfig
__wpadGetDevConfig:
/* 8005EE30 0005AC70 94 21 FF 00 */ stwu r1, -0x100(r1)
/* 8005EE34 0005AC74 7C 08 02 A6 */ mflr r0
/* 8005EE38 0005AC78 90 01 01 04 */ stw r0, 0x104(r1)
/* 8005EE3C 0005AC7C 39 61 00 D0 */ addi r11, r1, 0xd0
/* 8005EE40 0005AC80 DB E1 00 F0 */ stfd f31, 0xf0(r1)
/* 8005EE44 0005AC84 F3 E1 00 F8 */ psq_st f31, 0xf8(r1), 0, qr0
/* 8005EE48 0005AC88 DB C1 00 E0 */ stfd f30, 0xe0(r1)
/* 8005EE4C 0005AC8C F3 C1 00 E8 */ psq_st f30, 0xe8(r1), 0, qr0
/* 8005EE50 0005AC90 DB A1 00 D0 */ stfd f29, 0xd0(r1)
/* 8005EE54 0005AC94 F3 A1 00 D8 */ psq_st f29, 0xd8(r1), 0, qr0
/* 8005EE58 0005AC98 4B FA 84 B9 */ bl lbl_80007310
/* 8005EE5C 0005AC9C 3C C0 80 4C */ lis r6, __rvl_p_wpadcb@ha
/* 8005EE60 0005ACA0 3C 00 43 30 */ lis r0, 0x4330
/* 8005EE64 0005ACA4 54 7E 10 3A */ slwi r30, r3, 2
/* 8005EE68 0005ACA8 80 A2 87 D0 */ lwz r5, "@3033_8055E750"@sda21(r2)
/* 8005EE6C 0005ACAC 38 C6 1A 50 */ addi r6, r6, __rvl_p_wpadcb@l
/* 8005EE70 0005ACB0 90 A1 00 10 */ stw r5, 0x10(r1)
/* 8005EE74 0005ACB4 7F A6 F0 2E */ lwzx r29, r6, r30
/* 8005EE78 0005ACB8 2C 04 00 00 */ cmpwi r4, 0x0
/* 8005EE7C 0005ACBC 80 A2 87 D8 */ lwz r5, "@3035"@sda21(r2)
/* 8005EE80 0005ACC0 3F E0 80 4C */ lis r31, _wpadCalibrationX@ha
/* 8005EE84 0005ACC4 90 A1 00 08 */ stw r5, 0x8(r1)
/* 8005EE88 0005ACC8 7C 7B 1B 78 */ mr r27, r3
/* 8005EE8C 0005ACCC 83 9D 0B 6C */ lwz r28, 0xb6c(r29)
/* 8005EE90 0005ACD0 39 60 00 00 */ li r11, 0x0
/* 8005EE94 0005ACD4 A8 A1 00 10 */ lha r5, 0x10(r1)
/* 8005EE98 0005ACD8 39 40 00 01 */ li r10, 0x1
/* 8005EE9C 0005ACDC B0 BD 08 54 */ sth r5, 0x854(r29)
/* 8005EEA0 0005ACE0 39 00 00 02 */ li r8, 0x2
/* 8005EEA4 0005ACE4 A9 21 00 08 */ lha r9, 0x8(r1)
/* 8005EEA8 0005ACE8 38 E0 00 03 */ li r7, 0x3
/* 8005EEAC 0005ACEC B1 3D 08 56 */ sth r9, 0x856(r29)
/* 8005EEB0 0005ACF0 38 C0 02 12 */ li r6, 0x212
/* 8005EEB4 0005ACF4 81 82 87 D4 */ lwz r12, lbl_8055E754@sda21(r2)
/* 8005EEB8 0005ACF8 38 A0 02 7C */ li r5, 0x27c
/* 8005EEBC 0005ACFC 88 7D 09 0E */ lbz r3, 0x90e(r29)
/* 8005EEC0 0005AD00 3B FF 5A 00 */ addi r31, r31, _wpadCalibrationX@l
/* 8005EEC4 0005AD04 B0 7D 08 58 */ sth r3, 0x858(r29)
/* 8005EEC8 0005AD08 A8 81 00 12 */ lha r4, 0x12(r1)
/* 8005EECC 0005AD0C 99 7D 08 5A */ stb r11, 0x85a(r29)
/* 8005EED0 0005AD10 A8 61 00 0A */ lha r3, 0xa(r1)
/* 8005EED4 0005AD14 B0 9D 08 5C */ sth r4, 0x85c(r29)
/* 8005EED8 0005AD18 81 22 87 DC */ lwz r9, lbl_8055E75C@sda21(r2)
/* 8005EEDC 0005AD1C B0 7D 08 5E */ sth r3, 0x85e(r29)
/* 8005EEE0 0005AD20 88 9D 09 0E */ lbz r4, 0x90e(r29)
/* 8005EEE4 0005AD24 B0 9D 08 60 */ sth r4, 0x860(r29)
/* 8005EEE8 0005AD28 91 81 00 14 */ stw r12, 0x14(r1)
/* 8005EEEC 0005AD2C 91 21 00 0C */ stw r9, 0xc(r1)
/* 8005EEF0 0005AD30 A8 61 00 14 */ lha r3, 0x14(r1)
/* 8005EEF4 0005AD34 99 5D 08 62 */ stb r10, 0x862(r29)
/* 8005EEF8 0005AD38 A9 21 00 0C */ lha r9, 0xc(r1)
/* 8005EEFC 0005AD3C B0 7D 08 64 */ sth r3, 0x864(r29)
/* 8005EF00 0005AD40 A8 81 00 16 */ lha r4, 0x16(r1)
/* 8005EF04 0005AD44 B1 3D 08 66 */ sth r9, 0x866(r29)
/* 8005EF08 0005AD48 A8 61 00 0E */ lha r3, 0xe(r1)
/* 8005EF0C 0005AD4C 89 3D 09 0E */ lbz r9, 0x90e(r29)
/* 8005EF10 0005AD50 B1 3D 08 68 */ sth r9, 0x868(r29)
/* 8005EF14 0005AD54 99 1D 08 6A */ stb r8, 0x86a(r29)
/* 8005EF18 0005AD58 B0 9D 08 6C */ sth r4, 0x86c(r29)
/* 8005EF1C 0005AD5C B0 7D 08 6E */ sth r3, 0x86e(r29)
/* 8005EF20 0005AD60 88 7D 09 0E */ lbz r3, 0x90e(r29)
/* 8005EF24 0005AD64 B0 7D 08 70 */ sth r3, 0x870(r29)
/* 8005EF28 0005AD68 98 FD 08 72 */ stb r7, 0x872(r29)
/* 8005EF2C 0005AD6C B0 DD 08 74 */ sth r6, 0x874(r29)
/* 8005EF30 0005AD70 B0 DD 08 76 */ sth r6, 0x876(r29)
/* 8005EF34 0005AD74 B0 DD 08 78 */ sth r6, 0x878(r29)
/* 8005EF38 0005AD78 B0 BD 08 7A */ sth r5, 0x87a(r29)
/* 8005EF3C 0005AD7C B0 BD 08 7C */ sth r5, 0x87c(r29)
/* 8005EF40 0005AD80 B0 BD 08 7E */ sth r5, 0x87e(r29)
/* 8005EF44 0005AD84 99 7D 08 81 */ stb r11, 0x881(r29)
/* 8005EF48 0005AD88 90 01 00 78 */ stw r0, 0x78(r1)
/* 8005EF4C 0005AD8C 90 01 00 80 */ stw r0, 0x80(r1)
/* 8005EF50 0005AD90 99 7D 08 80 */ stb r11, 0x880(r29)
/* 8005EF54 0005AD94 40 82 09 0C */ bne lbl_8005F860
/* 8005EF58 0005AD98 80 1D 09 24 */ lwz r0, 0x924(r29)
/* 8005EF5C 0005AD9C 2C 00 00 00 */ cmpwi r0, 0x0
/* 8005EF60 0005ADA0 40 82 03 50 */ bne lbl_8005F2B0
/* 8005EF64 0005ADA4 38 A0 00 00 */ li r5, 0x0
/* 8005EF68 0005ADA8 3C 60 80 00 */ lis r3, 0x8000
/* 8005EF6C 0005ADAC 60 00 00 00 */ nop
.global lbl_8005EF70
lbl_8005EF70:
/* 8005EF70 0005ADB0 54 A0 06 3E */ clrlwi r0, r5, 24
/* 8005EF74 0005ADB4 38 80 00 00 */ li r4, 0x0
/* 8005EF78 0005ADB8 1C E0 00 0B */ mulli r7, r0, 0xb
/* 8005EF7C 0005ADBC 39 07 00 0A */ addi r8, r7, 0xa
/* 8005EF80 0005ADC0 7C 07 40 00 */ cmpw r7, r8
/* 8005EF84 0005ADC4 7C E6 3B 78 */ mr r6, r7
/* 8005EF88 0005ADC8 40 80 01 30 */ bge lbl_8005F0B8
/* 8005EF8C 0005ADCC 39 27 00 02 */ addi r9, r7, 0x2
/* 8005EF90 0005ADD0 39 40 00 00 */ li r10, 0x0
/* 8005EF94 0005ADD4 39 60 00 00 */ li r11, 0x0
/* 8005EF98 0005ADD8 39 80 00 00 */ li r12, 0x0
/* 8005EF9C 0005ADDC 3A 00 00 00 */ li r16, 0x0
/* 8005EFA0 0005ADE0 41 81 00 14 */ bgt lbl_8005EFB4
/* 8005EFA4 0005ADE4 38 03 FF FE */ addi r0, r3, -0x2
/* 8005EFA8 0005ADE8 7C 08 00 00 */ cmpw r8, r0
/* 8005EFAC 0005ADEC 41 81 00 08 */ bgt lbl_8005EFB4
/* 8005EFB0 0005ADF0 3A 00 00 01 */ li r16, 0x1
.global lbl_8005EFB4
lbl_8005EFB4:
/* 8005EFB4 0005ADF4 2C 10 00 00 */ cmpwi r16, 0x0
/* 8005EFB8 0005ADF8 41 82 00 14 */ beq lbl_8005EFCC
/* 8005EFBC 0005ADFC 38 03 FF FE */ addi r0, r3, -0x2
/* 8005EFC0 0005AE00 7C 07 00 00 */ cmpw r7, r0
/* 8005EFC4 0005AE04 41 81 00 08 */ bgt lbl_8005EFCC
/* 8005EFC8 0005AE08 39 80 00 01 */ li r12, 0x1
.global lbl_8005EFCC
lbl_8005EFCC:
/* 8005EFCC 0005AE0C 2C 0C 00 00 */ cmpwi r12, 0x0
/* 8005EFD0 0005AE10 41 82 00 14 */ beq lbl_8005EFE4
/* 8005EFD4 0005AE14 3C 07 80 00 */ addis r0, r7, 0x8000
/* 8005EFD8 0005AE18 28 00 00 00 */ cmplwi r0, 0x0
/* 8005EFDC 0005AE1C 41 82 00 08 */ beq lbl_8005EFE4
/* 8005EFE0 0005AE20 39 60 00 01 */ li r11, 0x1
.global lbl_8005EFE4
lbl_8005EFE4:
/* 8005EFE4 0005AE24 2C 0B 00 00 */ cmpwi r11, 0x0
/* 8005EFE8 0005AE28 41 82 00 38 */ beq lbl_8005F020
/* 8005EFEC 0005AE2C 39 07 00 0A */ addi r8, r7, 0xa
/* 8005EFF0 0005AE30 7C 07 00 D0 */ neg r0, r7
/* 8005EFF4 0005AE34 55 0B 00 00 */ clrrwi r11, r8, 31
/* 8005EFF8 0005AE38 54 00 00 00 */ clrrwi r0, r0, 31
/* 8005EFFC 0005AE3C 39 00 00 01 */ li r8, 0x1
/* 8005F000 0005AE40 7C 0B 00 00 */ cmpw r11, r0
/* 8005F004 0005AE44 40 82 00 10 */ bne lbl_8005F014
/* 8005F008 0005AE48 2C 0B 00 00 */ cmpwi r11, 0x0
/* 8005F00C 0005AE4C 41 82 00 08 */ beq lbl_8005F014
/* 8005F010 0005AE50 39 00 00 00 */ li r8, 0x0
.global lbl_8005F014
lbl_8005F014:
/* 8005F014 0005AE54 2C 08 00 00 */ cmpwi r8, 0x0
/* 8005F018 0005AE58 41 82 00 08 */ beq lbl_8005F020
/* 8005F01C 0005AE5C 39 40 00 01 */ li r10, 0x1
.global lbl_8005F020
lbl_8005F020:
/* 8005F020 0005AE60 2C 0A 00 00 */ cmpwi r10, 0x0
/* 8005F024 0005AE64 41 82 00 68 */ beq lbl_8005F08C
/* 8005F028 0005AE68 38 09 00 07 */ addi r0, r9, 0x7
/* 8005F02C 0005AE6C 7C 07 00 50 */ subf r0, r7, r0
/* 8005F030 0005AE70 54 00 E8 FE */ srwi r0, r0, 3
/* 8005F034 0005AE74 7C 09 03 A6 */ mtctr r0
/* 8005F038 0005AE78 7C 07 48 00 */ cmpw r7, r9
/* 8005F03C 0005AE7C 40 80 00 50 */ bge lbl_8005F08C
.global lbl_8005F040
lbl_8005F040:
/* 8005F040 0005AE80 7D 3C 32 14 */ add r9, r28, r6
/* 8005F044 0005AE84 7D 1C 30 AE */ lbzx r8, r28, r6
/* 8005F048 0005AE88 88 09 00 01 */ lbz r0, 0x1(r9)
/* 8005F04C 0005AE8C 38 C6 00 08 */ addi r6, r6, 0x8
/* 8005F050 0005AE90 7C 84 42 14 */ add r4, r4, r8
/* 8005F054 0005AE94 89 09 00 02 */ lbz r8, 0x2(r9)
/* 8005F058 0005AE98 7C 84 02 14 */ add r4, r4, r0
/* 8005F05C 0005AE9C 88 09 00 03 */ lbz r0, 0x3(r9)
/* 8005F060 0005AEA0 7C 84 42 14 */ add r4, r4, r8
/* 8005F064 0005AEA4 89 09 00 04 */ lbz r8, 0x4(r9)
/* 8005F068 0005AEA8 7C 84 02 14 */ add r4, r4, r0
/* 8005F06C 0005AEAC 88 09 00 05 */ lbz r0, 0x5(r9)
/* 8005F070 0005AEB0 7C 84 42 14 */ add r4, r4, r8
/* 8005F074 0005AEB4 89 09 00 06 */ lbz r8, 0x6(r9)
/* 8005F078 0005AEB8 7C 84 02 14 */ add r4, r4, r0
/* 8005F07C 0005AEBC 88 09 00 07 */ lbz r0, 0x7(r9)
/* 8005F080 0005AEC0 7C 84 42 14 */ add r4, r4, r8
/* 8005F084 0005AEC4 7C 84 02 14 */ add r4, r4, r0
/* 8005F088 0005AEC8 42 00 FF B8 */ bdnz lbl_8005F040
.global lbl_8005F08C
lbl_8005F08C:
/* 8005F08C 0005AECC 39 27 00 0A */ addi r9, r7, 0xa
/* 8005F090 0005AED0 7D 1C 32 14 */ add r8, r28, r6
/* 8005F094 0005AED4 7C 06 48 50 */ subf r0, r6, r9
/* 8005F098 0005AED8 7C 09 03 A6 */ mtctr r0
/* 8005F09C 0005AEDC 7C 06 48 00 */ cmpw r6, r9
/* 8005F0A0 0005AEE0 40 80 00 18 */ bge lbl_8005F0B8
.global lbl_8005F0A4
lbl_8005F0A4:
/* 8005F0A4 0005AEE4 88 08 00 00 */ lbz r0, 0x0(r8)
/* 8005F0A8 0005AEE8 38 C6 00 01 */ addi r6, r6, 0x1
/* 8005F0AC 0005AEEC 39 08 00 01 */ addi r8, r8, 0x1
/* 8005F0B0 0005AEF0 7C 84 02 14 */ add r4, r4, r0
/* 8005F0B4 0005AEF4 42 00 FF F0 */ bdnz lbl_8005F0A4
.global lbl_8005F0B8
lbl_8005F0B8:
/* 8005F0B8 0005AEF8 7C DC 3A 14 */ add r6, r28, r7
/* 8005F0BC 0005AEFC 38 84 00 55 */ addi r4, r4, 0x55
/* 8005F0C0 0005AF00 88 06 00 0A */ lbz r0, 0xa(r6)
/* 8005F0C4 0005AF04 54 84 06 3E */ clrlwi r4, r4, 24
/* 8005F0C8 0005AF08 7C 04 00 40 */ cmplw r4, r0
/* 8005F0CC 0005AF0C 40 82 01 D8 */ bne lbl_8005F2A4
/* 8005F0D0 0005AF10 89 66 00 02 */ lbz r11, 0x2(r6)
/* 8005F0D4 0005AF14 39 00 00 00 */ li r8, 0x0
/* 8005F0D8 0005AF18 88 E6 00 01 */ lbz r7, 0x1(r6)
/* 8005F0DC 0005AF1C 38 A0 00 01 */ li r5, 0x1
/* 8005F0E0 0005AF20 55 64 15 AE */ rlwinm r4, r11, 2, 22, 23
/* 8005F0E4 0005AF24 89 3D 09 0E */ lbz r9, 0x90e(r29)
/* 8005F0E8 0005AF28 7C E7 07 34 */ extsh r7, r7
/* 8005F0EC 0005AF2C 88 06 00 04 */ lbz r0, 0x4(r6)
/* 8005F0F0 0005AF30 7C E4 23 78 */ or r4, r7, r4
/* 8005F0F4 0005AF34 88 66 00 07 */ lbz r3, 0x7(r6)
/* 8005F0F8 0005AF38 8A 46 00 06 */ lbz r18, 0x6(r6)
/* 8005F0FC 0005AF3C 7C 84 07 34 */ extsh r4, r4
/* 8005F100 0005AF40 21 44 02 FF */ subfic r10, r4, 0x2ff
/* 8005F104 0005AF44 89 86 00 00 */ lbz r12, 0x0(r6)
/* 8005F108 0005AF48 7C 04 07 34 */ extsh r4, r0
/* 8005F10C 0005AF4C 55 60 35 AE */ rlwinm r0, r11, 6, 22, 23
/* 8005F110 0005AF50 7C 80 03 78 */ or r0, r4, r0
/* 8005F114 0005AF54 8A 26 00 09 */ lbz r17, 0x9(r6)
/* 8005F118 0005AF58 7E 55 07 34 */ extsh r21, r18
/* 8005F11C 0005AF5C 54 74 15 AE */ rlwinm r20, r3, 2, 22, 23
/* 8005F120 0005AF60 7E B4 A3 78 */ or r20, r21, r20
/* 8005F124 0005AF64 7E 32 07 34 */ extsh r18, r17
/* 8005F128 0005AF68 88 E6 00 03 */ lbz r7, 0x3(r6)
/* 8005F12C 0005AF6C 7C 00 07 34 */ extsh r0, r0
/* 8005F130 0005AF70 3A 00 00 03 */ li r16, 0x3
/* 8005F134 0005AF74 88 86 00 05 */ lbz r4, 0x5(r6)
/* 8005F138 0005AF78 8A 66 00 08 */ lbz r19, 0x8(r6)
/* 8005F13C 0005AF7C 20 C0 02 FF */ subfic r6, r0, 0x2ff
/* 8005F140 0005AF80 38 00 00 02 */ li r0, 0x2
/* 8005F144 0005AF84 54 71 35 AE */ rlwinm r17, r3, 6, 22, 23
/* 8005F148 0005AF88 7D 96 07 34 */ extsh r22, r12
/* 8005F14C 0005AF8C 7E 94 07 34 */ extsh r20, r20
/* 8005F150 0005AF90 7E 4C 8B 78 */ or r12, r18, r17
/* 8005F154 0005AF94 55 75 25 AE */ rlwinm r21, r11, 4, 22, 23
/* 8005F158 0005AF98 22 34 02 FF */ subfic r17, r20, 0x2ff
/* 8005F15C 0005AF9C 7C F4 07 34 */ extsh r20, r7
/* 8005F160 0005AFA0 55 72 45 AE */ rlwinm r18, r11, 8, 22, 23
/* 8005F164 0005AFA4 7D 8B 07 34 */ extsh r11, r12
/* 8005F168 0005AFA8 7C 8C 07 34 */ extsh r12, r4
/* 8005F16C 0005AFAC 54 64 25 AE */ rlwinm r4, r3, 4, 22, 23
/* 8005F170 0005AFB0 7E 94 93 78 */ or r20, r20, r18
/* 8005F174 0005AFB4 7E C7 AB 78 */ or r7, r22, r21
/* 8005F178 0005AFB8 7D 92 23 78 */ or r18, r12, r4
/* 8005F17C 0005AFBC 21 6B 02 FF */ subfic r11, r11, 0x2ff
/* 8005F180 0005AFC0 7E 64 07 34 */ extsh r4, r19
/* 8005F184 0005AFC4 54 63 45 AE */ rlwinm r3, r3, 8, 22, 23
/* 8005F188 0005AFC8 7C 8C 1B 78 */ or r12, r4, r3
/* 8005F18C 0005AFCC B0 E1 00 58 */ sth r7, 0x58(r1)
/* 8005F190 0005AFD0 38 80 00 04 */ li r4, 0x4
/* 8005F194 0005AFD4 38 61 00 58 */ addi r3, r1, 0x58
/* 8005F198 0005AFD8 B1 41 00 5A */ sth r10, 0x5a(r1)
/* 8005F19C 0005AFDC B1 21 00 5C */ sth r9, 0x5c(r1)
/* 8005F1A0 0005AFE0 99 01 00 5E */ stb r8, 0x5e(r1)
/* 8005F1A4 0005AFE4 B2 81 00 60 */ sth r20, 0x60(r1)
/* 8005F1A8 0005AFE8 B0 C1 00 62 */ sth r6, 0x62(r1)
/* 8005F1AC 0005AFEC B1 21 00 64 */ sth r9, 0x64(r1)
/* 8005F1B0 0005AFF0 98 A1 00 66 */ stb r5, 0x66(r1)
/* 8005F1B4 0005AFF4 B2 41 00 68 */ sth r18, 0x68(r1)
/* 8005F1B8 0005AFF8 B2 21 00 6A */ sth r17, 0x6a(r1)
/* 8005F1BC 0005AFFC B1 21 00 6C */ sth r9, 0x6c(r1)
/* 8005F1C0 0005B000 98 01 00 6E */ stb r0, 0x6e(r1)
/* 8005F1C4 0005B004 B1 81 00 70 */ sth r12, 0x70(r1)
/* 8005F1C8 0005B008 B1 61 00 72 */ sth r11, 0x72(r1)
/* 8005F1CC 0005B00C B1 21 00 74 */ sth r9, 0x74(r1)
/* 8005F1D0 0005B010 9A 01 00 76 */ stb r16, 0x76(r1)
/* 8005F1D4 0005B014 7C 89 03 A6 */ mtctr r4
.global lbl_8005F1D8
lbl_8005F1D8:
/* 8005F1D8 0005B018 A8 83 00 00 */ lha r4, 0x0(r3)
/* 8005F1DC 0005B01C 2C 04 02 00 */ cmpwi r4, 0x200
/* 8005F1E0 0005B020 40 80 00 28 */ bge lbl_8005F208
/* 8005F1E4 0005B024 A8 03 00 02 */ lha r0, 0x2(r3)
/* 8005F1E8 0005B028 2C 00 01 80 */ cmpwi r0, 0x180
/* 8005F1EC 0005B02C 40 80 00 1C */ bge lbl_8005F208
/* 8005F1F0 0005B030 B0 9D 08 54 */ sth r4, 0x854(r29)
/* 8005F1F4 0005B034 A0 83 00 04 */ lhz r4, 0x4(r3)
/* 8005F1F8 0005B038 B0 1D 08 56 */ sth r0, 0x856(r29)
/* 8005F1FC 0005B03C 88 03 00 06 */ lbz r0, 0x6(r3)
/* 8005F200 0005B040 B0 9D 08 58 */ sth r4, 0x858(r29)
/* 8005F204 0005B044 98 1D 08 5A */ stb r0, 0x85a(r29)
.global lbl_8005F208
lbl_8005F208:
/* 8005F208 0005B048 A8 83 00 00 */ lha r4, 0x0(r3)
/* 8005F20C 0005B04C 2C 04 02 00 */ cmpwi r4, 0x200
/* 8005F210 0005B050 40 81 00 28 */ ble lbl_8005F238
/* 8005F214 0005B054 A8 03 00 02 */ lha r0, 0x2(r3)
/* 8005F218 0005B058 2C 00 01 80 */ cmpwi r0, 0x180
/* 8005F21C 0005B05C 40 80 00 1C */ bge lbl_8005F238
/* 8005F220 0005B060 B0 9D 08 5C */ sth r4, 0x85c(r29)
/* 8005F224 0005B064 A0 83 00 04 */ lhz r4, 0x4(r3)
/* 8005F228 0005B068 B0 1D 08 5E */ sth r0, 0x85e(r29)
/* 8005F22C 0005B06C 88 03 00 06 */ lbz r0, 0x6(r3)
/* 8005F230 0005B070 B0 9D 08 60 */ sth r4, 0x860(r29)
/* 8005F234 0005B074 98 1D 08 62 */ stb r0, 0x862(r29)
.global lbl_8005F238
lbl_8005F238:
/* 8005F238 0005B078 A8 83 00 00 */ lha r4, 0x0(r3)
/* 8005F23C 0005B07C 2C 04 02 00 */ cmpwi r4, 0x200
/* 8005F240 0005B080 40 81 00 28 */ ble lbl_8005F268
/* 8005F244 0005B084 A8 03 00 02 */ lha r0, 0x2(r3)
/* 8005F248 0005B088 2C 00 01 80 */ cmpwi r0, 0x180
/* 8005F24C 0005B08C 40 81 00 1C */ ble lbl_8005F268
/* 8005F250 0005B090 B0 9D 08 64 */ sth r4, 0x864(r29)
/* 8005F254 0005B094 A0 83 00 04 */ lhz r4, 0x4(r3)
/* 8005F258 0005B098 B0 1D 08 66 */ sth r0, 0x866(r29)
/* 8005F25C 0005B09C 88 03 00 06 */ lbz r0, 0x6(r3)
/* 8005F260 0005B0A0 B0 9D 08 68 */ sth r4, 0x868(r29)
/* 8005F264 0005B0A4 98 1D 08 6A */ stb r0, 0x86a(r29)
.global lbl_8005F268
lbl_8005F268:
/* 8005F268 0005B0A8 A8 83 00 00 */ lha r4, 0x0(r3)
/* 8005F26C 0005B0AC 2C 04 02 00 */ cmpwi r4, 0x200
/* 8005F270 0005B0B0 40 80 00 28 */ bge lbl_8005F298
/* 8005F274 0005B0B4 A8 03 00 02 */ lha r0, 0x2(r3)
/* 8005F278 0005B0B8 2C 00 01 80 */ cmpwi r0, 0x180
/* 8005F27C 0005B0BC 40 81 00 1C */ ble lbl_8005F298
/* 8005F280 0005B0C0 B0 9D 08 6C */ sth r4, 0x86c(r29)
/* 8005F284 0005B0C4 A0 83 00 04 */ lhz r4, 0x4(r3)
/* 8005F288 0005B0C8 B0 1D 08 6E */ sth r0, 0x86e(r29)
/* 8005F28C 0005B0CC 88 03 00 06 */ lbz r0, 0x6(r3)
/* 8005F290 0005B0D0 B0 9D 08 70 */ sth r4, 0x870(r29)
/* 8005F294 0005B0D4 98 1D 08 72 */ stb r0, 0x872(r29)
.global lbl_8005F298
lbl_8005F298:
/* 8005F298 0005B0D8 38 63 00 08 */ addi r3, r3, 0x8
/* 8005F29C 0005B0DC 42 00 FF 3C */ bdnz lbl_8005F1D8
/* 8005F2A0 0005B0E0 48 00 00 10 */ b lbl_8005F2B0
.global lbl_8005F2A4
lbl_8005F2A4:
/* 8005F2A4 0005B0E4 38 A5 00 01 */ addi r5, r5, 0x1
/* 8005F2A8 0005B0E8 28 05 00 02 */ cmplwi r5, 0x2
/* 8005F2AC 0005B0EC 41 80 FC C4 */ blt lbl_8005EF70
.global lbl_8005F2B0
lbl_8005F2B0:
/* 8005F2B0 0005B0F0 C1 02 87 E0 */ lfs f8, "@5025_8055E760"@sda21(r2)
/* 8005F2B4 0005B0F4 38 00 00 02 */ li r0, 0x2
/* 8005F2B8 0005B0F8 39 01 00 48 */ addi r8, r1, 0x48
/* 8005F2BC 0005B0FC 38 C1 00 38 */ addi r6, r1, 0x38
/* 8005F2C0 0005B100 FC E0 40 90 */ fmr f7, f8
/* 8005F2C4 0005B104 38 A1 00 10 */ addi r5, r1, 0x10
/* 8005F2C8 0005B108 38 61 00 08 */ addi r3, r1, 0x8
/* 8005F2CC 0005B10C C8 C2 88 18 */ lfd f6, "@5038"@sda21(r2)
/* 8005F2D0 0005B110 3A 20 00 00 */ li r17, 0x0
/* 8005F2D4 0005B114 7C 09 03 A6 */ mtctr r0
.global lbl_8005F2D8
lbl_8005F2D8:
/* 8005F2D8 0005B118 56 29 1D 78 */ rlwinm r9, r17, 3, 21, 28
/* 8005F2DC 0005B11C 56 2C 0D FC */ rlwinm r12, r17, 1, 23, 30
/* 8005F2E0 0005B120 7D 3D 4A 14 */ add r9, r29, r9
/* 8005F2E4 0005B124 56 2A 15 BA */ rlwinm r10, r17, 2, 22, 29
/* 8005F2E8 0005B128 A9 69 08 54 */ lha r11, 0x854(r9)
/* 8005F2EC 0005B12C 3A 31 00 01 */ addi r17, r17, 0x1
/* 8005F2F0 0005B130 AA 09 08 56 */ lha r16, 0x856(r9)
/* 8005F2F4 0005B134 56 29 1D 78 */ rlwinm r9, r17, 3, 21, 28
/* 8005F2F8 0005B138 6D 60 80 00 */ xoris r0, r11, 0x8000
/* 8005F2FC 0005B13C 90 01 00 7C */ stw r0, 0x7c(r1)
/* 8005F300 0005B140 6E 07 80 00 */ xoris r7, r16, 0x8000
/* 8005F304 0005B144 7C 85 62 AE */ lhax r4, r5, r12
/* 8005F308 0005B148 7C 03 62 AE */ lhax r0, r3, r12
/* 8005F30C 0005B14C 7D 3D 4A 14 */ add r9, r29, r9
/* 8005F310 0005B150 7C 84 58 50 */ subf r4, r4, r11
/* 8005F314 0005B154 90 E1 00 84 */ stw r7, 0x84(r1)
/* 8005F318 0005B158 7C 00 80 50 */ subf r0, r0, r16
/* 8005F31C 0005B15C C8 A1 00 78 */ lfd f5, 0x78(r1)
/* 8005F320 0005B160 C8 61 00 80 */ lfd f3, 0x80(r1)
/* 8005F324 0005B164 6C 84 80 00 */ xoris r4, r4, 0x8000
/* 8005F328 0005B168 90 81 00 7C */ stw r4, 0x7c(r1)
/* 8005F32C 0005B16C 6C 00 80 00 */ xoris r0, r0, 0x8000
/* 8005F330 0005B170 AA 09 08 56 */ lha r16, 0x856(r9)
/* 8005F334 0005B174 56 2C 0D FC */ rlwinm r12, r17, 1, 23, 30
/* 8005F338 0005B178 90 01 00 84 */ stw r0, 0x84(r1)
/* 8005F33C 0005B17C EC 85 30 28 */ fsubs f4, f5, f6
/* 8005F340 0005B180 A9 69 08 54 */ lha r11, 0x854(r9)
/* 8005F344 0005B184 6E 07 80 00 */ xoris r7, r16, 0x8000
/* 8005F348 0005B188 C8 01 00 80 */ lfd f0, 0x80(r1)
/* 8005F34C 0005B18C EC 43 30 28 */ fsubs f2, f3, f6
/* 8005F350 0005B190 C8 21 00 78 */ lfd f1, 0x78(r1)
/* 8005F354 0005B194 6D 60 80 00 */ xoris r0, r11, 0x8000
/* 8005F358 0005B198 90 E1 00 84 */ stw r7, 0x84(r1)
/* 8005F35C 0005B19C 7C 85 62 AE */ lhax r4, r5, r12
/* 8005F360 0005B1A0 EC 21 30 28 */ fsubs f1, f1, f6
/* 8005F364 0005B1A4 90 01 00 7C */ stw r0, 0x7c(r1)
/* 8005F368 0005B1A8 EC 00 30 28 */ fsubs f0, f0, f6
/* 8005F36C 0005B1AC 7C 03 62 AE */ lhax r0, r3, r12
/* 8005F370 0005B1B0 7C 84 58 50 */ subf r4, r4, r11
/* 8005F374 0005B1B4 C8 A1 00 78 */ lfd f5, 0x78(r1)
/* 8005F378 0005B1B8 7C 00 80 50 */ subf r0, r0, r16
/* 8005F37C 0005B1BC 6C 84 80 00 */ xoris r4, r4, 0x8000
/* 8005F380 0005B1C0 7C 88 55 2E */ stfsx f4, r8, r10
/* 8005F384 0005B1C4 6C 00 80 00 */ xoris r0, r0, 0x8000
/* 8005F388 0005B1C8 C8 61 00 80 */ lfd f3, 0x80(r1)
/* 8005F38C 0005B1CC EC E7 08 2A */ fadds f7, f7, f1
/* 8005F390 0005B1D0 7C 46 55 2E */ stfsx f2, r6, r10
/* 8005F394 0005B1D4 56 2A 15 BA */ rlwinm r10, r17, 2, 22, 29
/* 8005F398 0005B1D8 EC 85 30 28 */ fsubs f4, f5, f6
/* 8005F39C 0005B1DC 3A 31 00 01 */ addi r17, r17, 0x1
/* 8005F3A0 0005B1E0 90 81 00 7C */ stw r4, 0x7c(r1)
/* 8005F3A4 0005B1E4 EC 43 30 28 */ fsubs f2, f3, f6
/* 8005F3A8 0005B1E8 C8 21 00 78 */ lfd f1, 0x78(r1)
/* 8005F3AC 0005B1EC ED 08 00 2A */ fadds f8, f8, f0
/* 8005F3B0 0005B1F0 90 01 00 84 */ stw r0, 0x84(r1)
/* 8005F3B4 0005B1F4 EC 21 30 28 */ fsubs f1, f1, f6
/* 8005F3B8 0005B1F8 C8 01 00 80 */ lfd f0, 0x80(r1)
/* 8005F3BC 0005B1FC 7C 88 55 2E */ stfsx f4, r8, r10
/* 8005F3C0 0005B200 EC 00 30 28 */ fsubs f0, f0, f6
/* 8005F3C4 0005B204 EC E7 08 2A */ fadds f7, f7, f1
/* 8005F3C8 0005B208 7C 46 55 2E */ stfsx f2, r6, r10
/* 8005F3CC 0005B20C ED 08 00 2A */ fadds f8, f8, f0
/* 8005F3D0 0005B210 42 00 FF 08 */ bdnz lbl_8005F2D8
/* 8005F3D4 0005B214 C0 02 87 E4 */ lfs f0, "@5026_8055E764"@sda21(r2)
/* 8005F3D8 0005B218 C8 22 87 F0 */ lfd f1, "@5029"@sda21(r2)
/* 8005F3DC 0005B21C EF E7 00 32 */ fmuls f31, f7, f0
/* 8005F3E0 0005B220 EF C8 00 32 */ fmuls f30, f8, f0
/* 8005F3E4 0005B224 4B FB 47 B1 */ bl atan
/* 8005F3E8 0005B228 C0 42 87 E8 */ lfs f2, "@5027"@sda21(r2)
/* 8005F3EC 0005B22C FF A0 08 18 */ frsp f29, f1
/* 8005F3F0 0005B230 C0 02 87 EC */ lfs f0, "@5028"@sda21(r2)
/* 8005F3F4 0005B234 EC 22 F8 2A */ fadds f1, f2, f31
/* 8005F3F8 0005B238 EC 21 00 24 */ fdivs f1, f1, f0
/* 8005F3FC 0005B23C 4B FB 47 99 */ bl atan
/* 8005F400 0005B240 FC 00 08 18 */ frsp f0, f1
/* 8005F404 0005B244 C8 22 88 00 */ lfd f1, "@5032_8055E780"@sda21(r2)
/* 8005F408 0005B248 EF E0 E8 28 */ fsubs f31, f0, f29
/* 8005F40C 0005B24C 4B FB 47 89 */ bl atan
/* 8005F410 0005B250 C0 42 87 F8 */ lfs f2, "@5030"@sda21(r2)
/* 8005F414 0005B254 FF A0 08 18 */ frsp f29, f1
/* 8005F418 0005B258 C0 02 87 FC */ lfs f0, "@5031"@sda21(r2)
/* 8005F41C 0005B25C EC 22 F0 2A */ fadds f1, f2, f30
/* 8005F420 0005B260 EC 21 00 24 */ fdivs f1, f1, f0
/* 8005F424 0005B264 4B FB 47 71 */ bl atan
/* 8005F428 0005B268 FC 00 08 18 */ frsp f0, f1
/* 8005F42C 0005B26C 57 71 10 3A */ slwi r17, r27, 2
/* 8005F430 0005B270 FC 20 F8 90 */ fmr f1, f31
/* 8005F434 0005B274 EF A0 E8 28 */ fsubs f29, f0, f29
/* 8005F438 0005B278 4B FB 50 D9 */ bl tan
/* 8005F43C 0005B27C FC 60 08 18 */ frsp f3, f1
/* 8005F440 0005B280 C0 42 88 08 */ lfs f2, "@5033_8055E788"@sda21(r2)
/* 8005F444 0005B284 C0 02 87 EC */ lfs f0, "@5028"@sda21(r2)
/* 8005F448 0005B288 FC 20 E8 90 */ fmr f1, f29
/* 8005F44C 0005B28C 3A 1F 00 00 */ addi r16, r31, 0x0
/* 8005F450 0005B290 EC 42 00 F2 */ fmuls f2, f2, f3
/* 8005F454 0005B294 EC 00 00 B2 */ fmuls f0, f0, f2
/* 8005F458 0005B298 7C 10 8D 2E */ stfsx f0, r16, r17
/* 8005F45C 0005B29C 4B FB 50 B5 */ bl tan
/* 8005F460 0005B2A0 FC 40 08 18 */ frsp f2, f1
/* 8005F464 0005B2A4 C0 02 88 08 */ lfs f0, "@5033_8055E788"@sda21(r2)
/* 8005F468 0005B2A8 7D 30 8C 2E */ lfsx f9, r16, r17
/* 8005F46C 0005B2AC 3A BF 00 30 */ addi r21, r31, 0x30
/* 8005F470 0005B2B0 C0 82 87 E0 */ lfs f4, "@5025_8055E760"@sda21(r2)
/* 8005F474 0005B2B4 3A DF 00 20 */ addi r22, r31, 0x20
/* 8005F478 0005B2B8 EC 40 00 B2 */ fmuls f2, f0, f2
/* 8005F47C 0005B2BC C0 22 87 FC */ lfs f1, "@5031"@sda21(r2)
/* 8005F480 0005B2C0 C0 01 00 48 */ lfs f0, 0x48(r1)
/* 8005F484 0005B2C4 3A FF 00 40 */ addi r23, r31, 0x40
/* 8005F488 0005B2C8 7C 95 8D 2E */ stfsx f4, r21, r17
/* 8005F48C 0005B2CC 38 7F 00 10 */ addi r3, r31, 0x10
/* 8005F490 0005B2D0 EC 41 00 B2 */ fmuls f2, f1, f2
/* 8005F494 0005B2D4 C0 21 00 38 */ lfs f1, 0x38(r1)
/* 8005F498 0005B2D8 EC 60 48 2A */ fadds f3, f0, f9
/* 8005F49C 0005B2DC 7C 96 8D 2E */ stfsx f4, r22, r17
/* 8005F4A0 0005B2E0 7C B5 8C 2E */ lfsx f5, r21, r17
/* 8005F4A4 0005B2E4 3A 41 00 28 */ addi r18, r1, 0x28
/* 8005F4A8 0005B2E8 FD 00 10 18 */ frsp f8, f2
/* 8005F4AC 0005B2EC 7C 43 8D 2E */ stfsx f2, r3, r17
/* 8005F4B0 0005B2F0 7C 16 8C 2E */ lfsx f0, r22, r17
/* 8005F4B4 0005B2F4 3B 01 00 38 */ addi r24, r1, 0x38
/* 8005F4B8 0005B2F8 D0 61 00 48 */ stfs f3, 0x48(r1)
/* 8005F4BC 0005B2FC 3B 21 00 48 */ addi r25, r1, 0x48
/* 8005F4C0 0005B300 EC 41 40 2A */ fadds f2, f1, f8
/* 8005F4C4 0005B304 C0 21 00 4C */ lfs f1, 0x4c(r1)
/* 8005F4C8 0005B308 EC E0 18 2A */ fadds f7, f0, f3
/* 8005F4CC 0005B30C C0 01 00 3C */ lfs f0, 0x3c(r1)
/* 8005F4D0 0005B310 EC 21 48 2A */ fadds f1, f1, f9
/* 8005F4D4 0005B314 D0 41 00 38 */ stfs f2, 0x38(r1)
/* 8005F4D8 0005B318 EC C5 10 2A */ fadds f6, f5, f2
/* 8005F4DC 0005B31C 7C F6 8D 2E */ stfsx f7, r22, r17
/* 8005F4E0 0005B320 EC 00 40 2A */ fadds f0, f0, f8
/* 8005F4E4 0005B324 C0 A1 00 50 */ lfs f5, 0x50(r1)
/* 8005F4E8 0005B328 7C D5 8D 2E */ stfsx f6, r21, r17
/* 8005F4EC 0005B32C 3A 61 00 18 */ addi r19, r1, 0x18
/* 8005F4F0 0005B330 ED 85 48 2A */ fadds f12, f5, f9
/* 8005F4F4 0005B334 7C F6 8C 2E */ lfsx f7, r22, r17
/* 8005F4F8 0005B338 FC C0 30 18 */ frsp f6, f6
/* 8005F4FC 0005B33C C0 A1 00 40 */ lfs f5, 0x40(r1)
/* 8005F500 0005B340 EC E7 08 2A */ fadds f7, f7, f1
/* 8005F504 0005B344 CB A2 88 18 */ lfd f29, "@5038"@sda21(r2)
/* 8005F508 0005B348 ED 65 40 2A */ fadds f11, f5, f8
/* 8005F50C 0005B34C 7C F6 8D 2E */ stfsx f7, r22, r17
/* 8005F510 0005B350 EC C6 00 2A */ fadds f6, f6, f0
/* 8005F514 0005B354 C0 A1 00 54 */ lfs f5, 0x54(r1)
/* 8005F518 0005B358 7C F6 8C 2E */ lfsx f7, r22, r17
/* 8005F51C 0005B35C 3B 41 00 08 */ addi r26, r1, 0x8
/* 8005F520 0005B360 ED 25 48 2A */ fadds f9, f5, f9
/* 8005F524 0005B364 7C D5 8D 2E */ stfsx f6, r21, r17
/* 8005F528 0005B368 FC C0 30 18 */ frsp f6, f6
/* 8005F52C 0005B36C C0 A1 00 44 */ lfs f5, 0x44(r1)
/* 8005F530 0005B370 EC E7 60 2A */ fadds f7, f7, f12
/* 8005F534 0005B374 C3 C2 88 0C */ lfs f30, "@5034_8055E78C"@sda21(r2)
/* 8005F538 0005B378 ED 46 58 2A */ fadds f10, f6, f11
/* 8005F53C 0005B37C 7C F6 8D 2E */ stfsx f7, r22, r17
/* 8005F540 0005B380 ED 05 40 2A */ fadds f8, f5, f8
/* 8005F544 0005B384 C0 C2 87 E4 */ lfs f6, "@5026_8055E764"@sda21(r2)
/* 8005F548 0005B388 7C F6 8C 2E */ lfsx f7, r22, r17
/* 8005F54C 0005B38C 3B 61 00 10 */ addi r27, r1, 0x10
/* 8005F550 0005B390 FC A0 50 18 */ frsp f5, f10
/* 8005F554 0005B394 7D 55 8D 2E */ stfsx f10, r21, r17
/* 8005F558 0005B398 EC E7 48 2A */ fadds f7, f7, f9
/* 8005F55C 0005B39C C3 E2 88 10 */ lfs f31, "@5035_8055E790"@sda21(r2)
/* 8005F560 0005B3A0 D0 21 00 4C */ stfs f1, 0x4c(r1)
/* 8005F564 0005B3A4 3A 00 00 00 */ li r16, 0x0
/* 8005F568 0005B3A8 EC 65 40 2A */ fadds f3, f5, f8
/* 8005F56C 0005B3AC 7C F6 8D 2E */ stfsx f7, r22, r17
/* 8005F570 0005B3B0 7C 75 8D 2E */ stfsx f3, r21, r17
/* 8005F574 0005B3B4 FC 60 18 18 */ frsp f3, f3
/* 8005F578 0005B3B8 7C B6 8C 2E */ lfsx f5, r22, r17
/* 8005F57C 0005B3BC D0 01 00 3C */ stfs f0, 0x3c(r1)
/* 8005F580 0005B3C0 EC A5 01 B2 */ fmuls f5, f5, f6
/* 8005F584 0005B3C4 EC 43 01 B2 */ fmuls f2, f3, f6
/* 8005F588 0005B3C8 D1 81 00 50 */ stfs f12, 0x50(r1)
/* 8005F58C 0005B3CC D1 61 00 40 */ stfs f11, 0x40(r1)
/* 8005F590 0005B3D0 D1 21 00 54 */ stfs f9, 0x54(r1)
/* 8005F594 0005B3D4 D1 01 00 44 */ stfs f8, 0x44(r1)
/* 8005F598 0005B3D8 7C B6 8D 2E */ stfsx f5, r22, r17
/* 8005F59C 0005B3DC 7C 55 8D 2E */ stfsx f2, r21, r17
/* 8005F5A0 0005B3E0 7C 97 8D 2E */ stfsx f4, r23, r17
.global lbl_8005F5A4
lbl_8005F5A4:
/* 8005F5A4 0005B3E4 56 14 15 BA */ rlwinm r20, r16, 2, 22, 29
/* 8005F5A8 0005B3E8 7C 55 8C 2E */ lfsx f2, r21, r17
/* 8005F5AC 0005B3EC 7C 78 A4 2E */ lfsx f3, r24, r20
/* 8005F5B0 0005B3F0 7C 39 A4 2E */ lfsx f1, r25, r20
/* 8005F5B4 0005B3F4 7C 16 8C 2E */ lfsx f0, r22, r17
/* 8005F5B8 0005B3F8 EC 43 10 28 */ fsubs f2, f3, f2
/* 8005F5BC 0005B3FC EC 01 00 28 */ fsubs f0, f1, f0
/* 8005F5C0 0005B400 EC 22 00 24 */ fdivs f1, f2, f0
/* 8005F5C4 0005B404 4B FB 45 D1 */ bl atan
/* 8005F5C8 0005B408 56 00 0D FC */ rlwinm r0, r16, 1, 23, 30
/* 8005F5CC 0005B40C FC 40 08 18 */ frsp f2, f1
/* 8005F5D0 0005B410 7C 7A 02 AE */ lhax r3, r26, r0
/* 8005F5D4 0005B414 7C 1B 02 AE */ lhax r0, r27, r0
/* 8005F5D8 0005B418 6C 63 80 00 */ xoris r3, r3, 0x8000
/* 8005F5DC 0005B41C 90 61 00 7C */ stw r3, 0x7c(r1)
/* 8005F5E0 0005B420 6C 00 80 00 */ xoris r0, r0, 0x8000
/* 8005F5E4 0005B424 90 01 00 84 */ stw r0, 0x84(r1)
/* 8005F5E8 0005B428 C8 21 00 78 */ lfd f1, 0x78(r1)
/* 8005F5EC 0005B42C C8 01 00 80 */ lfd f0, 0x80(r1)
/* 8005F5F0 0005B430 EC 21 E8 28 */ fsubs f1, f1, f29
/* 8005F5F4 0005B434 7C 52 A5 2E */ stfsx f2, r18, r20
/* 8005F5F8 0005B438 EC 00 E8 28 */ fsubs f0, f0, f29
/* 8005F5FC 0005B43C EC 21 F0 28 */ fsubs f1, f1, f30
/* 8005F600 0005B440 EC 00 F8 28 */ fsubs f0, f0, f31
/* 8005F604 0005B444 EC 21 00 24 */ fdivs f1, f1, f0
/* 8005F608 0005B448 4B FB 45 8D */ bl atan
/* 8005F60C 0005B44C FC 40 08 18 */ frsp f2, f1
/* 8005F610 0005B450 7C 32 A4 2E */ lfsx f1, r18, r20
/* 8005F614 0005B454 3A 10 00 01 */ addi r16, r16, 0x1
/* 8005F618 0005B458 7C 17 8C 2E */ lfsx f0, r23, r17
/* 8005F61C 0005B45C 28 10 00 04 */ cmplwi r16, 0x4
/* 8005F620 0005B460 7C 53 A5 2E */ stfsx f2, r19, r20
/* 8005F624 0005B464 EC 21 10 28 */ fsubs f1, f1, f2
/* 8005F628 0005B468 EC 00 08 2A */ fadds f0, f0, f1
/* 8005F62C 0005B46C 7C 17 8D 2E */ stfsx f0, r23, r17
/* 8005F630 0005B470 41 80 FF 74 */ blt lbl_8005F5A4
/* 8005F634 0005B474 38 9F 00 40 */ addi r4, r31, 0x40
/* 8005F638 0005B478 C0 02 87 E4 */ lfs f0, "@5026_8055E764"@sda21(r2)
/* 8005F63C 0005B47C 7C 24 F4 2E */ lfsx f1, r4, r30
/* 8005F640 0005B480 38 A0 00 00 */ li r5, 0x0
/* 8005F644 0005B484 3C 60 80 00 */ lis r3, 0x8000
/* 8005F648 0005B488 EC 01 00 32 */ fmuls f0, f1, f0
/* 8005F64C 0005B48C 7C 04 F5 2E */ stfsx f0, r4, r30
.global lbl_8005F650
lbl_8005F650:
/* 8005F650 0005B490 80 1D 09 24 */ lwz r0, 0x924(r29)
/* 8005F654 0005B494 54 A4 06 3E */ clrlwi r4, r5, 24
/* 8005F658 0005B498 1C 84 00 0A */ mulli r4, r4, 0xa
/* 8005F65C 0005B49C 38 C0 00 00 */ li r6, 0x0
/* 8005F660 0005B4A0 2C 00 00 00 */ cmpwi r0, 0x0
/* 8005F664 0005B4A4 40 82 00 08 */ bne lbl_8005F66C
/* 8005F668 0005B4A8 38 84 00 16 */ addi r4, r4, 0x16
.global lbl_8005F66C
lbl_8005F66C:
/* 8005F66C 0005B4AC 39 04 00 09 */ addi r8, r4, 0x9
/* 8005F670 0005B4B0 7C 87 23 78 */ mr r7, r4
/* 8005F674 0005B4B4 7C 04 40 00 */ cmpw r4, r8
/* 8005F678 0005B4B8 40 80 01 30 */ bge lbl_8005F7A8
/* 8005F67C 0005B4BC 39 24 00 01 */ addi r9, r4, 0x1
/* 8005F680 0005B4C0 39 40 00 00 */ li r10, 0x0
/* 8005F684 0005B4C4 39 60 00 00 */ li r11, 0x0
/* 8005F688 0005B4C8 39 80 00 00 */ li r12, 0x0
/* 8005F68C 0005B4CC 3A 00 00 00 */ li r16, 0x0
/* 8005F690 0005B4D0 41 81 00 14 */ bgt lbl_8005F6A4
/* 8005F694 0005B4D4 38 03 FF FE */ addi r0, r3, -0x2
/* 8005F698 0005B4D8 7C 08 00 00 */ cmpw r8, r0
/* 8005F69C 0005B4DC 41 81 00 08 */ bgt lbl_8005F6A4
/* 8005F6A0 0005B4E0 3A 00 00 01 */ li r16, 0x1
.global lbl_8005F6A4
lbl_8005F6A4:
/* 8005F6A4 0005B4E4 2C 10 00 00 */ cmpwi r16, 0x0
/* 8005F6A8 0005B4E8 41 82 00 14 */ beq lbl_8005F6BC
/* 8005F6AC 0005B4EC 38 03 FF FE */ addi r0, r3, -0x2
/* 8005F6B0 0005B4F0 7C 04 00 00 */ cmpw r4, r0
/* 8005F6B4 0005B4F4 41 81 00 08 */ bgt lbl_8005F6BC
/* 8005F6B8 0005B4F8 39 80 00 01 */ li r12, 0x1
.global lbl_8005F6BC
lbl_8005F6BC:
/* 8005F6BC 0005B4FC 2C 0C 00 00 */ cmpwi r12, 0x0
/* 8005F6C0 0005B500 41 82 00 14 */ beq lbl_8005F6D4
/* 8005F6C4 0005B504 3C 04 80 00 */ addis r0, r4, 0x8000
/* 8005F6C8 0005B508 28 00 00 00 */ cmplwi r0, 0x0
/* 8005F6CC 0005B50C 41 82 00 08 */ beq lbl_8005F6D4
/* 8005F6D0 0005B510 39 60 00 01 */ li r11, 0x1
.global lbl_8005F6D4
lbl_8005F6D4:
/* 8005F6D4 0005B514 2C 0B 00 00 */ cmpwi r11, 0x0
/* 8005F6D8 0005B518 41 82 00 38 */ beq lbl_8005F710
/* 8005F6DC 0005B51C 39 04 00 09 */ addi r8, r4, 0x9
/* 8005F6E0 0005B520 7C 04 00 D0 */ neg r0, r4
/* 8005F6E4 0005B524 55 0B 00 00 */ clrrwi r11, r8, 31
/* 8005F6E8 0005B528 54 00 00 00 */ clrrwi r0, r0, 31
/* 8005F6EC 0005B52C 39 00 00 01 */ li r8, 0x1
/* 8005F6F0 0005B530 7C 0B 00 00 */ cmpw r11, r0
/* 8005F6F4 0005B534 40 82 00 10 */ bne lbl_8005F704
/* 8005F6F8 0005B538 2C 0B 00 00 */ cmpwi r11, 0x0
/* 8005F6FC 0005B53C 41 82 00 08 */ beq lbl_8005F704
/* 8005F700 0005B540 39 00 00 00 */ li r8, 0x0
.global lbl_8005F704
lbl_8005F704:
/* 8005F704 0005B544 2C 08 00 00 */ cmpwi r8, 0x0
/* 8005F708 0005B548 41 82 00 08 */ beq lbl_8005F710
/* 8005F70C 0005B54C 39 40 00 01 */ li r10, 0x1
.global lbl_8005F710
lbl_8005F710:
/* 8005F710 0005B550 2C 0A 00 00 */ cmpwi r10, 0x0
/* 8005F714 0005B554 41 82 00 68 */ beq lbl_8005F77C
/* 8005F718 0005B558 38 09 00 07 */ addi r0, r9, 0x7
/* 8005F71C 0005B55C 7C 04 00 50 */ subf r0, r4, r0
/* 8005F720 0005B560 54 00 E8 FE */ srwi r0, r0, 3
/* 8005F724 0005B564 7C 09 03 A6 */ mtctr r0
/* 8005F728 0005B568 7C 04 48 00 */ cmpw r4, r9
/* 8005F72C 0005B56C 40 80 00 50 */ bge lbl_8005F77C
.global lbl_8005F730
lbl_8005F730:
/* 8005F730 0005B570 7D 3C 3A 14 */ add r9, r28, r7
/* 8005F734 0005B574 7D 1C 38 AE */ lbzx r8, r28, r7
/* 8005F738 0005B578 88 09 00 01 */ lbz r0, 0x1(r9)
/* 8005F73C 0005B57C 38 E7 00 08 */ addi r7, r7, 0x8
/* 8005F740 0005B580 7C C6 42 14 */ add r6, r6, r8
/* 8005F744 0005B584 89 09 00 02 */ lbz r8, 0x2(r9)
/* 8005F748 0005B588 7C C6 02 14 */ add r6, r6, r0
/* 8005F74C 0005B58C 88 09 00 03 */ lbz r0, 0x3(r9)
/* 8005F750 0005B590 7C C6 42 14 */ add r6, r6, r8
/* 8005F754 0005B594 89 09 00 04 */ lbz r8, 0x4(r9)
/* 8005F758 0005B598 7C C6 02 14 */ add r6, r6, r0
/* 8005F75C 0005B59C 88 09 00 05 */ lbz r0, 0x5(r9)
/* 8005F760 0005B5A0 7C C6 42 14 */ add r6, r6, r8
/* 8005F764 0005B5A4 89 09 00 06 */ lbz r8, 0x6(r9)
/* 8005F768 0005B5A8 7C C6 02 14 */ add r6, r6, r0
/* 8005F76C 0005B5AC 88 09 00 07 */ lbz r0, 0x7(r9)
/* 8005F770 0005B5B0 7C C6 42 14 */ add r6, r6, r8
/* 8005F774 0005B5B4 7C C6 02 14 */ add r6, r6, r0
/* 8005F778 0005B5B8 42 00 FF B8 */ bdnz lbl_8005F730
.global lbl_8005F77C
lbl_8005F77C:
/* 8005F77C 0005B5BC 39 24 00 09 */ addi r9, r4, 0x9
/* 8005F780 0005B5C0 7D 1C 3A 14 */ add r8, r28, r7
/* 8005F784 0005B5C4 7C 07 48 50 */ subf r0, r7, r9
/* 8005F788 0005B5C8 7C 09 03 A6 */ mtctr r0
/* 8005F78C 0005B5CC 7C 07 48 00 */ cmpw r7, r9
/* 8005F790 0005B5D0 40 80 00 18 */ bge lbl_8005F7A8
.global lbl_8005F794
lbl_8005F794:
/* 8005F794 0005B5D4 88 08 00 00 */ lbz r0, 0x0(r8)
/* 8005F798 0005B5D8 38 E7 00 01 */ addi r7, r7, 0x1
/* 8005F79C 0005B5DC 39 08 00 01 */ addi r8, r8, 0x1
/* 8005F7A0 0005B5E0 7C C6 02 14 */ add r6, r6, r0
/* 8005F7A4 0005B5E4 42 00 FF F0 */ bdnz lbl_8005F794
.global lbl_8005F7A8
lbl_8005F7A8:
/* 8005F7A8 0005B5E8 7C 9C 22 14 */ add r4, r28, r4
/* 8005F7AC 0005B5EC 38 C6 00 55 */ addi r6, r6, 0x55
/* 8005F7B0 0005B5F0 88 04 00 09 */ lbz r0, 0x9(r4)
/* 8005F7B4 0005B5F4 54 C6 06 3E */ clrlwi r6, r6, 24
/* 8005F7B8 0005B5F8 7C 06 00 40 */ cmplw r6, r0
/* 8005F7BC 0005B5FC 40 82 00 98 */ bne lbl_8005F854
/* 8005F7C0 0005B600 88 04 00 03 */ lbz r0, 0x3(r4)
/* 8005F7C4 0005B604 88 64 00 00 */ lbz r3, 0x0(r4)
/* 8005F7C8 0005B608 54 00 E7 BE */ extrwi r0, r0, 2, 26
/* 8005F7CC 0005B60C 50 60 15 BA */ rlwimi r0, r3, 2, 22, 29
/* 8005F7D0 0005B610 B0 1D 08 74 */ sth r0, 0x874(r29)
/* 8005F7D4 0005B614 88 04 00 03 */ lbz r0, 0x3(r4)
/* 8005F7D8 0005B618 88 64 00 01 */ lbz r3, 0x1(r4)
/* 8005F7DC 0005B61C 54 00 F7 BE */ extrwi r0, r0, 2, 28
/* 8005F7E0 0005B620 50 60 15 BA */ rlwimi r0, r3, 2, 22, 29
/* 8005F7E4 0005B624 B0 1D 08 76 */ sth r0, 0x876(r29)
/* 8005F7E8 0005B628 88 04 00 03 */ lbz r0, 0x3(r4)
/* 8005F7EC 0005B62C 88 64 00 02 */ lbz r3, 0x2(r4)
/* 8005F7F0 0005B630 54 00 07 BE */ clrlwi r0, r0, 30
/* 8005F7F4 0005B634 50 60 15 BA */ rlwimi r0, r3, 2, 22, 29
/* 8005F7F8 0005B638 B0 1D 08 78 */ sth r0, 0x878(r29)
/* 8005F7FC 0005B63C 88 04 00 07 */ lbz r0, 0x7(r4)
/* 8005F800 0005B640 88 64 00 04 */ lbz r3, 0x4(r4)
/* 8005F804 0005B644 54 00 E7 BE */ extrwi r0, r0, 2, 26
/* 8005F808 0005B648 50 60 15 BA */ rlwimi r0, r3, 2, 22, 29
/* 8005F80C 0005B64C B0 1D 08 7A */ sth r0, 0x87a(r29)
/* 8005F810 0005B650 88 04 00 07 */ lbz r0, 0x7(r4)
/* 8005F814 0005B654 88 64 00 05 */ lbz r3, 0x5(r4)
/* 8005F818 0005B658 54 00 F7 BE */ extrwi r0, r0, 2, 28
/* 8005F81C 0005B65C 50 60 15 BA */ rlwimi r0, r3, 2, 22, 29
/* 8005F820 0005B660 B0 1D 08 7C */ sth r0, 0x87c(r29)
/* 8005F824 0005B664 88 04 00 07 */ lbz r0, 0x7(r4)
/* 8005F828 0005B668 88 64 00 06 */ lbz r3, 0x6(r4)
/* 8005F82C 0005B66C 54 00 07 BE */ clrlwi r0, r0, 30
/* 8005F830 0005B670 50 60 15 BA */ rlwimi r0, r3, 2, 22, 29
/* 8005F834 0005B674 B0 1D 08 7E */ sth r0, 0x87e(r29)
/* 8005F838 0005B678 88 04 00 08 */ lbz r0, 0x8(r4)
/* 8005F83C 0005B67C 54 00 06 7E */ clrlwi r0, r0, 25
/* 8005F840 0005B680 98 1D 08 81 */ stb r0, 0x881(r29)
/* 8005F844 0005B684 88 04 00 08 */ lbz r0, 0x8(r4)
/* 8005F848 0005B688 54 00 06 30 */ rlwinm r0, r0, 0, 24, 24
/* 8005F84C 0005B68C 98 1D 08 80 */ stb r0, 0x880(r29)
/* 8005F850 0005B690 48 00 00 10 */ b lbl_8005F860
.global lbl_8005F854
lbl_8005F854:
/* 8005F854 0005B694 38 A5 00 01 */ addi r5, r5, 0x1
/* 8005F858 0005B698 28 05 00 02 */ cmplwi r5, 0x2
/* 8005F85C 0005B69C 41 80 FD F4 */ blt lbl_8005F650
.global lbl_8005F860
lbl_8005F860:
/* 8005F860 0005B6A0 39 61 00 D0 */ addi r11, r1, 0xd0
/* 8005F864 0005B6A4 E3 E1 00 F8 */ psq_l f31, 0xf8(r1), 0, qr0
/* 8005F868 0005B6A8 CB E1 00 F0 */ lfd f31, 0xf0(r1)
/* 8005F86C 0005B6AC E3 C1 00 E8 */ psq_l f30, 0xe8(r1), 0, qr0
/* 8005F870 0005B6B0 CB C1 00 E0 */ lfd f30, 0xe0(r1)
/* 8005F874 0005B6B4 E3 A1 00 D8 */ psq_l f29, 0xd8(r1), 0, qr0
/* 8005F878 0005B6B8 CB A1 00 D0 */ lfd f29, 0xd0(r1)
/* 8005F87C 0005B6BC 4B FA 7A E1 */ bl lbl_8000735C
/* 8005F880 0005B6C0 80 01 01 04 */ lwz r0, 0x104(r1)
/* 8005F884 0005B6C4 7C 08 03 A6 */ mtlr r0
/* 8005F888 0005B6C8 38 21 01 00 */ addi r1, r1, 0x100
/* 8005F88C 0005B6CC 4E 80 00 20 */ blr
.global __wpadCheckCalibration
__wpadCheckCalibration:
/* 8005F890 0005B6D0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 8005F894 0005B6D4 7C 08 02 A6 */ mflr r0
/* 8005F898 0005B6D8 2C 05 00 00 */ cmpwi r5, 0x0
/* 8005F89C 0005B6DC 38 E0 00 00 */ li r7, 0x0
/* 8005F8A0 0005B6E0 90 01 00 24 */ stw r0, 0x24(r1)
/* 8005F8A4 0005B6E4 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8005F8A8 0005B6E8 3B E0 00 00 */ li r31, 0x0
/* 8005F8AC 0005B6EC 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8005F8B0 0005B6F0 7C 9E 23 78 */ mr r30, r4
/* 8005F8B4 0005B6F4 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8005F8B8 0005B6F8 7C 7D 1B 78 */ mr r29, r3
/* 8005F8BC 0005B6FC 40 82 00 E0 */ bne lbl_8005F99C
/* 8005F8C0 0005B700 2C 04 00 00 */ cmpwi r4, 0x0
/* 8005F8C4 0005B704 39 00 00 00 */ li r8, 0x0
/* 8005F8C8 0005B708 41 82 00 A0 */ beq lbl_8005F968
/* 8005F8CC 0005B70C 28 04 00 08 */ cmplwi r4, 0x8
/* 8005F8D0 0005B710 38 04 00 F8 */ addi r0, r4, 0xf8
/* 8005F8D4 0005B714 40 81 00 6C */ ble lbl_8005F940
/* 8005F8D8 0005B718 54 05 06 3E */ clrlwi r5, r0, 24
/* 8005F8DC 0005B71C 38 05 00 07 */ addi r0, r5, 0x7
/* 8005F8E0 0005B720 54 00 E8 FE */ srwi r0, r0, 3
/* 8005F8E4 0005B724 7C 09 03 A6 */ mtctr r0
/* 8005F8E8 0005B728 28 05 00 00 */ cmplwi r5, 0x0
/* 8005F8EC 0005B72C 40 81 00 54 */ ble lbl_8005F940
.global lbl_8005F8F0
lbl_8005F8F0:
/* 8005F8F0 0005B730 55 00 06 3E */ clrlwi r0, r8, 24
/* 8005F8F4 0005B734 39 08 00 08 */ addi r8, r8, 0x8
/* 8005F8F8 0005B738 7C A3 00 AE */ lbzx r5, r3, r0
/* 8005F8FC 0005B73C 7C C3 02 14 */ add r6, r3, r0
/* 8005F900 0005B740 88 06 00 01 */ lbz r0, 0x1(r6)
/* 8005F904 0005B744 7C E7 2A 14 */ add r7, r7, r5
/* 8005F908 0005B748 88 A6 00 02 */ lbz r5, 0x2(r6)
/* 8005F90C 0005B74C 7C E7 02 14 */ add r7, r7, r0
/* 8005F910 0005B750 88 06 00 03 */ lbz r0, 0x3(r6)
/* 8005F914 0005B754 7C E7 2A 14 */ add r7, r7, r5
/* 8005F918 0005B758 88 A6 00 04 */ lbz r5, 0x4(r6)
/* 8005F91C 0005B75C 7C E7 02 14 */ add r7, r7, r0
/* 8005F920 0005B760 88 06 00 05 */ lbz r0, 0x5(r6)
/* 8005F924 0005B764 7C E7 2A 14 */ add r7, r7, r5
/* 8005F928 0005B768 88 A6 00 06 */ lbz r5, 0x6(r6)
/* 8005F92C 0005B76C 7C E7 02 14 */ add r7, r7, r0
/* 8005F930 0005B770 88 06 00 07 */ lbz r0, 0x7(r6)
/* 8005F934 0005B774 7C E7 2A 14 */ add r7, r7, r5
/* 8005F938 0005B778 7C E7 02 14 */ add r7, r7, r0
/* 8005F93C 0005B77C 42 00 FF B4 */ bdnz lbl_8005F8F0
.global lbl_8005F940
lbl_8005F940:
/* 8005F940 0005B780 55 05 06 3E */ clrlwi r5, r8, 24
/* 8005F944 0005B784 7C 05 20 50 */ subf r0, r5, r4
/* 8005F948 0005B788 7C 09 03 A6 */ mtctr r0
/* 8005F94C 0005B78C 7C 05 20 40 */ cmplw r5, r4
/* 8005F950 0005B790 40 80 00 18 */ bge lbl_8005F968
.global lbl_8005F954
lbl_8005F954:
/* 8005F954 0005B794 55 00 06 3E */ clrlwi r0, r8, 24
/* 8005F958 0005B798 39 08 00 01 */ addi r8, r8, 0x1
/* 8005F95C 0005B79C 7C 03 00 AE */ lbzx r0, r3, r0
/* 8005F960 0005B7A0 7C E7 02 14 */ add r7, r7, r0
/* 8005F964 0005B7A4 42 00 FF F0 */ bdnz lbl_8005F954
.global lbl_8005F968
lbl_8005F968:
/* 8005F968 0005B7A8 38 A7 00 55 */ addi r5, r7, 0x55
/* 8005F96C 0005B7AC 7C 03 20 AE */ lbzx r0, r3, r4
/* 8005F970 0005B7B0 54 A5 06 3E */ clrlwi r5, r5, 24
/* 8005F974 0005B7B4 7C 05 00 40 */ cmplw r5, r0
/* 8005F978 0005B7B8 40 82 00 38 */ bne lbl_8005F9B0
/* 8005F97C 0005B7BC 7C 64 1A 14 */ add r3, r4, r3
/* 8005F980 0005B7C0 38 87 00 AA */ addi r4, r7, 0xaa
/* 8005F984 0005B7C4 88 03 00 01 */ lbz r0, 0x1(r3)
/* 8005F988 0005B7C8 54 83 06 3E */ clrlwi r3, r4, 24
/* 8005F98C 0005B7CC 7C 03 00 40 */ cmplw r3, r0
/* 8005F990 0005B7D0 40 82 00 20 */ bne lbl_8005F9B0
/* 8005F994 0005B7D4 3B E0 00 01 */ li r31, 0x1
/* 8005F998 0005B7D8 48 00 00 18 */ b lbl_8005F9B0
.global lbl_8005F99C
lbl_8005F99C:
/* 8005F99C 0005B7DC 4B FC 88 45 */ bl OSCalcCRC32
/* 8005F9A0 0005B7E0 7C 1D F0 2E */ lwzx r0, r29, r30
/* 8005F9A4 0005B7E4 7C 03 00 40 */ cmplw r3, r0
/* 8005F9A8 0005B7E8 40 82 00 08 */ bne lbl_8005F9B0
/* 8005F9AC 0005B7EC 3B E0 00 01 */ li r31, 0x1
.global lbl_8005F9B0
lbl_8005F9B0:
/* 8005F9B0 0005B7F0 7F E3 FB 78 */ mr r3, r31
/* 8005F9B4 0005B7F4 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8005F9B8 0005B7F8 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 8005F9BC 0005B7FC 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 8005F9C0 0005B800 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8005F9C4 0005B804 7C 08 03 A6 */ mtlr r0
/* 8005F9C8 0005B808 38 21 00 20 */ addi r1, r1, 0x20
/* 8005F9CC 0005B80C 4E 80 00 20 */ blr
.global __wpadGetClConfig
__wpadGetClConfig:
/* 8005F9D0 0005B810 3C A0 80 4C */ lis r5, __rvl_p_wpadcb@ha
/* 8005F9D4 0005B814 88 04 00 00 */ lbz r0, 0x0(r4)
/* 8005F9D8 0005B818 54 63 10 3A */ slwi r3, r3, 2
/* 8005F9DC 0005B81C 38 A5 1A 50 */ addi r5, r5, __rvl_p_wpadcb@l
/* 8005F9E0 0005B820 7C 00 07 74 */ extsb r0, r0
/* 8005F9E4 0005B824 7C 65 18 2E */ lwzx r3, r5, r3
/* 8005F9E8 0005B828 B0 03 08 88 */ sth r0, 0x888(r3)
/* 8005F9EC 0005B82C 88 04 00 01 */ lbz r0, 0x1(r4)
/* 8005F9F0 0005B830 7C 00 07 74 */ extsb r0, r0
/* 8005F9F4 0005B834 B0 03 08 86 */ sth r0, 0x886(r3)
/* 8005F9F8 0005B838 88 04 00 03 */ lbz r0, 0x3(r4)
/* 8005F9FC 0005B83C 7C 00 07 74 */ extsb r0, r0
/* 8005FA00 0005B840 B0 03 08 8E */ sth r0, 0x88e(r3)
/* 8005FA04 0005B844 88 04 00 04 */ lbz r0, 0x4(r4)
/* 8005FA08 0005B848 7C 00 07 74 */ extsb r0, r0
/* 8005FA0C 0005B84C B0 03 08 8C */ sth r0, 0x88c(r3)
/* 8005FA10 0005B850 88 04 00 06 */ lbz r0, 0x6(r4)
/* 8005FA14 0005B854 7C 00 07 74 */ extsb r0, r0
/* 8005FA18 0005B858 B0 03 08 94 */ sth r0, 0x894(r3)
/* 8005FA1C 0005B85C 88 04 00 07 */ lbz r0, 0x7(r4)
/* 8005FA20 0005B860 7C 00 07 74 */ extsb r0, r0
/* 8005FA24 0005B864 B0 03 08 92 */ sth r0, 0x892(r3)
/* 8005FA28 0005B868 88 04 00 09 */ lbz r0, 0x9(r4)
/* 8005FA2C 0005B86C 7C 00 07 74 */ extsb r0, r0
/* 8005FA30 0005B870 B0 03 08 9A */ sth r0, 0x89a(r3)
/* 8005FA34 0005B874 88 04 00 0A */ lbz r0, 0xa(r4)
/* 8005FA38 0005B878 7C 00 07 74 */ extsb r0, r0
/* 8005FA3C 0005B87C B0 03 08 98 */ sth r0, 0x898(r3)
/* 8005FA40 0005B880 88 03 0B 09 */ lbz r0, 0xb09(r3)
/* 8005FA44 0005B884 2C 00 00 00 */ cmpwi r0, 0x0
/* 8005FA48 0005B888 4C 82 00 20 */ bnelr
/* 8005FA4C 0005B88C 88 04 00 02 */ lbz r0, 0x2(r4)
/* 8005FA50 0005B890 7C 00 07 74 */ extsb r0, r0
/* 8005FA54 0005B894 B0 03 08 84 */ sth r0, 0x884(r3)
/* 8005FA58 0005B898 88 04 00 05 */ lbz r0, 0x5(r4)
/* 8005FA5C 0005B89C 7C 00 07 74 */ extsb r0, r0
/* 8005FA60 0005B8A0 B0 03 08 8A */ sth r0, 0x88a(r3)
/* 8005FA64 0005B8A4 88 04 00 08 */ lbz r0, 0x8(r4)
/* 8005FA68 0005B8A8 7C 00 07 74 */ extsb r0, r0
/* 8005FA6C 0005B8AC B0 03 08 90 */ sth r0, 0x890(r3)
/* 8005FA70 0005B8B0 88 04 00 0B */ lbz r0, 0xb(r4)
/* 8005FA74 0005B8B4 7C 00 07 74 */ extsb r0, r0
/* 8005FA78 0005B8B8 B0 03 08 96 */ sth r0, 0x896(r3)
/* 8005FA7C 0005B8BC 88 04 00 0C */ lbz r0, 0xc(r4)
/* 8005FA80 0005B8C0 98 03 08 9C */ stb r0, 0x89c(r3)
/* 8005FA84 0005B8C4 88 04 00 0D */ lbz r0, 0xd(r4)
/* 8005FA88 0005B8C8 98 03 08 9D */ stb r0, 0x89d(r3)
/* 8005FA8C 0005B8CC 4E 80 00 20 */ blr
.global __wpadGetExtConfig
__wpadGetExtConfig:
/* 8005FA90 0005B8D0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8005FA94 0005B8D4 7C 08 02 A6 */ mflr r0
/* 8005FA98 0005B8D8 90 01 00 34 */ stw r0, 0x34(r1)
/* 8005FA9C 0005B8DC 39 61 00 30 */ addi r11, r1, 0x30
/* 8005FAA0 0005B8E0 4B FA 78 9D */ bl lbl_8000733C
/* 8005FAA4 0005B8E4 3F E0 80 4C */ lis r31, __rvl_p_wpadcb@ha
/* 8005FAA8 0005B8E8 3C 00 43 30 */ lis r0, 0x4330
/* 8005FAAC 0005B8EC 54 7E 10 3A */ slwi r30, r3, 2
/* 8005FAB0 0005B8F0 90 01 00 08 */ stw r0, 0x8(r1)
/* 8005FAB4 0005B8F4 3B FF 1A 50 */ addi r31, r31, __rvl_p_wpadcb@l
/* 8005FAB8 0005B8F8 7C 7B 1B 78 */ mr r27, r3
/* 8005FABC 0005B8FC 7F BF F0 2E */ lwzx r29, r31, r30
/* 8005FAC0 0005B900 90 01 00 10 */ stw r0, 0x10(r1)
/* 8005FAC4 0005B904 80 1D 08 40 */ lwz r0, 0x840(r29)
/* 8005FAC8 0005B908 83 9D 0B 6C */ lwz r28, 0xb6c(r29)
/* 8005FACC 0005B90C 2C 00 00 00 */ cmpwi r0, 0x0
/* 8005FAD0 0005B910 40 82 00 24 */ bne lbl_8005FAF4
/* 8005FAD4 0005B914 38 8D E9 FC */ addi r4, r13, _wpadDevType@sda21
/* 8005FAD8 0005B918 38 00 00 00 */ li r0, 0x0
/* 8005FADC 0005B91C 7C 04 19 AE */ stbx r0, r4, r3
/* 8005FAE0 0005B920 38 8D E9 F8 */ addi r4, r13, _wpadDevMode@sda21
/* 8005FAE4 0005B924 98 1D 09 05 */ stb r0, 0x905(r29)
/* 8005FAE8 0005B928 7C 04 19 AE */ stbx r0, r4, r3
/* 8005FAEC 0005B92C 98 1D 09 06 */ stb r0, 0x906(r29)
/* 8005FAF0 0005B930 48 00 07 D0 */ b lbl_800602C0
.global lbl_8005FAF4
lbl_8005FAF4:
/* 8005FAF4 0005B934 2C 04 FF FF */ cmpwi r4, -0x1
/* 8005FAF8 0005B938 41 82 00 10 */ beq lbl_8005FB08
/* 8005FAFC 0005B93C 2C 04 00 00 */ cmpwi r4, 0x0
/* 8005FB00 0005B940 41 82 00 20 */ beq lbl_8005FB20
/* 8005FB04 0005B944 48 00 00 2C */ b lbl_8005FB30
.global lbl_8005FB08
lbl_8005FB08:
/* 8005FB08 0005B948 38 80 00 FD */ li r4, 0xfd
/* 8005FB0C 0005B94C 98 9D 09 05 */ stb r4, 0x905(r29)
/* 8005FB10 0005B950 38 00 00 00 */ li r0, 0x0
/* 8005FB14 0005B954 98 9D 0B 88 */ stb r4, 0xb88(r29)
/* 8005FB18 0005B958 98 1D 0B 89 */ stb r0, 0xb89(r29)
/* 8005FB1C 0005B95C 48 00 00 28 */ b lbl_8005FB44
.global lbl_8005FB20
lbl_8005FB20:
/* 8005FB20 0005B960 38 8D E9 FC */ addi r4, r13, _wpadDevType@sda21
/* 8005FB24 0005B964 7C 04 18 AE */ lbzx r0, r4, r3
/* 8005FB28 0005B968 98 1D 09 05 */ stb r0, 0x905(r29)
/* 8005FB2C 0005B96C 48 00 00 18 */ b lbl_8005FB44
.global lbl_8005FB30
lbl_8005FB30:
/* 8005FB30 0005B970 38 80 00 FC */ li r4, 0xfc
/* 8005FB34 0005B974 98 9D 09 05 */ stb r4, 0x905(r29)
/* 8005FB38 0005B978 38 00 00 00 */ li r0, 0x0
/* 8005FB3C 0005B97C 98 9D 0B 88 */ stb r4, 0xb88(r29)
/* 8005FB40 0005B980 98 1D 0B 89 */ stb r0, 0xb89(r29)
.global lbl_8005FB44
lbl_8005FB44:
/* 8005FB44 0005B984 38 8D E9 F8 */ addi r4, r13, _wpadDevMode@sda21
/* 8005FB48 0005B988 7C 04 18 AE */ lbzx r0, r4, r3
/* 8005FB4C 0005B98C 98 1D 09 06 */ stb r0, 0x906(r29)
/* 8005FB50 0005B990 88 7D 09 05 */ lbz r3, 0x905(r29)
/* 8005FB54 0005B994 38 03 00 FB */ addi r0, r3, 0xfb
/* 8005FB58 0005B998 54 00 06 3E */ clrlwi r0, r0, 24
/* 8005FB5C 0005B99C 28 00 00 02 */ cmplwi r0, 0x2
/* 8005FB60 0005B9A0 40 81 02 60 */ ble lbl_8005FDC0
/* 8005FB64 0005B9A4 28 03 00 01 */ cmplwi r3, 0x1
/* 8005FB68 0005B9A8 41 82 00 28 */ beq lbl_8005FB90
/* 8005FB6C 0005B9AC 28 03 00 02 */ cmplwi r3, 0x2
/* 8005FB70 0005B9B0 41 82 02 18 */ beq lbl_8005FD88
/* 8005FB74 0005B9B4 28 03 00 FA */ cmplwi r3, 0xfa
/* 8005FB78 0005B9B8 41 82 02 48 */ beq lbl_8005FDC0
/* 8005FB7C 0005B9BC 28 03 00 03 */ cmplwi r3, 0x3
/* 8005FB80 0005B9C0 41 82 07 00 */ beq lbl_80060280
/* 8005FB84 0005B9C4 28 03 00 04 */ cmplwi r3, 0x4
/* 8005FB88 0005B9C8 41 82 07 08 */ beq lbl_80060290
/* 8005FB8C 0005B9CC 48 00 07 10 */ b lbl_8006029C
.global lbl_8005FB90
lbl_8005FB90:
/* 8005FB90 0005B9D0 38 C0 02 00 */ li r6, 0x200
/* 8005FB94 0005B9D4 B0 DD 08 94 */ sth r6, 0x894(r29)
/* 8005FB98 0005B9D8 38 00 02 CC */ li r0, 0x2cc
/* 8005FB9C 0005B9DC 7F 83 E3 78 */ mr r3, r28
/* 8005FBA0 0005B9E0 B0 DD 08 92 */ sth r6, 0x892(r29)
/* 8005FBA4 0005B9E4 38 80 00 0E */ li r4, 0xe
/* 8005FBA8 0005B9E8 38 A0 00 00 */ li r5, 0x0
/* 8005FBAC 0005B9EC B0 DD 08 90 */ sth r6, 0x890(r29)
/* 8005FBB0 0005B9F0 B0 1D 08 9A */ sth r0, 0x89a(r29)
/* 8005FBB4 0005B9F4 B0 1D 08 98 */ sth r0, 0x898(r29)
/* 8005FBB8 0005B9F8 B0 1D 08 96 */ sth r0, 0x896(r29)
/* 8005FBBC 0005B9FC 4B FF FC D5 */ bl __wpadCheckCalibration
/* 8005FBC0 0005BA00 2C 03 00 00 */ cmpwi r3, 0x0
/* 8005FBC4 0005BA04 41 82 00 D8 */ beq lbl_8005FC9C
/* 8005FBC8 0005BA08 88 1C 00 03 */ lbz r0, 0x3(r28)
/* 8005FBCC 0005BA0C 7C 7F F0 2E */ lwzx r3, r31, r30
/* 8005FBD0 0005BA10 88 9C 00 00 */ lbz r4, 0x0(r28)
/* 8005FBD4 0005BA14 54 00 E7 BE */ extrwi r0, r0, 2, 26
/* 8005FBD8 0005BA18 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 8005FBDC 0005BA1C B0 03 08 90 */ sth r0, 0x890(r3)
/* 8005FBE0 0005BA20 88 1C 00 03 */ lbz r0, 0x3(r28)
/* 8005FBE4 0005BA24 88 9C 00 01 */ lbz r4, 0x1(r28)
/* 8005FBE8 0005BA28 54 00 F7 BE */ extrwi r0, r0, 2, 28
/* 8005FBEC 0005BA2C 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 8005FBF0 0005BA30 B0 03 08 92 */ sth r0, 0x892(r3)
/* 8005FBF4 0005BA34 88 1C 00 03 */ lbz r0, 0x3(r28)
/* 8005FBF8 0005BA38 88 9C 00 02 */ lbz r4, 0x2(r28)
/* 8005FBFC 0005BA3C 54 00 07 BE */ clrlwi r0, r0, 30
/* 8005FC00 0005BA40 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 8005FC04 0005BA44 B0 03 08 94 */ sth r0, 0x894(r3)
/* 8005FC08 0005BA48 88 1C 00 07 */ lbz r0, 0x7(r28)
/* 8005FC0C 0005BA4C 88 9C 00 04 */ lbz r4, 0x4(r28)
/* 8005FC10 0005BA50 54 00 E7 BE */ extrwi r0, r0, 2, 26
/* 8005FC14 0005BA54 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 8005FC18 0005BA58 B0 03 08 96 */ sth r0, 0x896(r3)
/* 8005FC1C 0005BA5C 88 1C 00 07 */ lbz r0, 0x7(r28)
/* 8005FC20 0005BA60 88 9C 00 05 */ lbz r4, 0x5(r28)
/* 8005FC24 0005BA64 54 00 F7 BE */ extrwi r0, r0, 2, 28
/* 8005FC28 0005BA68 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 8005FC2C 0005BA6C B0 03 08 98 */ sth r0, 0x898(r3)
/* 8005FC30 0005BA70 88 1C 00 07 */ lbz r0, 0x7(r28)
/* 8005FC34 0005BA74 88 9C 00 06 */ lbz r4, 0x6(r28)
/* 8005FC38 0005BA78 54 00 07 BE */ clrlwi r0, r0, 30
/* 8005FC3C 0005BA7C 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 8005FC40 0005BA80 B0 03 08 9A */ sth r0, 0x89a(r3)
/* 8005FC44 0005BA84 88 1C 00 08 */ lbz r0, 0x8(r28)
/* 8005FC48 0005BA88 7C 00 07 74 */ extsb r0, r0
/* 8005FC4C 0005BA8C B0 03 08 88 */ sth r0, 0x888(r3)
/* 8005FC50 0005BA90 88 1C 00 09 */ lbz r0, 0x9(r28)
/* 8005FC54 0005BA94 7C 00 07 74 */ extsb r0, r0
/* 8005FC58 0005BA98 B0 03 08 86 */ sth r0, 0x886(r3)
/* 8005FC5C 0005BA9C 88 1C 00 0B */ lbz r0, 0xb(r28)
/* 8005FC60 0005BAA0 7C 00 07 74 */ extsb r0, r0
/* 8005FC64 0005BAA4 B0 03 08 8E */ sth r0, 0x88e(r3)
/* 8005FC68 0005BAA8 88 1C 00 0C */ lbz r0, 0xc(r28)
/* 8005FC6C 0005BAAC 7C 00 07 74 */ extsb r0, r0
/* 8005FC70 0005BAB0 B0 03 08 8C */ sth r0, 0x88c(r3)
/* 8005FC74 0005BAB4 88 03 0B 09 */ lbz r0, 0xb09(r3)
/* 8005FC78 0005BAB8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8005FC7C 0005BABC 40 82 06 20 */ bne lbl_8006029C
/* 8005FC80 0005BAC0 88 1C 00 0A */ lbz r0, 0xa(r28)
/* 8005FC84 0005BAC4 7C 00 07 74 */ extsb r0, r0
/* 8005FC88 0005BAC8 B0 03 08 84 */ sth r0, 0x884(r3)
/* 8005FC8C 0005BACC 88 1C 00 0D */ lbz r0, 0xd(r28)
/* 8005FC90 0005BAD0 7C 00 07 74 */ extsb r0, r0
/* 8005FC94 0005BAD4 B0 03 08 8A */ sth r0, 0x88a(r3)
/* 8005FC98 0005BAD8 48 00 06 04 */ b lbl_8006029C
.global lbl_8005FC9C
lbl_8005FC9C:
/* 8005FC9C 0005BADC 38 7C 00 10 */ addi r3, r28, 0x10
/* 8005FCA0 0005BAE0 38 80 00 0E */ li r4, 0xe
/* 8005FCA4 0005BAE4 38 A0 00 00 */ li r5, 0x0
/* 8005FCA8 0005BAE8 4B FF FB E9 */ bl __wpadCheckCalibration
/* 8005FCAC 0005BAEC 2C 03 00 00 */ cmpwi r3, 0x0
/* 8005FCB0 0005BAF0 41 82 05 EC */ beq lbl_8006029C
/* 8005FCB4 0005BAF4 88 1C 00 13 */ lbz r0, 0x13(r28)
/* 8005FCB8 0005BAF8 7C 7F F0 2E */ lwzx r3, r31, r30
/* 8005FCBC 0005BAFC 88 9C 00 10 */ lbz r4, 0x10(r28)
/* 8005FCC0 0005BB00 54 00 E7 BE */ extrwi r0, r0, 2, 26
/* 8005FCC4 0005BB04 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 8005FCC8 0005BB08 B0 03 08 90 */ sth r0, 0x890(r3)
/* 8005FCCC 0005BB0C 88 1C 00 13 */ lbz r0, 0x13(r28)
/* 8005FCD0 0005BB10 88 9C 00 11 */ lbz r4, 0x11(r28)
/* 8005FCD4 0005BB14 54 00 F7 BE */ extrwi r0, r0, 2, 28
/* 8005FCD8 0005BB18 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 8005FCDC 0005BB1C B0 03 08 92 */ sth r0, 0x892(r3)
/* 8005FCE0 0005BB20 88 1C 00 13 */ lbz r0, 0x13(r28)
/* 8005FCE4 0005BB24 88 9C 00 12 */ lbz r4, 0x12(r28)
/* 8005FCE8 0005BB28 54 00 07 BE */ clrlwi r0, r0, 30
/* 8005FCEC 0005BB2C 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 8005FCF0 0005BB30 B0 03 08 94 */ sth r0, 0x894(r3)
/* 8005FCF4 0005BB34 88 1C 00 17 */ lbz r0, 0x17(r28)
/* 8005FCF8 0005BB38 88 9C 00 14 */ lbz r4, 0x14(r28)
/* 8005FCFC 0005BB3C 54 00 E7 BE */ extrwi r0, r0, 2, 26
/* 8005FD00 0005BB40 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 8005FD04 0005BB44 B0 03 08 96 */ sth r0, 0x896(r3)
/* 8005FD08 0005BB48 88 1C 00 17 */ lbz r0, 0x17(r28)
/* 8005FD0C 0005BB4C 88 9C 00 15 */ lbz r4, 0x15(r28)
/* 8005FD10 0005BB50 54 00 F7 BE */ extrwi r0, r0, 2, 28
/* 8005FD14 0005BB54 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 8005FD18 0005BB58 B0 03 08 98 */ sth r0, 0x898(r3)
/* 8005FD1C 0005BB5C 88 1C 00 17 */ lbz r0, 0x17(r28)
/* 8005FD20 0005BB60 88 9C 00 16 */ lbz r4, 0x16(r28)
/* 8005FD24 0005BB64 54 00 07 BE */ clrlwi r0, r0, 30
/* 8005FD28 0005BB68 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 8005FD2C 0005BB6C B0 03 08 9A */ sth r0, 0x89a(r3)
/* 8005FD30 0005BB70 88 1C 00 18 */ lbz r0, 0x18(r28)
/* 8005FD34 0005BB74 7C 00 07 74 */ extsb r0, r0
/* 8005FD38 0005BB78 B0 03 08 88 */ sth r0, 0x888(r3)
/* 8005FD3C 0005BB7C 88 1C 00 19 */ lbz r0, 0x19(r28)
/* 8005FD40 0005BB80 7C 00 07 74 */ extsb r0, r0
/* 8005FD44 0005BB84 B0 03 08 86 */ sth r0, 0x886(r3)
/* 8005FD48 0005BB88 88 1C 00 1B */ lbz r0, 0x1b(r28)
/* 8005FD4C 0005BB8C 7C 00 07 74 */ extsb r0, r0
/* 8005FD50 0005BB90 B0 03 08 8E */ sth r0, 0x88e(r3)
/* 8005FD54 0005BB94 88 1C 00 1C */ lbz r0, 0x1c(r28)
/* 8005FD58 0005BB98 7C 00 07 74 */ extsb r0, r0
/* 8005FD5C 0005BB9C B0 03 08 8C */ sth r0, 0x88c(r3)
/* 8005FD60 0005BBA0 88 03 0B 09 */ lbz r0, 0xb09(r3)
/* 8005FD64 0005BBA4 2C 00 00 00 */ cmpwi r0, 0x0
/* 8005FD68 0005BBA8 40 82 05 34 */ bne lbl_8006029C
/* 8005FD6C 0005BBAC 88 1C 00 1A */ lbz r0, 0x1a(r28)
/* 8005FD70 0005BBB0 7C 00 07 74 */ extsb r0, r0
/* 8005FD74 0005BBB4 B0 03 08 84 */ sth r0, 0x884(r3)
/* 8005FD78 0005BBB8 88 1C 00 1D */ lbz r0, 0x1d(r28)
/* 8005FD7C 0005BBBC 7C 00 07 74 */ extsb r0, r0
/* 8005FD80 0005BBC0 B0 03 08 8A */ sth r0, 0x88a(r3)
/* 8005FD84 0005BBC4 48 00 05 18 */ b lbl_8006029C
.global lbl_8005FD88
lbl_8005FD88:
/* 8005FD88 0005BBC8 7F 83 E3 78 */ mr r3, r28
/* 8005FD8C 0005BBCC 38 80 00 0E */ li r4, 0xe
/* 8005FD90 0005BBD0 38 A0 00 00 */ li r5, 0x0
/* 8005FD94 0005BBD4 4B FF FA FD */ bl __wpadCheckCalibration
/* 8005FD98 0005BBD8 2C 03 00 00 */ cmpwi r3, 0x0
/* 8005FD9C 0005BBDC 41 82 00 14 */ beq lbl_8005FDB0
/* 8005FDA0 0005BBE0 7F 63 DB 78 */ mr r3, r27
/* 8005FDA4 0005BBE4 7F 84 E3 78 */ mr r4, r28
/* 8005FDA8 0005BBE8 4B FF FC 29 */ bl __wpadGetClConfig
/* 8005FDAC 0005BBEC 48 00 04 F0 */ b lbl_8006029C
.global lbl_8005FDB0
lbl_8005FDB0:
/* 8005FDB0 0005BBF0 7F 63 DB 78 */ mr r3, r27
/* 8005FDB4 0005BBF4 38 9C 00 10 */ addi r4, r28, 0x10
/* 8005FDB8 0005BBF8 4B FF FC 19 */ bl __wpadGetClConfig
/* 8005FDBC 0005BBFC 48 00 04 E0 */ b lbl_8006029C
.global lbl_8005FDC0
lbl_8005FDC0:
/* 8005FDC0 0005BC00 38 00 00 05 */ li r0, 0x5
/* 8005FDC4 0005BC04 98 1D 09 39 */ stb r0, 0x939(r29)
/* 8005FDC8 0005BC08 C0 42 88 20 */ lfs f2, "@5149"@sda21(r2)
/* 8005FDCC 0005BC0C 3C 60 00 01 */ lis r3, 0x1
/* 8005FDD0 0005BC10 D0 5D 08 B0 */ stfs f2, 0x8b0(r29)
/* 8005FDD4 0005BC14 38 C3 FF FF */ addi r6, r3, -0x1
/* 8005FDD8 0005BC18 C0 22 88 24 */ lfs f1, "@5150"@sda21(r2)
/* 8005FDDC 0005BC1C 39 00 04 B0 */ li r8, 0x4b0
/* 8005FDE0 0005BC20 D0 5D 08 A8 */ stfs f2, 0x8a8(r29)
/* 8005FDE4 0005BC24 38 E0 01 0E */ li r7, 0x10e
/* 8005FDE8 0005BC28 C0 02 88 28 */ lfs f0, "@5151"@sda21(r2)
/* 8005FDEC 0005BC2C 38 00 FF FF */ li r0, -0x1
/* 8005FDF0 0005BC30 D0 5D 08 A0 */ stfs f2, 0x8a0(r29)
/* 8005FDF4 0005BC34 38 7C 00 0E */ addi r3, r28, 0xe
/* 8005FDF8 0005BC38 38 9C 00 10 */ addi r4, r28, 0x10
/* 8005FDFC 0005BC3C 38 A0 00 0E */ li r5, 0xe
/* 8005FE00 0005BC40 D0 3D 08 B4 */ stfs f1, 0x8b4(r29)
/* 8005FE04 0005BC44 D0 3D 08 AC */ stfs f1, 0x8ac(r29)
/* 8005FE08 0005BC48 D0 3D 08 A4 */ stfs f1, 0x8a4(r29)
/* 8005FE0C 0005BC4C 91 1D 08 B8 */ stw r8, 0x8b8(r29)
/* 8005FE10 0005BC50 D0 5D 08 CC */ stfs f2, 0x8cc(r29)
/* 8005FE14 0005BC54 D0 5D 08 C4 */ stfs f2, 0x8c4(r29)
/* 8005FE18 0005BC58 D0 5D 08 BC */ stfs f2, 0x8bc(r29)
/* 8005FE1C 0005BC5C D0 1D 08 D0 */ stfs f0, 0x8d0(r29)
/* 8005FE20 0005BC60 D0 1D 08 C8 */ stfs f0, 0x8c8(r29)
/* 8005FE24 0005BC64 D0 1D 08 C0 */ stfs f0, 0x8c0(r29)
/* 8005FE28 0005BC68 90 FD 08 D4 */ stw r7, 0x8d4(r29)
/* 8005FE2C 0005BC6C B0 DD 08 DC */ sth r6, 0x8dc(r29)
/* 8005FE30 0005BC70 90 1D 08 D8 */ stw r0, 0x8d8(r29)
/* 8005FE34 0005BC74 8B DC 00 0E */ lbz r30, 0xe(r28)
/* 8005FE38 0005BC78 8B FC 00 0F */ lbz r31, 0xf(r28)
/* 8005FE3C 0005BC7C 4B FA 41 C5 */ bl memcpy
/* 8005FE40 0005BC80 9B DC 00 1C */ stb r30, 0x1c(r28)
/* 8005FE44 0005BC84 7F 83 E3 78 */ mr r3, r28
/* 8005FE48 0005BC88 38 80 00 1C */ li r4, 0x1c
/* 8005FE4C 0005BC8C 38 A0 00 01 */ li r5, 0x1
/* 8005FE50 0005BC90 9B FC 00 1D */ stb r31, 0x1d(r28)
/* 8005FE54 0005BC94 4B FF FA 3D */ bl __wpadCheckCalibration
/* 8005FE58 0005BC98 2C 03 00 00 */ cmpwi r3, 0x0
/* 8005FE5C 0005BC9C 41 82 03 98 */ beq lbl_800601F4
/* 8005FE60 0005BCA0 88 BC 00 04 */ lbz r5, 0x4(r28)
/* 8005FE64 0005BCA4 3C 80 80 4C */ lis r4, __rvl_p_wpadcb@ha
/* 8005FE68 0005BCA8 88 7C 00 05 */ lbz r3, 0x5(r28)
/* 8005FE6C 0005BCAC 57 60 10 3A */ slwi r0, r27, 2
/* 8005FE70 0005BCB0 50 A3 44 2E */ rlwimi r3, r5, 8, 16, 23
/* 8005FE74 0005BCB4 C8 62 88 18 */ lfd f3, "@5038"@sda21(r2)
/* 8005FE78 0005BCB8 6C 63 80 00 */ xoris r3, r3, 0x8000
/* 8005FE7C 0005BCBC 90 61 00 0C */ stw r3, 0xc(r1)
/* 8005FE80 0005BCC0 38 84 1A 50 */ addi r4, r4, __rvl_p_wpadcb@l
/* 8005FE84 0005BCC4 C0 42 88 30 */ lfs f2, "@5153"@sda21(r2)
/* 8005FE88 0005BCC8 C8 01 00 08 */ lfd f0, 0x8(r1)
/* 8005FE8C 0005BCCC C0 22 88 2C */ lfs f1, "@5152"@sda21(r2)
/* 8005FE90 0005BCD0 EC 00 18 28 */ fsubs f0, f0, f3
/* 8005FE94 0005BCD4 7C 64 00 2E */ lwzx r3, r4, r0
/* 8005FE98 0005BCD8 EC 00 10 24 */ fdivs f0, f0, f2
/* 8005FE9C 0005BCDC EC 01 00 2A */ fadds f0, f1, f0
/* 8005FEA0 0005BCE0 D0 03 08 A0 */ stfs f0, 0x8a0(r3)
/* 8005FEA4 0005BCE4 88 DC 00 00 */ lbz r6, 0x0(r28)
/* 8005FEA8 0005BCE8 88 BC 00 01 */ lbz r5, 0x1(r28)
/* 8005FEAC 0005BCEC 50 C5 44 2E */ rlwimi r5, r6, 8, 16, 23
/* 8005FEB0 0005BCF0 6C A5 80 00 */ xoris r5, r5, 0x8000
/* 8005FEB4 0005BCF4 90 A1 00 14 */ stw r5, 0x14(r1)
/* 8005FEB8 0005BCF8 C8 01 00 10 */ lfd f0, 0x10(r1)
/* 8005FEBC 0005BCFC EC 00 18 28 */ fsubs f0, f0, f3
/* 8005FEC0 0005BD00 EC 00 10 24 */ fdivs f0, f0, f2
/* 8005FEC4 0005BD04 EC 01 00 2A */ fadds f0, f1, f0
/* 8005FEC8 0005BD08 D0 03 08 A8 */ stfs f0, 0x8a8(r3)
/* 8005FECC 0005BD0C 88 DC 00 02 */ lbz r6, 0x2(r28)
/* 8005FED0 0005BD10 88 BC 00 03 */ lbz r5, 0x3(r28)
/* 8005FED4 0005BD14 50 C5 44 2E */ rlwimi r5, r6, 8, 16, 23
/* 8005FED8 0005BD18 6C A5 80 00 */ xoris r5, r5, 0x8000
/* 8005FEDC 0005BD1C 90 A1 00 0C */ stw r5, 0xc(r1)
/* 8005FEE0 0005BD20 C8 01 00 08 */ lfd f0, 0x8(r1)
/* 8005FEE4 0005BD24 EC 00 18 28 */ fsubs f0, f0, f3
/* 8005FEE8 0005BD28 EC 00 10 24 */ fdivs f0, f0, f2
/* 8005FEEC 0005BD2C EC 01 00 2A */ fadds f0, f1, f0
/* 8005FEF0 0005BD30 D0 03 08 B0 */ stfs f0, 0x8b0(r3)
/* 8005FEF4 0005BD34 88 BC 00 0C */ lbz r5, 0xc(r28)
/* 8005FEF8 0005BD38 1C A5 00 06 */ mulli r5, r5, 0x6
/* 8005FEFC 0005BD3C 90 A3 08 B8 */ stw r5, 0x8b8(r3)
/* 8005FF00 0005BD40 2C 05 00 00 */ cmpwi r5, 0x0
/* 8005FF04 0005BD44 40 82 00 0C */ bne lbl_8005FF10
/* 8005FF08 0005BD48 38 A0 00 5B */ li r5, 0x5b
/* 8005FF0C 0005BD4C 90 A3 08 B8 */ stw r5, 0x8b8(r3)
.global lbl_8005FF10
lbl_8005FF10:
/* 8005FF10 0005BD50 88 DC 00 0A */ lbz r6, 0xa(r28)
/* 8005FF14 0005BD54 88 BC 00 0B */ lbz r5, 0xb(r28)
/* 8005FF18 0005BD58 54 C6 44 2E */ rlwinm r6, r6, 8, 16, 23
/* 8005FF1C 0005BD5C C8 62 88 18 */ lfd f3, "@5038"@sda21(r2)
/* 8005FF20 0005BD60 7C C6 07 34 */ extsh r6, r6
/* 8005FF24 0005BD64 7C A5 07 34 */ extsh r5, r5
/* 8005FF28 0005BD68 7C C5 2B 78 */ or r5, r6, r5
/* 8005FF2C 0005BD6C C0 42 88 30 */ lfs f2, "@5153"@sda21(r2)
/* 8005FF30 0005BD70 6C A5 80 00 */ xoris r5, r5, 0x8000
/* 8005FF34 0005BD74 90 A1 00 14 */ stw r5, 0x14(r1)
/* 8005FF38 0005BD78 C0 02 87 E0 */ lfs f0, "@5025_8055E760"@sda21(r2)
/* 8005FF3C 0005BD7C C8 21 00 10 */ lfd f1, 0x10(r1)
/* 8005FF40 0005BD80 EC 21 18 28 */ fsubs f1, f1, f3
/* 8005FF44 0005BD84 EC 21 10 24 */ fdivs f1, f1, f2
/* 8005FF48 0005BD88 D0 23 08 A4 */ stfs f1, 0x8a4(r3)
/* 8005FF4C 0005BD8C 88 DC 00 06 */ lbz r6, 0x6(r28)
/* 8005FF50 0005BD90 88 BC 00 07 */ lbz r5, 0x7(r28)
/* 8005FF54 0005BD94 54 C6 44 2E */ rlwinm r6, r6, 8, 16, 23
/* 8005FF58 0005BD98 7C C6 07 34 */ extsh r6, r6
/* 8005FF5C 0005BD9C 7C A5 07 34 */ extsh r5, r5
/* 8005FF60 0005BDA0 7C C5 2B 78 */ or r5, r6, r5
/* 8005FF64 0005BDA4 6C A5 80 00 */ xoris r5, r5, 0x8000
/* 8005FF68 0005BDA8 90 A1 00 0C */ stw r5, 0xc(r1)
/* 8005FF6C 0005BDAC C8 21 00 08 */ lfd f1, 0x8(r1)
/* 8005FF70 0005BDB0 EC 21 18 28 */ fsubs f1, f1, f3
/* 8005FF74 0005BDB4 EC 21 10 24 */ fdivs f1, f1, f2
/* 8005FF78 0005BDB8 D0 23 08 AC */ stfs f1, 0x8ac(r3)
/* 8005FF7C 0005BDBC 88 DC 00 08 */ lbz r6, 0x8(r28)
/* 8005FF80 0005BDC0 88 BC 00 09 */ lbz r5, 0x9(r28)
/* 8005FF84 0005BDC4 54 C6 44 2E */ rlwinm r6, r6, 8, 16, 23
/* 8005FF88 0005BDC8 7C C6 07 34 */ extsh r6, r6
/* 8005FF8C 0005BDCC 7C A5 07 34 */ extsh r5, r5
/* 8005FF90 0005BDD0 7C C5 2B 78 */ or r5, r6, r5
/* 8005FF94 0005BDD4 6C A5 80 00 */ xoris r5, r5, 0x8000
/* 8005FF98 0005BDD8 90 A1 00 14 */ stw r5, 0x14(r1)
/* 8005FF9C 0005BDDC C8 21 00 10 */ lfd f1, 0x10(r1)
/* 8005FFA0 0005BDE0 EC 21 18 28 */ fsubs f1, f1, f3
/* 8005FFA4 0005BDE4 EC 21 10 24 */ fdivs f1, f1, f2
/* 8005FFA8 0005BDE8 D0 23 08 B4 */ stfs f1, 0x8b4(r3)
/* 8005FFAC 0005BDEC C0 23 08 A4 */ lfs f1, 0x8a4(r3)
/* 8005FFB0 0005BDF0 FC 01 00 40 */ fcmpo cr0, f1, f0
/* 8005FFB4 0005BDF4 40 80 00 10 */ bge lbl_8005FFC4
/* 8005FFB8 0005BDF8 C0 02 88 34 */ lfs f0, "@5154"@sda21(r2)
/* 8005FFBC 0005BDFC EC 01 00 28 */ fsubs f0, f1, f0
/* 8005FFC0 0005BE00 48 00 00 0C */ b lbl_8005FFCC
.global lbl_8005FFC4
lbl_8005FFC4:
/* 8005FFC4 0005BE04 C0 02 88 34 */ lfs f0, "@5154"@sda21(r2)
/* 8005FFC8 0005BE08 EC 00 08 2A */ fadds f0, f0, f1
.global lbl_8005FFCC
lbl_8005FFCC:
/* 8005FFCC 0005BE0C D0 03 08 A4 */ stfs f0, 0x8a4(r3)
/* 8005FFD0 0005BE10 C0 02 87 E0 */ lfs f0, "@5025_8055E760"@sda21(r2)
/* 8005FFD4 0005BE14 C0 23 08 AC */ lfs f1, 0x8ac(r3)
/* 8005FFD8 0005BE18 FC 01 00 40 */ fcmpo cr0, f1, f0
/* 8005FFDC 0005BE1C 40 80 00 10 */ bge lbl_8005FFEC
/* 8005FFE0 0005BE20 C0 02 88 34 */ lfs f0, "@5154"@sda21(r2)
/* 8005FFE4 0005BE24 EC 01 00 28 */ fsubs f0, f1, f0
/* 8005FFE8 0005BE28 48 00 00 0C */ b lbl_8005FFF4
.global lbl_8005FFEC
lbl_8005FFEC:
/* 8005FFEC 0005BE2C C0 02 88 34 */ lfs f0, "@5154"@sda21(r2)
/* 8005FFF0 0005BE30 EC 00 08 2A */ fadds f0, f0, f1
.global lbl_8005FFF4
lbl_8005FFF4:
/* 8005FFF4 0005BE34 D0 03 08 AC */ stfs f0, 0x8ac(r3)
/* 8005FFF8 0005BE38 C0 02 87 E0 */ lfs f0, "@5025_8055E760"@sda21(r2)
/* 8005FFFC 0005BE3C C0 23 08 B4 */ lfs f1, 0x8b4(r3)
/* 80060000 0005BE40 FC 01 00 40 */ fcmpo cr0, f1, f0
/* 80060004 0005BE44 40 80 00 10 */ bge lbl_80060014
/* 80060008 0005BE48 C0 02 88 34 */ lfs f0, "@5154"@sda21(r2)
/* 8006000C 0005BE4C EC 01 00 28 */ fsubs f0, f1, f0
/* 80060010 0005BE50 48 00 00 0C */ b lbl_8006001C
.global lbl_80060014
lbl_80060014:
/* 80060014 0005BE54 C0 02 88 34 */ lfs f0, "@5154"@sda21(r2)
/* 80060018 0005BE58 EC 00 08 2A */ fadds f0, f0, f1
.global lbl_8006001C
lbl_8006001C:
/* 8006001C 0005BE5C D0 03 08 B4 */ stfs f0, 0x8b4(r3)
/* 80060020 0005BE60 C8 62 88 18 */ lfd f3, "@5038"@sda21(r2)
/* 80060024 0005BE64 88 BC 00 12 */ lbz r5, 0x12(r28)
/* 80060028 0005BE68 88 7C 00 13 */ lbz r3, 0x13(r28)
/* 8006002C 0005BE6C 50 A3 44 2E */ rlwimi r3, r5, 8, 16, 23
/* 80060030 0005BE70 C0 42 88 30 */ lfs f2, "@5153"@sda21(r2)
/* 80060034 0005BE74 6C 63 80 00 */ xoris r3, r3, 0x8000
/* 80060038 0005BE78 90 61 00 0C */ stw r3, 0xc(r1)
/* 8006003C 0005BE7C C0 22 88 2C */ lfs f1, "@5152"@sda21(r2)
/* 80060040 0005BE80 C8 01 00 08 */ lfd f0, 0x8(r1)
/* 80060044 0005BE84 7C 64 00 2E */ lwzx r3, r4, r0
/* 80060048 0005BE88 EC 00 18 28 */ fsubs f0, f0, f3
/* 8006004C 0005BE8C EC 00 10 24 */ fdivs f0, f0, f2
/* 80060050 0005BE90 EC 01 00 2A */ fadds f0, f1, f0
/* 80060054 0005BE94 D0 03 08 BC */ stfs f0, 0x8bc(r3)
/* 80060058 0005BE98 88 9C 00 0E */ lbz r4, 0xe(r28)
/* 8006005C 0005BE9C 88 1C 00 0F */ lbz r0, 0xf(r28)
/* 80060060 0005BEA0 50 80 44 2E */ rlwimi r0, r4, 8, 16, 23
/* 80060064 0005BEA4 6C 00 80 00 */ xoris r0, r0, 0x8000
/* 80060068 0005BEA8 90 01 00 14 */ stw r0, 0x14(r1)
/* 8006006C 0005BEAC C8 01 00 10 */ lfd f0, 0x10(r1)
/* 80060070 0005BEB0 EC 00 18 28 */ fsubs f0, f0, f3
/* 80060074 0005BEB4 EC 00 10 24 */ fdivs f0, f0, f2
/* 80060078 0005BEB8 EC 01 00 2A */ fadds f0, f1, f0
/* 8006007C 0005BEBC D0 03 08 C4 */ stfs f0, 0x8c4(r3)
/* 80060080 0005BEC0 88 9C 00 10 */ lbz r4, 0x10(r28)
/* 80060084 0005BEC4 88 1C 00 11 */ lbz r0, 0x11(r28)
/* 80060088 0005BEC8 50 80 44 2E */ rlwimi r0, r4, 8, 16, 23
/* 8006008C 0005BECC 6C 00 80 00 */ xoris r0, r0, 0x8000
/* 80060090 0005BED0 90 01 00 0C */ stw r0, 0xc(r1)
/* 80060094 0005BED4 C8 01 00 08 */ lfd f0, 0x8(r1)
/* 80060098 0005BED8 EC 00 18 28 */ fsubs f0, f0, f3
/* 8006009C 0005BEDC EC 00 10 24 */ fdivs f0, f0, f2
/* 800600A0 0005BEE0 EC 01 00 2A */ fadds f0, f1, f0
/* 800600A4 0005BEE4 D0 03 08 CC */ stfs f0, 0x8cc(r3)
/* 800600A8 0005BEE8 88 1C 00 1A */ lbz r0, 0x1a(r28)
/* 800600AC 0005BEEC 1C 00 00 06 */ mulli r0, r0, 0x6
/* 800600B0 0005BEF0 90 03 08 D4 */ stw r0, 0x8d4(r3)
/* 800600B4 0005BEF4 2C 00 00 00 */ cmpwi r0, 0x0
/* 800600B8 0005BEF8 40 82 00 0C */ bne lbl_800600C4
/* 800600BC 0005BEFC 38 00 00 5B */ li r0, 0x5b
/* 800600C0 0005BF00 90 03 08 D4 */ stw r0, 0x8d4(r3)
.global lbl_800600C4
lbl_800600C4:
/* 800600C4 0005BF04 88 9C 00 18 */ lbz r4, 0x18(r28)
/* 800600C8 0005BF08 88 1C 00 19 */ lbz r0, 0x19(r28)
/* 800600CC 0005BF0C 54 84 44 2E */ rlwinm r4, r4, 8, 16, 23
/* 800600D0 0005BF10 C8 62 88 18 */ lfd f3, "@5038"@sda21(r2)
/* 800600D4 0005BF14 7C 84 07 34 */ extsh r4, r4
/* 800600D8 0005BF18 7C 00 07 34 */ extsh r0, r0
/* 800600DC 0005BF1C 7C 80 03 78 */ or r0, r4, r0
/* 800600E0 0005BF20 C0 42 88 30 */ lfs f2, "@5153"@sda21(r2)
/* 800600E4 0005BF24 6C 00 80 00 */ xoris r0, r0, 0x8000
/* 800600E8 0005BF28 90 01 00 14 */ stw r0, 0x14(r1)
/* 800600EC 0005BF2C C0 02 87 E0 */ lfs f0, "@5025_8055E760"@sda21(r2)
/* 800600F0 0005BF30 C8 21 00 10 */ lfd f1, 0x10(r1)
/* 800600F4 0005BF34 EC 21 18 28 */ fsubs f1, f1, f3
/* 800600F8 0005BF38 EC 21 10 24 */ fdivs f1, f1, f2
/* 800600FC 0005BF3C D0 23 08 C0 */ stfs f1, 0x8c0(r3)
/* 80060100 0005BF40 88 9C 00 14 */ lbz r4, 0x14(r28)
/* 80060104 0005BF44 88 1C 00 15 */ lbz r0, 0x15(r28)
/* 80060108 0005BF48 54 84 44 2E */ rlwinm r4, r4, 8, 16, 23
/* 8006010C 0005BF4C 7C 84 07 34 */ extsh r4, r4
/* 80060110 0005BF50 7C 00 07 34 */ extsh r0, r0
/* 80060114 0005BF54 7C 80 03 78 */ or r0, r4, r0
/* 80060118 0005BF58 6C 00 80 00 */ xoris r0, r0, 0x8000
/* 8006011C 0005BF5C 90 01 00 0C */ stw r0, 0xc(r1)
/* 80060120 0005BF60 C8 21 00 08 */ lfd f1, 0x8(r1)
/* 80060124 0005BF64 EC 21 18 28 */ fsubs f1, f1, f3
/* 80060128 0005BF68 EC 21 10 24 */ fdivs f1, f1, f2
/* 8006012C 0005BF6C D0 23 08 C8 */ stfs f1, 0x8c8(r3)
/* 80060130 0005BF70 88 9C 00 16 */ lbz r4, 0x16(r28)
/* 80060134 0005BF74 88 1C 00 17 */ lbz r0, 0x17(r28)
/* 80060138 0005BF78 54 84 44 2E */ rlwinm r4, r4, 8, 16, 23
/* 8006013C 0005BF7C 7C 84 07 34 */ extsh r4, r4
/* 80060140 0005BF80 7C 00 07 34 */ extsh r0, r0
/* 80060144 0005BF84 7C 80 03 78 */ or r0, r4, r0
/* 80060148 0005BF88 6C 00 80 00 */ xoris r0, r0, 0x8000
/* 8006014C 0005BF8C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80060150 0005BF90 C8 21 00 10 */ lfd f1, 0x10(r1)
/* 80060154 0005BF94 EC 21 18 28 */ fsubs f1, f1, f3
/* 80060158 0005BF98 EC 21 10 24 */ fdivs f1, f1, f2
/* 8006015C 0005BF9C D0 23 08 D0 */ stfs f1, 0x8d0(r3)
/* 80060160 0005BFA0 C0 23 08 C0 */ lfs f1, 0x8c0(r3)
/* 80060164 0005BFA4 FC 01 00 40 */ fcmpo cr0, f1, f0
/* 80060168 0005BFA8 40 80 00 10 */ bge lbl_80060178
/* 8006016C 0005BFAC C0 02 88 34 */ lfs f0, "@5154"@sda21(r2)
/* 80060170 0005BFB0 EC 01 00 28 */ fsubs f0, f1, f0
/* 80060174 0005BFB4 48 00 00 0C */ b lbl_80060180
.global lbl_80060178
lbl_80060178:
/* 80060178 0005BFB8 C0 02 88 34 */ lfs f0, "@5154"@sda21(r2)
/* 8006017C 0005BFBC EC 00 08 2A */ fadds f0, f0, f1
.global lbl_80060180
lbl_80060180:
/* 80060180 0005BFC0 D0 03 08 C0 */ stfs f0, 0x8c0(r3)
/* 80060184 0005BFC4 C0 02 87 E0 */ lfs f0, "@5025_8055E760"@sda21(r2)
/* 80060188 0005BFC8 C0 23 08 C8 */ lfs f1, 0x8c8(r3)
/* 8006018C 0005BFCC FC 01 00 40 */ fcmpo cr0, f1, f0
/* 80060190 0005BFD0 40 80 00 10 */ bge lbl_800601A0
/* 80060194 0005BFD4 C0 02 88 34 */ lfs f0, "@5154"@sda21(r2)
/* 80060198 0005BFD8 EC 01 00 28 */ fsubs f0, f1, f0
/* 8006019C 0005BFDC 48 00 00 0C */ b lbl_800601A8
.global lbl_800601A0
lbl_800601A0:
/* 800601A0 0005BFE0 C0 02 88 34 */ lfs f0, "@5154"@sda21(r2)
/* 800601A4 0005BFE4 EC 00 08 2A */ fadds f0, f0, f1
.global lbl_800601A8
lbl_800601A8:
/* 800601A8 0005BFE8 D0 03 08 C8 */ stfs f0, 0x8c8(r3)
/* 800601AC 0005BFEC C0 02 87 E0 */ lfs f0, "@5025_8055E760"@sda21(r2)
/* 800601B0 0005BFF0 C0 23 08 D0 */ lfs f1, 0x8d0(r3)
/* 800601B4 0005BFF4 FC 01 00 40 */ fcmpo cr0, f1, f0
/* 800601B8 0005BFF8 40 80 00 10 */ bge lbl_800601C8
/* 800601BC 0005BFFC C0 02 88 34 */ lfs f0, "@5154"@sda21(r2)
/* 800601C0 0005C000 EC 01 00 28 */ fsubs f0, f1, f0
/* 800601C4 0005C004 48 00 00 0C */ b lbl_800601D0
.global lbl_800601C8
lbl_800601C8:
/* 800601C8 0005C008 C0 02 88 34 */ lfs f0, "@5154"@sda21(r2)
/* 800601CC 0005C00C EC 00 08 2A */ fadds f0, f0, f1
.global lbl_800601D0
lbl_800601D0:
/* 800601D0 0005C010 D0 03 08 D0 */ stfs f0, 0x8d0(r3)
/* 800601D4 0005C014 7F 83 E3 78 */ mr r3, r28
/* 800601D8 0005C018 38 80 00 1C */ li r4, 0x1c
/* 800601DC 0005C01C 88 BC 00 0D */ lbz r5, 0xd(r28)
/* 800601E0 0005C020 88 1C 00 1B */ lbz r0, 0x1b(r28)
/* 800601E4 0005C024 50 A0 44 2E */ rlwimi r0, r5, 8, 16, 23
/* 800601E8 0005C028 B0 1D 08 DC */ sth r0, 0x8dc(r29)
/* 800601EC 0005C02C 4B FC 7F F5 */ bl OSCalcCRC32
/* 800601F0 0005C030 90 7D 08 D8 */ stw r3, 0x8d8(r29)
.global lbl_800601F4
lbl_800601F4:
/* 800601F4 0005C034 38 00 00 00 */ li r0, 0x0
/* 800601F8 0005C038 98 1D 09 47 */ stb r0, 0x947(r29)
/* 800601FC 0005C03C A0 7D 0B B2 */ lhz r3, 0xbb2(r29)
/* 80060200 0005C040 A0 1D 08 DC */ lhz r0, 0x8dc(r29)
/* 80060204 0005C044 7C 03 00 40 */ cmplw r3, r0
/* 80060208 0005C048 40 82 00 34 */ bne lbl_8006023C
/* 8006020C 0005C04C 80 7D 0B B4 */ lwz r3, 0xbb4(r29)
/* 80060210 0005C050 80 1D 08 D8 */ lwz r0, 0x8d8(r29)
/* 80060214 0005C054 7C 03 00 40 */ cmplw r3, r0
/* 80060218 0005C058 40 82 00 24 */ bne lbl_8006023C
/* 8006021C 0005C05C 88 1D 0B AE */ lbz r0, 0xbae(r29)
/* 80060220 0005C060 2C 00 00 01 */ cmpwi r0, 0x1
/* 80060224 0005C064 40 82 00 20 */ bne lbl_80060244
/* 80060228 0005C068 38 00 00 01 */ li r0, 0x1
/* 8006022C 0005C06C 98 1D 09 46 */ stb r0, 0x946(r29)
/* 80060230 0005C070 38 00 00 0C */ li r0, 0xc
/* 80060234 0005C074 98 1D 09 47 */ stb r0, 0x947(r29)
/* 80060238 0005C078 48 00 00 0C */ b lbl_80060244
.global lbl_8006023C
lbl_8006023C:
/* 8006023C 0005C07C 38 00 00 00 */ li r0, 0x0
/* 80060240 0005C080 98 1D 0B AE */ stb r0, 0xbae(r29)
.global lbl_80060244
lbl_80060244:
/* 80060244 0005C084 88 1D 0B AE */ lbz r0, 0xbae(r29)
/* 80060248 0005C088 2C 00 00 01 */ cmpwi r0, 0x1
/* 8006024C 0005C08C 41 82 00 20 */ beq lbl_8006026C
/* 80060250 0005C090 88 1D 0B B1 */ lbz r0, 0xbb1(r29)
/* 80060254 0005C094 28 00 00 0E */ cmplwi r0, 0xe
/* 80060258 0005C098 41 80 00 14 */ blt lbl_8006026C
/* 8006025C 0005C09C 38 6D E9 FC */ addi r3, r13, _wpadDevType@sda21
/* 80060260 0005C0A0 38 00 00 FC */ li r0, 0xfc
/* 80060264 0005C0A4 7C 03 D9 AE */ stbx r0, r3, r27
/* 80060268 0005C0A8 98 1D 09 05 */ stb r0, 0x905(r29)
.global lbl_8006026C
lbl_8006026C:
/* 8006026C 0005C0AC A0 1D 08 DC */ lhz r0, 0x8dc(r29)
/* 80060270 0005C0B0 B0 1D 0B B2 */ sth r0, 0xbb2(r29)
/* 80060274 0005C0B4 80 1D 08 D8 */ lwz r0, 0x8d8(r29)
/* 80060278 0005C0B8 90 1D 0B B4 */ stw r0, 0xbb4(r29)
/* 8006027C 0005C0BC 48 00 00 20 */ b lbl_8006029C
.global lbl_80060280
lbl_80060280:
/* 80060280 0005C0C0 A0 1D 0B 78 */ lhz r0, 0xb78(r29)
/* 80060284 0005C0C4 28 00 00 01 */ cmplwi r0, 0x1
/* 80060288 0005C0C8 40 82 00 14 */ bne lbl_8006029C
/* 8006028C 0005C0CC 48 00 00 34 */ b lbl_800602C0
.global lbl_80060290
lbl_80060290:
/* 80060290 0005C0D0 A0 1D 0B 78 */ lhz r0, 0xb78(r29)
/* 80060294 0005C0D4 28 00 00 20 */ cmplwi r0, 0x20
/* 80060298 0005C0D8 40 82 00 28 */ bne lbl_800602C0
.global lbl_8006029C
lbl_8006029C:
/* 8006029C 0005C0DC 81 9D 08 E4 */ lwz r12, 0x8e4(r29)
/* 800602A0 0005C0E0 2C 0C 00 00 */ cmpwi r12, 0x0
/* 800602A4 0005C0E4 41 82 00 14 */ beq lbl_800602B8
/* 800602A8 0005C0E8 7F 63 DB 78 */ mr r3, r27
/* 800602AC 0005C0EC 88 9D 09 05 */ lbz r4, 0x905(r29)
/* 800602B0 0005C0F0 7D 89 03 A6 */ mtctr r12
/* 800602B4 0005C0F4 4E 80 04 21 */ bctrl
.global lbl_800602B8
lbl_800602B8:
/* 800602B8 0005C0F8 38 00 00 00 */ li r0, 0x0
/* 800602BC 0005C0FC 90 1D 08 E0 */ stw r0, 0x8e0(r29)
.global lbl_800602C0
lbl_800602C0:
/* 800602C0 0005C100 39 61 00 30 */ addi r11, r1, 0x30
/* 800602C4 0005C104 4B FA 70 C5 */ bl lbl_80007388
/* 800602C8 0005C108 80 01 00 34 */ lwz r0, 0x34(r1)
/* 800602CC 0005C10C 7C 08 03 A6 */ mtlr r0
/* 800602D0 0005C110 38 21 00 30 */ addi r1, r1, 0x30
/* 800602D4 0005C114 4E 80 00 20 */ blr
/* 800602D8 0005C118 00 00 00 00 */ .4byte 0x00000000
/* 800602DC 0005C11C 00 00 00 00 */ .4byte 0x00000000
.global __wpadGetExtConfig2
__wpadGetExtConfig2:
/* 800602E0 0005C120 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800602E4 0005C124 7C 08 02 A6 */ mflr r0
/* 800602E8 0005C128 90 01 00 24 */ stw r0, 0x24(r1)
/* 800602EC 0005C12C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 800602F0 0005C130 93 C1 00 18 */ stw r30, 0x18(r1)
/* 800602F4 0005C134 93 A1 00 14 */ stw r29, 0x14(r1)
/* 800602F8 0005C138 3F A0 80 4C */ lis r29, __rvl_p_wpadcb@ha
/* 800602FC 0005C13C 3B BD 1A 50 */ addi r29, r29, __rvl_p_wpadcb@l
/* 80060300 0005C140 93 81 00 10 */ stw r28, 0x10(r1)
/* 80060304 0005C144 54 7C 10 3A */ slwi r28, r3, 2
/* 80060308 0005C148 7F FD E0 2E */ lwzx r31, r29, r28
/* 8006030C 0005C14C 88 1F 09 3B */ lbz r0, 0x93b(r31)
/* 80060310 0005C150 83 DF 0B 6C */ lwz r30, 0xb6c(r31)
/* 80060314 0005C154 2C 00 00 00 */ cmpwi r0, 0x0
/* 80060318 0005C158 41 82 01 70 */ beq lbl_80060488
/* 8006031C 0005C15C 2C 04 00 00 */ cmpwi r4, 0x0
/* 80060320 0005C160 40 82 01 58 */ bne lbl_80060478
/* 80060324 0005C164 38 8D E9 F4 */ addi r4, r13, _wpadDevType2@sda21
/* 80060328 0005C168 7C 04 18 AE */ lbzx r0, r4, r3
/* 8006032C 0005C16C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80060330 0005C170 40 82 01 3C */ bne lbl_8006046C
/* 80060334 0005C174 38 C0 02 00 */ li r6, 0x200
/* 80060338 0005C178 B0 DF 08 94 */ sth r6, 0x894(r31)
/* 8006033C 0005C17C 38 00 02 CC */ li r0, 0x2cc
/* 80060340 0005C180 7F C3 F3 78 */ mr r3, r30
/* 80060344 0005C184 B0 DF 08 92 */ sth r6, 0x892(r31)
/* 80060348 0005C188 38 80 00 0E */ li r4, 0xe
/* 8006034C 0005C18C 38 A0 00 00 */ li r5, 0x0
/* 80060350 0005C190 B0 DF 08 90 */ sth r6, 0x890(r31)
/* 80060354 0005C194 B0 1F 08 9A */ sth r0, 0x89a(r31)
/* 80060358 0005C198 B0 1F 08 98 */ sth r0, 0x898(r31)
/* 8006035C 0005C19C B0 1F 08 96 */ sth r0, 0x896(r31)
/* 80060360 0005C1A0 4B FF F5 31 */ bl __wpadCheckCalibration
/* 80060364 0005C1A4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80060368 0005C1A8 41 82 00 E0 */ beq lbl_80060448
/* 8006036C 0005C1AC 88 1E 00 03 */ lbz r0, 0x3(r30)
/* 80060370 0005C1B0 7C 7D E0 2E */ lwzx r3, r29, r28
/* 80060374 0005C1B4 88 9E 00 00 */ lbz r4, 0x0(r30)
/* 80060378 0005C1B8 54 00 E7 BE */ extrwi r0, r0, 2, 26
/* 8006037C 0005C1BC 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 80060380 0005C1C0 B0 03 08 90 */ sth r0, 0x890(r3)
/* 80060384 0005C1C4 88 1E 00 03 */ lbz r0, 0x3(r30)
/* 80060388 0005C1C8 88 9E 00 01 */ lbz r4, 0x1(r30)
/* 8006038C 0005C1CC 54 00 F7 BE */ extrwi r0, r0, 2, 28
/* 80060390 0005C1D0 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 80060394 0005C1D4 B0 03 08 92 */ sth r0, 0x892(r3)
/* 80060398 0005C1D8 88 1E 00 03 */ lbz r0, 0x3(r30)
/* 8006039C 0005C1DC 88 9E 00 02 */ lbz r4, 0x2(r30)
/* 800603A0 0005C1E0 54 00 07 BE */ clrlwi r0, r0, 30
/* 800603A4 0005C1E4 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 800603A8 0005C1E8 B0 03 08 94 */ sth r0, 0x894(r3)
/* 800603AC 0005C1EC 88 1E 00 07 */ lbz r0, 0x7(r30)
/* 800603B0 0005C1F0 88 9E 00 04 */ lbz r4, 0x4(r30)
/* 800603B4 0005C1F4 54 00 E7 BE */ extrwi r0, r0, 2, 26
/* 800603B8 0005C1F8 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 800603BC 0005C1FC B0 03 08 96 */ sth r0, 0x896(r3)
/* 800603C0 0005C200 88 1E 00 07 */ lbz r0, 0x7(r30)
/* 800603C4 0005C204 88 9E 00 05 */ lbz r4, 0x5(r30)
/* 800603C8 0005C208 54 00 F7 BE */ extrwi r0, r0, 2, 28
/* 800603CC 0005C20C 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 800603D0 0005C210 B0 03 08 98 */ sth r0, 0x898(r3)
/* 800603D4 0005C214 88 1E 00 07 */ lbz r0, 0x7(r30)
/* 800603D8 0005C218 88 9E 00 06 */ lbz r4, 0x6(r30)
/* 800603DC 0005C21C 54 00 07 BE */ clrlwi r0, r0, 30
/* 800603E0 0005C220 50 80 15 BA */ rlwimi r0, r4, 2, 22, 29
/* 800603E4 0005C224 B0 03 08 9A */ sth r0, 0x89a(r3)
/* 800603E8 0005C228 88 1E 00 08 */ lbz r0, 0x8(r30)
/* 800603EC 0005C22C 7C 00 07 74 */ extsb r0, r0
/* 800603F0 0005C230 B0 03 08 88 */ sth r0, 0x888(r3)
/* 800603F4 0005C234 88 1E 00 09 */ lbz r0, 0x9(r30)
/* 800603F8 0005C238 7C 00 07 74 */ extsb r0, r0
/* 800603FC 0005C23C B0 03 08 86 */ sth r0, 0x886(r3)
/* 80060400 0005C240 88 1E 00 0B */ lbz r0, 0xb(r30)
/* 80060404 0005C244 7C 00 07 74 */ extsb r0, r0
/* 80060408 0005C248 B0 03 08 8E */ sth r0, 0x88e(r3)
/* 8006040C 0005C24C 88 1E 00 0C */ lbz r0, 0xc(r30)
/* 80060410 0005C250 7C 00 07 74 */ extsb r0, r0
/* 80060414 0005C254 B0 03 08 8C */ sth r0, 0x88c(r3)
/* 80060418 0005C258 88 03 0B 09 */ lbz r0, 0xb09(r3)
/* 8006041C 0005C25C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80060420 0005C260 40 82 00 1C */ bne lbl_8006043C
/* 80060424 0005C264 88 1E 00 0A */ lbz r0, 0xa(r30)
/* 80060428 0005C268 7C 00 07 74 */ extsb r0, r0
/* 8006042C 0005C26C B0 03 08 84 */ sth r0, 0x884(r3)
/* 80060430 0005C270 88 1E 00 0D */ lbz r0, 0xd(r30)
/* 80060434 0005C274 7C 00 07 74 */ extsb r0, r0
/* 80060438 0005C278 B0 03 08 8A */ sth r0, 0x88a(r3)
.global lbl_8006043C
lbl_8006043C:
/* 8006043C 0005C27C 38 00 00 04 */ li r0, 0x4
/* 80060440 0005C280 98 1F 09 3D */ stb r0, 0x93d(r31)
/* 80060444 0005C284 48 00 00 44 */ b lbl_80060488
.global lbl_80060448
lbl_80060448:
/* 80060448 0005C288 88 7F 09 3D */ lbz r3, 0x93d(r31)
/* 8006044C 0005C28C 28 03 00 03 */ cmplwi r3, 0x3
/* 80060450 0005C290 40 82 00 10 */ bne lbl_80060460
/* 80060454 0005C294 38 03 00 03 */ addi r0, r3, 0x3
/* 80060458 0005C298 98 1F 09 3D */ stb r0, 0x93d(r31)
/* 8006045C 0005C29C 48 00 00 2C */ b lbl_80060488
.global lbl_80060460
lbl_80060460:
/* 80060460 0005C2A0 38 00 00 04 */ li r0, 0x4
/* 80060464 0005C2A4 98 1F 09 3D */ stb r0, 0x93d(r31)
/* 80060468 0005C2A8 48 00 00 20 */ b lbl_80060488
.global lbl_8006046C
lbl_8006046C:
/* 8006046C 0005C2AC 38 00 00 04 */ li r0, 0x4
/* 80060470 0005C2B0 98 1F 09 3D */ stb r0, 0x93d(r31)
/* 80060474 0005C2B4 48 00 00 14 */ b lbl_80060488
.global lbl_80060478
lbl_80060478:
/* 80060478 0005C2B8 2C 04 FF FD */ cmpwi r4, -0x3
/* 8006047C 0005C2BC 40 82 00 0C */ bne lbl_80060488
/* 80060480 0005C2C0 38 00 00 02 */ li r0, 0x2
/* 80060484 0005C2C4 98 1F 09 3D */ stb r0, 0x93d(r31)
.global lbl_80060488
lbl_80060488:
/* 80060488 0005C2C8 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8006048C 0005C2CC 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80060490 0005C2D0 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80060494 0005C2D4 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80060498 0005C2D8 83 81 00 10 */ lwz r28, 0x10(r1)
/* 8006049C 0005C2DC 7C 08 03 A6 */ mtlr r0
/* 800604A0 0005C2E0 38 21 00 20 */ addi r1, r1, 0x20
/* 800604A4 0005C2E4 4E 80 00 20 */ blr
/* 800604A8 0005C2E8 00 00 00 00 */ .4byte 0x00000000
/* 800604AC 0005C2EC 00 00 00 00 */ .4byte 0x00000000
.global __wpadIsExtEncryptMain
__wpadIsExtEncryptMain:
/* 800604B0 0005C2F0 38 03 00 FF */ addi r0, r3, 0xff
/* 800604B4 0005C2F4 54 00 06 3E */ clrlwi r0, r0, 24
/* 800604B8 0005C2F8 28 00 00 03 */ cmplwi r0, 0x3
/* 800604BC 0005C2FC 40 81 00 2C */ ble lbl_800604E8
/* 800604C0 0005C300 38 03 00 EF */ addi r0, r3, 0xef
/* 800604C4 0005C304 54 00 06 3E */ clrlwi r0, r0, 24
/* 800604C8 0005C308 28 00 00 01 */ cmplwi r0, 0x1
/* 800604CC 0005C30C 40 81 00 1C */ ble lbl_800604E8
/* 800604D0 0005C310 28 03 00 14 */ cmplwi r3, 0x14
/* 800604D4 0005C314 41 82 00 14 */ beq lbl_800604E8
/* 800604D8 0005C318 38 03 00 EB */ addi r0, r3, 0xeb
/* 800604DC 0005C31C 54 00 06 3E */ clrlwi r0, r0, 24
/* 800604E0 0005C320 28 00 00 07 */ cmplwi r0, 0x7
/* 800604E4 0005C324 41 81 00 0C */ bgt lbl_800604F0
.global lbl_800604E8
lbl_800604E8:
/* 800604E8 0005C328 38 60 00 01 */ li r3, 0x1
/* 800604EC 0005C32C 4E 80 00 20 */ blr
.global lbl_800604F0
lbl_800604F0:
/* 800604F0 0005C330 38 60 00 00 */ li r3, 0x0
/* 800604F4 0005C334 4E 80 00 20 */ blr
/* 800604F8 0005C338 00 00 00 00 */ .4byte 0x00000000
/* 800604FC 0005C33C 00 00 00 00 */ .4byte 0x00000000
.global __wpadGetExtType
__wpadGetExtType:
/* 80060500 0005C340 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80060504 0005C344 7C 08 02 A6 */ mflr r0
/* 80060508 0005C348 90 01 00 34 */ stw r0, 0x34(r1)
/* 8006050C 0005C34C 39 61 00 30 */ addi r11, r1, 0x30
/* 80060510 0005C350 4B FA 6E 1D */ bl lbl_8000732C
/* 80060514 0005C354 3F E0 80 4C */ lis r31, __rvl_p_wpadcb@ha
/* 80060518 0005C358 54 7C 10 3A */ slwi r28, r3, 2
/* 8006051C 0005C35C 3B FF 1A 50 */ addi r31, r31, __rvl_p_wpadcb@l
/* 80060520 0005C360 2C 04 00 00 */ cmpwi r4, 0x0
/* 80060524 0005C364 7F 7F E0 2E */ lwzx r27, r31, r28
/* 80060528 0005C368 7C 78 1B 78 */ mr r24, r3
/* 8006052C 0005C36C 3B 5B 05 EC */ addi r26, r27, 0x5ec
/* 80060530 0005C370 3B 3B 0B 2C */ addi r25, r27, 0xb2c
/* 80060534 0005C374 40 82 06 6C */ bne lbl_80060BA0
/* 80060538 0005C378 80 1B 08 40 */ lwz r0, 0x840(r27)
/* 8006053C 0005C37C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80060540 0005C380 40 82 00 24 */ bne lbl_80060564
/* 80060544 0005C384 38 8D E9 FC */ addi r4, r13, _wpadDevType@sda21
/* 80060548 0005C388 38 00 00 00 */ li r0, 0x0
/* 8006054C 0005C38C 7C 04 19 AE */ stbx r0, r4, r3
/* 80060550 0005C390 38 8D E9 F8 */ addi r4, r13, _wpadDevMode@sda21
/* 80060554 0005C394 98 1B 09 05 */ stb r0, 0x905(r27)
/* 80060558 0005C398 7C 04 19 AE */ stbx r0, r4, r3
/* 8006055C 0005C39C 98 1B 09 06 */ stb r0, 0x906(r27)
/* 80060560 0005C3A0 48 00 06 58 */ b lbl_80060BB8
.global lbl_80060564
lbl_80060564:
/* 80060564 0005C3A4 3C 80 80 40 */ lis r4, _cExtInvalidData@ha
/* 80060568 0005C3A8 7F 23 CB 78 */ mr r3, r25
/* 8006056C 0005C3AC 38 84 7D B8 */ addi r4, r4, _cExtInvalidData@l
/* 80060570 0005C3B0 38 A0 00 10 */ li r5, 0x10
/* 80060574 0005C3B4 4B FA A8 FD */ bl memcmp
/* 80060578 0005C3B8 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006057C 0005C3BC 41 82 00 1C */ beq lbl_80060598
/* 80060580 0005C3C0 88 19 00 0C */ lbz r0, 0xc(r25)
/* 80060584 0005C3C4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80060588 0005C3C8 40 82 00 34 */ bne lbl_800605BC
/* 8006058C 0005C3CC 88 19 00 0D */ lbz r0, 0xd(r25)
/* 80060590 0005C3D0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80060594 0005C3D4 40 82 00 28 */ bne lbl_800605BC
.global lbl_80060598
lbl_80060598:
/* 80060598 0005C3D8 38 6D E9 FC */ addi r3, r13, _wpadDevType@sda21
/* 8006059C 0005C3DC 38 0D E9 F8 */ addi r0, r13, _wpadDevMode@sda21
/* 800605A0 0005C3E0 7F C3 C2 14 */ add r30, r3, r24
/* 800605A4 0005C3E4 7F A0 C2 14 */ add r29, r0, r24
/* 800605A8 0005C3E8 38 60 00 FC */ li r3, 0xfc
/* 800605AC 0005C3EC 38 00 00 00 */ li r0, 0x0
/* 800605B0 0005C3F0 98 7E 00 00 */ stb r3, 0x0(r30)
/* 800605B4 0005C3F4 98 1D 00 00 */ stb r0, 0x0(r29)
/* 800605B8 0005C3F8 48 00 03 A4 */ b lbl_8006095C
.global lbl_800605BC
lbl_800605BC:
/* 800605BC 0005C3FC 38 8D E9 EC */ addi r4, r13, _wpadCLCompt@sda21
/* 800605C0 0005C400 3A E0 00 00 */ li r23, 0x0
/* 800605C4 0005C404 7E E4 C1 AE */ stbx r23, r4, r24
/* 800605C8 0005C408 38 0D E9 F8 */ addi r0, r13, _wpadDevMode@sda21
/* 800605CC 0005C40C 7F A0 C2 14 */ add r29, r0, r24
/* 800605D0 0005C410 88 19 00 0E */ lbz r0, 0xe(r25)
/* 800605D4 0005C414 98 1D 00 00 */ stb r0, 0x0(r29)
/* 800605D8 0005C418 88 19 00 0F */ lbz r0, 0xf(r25)
/* 800605DC 0005C41C 28 00 00 12 */ cmplwi r0, 0x12
/* 800605E0 0005C420 41 81 03 6C */ bgt lbl_8006094C
/* 800605E4 0005C424 3C 60 80 44 */ lis r3, "@5370"@ha
/* 800605E8 0005C428 54 00 10 3A */ slwi r0, r0, 2
/* 800605EC 0005C42C 38 63 88 C8 */ addi r3, r3, "@5370"@l
/* 800605F0 0005C430 7C 63 00 2E */ lwzx r3, r3, r0
/* 800605F4 0005C434 7C 69 03 A6 */ mtctr r3
/* 800605F8 0005C438 4E 80 04 20 */ bctr
.global lbl_800605FC
lbl_800605FC:
/* 800605FC 0005C43C 38 6D E9 FC */ addi r3, r13, _wpadDevType@sda21
/* 80060600 0005C440 38 00 00 01 */ li r0, 0x1
/* 80060604 0005C444 7C 03 C1 AE */ stbx r0, r3, r24
/* 80060608 0005C448 7F C3 C2 14 */ add r30, r3, r24
/* 8006060C 0005C44C 48 00 03 50 */ b lbl_8006095C
.global lbl_80060610
lbl_80060610:
/* 80060610 0005C450 38 6D E9 FC */ addi r3, r13, _wpadDevType@sda21
/* 80060614 0005C454 38 00 00 02 */ li r0, 0x2
/* 80060618 0005C458 7C 03 C1 AE */ stbx r0, r3, r24
/* 8006061C 0005C45C 7F C3 C2 14 */ add r30, r3, r24
/* 80060620 0005C460 48 00 03 3C */ b lbl_8006095C
.global lbl_80060624
lbl_80060624:
/* 80060624 0005C464 48 00 51 1D */ bl WUDIsLinkedWBC
/* 80060628 0005C468 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006062C 0005C46C 38 60 00 FB */ li r3, 0xfb
/* 80060630 0005C470 41 82 00 08 */ beq lbl_80060638
/* 80060634 0005C474 38 60 00 03 */ li r3, 0x3
.global lbl_80060638
lbl_80060638:
/* 80060638 0005C478 38 0D E9 FC */ addi r0, r13, _wpadDevType@sda21
/* 8006063C 0005C47C 7C 78 01 AE */ stbx r3, r24, r0
/* 80060640 0005C480 7F C0 C2 14 */ add r30, r0, r24
/* 80060644 0005C484 48 00 03 18 */ b lbl_8006095C
.global lbl_80060648
lbl_80060648:
/* 80060648 0005C488 4B FF 37 D9 */ bl WPADIsEnabledTRN
/* 8006064C 0005C48C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80060650 0005C490 38 60 00 FB */ li r3, 0xfb
/* 80060654 0005C494 41 82 00 08 */ beq lbl_8006065C
/* 80060658 0005C498 38 60 00 10 */ li r3, 0x10
.global lbl_8006065C
lbl_8006065C:
/* 8006065C 0005C49C 38 0D E9 FC */ addi r0, r13, _wpadDevType@sda21
/* 80060660 0005C4A0 7C 78 01 AE */ stbx r3, r24, r0
/* 80060664 0005C4A4 7F C0 C2 14 */ add r30, r0, r24
/* 80060668 0005C4A8 48 00 02 F4 */ b lbl_8006095C
.global lbl_8006066C
lbl_8006066C:
/* 8006066C 0005C4AC 4B FF 37 E5 */ bl WPADIsEnabledTKO
/* 80060670 0005C4B0 2C 03 00 00 */ cmpwi r3, 0x0
/* 80060674 0005C4B4 38 60 00 FB */ li r3, 0xfb
/* 80060678 0005C4B8 41 82 00 08 */ beq lbl_80060680
/* 8006067C 0005C4BC 38 60 00 13 */ li r3, 0x13
.global lbl_80060680
lbl_80060680:
/* 80060680 0005C4C0 38 0D E9 FC */ addi r0, r13, _wpadDevType@sda21
/* 80060684 0005C4C4 7C 78 01 AE */ stbx r3, r24, r0
/* 80060688 0005C4C8 7F C0 C2 14 */ add r30, r0, r24
/* 8006068C 0005C4CC 48 00 02 D0 */ b lbl_8006095C
.global lbl_80060690
lbl_80060690:
/* 80060690 0005C4D0 4B FF 37 F1 */ bl WPADIsEnabledDRW
/* 80060694 0005C4D4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80060698 0005C4D8 38 60 00 FB */ li r3, 0xfb
/* 8006069C 0005C4DC 41 82 00 08 */ beq lbl_800606A4
/* 800606A0 0005C4E0 38 60 00 1D */ li r3, 0x1d
.global lbl_800606A4
lbl_800606A4:
/* 800606A4 0005C4E4 38 0D E9 FC */ addi r0, r13, _wpadDevType@sda21
/* 800606A8 0005C4E8 7C 78 01 AE */ stbx r3, r24, r0
/* 800606AC 0005C4EC 7F C0 C2 14 */ add r30, r0, r24
/* 800606B0 0005C4F0 48 00 02 AC */ b lbl_8006095C
.global lbl_800606B4
lbl_800606B4:
/* 800606B4 0005C4F4 80 0D E3 58 */ lwz r0, __OSInIPL@sda21(r13)
/* 800606B8 0005C4F8 2C 00 00 00 */ cmpwi r0, 0x0
/* 800606BC 0005C4FC 41 82 00 24 */ beq lbl_800606E0
/* 800606C0 0005C500 38 6D E9 FC */ addi r3, r13, _wpadDevType@sda21
/* 800606C4 0005C504 38 00 00 01 */ li r0, 0x1
/* 800606C8 0005C508 7F C3 C2 14 */ add r30, r3, r24
/* 800606CC 0005C50C 98 1D 00 00 */ stb r0, 0x0(r29)
/* 800606D0 0005C510 38 60 00 02 */ li r3, 0x2
/* 800606D4 0005C514 98 7E 00 00 */ stb r3, 0x0(r30)
/* 800606D8 0005C518 7C 04 C1 AE */ stbx r0, r4, r24
/* 800606DC 0005C51C 48 00 02 80 */ b lbl_8006095C
.global lbl_800606E0
lbl_800606E0:
/* 800606E0 0005C520 88 19 00 0A */ lbz r0, 0xa(r25)
/* 800606E4 0005C524 28 00 00 0B */ cmplwi r0, 0xb
/* 800606E8 0005C528 41 81 01 A8 */ bgt lbl_80060890
/* 800606EC 0005C52C 3C 60 80 44 */ lis r3, "@5371"@ha
/* 800606F0 0005C530 54 00 10 3A */ slwi r0, r0, 2
/* 800606F4 0005C534 38 63 88 98 */ addi r3, r3, "@5371"@l
/* 800606F8 0005C538 7C 63 00 2E */ lwzx r3, r3, r0
/* 800606FC 0005C53C 7C 69 03 A6 */ mtctr r3
/* 80060700 0005C540 4E 80 04 20 */ bctr
.global lbl_80060704
lbl_80060704:
/* 80060704 0005C544 4B FF 37 2D */ bl WPADIsEnabledGTR
/* 80060708 0005C548 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006070C 0005C54C 38 60 00 FB */ li r3, 0xfb
/* 80060710 0005C550 41 82 00 08 */ beq lbl_80060718
/* 80060714 0005C554 38 60 00 11 */ li r3, 0x11
.global lbl_80060718
lbl_80060718:
/* 80060718 0005C558 38 0D E9 FC */ addi r0, r13, _wpadDevType@sda21
/* 8006071C 0005C55C 7C 78 01 AE */ stbx r3, r24, r0
/* 80060720 0005C560 7F C0 C2 14 */ add r30, r0, r24
/* 80060724 0005C564 48 00 02 38 */ b lbl_8006095C
.global lbl_80060728
lbl_80060728:
/* 80060728 0005C568 4B FF 37 19 */ bl WPADIsEnabledDRM
/* 8006072C 0005C56C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80060730 0005C570 38 60 00 FB */ li r3, 0xfb
/* 80060734 0005C574 41 82 00 08 */ beq lbl_8006073C
/* 80060738 0005C578 38 60 00 12 */ li r3, 0x12
.global lbl_8006073C
lbl_8006073C:
/* 8006073C 0005C57C 38 0D E9 FC */ addi r0, r13, _wpadDevType@sda21
/* 80060740 0005C580 7C 78 01 AE */ stbx r3, r24, r0
/* 80060744 0005C584 7F C0 C2 14 */ add r30, r0, r24
/* 80060748 0005C588 48 00 02 14 */ b lbl_8006095C
.global lbl_8006074C
lbl_8006074C:
/* 8006074C 0005C58C 4B FF 37 15 */ bl WPADIsEnabledTBL
/* 80060750 0005C590 2C 03 00 00 */ cmpwi r3, 0x0
/* 80060754 0005C594 38 60 00 FB */ li r3, 0xfb
/* 80060758 0005C598 41 82 00 08 */ beq lbl_80060760
/* 8006075C 0005C59C 38 60 00 14 */ li r3, 0x14
.global lbl_80060760
lbl_80060760:
/* 80060760 0005C5A0 38 0D E9 FC */ addi r0, r13, _wpadDevType@sda21
/* 80060764 0005C5A4 7C 78 01 AE */ stbx r3, r24, r0
/* 80060768 0005C5A8 7F C0 C2 14 */ add r30, r0, r24
/* 8006076C 0005C5AC 48 00 01 F0 */ b lbl_8006095C
.global lbl_80060770
lbl_80060770:
/* 80060770 0005C5B0 4B FF 37 01 */ bl WPADIsEnabledBLK
/* 80060774 0005C5B4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80060778 0005C5B8 38 60 00 FB */ li r3, 0xfb
/* 8006077C 0005C5BC 41 82 00 08 */ beq lbl_80060784
/* 80060780 0005C5C0 38 60 00 15 */ li r3, 0x15
.global lbl_80060784
lbl_80060784:
/* 80060784 0005C5C4 38 0D E9 FC */ addi r0, r13, _wpadDevType@sda21
/* 80060788 0005C5C8 7C 78 01 AE */ stbx r3, r24, r0
/* 8006078C 0005C5CC 7F C0 C2 14 */ add r30, r0, r24
/* 80060790 0005C5D0 48 00 01 CC */ b lbl_8006095C
.global lbl_80060794
lbl_80060794:
/* 80060794 0005C5D4 4B FF 36 DD */ bl WPADIsEnabledBLK
/* 80060798 0005C5D8 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006079C 0005C5DC 38 60 00 FB */ li r3, 0xfb
/* 800607A0 0005C5E0 41 82 00 08 */ beq lbl_800607A8
/* 800607A4 0005C5E4 38 60 00 16 */ li r3, 0x16
.global lbl_800607A8
lbl_800607A8:
/* 800607A8 0005C5E8 38 0D E9 FC */ addi r0, r13, _wpadDevType@sda21
/* 800607AC 0005C5EC 7C 78 01 AE */ stbx r3, r24, r0
/* 800607B0 0005C5F0 7F C0 C2 14 */ add r30, r0, r24
/* 800607B4 0005C5F4 48 00 01 A8 */ b lbl_8006095C
.global lbl_800607B8
lbl_800607B8:
/* 800607B8 0005C5F8 4B FF 36 B9 */ bl WPADIsEnabledBLK
/* 800607BC 0005C5FC 2C 03 00 00 */ cmpwi r3, 0x0
/* 800607C0 0005C600 38 60 00 FB */ li r3, 0xfb
/* 800607C4 0005C604 41 82 00 08 */ beq lbl_800607CC
/* 800607C8 0005C608 38 60 00 17 */ li r3, 0x17
.global lbl_800607CC
lbl_800607CC:
/* 800607CC 0005C60C 38 0D E9 FC */ addi r0, r13, _wpadDevType@sda21
/* 800607D0 0005C610 7C 78 01 AE */ stbx r3, r24, r0
/* 800607D4 0005C614 7F C0 C2 14 */ add r30, r0, r24
/* 800607D8 0005C618 48 00 01 84 */ b lbl_8006095C
.global lbl_800607DC
lbl_800607DC:
/* 800607DC 0005C61C 4B FF 36 95 */ bl WPADIsEnabledBLK
/* 800607E0 0005C620 2C 03 00 00 */ cmpwi r3, 0x0
/* 800607E4 0005C624 38 60 00 FB */ li r3, 0xfb
/* 800607E8 0005C628 41 82 00 08 */ beq lbl_800607F0
/* 800607EC 0005C62C 38 60 00 18 */ li r3, 0x18
.global lbl_800607F0
lbl_800607F0:
/* 800607F0 0005C630 38 0D E9 FC */ addi r0, r13, _wpadDevType@sda21
/* 800607F4 0005C634 7C 78 01 AE */ stbx r3, r24, r0
/* 800607F8 0005C638 7F C0 C2 14 */ add r30, r0, r24
/* 800607FC 0005C63C 48 00 01 60 */ b lbl_8006095C
.global lbl_80060800
lbl_80060800:
/* 80060800 0005C640 4B FF 36 71 */ bl WPADIsEnabledBLK
/* 80060804 0005C644 2C 03 00 00 */ cmpwi r3, 0x0
/* 80060808 0005C648 38 60 00 FB */ li r3, 0xfb
/* 8006080C 0005C64C 41 82 00 08 */ beq lbl_80060814
/* 80060810 0005C650 38 60 00 19 */ li r3, 0x19
.global lbl_80060814
lbl_80060814:
/* 80060814 0005C654 38 0D E9 FC */ addi r0, r13, _wpadDevType@sda21
/* 80060818 0005C658 7C 78 01 AE */ stbx r3, r24, r0
/* 8006081C 0005C65C 7F C0 C2 14 */ add r30, r0, r24
/* 80060820 0005C660 48 00 01 3C */ b lbl_8006095C
.global lbl_80060824
lbl_80060824:
/* 80060824 0005C664 4B FF 36 4D */ bl WPADIsEnabledBLK
/* 80060828 0005C668 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006082C 0005C66C 38 60 00 FB */ li r3, 0xfb
/* 80060830 0005C670 41 82 00 08 */ beq lbl_80060838
/* 80060834 0005C674 38 60 00 1A */ li r3, 0x1a
.global lbl_80060838
lbl_80060838:
/* 80060838 0005C678 38 0D E9 FC */ addi r0, r13, _wpadDevType@sda21
/* 8006083C 0005C67C 7C 78 01 AE */ stbx r3, r24, r0
/* 80060840 0005C680 7F C0 C2 14 */ add r30, r0, r24
/* 80060844 0005C684 48 00 01 18 */ b lbl_8006095C
.global lbl_80060848
lbl_80060848:
/* 80060848 0005C688 4B FF 36 29 */ bl WPADIsEnabledBLK
/* 8006084C 0005C68C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80060850 0005C690 38 60 00 FB */ li r3, 0xfb
/* 80060854 0005C694 41 82 00 08 */ beq lbl_8006085C
/* 80060858 0005C698 38 60 00 1B */ li r3, 0x1b
.global lbl_8006085C
lbl_8006085C:
/* 8006085C 0005C69C 38 0D E9 FC */ addi r0, r13, _wpadDevType@sda21
/* 80060860 0005C6A0 7C 78 01 AE */ stbx r3, r24, r0
/* 80060864 0005C6A4 7F C0 C2 14 */ add r30, r0, r24
/* 80060868 0005C6A8 48 00 00 F4 */ b lbl_8006095C
.global lbl_8006086C
lbl_8006086C:
/* 8006086C 0005C6AC 4B FF 36 05 */ bl WPADIsEnabledBLK
/* 80060870 0005C6B0 2C 03 00 00 */ cmpwi r3, 0x0
/* 80060874 0005C6B4 38 60 00 FB */ li r3, 0xfb
/* 80060878 0005C6B8 41 82 00 08 */ beq lbl_80060880
/* 8006087C 0005C6BC 38 60 00 1C */ li r3, 0x1c
.global lbl_80060880
lbl_80060880:
/* 80060880 0005C6C0 38 0D E9 FC */ addi r0, r13, _wpadDevType@sda21
/* 80060884 0005C6C4 7C 78 01 AE */ stbx r3, r24, r0
/* 80060888 0005C6C8 7F C0 C2 14 */ add r30, r0, r24
/* 8006088C 0005C6CC 48 00 00 D0 */ b lbl_8006095C
.global lbl_80060890
lbl_80060890:
/* 80060890 0005C6D0 38 6D E9 FC */ addi r3, r13, _wpadDevType@sda21
/* 80060894 0005C6D4 38 00 00 FB */ li r0, 0xfb
/* 80060898 0005C6D8 7C 03 C1 AE */ stbx r0, r3, r24
/* 8006089C 0005C6DC 7F C3 C2 14 */ add r30, r3, r24
/* 800608A0 0005C6E0 48 00 00 BC */ b lbl_8006095C
.global lbl_800608A4
lbl_800608A4:
/* 800608A4 0005C6E4 4B FF 35 6D */ bl WPADIsEnabledVSM
/* 800608A8 0005C6E8 2C 03 00 00 */ cmpwi r3, 0x0
/* 800608AC 0005C6EC 41 82 00 1C */ beq lbl_800608C8
/* 800608B0 0005C6F0 38 6D E9 FC */ addi r3, r13, _wpadDevType@sda21
/* 800608B4 0005C6F4 38 00 00 04 */ li r0, 0x4
/* 800608B8 0005C6F8 7C 03 C1 AE */ stbx r0, r3, r24
/* 800608BC 0005C6FC 7F C3 C2 14 */ add r30, r3, r24
/* 800608C0 0005C700 9A FB 0B BC */ stb r23, 0xbbc(r27)
/* 800608C4 0005C704 48 00 00 98 */ b lbl_8006095C
.global lbl_800608C8
lbl_800608C8:
/* 800608C8 0005C708 38 6D E9 FC */ addi r3, r13, _wpadDevType@sda21
/* 800608CC 0005C70C 38 00 00 FB */ li r0, 0xfb
/* 800608D0 0005C710 7C 03 C1 AE */ stbx r0, r3, r24
/* 800608D4 0005C714 7F C3 C2 14 */ add r30, r3, r24
/* 800608D8 0005C718 48 00 00 84 */ b lbl_8006095C
.global lbl_800608DC
lbl_800608DC:
/* 800608DC 0005C71C 88 79 00 0E */ lbz r3, 0xe(r25)
/* 800608E0 0005C720 38 03 FF FC */ addi r0, r3, -0x4
/* 800608E4 0005C724 28 00 00 01 */ cmplwi r0, 0x1
/* 800608E8 0005C728 40 81 00 0C */ ble lbl_800608F4
/* 800608EC 0005C72C 2C 03 00 07 */ cmpwi r3, 0x7
/* 800608F0 0005C730 40 82 00 18 */ bne lbl_80060908
.global lbl_800608F4
lbl_800608F4:
/* 800608F4 0005C734 38 6D E9 FC */ addi r3, r13, _wpadDevType@sda21
/* 800608F8 0005C738 38 00 00 05 */ li r0, 0x5
/* 800608FC 0005C73C 7C 03 C1 AE */ stbx r0, r3, r24
/* 80060900 0005C740 7F C3 C2 14 */ add r30, r3, r24
/* 80060904 0005C744 48 00 00 14 */ b lbl_80060918
.global lbl_80060908
lbl_80060908:
/* 80060908 0005C748 38 6D E9 FC */ addi r3, r13, _wpadDevType@sda21
/* 8006090C 0005C74C 38 00 00 FB */ li r0, 0xfb
/* 80060910 0005C750 7C 03 C1 AE */ stbx r0, r3, r24
/* 80060914 0005C754 7F C3 C2 14 */ add r30, r3, r24
.global lbl_80060918
lbl_80060918:
/* 80060918 0005C758 38 A0 00 00 */ li r5, 0x0
/* 8006091C 0005C75C 98 BB 09 3B */ stb r5, 0x93b(r27)
/* 80060920 0005C760 38 00 00 FD */ li r0, 0xfd
/* 80060924 0005C764 38 8D E9 F4 */ addi r4, r13, _wpadDevType2@sda21
/* 80060928 0005C768 98 BB 09 3D */ stb r5, 0x93d(r27)
/* 8006092C 0005C76C 38 6D E9 F0 */ addi r3, r13, _wpadDevType2Sub@sda21
/* 80060930 0005C770 98 1B 09 3C */ stb r0, 0x93c(r27)
/* 80060934 0005C774 88 19 00 09 */ lbz r0, 0x9(r25)
/* 80060938 0005C778 7C 04 C1 AE */ stbx r0, r4, r24
/* 8006093C 0005C77C 88 19 00 08 */ lbz r0, 0x8(r25)
/* 80060940 0005C780 7C 03 C1 AE */ stbx r0, r3, r24
/* 80060944 0005C784 98 BB 0B AD */ stb r5, 0xbad(r27)
/* 80060948 0005C788 48 00 00 14 */ b lbl_8006095C
.global lbl_8006094C
lbl_8006094C:
/* 8006094C 0005C78C 38 6D E9 FC */ addi r3, r13, _wpadDevType@sda21
/* 80060950 0005C790 38 00 00 FB */ li r0, 0xfb
/* 80060954 0005C794 7C 03 C1 AE */ stbx r0, r3, r24
/* 80060958 0005C798 7F C3 C2 14 */ add r30, r3, r24
.global lbl_8006095C
lbl_8006095C:
/* 8006095C 0005C79C 88 1E 00 00 */ lbz r0, 0x0(r30)
/* 80060960 0005C7A0 28 00 00 02 */ cmplwi r0, 0x2
/* 80060964 0005C7A4 40 82 00 20 */ bne lbl_80060984
/* 80060968 0005C7A8 88 7D 00 00 */ lbz r3, 0x0(r29)
/* 8006096C 0005C7AC 38 03 00 FF */ addi r0, r3, 0xff
/* 80060970 0005C7B0 54 00 06 3E */ clrlwi r0, r0, 24
/* 80060974 0005C7B4 28 00 00 02 */ cmplwi r0, 0x2
/* 80060978 0005C7B8 40 81 00 0C */ ble lbl_80060984
/* 8006097C 0005C7BC 38 00 00 FC */ li r0, 0xfc
/* 80060980 0005C7C0 98 1E 00 00 */ stb r0, 0x0(r30)
.global lbl_80060984
lbl_80060984:
/* 80060984 0005C7C4 88 1B 0B 89 */ lbz r0, 0xb89(r27)
/* 80060988 0005C7C8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006098C 0005C7CC 41 82 00 2C */ beq lbl_800609B8
/* 80060990 0005C7D0 88 7B 0B 88 */ lbz r3, 0xb88(r27)
/* 80060994 0005C7D4 88 1E 00 00 */ lbz r0, 0x0(r30)
/* 80060998 0005C7D8 7C 03 00 40 */ cmplw r3, r0
/* 8006099C 0005C7DC 40 82 00 1C */ bne lbl_800609B8
/* 800609A0 0005C7E0 88 1B 0B 09 */ lbz r0, 0xb09(r27)
/* 800609A4 0005C7E4 2C 00 00 00 */ cmpwi r0, 0x0
/* 800609A8 0005C7E8 41 82 00 18 */ beq lbl_800609C0
/* 800609AC 0005C7EC 38 00 00 01 */ li r0, 0x1
/* 800609B0 0005C7F0 98 1B 0B 09 */ stb r0, 0xb09(r27)
/* 800609B4 0005C7F4 48 00 00 0C */ b lbl_800609C0
.global lbl_800609B8
lbl_800609B8:
/* 800609B8 0005C7F8 38 00 00 00 */ li r0, 0x0
/* 800609BC 0005C7FC 98 1B 0B 09 */ stb r0, 0xb09(r27)
.global lbl_800609C0
lbl_800609C0:
/* 800609C0 0005C800 88 7E 00 00 */ lbz r3, 0x0(r30)
/* 800609C4 0005C804 38 00 00 00 */ li r0, 0x0
/* 800609C8 0005C808 98 7B 0B 88 */ stb r3, 0xb88(r27)
/* 800609CC 0005C80C 98 1B 0B 89 */ stb r0, 0xb89(r27)
/* 800609D0 0005C810 88 7E 00 00 */ lbz r3, 0x0(r30)
/* 800609D4 0005C814 38 03 00 FB */ addi r0, r3, 0xfb
/* 800609D8 0005C818 54 00 06 3E */ clrlwi r0, r0, 24
/* 800609DC 0005C81C 28 00 00 02 */ cmplwi r0, 0x2
/* 800609E0 0005C820 40 81 00 4C */ ble lbl_80060A2C
/* 800609E4 0005C824 38 03 00 05 */ addi r0, r3, 0x5
/* 800609E8 0005C828 54 00 06 3E */ clrlwi r0, r0, 24
/* 800609EC 0005C82C 28 00 00 01 */ cmplwi r0, 0x1
/* 800609F0 0005C830 40 81 00 10 */ ble lbl_80060A00
/* 800609F4 0005C834 28 03 00 FA */ cmplwi r3, 0xfa
/* 800609F8 0005C838 41 82 00 34 */ beq lbl_80060A2C
/* 800609FC 0005C83C 48 00 00 A8 */ b lbl_80060AA4
.global lbl_80060A00
lbl_80060A00:
/* 80060A00 0005C840 98 7B 09 05 */ stb r3, 0x905(r27)
/* 80060A04 0005C844 88 1D 00 00 */ lbz r0, 0x0(r29)
/* 80060A08 0005C848 98 1B 09 06 */ stb r0, 0x906(r27)
/* 80060A0C 0005C84C 81 9B 08 E4 */ lwz r12, 0x8e4(r27)
/* 80060A10 0005C850 2C 0C 00 00 */ cmpwi r12, 0x0
/* 80060A14 0005C854 41 82 01 A4 */ beq lbl_80060BB8
/* 80060A18 0005C858 7F 03 C3 78 */ mr r3, r24
/* 80060A1C 0005C85C 88 9B 09 05 */ lbz r4, 0x905(r27)
/* 80060A20 0005C860 7D 89 03 A6 */ mtctr r12
/* 80060A24 0005C864 4E 80 04 21 */ bctrl
/* 80060A28 0005C868 48 00 01 90 */ b lbl_80060BB8
.global lbl_80060A2C
lbl_80060A2C:
/* 80060A2C 0005C86C 7E FF E0 2E */ lwzx r23, r31, r28
/* 80060A30 0005C870 3B 00 00 00 */ li r24, 0x0
/* 80060A34 0005C874 38 00 FF FF */ li r0, -0x1
/* 80060A38 0005C878 38 80 00 00 */ li r4, 0x0
/* 80060A3C 0005C87C 9B 17 09 46 */ stb r24, 0x946(r23)
/* 80060A40 0005C880 38 77 09 4C */ addi r3, r23, 0x94c
/* 80060A44 0005C884 38 A0 00 48 */ li r5, 0x48
/* 80060A48 0005C888 9B 17 09 45 */ stb r24, 0x945(r23)
/* 80060A4C 0005C88C 98 17 09 44 */ stb r0, 0x944(r23)
/* 80060A50 0005C890 98 17 09 47 */ stb r0, 0x947(r23)
/* 80060A54 0005C894 B3 17 09 42 */ sth r24, 0x942(r23)
/* 80060A58 0005C898 9B 17 09 3F */ stb r24, 0x93f(r23)
/* 80060A5C 0005C89C B3 17 09 40 */ sth r24, 0x940(r23)
/* 80060A60 0005C8A0 4B FA 38 F1 */ bl memset
/* 80060A64 0005C8A4 38 77 09 94 */ addi r3, r23, 0x994
/* 80060A68 0005C8A8 38 80 00 00 */ li r4, 0x0
/* 80060A6C 0005C8AC 38 A0 00 48 */ li r5, 0x48
/* 80060A70 0005C8B0 4B FA 38 E1 */ bl memset
/* 80060A74 0005C8B4 38 77 09 DC */ addi r3, r23, 0x9dc
/* 80060A78 0005C8B8 38 80 00 00 */ li r4, 0x0
/* 80060A7C 0005C8BC 38 A0 01 08 */ li r5, 0x108
/* 80060A80 0005C8C0 4B FA 38 D1 */ bl memset
/* 80060A84 0005C8C4 38 00 00 01 */ li r0, 0x1
/* 80060A88 0005C8C8 90 17 09 DC */ stw r0, 0x9dc(r23)
/* 80060A8C 0005C8CC 90 17 09 94 */ stw r0, 0x994(r23)
/* 80060A90 0005C8D0 90 17 09 4C */ stw r0, 0x94c(r23)
/* 80060A94 0005C8D4 9B 17 09 3E */ stb r24, 0x93e(r23)
/* 80060A98 0005C8D8 88 19 00 07 */ lbz r0, 0x7(r25)
/* 80060A9C 0005C8DC 98 1B 0B B1 */ stb r0, 0xbb1(r27)
/* 80060AA0 0005C8E0 48 00 00 E0 */ b lbl_80060B80
.global lbl_80060AA4
lbl_80060AA4:
/* 80060AA4 0005C8E4 4B FF FA 0D */ bl __wpadIsExtEncryptMain
/* 80060AA8 0005C8E8 2C 03 00 00 */ cmpwi r3, 0x0
/* 80060AAC 0005C8EC 41 82 00 18 */ beq lbl_80060AC4
/* 80060AB0 0005C8F0 38 00 00 02 */ li r0, 0x2
/* 80060AB4 0005C8F4 98 1B 0B 85 */ stb r0, 0xb85(r27)
/* 80060AB8 0005C8F8 7F 03 C3 78 */ mr r3, r24
/* 80060ABC 0005C8FC 48 00 34 45 */ bl WPADiCreateKey
/* 80060AC0 0005C900 48 00 00 14 */ b lbl_80060AD4
.global lbl_80060AC4
lbl_80060AC4:
/* 80060AC4 0005C904 38 00 00 03 */ li r0, 0x3
/* 80060AC8 0005C908 98 1B 0B 85 */ stb r0, 0xb85(r27)
/* 80060ACC 0005C90C 7F 03 C3 78 */ mr r3, r24
/* 80060AD0 0005C910 48 00 3A 11 */ bl WPADiCreateKeyFor3rd
.global lbl_80060AD4
lbl_80060AD4:
/* 80060AD4 0005C914 3F 20 04 A4 */ lis r25, 0x4a4
/* 80060AD8 0005C918 3F 00 80 06 */ lis r24, __wpadAbortInitExtension@ha
/* 80060ADC 0005C91C 7F 43 D3 78 */ mr r3, r26
/* 80060AE0 0005C920 38 80 00 AA */ li r4, 0xaa
/* 80060AE4 0005C924 38 B9 00 F0 */ addi r5, r25, 0xf0
/* 80060AE8 0005C928 38 D8 EC 90 */ addi r6, r24, __wpadAbortInitExtension@l
/* 80060AEC 0005C92C 4B FF C5 85 */ bl WPADiSendWriteDataCmd
/* 80060AF0 0005C930 7F 43 D3 78 */ mr r3, r26
/* 80060AF4 0005C934 38 9B 0B 0C */ addi r4, r27, 0xb0c
/* 80060AF8 0005C938 38 D9 00 40 */ addi r6, r25, 0x40
/* 80060AFC 0005C93C 38 F8 EC 90 */ addi r7, r24, -0x1370
/* 80060B00 0005C940 38 A0 00 06 */ li r5, 0x6
/* 80060B04 0005C944 4B FF C7 2D */ bl WPADiSendWriteData
/* 80060B08 0005C948 7F 43 D3 78 */ mr r3, r26
/* 80060B0C 0005C94C 38 9B 0B 12 */ addi r4, r27, 0xb12
/* 80060B10 0005C950 38 D9 00 46 */ addi r6, r25, 0x46
/* 80060B14 0005C954 38 F8 EC 90 */ addi r7, r24, -0x1370
/* 80060B18 0005C958 38 A0 00 06 */ li r5, 0x6
/* 80060B1C 0005C95C 4B FF C7 15 */ bl WPADiSendWriteData
/* 80060B20 0005C960 7F 43 D3 78 */ mr r3, r26
/* 80060B24 0005C964 38 9B 0B 18 */ addi r4, r27, 0xb18
/* 80060B28 0005C968 38 D9 00 4C */ addi r6, r25, 0x4c
/* 80060B2C 0005C96C 38 F8 EC 90 */ addi r7, r24, -0x1370
/* 80060B30 0005C970 38 A0 00 04 */ li r5, 0x4
/* 80060B34 0005C974 4B FF C6 FD */ bl WPADiSendWriteData
/* 80060B38 0005C978 88 1E 00 00 */ lbz r0, 0x0(r30)
/* 80060B3C 0005C97C 28 00 00 03 */ cmplwi r0, 0x3
/* 80060B40 0005C980 40 82 00 40 */ bne lbl_80060B80
/* 80060B44 0005C984 7F 43 D3 78 */ mr r3, r26
/* 80060B48 0005C988 38 B9 00 F1 */ addi r5, r25, 0xf1
/* 80060B4C 0005C98C 38 D8 EC 90 */ addi r6, r24, -0x1370
/* 80060B50 0005C990 38 80 00 AA */ li r4, 0xaa
/* 80060B54 0005C994 4B FF C5 1D */ bl WPADiSendWriteDataCmd
/* 80060B58 0005C998 7F 43 D3 78 */ mr r3, r26
/* 80060B5C 0005C99C 38 B9 00 F1 */ addi r5, r25, 0xf1
/* 80060B60 0005C9A0 38 D8 EC 90 */ addi r6, r24, -0x1370
/* 80060B64 0005C9A4 38 80 00 AA */ li r4, 0xaa
/* 80060B68 0005C9A8 4B FF C5 09 */ bl WPADiSendWriteDataCmd
/* 80060B6C 0005C9AC 7F 43 D3 78 */ mr r3, r26
/* 80060B70 0005C9B0 38 B9 00 F1 */ addi r5, r25, 0xf1
/* 80060B74 0005C9B4 38 D8 EC 90 */ addi r6, r24, -0x1370
/* 80060B78 0005C9B8 38 80 00 AA */ li r4, 0xaa
/* 80060B7C 0005C9BC 4B FF C4 F5 */ bl WPADiSendWriteDataCmd
.global lbl_80060B80
lbl_80060B80:
/* 80060B80 0005C9C0 3C A0 04 A4 */ lis r5, 0x4a4
/* 80060B84 0005C9C4 80 FB 08 E4 */ lwz r7, 0x8e4(r27)
/* 80060B88 0005C9C8 38 C5 00 20 */ addi r6, r5, 0x20
/* 80060B8C 0005C9CC 7F 43 D3 78 */ mr r3, r26
/* 80060B90 0005C9D0 38 9B 0B 2C */ addi r4, r27, 0xb2c
/* 80060B94 0005C9D4 38 A0 00 20 */ li r5, 0x20
/* 80060B98 0005C9D8 4B FF C8 59 */ bl WPADiSendReadData
/* 80060B9C 0005C9DC 48 00 00 1C */ b lbl_80060BB8
.global lbl_80060BA0
lbl_80060BA0:
/* 80060BA0 0005C9E0 38 60 00 FC */ li r3, 0xfc
/* 80060BA4 0005C9E4 98 7B 09 05 */ stb r3, 0x905(r27)
/* 80060BA8 0005C9E8 38 00 00 00 */ li r0, 0x0
/* 80060BAC 0005C9EC 98 1B 09 06 */ stb r0, 0x906(r27)
/* 80060BB0 0005C9F0 98 7B 0B 88 */ stb r3, 0xb88(r27)
/* 80060BB4 0005C9F4 98 1B 0B 89 */ stb r0, 0xb89(r27)
.global lbl_80060BB8
lbl_80060BB8:
/* 80060BB8 0005C9F8 39 61 00 30 */ addi r11, r1, 0x30
/* 80060BBC 0005C9FC 4B FA 67 BD */ bl lbl_80007378
/* 80060BC0 0005CA00 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80060BC4 0005CA04 7C 08 03 A6 */ mtlr r0
/* 80060BC8 0005CA08 38 21 00 30 */ addi r1, r1, 0x30
/* 80060BCC 0005CA0C 4E 80 00 20 */ blr
.global __wpadGetGameInfo
__wpadGetGameInfo:
/* 80060BD0 0005CA10 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80060BD4 0005CA14 7C 08 02 A6 */ mflr r0
/* 80060BD8 0005CA18 3C C0 80 4C */ lis r6, __rvl_p_wpadcb@ha
/* 80060BDC 0005CA1C 2C 04 00 00 */ cmpwi r4, 0x0
/* 80060BE0 0005CA20 90 01 00 14 */ stw r0, 0x14(r1)
/* 80060BE4 0005CA24 54 60 10 3A */ slwi r0, r3, 2
/* 80060BE8 0005CA28 38 C6 1A 50 */ addi r6, r6, __rvl_p_wpadcb@l
/* 80060BEC 0005CA2C 39 20 00 00 */ li r9, 0x0
/* 80060BF0 0005CA30 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80060BF4 0005CA34 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80060BF8 0005CA38 7C BE 2B 78 */ mr r30, r5
/* 80060BFC 0005CA3C 7F E6 00 2E */ lwzx r31, r6, r0
/* 80060C00 0005CA40 80 9F 0B 6C */ lwz r4, 0xb6c(r31)
/* 80060C04 0005CA44 40 82 01 48 */ bne lbl_80060D4C
/* 80060C08 0005CA48 38 00 00 02 */ li r0, 0x2
/* 80060C0C 0005CA4C 39 00 00 00 */ li r8, 0x0
/* 80060C10 0005CA50 7C 09 03 A6 */ mtctr r0
.global lbl_80060C14
lbl_80060C14:
/* 80060C14 0005CA54 7C E4 42 14 */ add r7, r4, r8
/* 80060C18 0005CA58 7C C4 40 AE */ lbzx r6, r4, r8
/* 80060C1C 0005CA5C 88 67 00 01 */ lbz r3, 0x1(r7)
/* 80060C20 0005CA60 39 08 00 07 */ addi r8, r8, 0x7
/* 80060C24 0005CA64 7D 29 32 14 */ add r9, r9, r6
/* 80060C28 0005CA68 88 07 00 02 */ lbz r0, 0x2(r7)
/* 80060C2C 0005CA6C 7D 29 1A 14 */ add r9, r9, r3
/* 80060C30 0005CA70 88 67 00 03 */ lbz r3, 0x3(r7)
/* 80060C34 0005CA74 7D 29 02 14 */ add r9, r9, r0
/* 80060C38 0005CA78 88 07 00 04 */ lbz r0, 0x4(r7)
/* 80060C3C 0005CA7C 7D 29 1A 14 */ add r9, r9, r3
/* 80060C40 0005CA80 88 67 00 05 */ lbz r3, 0x5(r7)
/* 80060C44 0005CA84 7D 29 02 14 */ add r9, r9, r0
/* 80060C48 0005CA88 88 07 00 06 */ lbz r0, 0x6(r7)
/* 80060C4C 0005CA8C 7D 29 1A 14 */ add r9, r9, r3
/* 80060C50 0005CA90 7C E4 42 14 */ add r7, r4, r8
/* 80060C54 0005CA94 7C C4 40 AE */ lbzx r6, r4, r8
/* 80060C58 0005CA98 7D 29 02 14 */ add r9, r9, r0
/* 80060C5C 0005CA9C 88 67 00 01 */ lbz r3, 0x1(r7)
/* 80060C60 0005CAA0 39 08 00 07 */ addi r8, r8, 0x7
/* 80060C64 0005CAA4 7D 29 32 14 */ add r9, r9, r6
/* 80060C68 0005CAA8 88 07 00 02 */ lbz r0, 0x2(r7)
/* 80060C6C 0005CAAC 7D 29 1A 14 */ add r9, r9, r3
/* 80060C70 0005CAB0 88 67 00 03 */ lbz r3, 0x3(r7)
/* 80060C74 0005CAB4 7D 29 02 14 */ add r9, r9, r0
/* 80060C78 0005CAB8 88 07 00 04 */ lbz r0, 0x4(r7)
/* 80060C7C 0005CABC 7D 29 1A 14 */ add r9, r9, r3
/* 80060C80 0005CAC0 88 67 00 05 */ lbz r3, 0x5(r7)
/* 80060C84 0005CAC4 7D 29 02 14 */ add r9, r9, r0
/* 80060C88 0005CAC8 88 07 00 06 */ lbz r0, 0x6(r7)
/* 80060C8C 0005CACC 7D 29 1A 14 */ add r9, r9, r3
/* 80060C90 0005CAD0 7C E4 42 14 */ add r7, r4, r8
/* 80060C94 0005CAD4 7C C4 40 AE */ lbzx r6, r4, r8
/* 80060C98 0005CAD8 7D 29 02 14 */ add r9, r9, r0
/* 80060C9C 0005CADC 88 67 00 01 */ lbz r3, 0x1(r7)
/* 80060CA0 0005CAE0 39 08 00 07 */ addi r8, r8, 0x7
/* 80060CA4 0005CAE4 7D 29 32 14 */ add r9, r9, r6
/* 80060CA8 0005CAE8 88 07 00 02 */ lbz r0, 0x2(r7)
/* 80060CAC 0005CAEC 7D 29 1A 14 */ add r9, r9, r3
/* 80060CB0 0005CAF0 88 67 00 03 */ lbz r3, 0x3(r7)
/* 80060CB4 0005CAF4 7D 29 02 14 */ add r9, r9, r0
/* 80060CB8 0005CAF8 88 07 00 04 */ lbz r0, 0x4(r7)
/* 80060CBC 0005CAFC 7D 29 1A 14 */ add r9, r9, r3
/* 80060CC0 0005CB00 88 67 00 05 */ lbz r3, 0x5(r7)
/* 80060CC4 0005CB04 7D 29 02 14 */ add r9, r9, r0
/* 80060CC8 0005CB08 88 07 00 06 */ lbz r0, 0x6(r7)
/* 80060CCC 0005CB0C 7D 29 1A 14 */ add r9, r9, r3
/* 80060CD0 0005CB10 7D 29 02 14 */ add r9, r9, r0
/* 80060CD4 0005CB14 42 00 FF 40 */ bdnz lbl_80060C14
/* 80060CD8 0005CB18 7C C8 22 14 */ add r6, r8, r4
/* 80060CDC 0005CB1C 7C 04 40 AE */ lbzx r0, r4, r8
/* 80060CE0 0005CB20 88 66 00 01 */ lbz r3, 0x1(r6)
/* 80060CE4 0005CB24 7D 29 02 14 */ add r9, r9, r0
/* 80060CE8 0005CB28 88 06 00 02 */ lbz r0, 0x2(r6)
/* 80060CEC 0005CB2C 7D 29 1A 14 */ add r9, r9, r3
/* 80060CF0 0005CB30 88 66 00 03 */ lbz r3, 0x3(r6)
/* 80060CF4 0005CB34 7D 29 02 14 */ add r9, r9, r0
/* 80060CF8 0005CB38 88 06 00 04 */ lbz r0, 0x4(r6)
/* 80060CFC 0005CB3C 7D 29 1A 14 */ add r9, r9, r3
/* 80060D00 0005CB40 88 64 00 2F */ lbz r3, 0x2f(r4)
/* 80060D04 0005CB44 7D 29 02 14 */ add r9, r9, r0
/* 80060D08 0005CB48 38 09 00 55 */ addi r0, r9, 0x55
/* 80060D0C 0005CB4C 54 00 06 3E */ clrlwi r0, r0, 24
/* 80060D10 0005CB50 7C 03 00 40 */ cmplw r3, r0
/* 80060D14 0005CB54 40 82 00 24 */ bne lbl_80060D38
/* 80060D18 0005CB58 7F E3 FB 78 */ mr r3, r31
/* 80060D1C 0005CB5C 38 A0 00 38 */ li r5, 0x38
/* 80060D20 0005CB60 4B FA 32 E1 */ bl memcpy
/* 80060D24 0005CB64 57 C0 15 BA */ rlwinm r0, r30, 2, 22, 29
/* 80060D28 0005CB68 38 80 00 00 */ li r4, 0x0
/* 80060D2C 0005CB6C 7C 7F 02 14 */ add r3, r31, r0
/* 80060D30 0005CB70 90 83 00 38 */ stw r4, 0x38(r3)
/* 80060D34 0005CB74 48 00 00 28 */ b lbl_80060D5C
.global lbl_80060D38
lbl_80060D38:
/* 80060D38 0005CB78 54 A0 15 BA */ rlwinm r0, r5, 2, 22, 29
/* 80060D3C 0005CB7C 38 80 FF FC */ li r4, -0x4
/* 80060D40 0005CB80 7C 7F 02 14 */ add r3, r31, r0
/* 80060D44 0005CB84 90 83 00 38 */ stw r4, 0x38(r3)
/* 80060D48 0005CB88 48 00 00 14 */ b lbl_80060D5C
.global lbl_80060D4C
lbl_80060D4C:
/* 80060D4C 0005CB8C 54 A0 15 BA */ rlwinm r0, r5, 2, 22, 29
/* 80060D50 0005CB90 38 80 FF FC */ li r4, -0x4
/* 80060D54 0005CB94 7C 7F 02 14 */ add r3, r31, r0
/* 80060D58 0005CB98 90 83 00 38 */ stw r4, 0x38(r3)
.global lbl_80060D5C
lbl_80060D5C:
/* 80060D5C 0005CB9C 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80060D60 0005CBA0 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80060D64 0005CBA4 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80060D68 0005CBA8 7C 08 03 A6 */ mtlr r0
/* 80060D6C 0005CBAC 38 21 00 10 */ addi r1, r1, 0x10
/* 80060D70 0005CBB0 4E 80 00 20 */ blr
/* 80060D74 0005CBB4 00 00 00 00 */ .4byte 0x00000000
/* 80060D78 0005CBB8 00 00 00 00 */ .4byte 0x00000000
/* 80060D7C 0005CBBC 00 00 00 00 */ .4byte 0x00000000
.global __wpadCheckDataFormat
__wpadCheckDataFormat:
/* 80060D80 0005CBC0 3C C0 80 4C */ lis r6, __rvl_p_wpadcb@ha
/* 80060D84 0005CBC4 28 04 00 30 */ cmplwi r4, 0x30
/* 80060D88 0005CBC8 54 60 15 BA */ rlwinm r0, r3, 2, 22, 29
/* 80060D8C 0005CBCC 38 C6 1A 50 */ addi r6, r6, __rvl_p_wpadcb@l
/* 80060D90 0005CBD0 7C C6 00 2E */ lwzx r6, r6, r0
/* 80060D94 0005CBD4 40 82 00 10 */ bne lbl_80060DA4
/* 80060D98 0005CBD8 80 06 08 FC */ lwz r0, 0x8fc(r6)
/* 80060D9C 0005CBDC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80060DA0 0005CBE0 41 82 00 F0 */ beq lbl_80060E90
.global lbl_80060DA4
lbl_80060DA4:
/* 80060DA4 0005CBE4 28 04 00 31 */ cmplwi r4, 0x31
/* 80060DA8 0005CBE8 40 82 00 10 */ bne lbl_80060DB8
/* 80060DAC 0005CBEC 80 06 08 FC */ lwz r0, 0x8fc(r6)
/* 80060DB0 0005CBF0 28 00 00 01 */ cmplwi r0, 0x1
/* 80060DB4 0005CBF4 41 82 00 DC */ beq lbl_80060E90
.global lbl_80060DB8
lbl_80060DB8:
/* 80060DB8 0005CBF8 28 04 00 32 */ cmplwi r4, 0x32
/* 80060DBC 0005CBFC 40 82 00 20 */ bne lbl_80060DDC
/* 80060DC0 0005CC00 80 06 08 FC */ lwz r0, 0x8fc(r6)
/* 80060DC4 0005CC04 28 00 00 03 */ cmplwi r0, 0x3
/* 80060DC8 0005CC08 41 82 00 C8 */ beq lbl_80060E90
/* 80060DCC 0005CC0C 28 00 00 06 */ cmplwi r0, 0x6
/* 80060DD0 0005CC10 41 82 00 C0 */ beq lbl_80060E90
/* 80060DD4 0005CC14 28 00 00 0A */ cmplwi r0, 0xa
/* 80060DD8 0005CC18 41 82 00 B8 */ beq lbl_80060E90
.global lbl_80060DDC
lbl_80060DDC:
/* 80060DDC 0005CC1C 28 04 00 33 */ cmplwi r4, 0x33
/* 80060DE0 0005CC20 40 82 00 10 */ bne lbl_80060DF0
/* 80060DE4 0005CC24 80 06 08 FC */ lwz r0, 0x8fc(r6)
/* 80060DE8 0005CC28 28 00 00 02 */ cmplwi r0, 0x2
/* 80060DEC 0005CC2C 41 82 00 A4 */ beq lbl_80060E90
.global lbl_80060DF0
lbl_80060DF0:
/* 80060DF0 0005CC30 28 04 00 34 */ cmplwi r4, 0x34
/* 80060DF4 0005CC34 40 82 00 10 */ bne lbl_80060E04
/* 80060DF8 0005CC38 80 06 08 FC */ lwz r0, 0x8fc(r6)
/* 80060DFC 0005CC3C 28 00 00 0C */ cmplwi r0, 0xc
/* 80060E00 0005CC40 41 82 00 90 */ beq lbl_80060E90
.global lbl_80060E04
lbl_80060E04:
/* 80060E04 0005CC44 28 04 00 35 */ cmplwi r4, 0x35
/* 80060E08 0005CC48 40 82 00 30 */ bne lbl_80060E38
/* 80060E0C 0005CC4C 80 06 08 FC */ lwz r0, 0x8fc(r6)
/* 80060E10 0005CC50 28 00 00 04 */ cmplwi r0, 0x4
/* 80060E14 0005CC54 41 82 00 7C */ beq lbl_80060E90
/* 80060E18 0005CC58 28 00 00 07 */ cmplwi r0, 0x7
/* 80060E1C 0005CC5C 41 82 00 74 */ beq lbl_80060E90
/* 80060E20 0005CC60 28 00 00 0D */ cmplwi r0, 0xd
/* 80060E24 0005CC64 41 82 00 6C */ beq lbl_80060E90
/* 80060E28 0005CC68 28 00 00 14 */ cmplwi r0, 0x14
/* 80060E2C 0005CC6C 41 82 00 64 */ beq lbl_80060E90
/* 80060E30 0005CC70 28 00 00 13 */ cmplwi r0, 0x13
/* 80060E34 0005CC74 41 82 00 5C */ beq lbl_80060E90
.global lbl_80060E38
lbl_80060E38:
/* 80060E38 0005CC78 28 04 00 37 */ cmplwi r4, 0x37
/* 80060E3C 0005CC7C 40 82 00 2C */ bne lbl_80060E68
/* 80060E40 0005CC80 80 66 08 FC */ lwz r3, 0x8fc(r6)
/* 80060E44 0005CC84 38 03 FF F1 */ addi r0, r3, -0xf
/* 80060E48 0005CC88 28 00 00 03 */ cmplwi r0, 0x3
/* 80060E4C 0005CC8C 40 81 00 44 */ ble lbl_80060E90
/* 80060E50 0005CC90 28 03 00 05 */ cmplwi r3, 0x5
/* 80060E54 0005CC94 41 82 00 3C */ beq lbl_80060E90
/* 80060E58 0005CC98 28 03 00 08 */ cmplwi r3, 0x8
/* 80060E5C 0005CC9C 41 82 00 34 */ beq lbl_80060E90
/* 80060E60 0005CCA0 28 03 00 0B */ cmplwi r3, 0xb
/* 80060E64 0005CCA4 41 82 00 2C */ beq lbl_80060E90
.global lbl_80060E68
lbl_80060E68:
/* 80060E68 0005CCA8 28 04 00 3E */ cmplwi r4, 0x3e
/* 80060E6C 0005CCAC 40 82 00 10 */ bne lbl_80060E7C
/* 80060E70 0005CCB0 80 06 08 FC */ lwz r0, 0x8fc(r6)
/* 80060E74 0005CCB4 28 00 00 09 */ cmplwi r0, 0x9
/* 80060E78 0005CCB8 41 82 00 18 */ beq lbl_80060E90
.global lbl_80060E7C
lbl_80060E7C:
/* 80060E7C 0005CCBC 28 04 00 3F */ cmplwi r4, 0x3f
/* 80060E80 0005CCC0 40 82 00 1C */ bne lbl_80060E9C
/* 80060E84 0005CCC4 80 06 08 FC */ lwz r0, 0x8fc(r6)
/* 80060E88 0005CCC8 28 00 00 09 */ cmplwi r0, 0x9
/* 80060E8C 0005CCCC 40 82 00 10 */ bne lbl_80060E9C
.global lbl_80060E90
lbl_80060E90:
/* 80060E90 0005CCD0 38 00 00 00 */ li r0, 0x0
/* 80060E94 0005CCD4 98 05 00 29 */ stb r0, 0x29(r5)
/* 80060E98 0005CCD8 4E 80 00 20 */ blr
.global lbl_80060E9C
lbl_80060E9C:
/* 80060E9C 0005CCDC 38 00 FF FC */ li r0, -0x4
/* 80060EA0 0005CCE0 98 05 00 29 */ stb r0, 0x29(r5)
/* 80060EA4 0005CCE4 4E 80 00 20 */ blr
/* 80060EA8 0005CCE8 00 00 00 00 */ .4byte 0x00000000
/* 80060EAC 0005CCEC 00 00 00 00 */ .4byte 0x00000000
.global WPADiHIDParser
WPADiHIDParser:
/* 80060EB0 0005CCF0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80060EB4 0005CCF4 7C 08 02 A6 */ mflr r0
/* 80060EB8 0005CCF8 90 01 00 34 */ stw r0, 0x34(r1)
/* 80060EBC 0005CCFC 39 61 00 30 */ addi r11, r1, 0x30
/* 80060EC0 0005CD00 4B FA 64 71 */ bl lbl_80007330
/* 80060EC4 0005CD04 88 A4 00 00 */ lbz r5, 0x0(r4)
/* 80060EC8 0005CD08 3F E0 80 4C */ lis r31, __rvl_p_wpadcb@ha
/* 80060ECC 0005CD0C 54 7E 15 BA */ rlwinm r30, r3, 2, 22, 29
/* 80060ED0 0005CD10 7C 79 1B 78 */ mr r25, r3
/* 80060ED4 0005CD14 38 05 00 E0 */ addi r0, r5, 0xe0
/* 80060ED8 0005CD18 3B FF 1A 50 */ addi r31, r31, __rvl_p_wpadcb@l
/* 80060EDC 0005CD1C 54 00 06 3E */ clrlwi r0, r0, 24
/* 80060EE0 0005CD20 7F BF F0 2E */ lwzx r29, r31, r30
/* 80060EE4 0005CD24 28 00 00 1F */ cmplwi r0, 0x1f
/* 80060EE8 0005CD28 7C 9A 23 78 */ mr r26, r4
/* 80060EEC 0005CD2C 3B 60 00 00 */ li r27, 0x0
/* 80060EF0 0005CD30 41 81 00 E0 */ bgt lbl_80060FD0
/* 80060EF4 0005CD34 4B FC 09 2D */ bl OSDisableInterrupts
/* 80060EF8 0005CD38 7C 9F F0 2E */ lwzx r4, r31, r30
/* 80060EFC 0005CD3C 7C 7C 1B 78 */ mr r28, r3
/* 80060F00 0005CD40 88 BA 00 00 */ lbz r5, 0x0(r26)
/* 80060F04 0005CD44 88 04 09 0C */ lbz r0, 0x90c(r4)
/* 80060F08 0005CD48 28 05 00 3E */ cmplwi r5, 0x3e
/* 80060F0C 0005CD4C 1C 00 00 60 */ mulli r0, r0, 0x60
/* 80060F10 0005CD50 7C 64 02 14 */ add r3, r4, r0
/* 80060F14 0005CD54 3B 03 00 A0 */ addi r24, r3, 0xa0
/* 80060F18 0005CD58 41 82 00 1C */ beq lbl_80060F34
/* 80060F1C 0005CD5C 28 05 00 3F */ cmplwi r5, 0x3f
/* 80060F20 0005CD60 41 82 00 14 */ beq lbl_80060F34
/* 80060F24 0005CD64 7F 03 C3 78 */ mr r3, r24
/* 80060F28 0005CD68 38 80 00 00 */ li r4, 0x0
/* 80060F2C 0005CD6C 38 A0 00 60 */ li r5, 0x60
/* 80060F30 0005CD70 4B FA 34 21 */ bl memset
.global lbl_80060F34
lbl_80060F34:
/* 80060F34 0005CD74 88 9A 00 00 */ lbz r4, 0x0(r26)
/* 80060F38 0005CD78 7F 23 CB 78 */ mr r3, r25
/* 80060F3C 0005CD7C 7F 05 C3 78 */ mr r5, r24
/* 80060F40 0005CD80 4B FF FE 41 */ bl __wpadCheckDataFormat
/* 80060F44 0005CD84 88 9A 00 00 */ lbz r4, 0x0(r26)
/* 80060F48 0005CD88 3C C0 80 44 */ lis r6, __a1_input_reports_array@ha
/* 80060F4C 0005CD8C 38 C6 88 18 */ addi r6, r6, __a1_input_reports_array@l
/* 80060F50 0005CD90 7F 23 CB 78 */ mr r3, r25
/* 80060F54 0005CD94 38 04 FF E0 */ addi r0, r4, -0x20
/* 80060F58 0005CD98 7F 44 D3 78 */ mr r4, r26
/* 80060F5C 0005CD9C 54 00 10 3A */ slwi r0, r0, 2
/* 80060F60 0005CDA0 7F 05 C3 78 */ mr r5, r24
/* 80060F64 0005CDA4 7D 86 00 2E */ lwzx r12, r6, r0
/* 80060F68 0005CDA8 7D 89 03 A6 */ mtctr r12
/* 80060F6C 0005CDAC 4E 80 04 21 */ bctrl
/* 80060F70 0005CDB0 80 1D 09 20 */ lwz r0, 0x920(r29)
/* 80060F74 0005CDB4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80060F78 0005CDB8 40 82 00 0C */ bne lbl_80060F84
/* 80060F7C 0005CDBC 38 00 FF FC */ li r0, -0x4
/* 80060F80 0005CDC0 98 18 00 29 */ stb r0, 0x29(r24)
.global lbl_80060F84
lbl_80060F84:
/* 80060F84 0005CDC4 88 1D 09 05 */ lbz r0, 0x905(r29)
/* 80060F88 0005CDC8 98 18 00 28 */ stb r0, 0x28(r24)
/* 80060F8C 0005CDCC 88 1A 00 00 */ lbz r0, 0x0(r26)
/* 80060F90 0005CDD0 28 00 00 3E */ cmplwi r0, 0x3e
/* 80060F94 0005CDD4 41 82 00 20 */ beq lbl_80060FB4
/* 80060F98 0005CDD8 28 00 00 3F */ cmplwi r0, 0x3f
/* 80060F9C 0005CDDC 41 82 00 18 */ beq lbl_80060FB4
/* 80060FA0 0005CDE0 7C 7F F0 2E */ lwzx r3, r31, r30
/* 80060FA4 0005CDE4 88 03 09 0C */ lbz r0, 0x90c(r3)
/* 80060FA8 0005CDE8 7C 00 00 34 */ cntlzw r0, r0
/* 80060FAC 0005CDEC 54 00 DE 3E */ extrwi r0, r0, 8, 19
/* 80060FB0 0005CDF0 98 03 09 0C */ stb r0, 0x90c(r3)
.global lbl_80060FB4
lbl_80060FB4:
/* 80060FB4 0005CDF4 7F 83 E3 78 */ mr r3, r28
/* 80060FB8 0005CDF8 4B FC 08 A9 */ bl OSRestoreInterrupts
/* 80060FBC 0005CDFC 7F 23 CB 78 */ mr r3, r25
/* 80060FC0 0005CE00 4B FF 77 81 */ bl WPADiExcludeButton
/* 80060FC4 0005CE04 7F 23 CB 78 */ mr r3, r25
/* 80060FC8 0005CE08 4B FF 78 99 */ bl WPADiCopyOut
/* 80060FCC 0005CE0C 48 00 00 08 */ b lbl_80060FD4
.global lbl_80060FD0
lbl_80060FD0:
/* 80060FD0 0005CE10 3B 60 FF FF */ li r27, -0x1
.global lbl_80060FD4
lbl_80060FD4:
/* 80060FD4 0005CE14 39 61 00 30 */ addi r11, r1, 0x30
/* 80060FD8 0005CE18 7F 63 DB 78 */ mr r3, r27
/* 80060FDC 0005CE1C 4B FA 63 A1 */ bl lbl_8000737C
/* 80060FE0 0005CE20 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80060FE4 0005CE24 7C 08 03 A6 */ mtlr r0
/* 80060FE8 0005CE28 38 21 00 30 */ addi r1, r1, 0x30
/* 80060FEC 0005CE2C 4E 80 00 20 */ blr
.global __a1_20_status_report
__a1_20_status_report:
/* 80060FF0 0005CE30 94 21 FF C0 */ stwu r1, -0x40(r1)
/* 80060FF4 0005CE34 7C 08 02 A6 */ mflr r0
/* 80060FF8 0005CE38 90 01 00 44 */ stw r0, 0x44(r1)
/* 80060FFC 0005CE3C 39 61 00 40 */ addi r11, r1, 0x40
/* 80061000 0005CE40 4B FA 63 1D */ bl lbl_8000731C
/* 80061004 0005CE44 3F A0 80 4C */ lis r29, __rvl_p_wpadcb@ha
/* 80061008 0005CE48 54 7C 15 BA */ rlwinm r28, r3, 2, 22, 29
/* 8006100C 0005CE4C 3B BD 1A 50 */ addi r29, r29, __rvl_p_wpadcb@l
/* 80061010 0005CE50 7C 76 1B 78 */ mr r22, r3
/* 80061014 0005CE54 7F 7D E0 2E */ lwzx r27, r29, r28
/* 80061018 0005CE58 7C 97 23 78 */ mr r23, r4
/* 8006101C 0005CE5C 7C B8 2B 78 */ mr r24, r5
/* 80061020 0005CE60 83 DB 08 40 */ lwz r30, 0x840(r27)
/* 80061024 0005CE64 4B FC 07 FD */ bl OSDisableInterrupts
/* 80061028 0005CE68 80 1B 09 20 */ lwz r0, 0x920(r27)
/* 8006102C 0005CE6C 7C 7A 1B 78 */ mr r26, r3
/* 80061030 0005CE70 2C 00 00 00 */ cmpwi r0, 0x0
/* 80061034 0005CE74 40 82 00 0C */ bne lbl_80061040
/* 80061038 0005CE78 4B FC 08 29 */ bl OSRestoreInterrupts
/* 8006103C 0005CE7C 48 00 03 DC */ b lbl_80061418
.global lbl_80061040
lbl_80061040:
/* 80061040 0005CE80 88 17 00 03 */ lbz r0, 0x3(r23)
/* 80061044 0005CE84 38 60 00 00 */ li r3, 0x0
/* 80061048 0005CE88 54 00 07 BC */ rlwinm r0, r0, 0, 30, 30
/* 8006104C 0005CE8C 7C 00 0E 70 */ srawi r0, r0, 1
/* 80061050 0005CE90 90 1B 08 40 */ stw r0, 0x840(r27)
/* 80061054 0005CE94 88 17 00 03 */ lbz r0, 0x3(r23)
/* 80061058 0005CE98 54 00 07 FE */ clrlwi r0, r0, 31
/* 8006105C 0005CE9C 90 1B 08 44 */ stw r0, 0x844(r27)
/* 80061060 0005CEA0 88 17 00 03 */ lbz r0, 0x3(r23)
/* 80061064 0005CEA4 54 00 E7 3E */ extrwi r0, r0, 4, 24
/* 80061068 0005CEA8 98 1B 08 4D */ stb r0, 0x84d(r27)
/* 8006106C 0005CEAC 98 7B 08 4E */ stb r3, 0x84e(r27)
/* 80061070 0005CEB0 88 17 00 05 */ lbz r0, 0x5(r23)
/* 80061074 0005CEB4 54 00 06 36 */ rlwinm r0, r0, 0, 24, 27
/* 80061078 0005CEB8 98 1B 08 4F */ stb r0, 0x84f(r27)
/* 8006107C 0005CEBC 88 17 00 01 */ lbz r0, 0x1(r23)
/* 80061080 0005CEC0 54 00 CF FE */ extrwi r0, r0, 1, 24
/* 80061084 0005CEC4 90 1B 08 48 */ stw r0, 0x848(r27)
/* 80061088 0005CEC8 88 17 00 03 */ lbz r0, 0x3(r23)
/* 8006108C 0005CECC 54 00 EF FE */ extrwi r0, r0, 1, 28
/* 80061090 0005CED0 90 1B 08 38 */ stw r0, 0x838(r27)
/* 80061094 0005CED4 88 17 00 03 */ lbz r0, 0x3(r23)
/* 80061098 0005CED8 54 00 F7 FE */ extrwi r0, r0, 1, 29
/* 8006109C 0005CEDC 90 1B 08 3C */ stw r0, 0x83c(r27)
/* 800610A0 0005CEE0 88 1B 09 05 */ lbz r0, 0x905(r27)
/* 800610A4 0005CEE4 28 00 00 03 */ cmplwi r0, 0x3
/* 800610A8 0005CEE8 40 82 00 10 */ bne lbl_800610B8
/* 800610AC 0005CEEC 88 1B 0B 87 */ lbz r0, 0xb87(r27)
/* 800610B0 0005CEF0 98 1B 08 4C */ stb r0, 0x84c(r27)
/* 800610B4 0005CEF4 48 00 00 5C */ b lbl_80061110
.global lbl_800610B8
lbl_800610B8:
/* 800610B8 0005CEF8 88 17 00 06 */ lbz r0, 0x6(r23)
/* 800610BC 0005CEFC 28 00 00 55 */ cmplwi r0, 0x55
/* 800610C0 0005CF00 41 80 00 10 */ blt lbl_800610D0
/* 800610C4 0005CF04 38 00 00 04 */ li r0, 0x4
/* 800610C8 0005CF08 98 1B 08 4C */ stb r0, 0x84c(r27)
/* 800610CC 0005CF0C 48 00 00 44 */ b lbl_80061110
.global lbl_800610D0
lbl_800610D0:
/* 800610D0 0005CF10 28 00 00 44 */ cmplwi r0, 0x44
/* 800610D4 0005CF14 41 80 00 10 */ blt lbl_800610E4
/* 800610D8 0005CF18 38 00 00 03 */ li r0, 0x3
/* 800610DC 0005CF1C 98 1B 08 4C */ stb r0, 0x84c(r27)
/* 800610E0 0005CF20 48 00 00 30 */ b lbl_80061110
.global lbl_800610E4
lbl_800610E4:
/* 800610E4 0005CF24 28 00 00 33 */ cmplwi r0, 0x33
/* 800610E8 0005CF28 41 80 00 10 */ blt lbl_800610F8
/* 800610EC 0005CF2C 38 00 00 02 */ li r0, 0x2
/* 800610F0 0005CF30 98 1B 08 4C */ stb r0, 0x84c(r27)
/* 800610F4 0005CF34 48 00 00 1C */ b lbl_80061110
.global lbl_800610F8
lbl_800610F8:
/* 800610F8 0005CF38 28 00 00 03 */ cmplwi r0, 0x3
/* 800610FC 0005CF3C 41 80 00 10 */ blt lbl_8006110C
/* 80061100 0005CF40 38 00 00 01 */ li r0, 0x1
/* 80061104 0005CF44 98 1B 08 4C */ stb r0, 0x84c(r27)
/* 80061108 0005CF48 48 00 00 08 */ b lbl_80061110
.global lbl_8006110C
lbl_8006110C:
/* 8006110C 0005CF4C 98 7B 08 4C */ stb r3, 0x84c(r27)
.global lbl_80061110
lbl_80061110:
/* 80061110 0005CF50 80 1B 08 40 */ lwz r0, 0x840(r27)
/* 80061114 0005CF54 2C 00 00 00 */ cmpwi r0, 0x0
/* 80061118 0005CF58 41 82 01 74 */ beq lbl_8006128C
/* 8006111C 0005CF5C 2C 1E 00 00 */ cmpwi r30, 0x0
/* 80061120 0005CF60 40 82 02 38 */ bne lbl_80061358
/* 80061124 0005CF64 3F E0 80 4C */ lis r31, __rvl_p_wpadcb@ha
/* 80061128 0005CF68 38 6D E9 E8 */ addi r3, r13, _wpadExtInitRetryCnt@sda21
/* 8006112C 0005CF6C 38 00 00 00 */ li r0, 0x0
/* 80061130 0005CF70 7C 03 B1 AE */ stbx r0, r3, r22
/* 80061134 0005CF74 56 DE 15 BA */ rlwinm r30, r22, 2, 22, 29
/* 80061138 0005CF78 3B FF 1A 50 */ addi r31, r31, __rvl_p_wpadcb@l
/* 8006113C 0005CF7C 7E 7F F0 2E */ lwzx r19, r31, r30
/* 80061140 0005CF80 83 3B 08 E4 */ lwz r25, 0x8e4(r27)
/* 80061144 0005CF84 38 73 05 EC */ addi r3, r19, 0x5ec
/* 80061148 0005CF88 4B FF C4 E9 */ bl WPADiClearQueue
/* 8006114C 0005CF8C 3E 80 80 06 */ lis r20, __wpadAbortInitExtension@ha
/* 80061150 0005CF90 80 93 08 FC */ lwz r4, 0x8fc(r19)
/* 80061154 0005CF94 88 B3 0B 86 */ lbz r5, 0xb86(r19)
/* 80061158 0005CF98 38 73 05 EC */ addi r3, r19, 0x5ec
/* 8006115C 0005CF9C 38 D4 EC 90 */ addi r6, r20, __wpadAbortInitExtension@l
/* 80061160 0005CFA0 4B FF BC 71 */ bl WPADiSendSetReportType
/* 80061164 0005CFA4 38 00 00 01 */ li r0, 0x1
/* 80061168 0005CFA8 98 13 0B 85 */ stb r0, 0xb85(r19)
/* 8006116C 0005CFAC 88 13 09 3A */ lbz r0, 0x93a(r19)
/* 80061170 0005CFB0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80061174 0005CFB4 41 82 00 38 */ beq lbl_800611AC
/* 80061178 0005CFB8 3E A0 04 A4 */ lis r21, 0x4a4
/* 8006117C 0005CFBC 38 73 05 EC */ addi r3, r19, 0x5ec
/* 80061180 0005CFC0 38 B5 00 FB */ addi r5, r21, 0xfb
/* 80061184 0005CFC4 38 D4 EC 90 */ addi r6, r20, -0x1370
/* 80061188 0005CFC8 38 80 00 00 */ li r4, 0x0
/* 8006118C 0005CFCC 4B FF BE E5 */ bl WPADiSendWriteDataCmd
/* 80061190 0005CFD0 38 73 05 EC */ addi r3, r19, 0x5ec
/* 80061194 0005CFD4 38 93 0B 2C */ addi r4, r19, 0xb2c
/* 80061198 0005CFD8 38 D5 00 F0 */ addi r6, r21, 0xf0
/* 8006119C 0005CFDC 38 F4 EC 90 */ addi r7, r20, -0x1370
/* 800611A0 0005CFE0 38 A0 00 10 */ li r5, 0x10
/* 800611A4 0005CFE4 4B FF C2 4D */ bl WPADiSendReadData
/* 800611A8 0005CFE8 48 00 00 48 */ b lbl_800611F0
.global lbl_800611AC
lbl_800611AC:
/* 800611AC 0005CFEC 3E A0 04 A4 */ lis r21, 0x4a4
/* 800611B0 0005CFF0 38 73 05 EC */ addi r3, r19, 0x5ec
/* 800611B4 0005CFF4 38 B5 00 F0 */ addi r5, r21, 0xf0
/* 800611B8 0005CFF8 38 D4 EC 90 */ addi r6, r20, -0x1370
/* 800611BC 0005CFFC 38 80 00 55 */ li r4, 0x55
/* 800611C0 0005D000 4B FF BE B1 */ bl WPADiSendWriteDataCmd
/* 800611C4 0005D004 38 73 05 EC */ addi r3, r19, 0x5ec
/* 800611C8 0005D008 38 B5 00 FB */ addi r5, r21, 0xfb
/* 800611CC 0005D00C 38 D4 EC 90 */ addi r6, r20, -0x1370
/* 800611D0 0005D010 38 80 00 00 */ li r4, 0x0
/* 800611D4 0005D014 4B FF BE 9D */ bl WPADiSendWriteDataCmd
/* 800611D8 0005D018 38 73 05 EC */ addi r3, r19, 0x5ec
/* 800611DC 0005D01C 38 93 0B 36 */ addi r4, r19, 0xb36
/* 800611E0 0005D020 38 D5 00 FA */ addi r6, r21, 0xfa
/* 800611E4 0005D024 38 F4 EC 90 */ addi r7, r20, -0x1370
/* 800611E8 0005D028 38 A0 00 06 */ li r5, 0x6
/* 800611EC 0005D02C 4B FF C2 05 */ bl WPADiSendReadData
.global lbl_800611F0
lbl_800611F0:
/* 800611F0 0005D030 3A A0 00 00 */ li r21, 0x0
/* 800611F4 0005D034 9A B3 09 3A */ stb r21, 0x93a(r19)
/* 800611F8 0005D038 38 60 00 FF */ li r3, 0xff
/* 800611FC 0005D03C 38 00 FF FF */ li r0, -0x1
/* 80061200 0005D040 98 7B 09 05 */ stb r3, 0x905(r27)
/* 80061204 0005D044 38 80 00 00 */ li r4, 0x0
/* 80061208 0005D048 38 A0 00 48 */ li r5, 0x48
/* 8006120C 0005D04C 9A BB 09 06 */ stb r21, 0x906(r27)
/* 80061210 0005D050 7E 7F F0 2E */ lwzx r19, r31, r30
/* 80061214 0005D054 9A B3 09 46 */ stb r21, 0x946(r19)
/* 80061218 0005D058 38 73 09 4C */ addi r3, r19, 0x94c
/* 8006121C 0005D05C 9A B3 09 45 */ stb r21, 0x945(r19)
/* 80061220 0005D060 98 13 09 44 */ stb r0, 0x944(r19)
/* 80061224 0005D064 98 13 09 47 */ stb r0, 0x947(r19)
/* 80061228 0005D068 B2 B3 09 42 */ sth r21, 0x942(r19)
/* 8006122C 0005D06C 9A B3 09 3F */ stb r21, 0x93f(r19)
/* 80061230 0005D070 B2 B3 09 40 */ sth r21, 0x940(r19)
/* 80061234 0005D074 4B FA 31 1D */ bl memset
/* 80061238 0005D078 38 73 09 94 */ addi r3, r19, 0x994
/* 8006123C 0005D07C 38 80 00 00 */ li r4, 0x0
/* 80061240 0005D080 38 A0 00 48 */ li r5, 0x48
/* 80061244 0005D084 4B FA 31 0D */ bl memset
/* 80061248 0005D088 38 73 09 DC */ addi r3, r19, 0x9dc
/* 8006124C 0005D08C 38 80 00 00 */ li r4, 0x0
/* 80061250 0005D090 38 A0 01 08 */ li r5, 0x108
/* 80061254 0005D094 4B FA 30 FD */ bl memset
/* 80061258 0005D098 38 00 00 01 */ li r0, 0x1
/* 8006125C 0005D09C 90 13 09 DC */ stw r0, 0x9dc(r19)
/* 80061260 0005D0A0 2C 19 00 00 */ cmpwi r25, 0x0
/* 80061264 0005D0A4 90 13 09 94 */ stw r0, 0x994(r19)
/* 80061268 0005D0A8 90 13 09 4C */ stw r0, 0x94c(r19)
/* 8006126C 0005D0AC 9A B3 09 3E */ stb r21, 0x93e(r19)
/* 80061270 0005D0B0 41 82 00 E8 */ beq lbl_80061358
/* 80061274 0005D0B4 7F 2C CB 78 */ mr r12, r25
/* 80061278 0005D0B8 7E C3 B3 78 */ mr r3, r22
/* 8006127C 0005D0BC 38 80 00 FF */ li r4, 0xff
/* 80061280 0005D0C0 7D 89 03 A6 */ mtctr r12
/* 80061284 0005D0C4 4E 80 04 21 */ bctrl
/* 80061288 0005D0C8 48 00 00 D0 */ b lbl_80061358
.global lbl_8006128C
lbl_8006128C:
/* 8006128C 0005D0CC 3B E0 00 00 */ li r31, 0x0
/* 80061290 0005D0D0 9B FB 09 05 */ stb r31, 0x905(r27)
/* 80061294 0005D0D4 38 7B 05 EC */ addi r3, r27, 0x5ec
/* 80061298 0005D0D8 9B FB 09 06 */ stb r31, 0x906(r27)
/* 8006129C 0005D0DC 4B FF C3 95 */ bl WPADiClearQueue
/* 800612A0 0005D0E0 80 9B 08 FC */ lwz r4, 0x8fc(r27)
/* 800612A4 0005D0E4 38 7B 05 EC */ addi r3, r27, 0x5ec
/* 800612A8 0005D0E8 88 BB 0B 86 */ lbz r5, 0xb86(r27)
/* 800612AC 0005D0EC 38 C0 00 00 */ li r6, 0x0
/* 800612B0 0005D0F0 4B FF BB 21 */ bl WPADiSendSetReportType
/* 800612B4 0005D0F4 2C 1E 00 00 */ cmpwi r30, 0x0
/* 800612B8 0005D0F8 41 82 00 A0 */ beq lbl_80061358
/* 800612BC 0005D0FC 3B 20 00 01 */ li r25, 0x1
/* 800612C0 0005D100 9B 3B 0B 89 */ stb r25, 0xb89(r27)
/* 800612C4 0005D104 38 00 01 2C */ li r0, 0x12c
/* 800612C8 0005D108 3C 60 80 4C */ lis r3, __rvl_p_wpadcb@ha
/* 800612CC 0005D10C B0 1B 0B 8A */ sth r0, 0xb8a(r27)
/* 800612D0 0005D110 56 C4 15 BA */ rlwinm r4, r22, 2, 22, 29
/* 800612D4 0005D114 38 63 1A 50 */ addi r3, r3, __rvl_p_wpadcb@l
/* 800612D8 0005D118 38 00 FF FF */ li r0, -0x1
/* 800612DC 0005D11C 7E 63 20 2E */ lwzx r19, r3, r4
/* 800612E0 0005D120 38 80 00 00 */ li r4, 0x0
/* 800612E4 0005D124 38 A0 00 48 */ li r5, 0x48
/* 800612E8 0005D128 9B F3 09 46 */ stb r31, 0x946(r19)
/* 800612EC 0005D12C 38 73 09 4C */ addi r3, r19, 0x94c
/* 800612F0 0005D130 9B F3 09 45 */ stb r31, 0x945(r19)
/* 800612F4 0005D134 98 13 09 44 */ stb r0, 0x944(r19)
/* 800612F8 0005D138 98 13 09 47 */ stb r0, 0x947(r19)
/* 800612FC 0005D13C B3 F3 09 42 */ sth r31, 0x942(r19)
/* 80061300 0005D140 9B F3 09 3F */ stb r31, 0x93f(r19)
/* 80061304 0005D144 B3 F3 09 40 */ sth r31, 0x940(r19)
/* 80061308 0005D148 4B FA 30 49 */ bl memset
/* 8006130C 0005D14C 38 73 09 94 */ addi r3, r19, 0x994
/* 80061310 0005D150 38 80 00 00 */ li r4, 0x0
/* 80061314 0005D154 38 A0 00 48 */ li r5, 0x48
/* 80061318 0005D158 4B FA 30 39 */ bl memset
/* 8006131C 0005D15C 38 73 09 DC */ addi r3, r19, 0x9dc
/* 80061320 0005D160 38 80 00 00 */ li r4, 0x0
/* 80061324 0005D164 38 A0 01 08 */ li r5, 0x108
/* 80061328 0005D168 4B FA 30 29 */ bl memset
/* 8006132C 0005D16C 93 33 09 DC */ stw r25, 0x9dc(r19)
/* 80061330 0005D170 93 33 09 94 */ stw r25, 0x994(r19)
/* 80061334 0005D174 93 33 09 4C */ stw r25, 0x94c(r19)
/* 80061338 0005D178 9B F3 09 3E */ stb r31, 0x93e(r19)
/* 8006133C 0005D17C 81 9B 08 E4 */ lwz r12, 0x8e4(r27)
/* 80061340 0005D180 2C 0C 00 00 */ cmpwi r12, 0x0
/* 80061344 0005D184 41 82 00 14 */ beq lbl_80061358
/* 80061348 0005D188 7E C3 B3 78 */ mr r3, r22
/* 8006134C 0005D18C 38 80 00 00 */ li r4, 0x0
/* 80061350 0005D190 7D 89 03 A6 */ mtctr r12
/* 80061354 0005D194 4E 80 04 21 */ bctrl
.global lbl_80061358
lbl_80061358:
/* 80061358 0005D198 80 7B 08 50 */ lwz r3, 0x850(r27)
/* 8006135C 0005D19C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80061360 0005D1A0 41 82 00 18 */ beq lbl_80061378
/* 80061364 0005D1A4 38 9B 08 38 */ addi r4, r27, 0x838
/* 80061368 0005D1A8 38 A0 00 18 */ li r5, 0x18
/* 8006136C 0005D1AC 4B FA 2C 95 */ bl memcpy
/* 80061370 0005D1B0 38 00 00 00 */ li r0, 0x0
/* 80061374 0005D1B4 90 1B 08 50 */ stw r0, 0x850(r27)
.global lbl_80061378
lbl_80061378:
/* 80061378 0005D1B8 7C 9D E0 2E */ lwzx r4, r29, r28
/* 8006137C 0005D1BC 7F 03 C3 78 */ mr r3, r24
/* 80061380 0005D1C0 38 A0 00 60 */ li r5, 0x60
/* 80061384 0005D1C4 88 04 09 0C */ lbz r0, 0x90c(r4)
/* 80061388 0005D1C8 7C 00 00 34 */ cntlzw r0, r0
/* 8006138C 0005D1CC 54 00 D9 7E */ srwi r0, r0, 5
/* 80061390 0005D1D0 1C 00 00 60 */ mulli r0, r0, 0x60
/* 80061394 0005D1D4 7C 84 02 14 */ add r4, r4, r0
/* 80061398 0005D1D8 38 84 00 A0 */ addi r4, r4, 0xa0
/* 8006139C 0005D1DC 4B FA 2C 65 */ bl memcpy
/* 800613A0 0005D1E0 88 17 00 02 */ lbz r0, 0x2(r23)
/* 800613A4 0005D1E4 88 77 00 01 */ lbz r3, 0x1(r23)
/* 800613A8 0005D1E8 50 03 44 2E */ rlwimi r3, r0, 8, 16, 23
/* 800613AC 0005D1EC A0 98 00 00 */ lhz r4, 0x0(r24)
/* 800613B0 0005D1F0 70 63 9F 1F */ andi. r3, r3, 0x9f1f
/* 800613B4 0005D1F4 88 18 00 28 */ lbz r0, 0x28(r24)
/* 800613B8 0005D1F8 50 83 04 64 */ rlwimi r3, r4, 0, 17, 18
/* 800613BC 0005D1FC B0 78 00 00 */ sth r3, 0x0(r24)
/* 800613C0 0005D200 88 7B 09 05 */ lbz r3, 0x905(r27)
/* 800613C4 0005D204 7C 00 18 40 */ cmplw r0, r3
/* 800613C8 0005D208 41 82 00 10 */ beq lbl_800613D8
/* 800613CC 0005D20C 38 00 FF FC */ li r0, -0x4
/* 800613D0 0005D210 98 78 00 28 */ stb r3, 0x28(r24)
/* 800613D4 0005D214 98 18 00 29 */ stb r0, 0x29(r24)
.global lbl_800613D8
lbl_800613D8:
/* 800613D8 0005D218 81 9B 08 E0 */ lwz r12, 0x8e0(r27)
/* 800613DC 0005D21C 2C 0C 00 00 */ cmpwi r12, 0x0
/* 800613E0 0005D220 41 82 00 28 */ beq lbl_80061408
/* 800613E4 0005D224 88 1B 09 04 */ lbz r0, 0x904(r27)
/* 800613E8 0005D228 2C 00 00 00 */ cmpwi r0, 0x0
/* 800613EC 0005D22C 41 82 00 1C */ beq lbl_80061408
/* 800613F0 0005D230 7E C3 B3 78 */ mr r3, r22
/* 800613F4 0005D234 38 80 00 00 */ li r4, 0x0
/* 800613F8 0005D238 7D 89 03 A6 */ mtctr r12
/* 800613FC 0005D23C 4E 80 04 21 */ bctrl
/* 80061400 0005D240 38 00 00 00 */ li r0, 0x0
/* 80061404 0005D244 90 1B 08 E0 */ stw r0, 0x8e0(r27)
.global lbl_80061408
lbl_80061408:
/* 80061408 0005D248 38 00 00 00 */ li r0, 0x0
/* 8006140C 0005D24C 98 1B 09 04 */ stb r0, 0x904(r27)
/* 80061410 0005D250 7F 43 D3 78 */ mr r3, r26
/* 80061414 0005D254 4B FC 04 4D */ bl OSRestoreInterrupts
.global lbl_80061418
lbl_80061418:
/* 80061418 0005D258 39 61 00 40 */ addi r11, r1, 0x40
/* 8006141C 0005D25C 4B FA 5F 4D */ bl lbl_80007368
/* 80061420 0005D260 80 01 00 44 */ lwz r0, 0x44(r1)
/* 80061424 0005D264 7C 08 03 A6 */ mtlr r0
/* 80061428 0005D268 38 21 00 40 */ addi r1, r1, 0x40
/* 8006142C 0005D26C 4E 80 00 20 */ blr
.global __a1_21_user_data
__a1_21_user_data:
/* 80061430 0005D270 94 21 FF C0 */ stwu r1, -0x40(r1)
/* 80061434 0005D274 7C 08 02 A6 */ mflr r0
/* 80061438 0005D278 90 01 00 44 */ stw r0, 0x44(r1)
/* 8006143C 0005D27C 39 61 00 40 */ addi r11, r1, 0x40
/* 80061440 0005D280 4B FA 5E E1 */ bl lbl_80007320
/* 80061444 0005D284 3F C0 80 4C */ lis r30, __rvl_p_wpadcb@ha
/* 80061448 0005D288 54 7D 15 BA */ rlwinm r29, r3, 2, 22, 29
/* 8006144C 0005D28C 3B DE 1A 50 */ addi r30, r30, __rvl_p_wpadcb@l
/* 80061450 0005D290 7C 74 1B 78 */ mr r20, r3
/* 80061454 0005D294 7F 9E E8 2E */ lwzx r28, r30, r29
/* 80061458 0005D298 7C 95 23 78 */ mr r21, r4
/* 8006145C 0005D29C 7C B6 2B 78 */ mr r22, r5
/* 80061460 0005D2A0 4B FC 03 C1 */ bl OSDisableInterrupts
/* 80061464 0005D2A4 88 15 00 03 */ lbz r0, 0x3(r21)
/* 80061468 0005D2A8 7C 7B 1B 78 */ mr r27, r3
/* 8006146C 0005D2AC 54 18 07 3F */ clrlwi. r24, r0, 28
/* 80061470 0005D2B0 41 82 00 4C */ beq lbl_800614BC
/* 80061474 0005D2B4 38 00 FF FF */ li r0, -0x1
/* 80061478 0005D2B8 90 1C 0B 74 */ stw r0, 0xb74(r28)
/* 8006147C 0005D2BC 81 9C 08 E0 */ lwz r12, 0x8e0(r28)
/* 80061480 0005D2C0 2C 0C 00 00 */ cmpwi r12, 0x0
/* 80061484 0005D2C4 41 82 00 30 */ beq lbl_800614B4
/* 80061488 0005D2C8 80 1C 08 E4 */ lwz r0, 0x8e4(r28)
/* 8006148C 0005D2CC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80061490 0005D2D0 41 82 00 0C */ beq lbl_8006149C
/* 80061494 0005D2D4 7C 00 60 40 */ cmplw r0, r12
/* 80061498 0005D2D8 41 82 00 14 */ beq lbl_800614AC
.global lbl_8006149C
lbl_8006149C:
/* 8006149C 0005D2DC 7E 83 A3 78 */ mr r3, r20
/* 800614A0 0005D2E0 38 80 FF FD */ li r4, -0x3
/* 800614A4 0005D2E4 7D 89 03 A6 */ mtctr r12
/* 800614A8 0005D2E8 4E 80 04 21 */ bctrl
.global lbl_800614AC
lbl_800614AC:
/* 800614AC 0005D2EC 38 00 00 00 */ li r0, 0x0
/* 800614B0 0005D2F0 90 1C 08 E0 */ stw r0, 0x8e0(r28)
.global lbl_800614B4
lbl_800614B4:
/* 800614B4 0005D2F4 38 00 00 00 */ li r0, 0x0
/* 800614B8 0005D2F8 90 1C 09 00 */ stw r0, 0x900(r28)
.global lbl_800614BC
lbl_800614BC:
/* 800614BC 0005D2FC 80 9C 0B 70 */ lwz r4, 0xb70(r28)
/* 800614C0 0005D300 88 75 00 03 */ lbz r3, 0x3(r21)
/* 800614C4 0005D304 88 15 00 04 */ lbz r0, 0x4(r21)
/* 800614C8 0005D308 54 99 04 3E */ clrlwi r25, r4, 16
/* 800614CC 0005D30C 8B 55 00 05 */ lbz r26, 0x5(r21)
/* 800614D0 0005D310 7C 63 26 70 */ srawi r3, r3, 4
/* 800614D4 0005D314 50 1A 44 2E */ rlwimi r26, r0, 8, 16, 23
/* 800614D8 0005D318 54 9F 84 3E */ srwi r31, r4, 16
/* 800614DC 0005D31C 38 63 00 01 */ addi r3, r3, 0x1
/* 800614E0 0005D320 7C 19 D0 50 */ subf r0, r25, r26
/* 800614E4 0005D324 7C 1A C8 40 */ cmplw r26, r25
/* 800614E8 0005D328 54 77 06 3E */ clrlwi r23, r3, 24
/* 800614EC 0005D32C 7C 06 07 34 */ extsh r6, r0
/* 800614F0 0005D330 41 80 02 30 */ blt lbl_80061720
/* 800614F4 0005D334 A0 1C 0B 78 */ lhz r0, 0xb78(r28)
/* 800614F8 0005D338 57 43 04 3E */ clrlwi r3, r26, 16
/* 800614FC 0005D33C 7C 19 02 14 */ add r0, r25, r0
/* 80061500 0005D340 7C 03 00 00 */ cmpw r3, r0
/* 80061504 0005D344 41 81 02 1C */ bgt lbl_80061720
/* 80061508 0005D348 2C 18 00 00 */ cmpwi r24, 0x0
/* 8006150C 0005D34C 40 82 00 18 */ bne lbl_80061524
/* 80061510 0005D350 80 1C 0B 6C */ lwz r0, 0xb6c(r28)
/* 80061514 0005D354 7E E5 BB 78 */ mr r5, r23
/* 80061518 0005D358 38 95 00 06 */ addi r4, r21, 0x6
/* 8006151C 0005D35C 7C 60 32 14 */ add r3, r0, r6
/* 80061520 0005D360 4B FA 2A E1 */ bl memcpy
.global lbl_80061524
lbl_80061524:
/* 80061524 0005D364 A0 BC 0B 78 */ lhz r5, 0xb78(r28)
/* 80061528 0005D368 57 40 04 3E */ clrlwi r0, r26, 16
/* 8006152C 0005D36C 7C 00 BA 14 */ add r0, r0, r23
/* 80061530 0005D370 7C 79 2A 14 */ add r3, r25, r5
/* 80061534 0005D374 7C 03 00 00 */ cmpw r3, r0
/* 80061538 0005D378 40 82 01 E8 */ bne lbl_80061720
/* 8006153C 0005D37C 80 7C 0B 74 */ lwz r3, 0xb74(r28)
/* 80061540 0005D380 28 1F 04 A4 */ cmplwi r31, 0x4a4
/* 80061544 0005D384 38 00 FF FD */ li r0, -0x3
/* 80061548 0005D388 7C 63 FE 70 */ srawi r3, r3, 31
/* 8006154C 0005D38C 7C 17 18 38 */ and r23, r0, r3
/* 80061550 0005D390 40 82 00 28 */ bne lbl_80061578
/* 80061554 0005D394 88 7C 0B 85 */ lbz r3, 0xb85(r28)
/* 80061558 0005D398 38 03 00 FE */ addi r0, r3, 0xfe
/* 8006155C 0005D39C 54 00 06 3E */ clrlwi r0, r0, 24
/* 80061560 0005D3A0 28 00 00 01 */ cmplwi r0, 0x1
/* 80061564 0005D3A4 41 81 00 14 */ bgt lbl_80061578
/* 80061568 0005D3A8 80 9C 0B 6C */ lwz r4, 0xb6c(r28)
/* 8006156C 0005D3AC 7E 83 A3 78 */ mr r3, r20
/* 80061570 0005D3B0 7F 26 CB 78 */ mr r6, r25
/* 80061574 0005D3B4 48 00 35 5D */ bl WPADiDecode
.global lbl_80061578
lbl_80061578:
/* 80061578 0005D3B8 80 7C 0B 70 */ lwz r3, 0xb70(r28)
/* 8006157C 0005D3BC 2C 03 00 00 */ cmpwi r3, 0x0
/* 80061580 0005D3C0 40 82 00 10 */ bne lbl_80061590
/* 80061584 0005D3C4 80 1C 09 24 */ lwz r0, 0x924(r28)
/* 80061588 0005D3C8 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006158C 0005D3CC 41 82 00 18 */ beq lbl_800615A4
.global lbl_80061590
lbl_80061590:
/* 80061590 0005D3D0 28 03 17 6C */ cmplwi r3, 0x176c
/* 80061594 0005D3D4 40 82 00 1C */ bne lbl_800615B0
/* 80061598 0005D3D8 80 1C 09 24 */ lwz r0, 0x924(r28)
/* 8006159C 0005D3DC 2C 00 00 01 */ cmpwi r0, 0x1
/* 800615A0 0005D3E0 40 82 00 10 */ bne lbl_800615B0
.global lbl_800615A4
lbl_800615A4:
/* 800615A4 0005D3E4 7E 83 A3 78 */ mr r3, r20
/* 800615A8 0005D3E8 7E E4 BB 78 */ mr r4, r23
/* 800615AC 0005D3EC 4B FF D8 85 */ bl __wpadGetDevConfig
.global lbl_800615B0
lbl_800615B0:
/* 800615B0 0005D3F0 80 7C 0B 70 */ lwz r3, 0xb70(r28)
/* 800615B4 0005D3F4 3C 03 FB 5C */ addis r0, r3, 0xfb5c
/* 800615B8 0005D3F8 28 00 00 20 */ cmplwi r0, 0x20
/* 800615BC 0005D3FC 40 82 00 10 */ bne lbl_800615CC
/* 800615C0 0005D400 7E 83 A3 78 */ mr r3, r20
/* 800615C4 0005D404 7E E4 BB 78 */ mr r4, r23
/* 800615C8 0005D408 4B FF E4 C9 */ bl __wpadGetExtConfig
.global lbl_800615CC
lbl_800615CC:
/* 800615CC 0005D40C 80 7C 0B 70 */ lwz r3, 0xb70(r28)
/* 800615D0 0005D410 3C 03 FB 5C */ addis r0, r3, 0xfb5c
/* 800615D4 0005D414 28 00 00 F0 */ cmplwi r0, 0xf0
/* 800615D8 0005D418 41 82 00 0C */ beq lbl_800615E4
/* 800615DC 0005D41C 28 00 00 FA */ cmplwi r0, 0xfa
/* 800615E0 0005D420 40 82 00 10 */ bne lbl_800615F0
.global lbl_800615E4
lbl_800615E4:
/* 800615E4 0005D424 7E 83 A3 78 */ mr r3, r20
/* 800615E8 0005D428 7E E4 BB 78 */ mr r4, r23
/* 800615EC 0005D42C 4B FF EF 15 */ bl __wpadGetExtType
.global lbl_800615F0
lbl_800615F0:
/* 800615F0 0005D430 80 7C 0B 70 */ lwz r3, 0xb70(r28)
/* 800615F4 0005D434 3C 03 FB 5C */ addis r0, r3, 0xfb5c
/* 800615F8 0005D438 28 00 00 F6 */ cmplwi r0, 0xf6
/* 800615FC 0005D43C 40 82 00 6C */ bne lbl_80061668
/* 80061600 0005D440 3C 60 80 4C */ lis r3, __rvl_p_wpadcb@ha
/* 80061604 0005D444 56 80 15 BA */ rlwinm r0, r20, 2, 22, 29
/* 80061608 0005D448 38 63 1A 50 */ addi r3, r3, __rvl_p_wpadcb@l
/* 8006160C 0005D44C 7C 63 00 2E */ lwzx r3, r3, r0
/* 80061610 0005D450 88 03 09 3B */ lbz r0, 0x93b(r3)
/* 80061614 0005D454 80 A3 0B 6C */ lwz r5, 0xb6c(r3)
/* 80061618 0005D458 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006161C 0005D45C 41 82 00 4C */ beq lbl_80061668
/* 80061620 0005D460 88 03 09 3D */ lbz r0, 0x93d(r3)
/* 80061624 0005D464 28 00 00 01 */ cmplwi r0, 0x1
/* 80061628 0005D468 40 82 00 40 */ bne lbl_80061668
/* 8006162C 0005D46C 2C 17 00 00 */ cmpwi r23, 0x0
/* 80061630 0005D470 41 82 00 10 */ beq lbl_80061640
/* 80061634 0005D474 38 00 00 00 */ li r0, 0x0
/* 80061638 0005D478 98 03 09 3D */ stb r0, 0x93d(r3)
/* 8006163C 0005D47C 48 00 00 2C */ b lbl_80061668
.global lbl_80061640
lbl_80061640:
/* 80061640 0005D480 38 00 00 02 */ li r0, 0x2
/* 80061644 0005D484 98 03 09 3D */ stb r0, 0x93d(r3)
/* 80061648 0005D488 38 00 00 00 */ li r0, 0x0
/* 8006164C 0005D48C 38 8D E9 F4 */ addi r4, r13, _wpadDevType2@sda21
/* 80061650 0005D490 98 03 0B 09 */ stb r0, 0xb09(r3)
/* 80061654 0005D494 38 6D E9 F0 */ addi r3, r13, _wpadDevType2Sub@sda21
/* 80061658 0005D498 88 05 00 03 */ lbz r0, 0x3(r5)
/* 8006165C 0005D49C 7C 04 A1 AE */ stbx r0, r4, r20
/* 80061660 0005D4A0 88 05 00 02 */ lbz r0, 0x2(r5)
/* 80061664 0005D4A4 7C 03 A1 AE */ stbx r0, r3, r20
.global lbl_80061668
lbl_80061668:
/* 80061668 0005D4A8 80 7C 0B 70 */ lwz r3, 0xb70(r28)
/* 8006166C 0005D4AC 3C 03 FB 5C */ addis r0, r3, 0xfb5c
/* 80061670 0005D4B0 28 00 00 40 */ cmplwi r0, 0x40
/* 80061674 0005D4B4 40 82 00 10 */ bne lbl_80061684
/* 80061678 0005D4B8 7E 83 A3 78 */ mr r3, r20
/* 8006167C 0005D4BC 7E E4 BB 78 */ mr r4, r23
/* 80061680 0005D4C0 4B FF EC 61 */ bl __wpadGetExtConfig2
.global lbl_80061684
lbl_80061684:
/* 80061684 0005D4C4 80 7C 0B 70 */ lwz r3, 0xb70(r28)
/* 80061688 0005D4C8 3C 03 FB 5C */ addis r0, r3, 0xfb5c
/* 8006168C 0005D4CC 28 00 00 F3 */ cmplwi r0, 0xf3
/* 80061690 0005D4D0 40 82 00 2C */ bne lbl_800616BC
/* 80061694 0005D4D4 88 1C 0B A4 */ lbz r0, 0xba4(r28)
/* 80061698 0005D4D8 28 00 00 03 */ cmplwi r0, 0x3
/* 8006169C 0005D4DC 40 82 00 10 */ bne lbl_800616AC
/* 800616A0 0005D4E0 38 00 00 09 */ li r0, 0x9
/* 800616A4 0005D4E4 98 1C 09 3D */ stb r0, 0x93d(r28)
/* 800616A8 0005D4E8 48 00 00 14 */ b lbl_800616BC
.global lbl_800616AC
lbl_800616AC:
/* 800616AC 0005D4EC 28 00 00 04 */ cmplwi r0, 0x4
/* 800616B0 0005D4F0 40 82 00 0C */ bne lbl_800616BC
/* 800616B4 0005D4F4 38 00 00 06 */ li r0, 0x6
/* 800616B8 0005D4F8 98 1C 09 3D */ stb r0, 0x93d(r28)
.global lbl_800616BC
lbl_800616BC:
/* 800616BC 0005D4FC 80 1C 0B 70 */ lwz r0, 0xb70(r28)
/* 800616C0 0005D500 28 00 00 2A */ cmplwi r0, 0x2a
/* 800616C4 0005D504 40 82 00 14 */ bne lbl_800616D8
/* 800616C8 0005D508 7E 83 A3 78 */ mr r3, r20
/* 800616CC 0005D50C 7E E4 BB 78 */ mr r4, r23
/* 800616D0 0005D510 38 A0 00 00 */ li r5, 0x0
/* 800616D4 0005D514 4B FF F4 FD */ bl __wpadGetGameInfo
.global lbl_800616D8
lbl_800616D8:
/* 800616D8 0005D518 80 1C 0B 70 */ lwz r0, 0xb70(r28)
/* 800616DC 0005D51C 28 00 00 62 */ cmplwi r0, 0x62
/* 800616E0 0005D520 40 82 00 14 */ bne lbl_800616F4
/* 800616E4 0005D524 7E 83 A3 78 */ mr r3, r20
/* 800616E8 0005D528 7E E4 BB 78 */ mr r4, r23
/* 800616EC 0005D52C 38 A0 00 01 */ li r5, 0x1
/* 800616F0 0005D530 4B FF F4 E1 */ bl __wpadGetGameInfo
.global lbl_800616F4
lbl_800616F4:
/* 800616F4 0005D534 81 9C 08 E0 */ lwz r12, 0x8e0(r28)
/* 800616F8 0005D538 2C 0C 00 00 */ cmpwi r12, 0x0
/* 800616FC 0005D53C 41 82 00 1C */ beq lbl_80061718
/* 80061700 0005D540 7E 83 A3 78 */ mr r3, r20
/* 80061704 0005D544 7E E4 BB 78 */ mr r4, r23
/* 80061708 0005D548 7D 89 03 A6 */ mtctr r12
/* 8006170C 0005D54C 4E 80 04 21 */ bctrl
/* 80061710 0005D550 38 00 00 00 */ li r0, 0x0
/* 80061714 0005D554 90 1C 08 E0 */ stw r0, 0x8e0(r28)
.global lbl_80061718
lbl_80061718:
/* 80061718 0005D558 38 00 00 00 */ li r0, 0x0
/* 8006171C 0005D55C 90 1C 09 00 */ stw r0, 0x900(r28)
.global lbl_80061720
lbl_80061720:
/* 80061720 0005D560 7C 9E E8 2E */ lwzx r4, r30, r29
/* 80061724 0005D564 7E C3 B3 78 */ mr r3, r22
/* 80061728 0005D568 38 A0 00 60 */ li r5, 0x60
/* 8006172C 0005D56C 88 04 09 0C */ lbz r0, 0x90c(r4)
/* 80061730 0005D570 7C 00 00 34 */ cntlzw r0, r0
/* 80061734 0005D574 54 00 D9 7E */ srwi r0, r0, 5
/* 80061738 0005D578 1C 00 00 60 */ mulli r0, r0, 0x60
/* 8006173C 0005D57C 7C 84 02 14 */ add r4, r4, r0
/* 80061740 0005D580 38 84 00 A0 */ addi r4, r4, 0xa0
/* 80061744 0005D584 4B FA 28 BD */ bl memcpy
/* 80061748 0005D588 88 15 00 02 */ lbz r0, 0x2(r21)
/* 8006174C 0005D58C 88 75 00 01 */ lbz r3, 0x1(r21)
/* 80061750 0005D590 50 03 44 2E */ rlwimi r3, r0, 8, 16, 23
/* 80061754 0005D594 A0 96 00 00 */ lhz r4, 0x0(r22)
/* 80061758 0005D598 70 63 9F 1F */ andi. r3, r3, 0x9f1f
/* 8006175C 0005D59C 88 16 00 28 */ lbz r0, 0x28(r22)
/* 80061760 0005D5A0 50 83 04 64 */ rlwimi r3, r4, 0, 17, 18
/* 80061764 0005D5A4 B0 76 00 00 */ sth r3, 0x0(r22)
/* 80061768 0005D5A8 88 7C 09 05 */ lbz r3, 0x905(r28)
/* 8006176C 0005D5AC 7C 00 18 40 */ cmplw r0, r3
/* 80061770 0005D5B0 41 82 00 10 */ beq lbl_80061780
/* 80061774 0005D5B4 38 00 FF FC */ li r0, -0x4
/* 80061778 0005D5B8 98 76 00 28 */ stb r3, 0x28(r22)
/* 8006177C 0005D5BC 98 16 00 29 */ stb r0, 0x29(r22)
.global lbl_80061780
lbl_80061780:
/* 80061780 0005D5C0 7F 63 DB 78 */ mr r3, r27
/* 80061784 0005D5C4 4B FC 00 DD */ bl OSRestoreInterrupts
/* 80061788 0005D5C8 39 61 00 40 */ addi r11, r1, 0x40
/* 8006178C 0005D5CC 4B FA 5B E1 */ bl lbl_8000736C
/* 80061790 0005D5D0 80 01 00 44 */ lwz r0, 0x44(r1)
/* 80061794 0005D5D4 7C 08 03 A6 */ mtlr r0
/* 80061798 0005D5D8 38 21 00 40 */ addi r1, r1, 0x40
/* 8006179C 0005D5DC 4E 80 00 20 */ blr
.global __a1_22_ack
__a1_22_ack:
/* 800617A0 0005D5E0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800617A4 0005D5E4 7C 08 02 A6 */ mflr r0
/* 800617A8 0005D5E8 90 01 00 24 */ stw r0, 0x24(r1)
/* 800617AC 0005D5EC 39 61 00 20 */ addi r11, r1, 0x20
/* 800617B0 0005D5F0 4B FA 5B 89 */ bl lbl_80007338
/* 800617B4 0005D5F4 3F C0 80 4C */ lis r30, __rvl_p_wpadcb@ha
/* 800617B8 0005D5F8 54 7A 15 BA */ rlwinm r26, r3, 2, 22, 29
/* 800617BC 0005D5FC 3B DE 1A 50 */ addi r30, r30, __rvl_p_wpadcb@l
/* 800617C0 0005D600 7C 7B 1B 78 */ mr r27, r3
/* 800617C4 0005D604 7F FE D0 2E */ lwzx r31, r30, r26
/* 800617C8 0005D608 7C 9C 23 78 */ mr r28, r4
/* 800617CC 0005D60C 7C BD 2B 78 */ mr r29, r5
/* 800617D0 0005D610 4B FC 00 51 */ bl OSDisableInterrupts
/* 800617D4 0005D614 7C 9E D0 2E */ lwzx r4, r30, r26
/* 800617D8 0005D618 7C 7E 1B 78 */ mr r30, r3
/* 800617DC 0005D61C 7F A3 EB 78 */ mr r3, r29
/* 800617E0 0005D620 38 A0 00 60 */ li r5, 0x60
/* 800617E4 0005D624 88 04 09 0C */ lbz r0, 0x90c(r4)
/* 800617E8 0005D628 7C 00 00 34 */ cntlzw r0, r0
/* 800617EC 0005D62C 54 00 D9 7E */ srwi r0, r0, 5
/* 800617F0 0005D630 1C 00 00 60 */ mulli r0, r0, 0x60
/* 800617F4 0005D634 7C 84 02 14 */ add r4, r4, r0
/* 800617F8 0005D638 38 84 00 A0 */ addi r4, r4, 0xa0
/* 800617FC 0005D63C 4B FA 28 05 */ bl memcpy
/* 80061800 0005D640 88 1C 00 02 */ lbz r0, 0x2(r28)
/* 80061804 0005D644 88 7C 00 01 */ lbz r3, 0x1(r28)
/* 80061808 0005D648 50 03 44 2E */ rlwimi r3, r0, 8, 16, 23
/* 8006180C 0005D64C A0 9D 00 00 */ lhz r4, 0x0(r29)
/* 80061810 0005D650 70 63 9F 1F */ andi. r3, r3, 0x9f1f
/* 80061814 0005D654 88 1D 00 28 */ lbz r0, 0x28(r29)
/* 80061818 0005D658 50 83 04 64 */ rlwimi r3, r4, 0, 17, 18
/* 8006181C 0005D65C B0 7D 00 00 */ sth r3, 0x0(r29)
/* 80061820 0005D660 88 7F 09 05 */ lbz r3, 0x905(r31)
/* 80061824 0005D664 7C 00 18 40 */ cmplw r0, r3
/* 80061828 0005D668 41 82 00 10 */ beq lbl_80061838
/* 8006182C 0005D66C 38 00 FF FC */ li r0, -0x4
/* 80061830 0005D670 98 7D 00 28 */ stb r3, 0x28(r29)
/* 80061834 0005D674 98 1D 00 29 */ stb r0, 0x29(r29)
.global lbl_80061838
lbl_80061838:
/* 80061838 0005D678 88 9C 00 04 */ lbz r4, 0x4(r28)
/* 8006183C 0005D67C 38 60 FF FD */ li r3, -0x3
/* 80061840 0005D680 88 BC 00 03 */ lbz r5, 0x3(r28)
/* 80061844 0005D684 88 1F 0B 7F */ lbz r0, 0xb7f(r31)
/* 80061848 0005D688 7C 84 00 34 */ cntlzw r4, r4
/* 8006184C 0005D68C 54 84 DF FE */ extrwi r4, r4, 1, 26
/* 80061850 0005D690 7C 84 00 D0 */ neg r4, r4
/* 80061854 0005D694 7C 00 28 40 */ cmplw r0, r5
/* 80061858 0005D698 7C 64 20 78 */ andc r4, r3, r4
/* 8006185C 0005D69C 40 82 00 2C */ bne lbl_80061888
/* 80061860 0005D6A0 81 9F 08 E0 */ lwz r12, 0x8e0(r31)
/* 80061864 0005D6A4 2C 0C 00 00 */ cmpwi r12, 0x0
/* 80061868 0005D6A8 41 82 00 18 */ beq lbl_80061880
/* 8006186C 0005D6AC 7F 63 DB 78 */ mr r3, r27
/* 80061870 0005D6B0 7D 89 03 A6 */ mtctr r12
/* 80061874 0005D6B4 4E 80 04 21 */ bctrl
/* 80061878 0005D6B8 38 00 00 00 */ li r0, 0x0
/* 8006187C 0005D6BC 90 1F 08 E0 */ stw r0, 0x8e0(r31)
.global lbl_80061880
lbl_80061880:
/* 80061880 0005D6C0 38 00 00 00 */ li r0, 0x0
/* 80061884 0005D6C4 90 1F 09 00 */ stw r0, 0x900(r31)
.global lbl_80061888
lbl_80061888:
/* 80061888 0005D6C8 7F C3 F3 78 */ mr r3, r30
/* 8006188C 0005D6CC 4B FB FF D5 */ bl OSRestoreInterrupts
/* 80061890 0005D6D0 39 61 00 20 */ addi r11, r1, 0x20
/* 80061894 0005D6D4 4B FA 5A F1 */ bl lbl_80007384
/* 80061898 0005D6D8 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8006189C 0005D6DC 7C 08 03 A6 */ mtlr r0
/* 800618A0 0005D6E0 38 21 00 20 */ addi r1, r1, 0x20
/* 800618A4 0005D6E4 4E 80 00 20 */ blr
/* 800618A8 0005D6E8 00 00 00 00 */ .4byte 0x00000000
/* 800618AC 0005D6EC 00 00 00 00 */ .4byte 0x00000000
.global __parse_dpd_data
__parse_dpd_data:
/* 800618B0 0005D6F0 94 21 FF 60 */ stwu r1, -0xa0(r1)
/* 800618B4 0005D6F4 7C 08 02 A6 */ mflr r0
/* 800618B8 0005D6F8 90 01 00 A4 */ stw r0, 0xa4(r1)
/* 800618BC 0005D6FC 39 61 00 50 */ addi r11, r1, 0x50
/* 800618C0 0005D700 DB E1 00 90 */ stfd f31, 0x90(r1)
/* 800618C4 0005D704 F3 E1 00 98 */ psq_st f31, 0x98(r1), 0, qr0
/* 800618C8 0005D708 DB C1 00 80 */ stfd f30, 0x80(r1)
/* 800618CC 0005D70C F3 C1 00 88 */ psq_st f30, 0x88(r1), 0, qr0
/* 800618D0 0005D710 DB A1 00 70 */ stfd f29, 0x70(r1)
/* 800618D4 0005D714 F3 A1 00 78 */ psq_st f29, 0x78(r1), 0, qr0
/* 800618D8 0005D718 DB 81 00 60 */ stfd f28, 0x60(r1)
/* 800618DC 0005D71C F3 81 00 68 */ psq_st f28, 0x68(r1), 0, qr0
/* 800618E0 0005D720 DB 61 00 50 */ stfd f27, 0x50(r1)
/* 800618E4 0005D724 F3 61 00 58 */ psq_st f27, 0x58(r1), 0, qr0
/* 800618E8 0005D728 4B FA 5A 41 */ bl lbl_80007328
/* 800618EC 0005D72C 3D 00 80 4C */ lis r8, __rvl_p_wpadcb@ha
/* 800618F0 0005D730 3C 00 43 30 */ lis r0, 0x4330
/* 800618F4 0005D734 54 7B 10 3A */ slwi r27, r3, 2
/* 800618F8 0005D738 3C 60 80 4C */ lis r3, _wpadCalibrationX@ha
/* 800618FC 0005D73C 39 08 1A 50 */ addi r8, r8, __rvl_p_wpadcb@l
/* 80061900 0005D740 90 01 00 08 */ stw r0, 0x8(r1)
/* 80061904 0005D744 7D 08 D8 2E */ lwzx r8, r8, r27
/* 80061908 0005D748 7C 98 23 78 */ mr r24, r4
/* 8006190C 0005D74C 90 01 00 10 */ stw r0, 0x10(r1)
/* 80061910 0005D750 38 63 5A 00 */ addi r3, r3, _wpadCalibrationX@l
/* 80061914 0005D754 88 08 0B A6 */ lbz r0, 0xba6(r8)
/* 80061918 0005D758 2C 00 00 00 */ cmpwi r0, 0x0
/* 8006191C 0005D75C 41 82 00 14 */ beq lbl_80061930
/* 80061920 0005D760 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80061924 0005D764 38 00 FF FC */ li r0, -0x4
/* 80061928 0005D768 98 03 00 29 */ stb r0, 0x29(r3)
/* 8006192C 0005D76C 48 00 03 D8 */ b lbl_80061D04
.global lbl_80061930
lbl_80061930:
/* 80061930 0005D770 28 05 00 03 */ cmplwi r5, 0x3
/* 80061934 0005D774 40 82 01 70 */ bne lbl_80061AA4
/* 80061938 0005D778 38 00 00 04 */ li r0, 0x4
/* 8006193C 0005D77C C8 62 88 40 */ lfd f3, "@5736"@sda21(r2)
/* 80061940 0005D780 C0 22 88 38 */ lfs f1, "@5731"@sda21(r2)
/* 80061944 0005D784 38 A0 00 00 */ li r5, 0x0
/* 80061948 0005D788 39 40 00 00 */ li r10, 0x0
/* 8006194C 0005D78C 39 20 02 FF */ li r9, 0x2ff
/* 80061950 0005D790 7C 09 03 A6 */ mtctr r0
/* 80061954 0005D794 60 00 00 00 */ nop
.global lbl_80061958
lbl_80061958:
/* 80061958 0005D798 54 A8 06 3E */ clrlwi r8, r5, 24
/* 8006195C 0005D79C 54 A0 15 BA */ rlwinm r0, r5, 2, 22, 29
/* 80061960 0005D7A0 7D 08 00 50 */ subf r8, r8, r0
/* 80061964 0005D7A4 38 08 00 02 */ addi r0, r8, 0x2
/* 80061968 0005D7A8 7C 00 38 00 */ cmpw r0, r7
/* 8006196C 0005D7AC 40 80 00 F8 */ bge lbl_80061A64
/* 80061970 0005D7B0 7E E6 42 14 */ add r23, r6, r8
/* 80061974 0005D7B4 81 04 00 00 */ lwz r8, 0x0(r4)
/* 80061978 0005D7B8 54 A0 1D 78 */ rlwinm r0, r5, 3, 21, 28
/* 8006197C 0005D7BC 89 97 00 00 */ lbz r12, 0x0(r23)
/* 80061980 0005D7C0 7D 68 02 14 */ add r11, r8, r0
/* 80061984 0005D7C4 8A D7 00 02 */ lbz r22, 0x2(r23)
/* 80061988 0005D7C8 89 17 00 01 */ lbz r8, 0x1(r23)
/* 8006198C 0005D7CC 7D 99 07 34 */ extsh r25, r12
/* 80061990 0005D7D0 56 D7 25 AE */ rlwinm r23, r22, 4, 22, 23
/* 80061994 0005D7D4 56 CC 15 AE */ rlwinm r12, r22, 2, 22, 23
/* 80061998 0005D7D8 7F 37 BB 78 */ or r23, r25, r23
/* 8006199C 0005D7DC B2 EB 00 08 */ sth r23, 0x8(r11)
/* 800619A0 0005D7E0 7D 17 07 34 */ extsh r23, r8
/* 800619A4 0005D7E4 56 CB 07 3E */ clrlwi r11, r22, 28
/* 800619A8 0005D7E8 81 04 00 00 */ lwz r8, 0x0(r4)
/* 800619AC 0005D7EC 7E EC 63 78 */ or r12, r23, r12
/* 800619B0 0005D7F0 7D 8C 07 34 */ extsh r12, r12
/* 800619B4 0005D7F4 7D 08 02 14 */ add r8, r8, r0
/* 800619B8 0005D7F8 21 8C 02 FF */ subfic r12, r12, 0x2ff
/* 800619BC 0005D7FC B1 88 00 0A */ sth r12, 0xa(r8)
/* 800619C0 0005D800 81 04 00 00 */ lwz r8, 0x0(r4)
/* 800619C4 0005D804 7D 08 02 14 */ add r8, r8, r0
/* 800619C8 0005D808 B1 68 00 0C */ sth r11, 0xc(r8)
/* 800619CC 0005D80C 81 04 00 00 */ lwz r8, 0x0(r4)
/* 800619D0 0005D810 7D 68 02 14 */ add r11, r8, r0
/* 800619D4 0005D814 A1 0B 00 0C */ lhz r8, 0xc(r11)
/* 800619D8 0005D818 91 01 00 0C */ stw r8, 0xc(r1)
/* 800619DC 0005D81C 91 01 00 14 */ stw r8, 0x14(r1)
/* 800619E0 0005D820 C8 41 00 08 */ lfd f2, 0x8(r1)
/* 800619E4 0005D824 C8 01 00 10 */ lfd f0, 0x10(r1)
/* 800619E8 0005D828 EC 42 18 28 */ fsubs f2, f2, f3
/* 800619EC 0005D82C EC 00 18 28 */ fsubs f0, f0, f3
/* 800619F0 0005D830 EC 02 00 32 */ fmuls f0, f2, f0
/* 800619F4 0005D834 EC 01 00 32 */ fmuls f0, f1, f0
/* 800619F8 0005D838 FC 00 00 1E */ fctiwz f0, f0
/* 800619FC 0005D83C D8 01 00 18 */ stfd f0, 0x18(r1)
/* 80061A00 0005D840 81 01 00 1C */ lwz r8, 0x1c(r1)
/* 80061A04 0005D844 55 08 06 3E */ clrlwi r8, r8, 24
/* 80061A08 0005D848 B1 0B 00 0C */ sth r8, 0xc(r11)
/* 80061A0C 0005D84C 81 04 00 00 */ lwz r8, 0x0(r4)
/* 80061A10 0005D850 7D 68 02 14 */ add r11, r8, r0
/* 80061A14 0005D854 A1 0B 00 0C */ lhz r8, 0xc(r11)
/* 80061A18 0005D858 2C 08 00 00 */ cmpwi r8, 0x0
/* 80061A1C 0005D85C 41 82 00 1C */ beq lbl_80061A38
/* 80061A20 0005D860 A9 0B 00 08 */ lha r8, 0x8(r11)
/* 80061A24 0005D864 2C 08 03 FF */ cmpwi r8, 0x3ff
/* 80061A28 0005D868 41 82 00 10 */ beq lbl_80061A38
/* 80061A2C 0005D86C A9 0B 00 0A */ lha r8, 0xa(r11)
/* 80061A30 0005D870 2C 08 02 FF */ cmpwi r8, 0x2ff
/* 80061A34 0005D874 40 82 00 20 */ bne lbl_80061A54
.global lbl_80061A38
lbl_80061A38:
/* 80061A38 0005D878 B1 4B 00 08 */ sth r10, 0x8(r11)
/* 80061A3C 0005D87C 81 04 00 00 */ lwz r8, 0x0(r4)
/* 80061A40 0005D880 7D 08 02 14 */ add r8, r8, r0
/* 80061A44 0005D884 B1 28 00 0A */ sth r9, 0xa(r8)
/* 80061A48 0005D888 81 04 00 00 */ lwz r8, 0x0(r4)
/* 80061A4C 0005D88C 7D 08 02 14 */ add r8, r8, r0
/* 80061A50 0005D890 B1 48 00 0C */ sth r10, 0xc(r8)
.global lbl_80061A54
lbl_80061A54:
/* 80061A54 0005D894 81 04 00 00 */ lwz r8, 0x0(r4)
/* 80061A58 0005D898 7D 08 02 14 */ add r8, r8, r0
/* 80061A5C 0005D89C 98 A8 00 0E */ stb r5, 0xe(r8)
/* 80061A60 0005D8A0 48 00 00 38 */ b lbl_80061A98
.global lbl_80061A64
lbl_80061A64:
/* 80061A64 0005D8A4 80 04 00 00 */ lwz r0, 0x0(r4)
/* 80061A68 0005D8A8 54 AB 1D 78 */ rlwinm r11, r5, 3, 21, 28
/* 80061A6C 0005D8AC 7D 00 5A 14 */ add r8, r0, r11
/* 80061A70 0005D8B0 B1 48 00 08 */ sth r10, 0x8(r8)
/* 80061A74 0005D8B4 80 04 00 00 */ lwz r0, 0x0(r4)
/* 80061A78 0005D8B8 7D 00 5A 14 */ add r8, r0, r11
/* 80061A7C 0005D8BC B1 28 00 0A */ sth r9, 0xa(r8)
/* 80061A80 0005D8C0 80 04 00 00 */ lwz r0, 0x0(r4)
/* 80061A84 0005D8C4 7D 00 5A 14 */ add r8, r0, r11
/* 80061A88 0005D8C8 B1 48 00 0C */ sth r10, 0xc(r8)
/* 80061A8C 0005D8CC 80 04 00 00 */ lwz r0, 0x0(r4)
/* 80061A90 0005D8D0 7D 00 5A 14 */ add r8, r0, r11
/* 80061A94 0005D8D4 98 A8 00 0E */ stb r5, 0xe(r8)
.global lbl_80061A98
lbl_80061A98:
/* 80061A98 0005D8D8 38 A5 00 01 */ addi r5, r5, 0x1
/* 80061A9C 0005D8DC 42 00 FE BC */ bdnz lbl_80061958
/* 80061AA0 0005D8E0 48 00 01 3C */ b lbl_80061BDC
.global lbl_80061AA4
lbl_80061AA4:
/* 80061AA4 0005D8E4 28 05 00 01 */ cmplwi r5, 0x1
/* 80061AA8 0005D8E8 40 82 01 34 */ bne lbl_80061BDC
/* 80061AAC 0005D8EC 38 00 00 04 */ li r0, 0x4
/* 80061AB0 0005D8F0 38 A0 00 00 */ li r5, 0x0
/* 80061AB4 0005D8F4 39 00 00 0C */ li r8, 0xc
/* 80061AB8 0005D8F8 39 40 00 00 */ li r10, 0x0
/* 80061ABC 0005D8FC 39 20 02 FF */ li r9, 0x2ff
/* 80061AC0 0005D900 7C 09 03 A6 */ mtctr r0
.global lbl_80061AC4
lbl_80061AC4:
/* 80061AC4 0005D904 54 AC 06 3E */ clrlwi r12, r5, 24
/* 80061AC8 0005D908 54 AB 15 BA */ rlwinm r11, r5, 2, 22, 29
/* 80061ACC 0005D90C 55 87 0F FE */ srwi r7, r12, 31
/* 80061AD0 0005D910 54 A0 07 FE */ clrlwi r0, r5, 31
/* 80061AD4 0005D914 7D 8C 58 50 */ subf r12, r12, r11
/* 80061AD8 0005D918 54 B7 FE 7E */ extrwi r23, r5, 7, 24
/* 80061ADC 0005D91C 54 AB 0D FA */ rlwinm r11, r5, 1, 23, 29
/* 80061AE0 0005D920 7C 00 3A 78 */ xor r0, r0, r7
/* 80061AE4 0005D924 7D 86 62 14 */ add r12, r6, r12
/* 80061AE8 0005D928 7D 6B BA 14 */ add r11, r11, r23
/* 80061AEC 0005D92C 7C 07 00 51 */ subf. r0, r7, r0
/* 80061AF0 0005D930 7D 97 60 50 */ subf r12, r23, r12
/* 80061AF4 0005D934 7C E6 5A 14 */ add r7, r6, r11
/* 80061AF8 0005D938 8A EC 00 00 */ lbz r23, 0x0(r12)
/* 80061AFC 0005D93C 89 8C 00 01 */ lbz r12, 0x1(r12)
/* 80061B00 0005D940 8A C7 00 02 */ lbz r22, 0x2(r7)
/* 80061B04 0005D944 40 82 00 44 */ bne lbl_80061B48
/* 80061B08 0005D948 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061B0C 0005D94C 54 A0 1D 78 */ rlwinm r0, r5, 3, 21, 28
/* 80061B10 0005D950 7E F7 07 34 */ extsh r23, r23
/* 80061B14 0005D954 56 CB 25 AE */ rlwinm r11, r22, 4, 22, 23
/* 80061B18 0005D958 7C E7 02 14 */ add r7, r7, r0
/* 80061B1C 0005D95C 7D 8C 07 34 */ extsh r12, r12
/* 80061B20 0005D960 7E EB 5B 78 */ or r11, r23, r11
/* 80061B24 0005D964 B1 67 00 08 */ sth r11, 0x8(r7)
/* 80061B28 0005D968 56 CB 15 AE */ rlwinm r11, r22, 2, 22, 23
/* 80061B2C 0005D96C 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061B30 0005D970 7D 8B 5B 78 */ or r11, r12, r11
/* 80061B34 0005D974 7D 6B 07 34 */ extsh r11, r11
/* 80061B38 0005D978 7C E7 02 14 */ add r7, r7, r0
/* 80061B3C 0005D97C 21 6B 02 FF */ subfic r11, r11, 0x2ff
/* 80061B40 0005D980 B1 67 00 0A */ sth r11, 0xa(r7)
/* 80061B44 0005D984 48 00 00 40 */ b lbl_80061B84
.global lbl_80061B48
lbl_80061B48:
/* 80061B48 0005D988 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061B4C 0005D98C 54 A0 1D 78 */ rlwinm r0, r5, 3, 21, 28
/* 80061B50 0005D990 7E F7 07 34 */ extsh r23, r23
/* 80061B54 0005D994 56 CB 45 AE */ rlwinm r11, r22, 8, 22, 23
/* 80061B58 0005D998 7C E7 02 14 */ add r7, r7, r0
/* 80061B5C 0005D99C 7D 8C 07 34 */ extsh r12, r12
/* 80061B60 0005D9A0 7E EB 5B 78 */ or r11, r23, r11
/* 80061B64 0005D9A4 B1 67 00 08 */ sth r11, 0x8(r7)
/* 80061B68 0005D9A8 56 CB 35 AE */ rlwinm r11, r22, 6, 22, 23
/* 80061B6C 0005D9AC 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061B70 0005D9B0 7D 8B 5B 78 */ or r11, r12, r11
/* 80061B74 0005D9B4 7D 6B 07 34 */ extsh r11, r11
/* 80061B78 0005D9B8 7C E7 02 14 */ add r7, r7, r0
/* 80061B7C 0005D9BC 21 6B 02 FF */ subfic r11, r11, 0x2ff
/* 80061B80 0005D9C0 B1 67 00 0A */ sth r11, 0xa(r7)
.global lbl_80061B84
lbl_80061B84:
/* 80061B84 0005D9C4 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061B88 0005D9C8 7D 67 02 14 */ add r11, r7, r0
/* 80061B8C 0005D9CC A8 EB 00 08 */ lha r7, 0x8(r11)
/* 80061B90 0005D9D0 2C 07 03 FF */ cmpwi r7, 0x3ff
/* 80061B94 0005D9D4 41 82 00 10 */ beq lbl_80061BA4
/* 80061B98 0005D9D8 A8 EB 00 0A */ lha r7, 0xa(r11)
/* 80061B9C 0005D9DC 2C 07 02 FF */ cmpwi r7, 0x2ff
/* 80061BA0 0005D9E0 40 82 00 24 */ bne lbl_80061BC4
.global lbl_80061BA4
lbl_80061BA4:
/* 80061BA4 0005D9E4 B1 4B 00 08 */ sth r10, 0x8(r11)
/* 80061BA8 0005D9E8 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061BAC 0005D9EC 7C E7 02 14 */ add r7, r7, r0
/* 80061BB0 0005D9F0 B1 27 00 0A */ sth r9, 0xa(r7)
/* 80061BB4 0005D9F4 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061BB8 0005D9F8 7C E7 02 14 */ add r7, r7, r0
/* 80061BBC 0005D9FC B1 47 00 0C */ sth r10, 0xc(r7)
/* 80061BC0 0005DA00 48 00 00 08 */ b lbl_80061BC8
.global lbl_80061BC4
lbl_80061BC4:
/* 80061BC4 0005DA04 B1 0B 00 0C */ sth r8, 0xc(r11)
.global lbl_80061BC8
lbl_80061BC8:
/* 80061BC8 0005DA08 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061BCC 0005DA0C 7C E7 02 14 */ add r7, r7, r0
/* 80061BD0 0005DA10 98 A7 00 0E */ stb r5, 0xe(r7)
/* 80061BD4 0005DA14 38 A5 00 01 */ addi r5, r5, 0x1
/* 80061BD8 0005DA18 42 00 FE EC */ bdnz lbl_80061AC4
.global lbl_80061BDC
lbl_80061BDC:
/* 80061BDC 0005DA1C CB C2 88 18 */ lfd f30, "@5038"@sda21(r2)
/* 80061BE0 0005DA20 3B 83 00 00 */ addi r28, r3, 0x0
/* 80061BE4 0005DA24 C3 E2 88 08 */ lfs f31, "@5033_8055E788"@sda21(r2)
/* 80061BE8 0005DA28 3B A3 00 20 */ addi r29, r3, 0x20
/* 80061BEC 0005DA2C 3B C3 00 10 */ addi r30, r3, 0x10
/* 80061BF0 0005DA30 3B E3 00 30 */ addi r31, r3, 0x30
/* 80061BF4 0005DA34 3A E3 00 40 */ addi r23, r3, 0x40
/* 80061BF8 0005DA38 3B 20 00 00 */ li r25, 0x0
.global lbl_80061BFC
lbl_80061BFC:
/* 80061BFC 0005DA3C 80 B8 00 00 */ lwz r5, 0x0(r24)
/* 80061C00 0005DA40 57 3A 1D 78 */ rlwinm r26, r25, 3, 21, 28
/* 80061C04 0005DA44 7C 65 D2 14 */ add r3, r5, r26
/* 80061C08 0005DA48 A8 83 00 08 */ lha r4, 0x8(r3)
/* 80061C0C 0005DA4C 2C 04 00 00 */ cmpwi r4, 0x0
/* 80061C10 0005DA50 40 82 00 10 */ bne lbl_80061C20
/* 80061C14 0005DA54 A8 03 00 0A */ lha r0, 0xa(r3)
/* 80061C18 0005DA58 2C 00 02 FF */ cmpwi r0, 0x2ff
/* 80061C1C 0005DA5C 41 82 00 DC */ beq lbl_80061CF8
.global lbl_80061C20
lbl_80061C20:
/* 80061C20 0005DA60 7E C5 D2 14 */ add r22, r5, r26
/* 80061C24 0005DA64 6C 83 80 00 */ xoris r3, r4, 0x8000
/* 80061C28 0005DA68 A8 16 00 0A */ lha r0, 0xa(r22)
/* 80061C2C 0005DA6C 90 61 00 0C */ stw r3, 0xc(r1)
/* 80061C30 0005DA70 6C 00 80 00 */ xoris r0, r0, 0x8000
/* 80061C34 0005DA74 7C 17 DC 2E */ lfsx f0, r23, r27
/* 80061C38 0005DA78 90 01 00 14 */ stw r0, 0x14(r1)
/* 80061C3C 0005DA7C C8 41 00 08 */ lfd f2, 0x8(r1)
/* 80061C40 0005DA80 EC 3F 00 32 */ fmuls f1, f31, f0
/* 80061C44 0005DA84 C8 01 00 10 */ lfd f0, 0x10(r1)
/* 80061C48 0005DA88 EC A2 F0 28 */ fsubs f5, f2, f30
/* 80061C4C 0005DA8C 7C 9C DC 2E */ lfsx f4, r28, r27
/* 80061C50 0005DA90 EC 40 F0 28 */ fsubs f2, f0, f30
/* 80061C54 0005DA94 7C 1E DC 2E */ lfsx f0, r30, r27
/* 80061C58 0005DA98 7C 7D DC 2E */ lfsx f3, r29, r27
/* 80061C5C 0005DA9C EC 85 20 2A */ fadds f4, f5, f4
/* 80061C60 0005DAA0 EC 42 00 2A */ fadds f2, f2, f0
/* 80061C64 0005DAA4 7C 1F DC 2E */ lfsx f0, r31, r27
/* 80061C68 0005DAA8 EF A4 18 28 */ fsubs f29, f4, f3
/* 80061C6C 0005DAAC EF 62 00 28 */ fsubs f27, f2, f0
/* 80061C70 0005DAB0 4B FB 27 D5 */ bl sin
/* 80061C74 0005DAB4 FC 40 08 18 */ frsp f2, f1
/* 80061C78 0005DAB8 7C 17 DC 2E */ lfsx f0, r23, r27
/* 80061C7C 0005DABC EC 3F 00 32 */ fmuls f1, f31, f0
/* 80061C80 0005DAC0 EF 9B 00 B2 */ fmuls f28, f27, f2
/* 80061C84 0005DAC4 4B FB 22 B9 */ bl cos
/* 80061C88 0005DAC8 FC 20 08 18 */ frsp f1, f1
/* 80061C8C 0005DACC 7C 1D DC 2E */ lfsx f0, r29, r27
/* 80061C90 0005DAD0 EC 3D 00 72 */ fmuls f1, f29, f1
/* 80061C94 0005DAD4 EC 21 E0 28 */ fsubs f1, f1, f28
/* 80061C98 0005DAD8 EC 00 08 2A */ fadds f0, f0, f1
/* 80061C9C 0005DADC FC 00 00 1E */ fctiwz f0, f0
/* 80061CA0 0005DAE0 D8 01 00 18 */ stfd f0, 0x18(r1)
/* 80061CA4 0005DAE4 80 01 00 1C */ lwz r0, 0x1c(r1)
/* 80061CA8 0005DAE8 B0 16 00 08 */ sth r0, 0x8(r22)
/* 80061CAC 0005DAEC 7C 17 DC 2E */ lfsx f0, r23, r27
/* 80061CB0 0005DAF0 EC 3F 00 32 */ fmuls f1, f31, f0
/* 80061CB4 0005DAF4 4B FB 22 89 */ bl cos
/* 80061CB8 0005DAF8 FC 40 08 18 */ frsp f2, f1
/* 80061CBC 0005DAFC 7C 17 DC 2E */ lfsx f0, r23, r27
/* 80061CC0 0005DB00 EC 3F 00 32 */ fmuls f1, f31, f0
/* 80061CC4 0005DB04 EF 9B 00 B2 */ fmuls f28, f27, f2
/* 80061CC8 0005DB08 4B FB 27 7D */ bl sin
/* 80061CCC 0005DB0C FC 20 08 18 */ frsp f1, f1
/* 80061CD0 0005DB10 80 18 00 00 */ lwz r0, 0x0(r24)
/* 80061CD4 0005DB14 7C 1F DC 2E */ lfsx f0, r31, r27
/* 80061CD8 0005DB18 7C 60 D2 14 */ add r3, r0, r26
/* 80061CDC 0005DB1C EC 3D 00 72 */ fmuls f1, f29, f1
/* 80061CE0 0005DB20 EC 21 E0 2A */ fadds f1, f1, f28
/* 80061CE4 0005DB24 EC 00 08 2A */ fadds f0, f0, f1
/* 80061CE8 0005DB28 FC 00 00 1E */ fctiwz f0, f0
/* 80061CEC 0005DB2C D8 01 00 20 */ stfd f0, 0x20(r1)
/* 80061CF0 0005DB30 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80061CF4 0005DB34 B0 03 00 0A */ sth r0, 0xa(r3)
.global lbl_80061CF8
lbl_80061CF8:
/* 80061CF8 0005DB38 3B 39 00 01 */ addi r25, r25, 0x1
/* 80061CFC 0005DB3C 28 19 00 04 */ cmplwi r25, 0x4
/* 80061D00 0005DB40 41 80 FE FC */ blt lbl_80061BFC
.global lbl_80061D04
lbl_80061D04:
/* 80061D04 0005DB44 39 61 00 50 */ addi r11, r1, 0x50
/* 80061D08 0005DB48 E3 E1 00 98 */ psq_l f31, 0x98(r1), 0, qr0
/* 80061D0C 0005DB4C CB E1 00 90 */ lfd f31, 0x90(r1)
/* 80061D10 0005DB50 E3 C1 00 88 */ psq_l f30, 0x88(r1), 0, qr0
/* 80061D14 0005DB54 CB C1 00 80 */ lfd f30, 0x80(r1)
/* 80061D18 0005DB58 E3 A1 00 78 */ psq_l f29, 0x78(r1), 0, qr0
/* 80061D1C 0005DB5C CB A1 00 70 */ lfd f29, 0x70(r1)
/* 80061D20 0005DB60 E3 81 00 68 */ psq_l f28, 0x68(r1), 0, qr0
/* 80061D24 0005DB64 CB 81 00 60 */ lfd f28, 0x60(r1)
/* 80061D28 0005DB68 E3 61 00 58 */ psq_l f27, 0x58(r1), 0, qr0
/* 80061D2C 0005DB6C CB 61 00 50 */ lfd f27, 0x50(r1)
/* 80061D30 0005DB70 4B FA 56 45 */ bl lbl_80007374
/* 80061D34 0005DB74 80 01 00 A4 */ lwz r0, 0xa4(r1)
/* 80061D38 0005DB78 7C 08 03 A6 */ mtlr r0
/* 80061D3C 0005DB7C 38 21 00 A0 */ addi r1, r1, 0xa0
/* 80061D40 0005DB80 4E 80 00 20 */ blr
/* 80061D44 0005DB84 00 00 00 00 */ .4byte 0x00000000
/* 80061D48 0005DB88 00 00 00 00 */ .4byte 0x00000000
/* 80061D4C 0005DB8C 00 00 00 00 */ .4byte 0x00000000
.global __parse_dpdex_data
__parse_dpdex_data:
/* 80061D50 0005DB90 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80061D54 0005DB94 54 A3 1D 78 */ rlwinm r3, r5, 3, 21, 28
/* 80061D58 0005DB98 1C 05 00 0C */ mulli r0, r5, 0xc
/* 80061D5C 0005DB9C 89 26 00 00 */ lbz r9, 0x0(r6)
/* 80061D60 0005DBA0 89 06 00 02 */ lbz r8, 0x2(r6)
/* 80061D64 0005DBA4 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061D68 0005DBA8 7D 29 07 34 */ extsh r9, r9
/* 80061D6C 0005DBAC 55 08 25 AE */ rlwinm r8, r8, 4, 22, 23
/* 80061D70 0005DBB0 7C E7 1A 14 */ add r7, r7, r3
/* 80061D74 0005DBB4 7D 28 43 78 */ or r8, r9, r8
/* 80061D78 0005DBB8 B1 07 00 08 */ sth r8, 0x8(r7)
/* 80061D7C 0005DBBC 89 26 00 01 */ lbz r9, 0x1(r6)
/* 80061D80 0005DBC0 89 06 00 02 */ lbz r8, 0x2(r6)
/* 80061D84 0005DBC4 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061D88 0005DBC8 7D 29 07 34 */ extsh r9, r9
/* 80061D8C 0005DBCC 55 08 15 AE */ rlwinm r8, r8, 2, 22, 23
/* 80061D90 0005DBD0 7D 28 43 78 */ or r8, r9, r8
/* 80061D94 0005DBD4 7C E7 1A 14 */ add r7, r7, r3
/* 80061D98 0005DBD8 7D 08 07 34 */ extsh r8, r8
/* 80061D9C 0005DBDC 21 08 02 FF */ subfic r8, r8, 0x2ff
/* 80061DA0 0005DBE0 B1 07 00 0A */ sth r8, 0xa(r7)
/* 80061DA4 0005DBE4 89 06 00 07 */ lbz r8, 0x7(r6)
/* 80061DA8 0005DBE8 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061DAC 0005DBEC 55 09 44 2E */ rlwinm r9, r8, 8, 16, 23
/* 80061DB0 0005DBF0 89 06 00 08 */ lbz r8, 0x8(r6)
/* 80061DB4 0005DBF4 7D 29 07 34 */ extsh r9, r9
/* 80061DB8 0005DBF8 7C E7 02 14 */ add r7, r7, r0
/* 80061DBC 0005DBFC 7D 28 43 78 */ or r8, r9, r8
/* 80061DC0 0005DC00 55 08 34 32 */ rlwinm r8, r8, 6, 16, 25
/* 80061DC4 0005DC04 B1 07 00 32 */ sth r8, 0x32(r7)
/* 80061DC8 0005DC08 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061DCC 0005DC0C 89 06 00 02 */ lbz r8, 0x2(r6)
/* 80061DD0 0005DC10 7C E7 02 14 */ add r7, r7, r0
/* 80061DD4 0005DC14 55 08 07 3E */ clrlwi r8, r8, 28
/* 80061DD8 0005DC18 99 07 00 34 */ stb r8, 0x34(r7)
/* 80061DDC 0005DC1C 89 46 00 03 */ lbz r10, 0x3(r6)
/* 80061DE0 0005DC20 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061DE4 0005DC24 7D 48 07 74 */ extsb r8, r10
/* 80061DE8 0005DC28 39 28 00 01 */ addi r9, r8, 0x1
/* 80061DEC 0005DC2C 7C E7 02 14 */ add r7, r7, r0
/* 80061DF0 0005DC30 21 08 FF FF */ subfic r8, r8, -0x1
/* 80061DF4 0005DC34 7D 28 40 F8 */ nor r8, r9, r8
/* 80061DF8 0005DC38 7D 08 FE 70 */ srawi r8, r8, 31
/* 80061DFC 0005DC3C 7D 48 40 78 */ andc r8, r10, r8
/* 80061E00 0005DC40 B1 07 00 2A */ sth r8, 0x2a(r7)
/* 80061E04 0005DC44 89 46 00 04 */ lbz r10, 0x4(r6)
/* 80061E08 0005DC48 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061E0C 0005DC4C 7D 48 07 74 */ extsb r8, r10
/* 80061E10 0005DC50 39 28 00 01 */ addi r9, r8, 0x1
/* 80061E14 0005DC54 7C E7 02 14 */ add r7, r7, r0
/* 80061E18 0005DC58 21 08 FF FF */ subfic r8, r8, -0x1
/* 80061E1C 0005DC5C 7D 28 40 F8 */ nor r8, r9, r8
/* 80061E20 0005DC60 7D 08 FE 70 */ srawi r8, r8, 31
/* 80061E24 0005DC64 7D 48 40 78 */ andc r8, r10, r8
/* 80061E28 0005DC68 B1 07 00 2C */ sth r8, 0x2c(r7)
/* 80061E2C 0005DC6C 89 46 00 05 */ lbz r10, 0x5(r6)
/* 80061E30 0005DC70 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061E34 0005DC74 7D 48 07 74 */ extsb r8, r10
/* 80061E38 0005DC78 39 28 00 01 */ addi r9, r8, 0x1
/* 80061E3C 0005DC7C 7C E7 02 14 */ add r7, r7, r0
/* 80061E40 0005DC80 21 08 FF FF */ subfic r8, r8, -0x1
/* 80061E44 0005DC84 7D 28 40 F8 */ nor r8, r9, r8
/* 80061E48 0005DC88 7D 08 FE 70 */ srawi r8, r8, 31
/* 80061E4C 0005DC8C 7D 48 40 78 */ andc r8, r10, r8
/* 80061E50 0005DC90 B1 07 00 2E */ sth r8, 0x2e(r7)
/* 80061E54 0005DC94 89 26 00 06 */ lbz r9, 0x6(r6)
/* 80061E58 0005DC98 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80061E5C 0005DC9C 7D 27 07 74 */ extsb r7, r9
/* 80061E60 0005DCA0 39 07 00 01 */ addi r8, r7, 0x1
/* 80061E64 0005DCA4 7C C6 02 14 */ add r6, r6, r0
/* 80061E68 0005DCA8 20 E7 FF FF */ subfic r7, r7, -0x1
/* 80061E6C 0005DCAC 7D 07 38 F8 */ nor r7, r8, r7
/* 80061E70 0005DCB0 7C E7 FE 70 */ srawi r7, r7, 31
/* 80061E74 0005DCB4 7D 27 38 78 */ andc r7, r9, r7
/* 80061E78 0005DCB8 B0 E6 00 30 */ sth r7, 0x30(r6)
/* 80061E7C 0005DCBC 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80061E80 0005DCC0 3C C0 43 30 */ lis r6, 0x4330
/* 80061E84 0005DCC4 90 C1 00 08 */ stw r6, 0x8(r1)
/* 80061E88 0005DCC8 7D 07 02 14 */ add r8, r7, r0
/* 80061E8C 0005DCCC C8 62 88 18 */ lfd f3, "@5038"@sda21(r2)
/* 80061E90 0005DCD0 A8 E8 00 2A */ lha r7, 0x2a(r8)
/* 80061E94 0005DCD4 90 C1 00 10 */ stw r6, 0x10(r1)
/* 80061E98 0005DCD8 54 E6 18 38 */ slwi r6, r7, 3
/* 80061E9C 0005DCDC C0 02 88 38 */ lfs f0, "@5731"@sda21(r2)
/* 80061EA0 0005DCE0 B0 C8 00 2A */ sth r6, 0x2a(r8)
/* 80061EA4 0005DCE4 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80061EA8 0005DCE8 7C E6 02 14 */ add r7, r6, r0
/* 80061EAC 0005DCEC A8 C7 00 2C */ lha r6, 0x2c(r7)
/* 80061EB0 0005DCF0 54 C6 18 38 */ slwi r6, r6, 3
/* 80061EB4 0005DCF4 7C C6 07 34 */ extsh r6, r6
/* 80061EB8 0005DCF8 20 C6 02 FF */ subfic r6, r6, 0x2ff
/* 80061EBC 0005DCFC B0 C7 00 2C */ sth r6, 0x2c(r7)
/* 80061EC0 0005DD00 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80061EC4 0005DD04 7C E6 02 14 */ add r7, r6, r0
/* 80061EC8 0005DD08 A8 C7 00 2E */ lha r6, 0x2e(r7)
/* 80061ECC 0005DD0C 54 C6 18 38 */ slwi r6, r6, 3
/* 80061ED0 0005DD10 B0 C7 00 2E */ sth r6, 0x2e(r7)
/* 80061ED4 0005DD14 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80061ED8 0005DD18 7C E6 02 14 */ add r7, r6, r0
/* 80061EDC 0005DD1C A8 C7 00 30 */ lha r6, 0x30(r7)
/* 80061EE0 0005DD20 54 C6 18 38 */ slwi r6, r6, 3
/* 80061EE4 0005DD24 7C C6 07 34 */ extsh r6, r6
/* 80061EE8 0005DD28 20 C6 02 FF */ subfic r6, r6, 0x2ff
/* 80061EEC 0005DD2C B0 C7 00 30 */ sth r6, 0x30(r7)
/* 80061EF0 0005DD30 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80061EF4 0005DD34 7C E6 02 14 */ add r7, r6, r0
/* 80061EF8 0005DD38 7C C6 1A 14 */ add r6, r6, r3
/* 80061EFC 0005DD3C 88 E7 00 34 */ lbz r7, 0x34(r7)
/* 80061F00 0005DD40 7C E7 07 74 */ extsb r7, r7
/* 80061F04 0005DD44 6C E7 80 00 */ xoris r7, r7, 0x8000
/* 80061F08 0005DD48 90 E1 00 0C */ stw r7, 0xc(r1)
/* 80061F0C 0005DD4C 90 E1 00 14 */ stw r7, 0x14(r1)
/* 80061F10 0005DD50 C8 41 00 08 */ lfd f2, 0x8(r1)
/* 80061F14 0005DD54 C8 21 00 10 */ lfd f1, 0x10(r1)
/* 80061F18 0005DD58 EC 42 18 28 */ fsubs f2, f2, f3
/* 80061F1C 0005DD5C EC 21 18 28 */ fsubs f1, f1, f3
/* 80061F20 0005DD60 EC 22 00 72 */ fmuls f1, f2, f1
/* 80061F24 0005DD64 EC 00 00 72 */ fmuls f0, f0, f1
/* 80061F28 0005DD68 FC 00 00 1E */ fctiwz f0, f0
/* 80061F2C 0005DD6C D8 01 00 18 */ stfd f0, 0x18(r1)
/* 80061F30 0005DD70 80 E1 00 1C */ lwz r7, 0x1c(r1)
/* 80061F34 0005DD74 B0 E6 00 0C */ sth r7, 0xc(r6)
/* 80061F38 0005DD78 81 04 00 00 */ lwz r8, 0x0(r4)
/* 80061F3C 0005DD7C 7C E8 1A 14 */ add r7, r8, r3
/* 80061F40 0005DD80 A0 C7 00 0C */ lhz r6, 0xc(r7)
/* 80061F44 0005DD84 2C 06 00 00 */ cmpwi r6, 0x0
/* 80061F48 0005DD88 41 82 00 2C */ beq lbl_80061F74
/* 80061F4C 0005DD8C A8 C7 00 08 */ lha r6, 0x8(r7)
/* 80061F50 0005DD90 2C 06 03 FF */ cmpwi r6, 0x3ff
/* 80061F54 0005DD94 41 82 00 20 */ beq lbl_80061F74
/* 80061F58 0005DD98 A8 C7 00 0A */ lha r6, 0xa(r7)
/* 80061F5C 0005DD9C 2C 06 02 FF */ cmpwi r6, 0x2ff
/* 80061F60 0005DDA0 41 82 00 14 */ beq lbl_80061F74
/* 80061F64 0005DDA4 7C C8 02 14 */ add r6, r8, r0
/* 80061F68 0005DDA8 88 C6 00 34 */ lbz r6, 0x34(r6)
/* 80061F6C 0005DDAC 2C 06 00 0F */ cmpwi r6, 0xf
/* 80061F70 0005DDB0 40 82 00 44 */ bne lbl_80061FB4
.global lbl_80061F74
lbl_80061F74:
/* 80061F74 0005DDB4 7C C8 1A 14 */ add r6, r8, r3
/* 80061F78 0005DDB8 39 00 00 00 */ li r8, 0x0
/* 80061F7C 0005DDBC B1 06 00 08 */ sth r8, 0x8(r6)
/* 80061F80 0005DDC0 38 E0 02 FF */ li r7, 0x2ff
/* 80061F84 0005DDC4 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80061F88 0005DDC8 7C C6 1A 14 */ add r6, r6, r3
/* 80061F8C 0005DDCC B0 E6 00 0A */ sth r7, 0xa(r6)
/* 80061F90 0005DDD0 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80061F94 0005DDD4 7C C6 1A 14 */ add r6, r6, r3
/* 80061F98 0005DDD8 B1 06 00 0C */ sth r8, 0xc(r6)
/* 80061F9C 0005DDDC 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80061FA0 0005DDE0 7C C6 02 14 */ add r6, r6, r0
/* 80061FA4 0005DDE4 B1 06 00 32 */ sth r8, 0x32(r6)
/* 80061FA8 0005DDE8 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80061FAC 0005DDEC 7C C6 02 14 */ add r6, r6, r0
/* 80061FB0 0005DDF0 99 06 00 34 */ stb r8, 0x34(r6)
.global lbl_80061FB4
lbl_80061FB4:
/* 80061FB4 0005DDF4 80 04 00 00 */ lwz r0, 0x0(r4)
/* 80061FB8 0005DDF8 7C 60 1A 14 */ add r3, r0, r3
/* 80061FBC 0005DDFC 98 A3 00 0E */ stb r5, 0xe(r3)
/* 80061FC0 0005DE00 38 21 00 20 */ addi r1, r1, 0x20
/* 80061FC4 0005DE04 4E 80 00 20 */ blr
/* 80061FC8 0005DE08 00 00 00 00 */ .4byte 0x00000000
/* 80061FCC 0005DE0C 00 00 00 00 */ .4byte 0x00000000
.global __parse_cl_data
__parse_cl_data:
/* 80061FD0 0005DE10 3D 00 80 4C */ lis r8, __rvl_p_wpadcb@ha
/* 80061FD4 0005DE14 2C 05 00 02 */ cmpwi r5, 0x2
/* 80061FD8 0005DE18 54 60 10 3A */ slwi r0, r3, 2
/* 80061FDC 0005DE1C 39 08 1A 50 */ addi r8, r8, __rvl_p_wpadcb@l
/* 80061FE0 0005DE20 7D 08 00 2E */ lwzx r8, r8, r0
/* 80061FE4 0005DE24 41 82 00 10 */ beq lbl_80061FF4
/* 80061FE8 0005DE28 2C 05 00 03 */ cmpwi r5, 0x3
/* 80061FEC 0005DE2C 41 82 01 08 */ beq lbl_800620F4
/* 80061FF0 0005DE30 48 00 01 98 */ b lbl_80062188
.global lbl_80061FF4
lbl_80061FF4:
/* 80061FF4 0005DE34 88 A6 00 00 */ lbz r5, 0x0(r6)
/* 80061FF8 0005DE38 28 07 00 09 */ cmplwi r7, 0x9
/* 80061FFC 0005DE3C 88 06 00 04 */ lbz r0, 0x4(r6)
/* 80062000 0005DE40 54 A9 10 3A */ slwi r9, r5, 2
/* 80062004 0005DE44 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062008 0005DE48 7D 29 07 34 */ extsh r9, r9
/* 8006200C 0005DE4C 54 00 07 BE */ clrlwi r0, r0, 30
/* 80062010 0005DE50 55 29 00 3A */ clrrwi r9, r9, 2
/* 80062014 0005DE54 7D 29 07 34 */ extsh r9, r9
/* 80062018 0005DE58 7D 20 03 78 */ or r0, r9, r0
/* 8006201C 0005DE5C B0 05 00 2C */ sth r0, 0x2c(r5)
/* 80062020 0005DE60 88 06 00 01 */ lbz r0, 0x1(r6)
/* 80062024 0005DE64 89 26 00 04 */ lbz r9, 0x4(r6)
/* 80062028 0005DE68 54 00 10 3A */ slwi r0, r0, 2
/* 8006202C 0005DE6C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062030 0005DE70 7C 0A 07 34 */ extsh r10, r0
/* 80062034 0005DE74 55 4A 00 3A */ clrrwi r10, r10, 2
/* 80062038 0005DE78 55 20 F7 BE */ extrwi r0, r9, 2, 28
/* 8006203C 0005DE7C 7D 29 16 70 */ srawi r9, r9, 2
/* 80062040 0005DE80 7D 49 07 34 */ extsh r9, r10
/* 80062044 0005DE84 7D 20 03 78 */ or r0, r9, r0
/* 80062048 0005DE88 B0 05 00 30 */ sth r0, 0x30(r5)
/* 8006204C 0005DE8C 88 06 00 02 */ lbz r0, 0x2(r6)
/* 80062050 0005DE90 89 26 00 04 */ lbz r9, 0x4(r6)
/* 80062054 0005DE94 54 00 10 3A */ slwi r0, r0, 2
/* 80062058 0005DE98 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 8006205C 0005DE9C 7C 0A 07 34 */ extsh r10, r0
/* 80062060 0005DEA0 55 20 E7 BE */ extrwi r0, r9, 2, 26
/* 80062064 0005DEA4 7D 29 26 70 */ srawi r9, r9, 4
/* 80062068 0005DEA8 55 4A 00 3A */ clrrwi r10, r10, 2
/* 8006206C 0005DEAC 7D 49 07 34 */ extsh r9, r10
/* 80062070 0005DEB0 7D 20 03 78 */ or r0, r9, r0
/* 80062074 0005DEB4 B0 05 00 2E */ sth r0, 0x2e(r5)
/* 80062078 0005DEB8 88 A6 00 03 */ lbz r5, 0x3(r6)
/* 8006207C 0005DEBC 88 06 00 04 */ lbz r0, 0x4(r6)
/* 80062080 0005DEC0 54 A9 10 3A */ slwi r9, r5, 2
/* 80062084 0005DEC4 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062088 0005DEC8 7D 29 07 34 */ extsh r9, r9
/* 8006208C 0005DECC 7C 00 36 70 */ srawi r0, r0, 6
/* 80062090 0005DED0 55 29 00 3A */ clrrwi r9, r9, 2
/* 80062094 0005DED4 7D 29 07 34 */ extsh r9, r9
/* 80062098 0005DED8 7C 00 07 34 */ extsh r0, r0
/* 8006209C 0005DEDC 7D 20 03 78 */ or r0, r9, r0
/* 800620A0 0005DEE0 B0 05 00 32 */ sth r0, 0x32(r5)
/* 800620A4 0005DEE4 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800620A8 0005DEE8 88 06 00 05 */ lbz r0, 0x5(r6)
/* 800620AC 0005DEEC 98 05 00 34 */ stb r0, 0x34(r5)
/* 800620B0 0005DEF0 40 80 00 0C */ bge lbl_800620BC
/* 800620B4 0005DEF4 38 00 00 00 */ li r0, 0x0
/* 800620B8 0005DEF8 48 00 00 08 */ b lbl_800620C0
.global lbl_800620BC
lbl_800620BC:
/* 800620BC 0005DEFC 88 06 00 06 */ lbz r0, 0x6(r6)
.global lbl_800620C0
lbl_800620C0:
/* 800620C0 0005DF00 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800620C4 0005DF04 28 07 00 09 */ cmplwi r7, 0x9
/* 800620C8 0005DF08 98 05 00 35 */ stb r0, 0x35(r5)
/* 800620CC 0005DF0C 40 80 00 0C */ bge lbl_800620D8
/* 800620D0 0005DF10 38 00 00 00 */ li r0, 0x0
/* 800620D4 0005DF14 48 00 00 14 */ b lbl_800620E8
.global lbl_800620D8
lbl_800620D8:
/* 800620D8 0005DF18 88 A6 00 07 */ lbz r5, 0x7(r6)
/* 800620DC 0005DF1C 88 06 00 08 */ lbz r0, 0x8(r6)
/* 800620E0 0005DF20 50 A0 44 2E */ rlwimi r0, r5, 8, 16, 23
/* 800620E4 0005DF24 68 00 FF FF */ xori r0, r0, 0xffff
.global lbl_800620E8
lbl_800620E8:
/* 800620E8 0005DF28 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800620EC 0005DF2C B0 05 00 2A */ sth r0, 0x2a(r5)
/* 800620F0 0005DF30 48 00 01 48 */ b lbl_80062238
.global lbl_800620F4
lbl_800620F4:
/* 800620F4 0005DF34 88 06 00 00 */ lbz r0, 0x0(r6)
/* 800620F8 0005DF38 28 07 00 08 */ cmplwi r7, 0x8
/* 800620FC 0005DF3C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062100 0005DF40 7C 00 07 34 */ extsh r0, r0
/* 80062104 0005DF44 54 00 10 3A */ slwi r0, r0, 2
/* 80062108 0005DF48 B0 05 00 2C */ sth r0, 0x2c(r5)
/* 8006210C 0005DF4C 88 06 00 01 */ lbz r0, 0x1(r6)
/* 80062110 0005DF50 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062114 0005DF54 7C 00 07 34 */ extsh r0, r0
/* 80062118 0005DF58 54 00 10 3A */ slwi r0, r0, 2
/* 8006211C 0005DF5C B0 05 00 30 */ sth r0, 0x30(r5)
/* 80062120 0005DF60 88 06 00 02 */ lbz r0, 0x2(r6)
/* 80062124 0005DF64 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062128 0005DF68 7C 00 07 34 */ extsh r0, r0
/* 8006212C 0005DF6C 54 00 10 3A */ slwi r0, r0, 2
/* 80062130 0005DF70 B0 05 00 2E */ sth r0, 0x2e(r5)
/* 80062134 0005DF74 88 06 00 03 */ lbz r0, 0x3(r6)
/* 80062138 0005DF78 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 8006213C 0005DF7C 7C 00 07 34 */ extsh r0, r0
/* 80062140 0005DF80 54 00 10 3A */ slwi r0, r0, 2
/* 80062144 0005DF84 B0 05 00 32 */ sth r0, 0x32(r5)
/* 80062148 0005DF88 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 8006214C 0005DF8C 88 06 00 04 */ lbz r0, 0x4(r6)
/* 80062150 0005DF90 98 05 00 34 */ stb r0, 0x34(r5)
/* 80062154 0005DF94 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062158 0005DF98 88 06 00 05 */ lbz r0, 0x5(r6)
/* 8006215C 0005DF9C 98 05 00 35 */ stb r0, 0x35(r5)
/* 80062160 0005DFA0 40 80 00 0C */ bge lbl_8006216C
/* 80062164 0005DFA4 38 00 00 00 */ li r0, 0x0
/* 80062168 0005DFA8 48 00 00 14 */ b lbl_8006217C
.global lbl_8006216C
lbl_8006216C:
/* 8006216C 0005DFAC 88 A6 00 06 */ lbz r5, 0x6(r6)
/* 80062170 0005DFB0 88 06 00 07 */ lbz r0, 0x7(r6)
/* 80062174 0005DFB4 50 A0 44 2E */ rlwimi r0, r5, 8, 16, 23
/* 80062178 0005DFB8 68 00 FF FF */ xori r0, r0, 0xffff
.global lbl_8006217C
lbl_8006217C:
/* 8006217C 0005DFBC 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062180 0005DFC0 B0 05 00 2A */ sth r0, 0x2a(r5)
/* 80062184 0005DFC4 48 00 00 B4 */ b lbl_80062238
.global lbl_80062188
lbl_80062188:
/* 80062188 0005DFC8 88 06 00 00 */ lbz r0, 0x0(r6)
/* 8006218C 0005DFCC 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062190 0005DFD0 54 00 25 B6 */ rlwinm r0, r0, 4, 22, 27
/* 80062194 0005DFD4 B0 05 00 2C */ sth r0, 0x2c(r5)
/* 80062198 0005DFD8 88 06 00 01 */ lbz r0, 0x1(r6)
/* 8006219C 0005DFDC 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800621A0 0005DFE0 54 00 25 B6 */ rlwinm r0, r0, 4, 22, 27
/* 800621A4 0005DFE4 B0 05 00 2E */ sth r0, 0x2e(r5)
/* 800621A8 0005DFE8 88 06 00 02 */ lbz r0, 0x2(r6)
/* 800621AC 0005DFEC 88 E6 00 01 */ lbz r7, 0x1(r6)
/* 800621B0 0005DFF0 7C 0A 3E 70 */ srawi r10, r0, 7
/* 800621B4 0005DFF4 89 26 00 00 */ lbz r9, 0x0(r6)
/* 800621B8 0005DFF8 54 E0 DF 7C */ rlwinm r0, r7, 27, 29, 30
/* 800621BC 0005DFFC 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800621C0 0005E000 51 20 EE F8 */ rlwimi r0, r9, 29, 27, 28
/* 800621C4 0005E004 7D 4A 07 34 */ extsh r10, r10
/* 800621C8 0005E008 7D 40 03 78 */ or r0, r10, r0
/* 800621CC 0005E00C 7D 29 1E 70 */ srawi r9, r9, 3
/* 800621D0 0005E010 7C 00 07 34 */ extsh r0, r0
/* 800621D4 0005E014 7C E7 2E 70 */ srawi r7, r7, 5
/* 800621D8 0005E018 54 00 28 34 */ slwi r0, r0, 5
/* 800621DC 0005E01C B0 05 00 30 */ sth r0, 0x30(r5)
/* 800621E0 0005E020 88 06 00 02 */ lbz r0, 0x2(r6)
/* 800621E4 0005E024 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800621E8 0005E028 54 00 2D B4 */ rlwinm r0, r0, 5, 22, 26
/* 800621EC 0005E02C B0 05 00 32 */ sth r0, 0x32(r5)
/* 800621F0 0005E030 88 A6 00 02 */ lbz r5, 0x2(r6)
/* 800621F4 0005E034 88 06 00 03 */ lbz r0, 0x3(r6)
/* 800621F8 0005E038 7C A7 16 70 */ srawi r7, r5, 2
/* 800621FC 0005E03C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062200 0005E040 7C 00 2E 70 */ srawi r0, r0, 5
/* 80062204 0005E044 50 E0 06 F8 */ rlwimi r0, r7, 0, 27, 28
/* 80062208 0005E048 54 00 1E 38 */ rlwinm r0, r0, 3, 24, 28
/* 8006220C 0005E04C 98 05 00 34 */ stb r0, 0x34(r5)
/* 80062210 0005E050 88 06 00 03 */ lbz r0, 0x3(r6)
/* 80062214 0005E054 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062218 0005E058 54 00 1E 38 */ rlwinm r0, r0, 3, 24, 28
/* 8006221C 0005E05C 98 05 00 35 */ stb r0, 0x35(r5)
/* 80062220 0005E060 88 E6 00 04 */ lbz r7, 0x4(r6)
/* 80062224 0005E064 88 06 00 05 */ lbz r0, 0x5(r6)
/* 80062228 0005E068 50 E0 44 2E */ rlwimi r0, r7, 8, 16, 23
/* 8006222C 0005E06C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062230 0005E070 68 00 FF FF */ xori r0, r0, 0xffff
/* 80062234 0005E074 B0 05 00 2A */ sth r0, 0x2a(r5)
.global lbl_80062238
lbl_80062238:
/* 80062238 0005E078 88 08 09 05 */ lbz r0, 0x905(r8)
/* 8006223C 0005E07C 28 00 00 02 */ cmplwi r0, 0x2
/* 80062240 0005E080 40 82 00 48 */ bne lbl_80062288
/* 80062244 0005E084 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80062248 0005E088 A8 A6 00 2C */ lha r5, 0x2c(r6)
/* 8006224C 0005E08C 38 05 FE 00 */ addi r0, r5, -0x200
/* 80062250 0005E090 B0 06 00 2C */ sth r0, 0x2c(r6)
/* 80062254 0005E094 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80062258 0005E098 A8 A6 00 2E */ lha r5, 0x2e(r6)
/* 8006225C 0005E09C 38 05 FE 00 */ addi r0, r5, -0x200
/* 80062260 0005E0A0 B0 06 00 2E */ sth r0, 0x2e(r6)
/* 80062264 0005E0A4 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80062268 0005E0A8 A8 A6 00 30 */ lha r5, 0x30(r6)
/* 8006226C 0005E0AC 38 05 FE 00 */ addi r0, r5, -0x200
/* 80062270 0005E0B0 B0 06 00 30 */ sth r0, 0x30(r6)
/* 80062274 0005E0B4 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80062278 0005E0B8 A8 A6 00 32 */ lha r5, 0x32(r6)
/* 8006227C 0005E0BC 38 05 FE 00 */ addi r0, r5, -0x200
/* 80062280 0005E0C0 B0 06 00 32 */ sth r0, 0x32(r6)
/* 80062284 0005E0C4 48 00 00 2C */ b lbl_800622B0
.global lbl_80062288
lbl_80062288:
/* 80062288 0005E0C8 28 00 00 13 */ cmplwi r0, 0x13
/* 8006228C 0005E0CC 41 82 00 24 */ beq lbl_800622B0
/* 80062290 0005E0D0 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80062294 0005E0D4 A8 A6 00 2C */ lha r5, 0x2c(r6)
/* 80062298 0005E0D8 38 05 FE 00 */ addi r0, r5, -0x200
/* 8006229C 0005E0DC B0 06 00 2C */ sth r0, 0x2c(r6)
/* 800622A0 0005E0E0 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 800622A4 0005E0E4 A8 A6 00 2E */ lha r5, 0x2e(r6)
/* 800622A8 0005E0E8 38 05 FE 00 */ addi r0, r5, -0x200
/* 800622AC 0005E0EC B0 06 00 2E */ sth r0, 0x2e(r6)
.global lbl_800622B0
lbl_800622B0:
/* 800622B0 0005E0F0 88 08 0B 09 */ lbz r0, 0xb09(r8)
/* 800622B4 0005E0F4 2C 00 00 00 */ cmpwi r0, 0x0
/* 800622B8 0005E0F8 40 82 00 94 */ bne lbl_8006234C
/* 800622BC 0005E0FC 38 00 00 01 */ li r0, 0x1
/* 800622C0 0005E100 98 08 0B 09 */ stb r0, 0xb09(r8)
/* 800622C4 0005E104 88 08 09 05 */ lbz r0, 0x905(r8)
/* 800622C8 0005E108 28 00 00 13 */ cmplwi r0, 0x13
/* 800622CC 0005E10C 41 82 00 20 */ beq lbl_800622EC
/* 800622D0 0005E110 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800622D4 0005E114 A8 05 00 2C */ lha r0, 0x2c(r5)
/* 800622D8 0005E118 B0 08 08 84 */ sth r0, 0x884(r8)
/* 800622DC 0005E11C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800622E0 0005E120 A8 05 00 2E */ lha r0, 0x2e(r5)
/* 800622E4 0005E124 B0 08 08 8A */ sth r0, 0x88a(r8)
/* 800622E8 0005E128 48 00 00 10 */ b lbl_800622F8
.global lbl_800622EC
lbl_800622EC:
/* 800622EC 0005E12C 38 00 00 00 */ li r0, 0x0
/* 800622F0 0005E130 B0 08 08 84 */ sth r0, 0x884(r8)
/* 800622F4 0005E134 B0 08 08 8A */ sth r0, 0x88a(r8)
.global lbl_800622F8
lbl_800622F8:
/* 800622F8 0005E138 88 08 09 05 */ lbz r0, 0x905(r8)
/* 800622FC 0005E13C 28 00 00 02 */ cmplwi r0, 0x2
/* 80062300 0005E140 40 82 00 38 */ bne lbl_80062338
/* 80062304 0005E144 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062308 0005E148 A8 05 00 30 */ lha r0, 0x30(r5)
/* 8006230C 0005E14C B0 08 08 90 */ sth r0, 0x890(r8)
/* 80062310 0005E150 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062314 0005E154 A8 05 00 32 */ lha r0, 0x32(r5)
/* 80062318 0005E158 B0 08 08 96 */ sth r0, 0x896(r8)
/* 8006231C 0005E15C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062320 0005E160 88 05 00 34 */ lbz r0, 0x34(r5)
/* 80062324 0005E164 98 08 08 9C */ stb r0, 0x89c(r8)
/* 80062328 0005E168 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 8006232C 0005E16C 88 05 00 35 */ lbz r0, 0x35(r5)
/* 80062330 0005E170 98 08 08 9D */ stb r0, 0x89d(r8)
/* 80062334 0005E174 48 00 00 18 */ b lbl_8006234C
.global lbl_80062338
lbl_80062338:
/* 80062338 0005E178 38 00 00 00 */ li r0, 0x0
/* 8006233C 0005E17C B0 08 08 90 */ sth r0, 0x890(r8)
/* 80062340 0005E180 B0 08 08 96 */ sth r0, 0x896(r8)
/* 80062344 0005E184 98 08 08 9C */ stb r0, 0x89c(r8)
/* 80062348 0005E188 98 08 08 9D */ stb r0, 0x89d(r8)
.global lbl_8006234C
lbl_8006234C:
/* 8006234C 0005E18C 88 08 09 05 */ lbz r0, 0x905(r8)
/* 80062350 0005E190 28 00 00 13 */ cmplwi r0, 0x13
/* 80062354 0005E194 41 82 00 70 */ beq lbl_800623C4
/* 80062358 0005E198 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 8006235C 0005E19C A8 A8 08 84 */ lha r5, 0x884(r8)
/* 80062360 0005E1A0 A8 06 00 2C */ lha r0, 0x2c(r6)
/* 80062364 0005E1A4 7C 05 00 50 */ subf r0, r5, r0
/* 80062368 0005E1A8 7C 00 07 34 */ extsh r0, r0
/* 8006236C 0005E1AC 2C 00 FE 00 */ cmpwi r0, -0x200
/* 80062370 0005E1B0 7C 05 03 78 */ mr r5, r0
/* 80062374 0005E1B4 40 80 00 08 */ bge lbl_8006237C
/* 80062378 0005E1B8 38 A0 FE 00 */ li r5, -0x200
.global lbl_8006237C
lbl_8006237C:
/* 8006237C 0005E1BC 2C 00 01 FF */ cmpwi r0, 0x1ff
/* 80062380 0005E1C0 40 81 00 08 */ ble lbl_80062388
/* 80062384 0005E1C4 38 A0 01 FF */ li r5, 0x1ff
.global lbl_80062388
lbl_80062388:
/* 80062388 0005E1C8 B0 A6 00 2C */ sth r5, 0x2c(r6)
/* 8006238C 0005E1CC 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80062390 0005E1D0 A8 A8 08 8A */ lha r5, 0x88a(r8)
/* 80062394 0005E1D4 A8 06 00 2E */ lha r0, 0x2e(r6)
/* 80062398 0005E1D8 7C 05 00 50 */ subf r0, r5, r0
/* 8006239C 0005E1DC 7C 00 07 34 */ extsh r0, r0
/* 800623A0 0005E1E0 2C 00 FE 00 */ cmpwi r0, -0x200
/* 800623A4 0005E1E4 7C 05 03 78 */ mr r5, r0
/* 800623A8 0005E1E8 40 80 00 08 */ bge lbl_800623B0
/* 800623AC 0005E1EC 38 A0 FE 00 */ li r5, -0x200
.global lbl_800623B0
lbl_800623B0:
/* 800623B0 0005E1F0 2C 00 01 FF */ cmpwi r0, 0x1ff
/* 800623B4 0005E1F4 40 81 00 08 */ ble lbl_800623BC
/* 800623B8 0005E1F8 38 A0 01 FF */ li r5, 0x1ff
.global lbl_800623BC
lbl_800623BC:
/* 800623BC 0005E1FC B0 A6 00 2E */ sth r5, 0x2e(r6)
/* 800623C0 0005E200 48 00 00 64 */ b lbl_80062424
.global lbl_800623C4
lbl_800623C4:
/* 800623C4 0005E204 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 800623C8 0005E208 A8 A8 08 84 */ lha r5, 0x884(r8)
/* 800623CC 0005E20C A8 06 00 2C */ lha r0, 0x2c(r6)
/* 800623D0 0005E210 7C 05 00 50 */ subf r0, r5, r0
/* 800623D4 0005E214 7C 00 07 35 */ extsh. r0, r0
/* 800623D8 0005E218 7C 05 03 78 */ mr r5, r0
/* 800623DC 0005E21C 40 80 00 08 */ bge lbl_800623E4
/* 800623E0 0005E220 38 A0 00 00 */ li r5, 0x0
.global lbl_800623E4
lbl_800623E4:
/* 800623E4 0005E224 2C 00 04 00 */ cmpwi r0, 0x400
/* 800623E8 0005E228 40 81 00 08 */ ble lbl_800623F0
/* 800623EC 0005E22C 38 A0 04 00 */ li r5, 0x400
.global lbl_800623F0
lbl_800623F0:
/* 800623F0 0005E230 B0 A6 00 2C */ sth r5, 0x2c(r6)
/* 800623F4 0005E234 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 800623F8 0005E238 A8 A8 08 8A */ lha r5, 0x88a(r8)
/* 800623FC 0005E23C A8 06 00 2E */ lha r0, 0x2e(r6)
/* 80062400 0005E240 7C 05 00 50 */ subf r0, r5, r0
/* 80062404 0005E244 7C 00 07 35 */ extsh. r0, r0
/* 80062408 0005E248 7C 05 03 78 */ mr r5, r0
/* 8006240C 0005E24C 40 80 00 08 */ bge lbl_80062414
/* 80062410 0005E250 38 A0 00 00 */ li r5, 0x0
.global lbl_80062414
lbl_80062414:
/* 80062414 0005E254 2C 00 04 00 */ cmpwi r0, 0x400
/* 80062418 0005E258 40 81 00 08 */ ble lbl_80062420
/* 8006241C 0005E25C 38 A0 04 00 */ li r5, 0x400
.global lbl_80062420
lbl_80062420:
/* 80062420 0005E260 B0 A6 00 2E */ sth r5, 0x2e(r6)
.global lbl_80062424
lbl_80062424:
/* 80062424 0005E264 88 08 09 05 */ lbz r0, 0x905(r8)
/* 80062428 0005E268 28 00 00 02 */ cmplwi r0, 0x2
/* 8006242C 0005E26C 40 82 00 B8 */ bne lbl_800624E4
/* 80062430 0005E270 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80062434 0005E274 A8 A8 08 90 */ lha r5, 0x890(r8)
/* 80062438 0005E278 A8 06 00 30 */ lha r0, 0x30(r6)
/* 8006243C 0005E27C 7C 05 00 50 */ subf r0, r5, r0
/* 80062440 0005E280 7C 00 07 34 */ extsh r0, r0
/* 80062444 0005E284 2C 00 FE 00 */ cmpwi r0, -0x200
/* 80062448 0005E288 7C 05 03 78 */ mr r5, r0
/* 8006244C 0005E28C 40 80 00 08 */ bge lbl_80062454
/* 80062450 0005E290 38 A0 FE 00 */ li r5, -0x200
.global lbl_80062454
lbl_80062454:
/* 80062454 0005E294 2C 00 01 FF */ cmpwi r0, 0x1ff
/* 80062458 0005E298 40 81 00 08 */ ble lbl_80062460
/* 8006245C 0005E29C 38 A0 01 FF */ li r5, 0x1ff
.global lbl_80062460
lbl_80062460:
/* 80062460 0005E2A0 B0 A6 00 30 */ sth r5, 0x30(r6)
/* 80062464 0005E2A4 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80062468 0005E2A8 A8 A8 08 96 */ lha r5, 0x896(r8)
/* 8006246C 0005E2AC A8 06 00 32 */ lha r0, 0x32(r6)
/* 80062470 0005E2B0 7C 05 00 50 */ subf r0, r5, r0
/* 80062474 0005E2B4 7C 00 07 34 */ extsh r0, r0
/* 80062478 0005E2B8 2C 00 FE 00 */ cmpwi r0, -0x200
/* 8006247C 0005E2BC 7C 05 03 78 */ mr r5, r0
/* 80062480 0005E2C0 40 80 00 08 */ bge lbl_80062488
/* 80062484 0005E2C4 38 A0 FE 00 */ li r5, -0x200
.global lbl_80062488
lbl_80062488:
/* 80062488 0005E2C8 2C 00 01 FF */ cmpwi r0, 0x1ff
/* 8006248C 0005E2CC 40 81 00 08 */ ble lbl_80062494
/* 80062490 0005E2D0 38 A0 01 FF */ li r5, 0x1ff
.global lbl_80062494
lbl_80062494:
/* 80062494 0005E2D4 B0 A6 00 32 */ sth r5, 0x32(r6)
/* 80062498 0005E2D8 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 8006249C 0005E2DC 88 05 00 34 */ lbz r0, 0x34(r5)
/* 800624A0 0005E2E0 28 00 00 48 */ cmplwi r0, 0x48
/* 800624A4 0005E2E4 40 81 00 10 */ ble lbl_800624B4
/* 800624A8 0005E2E8 A0 05 00 2A */ lhz r0, 0x2a(r5)
/* 800624AC 0005E2EC 60 00 20 00 */ ori r0, r0, 0x2000
/* 800624B0 0005E2F0 B0 05 00 2A */ sth r0, 0x2a(r5)
.global lbl_800624B4
lbl_800624B4:
/* 800624B4 0005E2F4 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800624B8 0005E2F8 88 05 00 35 */ lbz r0, 0x35(r5)
/* 800624BC 0005E2FC 28 00 00 48 */ cmplwi r0, 0x48
/* 800624C0 0005E300 40 81 00 10 */ ble lbl_800624D0
/* 800624C4 0005E304 A0 05 00 2A */ lhz r0, 0x2a(r5)
/* 800624C8 0005E308 60 00 02 00 */ ori r0, r0, 0x200
/* 800624CC 0005E30C B0 05 00 2A */ sth r0, 0x2a(r5)
.global lbl_800624D0
lbl_800624D0:
/* 800624D0 0005E310 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800624D4 0005E314 38 00 00 00 */ li r0, 0x0
/* 800624D8 0005E318 98 05 00 34 */ stb r0, 0x34(r5)
/* 800624DC 0005E31C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800624E0 0005E320 98 05 00 35 */ stb r0, 0x35(r5)
.global lbl_800624E4
lbl_800624E4:
/* 800624E4 0005E324 38 AD E9 EC */ addi r5, r13, _wpadCLCompt@sda21
/* 800624E8 0005E328 7C 05 18 AE */ lbzx r0, r5, r3
/* 800624EC 0005E32C 2C 00 00 00 */ cmpwi r0, 0x0
/* 800624F0 0005E330 4D 82 00 20 */ beqlr
/* 800624F4 0005E334 80 64 00 00 */ lwz r3, 0x0(r4)
/* 800624F8 0005E338 38 00 00 00 */ li r0, 0x0
/* 800624FC 0005E33C B0 03 00 30 */ sth r0, 0x30(r3)
/* 80062500 0005E340 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062504 0005E344 B0 03 00 32 */ sth r0, 0x32(r3)
/* 80062508 0005E348 80 64 00 00 */ lwz r3, 0x0(r4)
/* 8006250C 0005E34C 98 03 00 34 */ stb r0, 0x34(r3)
/* 80062510 0005E350 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062514 0005E354 98 03 00 35 */ stb r0, 0x35(r3)
/* 80062518 0005E358 4E 80 00 20 */ blr
/* 8006251C 0005E35C 00 00 00 00 */ .4byte 0x00000000
.global __parse_bl_data
__parse_bl_data:
/* 80062520 0005E360 3D 00 80 4C */ lis r8, __rvl_p_wpadcb@ha
/* 80062524 0005E364 54 63 10 3A */ slwi r3, r3, 2
/* 80062528 0005E368 39 08 1A 50 */ addi r8, r8, __rvl_p_wpadcb@l
/* 8006252C 0005E36C 88 E6 00 00 */ lbz r7, 0x0(r6)
/* 80062530 0005E370 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062534 0005E374 88 06 00 01 */ lbz r0, 0x1(r6)
/* 80062538 0005E378 50 E0 44 2E */ rlwimi r0, r7, 8, 16, 23
/* 8006253C 0005E37C 7C 68 18 2E */ lwzx r3, r8, r3
/* 80062540 0005E380 B0 05 00 2A */ sth r0, 0x2a(r5)
/* 80062544 0005E384 88 E6 00 02 */ lbz r7, 0x2(r6)
/* 80062548 0005E388 88 06 00 03 */ lbz r0, 0x3(r6)
/* 8006254C 0005E38C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062550 0005E390 50 E0 44 2E */ rlwimi r0, r7, 8, 16, 23
/* 80062554 0005E394 B0 05 00 2C */ sth r0, 0x2c(r5)
/* 80062558 0005E398 88 E6 00 04 */ lbz r7, 0x4(r6)
/* 8006255C 0005E39C 88 06 00 05 */ lbz r0, 0x5(r6)
/* 80062560 0005E3A0 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062564 0005E3A4 50 E0 44 2E */ rlwimi r0, r7, 8, 16, 23
/* 80062568 0005E3A8 B0 05 00 2E */ sth r0, 0x2e(r5)
/* 8006256C 0005E3AC 88 E6 00 06 */ lbz r7, 0x6(r6)
/* 80062570 0005E3B0 88 06 00 07 */ lbz r0, 0x7(r6)
/* 80062574 0005E3B4 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062578 0005E3B8 50 E0 44 2E */ rlwimi r0, r7, 8, 16, 23
/* 8006257C 0005E3BC B0 05 00 30 */ sth r0, 0x30(r5)
/* 80062580 0005E3C0 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062584 0005E3C4 88 06 00 08 */ lbz r0, 0x8(r6)
/* 80062588 0005E3C8 98 05 00 32 */ stb r0, 0x32(r5)
/* 8006258C 0005E3CC 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062590 0005E3D0 88 06 00 0A */ lbz r0, 0xa(r6)
/* 80062594 0005E3D4 98 05 00 33 */ stb r0, 0x33(r5)
/* 80062598 0005E3D8 80 84 00 00 */ lwz r4, 0x0(r4)
/* 8006259C 0005E3DC 88 04 00 33 */ lbz r0, 0x33(r4)
/* 800625A0 0005E3E0 54 04 08 3C */ slwi r4, r0, 1
/* 800625A4 0005E3E4 2C 04 01 04 */ cmpwi r4, 0x104
/* 800625A8 0005E3E8 41 80 00 10 */ blt lbl_800625B8
/* 800625AC 0005E3EC 38 00 00 04 */ li r0, 0x4
/* 800625B0 0005E3F0 98 03 0B 87 */ stb r0, 0xb87(r3)
/* 800625B4 0005E3F4 48 00 00 54 */ b lbl_80062608
.global lbl_800625B8
lbl_800625B8:
/* 800625B8 0005E3F8 38 04 FF 06 */ addi r0, r4, -0xfa
/* 800625BC 0005E3FC 28 00 00 09 */ cmplwi r0, 0x9
/* 800625C0 0005E400 41 81 00 10 */ bgt lbl_800625D0
/* 800625C4 0005E404 38 00 00 03 */ li r0, 0x3
/* 800625C8 0005E408 98 03 0B 87 */ stb r0, 0xb87(r3)
/* 800625CC 0005E40C 48 00 00 3C */ b lbl_80062608
.global lbl_800625D0
lbl_800625D0:
/* 800625D0 0005E410 38 04 FF 10 */ addi r0, r4, -0xf0
/* 800625D4 0005E414 28 00 00 09 */ cmplwi r0, 0x9
/* 800625D8 0005E418 41 81 00 10 */ bgt lbl_800625E8
/* 800625DC 0005E41C 38 00 00 02 */ li r0, 0x2
/* 800625E0 0005E420 98 03 0B 87 */ stb r0, 0xb87(r3)
/* 800625E4 0005E424 48 00 00 24 */ b lbl_80062608
.global lbl_800625E8
lbl_800625E8:
/* 800625E8 0005E428 38 04 FF 2C */ addi r0, r4, -0xd4
/* 800625EC 0005E42C 28 00 00 1B */ cmplwi r0, 0x1b
/* 800625F0 0005E430 41 81 00 10 */ bgt lbl_80062600
/* 800625F4 0005E434 38 00 00 01 */ li r0, 0x1
/* 800625F8 0005E438 98 03 0B 87 */ stb r0, 0xb87(r3)
/* 800625FC 0005E43C 48 00 00 0C */ b lbl_80062608
.global lbl_80062600
lbl_80062600:
/* 80062600 0005E440 38 00 00 00 */ li r0, 0x0
/* 80062604 0005E444 98 03 0B 87 */ stb r0, 0xb87(r3)
.global lbl_80062608
lbl_80062608:
/* 80062608 0005E448 88 03 0B 09 */ lbz r0, 0xb09(r3)
/* 8006260C 0005E44C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80062610 0005E450 4C 82 00 20 */ bnelr
/* 80062614 0005E454 38 00 00 01 */ li r0, 0x1
/* 80062618 0005E458 98 03 0B 09 */ stb r0, 0xb09(r3)
/* 8006261C 0005E45C 4E 80 00 20 */ blr
.global __parse_vs_data
__parse_vs_data:
/* 80062620 0005E460 3C E0 80 4C */ lis r7, __rvl_p_wpadcb@ha
/* 80062624 0005E464 54 60 10 3A */ slwi r0, r3, 2
/* 80062628 0005E468 38 E7 1A 50 */ addi r7, r7, __rvl_p_wpadcb@l
/* 8006262C 0005E46C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062630 0005E470 7C 67 00 2E */ lwzx r3, r7, r0
/* 80062634 0005E474 88 06 00 00 */ lbz r0, 0x0(r6)
/* 80062638 0005E478 98 05 00 40 */ stb r0, 0x40(r5)
/* 8006263C 0005E47C 88 06 00 06 */ lbz r0, 0x6(r6)
/* 80062640 0005E480 88 E6 00 01 */ lbz r7, 0x1(r6)
/* 80062644 0005E484 7C 00 36 70 */ srawi r0, r0, 6
/* 80062648 0005E488 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 8006264C 0005E48C 50 E0 15 BA */ rlwimi r0, r7, 2, 22, 29
/* 80062650 0005E490 B0 05 00 36 */ sth r0, 0x36(r5)
/* 80062654 0005E494 88 06 00 06 */ lbz r0, 0x6(r6)
/* 80062658 0005E498 89 06 00 02 */ lbz r8, 0x2(r6)
/* 8006265C 0005E49C 7C 07 26 70 */ srawi r7, r0, 4
/* 80062660 0005E4A0 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062664 0005E4A4 55 00 14 3A */ rlwinm r0, r8, 2, 16, 29
/* 80062668 0005E4A8 50 E0 07 BE */ rlwimi r0, r7, 0, 30, 31
/* 8006266C 0005E4AC B0 05 00 38 */ sth r0, 0x38(r5)
/* 80062670 0005E4B0 88 06 00 06 */ lbz r0, 0x6(r6)
/* 80062674 0005E4B4 89 06 00 03 */ lbz r8, 0x3(r6)
/* 80062678 0005E4B8 7C 07 16 70 */ srawi r7, r0, 2
/* 8006267C 0005E4BC 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062680 0005E4C0 55 00 14 3A */ rlwinm r0, r8, 2, 16, 29
/* 80062684 0005E4C4 50 E0 07 BE */ rlwimi r0, r7, 0, 30, 31
/* 80062688 0005E4C8 B0 05 00 3A */ sth r0, 0x3a(r5)
/* 8006268C 0005E4CC 88 06 00 04 */ lbz r0, 0x4(r6)
/* 80062690 0005E4D0 88 E6 00 06 */ lbz r7, 0x6(r6)
/* 80062694 0005E4D4 54 00 14 3A */ rlwinm r0, r0, 2, 16, 29
/* 80062698 0005E4D8 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 8006269C 0005E4DC 50 E0 07 BE */ rlwimi r0, r7, 0, 30, 31
/* 800626A0 0005E4E0 B0 05 00 3C */ sth r0, 0x3c(r5)
/* 800626A4 0005E4E4 88 06 00 07 */ lbz r0, 0x7(r6)
/* 800626A8 0005E4E8 88 E6 00 05 */ lbz r7, 0x5(r6)
/* 800626AC 0005E4EC 7C 00 36 70 */ srawi r0, r0, 6
/* 800626B0 0005E4F0 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800626B4 0005E4F4 50 E0 15 BA */ rlwimi r0, r7, 2, 22, 29
/* 800626B8 0005E4F8 B0 05 00 3E */ sth r0, 0x3e(r5)
/* 800626BC 0005E4FC 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800626C0 0005E500 88 06 00 08 */ lbz r0, 0x8(r6)
/* 800626C4 0005E504 98 05 00 34 */ stb r0, 0x34(r5)
/* 800626C8 0005E508 88 06 00 0E */ lbz r0, 0xe(r6)
/* 800626CC 0005E50C 88 E6 00 09 */ lbz r7, 0x9(r6)
/* 800626D0 0005E510 7C 00 36 70 */ srawi r0, r0, 6
/* 800626D4 0005E514 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800626D8 0005E518 50 E0 15 BA */ rlwimi r0, r7, 2, 22, 29
/* 800626DC 0005E51C B0 05 00 2A */ sth r0, 0x2a(r5)
/* 800626E0 0005E520 88 06 00 0E */ lbz r0, 0xe(r6)
/* 800626E4 0005E524 89 06 00 0A */ lbz r8, 0xa(r6)
/* 800626E8 0005E528 7C 07 26 70 */ srawi r7, r0, 4
/* 800626EC 0005E52C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800626F0 0005E530 55 00 14 3A */ rlwinm r0, r8, 2, 16, 29
/* 800626F4 0005E534 50 E0 07 BE */ rlwimi r0, r7, 0, 30, 31
/* 800626F8 0005E538 B0 05 00 2C */ sth r0, 0x2c(r5)
/* 800626FC 0005E53C 88 06 00 0E */ lbz r0, 0xe(r6)
/* 80062700 0005E540 89 06 00 0B */ lbz r8, 0xb(r6)
/* 80062704 0005E544 7C 07 16 70 */ srawi r7, r0, 2
/* 80062708 0005E548 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 8006270C 0005E54C 55 00 14 3A */ rlwinm r0, r8, 2, 16, 29
/* 80062710 0005E550 50 E0 07 BE */ rlwimi r0, r7, 0, 30, 31
/* 80062714 0005E554 B0 05 00 2E */ sth r0, 0x2e(r5)
/* 80062718 0005E558 88 06 00 0C */ lbz r0, 0xc(r6)
/* 8006271C 0005E55C 88 E6 00 0E */ lbz r7, 0xe(r6)
/* 80062720 0005E560 54 00 14 3A */ rlwinm r0, r0, 2, 16, 29
/* 80062724 0005E564 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062728 0005E568 50 E0 07 BE */ rlwimi r0, r7, 0, 30, 31
/* 8006272C 0005E56C B0 05 00 30 */ sth r0, 0x30(r5)
/* 80062730 0005E570 88 06 00 0F */ lbz r0, 0xf(r6)
/* 80062734 0005E574 88 E6 00 0D */ lbz r7, 0xd(r6)
/* 80062738 0005E578 7C 00 36 70 */ srawi r0, r0, 6
/* 8006273C 0005E57C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062740 0005E580 50 E0 15 BA */ rlwimi r0, r7, 2, 22, 29
/* 80062744 0005E584 B0 05 00 32 */ sth r0, 0x32(r5)
/* 80062748 0005E588 88 06 00 07 */ lbz r0, 0x7(r6)
/* 8006274C 0005E58C 88 E6 00 0F */ lbz r7, 0xf(r6)
/* 80062750 0005E590 54 00 24 36 */ rlwinm r0, r0, 4, 16, 27
/* 80062754 0005E594 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062758 0005E598 70 00 F3 F0 */ andi. r0, r0, 0xf3f0
/* 8006275C 0005E59C 7C E7 16 70 */ srawi r7, r7, 2
/* 80062760 0005E5A0 50 E0 07 3E */ rlwimi r0, r7, 0, 28, 31
/* 80062764 0005E5A4 B0 05 00 42 */ sth r0, 0x42(r5)
/* 80062768 0005E5A8 88 03 0B BC */ lbz r0, 0xbbc(r3)
/* 8006276C 0005E5AC 28 00 00 08 */ cmplwi r0, 0x8
/* 80062770 0005E5B0 40 80 00 14 */ bge lbl_80062784
/* 80062774 0005E5B4 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062778 0005E5B8 38 00 00 FF */ li r0, 0xff
/* 8006277C 0005E5BC 98 03 00 44 */ stb r0, 0x44(r3)
/* 80062780 0005E5C0 4E 80 00 20 */ blr
.global lbl_80062784
lbl_80062784:
/* 80062784 0005E5C4 88 06 00 0F */ lbz r0, 0xf(r6)
/* 80062788 0005E5C8 80 64 00 00 */ lwz r3, 0x0(r4)
/* 8006278C 0005E5CC 54 00 07 BE */ clrlwi r0, r0, 30
/* 80062790 0005E5D0 98 03 00 44 */ stb r0, 0x44(r3)
/* 80062794 0005E5D4 4E 80 00 20 */ blr
/* 80062798 0005E5D8 00 00 00 00 */ .4byte 0x00000000
/* 8006279C 0005E5DC 00 00 00 00 */ .4byte 0x00000000
.global __parse_mp_data
__parse_mp_data:
/* 800627A0 0005E5E0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 800627A4 0005E5E4 7C 08 02 A6 */ mflr r0
/* 800627A8 0005E5E8 3C E0 80 4C */ lis r7, __rvl_p_wpadcb@ha
/* 800627AC 0005E5EC 90 01 00 14 */ stw r0, 0x14(r1)
/* 800627B0 0005E5F0 54 60 10 3A */ slwi r0, r3, 2
/* 800627B4 0005E5F4 38 E7 1A 50 */ addi r7, r7, __rvl_p_wpadcb@l
/* 800627B8 0005E5F8 93 E1 00 0C */ stw r31, 0xc(r1)
/* 800627BC 0005E5FC 93 C1 00 08 */ stw r30, 0x8(r1)
/* 800627C0 0005E600 7C 7E 1B 78 */ mr r30, r3
/* 800627C4 0005E604 7F E7 00 2E */ lwzx r31, r7, r0
/* 800627C8 0005E608 88 7F 09 39 */ lbz r3, 0x939(r31)
/* 800627CC 0005E60C 2C 03 00 00 */ cmpwi r3, 0x0
/* 800627D0 0005E610 41 82 00 18 */ beq lbl_800627E8
/* 800627D4 0005E614 38 03 FF FF */ addi r0, r3, -0x1
/* 800627D8 0005E618 98 1F 09 39 */ stb r0, 0x939(r31)
/* 800627DC 0005E61C 38 00 FF FC */ li r0, -0x4
/* 800627E0 0005E620 80 64 00 00 */ lwz r3, 0x0(r4)
/* 800627E4 0005E624 98 03 00 29 */ stb r0, 0x29(r3)
.global lbl_800627E8
lbl_800627E8:
/* 800627E8 0005E628 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 800627EC 0005E62C 88 07 00 29 */ lbz r0, 0x29(r7)
/* 800627F0 0005E630 7C 00 07 75 */ extsb. r0, r0
/* 800627F4 0005E634 40 82 08 94 */ bne lbl_80063088
/* 800627F8 0005E638 28 05 00 04 */ cmplwi r5, 0x4
/* 800627FC 0005E63C 40 82 00 90 */ bne lbl_8006288C
/* 80062800 0005E640 88 06 00 05 */ lbz r0, 0x5(r6)
/* 80062804 0005E644 54 00 07 BE */ clrlwi r0, r0, 30
/* 80062808 0005E648 2C 00 00 02 */ cmpwi r0, 0x2
/* 8006280C 0005E64C 40 82 00 74 */ bne lbl_80062880
/* 80062810 0005E650 88 06 00 04 */ lbz r0, 0x4(r6)
/* 80062814 0005E654 88 66 00 03 */ lbz r3, 0x3(r6)
/* 80062818 0005E658 54 00 07 BE */ clrlwi r0, r0, 30
/* 8006281C 0005E65C 50 60 17 3A */ rlwimi r0, r3, 2, 28, 29
/* 80062820 0005E660 60 00 00 80 */ ori r0, r0, 0x80
/* 80062824 0005E664 98 07 00 36 */ stb r0, 0x36(r7)
/* 80062828 0005E668 88 A6 00 02 */ lbz r5, 0x2(r6)
/* 8006282C 0005E66C 88 06 00 05 */ lbz r0, 0x5(r6)
/* 80062830 0005E670 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062834 0005E674 7C A5 07 34 */ extsh r5, r5
/* 80062838 0005E678 54 00 34 AE */ rlwinm r0, r0, 6, 18, 23
/* 8006283C 0005E67C 7C A0 03 78 */ or r0, r5, r0
/* 80062840 0005E680 B0 03 00 38 */ sth r0, 0x38(r3)
/* 80062844 0005E684 88 A6 00 00 */ lbz r5, 0x0(r6)
/* 80062848 0005E688 88 06 00 03 */ lbz r0, 0x3(r6)
/* 8006284C 0005E68C 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062850 0005E690 7C A5 07 34 */ extsh r5, r5
/* 80062854 0005E694 54 00 34 AE */ rlwinm r0, r0, 6, 18, 23
/* 80062858 0005E698 7C A0 03 78 */ or r0, r5, r0
/* 8006285C 0005E69C B0 03 00 3A */ sth r0, 0x3a(r3)
/* 80062860 0005E6A0 88 A6 00 01 */ lbz r5, 0x1(r6)
/* 80062864 0005E6A4 88 06 00 04 */ lbz r0, 0x4(r6)
/* 80062868 0005E6A8 80 64 00 00 */ lwz r3, 0x0(r4)
/* 8006286C 0005E6AC 7C A5 07 34 */ extsh r5, r5
/* 80062870 0005E6B0 54 00 34 AE */ rlwinm r0, r0, 6, 18, 23
/* 80062874 0005E6B4 7C A0 03 78 */ or r0, r5, r0
/* 80062878 0005E6B8 B0 03 00 3C */ sth r0, 0x3c(r3)
/* 8006287C 0005E6BC 48 00 06 18 */ b lbl_80062E94
.global lbl_80062880
lbl_80062880:
/* 80062880 0005E6C0 38 00 FF F9 */ li r0, -0x7
/* 80062884 0005E6C4 98 07 00 29 */ stb r0, 0x29(r7)
/* 80062888 0005E6C8 48 00 06 0C */ b lbl_80062E94
.global lbl_8006288C
lbl_8006288C:
/* 8006288C 0005E6CC 28 05 00 05 */ cmplwi r5, 0x5
/* 80062890 0005E6D0 41 82 00 0C */ beq lbl_8006289C
/* 80062894 0005E6D4 28 05 00 07 */ cmplwi r5, 0x7
/* 80062898 0005E6D8 40 82 05 F4 */ bne lbl_80062E8C
.global lbl_8006289C
lbl_8006289C:
/* 8006289C 0005E6DC 88 1F 09 0C */ lbz r0, 0x90c(r31)
/* 800628A0 0005E6E0 88 A6 00 05 */ lbz r5, 0x5(r6)
/* 800628A4 0005E6E4 7C 00 00 34 */ cntlzw r0, r0
/* 800628A8 0005E6E8 54 03 DE 3E */ extrwi r3, r0, 8, 19
/* 800628AC 0005E6EC 54 A0 07 FF */ clrlwi. r0, r5, 31
/* 800628B0 0005E6F0 1C 03 00 60 */ mulli r0, r3, 0x60
/* 800628B4 0005E6F4 7C 7F 02 14 */ add r3, r31, r0
/* 800628B8 0005E6F8 41 82 00 1C */ beq lbl_800628D4
/* 800628BC 0005E6FC 38 00 00 00 */ li r0, 0x0
/* 800628C0 0005E700 98 07 00 36 */ stb r0, 0x36(r7)
/* 800628C4 0005E704 38 00 FF F9 */ li r0, -0x7
/* 800628C8 0005E708 80 64 00 00 */ lwz r3, 0x0(r4)
/* 800628CC 0005E70C 98 03 00 29 */ stb r0, 0x29(r3)
/* 800628D0 0005E710 48 00 05 C4 */ b lbl_80062E94
.global lbl_800628D4
lbl_800628D4:
/* 800628D4 0005E714 54 A0 07 BD */ rlwinm. r0, r5, 0, 30, 30
/* 800628D8 0005E718 40 82 04 F0 */ bne lbl_80062DC8
/* 800628DC 0005E71C A8 03 00 D8 */ lha r0, 0xd8(r3)
/* 800628E0 0005E720 B0 07 00 38 */ sth r0, 0x38(r7)
/* 800628E4 0005E724 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800628E8 0005E728 A8 03 00 DA */ lha r0, 0xda(r3)
/* 800628EC 0005E72C B0 05 00 3A */ sth r0, 0x3a(r5)
/* 800628F0 0005E730 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 800628F4 0005E734 A8 03 00 DC */ lha r0, 0xdc(r3)
/* 800628F8 0005E738 B0 05 00 3C */ sth r0, 0x3c(r5)
/* 800628FC 0005E73C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062900 0005E740 88 03 00 D6 */ lbz r0, 0xd6(r3)
/* 80062904 0005E744 98 05 00 36 */ stb r0, 0x36(r5)
/* 80062908 0005E748 88 06 00 00 */ lbz r0, 0x0(r6)
/* 8006290C 0005E74C 28 00 00 FF */ cmplwi r0, 0xff
/* 80062910 0005E750 40 82 00 10 */ bne lbl_80062920
/* 80062914 0005E754 88 06 00 01 */ lbz r0, 0x1(r6)
/* 80062918 0005E758 28 00 00 FF */ cmplwi r0, 0xff
/* 8006291C 0005E75C 41 82 00 44 */ beq lbl_80062960
.global lbl_80062920
lbl_80062920:
/* 80062920 0005E760 88 1F 09 3D */ lbz r0, 0x93d(r31)
/* 80062924 0005E764 28 00 00 05 */ cmplwi r0, 0x5
/* 80062928 0005E768 40 82 00 38 */ bne lbl_80062960
/* 8006292C 0005E76C 88 7F 09 05 */ lbz r3, 0x905(r31)
/* 80062930 0005E770 28 03 00 06 */ cmplwi r3, 0x6
/* 80062934 0005E774 40 82 00 10 */ bne lbl_80062944
/* 80062938 0005E778 88 1F 09 06 */ lbz r0, 0x906(r31)
/* 8006293C 0005E77C 28 00 00 05 */ cmplwi r0, 0x5
/* 80062940 0005E780 40 82 00 20 */ bne lbl_80062960
.global lbl_80062944
lbl_80062944:
/* 80062944 0005E784 28 03 00 07 */ cmplwi r3, 0x7
/* 80062948 0005E788 40 82 00 10 */ bne lbl_80062958
/* 8006294C 0005E78C 88 1F 09 06 */ lbz r0, 0x906(r31)
/* 80062950 0005E790 28 00 00 07 */ cmplwi r0, 0x7
/* 80062954 0005E794 40 82 00 0C */ bne lbl_80062960
.global lbl_80062958
lbl_80062958:
/* 80062958 0005E798 28 03 00 FA */ cmplwi r3, 0xfa
/* 8006295C 0005E79C 40 82 00 18 */ bne lbl_80062974
.global lbl_80062960
lbl_80062960:
/* 80062960 0005E7A0 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062964 0005E7A4 88 03 00 36 */ lbz r0, 0x36(r3)
/* 80062968 0005E7A8 70 00 00 BF */ andi. r0, r0, 0xbf
/* 8006296C 0005E7AC 98 03 00 36 */ stb r0, 0x36(r3)
/* 80062970 0005E7B0 48 00 05 24 */ b lbl_80062E94
.global lbl_80062974
lbl_80062974:
/* 80062974 0005E7B4 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062978 0005E7B8 88 06 00 04 */ lbz r0, 0x4(r6)
/* 8006297C 0005E7BC 88 65 00 36 */ lbz r3, 0x36(r5)
/* 80062980 0005E7C0 54 00 07 FE */ clrlwi r0, r0, 31
/* 80062984 0005E7C4 60 00 00 40 */ ori r0, r0, 0x40
/* 80062988 0005E7C8 7C 60 03 78 */ or r0, r3, r0
/* 8006298C 0005E7CC 98 05 00 36 */ stb r0, 0x36(r5)
/* 80062990 0005E7D0 88 1F 09 05 */ lbz r0, 0x905(r31)
/* 80062994 0005E7D4 28 00 00 06 */ cmplwi r0, 0x6
/* 80062998 0005E7D8 40 82 01 A4 */ bne lbl_80062B3C
/* 8006299C 0005E7DC 80 64 00 00 */ lwz r3, 0x0(r4)
/* 800629A0 0005E7E0 88 06 00 00 */ lbz r0, 0x0(r6)
/* 800629A4 0005E7E4 98 03 00 30 */ stb r0, 0x30(r3)
/* 800629A8 0005E7E8 80 64 00 00 */ lwz r3, 0x0(r4)
/* 800629AC 0005E7EC 88 06 00 01 */ lbz r0, 0x1(r6)
/* 800629B0 0005E7F0 98 03 00 31 */ stb r0, 0x31(r3)
/* 800629B4 0005E7F4 88 66 00 02 */ lbz r3, 0x2(r6)
/* 800629B8 0005E7F8 88 06 00 05 */ lbz r0, 0x5(r6)
/* 800629BC 0005E7FC 54 63 10 3A */ slwi r3, r3, 2
/* 800629C0 0005E800 A8 FF 08 90 */ lha r7, 0x890(r31)
/* 800629C4 0005E804 7C 63 07 34 */ extsh r3, r3
/* 800629C8 0005E808 54 00 EF BC */ rlwinm r0, r0, 29, 30, 30
/* 800629CC 0005E80C 54 65 00 3A */ clrrwi r5, r3, 2
/* 800629D0 0005E810 80 64 00 00 */ lwz r3, 0x0(r4)
/* 800629D4 0005E814 7C A5 07 34 */ extsh r5, r5
/* 800629D8 0005E818 7C 00 07 34 */ extsh r0, r0
/* 800629DC 0005E81C 7C A0 03 78 */ or r0, r5, r0
/* 800629E0 0005E820 7C 00 07 34 */ extsh r0, r0
/* 800629E4 0005E824 7C 07 00 50 */ subf r0, r7, r0
/* 800629E8 0005E828 B0 03 00 2A */ sth r0, 0x2a(r3)
/* 800629EC 0005E82C 88 66 00 03 */ lbz r3, 0x3(r6)
/* 800629F0 0005E830 88 06 00 05 */ lbz r0, 0x5(r6)
/* 800629F4 0005E834 54 63 10 3A */ slwi r3, r3, 2
/* 800629F8 0005E838 A8 FF 08 92 */ lha r7, 0x892(r31)
/* 800629FC 0005E83C 7C 63 07 34 */ extsh r3, r3
/* 80062A00 0005E840 54 00 E7 BC */ rlwinm r0, r0, 28, 30, 30
/* 80062A04 0005E844 54 65 00 3A */ clrrwi r5, r3, 2
/* 80062A08 0005E848 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062A0C 0005E84C 7C A5 07 34 */ extsh r5, r5
/* 80062A10 0005E850 7C 00 07 34 */ extsh r0, r0
/* 80062A14 0005E854 7C A0 03 78 */ or r0, r5, r0
/* 80062A18 0005E858 7C 00 07 34 */ extsh r0, r0
/* 80062A1C 0005E85C 7C 07 00 50 */ subf r0, r7, r0
/* 80062A20 0005E860 B0 03 00 2C */ sth r0, 0x2c(r3)
/* 80062A24 0005E864 88 66 00 04 */ lbz r3, 0x4(r6)
/* 80062A28 0005E868 88 06 00 05 */ lbz r0, 0x5(r6)
/* 80062A2C 0005E86C 54 63 10 3A */ slwi r3, r3, 2
/* 80062A30 0005E870 A8 FF 08 94 */ lha r7, 0x894(r31)
/* 80062A34 0005E874 7C 63 07 34 */ extsh r3, r3
/* 80062A38 0005E878 54 00 DF 7C */ rlwinm r0, r0, 27, 29, 30
/* 80062A3C 0005E87C 54 65 00 38 */ clrrwi r5, r3, 3
/* 80062A40 0005E880 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062A44 0005E884 7C A5 07 34 */ extsh r5, r5
/* 80062A48 0005E888 7C A0 03 78 */ or r0, r5, r0
/* 80062A4C 0005E88C 7C 00 07 34 */ extsh r0, r0
/* 80062A50 0005E890 7C 07 00 50 */ subf r0, r7, r0
/* 80062A54 0005E894 B0 03 00 2E */ sth r0, 0x2e(r3)
/* 80062A58 0005E898 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062A5C 0005E89C 88 06 00 05 */ lbz r0, 0x5(r6)
/* 80062A60 0005E8A0 A0 65 00 00 */ lhz r3, 0x0(r5)
/* 80062A64 0005E8A4 7C 00 00 F8 */ nor r0, r0, r0
/* 80062A68 0005E8A8 54 00 5C 64 */ rlwinm r0, r0, 11, 17, 18
/* 80062A6C 0005E8AC 7C 60 03 78 */ or r0, r3, r0
/* 80062A70 0005E8B0 B0 05 00 00 */ sth r0, 0x0(r5)
/* 80062A74 0005E8B4 88 1F 0B 09 */ lbz r0, 0xb09(r31)
/* 80062A78 0005E8B8 2C 00 00 00 */ cmpwi r0, 0x0
/* 80062A7C 0005E8BC 40 82 00 2C */ bne lbl_80062AA8
/* 80062A80 0005E8C0 38 00 00 01 */ li r0, 0x1
/* 80062A84 0005E8C4 98 1F 0B 09 */ stb r0, 0xb09(r31)
/* 80062A88 0005E8C8 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062A8C 0005E8CC 88 03 00 30 */ lbz r0, 0x30(r3)
/* 80062A90 0005E8D0 7C 00 07 74 */ extsb r0, r0
/* 80062A94 0005E8D4 B0 1F 08 84 */ sth r0, 0x884(r31)
/* 80062A98 0005E8D8 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062A9C 0005E8DC 88 03 00 31 */ lbz r0, 0x31(r3)
/* 80062AA0 0005E8E0 7C 00 07 74 */ extsb r0, r0
/* 80062AA4 0005E8E4 B0 1F 08 8A */ sth r0, 0x88a(r31)
.global lbl_80062AA8
lbl_80062AA8:
/* 80062AA8 0005E8E8 80 C4 00 00 */ lwz r6, 0x0(r4)
/* 80062AAC 0005E8EC A8 7F 08 84 */ lha r3, 0x884(r31)
/* 80062AB0 0005E8F0 88 06 00 30 */ lbz r0, 0x30(r6)
/* 80062AB4 0005E8F4 54 65 06 3E */ clrlwi r5, r3, 24
/* 80062AB8 0005E8F8 A8 7F 08 8A */ lha r3, 0x88a(r31)
/* 80062ABC 0005E8FC 7C A5 00 50 */ subf r5, r5, r0
/* 80062AC0 0005E900 88 06 00 31 */ lbz r0, 0x31(r6)
/* 80062AC4 0005E904 7C A5 07 34 */ extsh r5, r5
/* 80062AC8 0005E908 54 63 06 3E */ clrlwi r3, r3, 24
/* 80062ACC 0005E90C 2C 05 FF 80 */ cmpwi r5, -0x80
/* 80062AD0 0005E910 7C 03 00 50 */ subf r0, r3, r0
/* 80062AD4 0005E914 7C 07 07 34 */ extsh r7, r0
/* 80062AD8 0005E918 40 80 00 10 */ bge lbl_80062AE8
/* 80062ADC 0005E91C 38 00 FF 80 */ li r0, -0x80
/* 80062AE0 0005E920 98 06 00 30 */ stb r0, 0x30(r6)
/* 80062AE4 0005E924 48 00 00 1C */ b lbl_80062B00
.global lbl_80062AE8
lbl_80062AE8:
/* 80062AE8 0005E928 2C 05 00 7F */ cmpwi r5, 0x7f
/* 80062AEC 0005E92C 40 81 00 10 */ ble lbl_80062AFC
/* 80062AF0 0005E930 38 00 00 7F */ li r0, 0x7f
/* 80062AF4 0005E934 98 06 00 30 */ stb r0, 0x30(r6)
/* 80062AF8 0005E938 48 00 00 08 */ b lbl_80062B00
.global lbl_80062AFC
lbl_80062AFC:
/* 80062AFC 0005E93C 98 A6 00 30 */ stb r5, 0x30(r6)
.global lbl_80062B00
lbl_80062B00:
/* 80062B00 0005E940 2C 07 FF 80 */ cmpwi r7, -0x80
/* 80062B04 0005E944 40 80 00 14 */ bge lbl_80062B18
/* 80062B08 0005E948 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062B0C 0005E94C 38 00 FF 80 */ li r0, -0x80
/* 80062B10 0005E950 98 03 00 31 */ stb r0, 0x31(r3)
/* 80062B14 0005E954 48 00 03 80 */ b lbl_80062E94
.global lbl_80062B18
lbl_80062B18:
/* 80062B18 0005E958 2C 07 00 7F */ cmpwi r7, 0x7f
/* 80062B1C 0005E95C 40 81 00 14 */ ble lbl_80062B30
/* 80062B20 0005E960 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062B24 0005E964 38 00 00 7F */ li r0, 0x7f
/* 80062B28 0005E968 98 03 00 31 */ stb r0, 0x31(r3)
/* 80062B2C 0005E96C 48 00 03 68 */ b lbl_80062E94
.global lbl_80062B30
lbl_80062B30:
/* 80062B30 0005E970 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062B34 0005E974 98 E3 00 31 */ stb r7, 0x31(r3)
/* 80062B38 0005E978 48 00 03 5C */ b lbl_80062E94
.global lbl_80062B3C
lbl_80062B3C:
/* 80062B3C 0005E97C 28 00 00 07 */ cmplwi r0, 0x7
/* 80062B40 0005E980 40 82 03 54 */ bne lbl_80062E94
/* 80062B44 0005E984 88 06 00 00 */ lbz r0, 0x0(r6)
/* 80062B48 0005E988 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062B4C 0005E98C 54 00 25 B4 */ rlwinm r0, r0, 4, 22, 26
/* 80062B50 0005E990 B0 03 00 2C */ sth r0, 0x2c(r3)
/* 80062B54 0005E994 88 06 00 01 */ lbz r0, 0x1(r6)
/* 80062B58 0005E998 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062B5C 0005E99C 54 00 25 B4 */ rlwinm r0, r0, 4, 22, 26
/* 80062B60 0005E9A0 B0 03 00 2E */ sth r0, 0x2e(r3)
/* 80062B64 0005E9A4 88 06 00 02 */ lbz r0, 0x2(r6)
/* 80062B68 0005E9A8 88 A6 00 01 */ lbz r5, 0x1(r6)
/* 80062B6C 0005E9AC 7C 08 3E 70 */ srawi r8, r0, 7
/* 80062B70 0005E9B0 88 E6 00 00 */ lbz r7, 0x0(r6)
/* 80062B74 0005E9B4 54 A0 DF 7C */ rlwinm r0, r5, 27, 29, 30
/* 80062B78 0005E9B8 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062B7C 0005E9BC 50 E0 EE F8 */ rlwimi r0, r7, 29, 27, 28
/* 80062B80 0005E9C0 7D 08 07 34 */ extsh r8, r8
/* 80062B84 0005E9C4 7D 00 03 78 */ or r0, r8, r0
/* 80062B88 0005E9C8 7C E7 1E 70 */ srawi r7, r7, 3
/* 80062B8C 0005E9CC 7C 00 07 34 */ extsh r0, r0
/* 80062B90 0005E9D0 7C A5 2E 70 */ srawi r5, r5, 5
/* 80062B94 0005E9D4 54 00 28 34 */ slwi r0, r0, 5
/* 80062B98 0005E9D8 B0 03 00 30 */ sth r0, 0x30(r3)
/* 80062B9C 0005E9DC 88 06 00 02 */ lbz r0, 0x2(r6)
/* 80062BA0 0005E9E0 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062BA4 0005E9E4 54 00 2D B4 */ rlwinm r0, r0, 5, 22, 26
/* 80062BA8 0005E9E8 B0 03 00 32 */ sth r0, 0x32(r3)
/* 80062BAC 0005E9EC 88 66 00 02 */ lbz r3, 0x2(r6)
/* 80062BB0 0005E9F0 88 06 00 03 */ lbz r0, 0x3(r6)
/* 80062BB4 0005E9F4 7C 65 16 70 */ srawi r5, r3, 2
/* 80062BB8 0005E9F8 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062BBC 0005E9FC 7C 00 2E 70 */ srawi r0, r0, 5
/* 80062BC0 0005EA00 50 A0 06 F8 */ rlwimi r0, r5, 0, 27, 28
/* 80062BC4 0005EA04 54 00 1E 38 */ rlwinm r0, r0, 3, 24, 28
/* 80062BC8 0005EA08 98 03 00 34 */ stb r0, 0x34(r3)
/* 80062BCC 0005EA0C 88 06 00 03 */ lbz r0, 0x3(r6)
/* 80062BD0 0005EA10 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062BD4 0005EA14 54 00 1E 38 */ rlwinm r0, r0, 3, 24, 28
/* 80062BD8 0005EA18 98 03 00 35 */ stb r0, 0x35(r3)
/* 80062BDC 0005EA1C 88 66 00 01 */ lbz r3, 0x1(r6)
/* 80062BE0 0005EA20 88 06 00 05 */ lbz r0, 0x5(r6)
/* 80062BE4 0005EA24 54 67 0F BC */ rlwinm r7, r3, 1, 30, 30
/* 80062BE8 0005EA28 89 06 00 00 */ lbz r8, 0x0(r6)
/* 80062BEC 0005EA2C 88 A6 00 04 */ lbz r5, 0x4(r6)
/* 80062BF0 0005EA30 54 00 06 3A */ rlwinm r0, r0, 0, 24, 29
/* 80062BF4 0005EA34 51 07 07 FE */ rlwimi r7, r8, 0, 31, 31
/* 80062BF8 0005EA38 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062BFC 0005EA3C 50 A0 44 2C */ rlwimi r0, r5, 8, 16, 22
/* 80062C00 0005EA40 7C E0 03 78 */ or r0, r7, r0
/* 80062C04 0005EA44 68 00 FE FF */ xori r0, r0, 0xfeff
/* 80062C08 0005EA48 B0 03 00 2A */ sth r0, 0x2a(r3)
/* 80062C0C 0005EA4C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062C10 0005EA50 A8 65 00 2C */ lha r3, 0x2c(r5)
/* 80062C14 0005EA54 38 03 FE 00 */ addi r0, r3, -0x200
/* 80062C18 0005EA58 B0 05 00 2C */ sth r0, 0x2c(r5)
/* 80062C1C 0005EA5C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062C20 0005EA60 A8 65 00 2E */ lha r3, 0x2e(r5)
/* 80062C24 0005EA64 38 03 FE 00 */ addi r0, r3, -0x200
/* 80062C28 0005EA68 B0 05 00 2E */ sth r0, 0x2e(r5)
/* 80062C2C 0005EA6C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062C30 0005EA70 A8 65 00 30 */ lha r3, 0x30(r5)
/* 80062C34 0005EA74 38 03 FE 00 */ addi r0, r3, -0x200
/* 80062C38 0005EA78 B0 05 00 30 */ sth r0, 0x30(r5)
/* 80062C3C 0005EA7C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062C40 0005EA80 A8 65 00 32 */ lha r3, 0x32(r5)
/* 80062C44 0005EA84 38 03 FE 00 */ addi r0, r3, -0x200
/* 80062C48 0005EA88 B0 05 00 32 */ sth r0, 0x32(r5)
/* 80062C4C 0005EA8C 88 1F 0B 09 */ lbz r0, 0xb09(r31)
/* 80062C50 0005EA90 2C 00 00 00 */ cmpwi r0, 0x0
/* 80062C54 0005EA94 40 82 00 54 */ bne lbl_80062CA8
/* 80062C58 0005EA98 38 00 00 01 */ li r0, 0x1
/* 80062C5C 0005EA9C 98 1F 0B 09 */ stb r0, 0xb09(r31)
/* 80062C60 0005EAA0 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062C64 0005EAA4 A8 03 00 2C */ lha r0, 0x2c(r3)
/* 80062C68 0005EAA8 B0 1F 08 84 */ sth r0, 0x884(r31)
/* 80062C6C 0005EAAC 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062C70 0005EAB0 A8 03 00 2E */ lha r0, 0x2e(r3)
/* 80062C74 0005EAB4 B0 1F 08 8A */ sth r0, 0x88a(r31)
/* 80062C78 0005EAB8 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062C7C 0005EABC A8 03 00 30 */ lha r0, 0x30(r3)
/* 80062C80 0005EAC0 B0 1F 08 90 */ sth r0, 0x890(r31)
/* 80062C84 0005EAC4 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062C88 0005EAC8 A8 03 00 32 */ lha r0, 0x32(r3)
/* 80062C8C 0005EACC B0 1F 08 96 */ sth r0, 0x896(r31)
/* 80062C90 0005EAD0 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062C94 0005EAD4 88 03 00 34 */ lbz r0, 0x34(r3)
/* 80062C98 0005EAD8 98 1F 08 9C */ stb r0, 0x89c(r31)
/* 80062C9C 0005EADC 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062CA0 0005EAE0 88 03 00 35 */ lbz r0, 0x35(r3)
/* 80062CA4 0005EAE4 98 1F 08 9D */ stb r0, 0x89d(r31)
.global lbl_80062CA8
lbl_80062CA8:
/* 80062CA8 0005EAE8 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062CAC 0005EAEC A8 7F 08 84 */ lha r3, 0x884(r31)
/* 80062CB0 0005EAF0 A8 05 00 2C */ lha r0, 0x2c(r5)
/* 80062CB4 0005EAF4 7C 03 00 50 */ subf r0, r3, r0
/* 80062CB8 0005EAF8 7C 00 07 34 */ extsh r0, r0
/* 80062CBC 0005EAFC 2C 00 FE 00 */ cmpwi r0, -0x200
/* 80062CC0 0005EB00 7C 03 03 78 */ mr r3, r0
/* 80062CC4 0005EB04 40 80 00 08 */ bge lbl_80062CCC
/* 80062CC8 0005EB08 38 60 FE 00 */ li r3, -0x200
.global lbl_80062CCC
lbl_80062CCC:
/* 80062CCC 0005EB0C 2C 00 01 FF */ cmpwi r0, 0x1ff
/* 80062CD0 0005EB10 40 81 00 08 */ ble lbl_80062CD8
/* 80062CD4 0005EB14 38 60 01 FF */ li r3, 0x1ff
.global lbl_80062CD8
lbl_80062CD8:
/* 80062CD8 0005EB18 B0 65 00 2C */ sth r3, 0x2c(r5)
/* 80062CDC 0005EB1C 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062CE0 0005EB20 A8 7F 08 8A */ lha r3, 0x88a(r31)
/* 80062CE4 0005EB24 A8 05 00 2E */ lha r0, 0x2e(r5)
/* 80062CE8 0005EB28 7C 03 00 50 */ subf r0, r3, r0
/* 80062CEC 0005EB2C 7C 00 07 34 */ extsh r0, r0
/* 80062CF0 0005EB30 2C 00 FE 00 */ cmpwi r0, -0x200
/* 80062CF4 0005EB34 7C 03 03 78 */ mr r3, r0
/* 80062CF8 0005EB38 40 80 00 08 */ bge lbl_80062D00
/* 80062CFC 0005EB3C 38 60 FE 00 */ li r3, -0x200
.global lbl_80062D00
lbl_80062D00:
/* 80062D00 0005EB40 2C 00 01 FF */ cmpwi r0, 0x1ff
/* 80062D04 0005EB44 40 81 00 08 */ ble lbl_80062D0C
/* 80062D08 0005EB48 38 60 01 FF */ li r3, 0x1ff
.global lbl_80062D0C
lbl_80062D0C:
/* 80062D0C 0005EB4C B0 65 00 2E */ sth r3, 0x2e(r5)
/* 80062D10 0005EB50 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062D14 0005EB54 A8 7F 08 90 */ lha r3, 0x890(r31)
/* 80062D18 0005EB58 A8 05 00 30 */ lha r0, 0x30(r5)
/* 80062D1C 0005EB5C 7C 03 00 50 */ subf r0, r3, r0
/* 80062D20 0005EB60 7C 00 07 34 */ extsh r0, r0
/* 80062D24 0005EB64 2C 00 FE 00 */ cmpwi r0, -0x200
/* 80062D28 0005EB68 7C 03 03 78 */ mr r3, r0
/* 80062D2C 0005EB6C 40 80 00 08 */ bge lbl_80062D34
/* 80062D30 0005EB70 38 60 FE 00 */ li r3, -0x200
.global lbl_80062D34
lbl_80062D34:
/* 80062D34 0005EB74 2C 00 01 FF */ cmpwi r0, 0x1ff
/* 80062D38 0005EB78 40 81 00 08 */ ble lbl_80062D40
/* 80062D3C 0005EB7C 38 60 01 FF */ li r3, 0x1ff
.global lbl_80062D40
lbl_80062D40:
/* 80062D40 0005EB80 B0 65 00 30 */ sth r3, 0x30(r5)
/* 80062D44 0005EB84 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062D48 0005EB88 A8 7F 08 96 */ lha r3, 0x896(r31)
/* 80062D4C 0005EB8C A8 05 00 32 */ lha r0, 0x32(r5)
/* 80062D50 0005EB90 7C 03 00 50 */ subf r0, r3, r0
/* 80062D54 0005EB94 7C 00 07 34 */ extsh r0, r0
/* 80062D58 0005EB98 2C 00 FE 00 */ cmpwi r0, -0x200
/* 80062D5C 0005EB9C 7C 03 03 78 */ mr r3, r0
/* 80062D60 0005EBA0 40 80 00 08 */ bge lbl_80062D68
/* 80062D64 0005EBA4 38 60 FE 00 */ li r3, -0x200
.global lbl_80062D68
lbl_80062D68:
/* 80062D68 0005EBA8 2C 00 01 FF */ cmpwi r0, 0x1ff
/* 80062D6C 0005EBAC 40 81 00 08 */ ble lbl_80062D74
/* 80062D70 0005EBB0 38 60 01 FF */ li r3, 0x1ff
.global lbl_80062D74
lbl_80062D74:
/* 80062D74 0005EBB4 B0 65 00 32 */ sth r3, 0x32(r5)
/* 80062D78 0005EBB8 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062D7C 0005EBBC 88 03 00 34 */ lbz r0, 0x34(r3)
/* 80062D80 0005EBC0 28 00 00 48 */ cmplwi r0, 0x48
/* 80062D84 0005EBC4 40 81 00 10 */ ble lbl_80062D94
/* 80062D88 0005EBC8 A0 03 00 2A */ lhz r0, 0x2a(r3)
/* 80062D8C 0005EBCC 60 00 20 00 */ ori r0, r0, 0x2000
/* 80062D90 0005EBD0 B0 03 00 2A */ sth r0, 0x2a(r3)
.global lbl_80062D94
lbl_80062D94:
/* 80062D94 0005EBD4 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062D98 0005EBD8 88 03 00 35 */ lbz r0, 0x35(r3)
/* 80062D9C 0005EBDC 28 00 00 48 */ cmplwi r0, 0x48
/* 80062DA0 0005EBE0 40 81 00 10 */ ble lbl_80062DB0
/* 80062DA4 0005EBE4 A0 03 00 2A */ lhz r0, 0x2a(r3)
/* 80062DA8 0005EBE8 60 00 02 00 */ ori r0, r0, 0x200
/* 80062DAC 0005EBEC B0 03 00 2A */ sth r0, 0x2a(r3)
.global lbl_80062DB0
lbl_80062DB0:
/* 80062DB0 0005EBF0 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062DB4 0005EBF4 38 00 00 00 */ li r0, 0x0
/* 80062DB8 0005EBF8 98 03 00 34 */ stb r0, 0x34(r3)
/* 80062DBC 0005EBFC 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062DC0 0005EC00 98 03 00 35 */ stb r0, 0x35(r3)
/* 80062DC4 0005EC04 48 00 00 D0 */ b lbl_80062E94
.global lbl_80062DC8
lbl_80062DC8:
/* 80062DC8 0005EC08 80 03 00 CE */ lwz r0, 0xce(r3)
/* 80062DCC 0005EC0C 80 A3 00 CA */ lwz r5, 0xca(r3)
/* 80062DD0 0005EC10 90 A7 00 2A */ stw r5, 0x2a(r7)
/* 80062DD4 0005EC14 90 07 00 2E */ stw r0, 0x2e(r7)
/* 80062DD8 0005EC18 80 03 00 D2 */ lwz r0, 0xd2(r3)
/* 80062DDC 0005EC1C 90 07 00 32 */ stw r0, 0x32(r7)
/* 80062DE0 0005EC20 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80062DE4 0005EC24 A0 03 00 A0 */ lhz r0, 0xa0(r3)
/* 80062DE8 0005EC28 A0 A7 00 00 */ lhz r5, 0x0(r7)
/* 80062DEC 0005EC2C 54 00 04 64 */ rlwinm r0, r0, 0, 17, 18
/* 80062DF0 0005EC30 7C A0 03 78 */ or r0, r5, r0
/* 80062DF4 0005EC34 B0 07 00 00 */ sth r0, 0x0(r7)
/* 80062DF8 0005EC38 88 06 00 04 */ lbz r0, 0x4(r6)
/* 80062DFC 0005EC3C 88 E6 00 03 */ lbz r7, 0x3(r6)
/* 80062E00 0005EC40 54 00 07 BE */ clrlwi r0, r0, 30
/* 80062E04 0005EC44 80 A4 00 00 */ lwz r5, 0x0(r4)
/* 80062E08 0005EC48 50 E0 17 3A */ rlwimi r0, r7, 2, 28, 29
/* 80062E0C 0005EC4C 60 00 00 80 */ ori r0, r0, 0x80
/* 80062E10 0005EC50 98 05 00 36 */ stb r0, 0x36(r5)
/* 80062E14 0005EC54 80 E4 00 00 */ lwz r7, 0x0(r4)
/* 80062E18 0005EC58 88 A7 00 36 */ lbz r5, 0x36(r7)
/* 80062E1C 0005EC5C 54 A0 07 FF */ clrlwi. r0, r5, 31
/* 80062E20 0005EC60 41 82 00 14 */ beq lbl_80062E34
/* 80062E24 0005EC64 88 03 00 D6 */ lbz r0, 0xd6(r3)
/* 80062E28 0005EC68 54 00 06 72 */ rlwinm r0, r0, 0, 25, 25
/* 80062E2C 0005EC6C 7C A0 03 78 */ or r0, r5, r0
/* 80062E30 0005EC70 98 07 00 36 */ stb r0, 0x36(r7)
.global lbl_80062E34
lbl_80062E34:
/* 80062E34 0005EC74 88 A6 00 02 */ lbz r5, 0x2(r6)
/* 80062E38 0005EC78 88 06 00 05 */ lbz r0, 0x5(r6)
/* 80062E3C 0005EC7C 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062E40 0005EC80 7C A5 07 34 */ extsh r5, r5
/* 80062E44 0005EC84 54 00 34 AE */ rlwinm r0, r0, 6, 18, 23
/* 80062E48 0005EC88 7C A0 03 78 */ or r0, r5, r0
/* 80062E4C 0005EC8C B0 03 00 38 */ sth r0, 0x38(r3)
/* 80062E50 0005EC90 88 A6 00 00 */ lbz r5, 0x0(r6)
/* 80062E54 0005EC94 88 06 00 03 */ lbz r0, 0x3(r6)
/* 80062E58 0005EC98 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062E5C 0005EC9C 7C A5 07 34 */ extsh r5, r5
/* 80062E60 0005ECA0 54 00 34 AE */ rlwinm r0, r0, 6, 18, 23
/* 80062E64 0005ECA4 7C A0 03 78 */ or r0, r5, r0
/* 80062E68 0005ECA8 B0 03 00 3A */ sth r0, 0x3a(r3)
/* 80062E6C 0005ECAC 88 A6 00 01 */ lbz r5, 0x1(r6)
/* 80062E70 0005ECB0 88 06 00 04 */ lbz r0, 0x4(r6)
/* 80062E74 0005ECB4 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062E78 0005ECB8 7C A5 07 34 */ extsh r5, r5
/* 80062E7C 0005ECBC 54 00 34 AE */ rlwinm r0, r0, 6, 18, 23
/* 80062E80 0005ECC0 7C A0 03 78 */ or r0, r5, r0
/* 80062E84 0005ECC4 B0 03 00 3C */ sth r0, 0x3c(r3)
/* 80062E88 0005ECC8 48 00 00 0C */ b lbl_80062E94
.global lbl_80062E8C
lbl_80062E8C:
/* 80062E8C 0005ECCC 38 00 FF F9 */ li r0, -0x7
/* 80062E90 0005ECD0 98 07 00 29 */ stb r0, 0x29(r7)
.global lbl_80062E94
lbl_80062E94:
/* 80062E94 0005ECD4 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062E98 0005ECD8 88 03 00 29 */ lbz r0, 0x29(r3)
/* 80062E9C 0005ECDC 7C 00 07 75 */ extsb. r0, r0
/* 80062EA0 0005ECE0 40 82 01 E8 */ bne lbl_80063088
/* 80062EA4 0005ECE4 88 03 00 36 */ lbz r0, 0x36(r3)
/* 80062EA8 0005ECE8 88 BF 09 3B */ lbz r5, 0x93b(r31)
/* 80062EAC 0005ECEC 54 00 07 FF */ clrlwi. r0, r0, 31
/* 80062EB0 0005ECF0 40 82 00 60 */ bne lbl_80062F10
/* 80062EB4 0005ECF4 88 1F 09 3D */ lbz r0, 0x93d(r31)
/* 80062EB8 0005ECF8 28 00 00 05 */ cmplwi r0, 0x5
/* 80062EBC 0005ECFC 41 82 00 08 */ beq lbl_80062EC4
/* 80062EC0 0005ED00 38 A0 00 00 */ li r5, 0x0
.global lbl_80062EC4
lbl_80062EC4:
/* 80062EC4 0005ED04 38 60 00 00 */ li r3, 0x0
/* 80062EC8 0005ED08 98 7F 09 3B */ stb r3, 0x93b(r31)
/* 80062ECC 0005ED0C 38 00 00 05 */ li r0, 0x5
/* 80062ED0 0005ED10 2C 85 00 00 */ cmpwi cr1, r5, 0x0
/* 80062ED4 0005ED14 98 7F 09 3D */ stb r3, 0x93d(r31)
/* 80062ED8 0005ED18 98 1F 09 05 */ stb r0, 0x905(r31)
/* 80062EDC 0005ED1C 80 64 00 00 */ lwz r3, 0x0(r4)
/* 80062EE0 0005ED20 88 03 00 36 */ lbz r0, 0x36(r3)
/* 80062EE4 0005ED24 70 00 00 BE */ andi. r0, r0, 0xbe
/* 80062EE8 0005ED28 98 03 00 36 */ stb r0, 0x36(r3)
/* 80062EEC 0005ED2C 41 86 00 68 */ beq cr1, lbl_80062F54
/* 80062EF0 0005ED30 81 9F 08 E4 */ lwz r12, 0x8e4(r31)
/* 80062EF4 0005ED34 2C 0C 00 00 */ cmpwi r12, 0x0
/* 80062EF8 0005ED38 41 82 00 5C */ beq lbl_80062F54
/* 80062EFC 0005ED3C 7F C3 F3 78 */ mr r3, r30
/* 80062F00 0005ED40 88 9F 09 05 */ lbz r4, 0x905(r31)
/* 80062F04 0005ED44 7D 89 03 A6 */ mtctr r12
/* 80062F08 0005ED48 4E 80 04 21 */ bctrl
/* 80062F0C 0005ED4C 48 00 00 48 */ b lbl_80062F54
.global lbl_80062F10
lbl_80062F10:
/* 80062F10 0005ED50 2C 05 00 00 */ cmpwi r5, 0x0
/* 80062F14 0005ED54 40 82 00 40 */ bne lbl_80062F54
/* 80062F18 0005ED58 88 1F 09 3D */ lbz r0, 0x93d(r31)
/* 80062F1C 0005ED5C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80062F20 0005ED60 40 82 00 34 */ bne lbl_80062F54
/* 80062F24 0005ED64 3C C0 04 A4 */ lis r6, 0x4a4
/* 80062F28 0005ED68 38 7F 05 EC */ addi r3, r31, 0x5ec
/* 80062F2C 0005ED6C 38 9F 0B 2C */ addi r4, r31, 0xb2c
/* 80062F30 0005ED70 38 A0 00 04 */ li r5, 0x4
/* 80062F34 0005ED74 38 C6 00 F6 */ addi r6, r6, 0xf6
/* 80062F38 0005ED78 38 E0 00 00 */ li r7, 0x0
/* 80062F3C 0005ED7C 4B FF A4 B5 */ bl WPADiSendReadData
/* 80062F40 0005ED80 2C 03 00 00 */ cmpwi r3, 0x0
/* 80062F44 0005ED84 41 82 00 10 */ beq lbl_80062F54
/* 80062F48 0005ED88 38 00 00 01 */ li r0, 0x1
/* 80062F4C 0005ED8C 98 1F 09 3B */ stb r0, 0x93b(r31)
/* 80062F50 0005ED90 98 1F 09 3D */ stb r0, 0x93d(r31)
.global lbl_80062F54
lbl_80062F54:
/* 80062F54 0005ED94 88 1F 09 3D */ lbz r0, 0x93d(r31)
/* 80062F58 0005ED98 28 00 00 02 */ cmplwi r0, 0x2
/* 80062F5C 0005ED9C 41 82 00 0C */ beq lbl_80062F68
/* 80062F60 0005EDA0 28 00 00 09 */ cmplwi r0, 0x9
/* 80062F64 0005EDA4 40 82 00 38 */ bne lbl_80062F9C
.global lbl_80062F68
lbl_80062F68:
/* 80062F68 0005EDA8 3C C0 04 A4 */ lis r6, 0x4a4
/* 80062F6C 0005EDAC 38 7F 05 EC */ addi r3, r31, 0x5ec
/* 80062F70 0005EDB0 38 9F 0B 2C */ addi r4, r31, 0xb2c
/* 80062F74 0005EDB4 38 A0 00 10 */ li r5, 0x10
/* 80062F78 0005EDB8 38 C6 00 40 */ addi r6, r6, 0x40
/* 80062F7C 0005EDBC 38 E0 00 00 */ li r7, 0x0
/* 80062F80 0005EDC0 4B FF A4 71 */ bl WPADiSendReadData
/* 80062F84 0005EDC4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80062F88 0005EDC8 41 82 01 00 */ beq lbl_80063088
/* 80062F8C 0005EDCC 88 7F 09 3D */ lbz r3, 0x93d(r31)
/* 80062F90 0005EDD0 38 03 00 01 */ addi r0, r3, 0x1
/* 80062F94 0005EDD4 98 1F 09 3D */ stb r0, 0x93d(r31)
/* 80062F98 0005EDD8 48 00 00 F0 */ b lbl_80063088
.global lbl_80062F9C
lbl_80062F9C:
/* 80062F9C 0005EDDC 28 00 00 04 */ cmplwi r0, 0x4
/* 80062FA0 0005EDE0 40 82 00 94 */ bne lbl_80063034
/* 80062FA4 0005EDE4 38 00 00 05 */ li r0, 0x5
/* 80062FA8 0005EDE8 98 1F 09 3D */ stb r0, 0x93d(r31)
/* 80062FAC 0005EDEC 38 6D E9 F4 */ addi r3, r13, _wpadDevType2@sda21
/* 80062FB0 0005EDF0 7C 03 F0 AE */ lbzx r0, r3, r30
/* 80062FB4 0005EDF4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80062FB8 0005EDF8 41 82 00 18 */ beq lbl_80062FD0
/* 80062FBC 0005EDFC 2C 00 00 01 */ cmpwi r0, 0x1
/* 80062FC0 0005EE00 41 82 00 1C */ beq lbl_80062FDC
/* 80062FC4 0005EE04 2C 00 00 03 */ cmpwi r0, 0x3
/* 80062FC8 0005EE08 41 82 00 20 */ beq lbl_80062FE8
/* 80062FCC 0005EE0C 48 00 00 40 */ b lbl_8006300C
.global lbl_80062FD0
lbl_80062FD0:
/* 80062FD0 0005EE10 38 00 00 06 */ li r0, 0x6
/* 80062FD4 0005EE14 98 1F 09 05 */ stb r0, 0x905(r31)
/* 80062FD8 0005EE18 48 00 00 3C */ b lbl_80063014
.global lbl_80062FDC
lbl_80062FDC:
/* 80062FDC 0005EE1C 38 00 00 07 */ li r0, 0x7
/* 80062FE0 0005EE20 98 1F 09 05 */ stb r0, 0x905(r31)
/* 80062FE4 0005EE24 48 00 00 30 */ b lbl_80063014
.global lbl_80062FE8
lbl_80062FE8:
/* 80062FE8 0005EE28 80 0D E3 58 */ lwz r0, __OSInIPL@sda21(r13)
/* 80062FEC 0005EE2C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80062FF0 0005EE30 41 82 00 10 */ beq lbl_80063000
/* 80062FF4 0005EE34 38 00 00 07 */ li r0, 0x7
/* 80062FF8 0005EE38 98 1F 09 05 */ stb r0, 0x905(r31)
/* 80062FFC 0005EE3C 48 00 00 18 */ b lbl_80063014
.global lbl_80063000
lbl_80063000:
/* 80063000 0005EE40 38 00 00 FA */ li r0, 0xfa
/* 80063004 0005EE44 98 1F 09 05 */ stb r0, 0x905(r31)
/* 80063008 0005EE48 48 00 00 0C */ b lbl_80063014
.global lbl_8006300C
lbl_8006300C:
/* 8006300C 0005EE4C 38 00 00 FA */ li r0, 0xfa
/* 80063010 0005EE50 98 1F 09 05 */ stb r0, 0x905(r31)
.global lbl_80063014
lbl_80063014:
/* 80063014 0005EE54 81 9F 08 E4 */ lwz r12, 0x8e4(r31)
/* 80063018 0005EE58 2C 0C 00 00 */ cmpwi r12, 0x0
/* 8006301C 0005EE5C 41 82 00 6C */ beq lbl_80063088
/* 80063020 0005EE60 7F C3 F3 78 */ mr r3, r30
/* 80063024 0005EE64 88 9F 09 05 */ lbz r4, 0x905(r31)
/* 80063028 0005EE68 7D 89 03 A6 */ mtctr r12
/* 8006302C 0005EE6C 4E 80 04 21 */ bctrl
/* 80063030 0005EE70 48 00 00 58 */ b lbl_80063088
.global lbl_80063034
lbl_80063034:
/* 80063034 0005EE74 28 00 00 06 */ cmplwi r0, 0x6
/* 80063038 0005EE78 40 82 00 50 */ bne lbl_80063088
/* 8006303C 0005EE7C 38 7F 05 EC */ addi r3, r31, 0x5ec
/* 80063040 0005EE80 38 80 00 02 */ li r4, 0x2
/* 80063044 0005EE84 4B FF A5 5D */ bl WPADiIsAvailableCmdQueue
/* 80063048 0005EE88 2C 03 00 00 */ cmpwi r3, 0x0
/* 8006304C 0005EE8C 41 82 00 3C */ beq lbl_80063088
/* 80063050 0005EE90 3F C0 04 A4 */ lis r30, 0x4a4
/* 80063054 0005EE94 38 7F 05 EC */ addi r3, r31, 0x5ec
/* 80063058 0005EE98 38 BE 00 F3 */ addi r5, r30, 0xf3
/* 8006305C 0005EE9C 38 80 00 01 */ li r4, 0x1
/* 80063060 0005EEA0 38 C0 00 00 */ li r6, 0x0
/* 80063064 0005EEA4 4B FF A0 0D */ bl WPADiSendWriteDataCmd
/* 80063068 0005EEA8 38 7F 05 EC */ addi r3, r31, 0x5ec
/* 8006306C 0005EEAC 38 9F 0B A4 */ addi r4, r31, 0xba4
/* 80063070 0005EEB0 38 DE 00 F3 */ addi r6, r30, 0xf3
/* 80063074 0005EEB4 38 A0 00 01 */ li r5, 0x1
/* 80063078 0005EEB8 38 E0 00 00 */ li r7, 0x0
/* 8006307C 0005EEBC 4B FF A3 75 */ bl WPADiSendReadData
/* 80063080 0005EEC0 38 00 00 07 */ li r0, 0x7
/* 80063084 0005EEC4 98 1F 09 3D */ stb r0, 0x93d(r31)
.global lbl_80063088
lbl_80063088:
/* 80063088 0005EEC8 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8006308C 0005EECC 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80063090 0005EED0 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80063094 0005EED4 7C 08 03 A6 */ mtlr r0
/* 80063098 0005EED8 38 21 00 10 */ addi r1, r1, 0x10
/* 8006309C 0005EEDC 4E 80 00 20 */ blr
.global __parse_ext_data
__parse_ext_data:
/* 800630A0 0005EEE0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 800630A4 0005EEE4 7C 08 02 A6 */ mflr r0
/* 800630A8 0005EEE8 90 01 00 34 */ stw r0, 0x34(r1)
/* 800630AC 0005EEEC 39 61 00 30 */ addi r11, r1, 0x30
/* 800630B0 0005EEF0 4B FA 42 85 */ bl lbl_80007334
/* 800630B4 0005EEF4 3F E0 80 4C */ lis r31, __rvl_p_wpadcb@ha
/* 800630B8 0005EEF8 54 7E 10 3A */ slwi r30, r3, 2
/* 800630BC 0005EEFC 3B FF 1A 50 */ addi r31, r31, __rvl_p_wpadcb@l
/* 800630C0 0005EF00 90 81 00 08 */ stw r4, 0x8(r1)
/* 800630C4 0005EF04 7F BF F0 2E */ lwzx r29, r31, r30
/* 800630C8 0005EF08 7C 79 1B 78 */ mr r25, r3
/* 800630CC 0005EF0C 7C DA 33 78 */ mr r26, r6
/* 800630D0 0005EF10 7C FB 3B 78 */ mr r27, r7
/* 800630D4 0005EF14 88 1D 0B B9 */ lbz r0, 0xbb9(r29)
/* 800630D8 0005EF18 7C 9C 23 78 */ mr r28, r4
/* 800630DC 0005EF1C 7C 00 07 74 */ extsb r0, r0
/* 800630E0 0005EF20 2C 00 FF FF */ cmpwi r0, -0x1
/* 800630E4 0005EF24 40 82 00 28 */ bne lbl_8006310C
/* 800630E8 0005EF28 88 04 00 29 */ lbz r0, 0x29(r4)
/* 800630EC 0005EF2C 7F 44 D3 78 */ mr r4, r26
/* 800630F0 0005EF30 98 1D 0B B9 */ stb r0, 0xbb9(r29)
/* 800630F4 0005EF34 7F 65 DB 78 */ mr r5, r27
/* 800630F8 0005EF38 38 7D 0B C0 */ addi r3, r29, 0xbc0
/* 800630FC 0005EF3C 88 1D 09 05 */ lbz r0, 0x905(r29)
/* 80063100 0005EF40 98 1D 0B BB */ stb r0, 0xbbb(r29)
/* 80063104 0005EF44 98 FD 0B BA */ stb r7, 0xbba(r29)
/* 80063108 0005EF48 4B FA 0E F9 */ bl memcpy
.global lbl_8006310C
lbl_8006310C:
/* 8006310C 0005EF4C 88 1C 00 29 */ lbz r0, 0x29(r28)
/* 80063110 0005EF50 7C 00 07 75 */ extsb. r0, r0
/* 80063114 0005EF54 40 82 00 9C */ bne lbl_800631B0
/* 80063118 0005EF58 3C 80 80 40 */ lis r4, _cExtInvalidData2@ha
/* 8006311C 0005EF5C 7F 43 D3 78 */ mr r3, r26
/* 80063120 0005EF60 7F 65 DB 78 */ mr r5, r27
/* 80063124 0005EF64 38 84 7D D0 */ addi r4, r4, _cExtInvalidData2@l
/* 80063128 0005EF68 4B FA 7D 49 */ bl memcmp
/* 8006312C 0005EF6C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80063130 0005EF70 40 82 00 10 */ bne lbl_80063140
/* 80063134 0005EF74 38 00 FF FC */ li r0, -0x4
/* 80063138 0005EF78 98 1C 00 29 */ stb r0, 0x29(r28)
/* 8006313C 0005EF7C 48 00 00 74 */ b lbl_800631B0
.global lbl_80063140
lbl_80063140:
/* 80063140 0005EF80 3C 80 80 40 */ lis r4, _cExtInvalidData@ha
/* 80063144 0005EF84 7F 43 D3 78 */ mr r3, r26
/* 80063148 0005EF88 7F 65 DB 78 */ mr r5, r27
/* 8006314C 0005EF8C 38 84 7D B8 */ addi r4, r4, _cExtInvalidData@l
/* 80063150 0005EF90 4B FA 7D 21 */ bl memcmp
/* 80063154 0005EF94 2C 03 00 00 */ cmpwi r3, 0x0
/* 80063158 0005EF98 40 82 00 18 */ bne lbl_80063170
/* 8006315C 0005EF9C 38 00 FF F9 */ li r0, -0x7
/* 80063160 0005EFA0 98 1C 00 29 */ stb r0, 0x29(r28)
/* 80063164 0005EFA4 38 00 00 03 */ li r0, 0x3
/* 80063168 0005EFA8 98 1D 0B B8 */ stb r0, 0xbb8(r29)
/* 8006316C 0005EFAC 48 00 00 44 */ b lbl_800631B0
.global lbl_80063170
lbl_80063170:
/* 80063170 0005EFB0 80 1D 08 40 */ lwz r0, 0x840(r29)
/* 80063174 0005EFB4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80063178 0005EFB8 40 82 00 18 */ bne lbl_80063190
/* 8006317C 0005EFBC 38 00 FF F9 */ li r0, -0x7
/* 80063180 0005EFC0 98 1C 00 29 */ stb r0, 0x29(r28)
/* 80063184 0005EFC4 38 00 00 03 */ li r0, 0x3
/* 80063188 0005EFC8 98 1D 0B B8 */ stb r0, 0xbb8(r29)
/* 8006318C 0005EFCC 48 00 00 24 */ b lbl_800631B0
.global lbl_80063190
lbl_80063190:
/* 80063190 0005EFD0 88 1D 0B B8 */ lbz r0, 0xbb8(r29)
/* 80063194 0005EFD4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80063198 0005EFD8 41 82 00 18 */ beq lbl_800631B0
/* 8006319C 0005EFDC 38 00 FF F9 */ li r0, -0x7
/* 800631A0 0005EFE0 98 1C 00 29 */ stb r0, 0x29(r28)
/* 800631A4 0005EFE4 88 7D 0B B8 */ lbz r3, 0xbb8(r29)
/* 800631A8 0005EFE8 38 03 FF FF */ addi r0, r3, -0x1
/* 800631AC 0005EFEC 98 1D 0B B8 */ stb r0, 0xbb8(r29)
.global lbl_800631B0
lbl_800631B0:
/* 800631B0 0005EFF0 88 1D 0B B9 */ lbz r0, 0xbb9(r29)
/* 800631B4 0005EFF4 7C 00 07 75 */ extsb. r0, r0
/* 800631B8 0005EFF8 40 82 00 1C */ bne lbl_800631D4
/* 800631BC 0005EFFC 88 1C 00 29 */ lbz r0, 0x29(r28)
/* 800631C0 0005F000 7C 00 07 74 */ extsb r0, r0
/* 800631C4 0005F004 2C 00 FF F9 */ cmpwi r0, -0x7
/* 800631C8 0005F008 40 82 00 0C */ bne lbl_800631D4
/* 800631CC 0005F00C 38 00 FF F9 */ li r0, -0x7
/* 800631D0 0005F010 98 1D 0B B9 */ stb r0, 0xbb9(r29)
.global lbl_800631D4
lbl_800631D4:
/* 800631D4 0005F014 88 7D 0B BB */ lbz r3, 0xbbb(r29)
/* 800631D8 0005F018 88 1D 09 05 */ lbz r0, 0x905(r29)
/* 800631DC 0005F01C 7C 03 00 40 */ cmplw r3, r0
/* 800631E0 0005F020 41 82 00 0C */ beq lbl_800631EC
/* 800631E4 0005F024 38 00 FF FC */ li r0, -0x4
/* 800631E8 0005F028 98 1D 0B B9 */ stb r0, 0xbb9(r29)
.global lbl_800631EC
lbl_800631EC:
/* 800631EC 0005F02C 88 1D 0B B9 */ lbz r0, 0xbb9(r29)
/* 800631F0 0005F030 7C 00 07 75 */ extsb. r0, r0
/* 800631F4 0005F034 40 82 04 0C */ bne lbl_80063600
/* 800631F8 0005F038 38 00 00 00 */ li r0, 0x0
/* 800631FC 0005F03C 98 1D 0B B8 */ stb r0, 0xbb8(r29)
/* 80063200 0005F040 7F 23 CB 78 */ mr r3, r25
/* 80063204 0005F044 38 9D 0B C0 */ addi r4, r29, 0xbc0
/* 80063208 0005F048 88 BD 0B BA */ lbz r5, 0xbba(r29)
/* 8006320C 0005F04C 38 C0 00 00 */ li r6, 0x0
/* 80063210 0005F050 48 00 18 C1 */ bl WPADiDecode
/* 80063214 0005F054 88 1D 09 05 */ lbz r0, 0x905(r29)
/* 80063218 0005F058 28 00 00 10 */ cmplwi r0, 0x10
/* 8006321C 0005F05C 41 82 02 E8 */ beq lbl_80063504
/* 80063220 0005F060 40 80 00 34 */ bge lbl_80063254
/* 80063224 0005F064 28 00 00 03 */ cmplwi r0, 0x3
/* 80063228 0005F068 41 82 03 84 */ beq lbl_800635AC
/* 8006322C 0005F06C 40 80 00 14 */ bge lbl_80063240
/* 80063230 0005F070 28 00 00 01 */ cmplwi r0, 0x1
/* 80063234 0005F074 41 82 00 44 */ beq lbl_80063278
/* 80063238 0005F078 40 80 01 C8 */ bge lbl_80063400
/* 8006323C 0005F07C 48 00 03 C4 */ b lbl_80063600
.global lbl_80063240
lbl_80063240:
/* 80063240 0005F080 28 00 00 08 */ cmplwi r0, 0x8
/* 80063244 0005F084 40 80 03 BC */ bge lbl_80063600
/* 80063248 0005F088 28 00 00 05 */ cmplwi r0, 0x5
/* 8006324C 0005F08C 40 80 03 9C */ bge lbl_800635E8
/* 80063250 0005F090 48 00 03 78 */ b lbl_800635C8
.global lbl_80063254
lbl_80063254:
/* 80063254 0005F094 28 00 00 1D */ cmplwi r0, 0x1d
/* 80063258 0005F098 41 82 02 E0 */ beq lbl_80063538
/* 8006325C 0005F09C 40 80 00 10 */ bge lbl_8006326C
/* 80063260 0005F0A0 28 00 00 15 */ cmplwi r0, 0x15
/* 80063264 0005F0A4 40 80 01 B8 */ bge lbl_8006341C
/* 80063268 0005F0A8 48 00 01 98 */ b lbl_80063400
.global lbl_8006326C
lbl_8006326C:
/* 8006326C 0005F0AC 28 00 00 FA */ cmplwi r0, 0xfa
/* 80063270 0005F0B0 41 82 03 78 */ beq lbl_800635E8
/* 80063274 0005F0B4 48 00 03 8C */ b lbl_80063600
.global lbl_80063278
lbl_80063278:
/* 80063278 0005F0B8 7C 7F F0 2E */ lwzx r3, r31, r30
/* 8006327C 0005F0BC 80 81 00 08 */ lwz r4, 0x8(r1)
/* 80063280 0005F0C0 88 1D 0B C0 */ lbz r0, 0xbc0(r29)
/* 80063284 0005F0C4 98 04 00 30 */ stb r0, 0x30(r4)
/* 80063288 0005F0C8 80 81 00 08 */ lwz r4, 0x8(r1)
/* 8006328C 0005F0CC 88 1D 0B C1 */ lbz r0, 0xbc1(r29)
/* 80063290 0005F0D0 98 04 00 31 */ stb r0, 0x31(r4)
/* 80063294 0005F0D4 88 1D 0B C2 */ lbz r0, 0xbc2(r29)
/* 80063298 0005F0D8 88 BD 0B C5 */ lbz r5, 0xbc5(r29)
/* 8006329C 0005F0DC 54 00 10 3A */ slwi r0, r0, 2
/* 800632A0 0005F0E0 A8 E3 08 90 */ lha r7, 0x890(r3)
/* 800632A4 0005F0E4 7C 04 07 34 */ extsh r4, r0
/* 800632A8 0005F0E8 54 86 00 3A */ clrrwi r6, r4, 2
/* 800632AC 0005F0EC 54 A0 F7 BE */ extrwi r0, r5, 2, 28
/* 800632B0 0005F0F0 7C C6 07 34 */ extsh r6, r6
/* 800632B4 0005F0F4 80 81 00 08 */ lwz r4, 0x8(r1)
/* 800632B8 0005F0F8 7C C0 03 78 */ or r0, r6, r0
/* 800632BC 0005F0FC 7C A5 16 70 */ srawi r5, r5, 2
/* 800632C0 0005F100 7C 00 07 34 */ extsh r0, r0
/* 800632C4 0005F104 7C 07 00 50 */ subf r0, r7, r0
/* 800632C8 0005F108 B0 04 00 2A */ sth r0, 0x2a(r4)
/* 800632CC 0005F10C 88 1D 0B C3 */ lbz r0, 0xbc3(r29)
/* 800632D0 0005F110 88 BD 0B C5 */ lbz r5, 0xbc5(r29)
/* 800632D4 0005F114 54 00 10 3A */ slwi r0, r0, 2
/* 800632D8 0005F118 A8 E3 08 92 */ lha r7, 0x892(r3)
/* 800632DC 0005F11C 7C 04 07 34 */ extsh r4, r0
/* 800632E0 0005F120 54 86 00 3A */ clrrwi r6, r4, 2
/* 800632E4 0005F124 54 A0 E7 BE */ extrwi r0, r5, 2, 26
/* 800632E8 0005F128 7C C6 07 34 */ extsh r6, r6
/* 800632EC 0005F12C 80 81 00 08 */ lwz r4, 0x8(r1)
/* 800632F0 0005F130 7C C0 03 78 */ or r0, r6, r0
/* 800632F4 0005F134 7C A5 26 70 */ srawi r5, r5, 4
/* 800632F8 0005F138 7C 00 07 34 */ extsh r0, r0
/* 800632FC 0005F13C 7C 07 00 50 */ subf r0, r7, r0
/* 80063300 0005F140 B0 04 00 2C */ sth r0, 0x2c(r4)
/* 80063304 0005F144 88 9D 0B C4 */ lbz r4, 0xbc4(r29)
/* 80063308 0005F148 88 1D 0B C5 */ lbz r0, 0xbc5(r29)
/* 8006330C 0005F14C 54 84 10 3A */ slwi r4, r4, 2
/* 80063310 0005F150 A8 C3 08 94 */ lha r6, 0x894(r3)
/* 80063314 0005F154 7C 84 07 34 */ extsh r4, r4
/* 80063318 0005F158 7C 00 36 70 */ srawi r0, r0, 6
/* 8006331C 0005F15C 54 85 00 3A */ clrrwi r5, r4, 2
/* 80063320 0005F160 80 81 00 08 */ lwz r4, 0x8(r1)
/* 80063324 0005F164 7C A5 07 34 */ extsh r5, r5
/* 80063328 0005F168 7C 00 07 34 */ extsh r0, r0
/* 8006332C 0005F16C 7C A0 03 78 */ or r0, r5, r0
/* 80063330 0005F170 7C 00 07 34 */ extsh r0, r0
/* 80063334 0005F174 7C 06 00 50 */ subf r0, r6, r0
/* 80063338 0005F178 B0 04 00 2E */ sth r0, 0x2e(r4)
/* 8006333C 0005F17C 80 A1 00 08 */ lwz r5, 0x8(r1)
/* 80063340 0005F180 88 1D 0B C5 */ lbz r0, 0xbc5(r29)
/* 80063344 0005F184 A0 85 00 00 */ lhz r4, 0x0(r5)
/* 80063348 0005F188 7C 00 00 F8 */ nor r0, r0, r0
/* 8006334C 0005F18C 54 00 6C 64 */ rlwinm r0, r0, 13, 17, 18
/* 80063350 0005F190 7C 80 03 78 */ or r0, r4, r0
/* 80063354 0005F194 B0 05 00 00 */ sth r0, 0x0(r5)
/* 80063358 0005F198 88 03 0B 09 */ lbz r0, 0xb09(r3)
/* 8006335C 0005F19C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80063360 0005F1A0 40 82 00 2C */ bne lbl_8006338C
/* 80063364 0005F1A4 38 00 00 01 */ li r0, 0x1
/* 80063368 0005F1A8 98 03 0B 09 */ stb r0, 0xb09(r3)
/* 8006336C 0005F1AC 80 81 00 08 */ lwz r4, 0x8(r1)
/* 80063370 0005F1B0 88 04 00 30 */ lbz r0, 0x30(r4)
/* 80063374 0005F1B4 7C 00 07 74 */ extsb r0, r0
/* 80063378 0005F1B8 B0 03 08 84 */ sth r0, 0x884(r3)
/* 8006337C 0005F1BC 80 81 00 08 */ lwz r4, 0x8(r1)
/* 80063380 0005F1C0 88 04 00 31 */ lbz r0, 0x31(r4)
/* 80063384 0005F1C4 7C 00 07 74 */ extsb r0, r0
/* 80063388 0005F1C8 B0 03 08 8A */ sth r0, 0x88a(r3)
.global lbl_8006338C
lbl_8006338C:
/* 8006338C 0005F1CC 80 A1 00 08 */ lwz r5, 0x8(r1)
/* 80063390 0005F1D0 A8 83 08 84 */ lha r4, 0x884(r3)
/* 80063394 0005F1D4 88 05 00 30 */ lbz r0, 0x30(r5)
/* 80063398 0005F1D8 54 84 06 3E */ clrlwi r4, r4, 24
/* 8006339C 0005F1DC 7C 04 00 50 */ subf r0, r4, r0
/* 800633A0 0005F1E0 7C 04 07 34 */ extsh r4, r0
/* 800633A4 0005F1E4 2C 04 FF 80 */ cmpwi r4, -0x80
/* 800633A8 0005F1E8 7C 80 23 78 */ mr r0, r4
/* 800633AC 0005F1EC 40 80 00 08 */ bge lbl_800633B4
/* 800633B0 0005F1F0 38 00 FF 80 */ li r0, -0x80
.global lbl_800633B4
lbl_800633B4:
/* 800633B4 0005F1F4 2C 04 00 7F */ cmpwi r4, 0x7f
/* 800633B8 0005F1F8 40 81 00 08 */ ble lbl_800633C0
/* 800633BC 0005F1FC 38 00 00 7F */ li r0, 0x7f
.global lbl_800633C0
lbl_800633C0:
/* 800633C0 0005F200 98 05 00 30 */ stb r0, 0x30(r5)
/* 800633C4 0005F204 80 81 00 08 */ lwz r4, 0x8(r1)
/* 800633C8 0005F208 A8 63 08 8A */ lha r3, 0x88a(r3)
/* 800633CC 0005F20C 88 04 00 31 */ lbz r0, 0x31(r4)
/* 800633D0 0005F210 54 63 06 3E */ clrlwi r3, r3, 24
/* 800633D4 0005F214 7C 03 00 50 */ subf r0, r3, r0
/* 800633D8 0005F218 7C 03 07 34 */ extsh r3, r0
/* 800633DC 0005F21C 2C 03 FF 80 */ cmpwi r3, -0x80
/* 800633E0 0005F220 7C 60 1B 78 */ mr r0, r3
/* 800633E4 0005F224 40 80 00 08 */ bge lbl_800633EC
/* 800633E8 0005F228 38 00 FF 80 */ li r0, -0x80
.global lbl_800633EC
lbl_800633EC:
/* 800633EC 0005F22C 2C 03 00 7F */ cmpwi r3, 0x7f
/* 800633F0 0005F230 40 81 00 08 */ ble lbl_800633F8
/* 800633F4 0005F234 38 00 00 7F */ li r0, 0x7f
.global lbl_800633F8
lbl_800633F8:
/* 800633F8 0005F238 98 04 00 31 */ stb r0, 0x31(r4)
/* 800633FC 0005F23C 48 00 02 04 */ b lbl_80063600
.global lbl_80063400
lbl_80063400:
/* 80063400 0005F240 88 BD 09 06 */ lbz r5, 0x906(r29)
/* 80063404 0005F244 7F 23 CB 78 */ mr r3, r25
/* 80063408 0005F248 88 FD 0B BA */ lbz r7, 0xbba(r29)
/* 8006340C 0005F24C 38 81 00 08 */ addi r4, r1, 0x8
/* 80063410 0005F250 38 DD 0B C0 */ addi r6, r29, 0xbc0
/* 80063414 0005F254 4B FF EB BD */ bl __parse_cl_data
/* 80063418 0005F258 48 00 01 E8 */ b lbl_80063600
.global lbl_8006341C
lbl_8006341C:
/* 8006341C 0005F25C 88 7D 0B BA */ lbz r3, 0xbba(r29)
/* 80063420 0005F260 38 80 00 00 */ li r4, 0x0
/* 80063424 0005F264 2C 03 00 00 */ cmpwi r3, 0x0
/* 80063428 0005F268 40 81 01 D8 */ ble lbl_80063600
/* 8006342C 0005F26C 28 03 00 08 */ cmplwi r3, 0x8
/* 80063430 0005F270 38 A3 FF F8 */ addi r5, r3, -0x8
/* 80063434 0005F274 40 81 00 C0 */ ble lbl_800634F4
/* 80063438 0005F278 48 00 00 90 */ b lbl_800634C8
.global lbl_8006343C
lbl_8006343C:
/* 8006343C 0005F27C 54 80 04 3E */ clrlwi r0, r4, 16
/* 80063440 0005F280 80 E1 00 08 */ lwz r7, 0x8(r1)
/* 80063444 0005F284 7C DD 02 14 */ add r6, r29, r0
/* 80063448 0005F288 38 84 00 08 */ addi r4, r4, 0x8
/* 8006344C 0005F28C 7C E7 02 14 */ add r7, r7, r0
/* 80063450 0005F290 89 06 0B C0 */ lbz r8, 0xbc0(r6)
/* 80063454 0005F294 99 07 00 2A */ stb r8, 0x2a(r7)
/* 80063458 0005F298 80 E1 00 08 */ lwz r7, 0x8(r1)
/* 8006345C 0005F29C 89 06 0B C1 */ lbz r8, 0xbc1(r6)
/* 80063460 0005F2A0 7C E7 02 14 */ add r7, r7, r0
/* 80063464 0005F2A4 99 07 00 2B */ stb r8, 0x2b(r7)
/* 80063468 0005F2A8 80 E1 00 08 */ lwz r7, 0x8(r1)
/* 8006346C 0005F2AC 89 06 0B C2 */ lbz r8, 0xbc2(r6)
/* 80063470 0005F2B0 7C E7 02 14 */ add r7, r7, r0
/* 80063474 0005F2B4 99 07 00 2C */ stb r8, 0x2c(r7)
/* 80063478 0005F2B8 80 E1 00 08 */ lwz r7, 0x8(r1)
/* 8006347C 0005F2BC 89 06 0B C3 */ lbz r8, 0xbc3(r6)
/* 80063480 0005F2C0 7C E7 02 14 */ add r7, r7, r0
/* 80063484 0005F2C4 99 07 00 2D */ stb r8, 0x2d(r7)
/* 80063488 0005F2C8 80 E1 00 08 */ lwz r7, 0x8(r1)
/* 8006348C 0005F2CC 89 06 0B C4 */ lbz r8, 0xbc4(r6)
/* 80063490 0005F2D0 7C E7 02 14 */ add r7, r7, r0
/* 80063494 0005F2D4 99 07 00 2E */ stb r8, 0x2e(r7)
/* 80063498 0005F2D8 80 E1 00 08 */ lwz r7, 0x8(r1)
/* 8006349C 0005F2DC 89 06 0B C5 */ lbz r8, 0xbc5(r6)
/* 800634A0 0005F2E0 7C E7 02 14 */ add r7, r7, r0
/* 800634A4 0005F2E4 99 07 00 2F */ stb r8, 0x2f(r7)
/* 800634A8 0005F2E8 80 E1 00 08 */ lwz r7, 0x8(r1)
/* 800634AC 0005F2EC 89 06 0B C6 */ lbz r8, 0xbc6(r6)
/* 800634B0 0005F2F0 7C E7 02 14 */ add r7, r7, r0
/* 800634B4 0005F2F4 99 07 00 30 */ stb r8, 0x30(r7)
/* 800634B8 0005F2F8 80 E1 00 08 */ lwz r7, 0x8(r1)
/* 800634BC 0005F2FC 89 06 0B C7 */ lbz r8, 0xbc7(r6)
/* 800634C0 0005F300 7C C7 02 14 */ add r6, r7, r0
/* 800634C4 0005F304 99 06 00 31 */ stb r8, 0x31(r6)
.global lbl_800634C8
lbl_800634C8:
/* 800634C8 0005F308 54 80 04 3E */ clrlwi r0, r4, 16
/* 800634CC 0005F30C 7C 00 28 00 */ cmpw r0, r5
/* 800634D0 0005F310 41 80 FF 6C */ blt lbl_8006343C
/* 800634D4 0005F314 48 00 00 20 */ b lbl_800634F4
.global lbl_800634D8
lbl_800634D8:
/* 800634D8 0005F318 54 85 04 3E */ clrlwi r5, r4, 16
/* 800634DC 0005F31C 80 01 00 08 */ lwz r0, 0x8(r1)
/* 800634E0 0005F320 7C DD 2A 14 */ add r6, r29, r5
/* 800634E4 0005F324 38 84 00 01 */ addi r4, r4, 0x1
/* 800634E8 0005F328 7C A0 2A 14 */ add r5, r0, r5
/* 800634EC 0005F32C 88 06 0B C0 */ lbz r0, 0xbc0(r6)
/* 800634F0 0005F330 98 05 00 2A */ stb r0, 0x2a(r5)
.global lbl_800634F4
lbl_800634F4:
/* 800634F4 0005F334 54 80 04 3E */ clrlwi r0, r4, 16
/* 800634F8 0005F338 7C 00 18 00 */ cmpw r0, r3
/* 800634FC 0005F33C 41 80 FF DC */ blt lbl_800634D8
/* 80063500 0005F340 48 00 01 00 */ b lbl_80063600
.global lbl_80063504
lbl_80063504:
/* 80063504 0005F344 80 61 00 08 */ lwz r3, 0x8(r1)
/* 80063508 0005F348 88 1D 0B C2 */ lbz r0, 0xbc2(r29)
/* 8006350C 0005F34C 98 03 00 2C */ stb r0, 0x2c(r3)
/* 80063510 0005F350 80 61 00 08 */ lwz r3, 0x8(r1)
/* 80063514 0005F354 88 1D 0B C3 */ lbz r0, 0xbc3(r29)
/* 80063518 0005F358 98 03 00 2D */ stb r0, 0x2d(r3)
/* 8006351C 0005F35C 88 9D 0B C6 */ lbz r4, 0xbc6(r29)
/* 80063520 0005F360 88 1D 0B C7 */ lbz r0, 0xbc7(r29)
/* 80063524 0005F364 50 80 44 2E */ rlwimi r0, r4, 8, 16, 23
/* 80063528 0005F368 80 61 00 08 */ lwz r3, 0x8(r1)
/* 8006352C 0005F36C 68 00 FF FF */ xori r0, r0, 0xffff
/* 80063530 0005F370 B0 03 00 2A */ sth r0, 0x2a(r3)
/* 80063534 0005F374 48 00 00 CC */ b lbl_80063600
.global lbl_80063538
lbl_80063538:
/* 80063538 0005F378 88 9D 0B C2 */ lbz r4, 0xbc2(r29)
/* 8006353C 0005F37C 88 1D 0B C0 */ lbz r0, 0xbc0(r29)
/* 80063540 0005F380 80 61 00 08 */ lwz r3, 0x8(r1)
/* 80063544 0005F384 54 84 45 2E */ rlwinm r4, r4, 8, 20, 23
/* 80063548 0005F388 7C 00 07 34 */ extsh r0, r0
/* 8006354C 0005F38C 7C 80 03 78 */ or r0, r4, r0
/* 80063550 0005F390 B0 03 00 2A */ sth r0, 0x2a(r3)
/* 80063554 0005F394 88 9D 0B C2 */ lbz r4, 0xbc2(r29)
/* 80063558 0005F398 88 1D 0B C1 */ lbz r0, 0xbc1(r29)
/* 8006355C 0005F39C 80 61 00 08 */ lwz r3, 0x8(r1)
/* 80063560 0005F3A0 54 84 25 2E */ rlwinm r4, r4, 4, 20, 23
/* 80063564 0005F3A4 7C 00 07 34 */ extsh r0, r0
/* 80063568 0005F3A8 7C 80 03 78 */ or r0, r4, r0
/* 8006356C 0005F3AC B0 03 00 2C */ sth r0, 0x2c(r3)
/* 80063570 0005F3B0 88 9D 0B C5 */ lbz r4, 0xbc5(r29)
/* 80063574 0005F3B4 88 1D 0B C3 */ lbz r0, 0xbc3(r29)
/* 80063578 0005F3B8 80 61 00 08 */ lwz r3, 0x8(r1)
/* 8006357C 0005F3BC 54 84 35 AE */ rlwinm r4, r4, 6, 22, 23
/* 80063580 0005F3C0 7C 00 07 34 */ extsh r0, r0
/* 80063584 0005F3C4 7C 80 03 78 */ or r0, r4, r0
/* 80063588 0005F3C8 B0 03 00 2E */ sth r0, 0x2e(r3)
/* 8006358C 0005F3CC 80 81 00 08 */ lwz r4, 0x8(r1)
/* 80063590 0005F3D0 88 1D 0B C5 */ lbz r0, 0xbc5(r29)
/* 80063594 0005F3D4 A0 64 00 00 */ lhz r3, 0x0(r4)
/* 80063598 0005F3D8 7C 00 00 F8 */ nor r0, r0, r0
/* 8006359C 0005F3DC 54 00 6C 64 */ rlwinm r0, r0, 13, 17, 18
/* 800635A0 0005F3E0 7C 60 03 78 */ or r0, r3, r0
/* 800635A4 0005F3E4 B0 04 00 00 */ sth r0, 0x0(r4)
/* 800635A8 0005F3E8 48 00 00 58 */ b lbl_80063600
.global lbl_800635AC
lbl_800635AC:
/* 800635AC 0005F3EC 88 BD 09 06 */ lbz r5, 0x906(r29)
/* 800635B0 0005F3F0 7F 23 CB 78 */ mr r3, r25
/* 800635B4 0005F3F4 88 FD 0B BA */ lbz r7, 0xbba(r29)
/* 800635B8 0005F3F8 38 81 00 08 */ addi r4, r1, 0x8
/* 800635BC 0005F3FC 38 DD 0B C0 */ addi r6, r29, 0xbc0
/* 800635C0 0005F400 4B FF EF 61 */ bl __parse_bl_data
/* 800635C4 0005F404 48 00 00 3C */ b lbl_80063600
.global lbl_800635C8
lbl_800635C8:
/* 800635C8 0005F408 80 1D 08 FC */ lwz r0, 0x8fc(r29)
/* 800635CC 0005F40C 7F 23 CB 78 */ mr r3, r25
/* 800635D0 0005F410 88 FD 0B BA */ lbz r7, 0xbba(r29)
/* 800635D4 0005F414 38 81 00 08 */ addi r4, r1, 0x8
/* 800635D8 0005F418 54 05 06 3E */ clrlwi r5, r0, 24
/* 800635DC 0005F41C 38 DD 0B C0 */ addi r6, r29, 0xbc0
/* 800635E0 0005F420 4B FF F0 41 */ bl __parse_vs_data
/* 800635E4 0005F424 48 00 00 1C */ b lbl_80063600
.global lbl_800635E8
lbl_800635E8:
/* 800635E8 0005F428 88 BD 09 06 */ lbz r5, 0x906(r29)
/* 800635EC 0005F42C 7F 23 CB 78 */ mr r3, r25
/* 800635F0 0005F430 88 FD 0B BA */ lbz r7, 0xbba(r29)
/* 800635F4 0005F434 38 81 00 08 */ addi r4, r1, 0x8
/* 800635F8 0005F438 38 DD 0B C0 */ addi r6, r29, 0xbc0
/* 800635FC 0005F43C 4B FF F1 A5 */ bl __parse_mp_data
.global lbl_80063600
lbl_80063600:
/* 80063600 0005F440 88 DC 00 29 */ lbz r6, 0x29(r28)
/* 80063604 0005F444 7F 44 D3 78 */ mr r4, r26
/* 80063608 0005F448 88 1D 0B B9 */ lbz r0, 0xbb9(r29)
/* 8006360C 0005F44C 7F 65 DB 78 */ mr r5, r27
/* 80063610 0005F450 98 1C 00 29 */ stb r0, 0x29(r28)
/* 80063614 0005F454 38 7D 0B C0 */ addi r3, r29, 0xbc0
/* 80063618 0005F458 98 DD 0B B9 */ stb r6, 0xbb9(r29)
/* 8006361C 0005F45C 88 1D 09 05 */ lbz r0, 0x905(r29)
/* 80063620 0005F460 98 1D 0B BB */ stb r0, 0xbbb(r29)
/* 80063624 0005F464 9B 7D 0B BA */ stb r27, 0xbba(r29)
/* 80063628 0005F468 4B FA 09 D9 */ bl memcpy
/* 8006362C 0005F46C 39 61 00 30 */ addi r11, r1, 0x30
/* 80063630 0005F470 4B FA 3D 51 */ bl lbl_80007380
/* 80063634 0005F474 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80063638 0005F478 7C 08 03 A6 */ mtlr r0
/* 8006363C 0005F47C 38 21 00 30 */ addi r1, r1, 0x30
/* 80063640 0005F480 4E 80 00 20 */ blr
/* 80063644 0005F484 00 00 00 00 */ .4byte 0x00000000
/* 80063648 0005F488 00 00 00 00 */ .4byte 0x00000000
/* 8006364C 0005F48C 00 00 00 00 */ .4byte 0x00000000
.global __a1_30_data_type
__a1_30_data_type:
/* 80063650 0005F490 88 C4 00 02 */ lbz r6, 0x2(r4)
/* 80063654 0005F494 3C E0 80 4C */ lis r7, __rvl_p_wpadcb@ha
/* 80063658 0005F498 88 04 00 01 */ lbz r0, 0x1(r4)
/* 8006365C 0005F49C 54 63 15 BA */ rlwinm r3, r3, 2, 22, 29
/* 80063660 0005F4A0 38 E7 1A 50 */ addi r7, r7, __rvl_p_wpadcb@l
/* 80063664 0005F4A4 50 C0 44 2E */ rlwimi r0, r6, 8, 16, 23
/* 80063668 0005F4A8 7C 67 18 2E */ lwzx r3, r7, r3
/* 8006366C 0005F4AC 70 00 9F 1F */ andi. r0, r0, 0x9f1f
/* 80063670 0005F4B0 B0 05 00 00 */ sth r0, 0x0(r5)
/* 80063674 0005F4B4 88 04 00 01 */ lbz r0, 0x1(r4)
/* 80063678 0005F4B8 54 00 CF FE */ extrwi r0, r0, 1, 24
/* 8006367C 0005F4BC 90 03 08 48 */ stw r0, 0x848(r3)
/* 80063680 0005F4C0 4E 80 00 20 */ blr
/* 80063684 0005F4C4 00 00 00 00 */ .4byte 0x00000000
/* 80063688 0005F4C8 00 00 00 00 */ .4byte 0x00000000
/* 8006368C 0005F4CC 00 00 00 00 */ .4byte 0x00000000
.global __a1_31_data_type
__a1_31_data_type:
/* 80063690 0005F4D0 88 C4 00 02 */ lbz r6, 0x2(r4)
/* 80063694 0005F4D4 3C E0 80 4C */ lis r7, __rvl_p_wpadcb@ha
/* 80063698 0005F4D8 88 04 00 01 */ lbz r0, 0x1(r4)
/* 8006369C 0005F4DC 54 68 15 BA */ rlwinm r8, r3, 2, 22, 29
/* 800636A0 0005F4E0 38 E7 1A 50 */ addi r7, r7, __rvl_p_wpadcb@l
/* 800636A4 0005F4E4 50 C0 44 2E */ rlwimi r0, r6, 8, 16, 23
/* 800636A8 0005F4E8 7C 67 40 2E */ lwzx r3, r7, r8
/* 800636AC 0005F4EC 70 00 9F 1F */ andi. r0, r0, 0x9f1f
/* 800636B0 0005F4F0 B0 05 00 00 */ sth r0, 0x0(r5)
/* 800636B4 0005F4F4 88 04 00 01 */ lbz r0, 0x1(r4)
/* 800636B8 0005F4F8 54 00 CF FE */ extrwi r0, r0, 1, 24
/* 800636BC 0005F4FC 90 03 08 48 */ stw r0, 0x848(r3)
/* 800636C0 0005F500 88 64 00 03 */ lbz r3, 0x3(r4)
/* 800636C4 0005F504 88 04 00 01 */ lbz r0, 0x1(r4)
/* 800636C8 0005F508 54 66 10 3A */ slwi r6, r3, 2
/* 800636CC 0005F50C 7C 67 40 2E */ lwzx r3, r7, r8
/* 800636D0 0005F510 7C C6 07 34 */ extsh r6, r6
/* 800636D4 0005F514 54 00 DF BE */ extrwi r0, r0, 2, 25
/* 800636D8 0005F518 54 C6 00 3A */ clrrwi r6, r6, 2
/* 800636DC 0005F51C A8 E3 08 74 */ lha r7, 0x874(r3)
/* 800636E0 0005F520 7C C6 07 34 */ extsh r6, r6
/* 800636E4 0005F524 7C C0 03 78 */ or r0, r6, r0
/* 800636E8 0005F528 7C 00 07 34 */ extsh r0, r0
/* 800636EC 0005F52C 7C 07 00 50 */ subf r0, r7, r0
/* 800636F0 0005F530 B0 05 00 02 */ sth r0, 0x2(r5)
/* 800636F4 0005F534 88 C4 00 04 */ lbz r6, 0x4(r4)
/* 800636F8 0005F538 88 04 00 02 */ lbz r0, 0x2(r4)
/* 800636FC 0005F53C 54 C6 10 3A */ slwi r6, r6, 2
/* 80063700 0005F540 A8 E3 08 76 */ lha r7, 0x876(r3)
/* 80063704 0005F544 7C C6 07 34 */ extsh r6, r6
/* 80063708 0005F548 54 00 E7 BC */ rlwinm r0, r0, 28, 30, 30
/* 8006370C 0005F54C 54 C6 00 3A */ clrrwi r6, r6, 2
/* 80063710 0005F550 7C C6 07 34 */ extsh r6, r6
/* 80063714 0005F554 7C 00 07 34 */ extsh r0, r0
/* 80063718 0005F558 7C C0 03 78 */ or r0, r6, r0
/* 8006371C 0005F55C 7C 00 07 34 */ extsh r0, r0
/* 80063720 0005F560 7C 07 00 50 */ subf r0, r7, r0
/* 80063724 0005F564 B0 05 00 04 */ sth r0, 0x4(r5)
/* 80063728 0005F568 88 C4 00 05 */ lbz r6, 0x5(r4)
/* 8006372C 0005F56C 88 04 00 02 */ lbz r0, 0x2(r4)
/* 80063730 0005F570 54 C4 10 3A */ slwi r4, r6, 2
/* 80063734 0005F574 A8 C3 08 78 */ lha r6, 0x878(r3)
/* 80063738 0005F578 7C 83 07 34 */ extsh r3, r4
/* 8006373C 0005F57C 54 00 DF BC */ rlwinm r0, r0, 27, 30, 30
/* 80063740 0005F580 54 63 00 3A */ clrrwi r3, r3, 2
/* 80063744 0005F584 7C 63 07 34 */ extsh r3, r3
/* 80063748 0005F588 7C 00 07 34 */ extsh r0, r0
/* 8006374C 0005F58C 7C 60 03 78 */ or r0, r3, r0
/* 80063750 0005F590 7C 00 07 34 */ extsh r0, r0
/* 80063754 0005F594 7C 06 00 50 */ subf r0, r6, r0
/* 80063758 0005F598 B0 05 00 06 */ sth r0, 0x6(r5)
/* 8006375C 0005F59C 4E 80 00 20 */ blr
.global __a1_32_data_type
__a1_32_data_type:
/* 80063760 0005F5A0 88 C4 00 02 */ lbz r6, 0x2(r4)
/* 80063764 0005F5A4 3C E0 80 4C */ lis r7, __rvl_p_wpadcb@ha
/* 80063768 0005F5A8 88 04 00 01 */ lbz r0, 0x1(r4)
/* 8006376C 0005F5AC 54 68 15 BA */ rlwinm r8, r3, 2, 22, 29
/* 80063770 0005F5B0 50 C0 44 2E */ rlwimi r0, r6, 8, 16, 23
/* 80063774 0005F5B4 38 E7 1A 50 */ addi r7, r7, __rvl_p_wpadcb@l
/* 80063778 0005F5B8 7D 07 40 2E */ lwzx r8, r7, r8
/* 8006377C 0005F5BC 70 00 9F 1F */ andi. r0, r0, 0x9f1f
/* 80063780 0005F5C0 38 C4 00 03 */ addi r6, r4, 0x3
/* 80063784 0005F5C4 38 E0 00 08 */ li r7, 0x8
/* 80063788 0005F5C8 B0 05 00 00 */ sth r0, 0x0(r5)
/* 8006378C 0005F5CC 88 04 00 01 */ lbz r0, 0x1(r4)
/* 80063790 0005F5D0 7C A4 2B 78 */ mr r4, r5
/* 80063794 0005F5D4 54 00 CF FE */ extrwi r0, r0, 1, 24
/* 80063798 0005F5D8 90 08 08 48 */ stw r0, 0x848(r8)
/* 8006379C 0005F5DC 88 A8 09 06 */ lbz r5, 0x906(r8)
/* 800637A0 0005F5E0 4B FF F9 00 */ b __parse_ext_data
/* 800637A4 0005F5E4 00 00 00 00 */ .4byte 0x00000000
/* 800637A8 0005F5E8 00 00 00 00 */ .4byte 0x00000000
/* 800637AC 0005F5EC 00 00 00 00 */ .4byte 0x00000000
.global __a1_33_data_type
__a1_33_data_type:
/* 800637B0 0005F5F0 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 800637B4 0005F5F4 7C 08 02 A6 */ mflr r0
/* 800637B8 0005F5F8 3D 40 80 4C */ lis r10, __rvl_p_wpadcb@ha
/* 800637BC 0005F5FC 54 6B 15 BA */ rlwinm r11, r3, 2, 22, 29
/* 800637C0 0005F600 90 01 00 14 */ stw r0, 0x14(r1)
/* 800637C4 0005F604 39 4A 1A 50 */ addi r10, r10, __rvl_p_wpadcb@l
/* 800637C8 0005F608 38 E0 00 0C */ li r7, 0xc
/* 800637CC 0005F60C 90 A1 00 08 */ stw r5, 0x8(r1)
/* 800637D0 0005F610 7D 0A 58 2E */ lwzx r8, r10, r11
/* 800637D4 0005F614 88 C4 00 02 */ lbz r6, 0x2(r4)
/* 800637D8 0005F618 88 04 00 01 */ lbz r0, 0x1(r4)
/* 800637DC 0005F61C 50 C0 44 2E */ rlwimi r0, r6, 8, 16, 23
/* 800637E0 0005F620 38 C4 00 06 */ addi r6, r4, 0x6
/* 800637E4 0005F624 70 00 9F 1F */ andi. r0, r0, 0x9f1f
/* 800637E8 0005F628 B0 05 00 00 */ sth r0, 0x0(r5)
/* 800637EC 0005F62C 88 04 00 01 */ lbz r0, 0x1(r4)
/* 800637F0 0005F630 54 00 CF FE */ extrwi r0, r0, 1, 24
/* 800637F4 0005F634 90 08 08 48 */ stw r0, 0x848(r8)
/* 800637F8 0005F638 88 A4 00 03 */ lbz r5, 0x3(r4)
/* 800637FC 0005F63C 88 04 00 01 */ lbz r0, 0x1(r4)
/* 80063800 0005F640 54 A9 10 3A */ slwi r9, r5, 2
/* 80063804 0005F644 7C AA 58 2E */ lwzx r5, r10, r11
/* 80063808 0005F648 7D 29 07 34 */ extsh r9, r9
/* 8006380C 0005F64C 54 00 DF BE */ extrwi r0, r0, 2, 25
/* 80063810 0005F650 55 29 00 3A */ clrrwi r9, r9, 2
/* 80063814 0005F654 A9 65 08 74 */ lha r11, 0x874(r5)
/* 80063818 0005F658 7D 2A 07 34 */ extsh r10, r9
/* 8006381C 0005F65C 81 21 00 08 */ lwz r9, 0x8(r1)
/* 80063820 0005F660 7D 40 03 78 */ or r0, r10, r0
/* 80063824 0005F664 7C 00 07 34 */ extsh r0, r0
/* 80063828 0005F668 7C 0B 00 50 */ subf r0, r11, r0
/* 8006382C 0005F66C B0 09 00 02 */ sth r0, 0x2(r9)
/* 80063830 0005F670 89 24 00 04 */ lbz r9, 0x4(r4)
/* 80063834 0005F674 88 04 00 02 */ lbz r0, 0x2(r4)
/* 80063838 0005F678 55 29 10 3A */ slwi r9, r9, 2
/* 8006383C 0005F67C A9 65 08 76 */ lha r11, 0x876(r5)
/* 80063840 0005F680 7D 29 07 34 */ extsh r9, r9
/* 80063844 0005F684 54 00 E7 BC */ rlwinm r0, r0, 28, 30, 30
/* 80063848 0005F688 55 2A 00 3A */ clrrwi r10, r9, 2
/* 8006384C 0005F68C 81 21 00 08 */ lwz r9, 0x8(r1)
/* 80063850 0005F690 7D 4A 07 34 */ extsh r10, r10
/* 80063854 0005F694 7C 00 07 34 */ extsh r0, r0
/* 80063858 0005F698 7D 40 03 78 */ or r0, r10, r0
/* 8006385C 0005F69C 7C 00 07 34 */ extsh r0, r0
/* 80063860 0005F6A0 7C 0B 00 50 */ subf r0, r11, r0
/* 80063864 0005F6A4 B0 09 00 04 */ sth r0, 0x4(r9)
/* 80063868 0005F6A8 89 24 00 05 */ lbz r9, 0x5(r4)
/* 8006386C 0005F6AC 88 04 00 02 */ lbz r0, 0x2(r4)
/* 80063870 0005F6B0 38 81 00 08 */ addi r4, r1, 0x8
/* 80063874 0005F6B4 55 29 10 3A */ slwi r9, r9, 2
/* 80063878 0005F6B8 A9 45 08 78 */ lha r10, 0x878(r5)
/* 8006387C 0005F6BC 7D 25 07 34 */ extsh r5, r9
/* 80063880 0005F6C0 54 00 DF BC */ rlwinm r0, r0, 27, 30, 30
/* 80063884 0005F6C4 54 A9 00 3A */ clrrwi r9, r5, 2
/* 80063888 0005F6C8 80 A1 00 08 */ lwz r5, 0x8(r1)
/* 8006388C 0005F6CC 7D 29 07 34 */ extsh r9, r9
/* 80063890 0005F6D0 7C 00 07 34 */ extsh r0, r0
/* 80063894 0005F6D4 7D 20 03 78 */ or r0, r9, r0
/* 80063898 0005F6D8 7C 00 07 34 */ extsh r0, r0
/* 8006389C 0005F6DC 7C 0A 00 50 */ subf r0, r10, r0
/* 800638A0 0005F6E0 B0 05 00 06 */ sth r0, 0x6(r5)
/* 800638A4 0005F6E4 88 A8 09 0F */ lbz r5, 0x90f(r8)
/* 800638A8 0005F6E8 4B FF E0 09 */ bl __parse_dpd_data
/* 800638AC 0005F6EC 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800638B0 0005F6F0 7C 08 03 A6 */ mtlr r0
/* 800638B4 0005F6F4 38 21 00 10 */ addi r1, r1, 0x10
/* 800638B8 0005F6F8 4E 80 00 20 */ blr
/* 800638BC 0005F6FC 00 00 00 00 */ .4byte 0x00000000
.global __a1_34_data_type
__a1_34_data_type:
/* 800638C0 0005F700 88 C4 00 02 */ lbz r6, 0x2(r4)
/* 800638C4 0005F704 3C E0 80 4C */ lis r7, __rvl_p_wpadcb@ha
/* 800638C8 0005F708 88 04 00 01 */ lbz r0, 0x1(r4)
/* 800638CC 0005F70C 54 68 15 BA */ rlwinm r8, r3, 2, 22, 29
/* 800638D0 0005F710 50 C0 44 2E */ rlwimi r0, r6, 8, 16, 23
/* 800638D4 0005F714 38 E7 1A 50 */ addi r7, r7, __rvl_p_wpadcb@l
/* 800638D8 0005F718 7D 07 40 2E */ lwzx r8, r7, r8
/* 800638DC 0005F71C 70 00 9F 1F */ andi. r0, r0, 0x9f1f
/* 800638E0 0005F720 38 C4 00 03 */ addi r6, r4, 0x3
/* 800638E4 0005F724 38 E0 00 13 */ li r7, 0x13
/* 800638E8 0005F728 B0 05 00 00 */ sth r0, 0x0(r5)
/* 800638EC 0005F72C 88 04 00 01 */ lbz r0, 0x1(r4)
/* 800638F0 0005F730 7C A4 2B 78 */ mr r4, r5
/* 800638F4 0005F734 54 00 CF FE */ extrwi r0, r0, 1, 24
/* 800638F8 0005F738 90 08 08 48 */ stw r0, 0x848(r8)
/* 800638FC 0005F73C 88 A8 09 06 */ lbz r5, 0x906(r8)
/* 80063900 0005F740 4B FF F7 A0 */ b __parse_ext_data
/* 80063904 0005F744 00 00 00 00 */ .4byte 0x00000000
/* 80063908 0005F748 00 00 00 00 */ .4byte 0x00000000
/* 8006390C 0005F74C 00 00 00 00 */ .4byte 0x00000000
.global __a1_35_data_type
__a1_35_data_type:
/* 80063910 0005F750 88 C4 00 02 */ lbz r6, 0x2(r4)
/* 80063914 0005F754 3D 60 80 4C */ lis r11, __rvl_p_wpadcb@ha
/* 80063918 0005F758 88 04 00 01 */ lbz r0, 0x1(r4)
/* 8006391C 0005F75C 54 6C 15 BA */ rlwinm r12, r3, 2, 22, 29
/* 80063920 0005F760 50 C0 44 2E */ rlwimi r0, r6, 8, 16, 23
/* 80063924 0005F764 39 6B 1A 50 */ addi r11, r11, __rvl_p_wpadcb@l
/* 80063928 0005F768 7D 2B 60 2E */ lwzx r9, r11, r12
/* 8006392C 0005F76C 70 00 9F 1F */ andi. r0, r0, 0x9f1f
/* 80063930 0005F770 38 C4 00 06 */ addi r6, r4, 0x6
/* 80063934 0005F774 38 E0 00 10 */ li r7, 0x10
/* 80063938 0005F778 B0 05 00 00 */ sth r0, 0x0(r5)
/* 8006393C 0005F77C 88 04 00 01 */ lbz r0, 0x1(r4)
/* 80063940 0005F780 54 00 CF FE */ extrwi r0, r0, 1, 24
/* 80063944 0005F784 90 09 08 48 */ stw r0, 0x848(r9)
/* 80063948 0005F788 89 04 00 03 */ lbz r8, 0x3(r4)
/* 8006394C 0005F78C 88 04 00 01 */ lbz r0, 0x1(r4)
/* 80063950 0005F790 55 0A 10 3A */ slwi r10, r8, 2
/* 80063954 0005F794 7D 0B 60 2E */ lwzx r8, r11, r12
/* 80063958 0005F798 7D 4A 07 34 */ extsh r10, r10
/* 8006395C 0005F79C 54 00 DF BE */ extrwi r0, r0, 2, 25
/* 80063960 0005F7A0 55 4A 00 3A */ clrrwi r10, r10, 2
/* 80063964 0005F7A4 A9 68 08 74 */ lha r11, 0x874(r8)
/* 80063968 0005F7A8 7D 4A 07 34 */ extsh r10, r10
/* 8006396C 0005F7AC 7D 40 03 78 */ or r0, r10, r0
/* 80063970 0005F7B0 7C 00 07 34 */ extsh r0, r0
/* 80063974 0005F7B4 7C 0B 00 50 */ subf r0, r11, r0
/* 80063978 0005F7B8 B0 05 00 02 */ sth r0, 0x2(r5)
/* 8006397C 0005F7BC 89 44 00 04 */ lbz r10, 0x4(r4)
/* 80063980 0005F7C0 88 04 00 02 */ lbz r0, 0x2(r4)
/* 80063984 0005F7C4 55 4A 10 3A */ slwi r10, r10, 2
/* 80063988 0005F7C8 A9 68 08 76 */ lha r11, 0x876(r8)
/* 8006398C 0005F7CC 7D 4A 07 34 */ extsh r10, r10
/* 80063990 0005F7D0 54 00 E7 BC */ rlwinm r0, r0, 28, 30, 30
/* 80063994 0005F7D4 55 4A 00 3A */ clrrwi r10, r10, 2
/* 80063998 0005F7D8 7D 4A 07 34 */ extsh r10, r10
/* 8006399C 0005F7DC 7C 00 07 34 */ extsh r0, r0
/* 800639A0 0005F7E0 7D 40 03 78 */ or r0, r10, r0
/* 800639A4 0005F7E4 7C 00 07 34 */ extsh r0, r0
/* 800639A8 0005F7E8 7C 0B 00 50 */ subf r0, r11, r0
/* 800639AC 0005F7EC B0 05 00 04 */ sth r0, 0x4(r5)
/* 800639B0 0005F7F0 89 44 00 05 */ lbz r10, 0x5(r4)
/* 800639B4 0005F7F4 88 04 00 02 */ lbz r0, 0x2(r4)
/* 800639B8 0005F7F8 7C A4 2B 78 */ mr r4, r5
/* 800639BC 0005F7FC 55 4A 10 3A */ slwi r10, r10, 2
/* 800639C0 0005F800 A9 68 08 78 */ lha r11, 0x878(r8)
/* 800639C4 0005F804 7D 48 07 34 */ extsh r8, r10
/* 800639C8 0005F808 54 00 DF BC */ rlwinm r0, r0, 27, 30, 30
/* 800639CC 0005F80C 55 08 00 3A */ clrrwi r8, r8, 2
/* 800639D0 0005F810 7D 08 07 34 */ extsh r8, r8
/* 800639D4 0005F814 7C 00 07 34 */ extsh r0, r0
/* 800639D8 0005F818 7D 00 03 78 */ or r0, r8, r0
/* 800639DC 0005F81C 7C 00 07 34 */ extsh r0, r0
/* 800639E0 0005F820 7C 0B 00 50 */ subf r0, r11, r0
/* 800639E4 0005F824 B0 05 00 06 */ sth r0, 0x6(r5)
/* 800639E8 0005F828 88 A9 09 06 */ lbz r5, 0x906(r9)
/* 800639EC 0005F82C 4B FF F6 B4 */ b __parse_ext_data
.global __a1_36_data_type
__a1_36_data_type:
/* 800639F0 0005F830 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800639F4 0005F834 7C 08 02 A6 */ mflr r0
/* 800639F8 0005F838 3C E0 80 4C */ lis r7, __rvl_p_wpadcb@ha
/* 800639FC 0005F83C 54 68 15 BA */ rlwinm r8, r3, 2, 22, 29
/* 80063A00 0005F840 90 01 00 24 */ stw r0, 0x24(r1)
/* 80063A04 0005F844 38 E7 1A 50 */ addi r7, r7, __rvl_p_wpadcb@l
/* 80063A08 0005F848 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80063A0C 0005F84C 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80063A10 0005F850 7C BE 2B 78 */ mr r30, r5
/* 80063A14 0005F854 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80063A18 0005F858 7C 9D 23 78 */ mr r29, r4
/* 80063A1C 0005F85C 93 81 00 10 */ stw r28, 0x10(r1)
/* 80063A20 0005F860 7C 7C 1B 78 */ mr r28, r3
/* 80063A24 0005F864 90 A1 00 08 */ stw r5, 0x8(r1)
/* 80063A28 0005F868 7F E7 40 2E */ lwzx r31, r7, r8
/* 80063A2C 0005F86C 38 E0 00 0A */ li r7, 0xa
/* 80063A30 0005F870 88 C4 00 02 */ lbz r6, 0x2(r4)
/* 80063A34 0005F874 88 04 00 01 */ lbz r0, 0x1(r4)
/* 80063A38 0005F878 50 C0 44 2E */ rlwimi r0, r6, 8, 16, 23
/* 80063A3C 0005F87C 38 DD 00 03 */ addi r6, r29, 0x3
/* 80063A40 0005F880 70 00 9F 1F */ andi. r0, r0, 0x9f1f
/* 80063A44 0005F884 B0 05 00 00 */ sth r0, 0x0(r5)
/* 80063A48 0005F888 88 04 00 01 */ lbz r0, 0x1(r4)
/* 80063A4C 0005F88C 38 81 00 08 */ addi r4, r1, 0x8
/* 80063A50 0005F890 54 00 CF FE */ extrwi r0, r0, 1, 24
/* 80063A54 0005F894 90 1F 08 48 */ stw r0, 0x848(r31)
/* 80063A58 0005F898 88 BF 09 0F */ lbz r5, 0x90f(r31)
/* 80063A5C 0005F89C 4B FF DE 55 */ bl __parse_dpd_data
/* 80063A60 0005F8A0 88 BF 09 06 */ lbz r5, 0x906(r31)
/* 80063A64 0005F8A4 7F 83 E3 78 */ mr r3, r28
/* 80063A68 0005F8A8 7F C4 F3 78 */ mr r4, r30
/* 80063A6C 0005F8AC 38 DD 00 0D */ addi r6, r29, 0xd
/* 80063A70 0005F8B0 38 E0 00 09 */ li r7, 0x9
/* 80063A74 0005F8B4 4B FF F6 2D */ bl __parse_ext_data
/* 80063A78 0005F8B8 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80063A7C 0005F8BC 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80063A80 0005F8C0 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80063A84 0005F8C4 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80063A88 0005F8C8 83 81 00 10 */ lwz r28, 0x10(r1)
/* 80063A8C 0005F8CC 7C 08 03 A6 */ mtlr r0
/* 80063A90 0005F8D0 38 21 00 20 */ addi r1, r1, 0x20
/* 80063A94 0005F8D4 4E 80 00 20 */ blr
/* 80063A98 0005F8D8 00 00 00 00 */ .4byte 0x00000000
/* 80063A9C 0005F8DC 00 00 00 00 */ .4byte 0x00000000
.global __a1_37_data_type
__a1_37_data_type:
/* 80063AA0 0005F8E0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80063AA4 0005F8E4 7C 08 02 A6 */ mflr r0
/* 80063AA8 0005F8E8 3D 20 80 4C */ lis r9, __rvl_p_wpadcb@ha
/* 80063AAC 0005F8EC 54 6A 15 BA */ rlwinm r10, r3, 2, 22, 29
/* 80063AB0 0005F8F0 90 01 00 24 */ stw r0, 0x24(r1)
/* 80063AB4 0005F8F4 39 29 1A 50 */ addi r9, r9, __rvl_p_wpadcb@l
/* 80063AB8 0005F8F8 38 E0 00 0A */ li r7, 0xa
/* 80063ABC 0005F8FC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80063AC0 0005F900 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80063AC4 0005F904 7C BE 2B 78 */ mr r30, r5
/* 80063AC8 0005F908 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80063ACC 0005F90C 7C 9D 23 78 */ mr r29, r4
/* 80063AD0 0005F910 93 81 00 10 */ stw r28, 0x10(r1)
/* 80063AD4 0005F914 7C 7C 1B 78 */ mr r28, r3
/* 80063AD8 0005F918 90 A1 00 08 */ stw r5, 0x8(r1)
/* 80063ADC 0005F91C 7F E9 50 2E */ lwzx r31, r9, r10
/* 80063AE0 0005F920 88 C4 00 02 */ lbz r6, 0x2(r4)
/* 80063AE4 0005F924 88 04 00 01 */ lbz r0, 0x1(r4)
/* 80063AE8 0005F928 50 C0 44 2E */ rlwimi r0, r6, 8, 16, 23
/* 80063AEC 0005F92C 38 DD 00 06 */ addi r6, r29, 0x6
/* 80063AF0 0005F930 70 00 9F 1F */ andi. r0, r0, 0x9f1f
/* 80063AF4 0005F934 B0 05 00 00 */ sth r0, 0x0(r5)
/* 80063AF8 0005F938 88 04 00 01 */ lbz r0, 0x1(r4)
/* 80063AFC 0005F93C 54 00 CF FE */ extrwi r0, r0, 1, 24
/* 80063B00 0005F940 90 1F 08 48 */ stw r0, 0x848(r31)
/* 80063B04 0005F944 88 A4 00 03 */ lbz r5, 0x3(r4)
/* 80063B08 0005F948 88 04 00 01 */ lbz r0, 0x1(r4)
/* 80063B0C 0005F94C 54 A8 10 3A */ slwi r8, r5, 2
/* 80063B10 0005F950 7C A9 50 2E */ lwzx r5, r9, r10
/* 80063B14 0005F954 7D 08 07 34 */ extsh r8, r8
/* 80063B18 0005F958 54 00 DF BE */ extrwi r0, r0, 2, 25
/* 80063B1C 0005F95C 55 08 00 3A */ clrrwi r8, r8, 2
/* 80063B20 0005F960 A9 45 08 74 */ lha r10, 0x874(r5)
/* 80063B24 0005F964 7D 09 07 34 */ extsh r9, r8
/* 80063B28 0005F968 81 01 00 08 */ lwz r8, 0x8(r1)
/* 80063B2C 0005F96C 7D 20 03 78 */ or r0, r9, r0
/* 80063B30 0005F970 7C 00 07 34 */ extsh r0, r0
/* 80063B34 0005F974 7C 0A 00 50 */ subf r0, r10, r0
/* 80063B38 0005F978 B0 08 00 02 */ sth r0, 0x2(r8)
/* 80063B3C 0005F97C 89 04 00 04 */ lbz r8, 0x4(r4)
/* 80063B40 0005F980 88 04 00 02 */ lbz r0, 0x2(r4)
/* 80063B44 0005F984 55 08 10 3A */ slwi r8, r8, 2
/* 80063B48 0005F988 A9 45 08 76 */ lha r10, 0x876(r5)
/* 80063B4C 0005F98C 7D 08 07 34 */ extsh r8, r8
/* 80063B50 0005F990 54 00 E7 BC */ rlwinm r0, r0, 28, 30, 30
/* 80063B54 0005F994 55 09 00 3A */ clrrwi r9, r8, 2
/* 80063B58 0005F998 81 01 00 08 */ lwz r8, 0x8(r1)
/* 80063B5C 0005F99C 7D 29 07 34 */ extsh r9, r9
/* 80063B60 0005F9A0 7C 00 07 34 */ extsh r0, r0
/* 80063B64 0005F9A4 7D 20 03 78 */ or r0, r9, r0
/* 80063B68 0005F9A8 7C 00 07 34 */ extsh r0, r0
/* 80063B6C 0005F9AC 7C 0A 00 50 */ subf r0, r10, r0
/* 80063B70 0005F9B0 B0 08 00 04 */ sth r0, 0x4(r8)
/* 80063B74 0005F9B4 89 04 00 05 */ lbz r8, 0x5(r4)
/* 80063B78 0005F9B8 88 04 00 02 */ lbz r0, 0x2(r4)
/* 80063B7C 0005F9BC 38 81 00 08 */ addi r4, r1, 0x8
/* 80063B80 0005F9C0 55 08 10 3A */ slwi r8, r8, 2
/* 80063B84 0005F9C4 A9 25 08 78 */ lha r9, 0x878(r5)
/* 80063B88 0005F9C8 7D 05 07 34 */ extsh r5, r8
/* 80063B8C 0005F9CC 54 00 DF BC */ rlwinm r0, r0, 27, 30, 30
/* 80063B90 0005F9D0 54 A8 00 3A */ clrrwi r8, r5, 2
/* 80063B94 0005F9D4 80 A1 00 08 */ lwz r5, 0x8(r1)
/* 80063B98 0005F9D8 7D 08 07 34 */ extsh r8, r8
/* 80063B9C 0005F9DC 7C 00 07 34 */ extsh r0, r0
/* 80063BA0 0005F9E0 7D 00 03 78 */ or r0, r8, r0
/* 80063BA4 0005F9E4 7C 00 07 34 */ extsh r0, r0
/* 80063BA8 0005F9E8 7C 09 00 50 */ subf r0, r9, r0
/* 80063BAC 0005F9EC B0 05 00 06 */ sth r0, 0x6(r5)
/* 80063BB0 0005F9F0 88 BF 09 0F */ lbz r5, 0x90f(r31)
/* 80063BB4 0005F9F4 4B FF DC FD */ bl __parse_dpd_data
/* 80063BB8 0005F9F8 88 BF 09 06 */ lbz r5, 0x906(r31)
/* 80063BBC 0005F9FC 7F 83 E3 78 */ mr r3, r28
/* 80063BC0 0005FA00 7F C4 F3 78 */ mr r4, r30
/* 80063BC4 0005FA04 38 DD 00 10 */ addi r6, r29, 0x10
/* 80063BC8 0005FA08 38 E0 00 06 */ li r7, 0x6
/* 80063BCC 0005FA0C 4B FF F4 D5 */ bl __parse_ext_data
/* 80063BD0 0005FA10 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80063BD4 0005FA14 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80063BD8 0005FA18 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80063BDC 0005FA1C 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80063BE0 0005FA20 83 81 00 10 */ lwz r28, 0x10(r1)
/* 80063BE4 0005FA24 7C 08 03 A6 */ mtlr r0
/* 80063BE8 0005FA28 38 21 00 20 */ addi r1, r1, 0x20
/* 80063BEC 0005FA2C 4E 80 00 20 */ blr
.global __a1_3d_data_type
__a1_3d_data_type:
/* 80063BF0 0005FA30 3C C0 80 4C */ lis r6, __rvl_p_wpadcb@ha
/* 80063BF4 0005FA34 7C 87 23 78 */ mr r7, r4
/* 80063BF8 0005FA38 54 60 10 3A */ slwi r0, r3, 2
/* 80063BFC 0005FA3C 7C A4 2B 78 */ mr r4, r5
/* 80063C00 0005FA40 38 C6 1A 50 */ addi r6, r6, __rvl_p_wpadcb@l
/* 80063C04 0005FA44 7C A6 00 2E */ lwzx r5, r6, r0
/* 80063C08 0005FA48 38 C7 00 01 */ addi r6, r7, 0x1
/* 80063C0C 0005FA4C 38 E0 00 15 */ li r7, 0x15
/* 80063C10 0005FA50 88 A5 09 06 */ lbz r5, 0x906(r5)
/* 80063C14 0005FA54 4B FF F4 8C */ b __parse_ext_data
/* 80063C18 0005FA58 00 00 00 00 */ .4byte 0x00000000
/* 80063C1C 0005FA5C 00 00 00 00 */ .4byte 0x00000000
.global __a1_3e_data_type
__a1_3e_data_type:
/* 80063C20 0005FA60 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80063C24 0005FA64 7C 08 02 A6 */ mflr r0
/* 80063C28 0005FA68 90 01 00 34 */ stw r0, 0x34(r1)
/* 80063C2C 0005FA6C 39 61 00 30 */ addi r11, r1, 0x30
/* 80063C30 0005FA70 4B FA 37 0D */ bl lbl_8000733C
/* 80063C34 0005FA74 3C C0 80 4C */ lis r6, __rvl_p_wpadcb@ha
/* 80063C38 0005FA78 54 60 15 BA */ rlwinm r0, r3, 2, 22, 29
/* 80063C3C 0005FA7C 38 C6 1A 50 */ addi r6, r6, __rvl_p_wpadcb@l
/* 80063C40 0005FA80 90 A1 00 08 */ stw r5, 0x8(r1)
/* 80063C44 0005FA84 7F A6 00 2E */ lwzx r29, r6, r0
/* 80063C48 0005FA88 7C 7B 1B 78 */ mr r27, r3
/* 80063C4C 0005FA8C 7C 9C 23 78 */ mr r28, r4
/* 80063C50 0005FA90 7C BE 2B 78 */ mr r30, r5
/* 80063C54 0005FA94 88 1D 0B A7 */ lbz r0, 0xba7(r29)
/* 80063C58 0005FA98 2C 00 00 00 */ cmpwi r0, 0x0
/* 80063C5C 0005FA9C 40 82 00 14 */ bne lbl_80063C70
/* 80063C60 0005FAA0 7F C3 F3 78 */ mr r3, r30
/* 80063C64 0005FAA4 38 80 00 00 */ li r4, 0x0
/* 80063C68 0005FAA8 38 A0 00 60 */ li r5, 0x60
/* 80063C6C 0005FAAC 4B FA 06 E5 */ bl memset
.global lbl_80063C70
lbl_80063C70:
/* 80063C70 0005FAB0 88 7C 00 02 */ lbz r3, 0x2(r28)
/* 80063C74 0005FAB4 3D 20 80 4C */ lis r9, __rvl_p_wpadcb@ha
/* 80063C78 0005FAB8 88 1C 00 01 */ lbz r0, 0x1(r28)
/* 80063C7C 0005FABC 3B E0 00 00 */ li r31, 0x0
/* 80063C80 0005FAC0 50 60 44 2E */ rlwimi r0, r3, 8, 16, 23
/* 80063C84 0005FAC4 57 6A 15 BA */ rlwinm r10, r27, 2, 22, 29
/* 80063C88 0005FAC8 70 00 9F 1F */ andi. r0, r0, 0x9f1f
/* 80063C8C 0005FACC 39 29 1A 50 */ addi r9, r9, __rvl_p_wpadcb@l
/* 80063C90 0005FAD0 7F 63 DB 78 */ mr r3, r27
/* 80063C94 0005FAD4 38 81 00 08 */ addi r4, r1, 0x8
/* 80063C98 0005FAD8 B0 1E 00 00 */ sth r0, 0x0(r30)
/* 80063C9C 0005FADC 38 DC 00 04 */ addi r6, r28, 0x4
/* 80063CA0 0005FAE0 38 A0 00 00 */ li r5, 0x0
/* 80063CA4 0005FAE4 38 E0 00 00 */ li r7, 0x0
/* 80063CA8 0005FAE8 93 FD 08 48 */ stw r31, 0x848(r29)
/* 80063CAC 0005FAEC 89 1C 00 03 */ lbz r8, 0x3(r28)
/* 80063CB0 0005FAF0 88 1C 00 01 */ lbz r0, 0x1(r28)
/* 80063CB4 0005FAF4 55 08 10 3A */ slwi r8, r8, 2
/* 80063CB8 0005FAF8 7D 29 50 2E */ lwzx r9, r9, r10
/* 80063CBC 0005FAFC 7D 08 07 34 */ extsh r8, r8
/* 80063CC0 0005FB00 54 00 D7 BC */ rlwinm r0, r0, 26, 30, 30
/* 80063CC4 0005FB04 55 08 00 3A */ clrrwi r8, r8, 2
/* 80063CC8 0005FB08 A9 29 08 74 */ lha r9, 0x874(r9)
/* 80063CCC 0005FB0C 7D 08 07 34 */ extsh r8, r8
/* 80063CD0 0005FB10 7C 00 07 34 */ extsh r0, r0
/* 80063CD4 0005FB14 7D 00 03 78 */ or r0, r8, r0
/* 80063CD8 0005FB18 7C 00 07 34 */ extsh r0, r0
/* 80063CDC 0005FB1C 7C 09 00 50 */ subf r0, r9, r0
/* 80063CE0 0005FB20 B0 1E 00 02 */ sth r0, 0x2(r30)
/* 80063CE4 0005FB24 89 1C 00 02 */ lbz r8, 0x2(r28)
/* 80063CE8 0005FB28 88 1C 00 01 */ lbz r0, 0x1(r28)
/* 80063CEC 0005FB2C 55 08 18 38 */ slwi r8, r8, 3
/* 80063CF0 0005FB30 A9 3E 00 06 */ lha r9, 0x6(r30)
/* 80063CF4 0005FB34 7D 08 07 34 */ extsh r8, r8
/* 80063CF8 0005FB38 54 00 0E 32 */ rlwinm r0, r0, 1, 24, 25
/* 80063CFC 0005FB3C 55 08 00 2E */ clrrwi r8, r8, 8
/* 80063D00 0005FB40 7D 08 07 34 */ extsh r8, r8
/* 80063D04 0005FB44 7D 00 03 78 */ or r0, r8, r0
/* 80063D08 0005FB48 7C 00 07 34 */ extsh r0, r0
/* 80063D0C 0005FB4C 7D 20 03 78 */ or r0, r9, r0
/* 80063D10 0005FB50 B0 1E 00 06 */ sth r0, 0x6(r30)
/* 80063D14 0005FB54 4B FF E0 3D */ bl __parse_dpdex_data
/* 80063D18 0005FB58 7F 63 DB 78 */ mr r3, r27
/* 80063D1C 0005FB5C 38 81 00 08 */ addi r4, r1, 0x8
/* 80063D20 0005FB60 38 DC 00 0D */ addi r6, r28, 0xd
/* 80063D24 0005FB64 38 A0 00 01 */ li r5, 0x1
/* 80063D28 0005FB68 38 E0 00 00 */ li r7, 0x0
/* 80063D2C 0005FB6C 4B FF E0 25 */ bl __parse_dpdex_data
/* 80063D30 0005FB70 4B FB DA F1 */ bl OSDisableInterrupts
/* 80063D34 0005FB74 88 1D 0B A7 */ lbz r0, 0xba7(r29)
/* 80063D38 0005FB78 60 00 00 01 */ ori r0, r0, 0x1
/* 80063D3C 0005FB7C 98 1D 0B A7 */ stb r0, 0xba7(r29)
/* 80063D40 0005FB80 28 00 00 03 */ cmplwi r0, 0x3
/* 80063D44 0005FB84 40 82 00 28 */ bne lbl_80063D6C
/* 80063D48 0005FB88 A8 9D 08 78 */ lha r4, 0x878(r29)
/* 80063D4C 0005FB8C A8 1E 00 06 */ lha r0, 0x6(r30)
/* 80063D50 0005FB90 7C 04 00 50 */ subf r0, r4, r0
/* 80063D54 0005FB94 B0 1E 00 06 */ sth r0, 0x6(r30)
/* 80063D58 0005FB98 88 1D 09 0C */ lbz r0, 0x90c(r29)
/* 80063D5C 0005FB9C 7C 00 00 34 */ cntlzw r0, r0
/* 80063D60 0005FBA0 54 00 DE 3E */ extrwi r0, r0, 8, 19
/* 80063D64 0005FBA4 98 1D 09 0C */ stb r0, 0x90c(r29)
/* 80063D68 0005FBA8 9B FD 0B A7 */ stb r31, 0xba7(r29)
.global lbl_80063D6C
lbl_80063D6C:
/* 80063D6C 0005FBAC 4B FB DA F5 */ bl OSRestoreInterrupts
/* 80063D70 0005FBB0 39 61 00 30 */ addi r11, r1, 0x30
/* 80063D74 0005FBB4 4B FA 36 15 */ bl lbl_80007388
/* 80063D78 0005FBB8 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80063D7C 0005FBBC 7C 08 03 A6 */ mtlr r0
/* 80063D80 0005FBC0 38 21 00 30 */ addi r1, r1, 0x30
/* 80063D84 0005FBC4 4E 80 00 20 */ blr
/* 80063D88 0005FBC8 00 00 00 00 */ .4byte 0x00000000
/* 80063D8C 0005FBCC 00 00 00 00 */ .4byte 0x00000000
.global __a1_3f_data_type
__a1_3f_data_type:
/* 80063D90 0005FBD0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80063D94 0005FBD4 7C 08 02 A6 */ mflr r0
/* 80063D98 0005FBD8 90 01 00 34 */ stw r0, 0x34(r1)
/* 80063D9C 0005FBDC 39 61 00 30 */ addi r11, r1, 0x30
/* 80063DA0 0005FBE0 4B FA 35 9D */ bl lbl_8000733C
/* 80063DA4 0005FBE4 3C C0 80 4C */ lis r6, __rvl_p_wpadcb@ha
/* 80063DA8 0005FBE8 54 60 15 BA */ rlwinm r0, r3, 2, 22, 29
/* 80063DAC 0005FBEC 38 C6 1A 50 */ addi r6, r6, __rvl_p_wpadcb@l
/* 80063DB0 0005FBF0 90 A1 00 08 */ stw r5, 0x8(r1)
/* 80063DB4 0005FBF4 7F A6 00 2E */ lwzx r29, r6, r0
/* 80063DB8 0005FBF8 7C 7B 1B 78 */ mr r27, r3
/* 80063DBC 0005FBFC 7C 9C 23 78 */ mr r28, r4
/* 80063DC0 0005FC00 7C BE 2B 78 */ mr r30, r5
/* 80063DC4 0005FC04 88 1D 0B A7 */ lbz r0, 0xba7(r29)
/* 80063DC8 0005FC08 2C 00 00 00 */ cmpwi r0, 0x0
/* 80063DCC 0005FC0C 40 82 00 14 */ bne lbl_80063DE0
/* 80063DD0 0005FC10 7F C3 F3 78 */ mr r3, r30
/* 80063DD4 0005FC14 38 80 00 00 */ li r4, 0x0
/* 80063DD8 0005FC18 38 A0 00 60 */ li r5, 0x60
/* 80063DDC 0005FC1C 4B FA 05 75 */ bl memset
.global lbl_80063DE0
lbl_80063DE0:
/* 80063DE0 0005FC20 88 7C 00 02 */ lbz r3, 0x2(r28)
/* 80063DE4 0005FC24 3D 20 80 4C */ lis r9, __rvl_p_wpadcb@ha
/* 80063DE8 0005FC28 88 1C 00 01 */ lbz r0, 0x1(r28)
/* 80063DEC 0005FC2C 3B E0 00 00 */ li r31, 0x0
/* 80063DF0 0005FC30 50 60 44 2E */ rlwimi r0, r3, 8, 16, 23
/* 80063DF4 0005FC34 57 6A 15 BA */ rlwinm r10, r27, 2, 22, 29
/* 80063DF8 0005FC38 70 00 9F 1F */ andi. r0, r0, 0x9f1f
/* 80063DFC 0005FC3C 39 29 1A 50 */ addi r9, r9, __rvl_p_wpadcb@l
/* 80063E00 0005FC40 7F 63 DB 78 */ mr r3, r27
/* 80063E04 0005FC44 38 81 00 08 */ addi r4, r1, 0x8
/* 80063E08 0005FC48 B0 1E 00 00 */ sth r0, 0x0(r30)
/* 80063E0C 0005FC4C 38 DC 00 04 */ addi r6, r28, 0x4
/* 80063E10 0005FC50 38 A0 00 02 */ li r5, 0x2
/* 80063E14 0005FC54 38 E0 00 00 */ li r7, 0x0
/* 80063E18 0005FC58 93 FD 08 48 */ stw r31, 0x848(r29)
/* 80063E1C 0005FC5C 89 1C 00 03 */ lbz r8, 0x3(r28)
/* 80063E20 0005FC60 88 1C 00 01 */ lbz r0, 0x1(r28)
/* 80063E24 0005FC64 55 08 10 3A */ slwi r8, r8, 2
/* 80063E28 0005FC68 7D 29 50 2E */ lwzx r9, r9, r10
/* 80063E2C 0005FC6C 7D 08 07 34 */ extsh r8, r8
/* 80063E30 0005FC70 54 00 D7 BC */ rlwinm r0, r0, 26, 30, 30
/* 80063E34 0005FC74 55 08 00 3A */ clrrwi r8, r8, 2
/* 80063E38 0005FC78 A9 29 08 76 */ lha r9, 0x876(r9)
/* 80063E3C 0005FC7C 7D 08 07 34 */ extsh r8, r8
/* 80063E40 0005FC80 7C 00 07 34 */ extsh r0, r0
/* 80063E44 0005FC84 7D 00 03 78 */ or r0, r8, r0
/* 80063E48 0005FC88 7C 00 07 34 */ extsh r0, r0
/* 80063E4C 0005FC8C 7C 09 00 50 */ subf r0, r9, r0
/* 80063E50 0005FC90 B0 1E 00 04 */ sth r0, 0x4(r30)
/* 80063E54 0005FC94 88 1C 00 01 */ lbz r0, 0x1(r28)
/* 80063E58 0005FC98 89 1C 00 02 */ lbz r8, 0x2(r28)
/* 80063E5C 0005FC9C 54 00 EF 3A */ rlwinm r0, r0, 29, 28, 29
/* 80063E60 0005FCA0 A9 3E 00 06 */ lha r9, 0x6(r30)
/* 80063E64 0005FCA4 51 00 FE B6 */ rlwimi r0, r8, 31, 26, 27
/* 80063E68 0005FCA8 7C 00 07 34 */ extsh r0, r0
/* 80063E6C 0005FCAC 7D 20 03 78 */ or r0, r9, r0
/* 80063E70 0005FCB0 B0 1E 00 06 */ sth r0, 0x6(r30)
/* 80063E74 0005FCB4 4B FF DE DD */ bl __parse_dpdex_data
/* 80063E78 0005FCB8 7F 63 DB 78 */ mr r3, r27
/* 80063E7C 0005FCBC 38 81 00 08 */ addi r4, r1, 0x8
/* 80063E80 0005FCC0 38 DC 00 0D */ addi r6, r28, 0xd
/* 80063E84 0005FCC4 38 A0 00 03 */ li r5, 0x3
/* 80063E88 0005FCC8 38 E0 00 00 */ li r7, 0x0
/* 80063E8C 0005FCCC 4B FF DE C5 */ bl __parse_dpdex_data
/* 80063E90 0005FCD0 4B FB D9 91 */ bl OSDisableInterrupts
/* 80063E94 0005FCD4 88 1D 0B A7 */ lbz r0, 0xba7(r29)
/* 80063E98 0005FCD8 60 00 00 02 */ ori r0, r0, 0x2
/* 80063E9C 0005FCDC 98 1D 0B A7 */ stb r0, 0xba7(r29)
/* 80063EA0 0005FCE0 28 00 00 03 */ cmplwi r0, 0x3
/* 80063EA4 0005FCE4 40 82 00 28 */ bne lbl_80063ECC
/* 80063EA8 0005FCE8 A8 9D 08 78 */ lha r4, 0x878(r29)
/* 80063EAC 0005FCEC A8 1E 00 06 */ lha r0, 0x6(r30)
/* 80063EB0 0005FCF0 7C 04 00 50 */ subf r0, r4, r0
/* 80063EB4 0005FCF4 B0 1E 00 06 */ sth r0, 0x6(r30)
/* 80063EB8 0005FCF8 88 1D 09 0C */ lbz r0, 0x90c(r29)
/* 80063EBC 0005FCFC 7C 00 00 34 */ cntlzw r0, r0
/* 80063EC0 0005FD00 54 00 DE 3E */ extrwi r0, r0, 8, 19
/* 80063EC4 0005FD04 98 1D 09 0C */ stb r0, 0x90c(r29)
/* 80063EC8 0005FD08 9B FD 0B A7 */ stb r31, 0xba7(r29)
.global lbl_80063ECC
lbl_80063ECC:
/* 80063ECC 0005FD0C 4B FB D9 95 */ bl OSRestoreInterrupts
/* 80063ED0 0005FD10 39 61 00 30 */ addi r11, r1, 0x30
/* 80063ED4 0005FD14 4B FA 34 B5 */ bl lbl_80007388
/* 80063ED8 0005FD18 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80063EDC 0005FD1C 7C 08 03 A6 */ mtlr r0
/* 80063EE0 0005FD20 38 21 00 30 */ addi r1, r1, 0x30
/* 80063EE4 0005FD24 4E 80 00 20 */ blr
/* 80063EE8 0005FD28 00 00 00 00 */ .4byte 0x00000000
/* 80063EEC 0005FD2C 00 00 00 00 */ .4byte 0x00000000
.global __a1_unused_report
__a1_unused_report:
/* 80063EF0 0005FD30 4E 80 00 20 */ blr
/* 80063EF4 0005FD34 00 00 00 00 */ .4byte 0x00000000
/* 80063EF8 0005FD38 00 00 00 00 */ .4byte 0x00000000
/* 80063EFC 0005FD3C 00 00 00 00 */ .4byte 0x00000000
.include "macros.inc"
.section .rodata, "wa" # 0x80406560 - 0x80421040 ; 0x0001AAE0
.global _cExtInvalidData
_cExtInvalidData:
.4byte 0xFFFFFFFF
.4byte 0xFFFFFFFF
.4byte 0xFFFFFFFF
.4byte 0xFFFFFFFF
.4byte 0xFFFFFFFF
.4byte 0xFF000000
.global _cExtInvalidData2
_cExtInvalidData2:
.4byte 0
.4byte 0
.4byte 0
.4byte 0
.4byte 0
.4byte 0
.include "macros.inc"
.section .data, "wa" # 0x80421040 - 0x80496700 ; 0x000756C0
.global __a1_input_reports_array
__a1_input_reports_array:
.4byte __a1_20_status_report
.4byte __a1_21_user_data
.4byte __a1_22_ack
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_30_data_type
.4byte __a1_31_data_type
.4byte __a1_32_data_type
.4byte __a1_33_data_type
.4byte __a1_34_data_type
.4byte __a1_35_data_type
.4byte __a1_36_data_type
.4byte __a1_37_data_type
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_unused_report
.4byte __a1_3d_data_type
.4byte __a1_3e_data_type
.4byte __a1_3f_data_type
.global "@5371"
"@5371":
.4byte lbl_80060704
.4byte lbl_80060728
.4byte lbl_80060890
.4byte lbl_8006074C
.4byte lbl_80060770
.4byte lbl_80060794
.4byte lbl_800607B8
.4byte lbl_800607DC
.4byte lbl_80060800
.4byte lbl_80060824
.4byte lbl_80060848
.4byte lbl_8006086C
.global "@5370"
"@5370":
.4byte lbl_800605FC
.4byte lbl_80060610
.4byte lbl_80060624
.4byte lbl_800606B4
.4byte lbl_800608A4
.4byte lbl_800608DC
.4byte lbl_8006094C
.4byte lbl_8006094C
.4byte lbl_8006094C
.4byte lbl_8006094C
.4byte lbl_8006094C
.4byte lbl_8006094C
.4byte lbl_8006094C
.4byte lbl_8006094C
.4byte lbl_8006094C
.4byte lbl_8006094C
.4byte lbl_80060648
.4byte lbl_8006066C
.4byte lbl_80060690
.4byte 0
.include "macros.inc"
.section .bss, "", @nobits # 0x80496700 - 0x80556420 ; 0x000BFD20
.global _wpadCalibrationX
_wpadCalibrationX:
.skip 0x60
.include "macros.inc"
.section .sbss, "", @nobits # 0x8055C6E0 - 0x8055DF80 ; 0x000018A0
.global _wpadExtInitRetryCnt
_wpadExtInitRetryCnt:
.skip 0x4
.global _wpadCLCompt
_wpadCLCompt:
.skip 0x4
.global _wpadDevType2Sub
_wpadDevType2Sub:
.skip 0x4
.global _wpadDevType2
_wpadDevType2:
.skip 0x4
.global _wpadDevMode
_wpadDevMode:
.skip 0x4
.global _wpadDevType
_wpadDevType:
.skip 0x4
.include "macros.inc"
.section .sdata2, "wa" # 0x8055DF80 - 0x805643C0 ; 0x00006440
.global "@3033_8055E750"
"@3033_8055E750":
.4byte 0x007F0380
.global lbl_8055E754
lbl_8055E754:
.4byte 0x0380007F
.global "@3035"
"@3035":
.4byte 0x005D005D
.global lbl_8055E75C
lbl_8055E75C:
.4byte 0x02A202A2
.global "@5025_8055E760"
"@5025_8055E760":
.4byte 0
.global "@5026_8055E764"
"@5026_8055E764":
.4byte 0x3E800000
.global "@5027"
"@5027":
.4byte 0x42FD0000
.global "@5028"
"@5028":
.4byte 0x44A69000
.global "@5029"
"@5029":
.4byte 0x3FB84D9D
.4byte 0xE0000000
.global "@5030"
"@5030":
.4byte 0x42BA0000
.global "@5031"
"@5031":
.4byte 0x44A72CCD
.global "@5032_8055E780"
"@5032_8055E780":
.4byte 0x3FB1CD3C
.4byte 0x80000000
.global "@5033_8055E788"
"@5033_8055E788":
.4byte 0xBF800000
.global "@5034_8055E78C"
"@5034_8055E78C":
.4byte 0x43BFC000
.global "@5035_8055E790"
"@5035_8055E790":
.4byte 0x43FFC000
.4byte 0
.global "@5038"
"@5038":
.4byte 0x43300000
.4byte 0x80000000
.global "@5149"
"@5149":
.4byte 0x46000000
.global "@5150"
"@5150":
.4byte 0x45A6A800
.global "@5151"
"@5151":
.4byte 0x45A8C000
.global "@5152"
"@5152":
.4byte 0x459C4000
.global "@5153"
"@5153":
.4byte 0x41200000
.global "@5154"
"@5154":
.4byte 0x457A0000
.global "@5731"
"@5731":
.4byte 0x40490FD8
.4byte 0
.global "@5736"
"@5736":
.4byte 0x43300000
.4byte 0