donut-decomp/asm/fs/fs.s
2022-10-17 09:29:17 +01:00

1795 lines
81 KiB
ArmAsm

.include "macros.inc"
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
.global ISFS_OpenLib
ISFS_OpenLib:
/* 80050BC0 0004CA00 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80050BC4 0004CA04 7C 08 02 A6 */ mflr r0
/* 80050BC8 0004CA08 90 01 00 14 */ stw r0, 0x14(r1)
/* 80050BCC 0004CA0C 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80050BD0 0004CA10 3B E0 00 00 */ li r31, 0x0
/* 80050BD4 0004CA14 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80050BD8 0004CA18 80 0D E9 28 */ lwz r0, __fsInitialized@sda21(r13)
/* 80050BDC 0004CA1C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80050BE0 0004CA20 40 82 00 14 */ bne lbl_80050BF4
/* 80050BE4 0004CA24 4B FF DC 1D */ bl IPCGetBufferLo
/* 80050BE8 0004CA28 90 6D E9 34 */ stw r3, "@LOCAL@ISFS_OpenLib__Fv@lo"@sda21(r13)
/* 80050BEC 0004CA2C 4B FF DC 05 */ bl IPCGetBufferHi
/* 80050BF0 0004CA30 90 6D E9 38 */ stw r3, "@LOCAL@ISFS_OpenLib__Fv@hi@0"@sda21(r13)
.global lbl_80050BF4
lbl_80050BF4:
/* 80050BF4 0004CA34 80 6D E9 34 */ lwz r3, "@LOCAL@ISFS_OpenLib__Fv@lo"@sda21(r13)
/* 80050BF8 0004CA38 80 0D E9 28 */ lwz r0, __fsInitialized@sda21(r13)
/* 80050BFC 0004CA3C 38 63 00 1F */ addi r3, r3, 0x1f
/* 80050C00 0004CA40 54 63 00 34 */ clrrwi r3, r3, 5
/* 80050C04 0004CA44 2C 00 00 00 */ cmpwi r0, 0x0
/* 80050C08 0004CA48 90 6D E9 2C */ stw r3, __devfs@sda21(r13)
/* 80050C0C 0004CA4C 40 82 00 2C */ bne lbl_80050C38
/* 80050C10 0004CA50 80 0D E9 38 */ lwz r0, "@LOCAL@ISFS_OpenLib__Fv@hi@0"@sda21(r13)
/* 80050C14 0004CA54 38 83 00 40 */ addi r4, r3, 0x40
/* 80050C18 0004CA58 7C 04 00 40 */ cmplw r4, r0
/* 80050C1C 0004CA5C 40 81 00 1C */ ble lbl_80050C38
/* 80050C20 0004CA60 3C 60 80 44 */ lis r3, "@1709_80438508"@ha
/* 80050C24 0004CA64 38 63 85 08 */ addi r3, r3, "@1709_80438508"@l
/* 80050C28 0004CA68 4C C6 31 82 */ crclr 4*cr1+eq
/* 80050C2C 0004CA6C 4B FC CD 65 */ bl OSReport
/* 80050C30 0004CA70 3B E0 FF EA */ li r31, -0x16
/* 80050C34 0004CA74 48 00 00 98 */ b lbl_80050CCC
.global lbl_80050C38
lbl_80050C38:
/* 80050C38 0004CA78 38 8D 83 98 */ addi r4, r13, "@1710_805567B8"@sda21
/* 80050C3C 0004CA7C 4B FB CD 85 */ bl strcpy
/* 80050C40 0004CA80 80 6D E9 2C */ lwz r3, __devfs@sda21(r13)
/* 80050C44 0004CA84 38 80 00 00 */ li r4, 0x0
/* 80050C48 0004CA88 4B FF E4 F9 */ bl IOS_Open
/* 80050C4C 0004CA8C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80050C50 0004CA90 90 6D 83 90 */ stw r3, __fsFd@sda21(r13)
/* 80050C54 0004CA94 40 80 00 0C */ bge lbl_80050C60
/* 80050C58 0004CA98 7C 7F 1B 78 */ mr r31, r3
/* 80050C5C 0004CA9C 48 00 00 70 */ b lbl_80050CCC
.global lbl_80050C60
lbl_80050C60:
/* 80050C60 0004CAA0 80 8D E9 28 */ lwz r4, __fsInitialized@sda21(r13)
/* 80050C64 0004CAA4 83 CD E9 2C */ lwz r30, __devfs@sda21(r13)
/* 80050C68 0004CAA8 2C 04 00 00 */ cmpwi r4, 0x0
/* 80050C6C 0004CAAC 40 82 00 2C */ bne lbl_80050C98
/* 80050C70 0004CAB0 80 0D E9 38 */ lwz r0, "@LOCAL@ISFS_OpenLib__Fv@hi@0"@sda21(r13)
/* 80050C74 0004CAB4 38 7E 15 40 */ addi r3, r30, 0x1540
/* 80050C78 0004CAB8 7C 03 00 40 */ cmplw r3, r0
/* 80050C7C 0004CABC 40 81 00 1C */ ble lbl_80050C98
/* 80050C80 0004CAC0 3C 60 80 44 */ lis r3, "@1709_80438508"@ha
/* 80050C84 0004CAC4 38 63 85 08 */ addi r3, r3, "@1709_80438508"@l
/* 80050C88 0004CAC8 4C C6 31 82 */ crclr 4*cr1+eq
/* 80050C8C 0004CACC 4B FC CD 05 */ bl OSReport
/* 80050C90 0004CAD0 3B E0 FF EA */ li r31, -0x16
/* 80050C94 0004CAD4 48 00 00 38 */ b lbl_80050CCC
.global lbl_80050C98
lbl_80050C98:
/* 80050C98 0004CAD8 2C 04 00 00 */ cmpwi r4, 0x0
/* 80050C9C 0004CADC 40 82 00 14 */ bne lbl_80050CB0
/* 80050CA0 0004CAE0 38 7E 15 40 */ addi r3, r30, 0x1540
/* 80050CA4 0004CAE4 4B FF DB 6D */ bl IPCSetBufferLo
/* 80050CA8 0004CAE8 38 00 00 01 */ li r0, 0x1
/* 80050CAC 0004CAEC 90 0D E9 28 */ stw r0, __fsInitialized@sda21(r13)
.global lbl_80050CB0
lbl_80050CB0:
/* 80050CB0 0004CAF0 7F C3 F3 78 */ mr r3, r30
/* 80050CB4 0004CAF4 38 80 15 40 */ li r4, 0x1540
/* 80050CB8 0004CAF8 4B FF F5 C9 */ bl iosCreateHeap
/* 80050CBC 0004CAFC 2C 03 00 00 */ cmpwi r3, 0x0
/* 80050CC0 0004CB00 90 6D E9 3C */ stw r3, hId_8055CD5C@sda21(r13)
/* 80050CC4 0004CB04 40 80 00 08 */ bge lbl_80050CCC
/* 80050CC8 0004CB08 3B E0 FF EA */ li r31, -0x16
.global lbl_80050CCC
lbl_80050CCC:
/* 80050CCC 0004CB0C 7F E3 FB 78 */ mr r3, r31
/* 80050CD0 0004CB10 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80050CD4 0004CB14 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80050CD8 0004CB18 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80050CDC 0004CB1C 7C 08 03 A6 */ mtlr r0
/* 80050CE0 0004CB20 38 21 00 10 */ addi r1, r1, 0x10
/* 80050CE4 0004CB24 4E 80 00 20 */ blr
/* 80050CE8 0004CB28 00 00 00 00 */ .4byte 0x00000000
/* 80050CEC 0004CB2C 00 00 00 00 */ .4byte 0x00000000
.global _isfsFuncCb
_isfsFuncCb:
/* 80050CF0 0004CB30 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80050CF4 0004CB34 7C 08 02 A6 */ mflr r0
/* 80050CF8 0004CB38 2C 83 00 00 */ cmpwi cr1, r3, 0x0
/* 80050CFC 0004CB3C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80050D00 0004CB40 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80050D04 0004CB44 7C 9F 23 78 */ mr r31, r4
/* 80050D08 0004CB48 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80050D0C 0004CB4C 7C 7E 1B 78 */ mr r30, r3
/* 80050D10 0004CB50 41 84 01 0C */ blt cr1, lbl_80050E1C
/* 80050D14 0004CB54 80 04 01 08 */ lwz r0, 0x108(r4)
/* 80050D18 0004CB58 28 00 00 01 */ cmplwi r0, 0x1
/* 80050D1C 0004CB5C 41 82 00 28 */ beq lbl_80050D44
/* 80050D20 0004CB60 28 00 00 02 */ cmplwi r0, 0x2
/* 80050D24 0004CB64 41 82 00 34 */ beq lbl_80050D58
/* 80050D28 0004CB68 28 00 00 03 */ cmplwi r0, 0x3
/* 80050D2C 0004CB6C 41 82 00 50 */ beq lbl_80050D7C
/* 80050D30 0004CB70 28 00 00 04 */ cmplwi r0, 0x4
/* 80050D34 0004CB74 41 82 00 A0 */ beq lbl_80050DD4
/* 80050D38 0004CB78 28 00 00 05 */ cmplwi r0, 0x5
/* 80050D3C 0004CB7C 41 82 00 D0 */ beq lbl_80050E0C
/* 80050D40 0004CB80 48 00 00 DC */ b lbl_80050E1C
.global lbl_80050D44
lbl_80050D44:
/* 80050D44 0004CB84 40 86 00 D8 */ bne cr1, lbl_80050E1C
/* 80050D48 0004CB88 80 64 01 0C */ lwz r3, 0x10c(r4)
/* 80050D4C 0004CB8C 38 A0 00 1C */ li r5, 0x1c
/* 80050D50 0004CB90 4B FB 32 B1 */ bl memcpy
/* 80050D54 0004CB94 48 00 00 C8 */ b lbl_80050E1C
.global lbl_80050D58
lbl_80050D58:
/* 80050D58 0004CB98 40 86 00 C4 */ bne cr1, lbl_80050E1C
/* 80050D5C 0004CB9C 38 04 00 3F */ addi r0, r4, 0x3f
/* 80050D60 0004CBA0 80 64 01 0C */ lwz r3, 0x10c(r4)
/* 80050D64 0004CBA4 54 04 00 34 */ clrrwi r4, r0, 5
/* 80050D68 0004CBA8 38 04 00 5F */ addi r0, r4, 0x5f
/* 80050D6C 0004CBAC 54 04 00 34 */ clrrwi r4, r0, 5
/* 80050D70 0004CBB0 80 04 00 00 */ lwz r0, 0x0(r4)
/* 80050D74 0004CBB4 90 03 00 00 */ stw r0, 0x0(r3)
/* 80050D78 0004CBB8 48 00 00 A4 */ b lbl_80050E1C
.global lbl_80050D7C
lbl_80050D7C:
/* 80050D7C 0004CBBC 40 86 00 A0 */ bne cr1, lbl_80050E1C
/* 80050D80 0004CBC0 38 04 00 5F */ addi r0, r4, 0x5f
/* 80050D84 0004CBC4 80 64 01 0C */ lwz r3, 0x10c(r4)
/* 80050D88 0004CBC8 54 05 00 34 */ clrrwi r5, r0, 5
/* 80050D8C 0004CBCC 80 05 00 00 */ lwz r0, 0x0(r5)
/* 80050D90 0004CBD0 90 03 00 00 */ stw r0, 0x0(r3)
/* 80050D94 0004CBD4 80 64 01 10 */ lwz r3, 0x110(r4)
/* 80050D98 0004CBD8 A0 05 00 04 */ lhz r0, 0x4(r5)
/* 80050D9C 0004CBDC B0 03 00 00 */ sth r0, 0x0(r3)
/* 80050DA0 0004CBE0 80 64 01 14 */ lwz r3, 0x114(r4)
/* 80050DA4 0004CBE4 88 05 00 49 */ lbz r0, 0x49(r5)
/* 80050DA8 0004CBE8 90 03 00 00 */ stw r0, 0x0(r3)
/* 80050DAC 0004CBEC 80 64 01 18 */ lwz r3, 0x118(r4)
/* 80050DB0 0004CBF0 88 05 00 46 */ lbz r0, 0x46(r5)
/* 80050DB4 0004CBF4 90 03 00 00 */ stw r0, 0x0(r3)
/* 80050DB8 0004CBF8 80 64 01 1C */ lwz r3, 0x11c(r4)
/* 80050DBC 0004CBFC 88 05 00 47 */ lbz r0, 0x47(r5)
/* 80050DC0 0004CC00 90 03 00 00 */ stw r0, 0x0(r3)
/* 80050DC4 0004CC04 80 64 01 20 */ lwz r3, 0x120(r4)
/* 80050DC8 0004CC08 88 05 00 48 */ lbz r0, 0x48(r5)
/* 80050DCC 0004CC0C 90 03 00 00 */ stw r0, 0x0(r3)
/* 80050DD0 0004CC10 48 00 00 4C */ b lbl_80050E1C
.global lbl_80050DD4
lbl_80050DD4:
/* 80050DD4 0004CC14 40 86 00 48 */ bne cr1, lbl_80050E1C
/* 80050DD8 0004CC18 38 04 00 3F */ addi r0, r4, 0x3f
/* 80050DDC 0004CC1C 80 64 01 0C */ lwz r3, 0x10c(r4)
/* 80050DE0 0004CC20 54 05 00 34 */ clrrwi r5, r0, 5
/* 80050DE4 0004CC24 38 05 00 5F */ addi r0, r5, 0x5f
/* 80050DE8 0004CC28 54 06 00 34 */ clrrwi r6, r0, 5
/* 80050DEC 0004CC2C 80 A6 00 00 */ lwz r5, 0x0(r6)
/* 80050DF0 0004CC30 38 06 00 23 */ addi r0, r6, 0x23
/* 80050DF4 0004CC34 90 A3 00 00 */ stw r5, 0x0(r3)
/* 80050DF8 0004CC38 54 05 00 34 */ clrrwi r5, r0, 5
/* 80050DFC 0004CC3C 80 64 01 10 */ lwz r3, 0x110(r4)
/* 80050E00 0004CC40 80 05 00 00 */ lwz r0, 0x0(r5)
/* 80050E04 0004CC44 90 03 00 00 */ stw r0, 0x0(r3)
/* 80050E08 0004CC48 48 00 00 14 */ b lbl_80050E1C
.global lbl_80050E0C
lbl_80050E0C:
/* 80050E0C 0004CC4C 40 86 00 10 */ bne cr1, lbl_80050E1C
/* 80050E10 0004CC50 80 64 01 0C */ lwz r3, 0x10c(r4)
/* 80050E14 0004CC54 38 A0 00 08 */ li r5, 0x8
/* 80050E18 0004CC58 4B FB 31 E9 */ bl memcpy
.global lbl_80050E1C
lbl_80050E1C:
/* 80050E1C 0004CC5C 38 00 00 00 */ li r0, 0x0
/* 80050E20 0004CC60 90 0D E9 30 */ stw r0, _asynCnt@sda21(r13)
/* 80050E24 0004CC64 81 9F 01 00 */ lwz r12, 0x100(r31)
/* 80050E28 0004CC68 2C 0C 00 00 */ cmpwi r12, 0x0
/* 80050E2C 0004CC6C 41 82 00 14 */ beq lbl_80050E40
/* 80050E30 0004CC70 7F C3 F3 78 */ mr r3, r30
/* 80050E34 0004CC74 80 9F 01 04 */ lwz r4, 0x104(r31)
/* 80050E38 0004CC78 7D 89 03 A6 */ mtctr r12
/* 80050E3C 0004CC7C 4E 80 04 21 */ bctrl
.global lbl_80050E40
lbl_80050E40:
/* 80050E40 0004CC80 2C 1F 00 00 */ cmpwi r31, 0x0
/* 80050E44 0004CC84 41 82 00 10 */ beq lbl_80050E54
/* 80050E48 0004CC88 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80050E4C 0004CC8C 7F E4 FB 78 */ mr r4, r31
/* 80050E50 0004CC90 4B FF F7 71 */ bl iosFree
.global lbl_80050E54
lbl_80050E54:
/* 80050E54 0004CC94 7F C3 F3 78 */ mr r3, r30
/* 80050E58 0004CC98 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80050E5C 0004CC9C 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80050E60 0004CCA0 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80050E64 0004CCA4 7C 08 03 A6 */ mtlr r0
/* 80050E68 0004CCA8 38 21 00 10 */ addi r1, r1, 0x10
/* 80050E6C 0004CCAC 4E 80 00 20 */ blr
.global ISFS_CreateDir
ISFS_CreateDir:
/* 80050E70 0004CCB0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80050E74 0004CCB4 7C 08 02 A6 */ mflr r0
/* 80050E78 0004CCB8 90 01 00 34 */ stw r0, 0x34(r1)
/* 80050E7C 0004CCBC 39 61 00 30 */ addi r11, r1, 0x30
/* 80050E80 0004CCC0 4B FB 64 B5 */ bl lbl_80007334
/* 80050E84 0004CCC4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80050E88 0004CCC8 7C 79 1B 78 */ mr r25, r3
/* 80050E8C 0004CCCC 7C 9A 23 78 */ mr r26, r4
/* 80050E90 0004CCD0 7C BB 2B 78 */ mr r27, r5
/* 80050E94 0004CCD4 7C DC 33 78 */ mr r28, r6
/* 80050E98 0004CCD8 7C FD 3B 78 */ mr r29, r7
/* 80050E9C 0004CCDC 3B C0 00 00 */ li r30, 0x0
/* 80050EA0 0004CCE0 41 82 00 24 */ beq lbl_80050EC4
/* 80050EA4 0004CCE4 80 0D 83 90 */ lwz r0, __fsFd@sda21(r13)
/* 80050EA8 0004CCE8 2C 00 00 00 */ cmpwi r0, 0x0
/* 80050EAC 0004CCEC 41 80 00 18 */ blt lbl_80050EC4
/* 80050EB0 0004CCF0 38 80 00 40 */ li r4, 0x40
/* 80050EB4 0004CCF4 4B FF D9 6D */ bl strnlen
/* 80050EB8 0004CCF8 28 03 00 40 */ cmplwi r3, 0x40
/* 80050EBC 0004CCFC 7C 7F 1B 78 */ mr r31, r3
/* 80050EC0 0004CD00 40 82 00 0C */ bne lbl_80050ECC
.global lbl_80050EC4
lbl_80050EC4:
/* 80050EC4 0004CD04 3B E0 FF 9B */ li r31, -0x65
/* 80050EC8 0004CD08 48 00 00 68 */ b lbl_80050F30
.global lbl_80050ECC
lbl_80050ECC:
/* 80050ECC 0004CD0C 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80050ED0 0004CD10 38 80 01 40 */ li r4, 0x140
/* 80050ED4 0004CD14 38 A0 00 20 */ li r5, 0x20
/* 80050ED8 0004CD18 4B FF F6 D9 */ bl iosAllocAligned
/* 80050EDC 0004CD1C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80050EE0 0004CD20 7C 7E 1B 78 */ mr r30, r3
/* 80050EE4 0004CD24 40 82 00 0C */ bne lbl_80050EF0
/* 80050EE8 0004CD28 3B E0 FF EA */ li r31, -0x16
/* 80050EEC 0004CD2C 48 00 00 44 */ b lbl_80050F30
.global lbl_80050EF0
lbl_80050EF0:
/* 80050EF0 0004CD30 7F 24 CB 78 */ mr r4, r25
/* 80050EF4 0004CD34 38 BF 00 01 */ addi r5, r31, 0x1
/* 80050EF8 0004CD38 38 63 00 06 */ addi r3, r3, 0x6
/* 80050EFC 0004CD3C 4B FB 31 05 */ bl memcpy
/* 80050F00 0004CD40 9B 5E 00 49 */ stb r26, 0x49(r30)
/* 80050F04 0004CD44 7F C5 F3 78 */ mr r5, r30
/* 80050F08 0004CD48 38 80 00 03 */ li r4, 0x3
/* 80050F0C 0004CD4C 38 C0 00 4C */ li r6, 0x4c
/* 80050F10 0004CD50 9B 7E 00 46 */ stb r27, 0x46(r30)
/* 80050F14 0004CD54 38 E0 00 00 */ li r7, 0x0
/* 80050F18 0004CD58 39 00 00 00 */ li r8, 0x0
/* 80050F1C 0004CD5C 9B 9E 00 47 */ stb r28, 0x47(r30)
/* 80050F20 0004CD60 9B BE 00 48 */ stb r29, 0x48(r30)
/* 80050F24 0004CD64 80 6D 83 90 */ lwz r3, __fsFd@sda21(r13)
/* 80050F28 0004CD68 4B FF EB E9 */ bl IOS_Ioctl
/* 80050F2C 0004CD6C 7C 7F 1B 78 */ mr r31, r3
.global lbl_80050F30
lbl_80050F30:
/* 80050F30 0004CD70 2C 1E 00 00 */ cmpwi r30, 0x0
/* 80050F34 0004CD74 41 82 00 14 */ beq lbl_80050F48
/* 80050F38 0004CD78 41 82 00 10 */ beq lbl_80050F48
/* 80050F3C 0004CD7C 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80050F40 0004CD80 7F C4 F3 78 */ mr r4, r30
/* 80050F44 0004CD84 4B FF F6 7D */ bl iosFree
.global lbl_80050F48
lbl_80050F48:
/* 80050F48 0004CD88 39 61 00 30 */ addi r11, r1, 0x30
/* 80050F4C 0004CD8C 7F E3 FB 78 */ mr r3, r31
/* 80050F50 0004CD90 4B FB 64 31 */ bl lbl_80007380
/* 80050F54 0004CD94 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80050F58 0004CD98 7C 08 03 A6 */ mtlr r0
/* 80050F5C 0004CD9C 38 21 00 30 */ addi r1, r1, 0x30
/* 80050F60 0004CDA0 4E 80 00 20 */ blr
/* 80050F64 0004CDA4 00 00 00 00 */ .4byte 0x00000000
/* 80050F68 0004CDA8 00 00 00 00 */ .4byte 0x00000000
/* 80050F6C 0004CDAC 00 00 00 00 */ .4byte 0x00000000
.global ISFS_CreateDirAsync
ISFS_CreateDirAsync:
/* 80050F70 0004CDB0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80050F74 0004CDB4 7C 08 02 A6 */ mflr r0
/* 80050F78 0004CDB8 90 01 00 34 */ stw r0, 0x34(r1)
/* 80050F7C 0004CDBC 39 61 00 30 */ addi r11, r1, 0x30
/* 80050F80 0004CDC0 4B FB 63 AD */ bl lbl_8000732C
/* 80050F84 0004CDC4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80050F88 0004CDC8 7C 77 1B 78 */ mr r23, r3
/* 80050F8C 0004CDCC 7C 98 23 78 */ mr r24, r4
/* 80050F90 0004CDD0 7C B9 2B 78 */ mr r25, r5
/* 80050F94 0004CDD4 7C DA 33 78 */ mr r26, r6
/* 80050F98 0004CDD8 7C FB 3B 78 */ mr r27, r7
/* 80050F9C 0004CDDC 7D 1C 43 78 */ mr r28, r8
/* 80050FA0 0004CDE0 7D 3D 4B 78 */ mr r29, r9
/* 80050FA4 0004CDE4 41 82 00 24 */ beq lbl_80050FC8
/* 80050FA8 0004CDE8 80 0D 83 90 */ lwz r0, __fsFd@sda21(r13)
/* 80050FAC 0004CDEC 2C 00 00 00 */ cmpwi r0, 0x0
/* 80050FB0 0004CDF0 41 80 00 18 */ blt lbl_80050FC8
/* 80050FB4 0004CDF4 38 80 00 40 */ li r4, 0x40
/* 80050FB8 0004CDF8 4B FF D8 69 */ bl strnlen
/* 80050FBC 0004CDFC 28 03 00 40 */ cmplwi r3, 0x40
/* 80050FC0 0004CE00 7C 7F 1B 78 */ mr r31, r3
/* 80050FC4 0004CE04 40 82 00 0C */ bne lbl_80050FD0
.global lbl_80050FC8
lbl_80050FC8:
/* 80050FC8 0004CE08 38 60 FF 9B */ li r3, -0x65
/* 80050FCC 0004CE0C 48 00 00 80 */ b lbl_8005104C
.global lbl_80050FD0
lbl_80050FD0:
/* 80050FD0 0004CE10 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80050FD4 0004CE14 38 80 01 40 */ li r4, 0x140
/* 80050FD8 0004CE18 38 A0 00 20 */ li r5, 0x20
/* 80050FDC 0004CE1C 4B FF F5 D5 */ bl iosAllocAligned
/* 80050FE0 0004CE20 2C 03 00 00 */ cmpwi r3, 0x0
/* 80050FE4 0004CE24 7C 7E 1B 78 */ mr r30, r3
/* 80050FE8 0004CE28 40 82 00 0C */ bne lbl_80050FF4
/* 80050FEC 0004CE2C 38 60 FF 8A */ li r3, -0x76
/* 80050FF0 0004CE30 48 00 00 5C */ b lbl_8005104C
.global lbl_80050FF4
lbl_80050FF4:
/* 80050FF4 0004CE34 93 83 01 00 */ stw r28, 0x100(r3)
/* 80050FF8 0004CE38 38 00 00 00 */ li r0, 0x0
/* 80050FFC 0004CE3C 7E E4 BB 78 */ mr r4, r23
/* 80051000 0004CE40 38 BF 00 01 */ addi r5, r31, 0x1
/* 80051004 0004CE44 93 A3 01 04 */ stw r29, 0x104(r3)
/* 80051008 0004CE48 90 03 01 08 */ stw r0, 0x108(r3)
/* 8005100C 0004CE4C 38 63 00 06 */ addi r3, r3, 0x6
/* 80051010 0004CE50 4B FB 2F F1 */ bl memcpy
/* 80051014 0004CE54 9B 1E 00 49 */ stb r24, 0x49(r30)
/* 80051018 0004CE58 3D 20 80 05 */ lis r9, _isfsFuncCb@ha
/* 8005101C 0004CE5C 7F C5 F3 78 */ mr r5, r30
/* 80051020 0004CE60 7F CA F3 78 */ mr r10, r30
/* 80051024 0004CE64 9B 3E 00 46 */ stb r25, 0x46(r30)
/* 80051028 0004CE68 39 29 0C F0 */ addi r9, r9, _isfsFuncCb@l
/* 8005102C 0004CE6C 38 80 00 03 */ li r4, 0x3
/* 80051030 0004CE70 38 C0 00 4C */ li r6, 0x4c
/* 80051034 0004CE74 9B 5E 00 47 */ stb r26, 0x47(r30)
/* 80051038 0004CE78 38 E0 00 00 */ li r7, 0x0
/* 8005103C 0004CE7C 39 00 00 00 */ li r8, 0x0
/* 80051040 0004CE80 9B 7E 00 48 */ stb r27, 0x48(r30)
/* 80051044 0004CE84 80 6D 83 90 */ lwz r3, __fsFd@sda21(r13)
/* 80051048 0004CE88 4B FF E9 89 */ bl IOS_IoctlAsync
.global lbl_8005104C
lbl_8005104C:
/* 8005104C 0004CE8C 39 61 00 30 */ addi r11, r1, 0x30
/* 80051050 0004CE90 4B FB 63 29 */ bl lbl_80007378
/* 80051054 0004CE94 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80051058 0004CE98 7C 08 03 A6 */ mtlr r0
/* 8005105C 0004CE9C 38 21 00 30 */ addi r1, r1, 0x30
/* 80051060 0004CEA0 4E 80 00 20 */ blr
/* 80051064 0004CEA4 00 00 00 00 */ .4byte 0x00000000
/* 80051068 0004CEA8 00 00 00 00 */ .4byte 0x00000000
/* 8005106C 0004CEAC 00 00 00 00 */ .4byte 0x00000000
.global ISFS_ReadDir
ISFS_ReadDir:
/* 80051070 0004CEB0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80051074 0004CEB4 7C 08 02 A6 */ mflr r0
/* 80051078 0004CEB8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8005107C 0004CEBC 39 61 00 20 */ addi r11, r1, 0x20
/* 80051080 0004CEC0 4B FB 62 B9 */ bl lbl_80007338
/* 80051084 0004CEC4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051088 0004CEC8 7C 7A 1B 78 */ mr r26, r3
/* 8005108C 0004CECC 7C 9B 23 78 */ mr r27, r4
/* 80051090 0004CED0 7C BC 2B 78 */ mr r28, r5
/* 80051094 0004CED4 3B A0 00 00 */ li r29, 0x0
/* 80051098 0004CED8 41 82 00 34 */ beq lbl_800510CC
/* 8005109C 0004CEDC 2C 05 00 00 */ cmpwi r5, 0x0
/* 800510A0 0004CEE0 41 82 00 2C */ beq lbl_800510CC
/* 800510A4 0004CEE4 80 0D 83 90 */ lwz r0, __fsFd@sda21(r13)
/* 800510A8 0004CEE8 2C 00 00 00 */ cmpwi r0, 0x0
/* 800510AC 0004CEEC 41 80 00 20 */ blt lbl_800510CC
/* 800510B0 0004CEF0 54 80 06 FF */ clrlwi. r0, r4, 27
/* 800510B4 0004CEF4 40 82 00 18 */ bne lbl_800510CC
/* 800510B8 0004CEF8 38 80 00 40 */ li r4, 0x40
/* 800510BC 0004CEFC 4B FF D7 65 */ bl strnlen
/* 800510C0 0004CF00 28 03 00 40 */ cmplwi r3, 0x40
/* 800510C4 0004CF04 7C 7F 1B 78 */ mr r31, r3
/* 800510C8 0004CF08 40 82 00 0C */ bne lbl_800510D4
.global lbl_800510CC
lbl_800510CC:
/* 800510CC 0004CF0C 3B E0 FF 9B */ li r31, -0x65
/* 800510D0 0004CF10 48 00 00 C0 */ b lbl_80051190
.global lbl_800510D4
lbl_800510D4:
/* 800510D4 0004CF14 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 800510D8 0004CF18 38 80 01 40 */ li r4, 0x140
/* 800510DC 0004CF1C 38 A0 00 20 */ li r5, 0x20
/* 800510E0 0004CF20 4B FF F4 D1 */ bl iosAllocAligned
/* 800510E4 0004CF24 2C 03 00 00 */ cmpwi r3, 0x0
/* 800510E8 0004CF28 7C 7D 1B 78 */ mr r29, r3
/* 800510EC 0004CF2C 40 82 00 0C */ bne lbl_800510F8
/* 800510F0 0004CF30 3B E0 FF EA */ li r31, -0x16
/* 800510F4 0004CF34 48 00 00 9C */ b lbl_80051190
.global lbl_800510F8
lbl_800510F8:
/* 800510F8 0004CF38 38 03 00 3F */ addi r0, r3, 0x3f
/* 800510FC 0004CF3C 7F 44 D3 78 */ mr r4, r26
/* 80051100 0004CF40 54 1E 00 34 */ clrrwi r30, r0, 5
/* 80051104 0004CF44 38 BF 00 01 */ addi r5, r31, 0x1
/* 80051108 0004CF48 7F C3 F3 78 */ mr r3, r30
/* 8005110C 0004CF4C 4B FB 2E F5 */ bl memcpy
/* 80051110 0004CF50 93 DD 00 00 */ stw r30, 0x0(r29)
/* 80051114 0004CF54 38 60 00 40 */ li r3, 0x40
/* 80051118 0004CF58 38 1E 00 5F */ addi r0, r30, 0x5f
/* 8005111C 0004CF5C 2C 1B 00 00 */ cmpwi r27, 0x0
/* 80051120 0004CF60 90 7D 00 04 */ stw r3, 0x4(r29)
/* 80051124 0004CF64 54 1E 00 34 */ clrrwi r30, r0, 5
/* 80051128 0004CF68 38 60 00 04 */ li r3, 0x4
/* 8005112C 0004CF6C 93 DD 00 08 */ stw r30, 0x8(r29)
/* 80051130 0004CF70 90 7D 00 0C */ stw r3, 0xc(r29)
/* 80051134 0004CF74 41 82 00 30 */ beq lbl_80051164
/* 80051138 0004CF78 80 1C 00 00 */ lwz r0, 0x0(r28)
/* 8005113C 0004CF7C 38 A0 00 02 */ li r5, 0x2
/* 80051140 0004CF80 90 1E 00 00 */ stw r0, 0x0(r30)
/* 80051144 0004CF84 38 C0 00 02 */ li r6, 0x2
/* 80051148 0004CF88 93 7D 00 10 */ stw r27, 0x10(r29)
/* 8005114C 0004CF8C 80 1C 00 00 */ lwz r0, 0x0(r28)
/* 80051150 0004CF90 1C 00 00 0D */ mulli r0, r0, 0xd
/* 80051154 0004CF94 90 1D 00 14 */ stw r0, 0x14(r29)
/* 80051158 0004CF98 93 DD 00 18 */ stw r30, 0x18(r29)
/* 8005115C 0004CF9C 90 7D 00 1C */ stw r3, 0x1c(r29)
/* 80051160 0004CFA0 48 00 00 0C */ b lbl_8005116C
.global lbl_80051164
lbl_80051164:
/* 80051164 0004CFA4 38 A0 00 01 */ li r5, 0x1
/* 80051168 0004CFA8 38 C0 00 01 */ li r6, 0x1
.global lbl_8005116C
lbl_8005116C:
/* 8005116C 0004CFAC 80 6D 83 90 */ lwz r3, __fsFd@sda21(r13)
/* 80051170 0004CFB0 7F A7 EB 78 */ mr r7, r29
/* 80051174 0004CFB4 38 80 00 04 */ li r4, 0x4
/* 80051178 0004CFB8 4B FF EC F9 */ bl IOS_Ioctlv
/* 8005117C 0004CFBC 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051180 0004CFC0 7C 7F 1B 78 */ mr r31, r3
/* 80051184 0004CFC4 40 82 00 0C */ bne lbl_80051190
/* 80051188 0004CFC8 80 1E 00 00 */ lwz r0, 0x0(r30)
/* 8005118C 0004CFCC 90 1C 00 00 */ stw r0, 0x0(r28)
.global lbl_80051190
lbl_80051190:
/* 80051190 0004CFD0 2C 1D 00 00 */ cmpwi r29, 0x0
/* 80051194 0004CFD4 41 82 00 14 */ beq lbl_800511A8
/* 80051198 0004CFD8 41 82 00 10 */ beq lbl_800511A8
/* 8005119C 0004CFDC 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 800511A0 0004CFE0 7F A4 EB 78 */ mr r4, r29
/* 800511A4 0004CFE4 4B FF F4 1D */ bl iosFree
.global lbl_800511A8
lbl_800511A8:
/* 800511A8 0004CFE8 39 61 00 20 */ addi r11, r1, 0x20
/* 800511AC 0004CFEC 7F E3 FB 78 */ mr r3, r31
/* 800511B0 0004CFF0 4B FB 61 D5 */ bl lbl_80007384
/* 800511B4 0004CFF4 80 01 00 24 */ lwz r0, 0x24(r1)
/* 800511B8 0004CFF8 7C 08 03 A6 */ mtlr r0
/* 800511BC 0004CFFC 38 21 00 20 */ addi r1, r1, 0x20
/* 800511C0 0004D000 4E 80 00 20 */ blr
/* 800511C4 0004D004 00 00 00 00 */ .4byte 0x00000000
/* 800511C8 0004D008 00 00 00 00 */ .4byte 0x00000000
/* 800511CC 0004D00C 00 00 00 00 */ .4byte 0x00000000
.global ISFS_ReadDirAsync
ISFS_ReadDirAsync:
/* 800511D0 0004D010 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 800511D4 0004D014 7C 08 02 A6 */ mflr r0
/* 800511D8 0004D018 90 01 00 34 */ stw r0, 0x34(r1)
/* 800511DC 0004D01C 39 61 00 30 */ addi r11, r1, 0x30
/* 800511E0 0004D020 4B FB 61 55 */ bl lbl_80007334
/* 800511E4 0004D024 2C 03 00 00 */ cmpwi r3, 0x0
/* 800511E8 0004D028 7C 79 1B 78 */ mr r25, r3
/* 800511EC 0004D02C 7C 9A 23 78 */ mr r26, r4
/* 800511F0 0004D030 7C BB 2B 78 */ mr r27, r5
/* 800511F4 0004D034 7C DC 33 78 */ mr r28, r6
/* 800511F8 0004D038 7C FD 3B 78 */ mr r29, r7
/* 800511FC 0004D03C 41 82 00 34 */ beq lbl_80051230
/* 80051200 0004D040 2C 05 00 00 */ cmpwi r5, 0x0
/* 80051204 0004D044 41 82 00 2C */ beq lbl_80051230
/* 80051208 0004D048 80 0D 83 90 */ lwz r0, __fsFd@sda21(r13)
/* 8005120C 0004D04C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80051210 0004D050 41 80 00 20 */ blt lbl_80051230
/* 80051214 0004D054 54 80 06 FF */ clrlwi. r0, r4, 27
/* 80051218 0004D058 40 82 00 18 */ bne lbl_80051230
/* 8005121C 0004D05C 38 80 00 40 */ li r4, 0x40
/* 80051220 0004D060 4B FF D6 01 */ bl strnlen
/* 80051224 0004D064 28 03 00 40 */ cmplwi r3, 0x40
/* 80051228 0004D068 7C 7F 1B 78 */ mr r31, r3
/* 8005122C 0004D06C 40 82 00 0C */ bne lbl_80051238
.global lbl_80051230
lbl_80051230:
/* 80051230 0004D070 38 60 FF 9B */ li r3, -0x65
/* 80051234 0004D074 48 00 00 CC */ b lbl_80051300
.global lbl_80051238
lbl_80051238:
/* 80051238 0004D078 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 8005123C 0004D07C 38 80 01 40 */ li r4, 0x140
/* 80051240 0004D080 38 A0 00 20 */ li r5, 0x20
/* 80051244 0004D084 4B FF F3 6D */ bl iosAllocAligned
/* 80051248 0004D088 2C 03 00 00 */ cmpwi r3, 0x0
/* 8005124C 0004D08C 7C 7E 1B 78 */ mr r30, r3
/* 80051250 0004D090 40 82 00 0C */ bne lbl_8005125C
/* 80051254 0004D094 38 60 FF 8A */ li r3, -0x76
/* 80051258 0004D098 48 00 00 A8 */ b lbl_80051300
.global lbl_8005125C
lbl_8005125C:
/* 8005125C 0004D09C 93 83 01 00 */ stw r28, 0x100(r3)
/* 80051260 0004D0A0 38 C0 00 02 */ li r6, 0x2
/* 80051264 0004D0A4 38 03 00 3F */ addi r0, r3, 0x3f
/* 80051268 0004D0A8 7F 24 CB 78 */ mr r4, r25
/* 8005126C 0004D0AC 93 A3 01 04 */ stw r29, 0x104(r3)
/* 80051270 0004D0B0 54 1D 00 34 */ clrrwi r29, r0, 5
/* 80051274 0004D0B4 38 BF 00 01 */ addi r5, r31, 0x1
/* 80051278 0004D0B8 90 C3 01 08 */ stw r6, 0x108(r3)
/* 8005127C 0004D0BC 93 63 01 0C */ stw r27, 0x10c(r3)
/* 80051280 0004D0C0 7F A3 EB 78 */ mr r3, r29
/* 80051284 0004D0C4 4B FB 2D 7D */ bl memcpy
/* 80051288 0004D0C8 93 BE 00 00 */ stw r29, 0x0(r30)
/* 8005128C 0004D0CC 38 60 00 40 */ li r3, 0x40
/* 80051290 0004D0D0 38 1D 00 5F */ addi r0, r29, 0x5f
/* 80051294 0004D0D4 2C 1A 00 00 */ cmpwi r26, 0x0
/* 80051298 0004D0D8 90 7E 00 04 */ stw r3, 0x4(r30)
/* 8005129C 0004D0DC 54 04 00 34 */ clrrwi r4, r0, 5
/* 800512A0 0004D0E0 38 60 00 04 */ li r3, 0x4
/* 800512A4 0004D0E4 90 9E 00 08 */ stw r4, 0x8(r30)
/* 800512A8 0004D0E8 90 7E 00 0C */ stw r3, 0xc(r30)
/* 800512AC 0004D0EC 41 82 00 30 */ beq lbl_800512DC
/* 800512B0 0004D0F0 80 1B 00 00 */ lwz r0, 0x0(r27)
/* 800512B4 0004D0F4 38 A0 00 02 */ li r5, 0x2
/* 800512B8 0004D0F8 90 04 00 00 */ stw r0, 0x0(r4)
/* 800512BC 0004D0FC 38 C0 00 02 */ li r6, 0x2
/* 800512C0 0004D100 93 5E 00 10 */ stw r26, 0x10(r30)
/* 800512C4 0004D104 80 1B 00 00 */ lwz r0, 0x0(r27)
/* 800512C8 0004D108 1C 00 00 0D */ mulli r0, r0, 0xd
/* 800512CC 0004D10C 90 1E 00 14 */ stw r0, 0x14(r30)
/* 800512D0 0004D110 90 9E 00 18 */ stw r4, 0x18(r30)
/* 800512D4 0004D114 90 7E 00 1C */ stw r3, 0x1c(r30)
/* 800512D8 0004D118 48 00 00 0C */ b lbl_800512E4
.global lbl_800512DC
lbl_800512DC:
/* 800512DC 0004D11C 38 A0 00 01 */ li r5, 0x1
/* 800512E0 0004D120 38 C0 00 01 */ li r6, 0x1
.global lbl_800512E4
lbl_800512E4:
/* 800512E4 0004D124 3D 00 80 05 */ lis r8, _isfsFuncCb@ha
/* 800512E8 0004D128 80 6D 83 90 */ lwz r3, __fsFd@sda21(r13)
/* 800512EC 0004D12C 7F C7 F3 78 */ mr r7, r30
/* 800512F0 0004D130 7F C9 F3 78 */ mr r9, r30
/* 800512F4 0004D134 39 08 0C F0 */ addi r8, r8, _isfsFuncCb@l
/* 800512F8 0004D138 38 80 00 04 */ li r4, 0x4
/* 800512FC 0004D13C 4B FF EA 85 */ bl IOS_IoctlvAsync
.global lbl_80051300
lbl_80051300:
/* 80051300 0004D140 39 61 00 30 */ addi r11, r1, 0x30
/* 80051304 0004D144 4B FB 60 7D */ bl lbl_80007380
/* 80051308 0004D148 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8005130C 0004D14C 7C 08 03 A6 */ mtlr r0
/* 80051310 0004D150 38 21 00 30 */ addi r1, r1, 0x30
/* 80051314 0004D154 4E 80 00 20 */ blr
/* 80051318 0004D158 00 00 00 00 */ .4byte 0x00000000
/* 8005131C 0004D15C 00 00 00 00 */ .4byte 0x00000000
.global ISFS_GetAttr
ISFS_GetAttr:
/* 80051320 0004D160 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80051324 0004D164 7C 08 02 A6 */ mflr r0
/* 80051328 0004D168 90 01 00 34 */ stw r0, 0x34(r1)
/* 8005132C 0004D16C 39 61 00 30 */ addi r11, r1, 0x30
/* 80051330 0004D170 4B FB 5F FD */ bl lbl_8000732C
/* 80051334 0004D174 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051338 0004D178 7C 7E 1B 78 */ mr r30, r3
/* 8005133C 0004D17C 7C 97 23 78 */ mr r23, r4
/* 80051340 0004D180 7C B8 2B 78 */ mr r24, r5
/* 80051344 0004D184 7C D9 33 78 */ mr r25, r6
/* 80051348 0004D188 7C FA 3B 78 */ mr r26, r7
/* 8005134C 0004D18C 7D 1B 43 78 */ mr r27, r8
/* 80051350 0004D190 7D 3C 4B 78 */ mr r28, r9
/* 80051354 0004D194 3B A0 00 00 */ li r29, 0x0
/* 80051358 0004D198 41 82 00 54 */ beq lbl_800513AC
/* 8005135C 0004D19C 80 0D 83 90 */ lwz r0, __fsFd@sda21(r13)
/* 80051360 0004D1A0 2C 00 00 00 */ cmpwi r0, 0x0
/* 80051364 0004D1A4 41 80 00 48 */ blt lbl_800513AC
/* 80051368 0004D1A8 38 80 00 40 */ li r4, 0x40
/* 8005136C 0004D1AC 4B FF D4 B5 */ bl strnlen
/* 80051370 0004D1B0 28 03 00 40 */ cmplwi r3, 0x40
/* 80051374 0004D1B4 7C 7F 1B 78 */ mr r31, r3
/* 80051378 0004D1B8 41 82 00 34 */ beq lbl_800513AC
/* 8005137C 0004D1BC 2C 17 00 00 */ cmpwi r23, 0x0
/* 80051380 0004D1C0 41 82 00 2C */ beq lbl_800513AC
/* 80051384 0004D1C4 2C 18 00 00 */ cmpwi r24, 0x0
/* 80051388 0004D1C8 41 82 00 24 */ beq lbl_800513AC
/* 8005138C 0004D1CC 2C 19 00 00 */ cmpwi r25, 0x0
/* 80051390 0004D1D0 41 82 00 1C */ beq lbl_800513AC
/* 80051394 0004D1D4 2C 1A 00 00 */ cmpwi r26, 0x0
/* 80051398 0004D1D8 41 82 00 14 */ beq lbl_800513AC
/* 8005139C 0004D1DC 2C 1B 00 00 */ cmpwi r27, 0x0
/* 800513A0 0004D1E0 41 82 00 0C */ beq lbl_800513AC
/* 800513A4 0004D1E4 2C 1C 00 00 */ cmpwi r28, 0x0
/* 800513A8 0004D1E8 40 82 00 0C */ bne lbl_800513B4
.global lbl_800513AC
lbl_800513AC:
/* 800513AC 0004D1EC 3B E0 FF 9B */ li r31, -0x65
/* 800513B0 0004D1F0 48 00 00 94 */ b lbl_80051444
.global lbl_800513B4
lbl_800513B4:
/* 800513B4 0004D1F4 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 800513B8 0004D1F8 38 80 01 40 */ li r4, 0x140
/* 800513BC 0004D1FC 38 A0 00 20 */ li r5, 0x20
/* 800513C0 0004D200 4B FF F1 F1 */ bl iosAllocAligned
/* 800513C4 0004D204 2C 03 00 00 */ cmpwi r3, 0x0
/* 800513C8 0004D208 7C 7D 1B 78 */ mr r29, r3
/* 800513CC 0004D20C 40 82 00 0C */ bne lbl_800513D8
/* 800513D0 0004D210 3B E0 FF EA */ li r31, -0x16
/* 800513D4 0004D214 48 00 00 70 */ b lbl_80051444
.global lbl_800513D8
lbl_800513D8:
/* 800513D8 0004D218 7F C4 F3 78 */ mr r4, r30
/* 800513DC 0004D21C 38 BF 00 01 */ addi r5, r31, 0x1
/* 800513E0 0004D220 4B FB 2C 21 */ bl memcpy
/* 800513E4 0004D224 38 1D 00 5F */ addi r0, r29, 0x5f
/* 800513E8 0004D228 80 6D 83 90 */ lwz r3, __fsFd@sda21(r13)
/* 800513EC 0004D22C 54 1E 00 34 */ clrrwi r30, r0, 5
/* 800513F0 0004D230 7F A5 EB 78 */ mr r5, r29
/* 800513F4 0004D234 7F C7 F3 78 */ mr r7, r30
/* 800513F8 0004D238 38 80 00 06 */ li r4, 0x6
/* 800513FC 0004D23C 38 C0 00 40 */ li r6, 0x40
/* 80051400 0004D240 39 00 00 4C */ li r8, 0x4c
/* 80051404 0004D244 4B FF E7 0D */ bl IOS_Ioctl
/* 80051408 0004D248 2C 03 00 00 */ cmpwi r3, 0x0
/* 8005140C 0004D24C 7C 7F 1B 78 */ mr r31, r3
/* 80051410 0004D250 40 82 00 34 */ bne lbl_80051444
/* 80051414 0004D254 80 1E 00 00 */ lwz r0, 0x0(r30)
/* 80051418 0004D258 90 17 00 00 */ stw r0, 0x0(r23)
/* 8005141C 0004D25C A0 1E 00 04 */ lhz r0, 0x4(r30)
/* 80051420 0004D260 B0 18 00 00 */ sth r0, 0x0(r24)
/* 80051424 0004D264 88 1E 00 49 */ lbz r0, 0x49(r30)
/* 80051428 0004D268 90 19 00 00 */ stw r0, 0x0(r25)
/* 8005142C 0004D26C 88 1E 00 46 */ lbz r0, 0x46(r30)
/* 80051430 0004D270 90 1A 00 00 */ stw r0, 0x0(r26)
/* 80051434 0004D274 88 1E 00 47 */ lbz r0, 0x47(r30)
/* 80051438 0004D278 90 1B 00 00 */ stw r0, 0x0(r27)
/* 8005143C 0004D27C 88 1E 00 48 */ lbz r0, 0x48(r30)
/* 80051440 0004D280 90 1C 00 00 */ stw r0, 0x0(r28)
.global lbl_80051444
lbl_80051444:
/* 80051444 0004D284 2C 1D 00 00 */ cmpwi r29, 0x0
/* 80051448 0004D288 41 82 00 14 */ beq lbl_8005145C
/* 8005144C 0004D28C 41 82 00 10 */ beq lbl_8005145C
/* 80051450 0004D290 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80051454 0004D294 7F A4 EB 78 */ mr r4, r29
/* 80051458 0004D298 4B FF F1 69 */ bl iosFree
.global lbl_8005145C
lbl_8005145C:
/* 8005145C 0004D29C 39 61 00 30 */ addi r11, r1, 0x30
/* 80051460 0004D2A0 7F E3 FB 78 */ mr r3, r31
/* 80051464 0004D2A4 4B FB 5F 15 */ bl lbl_80007378
/* 80051468 0004D2A8 80 01 00 34 */ lwz r0, 0x34(r1)
/* 8005146C 0004D2AC 7C 08 03 A6 */ mtlr r0
/* 80051470 0004D2B0 38 21 00 30 */ addi r1, r1, 0x30
/* 80051474 0004D2B4 4E 80 00 20 */ blr
/* 80051478 0004D2B8 00 00 00 00 */ .4byte 0x00000000
/* 8005147C 0004D2BC 00 00 00 00 */ .4byte 0x00000000
.global ISFS_GetAttrAsync
ISFS_GetAttrAsync:
/* 80051480 0004D2C0 94 21 FF C0 */ stwu r1, -0x40(r1)
/* 80051484 0004D2C4 7C 08 02 A6 */ mflr r0
/* 80051488 0004D2C8 90 01 00 44 */ stw r0, 0x44(r1)
/* 8005148C 0004D2CC 39 61 00 40 */ addi r11, r1, 0x40
/* 80051490 0004D2D0 4B FB 5E 95 */ bl lbl_80007324
/* 80051494 0004D2D4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051498 0004D2D8 83 A1 00 48 */ lwz r29, 0x48(r1)
/* 8005149C 0004D2DC 7C 75 1B 78 */ mr r21, r3
/* 800514A0 0004D2E0 7C 96 23 78 */ mr r22, r4
/* 800514A4 0004D2E4 7C B7 2B 78 */ mr r23, r5
/* 800514A8 0004D2E8 7C D8 33 78 */ mr r24, r6
/* 800514AC 0004D2EC 7C F9 3B 78 */ mr r25, r7
/* 800514B0 0004D2F0 7D 1A 43 78 */ mr r26, r8
/* 800514B4 0004D2F4 7D 3B 4B 78 */ mr r27, r9
/* 800514B8 0004D2F8 7D 5C 53 78 */ mr r28, r10
/* 800514BC 0004D2FC 41 82 00 54 */ beq lbl_80051510
/* 800514C0 0004D300 80 0D 83 90 */ lwz r0, __fsFd@sda21(r13)
/* 800514C4 0004D304 2C 00 00 00 */ cmpwi r0, 0x0
/* 800514C8 0004D308 41 80 00 48 */ blt lbl_80051510
/* 800514CC 0004D30C 38 80 00 40 */ li r4, 0x40
/* 800514D0 0004D310 4B FF D3 51 */ bl strnlen
/* 800514D4 0004D314 28 03 00 40 */ cmplwi r3, 0x40
/* 800514D8 0004D318 7C 7F 1B 78 */ mr r31, r3
/* 800514DC 0004D31C 41 82 00 34 */ beq lbl_80051510
/* 800514E0 0004D320 2C 16 00 00 */ cmpwi r22, 0x0
/* 800514E4 0004D324 41 82 00 2C */ beq lbl_80051510
/* 800514E8 0004D328 2C 17 00 00 */ cmpwi r23, 0x0
/* 800514EC 0004D32C 41 82 00 24 */ beq lbl_80051510
/* 800514F0 0004D330 2C 18 00 00 */ cmpwi r24, 0x0
/* 800514F4 0004D334 41 82 00 1C */ beq lbl_80051510
/* 800514F8 0004D338 2C 19 00 00 */ cmpwi r25, 0x0
/* 800514FC 0004D33C 41 82 00 14 */ beq lbl_80051510
/* 80051500 0004D340 2C 1A 00 00 */ cmpwi r26, 0x0
/* 80051504 0004D344 41 82 00 0C */ beq lbl_80051510
/* 80051508 0004D348 2C 1B 00 00 */ cmpwi r27, 0x0
/* 8005150C 0004D34C 40 82 00 0C */ bne lbl_80051518
.global lbl_80051510
lbl_80051510:
/* 80051510 0004D350 38 60 FF 9B */ li r3, -0x65
/* 80051514 0004D354 48 00 00 88 */ b lbl_8005159C
.global lbl_80051518
lbl_80051518:
/* 80051518 0004D358 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 8005151C 0004D35C 38 80 01 40 */ li r4, 0x140
/* 80051520 0004D360 38 A0 00 20 */ li r5, 0x20
/* 80051524 0004D364 4B FF F0 8D */ bl iosAllocAligned
/* 80051528 0004D368 2C 03 00 00 */ cmpwi r3, 0x0
/* 8005152C 0004D36C 7C 7E 1B 78 */ mr r30, r3
/* 80051530 0004D370 40 82 00 0C */ bne lbl_8005153C
/* 80051534 0004D374 38 60 FF 8A */ li r3, -0x76
/* 80051538 0004D378 48 00 00 64 */ b lbl_8005159C
.global lbl_8005153C
lbl_8005153C:
/* 8005153C 0004D37C 92 C3 01 0C */ stw r22, 0x10c(r3)
/* 80051540 0004D380 38 00 00 03 */ li r0, 0x3
/* 80051544 0004D384 7E A4 AB 78 */ mr r4, r21
/* 80051548 0004D388 38 BF 00 01 */ addi r5, r31, 0x1
/* 8005154C 0004D38C 92 E3 01 10 */ stw r23, 0x110(r3)
/* 80051550 0004D390 93 03 01 14 */ stw r24, 0x114(r3)
/* 80051554 0004D394 93 23 01 18 */ stw r25, 0x118(r3)
/* 80051558 0004D398 93 43 01 1C */ stw r26, 0x11c(r3)
/* 8005155C 0004D39C 93 63 01 20 */ stw r27, 0x120(r3)
/* 80051560 0004D3A0 93 83 01 00 */ stw r28, 0x100(r3)
/* 80051564 0004D3A4 93 A3 01 04 */ stw r29, 0x104(r3)
/* 80051568 0004D3A8 90 03 01 08 */ stw r0, 0x108(r3)
/* 8005156C 0004D3AC 4B FB 2A 95 */ bl memcpy
/* 80051570 0004D3B0 38 1E 00 5F */ addi r0, r30, 0x5f
/* 80051574 0004D3B4 3D 20 80 05 */ lis r9, _isfsFuncCb@ha
/* 80051578 0004D3B8 80 6D 83 90 */ lwz r3, __fsFd@sda21(r13)
/* 8005157C 0004D3BC 7F C5 F3 78 */ mr r5, r30
/* 80051580 0004D3C0 7F CA F3 78 */ mr r10, r30
/* 80051584 0004D3C4 54 07 00 34 */ clrrwi r7, r0, 5
/* 80051588 0004D3C8 39 29 0C F0 */ addi r9, r9, _isfsFuncCb@l
/* 8005158C 0004D3CC 38 80 00 06 */ li r4, 0x6
/* 80051590 0004D3D0 38 C0 00 40 */ li r6, 0x40
/* 80051594 0004D3D4 39 00 00 4C */ li r8, 0x4c
/* 80051598 0004D3D8 4B FF E4 39 */ bl IOS_IoctlAsync
.global lbl_8005159C
lbl_8005159C:
/* 8005159C 0004D3DC 39 61 00 40 */ addi r11, r1, 0x40
/* 800515A0 0004D3E0 4B FB 5D D1 */ bl lbl_80007370
/* 800515A4 0004D3E4 80 01 00 44 */ lwz r0, 0x44(r1)
/* 800515A8 0004D3E8 7C 08 03 A6 */ mtlr r0
/* 800515AC 0004D3EC 38 21 00 40 */ addi r1, r1, 0x40
/* 800515B0 0004D3F0 4E 80 00 20 */ blr
/* 800515B4 0004D3F4 00 00 00 00 */ .4byte 0x00000000
/* 800515B8 0004D3F8 00 00 00 00 */ .4byte 0x00000000
/* 800515BC 0004D3FC 00 00 00 00 */ .4byte 0x00000000
.global ISFS_Delete
ISFS_Delete:
/* 800515C0 0004D400 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800515C4 0004D404 7C 08 02 A6 */ mflr r0
/* 800515C8 0004D408 2C 03 00 00 */ cmpwi r3, 0x0
/* 800515CC 0004D40C 90 01 00 24 */ stw r0, 0x24(r1)
/* 800515D0 0004D410 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 800515D4 0004D414 93 C1 00 18 */ stw r30, 0x18(r1)
/* 800515D8 0004D418 3B C0 00 00 */ li r30, 0x0
/* 800515DC 0004D41C 93 A1 00 14 */ stw r29, 0x14(r1)
/* 800515E0 0004D420 7C 7D 1B 78 */ mr r29, r3
/* 800515E4 0004D424 41 82 00 24 */ beq lbl_80051608
/* 800515E8 0004D428 80 0D 83 90 */ lwz r0, __fsFd@sda21(r13)
/* 800515EC 0004D42C 2C 00 00 00 */ cmpwi r0, 0x0
/* 800515F0 0004D430 41 80 00 18 */ blt lbl_80051608
/* 800515F4 0004D434 38 80 00 40 */ li r4, 0x40
/* 800515F8 0004D438 4B FF D2 29 */ bl strnlen
/* 800515FC 0004D43C 28 03 00 40 */ cmplwi r3, 0x40
/* 80051600 0004D440 7C 7F 1B 78 */ mr r31, r3
/* 80051604 0004D444 40 82 00 0C */ bne lbl_80051610
.global lbl_80051608
lbl_80051608:
/* 80051608 0004D448 3B E0 FF 9B */ li r31, -0x65
/* 8005160C 0004D44C 48 00 00 54 */ b lbl_80051660
.global lbl_80051610
lbl_80051610:
/* 80051610 0004D450 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80051614 0004D454 38 80 01 40 */ li r4, 0x140
/* 80051618 0004D458 38 A0 00 20 */ li r5, 0x20
/* 8005161C 0004D45C 4B FF EF 95 */ bl iosAllocAligned
/* 80051620 0004D460 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051624 0004D464 7C 7E 1B 78 */ mr r30, r3
/* 80051628 0004D468 40 82 00 0C */ bne lbl_80051634
/* 8005162C 0004D46C 3B E0 FF EA */ li r31, -0x16
/* 80051630 0004D470 48 00 00 30 */ b lbl_80051660
.global lbl_80051634
lbl_80051634:
/* 80051634 0004D474 7F A4 EB 78 */ mr r4, r29
/* 80051638 0004D478 38 BF 00 01 */ addi r5, r31, 0x1
/* 8005163C 0004D47C 4B FB 29 C5 */ bl memcpy
/* 80051640 0004D480 80 6D 83 90 */ lwz r3, __fsFd@sda21(r13)
/* 80051644 0004D484 7F C5 F3 78 */ mr r5, r30
/* 80051648 0004D488 38 80 00 07 */ li r4, 0x7
/* 8005164C 0004D48C 38 C0 00 40 */ li r6, 0x40
/* 80051650 0004D490 38 E0 00 00 */ li r7, 0x0
/* 80051654 0004D494 39 00 00 00 */ li r8, 0x0
/* 80051658 0004D498 4B FF E4 B9 */ bl IOS_Ioctl
/* 8005165C 0004D49C 7C 7F 1B 78 */ mr r31, r3
.global lbl_80051660
lbl_80051660:
/* 80051660 0004D4A0 2C 1E 00 00 */ cmpwi r30, 0x0
/* 80051664 0004D4A4 41 82 00 14 */ beq lbl_80051678
/* 80051668 0004D4A8 41 82 00 10 */ beq lbl_80051678
/* 8005166C 0004D4AC 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80051670 0004D4B0 7F C4 F3 78 */ mr r4, r30
/* 80051674 0004D4B4 4B FF EF 4D */ bl iosFree
.global lbl_80051678
lbl_80051678:
/* 80051678 0004D4B8 7F E3 FB 78 */ mr r3, r31
/* 8005167C 0004D4BC 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80051680 0004D4C0 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80051684 0004D4C4 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80051688 0004D4C8 80 01 00 24 */ lwz r0, 0x24(r1)
/* 8005168C 0004D4CC 7C 08 03 A6 */ mtlr r0
/* 80051690 0004D4D0 38 21 00 20 */ addi r1, r1, 0x20
/* 80051694 0004D4D4 4E 80 00 20 */ blr
/* 80051698 0004D4D8 00 00 00 00 */ .4byte 0x00000000
/* 8005169C 0004D4DC 00 00 00 00 */ .4byte 0x00000000
.global ISFS_DeleteAsync
ISFS_DeleteAsync:
/* 800516A0 0004D4E0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800516A4 0004D4E4 7C 08 02 A6 */ mflr r0
/* 800516A8 0004D4E8 90 01 00 24 */ stw r0, 0x24(r1)
/* 800516AC 0004D4EC 39 61 00 20 */ addi r11, r1, 0x20
/* 800516B0 0004D4F0 4B FB 5C 8D */ bl lbl_8000733C
/* 800516B4 0004D4F4 2C 03 00 00 */ cmpwi r3, 0x0
/* 800516B8 0004D4F8 7C 7B 1B 78 */ mr r27, r3
/* 800516BC 0004D4FC 7C 9C 23 78 */ mr r28, r4
/* 800516C0 0004D500 7C BD 2B 78 */ mr r29, r5
/* 800516C4 0004D504 41 82 00 24 */ beq lbl_800516E8
/* 800516C8 0004D508 80 0D 83 90 */ lwz r0, __fsFd@sda21(r13)
/* 800516CC 0004D50C 2C 00 00 00 */ cmpwi r0, 0x0
/* 800516D0 0004D510 41 80 00 18 */ blt lbl_800516E8
/* 800516D4 0004D514 38 80 00 40 */ li r4, 0x40
/* 800516D8 0004D518 4B FF D1 49 */ bl strnlen
/* 800516DC 0004D51C 28 03 00 40 */ cmplwi r3, 0x40
/* 800516E0 0004D520 7C 7F 1B 78 */ mr r31, r3
/* 800516E4 0004D524 40 82 00 0C */ bne lbl_800516F0
.global lbl_800516E8
lbl_800516E8:
/* 800516E8 0004D528 38 60 FF 9B */ li r3, -0x65
/* 800516EC 0004D52C 48 00 00 6C */ b lbl_80051758
.global lbl_800516F0
lbl_800516F0:
/* 800516F0 0004D530 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 800516F4 0004D534 38 80 01 40 */ li r4, 0x140
/* 800516F8 0004D538 38 A0 00 20 */ li r5, 0x20
/* 800516FC 0004D53C 4B FF EE B5 */ bl iosAllocAligned
/* 80051700 0004D540 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051704 0004D544 7C 7E 1B 78 */ mr r30, r3
/* 80051708 0004D548 40 82 00 0C */ bne lbl_80051714
/* 8005170C 0004D54C 38 60 FF 8A */ li r3, -0x76
/* 80051710 0004D550 48 00 00 48 */ b lbl_80051758
.global lbl_80051714
lbl_80051714:
/* 80051714 0004D554 7F 64 DB 78 */ mr r4, r27
/* 80051718 0004D558 38 BF 00 01 */ addi r5, r31, 0x1
/* 8005171C 0004D55C 4B FB 28 E5 */ bl memcpy
/* 80051720 0004D560 93 9E 01 00 */ stw r28, 0x100(r30)
/* 80051724 0004D564 3D 20 80 05 */ lis r9, _isfsFuncCb@ha
/* 80051728 0004D568 38 00 00 00 */ li r0, 0x0
/* 8005172C 0004D56C 7F C5 F3 78 */ mr r5, r30
/* 80051730 0004D570 93 BE 01 04 */ stw r29, 0x104(r30)
/* 80051734 0004D574 7F CA F3 78 */ mr r10, r30
/* 80051738 0004D578 39 29 0C F0 */ addi r9, r9, _isfsFuncCb@l
/* 8005173C 0004D57C 38 80 00 07 */ li r4, 0x7
/* 80051740 0004D580 90 1E 01 08 */ stw r0, 0x108(r30)
/* 80051744 0004D584 38 C0 00 40 */ li r6, 0x40
/* 80051748 0004D588 38 E0 00 00 */ li r7, 0x0
/* 8005174C 0004D58C 39 00 00 00 */ li r8, 0x0
/* 80051750 0004D590 80 6D 83 90 */ lwz r3, __fsFd@sda21(r13)
/* 80051754 0004D594 4B FF E2 7D */ bl IOS_IoctlAsync
.global lbl_80051758
lbl_80051758:
/* 80051758 0004D598 39 61 00 20 */ addi r11, r1, 0x20
/* 8005175C 0004D59C 4B FB 5C 2D */ bl lbl_80007388
/* 80051760 0004D5A0 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80051764 0004D5A4 7C 08 03 A6 */ mtlr r0
/* 80051768 0004D5A8 38 21 00 20 */ addi r1, r1, 0x20
/* 8005176C 0004D5AC 4E 80 00 20 */ blr
.global ISFS_Rename
ISFS_Rename:
/* 80051770 0004D5B0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80051774 0004D5B4 7C 08 02 A6 */ mflr r0
/* 80051778 0004D5B8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8005177C 0004D5BC 39 61 00 20 */ addi r11, r1, 0x20
/* 80051780 0004D5C0 4B FB 5B BD */ bl lbl_8000733C
/* 80051784 0004D5C4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051788 0004D5C8 7C 7B 1B 78 */ mr r27, r3
/* 8005178C 0004D5CC 7C 9C 23 78 */ mr r28, r4
/* 80051790 0004D5D0 3B A0 00 00 */ li r29, 0x0
/* 80051794 0004D5D4 41 82 00 44 */ beq lbl_800517D8
/* 80051798 0004D5D8 2C 04 00 00 */ cmpwi r4, 0x0
/* 8005179C 0004D5DC 41 82 00 3C */ beq lbl_800517D8
/* 800517A0 0004D5E0 80 0D 83 90 */ lwz r0, __fsFd@sda21(r13)
/* 800517A4 0004D5E4 2C 00 00 00 */ cmpwi r0, 0x0
/* 800517A8 0004D5E8 41 80 00 30 */ blt lbl_800517D8
/* 800517AC 0004D5EC 38 80 00 40 */ li r4, 0x40
/* 800517B0 0004D5F0 4B FF D0 71 */ bl strnlen
/* 800517B4 0004D5F4 28 03 00 40 */ cmplwi r3, 0x40
/* 800517B8 0004D5F8 7C 7E 1B 78 */ mr r30, r3
/* 800517BC 0004D5FC 41 82 00 1C */ beq lbl_800517D8
/* 800517C0 0004D600 7F 83 E3 78 */ mr r3, r28
/* 800517C4 0004D604 38 80 00 40 */ li r4, 0x40
/* 800517C8 0004D608 4B FF D0 59 */ bl strnlen
/* 800517CC 0004D60C 28 03 00 40 */ cmplwi r3, 0x40
/* 800517D0 0004D610 7C 7F 1B 78 */ mr r31, r3
/* 800517D4 0004D614 40 82 00 0C */ bne lbl_800517E0
.global lbl_800517D8
lbl_800517D8:
/* 800517D8 0004D618 3B C0 FF 9B */ li r30, -0x65
/* 800517DC 0004D61C 48 00 00 64 */ b lbl_80051840
.global lbl_800517E0
lbl_800517E0:
/* 800517E0 0004D620 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 800517E4 0004D624 38 80 01 40 */ li r4, 0x140
/* 800517E8 0004D628 38 A0 00 20 */ li r5, 0x20
/* 800517EC 0004D62C 4B FF ED C5 */ bl iosAllocAligned
/* 800517F0 0004D630 2C 03 00 00 */ cmpwi r3, 0x0
/* 800517F4 0004D634 7C 7D 1B 78 */ mr r29, r3
/* 800517F8 0004D638 40 82 00 0C */ bne lbl_80051804
/* 800517FC 0004D63C 3B C0 FF EA */ li r30, -0x16
/* 80051800 0004D640 48 00 00 40 */ b lbl_80051840
.global lbl_80051804
lbl_80051804:
/* 80051804 0004D644 7F 64 DB 78 */ mr r4, r27
/* 80051808 0004D648 38 BE 00 01 */ addi r5, r30, 0x1
/* 8005180C 0004D64C 4B FB 27 F5 */ bl memcpy
/* 80051810 0004D650 7F 84 E3 78 */ mr r4, r28
/* 80051814 0004D654 38 7D 00 40 */ addi r3, r29, 0x40
/* 80051818 0004D658 38 BF 00 01 */ addi r5, r31, 0x1
/* 8005181C 0004D65C 4B FB 27 E5 */ bl memcpy
/* 80051820 0004D660 80 6D 83 90 */ lwz r3, __fsFd@sda21(r13)
/* 80051824 0004D664 7F A5 EB 78 */ mr r5, r29
/* 80051828 0004D668 38 80 00 08 */ li r4, 0x8
/* 8005182C 0004D66C 38 C0 00 80 */ li r6, 0x80
/* 80051830 0004D670 38 E0 00 00 */ li r7, 0x0
/* 80051834 0004D674 39 00 00 00 */ li r8, 0x0
/* 80051838 0004D678 4B FF E2 D9 */ bl IOS_Ioctl
/* 8005183C 0004D67C 7C 7E 1B 78 */ mr r30, r3
.global lbl_80051840
lbl_80051840:
/* 80051840 0004D680 2C 1D 00 00 */ cmpwi r29, 0x0
/* 80051844 0004D684 41 82 00 14 */ beq lbl_80051858
/* 80051848 0004D688 41 82 00 10 */ beq lbl_80051858
/* 8005184C 0004D68C 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80051850 0004D690 7F A4 EB 78 */ mr r4, r29
/* 80051854 0004D694 4B FF ED 6D */ bl iosFree
.global lbl_80051858
lbl_80051858:
/* 80051858 0004D698 39 61 00 20 */ addi r11, r1, 0x20
/* 8005185C 0004D69C 7F C3 F3 78 */ mr r3, r30
/* 80051860 0004D6A0 4B FB 5B 29 */ bl lbl_80007388
/* 80051864 0004D6A4 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80051868 0004D6A8 7C 08 03 A6 */ mtlr r0
/* 8005186C 0004D6AC 38 21 00 20 */ addi r1, r1, 0x20
/* 80051870 0004D6B0 4E 80 00 20 */ blr
/* 80051874 0004D6B4 00 00 00 00 */ .4byte 0x00000000
/* 80051878 0004D6B8 00 00 00 00 */ .4byte 0x00000000
/* 8005187C 0004D6BC 00 00 00 00 */ .4byte 0x00000000
.global ISFS_RenameAsync
ISFS_RenameAsync:
/* 80051880 0004D6C0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80051884 0004D6C4 7C 08 02 A6 */ mflr r0
/* 80051888 0004D6C8 90 01 00 34 */ stw r0, 0x34(r1)
/* 8005188C 0004D6CC 39 61 00 30 */ addi r11, r1, 0x30
/* 80051890 0004D6D0 4B FB 5A A5 */ bl lbl_80007334
/* 80051894 0004D6D4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051898 0004D6D8 7C 79 1B 78 */ mr r25, r3
/* 8005189C 0004D6DC 7C 9A 23 78 */ mr r26, r4
/* 800518A0 0004D6E0 7C BB 2B 78 */ mr r27, r5
/* 800518A4 0004D6E4 7C DC 33 78 */ mr r28, r6
/* 800518A8 0004D6E8 41 82 00 44 */ beq lbl_800518EC
/* 800518AC 0004D6EC 2C 04 00 00 */ cmpwi r4, 0x0
/* 800518B0 0004D6F0 41 82 00 3C */ beq lbl_800518EC
/* 800518B4 0004D6F4 80 0D 83 90 */ lwz r0, __fsFd@sda21(r13)
/* 800518B8 0004D6F8 2C 00 00 00 */ cmpwi r0, 0x0
/* 800518BC 0004D6FC 41 80 00 30 */ blt lbl_800518EC
/* 800518C0 0004D700 38 80 00 40 */ li r4, 0x40
/* 800518C4 0004D704 4B FF CF 5D */ bl strnlen
/* 800518C8 0004D708 28 03 00 40 */ cmplwi r3, 0x40
/* 800518CC 0004D70C 7C 7E 1B 78 */ mr r30, r3
/* 800518D0 0004D710 41 82 00 1C */ beq lbl_800518EC
/* 800518D4 0004D714 7F 43 D3 78 */ mr r3, r26
/* 800518D8 0004D718 38 80 00 40 */ li r4, 0x40
/* 800518DC 0004D71C 4B FF CF 45 */ bl strnlen
/* 800518E0 0004D720 28 03 00 40 */ cmplwi r3, 0x40
/* 800518E4 0004D724 7C 7F 1B 78 */ mr r31, r3
/* 800518E8 0004D728 40 82 00 0C */ bne lbl_800518F4
.global lbl_800518EC
lbl_800518EC:
/* 800518EC 0004D72C 38 60 FF 9B */ li r3, -0x65
/* 800518F0 0004D730 48 00 00 7C */ b lbl_8005196C
.global lbl_800518F4
lbl_800518F4:
/* 800518F4 0004D734 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 800518F8 0004D738 38 80 01 40 */ li r4, 0x140
/* 800518FC 0004D73C 38 A0 00 20 */ li r5, 0x20
/* 80051900 0004D740 4B FF EC B1 */ bl iosAllocAligned
/* 80051904 0004D744 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051908 0004D748 7C 7D 1B 78 */ mr r29, r3
/* 8005190C 0004D74C 40 82 00 0C */ bne lbl_80051918
/* 80051910 0004D750 38 60 FF 8A */ li r3, -0x76
/* 80051914 0004D754 48 00 00 58 */ b lbl_8005196C
.global lbl_80051918
lbl_80051918:
/* 80051918 0004D758 93 63 01 00 */ stw r27, 0x100(r3)
/* 8005191C 0004D75C 38 00 00 00 */ li r0, 0x0
/* 80051920 0004D760 7F 24 CB 78 */ mr r4, r25
/* 80051924 0004D764 38 BE 00 01 */ addi r5, r30, 0x1
/* 80051928 0004D768 93 83 01 04 */ stw r28, 0x104(r3)
/* 8005192C 0004D76C 90 03 01 08 */ stw r0, 0x108(r3)
/* 80051930 0004D770 4B FB 26 D1 */ bl memcpy
/* 80051934 0004D774 7F 44 D3 78 */ mr r4, r26
/* 80051938 0004D778 38 7D 00 40 */ addi r3, r29, 0x40
/* 8005193C 0004D77C 38 BF 00 01 */ addi r5, r31, 0x1
/* 80051940 0004D780 4B FB 26 C1 */ bl memcpy
/* 80051944 0004D784 3D 20 80 05 */ lis r9, _isfsFuncCb@ha
/* 80051948 0004D788 80 6D 83 90 */ lwz r3, __fsFd@sda21(r13)
/* 8005194C 0004D78C 7F A5 EB 78 */ mr r5, r29
/* 80051950 0004D790 7F AA EB 78 */ mr r10, r29
/* 80051954 0004D794 39 29 0C F0 */ addi r9, r9, _isfsFuncCb@l
/* 80051958 0004D798 38 80 00 08 */ li r4, 0x8
/* 8005195C 0004D79C 38 C0 00 80 */ li r6, 0x80
/* 80051960 0004D7A0 38 E0 00 00 */ li r7, 0x0
/* 80051964 0004D7A4 39 00 00 00 */ li r8, 0x0
/* 80051968 0004D7A8 4B FF E0 69 */ bl IOS_IoctlAsync
.global lbl_8005196C
lbl_8005196C:
/* 8005196C 0004D7AC 39 61 00 30 */ addi r11, r1, 0x30
/* 80051970 0004D7B0 4B FB 5A 11 */ bl lbl_80007380
/* 80051974 0004D7B4 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80051978 0004D7B8 7C 08 03 A6 */ mtlr r0
/* 8005197C 0004D7BC 38 21 00 30 */ addi r1, r1, 0x30
/* 80051980 0004D7C0 4E 80 00 20 */ blr
/* 80051984 0004D7C4 00 00 00 00 */ .4byte 0x00000000
/* 80051988 0004D7C8 00 00 00 00 */ .4byte 0x00000000
/* 8005198C 0004D7CC 00 00 00 00 */ .4byte 0x00000000
.global ISFS_GetUsage
ISFS_GetUsage:
/* 80051990 0004D7D0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80051994 0004D7D4 7C 08 02 A6 */ mflr r0
/* 80051998 0004D7D8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8005199C 0004D7DC 39 61 00 20 */ addi r11, r1, 0x20
/* 800519A0 0004D7E0 4B FB 59 99 */ bl lbl_80007338
/* 800519A4 0004D7E4 2C 03 00 00 */ cmpwi r3, 0x0
/* 800519A8 0004D7E8 7C 7E 1B 78 */ mr r30, r3
/* 800519AC 0004D7EC 7C 9A 23 78 */ mr r26, r4
/* 800519B0 0004D7F0 7C BB 2B 78 */ mr r27, r5
/* 800519B4 0004D7F4 3B 80 00 00 */ li r28, 0x0
/* 800519B8 0004D7F8 41 82 00 34 */ beq lbl_800519EC
/* 800519BC 0004D7FC 80 0D 83 90 */ lwz r0, __fsFd@sda21(r13)
/* 800519C0 0004D800 2C 00 00 00 */ cmpwi r0, 0x0
/* 800519C4 0004D804 41 80 00 28 */ blt lbl_800519EC
/* 800519C8 0004D808 2C 04 00 00 */ cmpwi r4, 0x0
/* 800519CC 0004D80C 41 82 00 20 */ beq lbl_800519EC
/* 800519D0 0004D810 2C 05 00 00 */ cmpwi r5, 0x0
/* 800519D4 0004D814 41 82 00 18 */ beq lbl_800519EC
/* 800519D8 0004D818 38 80 00 40 */ li r4, 0x40
/* 800519DC 0004D81C 4B FF CE 45 */ bl strnlen
/* 800519E0 0004D820 28 03 00 40 */ cmplwi r3, 0x40
/* 800519E4 0004D824 7C 7F 1B 78 */ mr r31, r3
/* 800519E8 0004D828 40 82 00 0C */ bne lbl_800519F4
.global lbl_800519EC
lbl_800519EC:
/* 800519EC 0004D82C 3B E0 FF 9B */ li r31, -0x65
/* 800519F0 0004D830 48 00 00 A4 */ b lbl_80051A94
.global lbl_800519F4
lbl_800519F4:
/* 800519F4 0004D834 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 800519F8 0004D838 38 80 01 40 */ li r4, 0x140
/* 800519FC 0004D83C 38 A0 00 20 */ li r5, 0x20
/* 80051A00 0004D840 4B FF EB B1 */ bl iosAllocAligned
/* 80051A04 0004D844 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051A08 0004D848 7C 7C 1B 78 */ mr r28, r3
/* 80051A0C 0004D84C 40 82 00 0C */ bne lbl_80051A18
/* 80051A10 0004D850 3B E0 FF EA */ li r31, -0x16
/* 80051A14 0004D854 48 00 00 80 */ b lbl_80051A94
.global lbl_80051A18
lbl_80051A18:
/* 80051A18 0004D858 38 03 00 37 */ addi r0, r3, 0x37
/* 80051A1C 0004D85C 7F C4 F3 78 */ mr r4, r30
/* 80051A20 0004D860 54 1D 00 34 */ clrrwi r29, r0, 5
/* 80051A24 0004D864 38 BF 00 01 */ addi r5, r31, 0x1
/* 80051A28 0004D868 7F A3 EB 78 */ mr r3, r29
/* 80051A2C 0004D86C 4B FB 25 D5 */ bl memcpy
/* 80051A30 0004D870 93 BC 00 00 */ stw r29, 0x0(r28)
/* 80051A34 0004D874 38 80 00 40 */ li r4, 0x40
/* 80051A38 0004D878 38 7D 00 5F */ addi r3, r29, 0x5f
/* 80051A3C 0004D87C 38 00 00 04 */ li r0, 0x4
/* 80051A40 0004D880 90 9C 00 04 */ stw r4, 0x4(r28)
/* 80051A44 0004D884 54 7E 00 34 */ clrrwi r30, r3, 5
/* 80051A48 0004D888 38 7E 00 23 */ addi r3, r30, 0x23
/* 80051A4C 0004D88C 7F 87 E3 78 */ mr r7, r28
/* 80051A50 0004D890 93 DC 00 08 */ stw r30, 0x8(r28)
/* 80051A54 0004D894 54 7D 00 34 */ clrrwi r29, r3, 5
/* 80051A58 0004D898 38 80 00 0C */ li r4, 0xc
/* 80051A5C 0004D89C 38 A0 00 01 */ li r5, 0x1
/* 80051A60 0004D8A0 90 1C 00 0C */ stw r0, 0xc(r28)
/* 80051A64 0004D8A4 38 C0 00 02 */ li r6, 0x2
/* 80051A68 0004D8A8 93 BC 00 10 */ stw r29, 0x10(r28)
/* 80051A6C 0004D8AC 90 1C 00 14 */ stw r0, 0x14(r28)
/* 80051A70 0004D8B0 80 6D 83 90 */ lwz r3, __fsFd@sda21(r13)
/* 80051A74 0004D8B4 4B FF E3 FD */ bl IOS_Ioctlv
/* 80051A78 0004D8B8 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051A7C 0004D8BC 7C 7F 1B 78 */ mr r31, r3
/* 80051A80 0004D8C0 40 82 00 14 */ bne lbl_80051A94
/* 80051A84 0004D8C4 80 1E 00 00 */ lwz r0, 0x0(r30)
/* 80051A88 0004D8C8 90 1A 00 00 */ stw r0, 0x0(r26)
/* 80051A8C 0004D8CC 80 1D 00 00 */ lwz r0, 0x0(r29)
/* 80051A90 0004D8D0 90 1B 00 00 */ stw r0, 0x0(r27)
.global lbl_80051A94
lbl_80051A94:
/* 80051A94 0004D8D4 2C 1C 00 00 */ cmpwi r28, 0x0
/* 80051A98 0004D8D8 41 82 00 14 */ beq lbl_80051AAC
/* 80051A9C 0004D8DC 41 82 00 10 */ beq lbl_80051AAC
/* 80051AA0 0004D8E0 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80051AA4 0004D8E4 7F 84 E3 78 */ mr r4, r28
/* 80051AA8 0004D8E8 4B FF EB 19 */ bl iosFree
.global lbl_80051AAC
lbl_80051AAC:
/* 80051AAC 0004D8EC 39 61 00 20 */ addi r11, r1, 0x20
/* 80051AB0 0004D8F0 7F E3 FB 78 */ mr r3, r31
/* 80051AB4 0004D8F4 4B FB 58 D1 */ bl lbl_80007384
/* 80051AB8 0004D8F8 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80051ABC 0004D8FC 7C 08 03 A6 */ mtlr r0
/* 80051AC0 0004D900 38 21 00 20 */ addi r1, r1, 0x20
/* 80051AC4 0004D904 4E 80 00 20 */ blr
/* 80051AC8 0004D908 00 00 00 00 */ .4byte 0x00000000
/* 80051ACC 0004D90C 00 00 00 00 */ .4byte 0x00000000
.global ISFS_CreateFile
ISFS_CreateFile:
/* 80051AD0 0004D910 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80051AD4 0004D914 7C 08 02 A6 */ mflr r0
/* 80051AD8 0004D918 90 01 00 34 */ stw r0, 0x34(r1)
/* 80051ADC 0004D91C 39 61 00 30 */ addi r11, r1, 0x30
/* 80051AE0 0004D920 4B FB 58 55 */ bl lbl_80007334
/* 80051AE4 0004D924 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051AE8 0004D928 7C 79 1B 78 */ mr r25, r3
/* 80051AEC 0004D92C 7C 9A 23 78 */ mr r26, r4
/* 80051AF0 0004D930 7C BB 2B 78 */ mr r27, r5
/* 80051AF4 0004D934 7C DC 33 78 */ mr r28, r6
/* 80051AF8 0004D938 7C FD 3B 78 */ mr r29, r7
/* 80051AFC 0004D93C 3B C0 00 00 */ li r30, 0x0
/* 80051B00 0004D940 41 82 00 24 */ beq lbl_80051B24
/* 80051B04 0004D944 80 0D 83 90 */ lwz r0, __fsFd@sda21(r13)
/* 80051B08 0004D948 2C 00 00 00 */ cmpwi r0, 0x0
/* 80051B0C 0004D94C 41 80 00 18 */ blt lbl_80051B24
/* 80051B10 0004D950 38 80 00 40 */ li r4, 0x40
/* 80051B14 0004D954 4B FF CD 0D */ bl strnlen
/* 80051B18 0004D958 28 03 00 40 */ cmplwi r3, 0x40
/* 80051B1C 0004D95C 7C 7F 1B 78 */ mr r31, r3
/* 80051B20 0004D960 40 82 00 0C */ bne lbl_80051B2C
.global lbl_80051B24
lbl_80051B24:
/* 80051B24 0004D964 3B E0 FF 9B */ li r31, -0x65
/* 80051B28 0004D968 48 00 00 68 */ b lbl_80051B90
.global lbl_80051B2C
lbl_80051B2C:
/* 80051B2C 0004D96C 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80051B30 0004D970 38 80 01 40 */ li r4, 0x140
/* 80051B34 0004D974 38 A0 00 20 */ li r5, 0x20
/* 80051B38 0004D978 4B FF EA 79 */ bl iosAllocAligned
/* 80051B3C 0004D97C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051B40 0004D980 7C 7E 1B 78 */ mr r30, r3
/* 80051B44 0004D984 40 82 00 0C */ bne lbl_80051B50
/* 80051B48 0004D988 3B E0 FF EA */ li r31, -0x16
/* 80051B4C 0004D98C 48 00 00 44 */ b lbl_80051B90
.global lbl_80051B50
lbl_80051B50:
/* 80051B50 0004D990 7F 24 CB 78 */ mr r4, r25
/* 80051B54 0004D994 38 BF 00 01 */ addi r5, r31, 0x1
/* 80051B58 0004D998 38 63 00 06 */ addi r3, r3, 0x6
/* 80051B5C 0004D99C 4B FB 24 A5 */ bl memcpy
/* 80051B60 0004D9A0 9B 5E 00 49 */ stb r26, 0x49(r30)
/* 80051B64 0004D9A4 7F C5 F3 78 */ mr r5, r30
/* 80051B68 0004D9A8 38 80 00 09 */ li r4, 0x9
/* 80051B6C 0004D9AC 38 C0 00 4C */ li r6, 0x4c
/* 80051B70 0004D9B0 9B 7E 00 46 */ stb r27, 0x46(r30)
/* 80051B74 0004D9B4 38 E0 00 00 */ li r7, 0x0
/* 80051B78 0004D9B8 39 00 00 00 */ li r8, 0x0
/* 80051B7C 0004D9BC 9B 9E 00 47 */ stb r28, 0x47(r30)
/* 80051B80 0004D9C0 9B BE 00 48 */ stb r29, 0x48(r30)
/* 80051B84 0004D9C4 80 6D 83 90 */ lwz r3, __fsFd@sda21(r13)
/* 80051B88 0004D9C8 4B FF DF 89 */ bl IOS_Ioctl
/* 80051B8C 0004D9CC 7C 7F 1B 78 */ mr r31, r3
.global lbl_80051B90
lbl_80051B90:
/* 80051B90 0004D9D0 2C 1E 00 00 */ cmpwi r30, 0x0
/* 80051B94 0004D9D4 41 82 00 14 */ beq lbl_80051BA8
/* 80051B98 0004D9D8 41 82 00 10 */ beq lbl_80051BA8
/* 80051B9C 0004D9DC 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80051BA0 0004D9E0 7F C4 F3 78 */ mr r4, r30
/* 80051BA4 0004D9E4 4B FF EA 1D */ bl iosFree
.global lbl_80051BA8
lbl_80051BA8:
/* 80051BA8 0004D9E8 39 61 00 30 */ addi r11, r1, 0x30
/* 80051BAC 0004D9EC 7F E3 FB 78 */ mr r3, r31
/* 80051BB0 0004D9F0 4B FB 57 D1 */ bl lbl_80007380
/* 80051BB4 0004D9F4 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80051BB8 0004D9F8 7C 08 03 A6 */ mtlr r0
/* 80051BBC 0004D9FC 38 21 00 30 */ addi r1, r1, 0x30
/* 80051BC0 0004DA00 4E 80 00 20 */ blr
/* 80051BC4 0004DA04 00 00 00 00 */ .4byte 0x00000000
/* 80051BC8 0004DA08 00 00 00 00 */ .4byte 0x00000000
/* 80051BCC 0004DA0C 00 00 00 00 */ .4byte 0x00000000
.global ISFS_CreateFileAsync
ISFS_CreateFileAsync:
/* 80051BD0 0004DA10 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 80051BD4 0004DA14 7C 08 02 A6 */ mflr r0
/* 80051BD8 0004DA18 90 01 00 34 */ stw r0, 0x34(r1)
/* 80051BDC 0004DA1C 39 61 00 30 */ addi r11, r1, 0x30
/* 80051BE0 0004DA20 4B FB 57 4D */ bl lbl_8000732C
/* 80051BE4 0004DA24 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051BE8 0004DA28 7C 77 1B 78 */ mr r23, r3
/* 80051BEC 0004DA2C 7C 98 23 78 */ mr r24, r4
/* 80051BF0 0004DA30 7C B9 2B 78 */ mr r25, r5
/* 80051BF4 0004DA34 7C DA 33 78 */ mr r26, r6
/* 80051BF8 0004DA38 7C FB 3B 78 */ mr r27, r7
/* 80051BFC 0004DA3C 7D 1C 43 78 */ mr r28, r8
/* 80051C00 0004DA40 7D 3D 4B 78 */ mr r29, r9
/* 80051C04 0004DA44 41 82 00 24 */ beq lbl_80051C28
/* 80051C08 0004DA48 80 0D 83 90 */ lwz r0, __fsFd@sda21(r13)
/* 80051C0C 0004DA4C 2C 00 00 00 */ cmpwi r0, 0x0
/* 80051C10 0004DA50 41 80 00 18 */ blt lbl_80051C28
/* 80051C14 0004DA54 38 80 00 40 */ li r4, 0x40
/* 80051C18 0004DA58 4B FF CC 09 */ bl strnlen
/* 80051C1C 0004DA5C 28 03 00 40 */ cmplwi r3, 0x40
/* 80051C20 0004DA60 7C 7F 1B 78 */ mr r31, r3
/* 80051C24 0004DA64 40 82 00 0C */ bne lbl_80051C30
.global lbl_80051C28
lbl_80051C28:
/* 80051C28 0004DA68 38 60 FF 9B */ li r3, -0x65
/* 80051C2C 0004DA6C 48 00 00 80 */ b lbl_80051CAC
.global lbl_80051C30
lbl_80051C30:
/* 80051C30 0004DA70 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80051C34 0004DA74 38 80 01 40 */ li r4, 0x140
/* 80051C38 0004DA78 38 A0 00 20 */ li r5, 0x20
/* 80051C3C 0004DA7C 4B FF E9 75 */ bl iosAllocAligned
/* 80051C40 0004DA80 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051C44 0004DA84 7C 7E 1B 78 */ mr r30, r3
/* 80051C48 0004DA88 40 82 00 0C */ bne lbl_80051C54
/* 80051C4C 0004DA8C 38 60 FF 8A */ li r3, -0x76
/* 80051C50 0004DA90 48 00 00 5C */ b lbl_80051CAC
.global lbl_80051C54
lbl_80051C54:
/* 80051C54 0004DA94 93 83 01 00 */ stw r28, 0x100(r3)
/* 80051C58 0004DA98 38 00 00 00 */ li r0, 0x0
/* 80051C5C 0004DA9C 7E E4 BB 78 */ mr r4, r23
/* 80051C60 0004DAA0 38 BF 00 01 */ addi r5, r31, 0x1
/* 80051C64 0004DAA4 93 A3 01 04 */ stw r29, 0x104(r3)
/* 80051C68 0004DAA8 90 03 01 08 */ stw r0, 0x108(r3)
/* 80051C6C 0004DAAC 38 63 00 06 */ addi r3, r3, 0x6
/* 80051C70 0004DAB0 4B FB 23 91 */ bl memcpy
/* 80051C74 0004DAB4 9B 1E 00 49 */ stb r24, 0x49(r30)
/* 80051C78 0004DAB8 3D 20 80 05 */ lis r9, _isfsFuncCb@ha
/* 80051C7C 0004DABC 7F C5 F3 78 */ mr r5, r30
/* 80051C80 0004DAC0 7F CA F3 78 */ mr r10, r30
/* 80051C84 0004DAC4 9B 3E 00 46 */ stb r25, 0x46(r30)
/* 80051C88 0004DAC8 39 29 0C F0 */ addi r9, r9, _isfsFuncCb@l
/* 80051C8C 0004DACC 38 80 00 09 */ li r4, 0x9
/* 80051C90 0004DAD0 38 C0 00 4C */ li r6, 0x4c
/* 80051C94 0004DAD4 9B 5E 00 47 */ stb r26, 0x47(r30)
/* 80051C98 0004DAD8 38 E0 00 00 */ li r7, 0x0
/* 80051C9C 0004DADC 39 00 00 00 */ li r8, 0x0
/* 80051CA0 0004DAE0 9B 7E 00 48 */ stb r27, 0x48(r30)
/* 80051CA4 0004DAE4 80 6D 83 90 */ lwz r3, __fsFd@sda21(r13)
/* 80051CA8 0004DAE8 4B FF DD 29 */ bl IOS_IoctlAsync
.global lbl_80051CAC
lbl_80051CAC:
/* 80051CAC 0004DAEC 39 61 00 30 */ addi r11, r1, 0x30
/* 80051CB0 0004DAF0 4B FB 56 C9 */ bl lbl_80007378
/* 80051CB4 0004DAF4 80 01 00 34 */ lwz r0, 0x34(r1)
/* 80051CB8 0004DAF8 7C 08 03 A6 */ mtlr r0
/* 80051CBC 0004DAFC 38 21 00 30 */ addi r1, r1, 0x30
/* 80051CC0 0004DB00 4E 80 00 20 */ blr
/* 80051CC4 0004DB04 00 00 00 00 */ .4byte 0x00000000
/* 80051CC8 0004DB08 00 00 00 00 */ .4byte 0x00000000
/* 80051CCC 0004DB0C 00 00 00 00 */ .4byte 0x00000000
.global ISFS_Open
ISFS_Open:
/* 80051CD0 0004DB10 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80051CD4 0004DB14 7C 08 02 A6 */ mflr r0
/* 80051CD8 0004DB18 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051CDC 0004DB1C 90 01 00 24 */ stw r0, 0x24(r1)
/* 80051CE0 0004DB20 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80051CE4 0004DB24 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80051CE8 0004DB28 3B C0 00 00 */ li r30, 0x0
/* 80051CEC 0004DB2C 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80051CF0 0004DB30 7C 9D 23 78 */ mr r29, r4
/* 80051CF4 0004DB34 93 81 00 10 */ stw r28, 0x10(r1)
/* 80051CF8 0004DB38 7C 7C 1B 78 */ mr r28, r3
/* 80051CFC 0004DB3C 41 82 00 18 */ beq lbl_80051D14
/* 80051D00 0004DB40 38 80 00 40 */ li r4, 0x40
/* 80051D04 0004DB44 4B FF CB 1D */ bl strnlen
/* 80051D08 0004DB48 28 03 00 40 */ cmplwi r3, 0x40
/* 80051D0C 0004DB4C 7C 7F 1B 78 */ mr r31, r3
/* 80051D10 0004DB50 40 82 00 0C */ bne lbl_80051D1C
.global lbl_80051D14
lbl_80051D14:
/* 80051D14 0004DB54 3B E0 FF 9B */ li r31, -0x65
/* 80051D18 0004DB58 48 00 00 44 */ b lbl_80051D5C
.global lbl_80051D1C
lbl_80051D1C:
/* 80051D1C 0004DB5C 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80051D20 0004DB60 38 80 01 40 */ li r4, 0x140
/* 80051D24 0004DB64 38 A0 00 20 */ li r5, 0x20
/* 80051D28 0004DB68 4B FF E8 89 */ bl iosAllocAligned
/* 80051D2C 0004DB6C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051D30 0004DB70 7C 7E 1B 78 */ mr r30, r3
/* 80051D34 0004DB74 40 82 00 0C */ bne lbl_80051D40
/* 80051D38 0004DB78 3B E0 FF EA */ li r31, -0x16
/* 80051D3C 0004DB7C 48 00 00 20 */ b lbl_80051D5C
.global lbl_80051D40
lbl_80051D40:
/* 80051D40 0004DB80 7F 84 E3 78 */ mr r4, r28
/* 80051D44 0004DB84 38 BF 00 01 */ addi r5, r31, 0x1
/* 80051D48 0004DB88 4B FB 22 B9 */ bl memcpy
/* 80051D4C 0004DB8C 7F C3 F3 78 */ mr r3, r30
/* 80051D50 0004DB90 7F A4 EB 78 */ mr r4, r29
/* 80051D54 0004DB94 4B FF D3 ED */ bl IOS_Open
/* 80051D58 0004DB98 7C 7F 1B 78 */ mr r31, r3
.global lbl_80051D5C
lbl_80051D5C:
/* 80051D5C 0004DB9C 2C 1E 00 00 */ cmpwi r30, 0x0
/* 80051D60 0004DBA0 41 82 00 14 */ beq lbl_80051D74
/* 80051D64 0004DBA4 41 82 00 10 */ beq lbl_80051D74
/* 80051D68 0004DBA8 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80051D6C 0004DBAC 7F C4 F3 78 */ mr r4, r30
/* 80051D70 0004DBB0 4B FF E8 51 */ bl iosFree
.global lbl_80051D74
lbl_80051D74:
/* 80051D74 0004DBB4 7F E3 FB 78 */ mr r3, r31
/* 80051D78 0004DBB8 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80051D7C 0004DBBC 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80051D80 0004DBC0 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80051D84 0004DBC4 83 81 00 10 */ lwz r28, 0x10(r1)
/* 80051D88 0004DBC8 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80051D8C 0004DBCC 7C 08 03 A6 */ mtlr r0
/* 80051D90 0004DBD0 38 21 00 20 */ addi r1, r1, 0x20
/* 80051D94 0004DBD4 4E 80 00 20 */ blr
/* 80051D98 0004DBD8 00 00 00 00 */ .4byte 0x00000000
/* 80051D9C 0004DBDC 00 00 00 00 */ .4byte 0x00000000
.global ISFS_OpenAsync
ISFS_OpenAsync:
/* 80051DA0 0004DBE0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80051DA4 0004DBE4 7C 08 02 A6 */ mflr r0
/* 80051DA8 0004DBE8 90 01 00 24 */ stw r0, 0x24(r1)
/* 80051DAC 0004DBEC 39 61 00 20 */ addi r11, r1, 0x20
/* 80051DB0 0004DBF0 4B FB 55 89 */ bl lbl_80007338
/* 80051DB4 0004DBF4 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051DB8 0004DBF8 7C 7A 1B 78 */ mr r26, r3
/* 80051DBC 0004DBFC 7C 9B 23 78 */ mr r27, r4
/* 80051DC0 0004DC00 7C BC 2B 78 */ mr r28, r5
/* 80051DC4 0004DC04 7C DD 33 78 */ mr r29, r6
/* 80051DC8 0004DC08 41 82 00 18 */ beq lbl_80051DE0
/* 80051DCC 0004DC0C 38 80 00 40 */ li r4, 0x40
/* 80051DD0 0004DC10 4B FF CA 51 */ bl strnlen
/* 80051DD4 0004DC14 28 03 00 40 */ cmplwi r3, 0x40
/* 80051DD8 0004DC18 7C 7F 1B 78 */ mr r31, r3
/* 80051DDC 0004DC1C 40 82 00 0C */ bne lbl_80051DE8
.global lbl_80051DE0
lbl_80051DE0:
/* 80051DE0 0004DC20 38 60 FF 9B */ li r3, -0x65
/* 80051DE4 0004DC24 48 00 00 5C */ b lbl_80051E40
.global lbl_80051DE8
lbl_80051DE8:
/* 80051DE8 0004DC28 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80051DEC 0004DC2C 38 80 01 40 */ li r4, 0x140
/* 80051DF0 0004DC30 38 A0 00 20 */ li r5, 0x20
/* 80051DF4 0004DC34 4B FF E7 BD */ bl iosAllocAligned
/* 80051DF8 0004DC38 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051DFC 0004DC3C 7C 7E 1B 78 */ mr r30, r3
/* 80051E00 0004DC40 40 82 00 0C */ bne lbl_80051E0C
/* 80051E04 0004DC44 38 60 FF 8A */ li r3, -0x76
/* 80051E08 0004DC48 48 00 00 38 */ b lbl_80051E40
.global lbl_80051E0C
lbl_80051E0C:
/* 80051E0C 0004DC4C 93 83 01 00 */ stw r28, 0x100(r3)
/* 80051E10 0004DC50 38 00 00 00 */ li r0, 0x0
/* 80051E14 0004DC54 7F 44 D3 78 */ mr r4, r26
/* 80051E18 0004DC58 38 BF 00 01 */ addi r5, r31, 0x1
/* 80051E1C 0004DC5C 93 A3 01 04 */ stw r29, 0x104(r3)
/* 80051E20 0004DC60 90 03 01 08 */ stw r0, 0x108(r3)
/* 80051E24 0004DC64 4B FB 21 DD */ bl memcpy
/* 80051E28 0004DC68 3C A0 80 05 */ lis r5, _isfsFuncCb@ha
/* 80051E2C 0004DC6C 7F C3 F3 78 */ mr r3, r30
/* 80051E30 0004DC70 7F 64 DB 78 */ mr r4, r27
/* 80051E34 0004DC74 7F C6 F3 78 */ mr r6, r30
/* 80051E38 0004DC78 38 A5 0C F0 */ addi r5, r5, _isfsFuncCb@l
/* 80051E3C 0004DC7C 4B FF D1 E5 */ bl IOS_OpenAsync
.global lbl_80051E40
lbl_80051E40:
/* 80051E40 0004DC80 39 61 00 20 */ addi r11, r1, 0x20
/* 80051E44 0004DC84 4B FB 55 41 */ bl lbl_80007384
/* 80051E48 0004DC88 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80051E4C 0004DC8C 7C 08 03 A6 */ mtlr r0
/* 80051E50 0004DC90 38 21 00 20 */ addi r1, r1, 0x20
/* 80051E54 0004DC94 4E 80 00 20 */ blr
/* 80051E58 0004DC98 00 00 00 00 */ .4byte 0x00000000
/* 80051E5C 0004DC9C 00 00 00 00 */ .4byte 0x00000000
.global ISFS_GetFileStats
ISFS_GetFileStats:
/* 80051E60 0004DCA0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80051E64 0004DCA4 7C 08 02 A6 */ mflr r0
/* 80051E68 0004DCA8 2C 04 00 00 */ cmpwi r4, 0x0
/* 80051E6C 0004DCAC 90 01 00 24 */ stw r0, 0x24(r1)
/* 80051E70 0004DCB0 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80051E74 0004DCB4 7C 7F 1B 78 */ mr r31, r3
/* 80051E78 0004DCB8 93 C1 00 18 */ stw r30, 0x18(r1)
/* 80051E7C 0004DCBC 3B C0 00 00 */ li r30, 0x0
/* 80051E80 0004DCC0 93 A1 00 14 */ stw r29, 0x14(r1)
/* 80051E84 0004DCC4 7C 9D 23 78 */ mr r29, r4
/* 80051E88 0004DCC8 41 82 00 0C */ beq lbl_80051E94
/* 80051E8C 0004DCCC 54 80 06 FF */ clrlwi. r0, r4, 27
/* 80051E90 0004DCD0 41 82 00 0C */ beq lbl_80051E9C
.global lbl_80051E94
lbl_80051E94:
/* 80051E94 0004DCD4 3B E0 FF 9B */ li r31, -0x65
/* 80051E98 0004DCD8 48 00 00 60 */ b lbl_80051EF8
.global lbl_80051E9C
lbl_80051E9C:
/* 80051E9C 0004DCDC 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80051EA0 0004DCE0 38 80 01 40 */ li r4, 0x140
/* 80051EA4 0004DCE4 38 A0 00 20 */ li r5, 0x20
/* 80051EA8 0004DCE8 4B FF E7 09 */ bl iosAllocAligned
/* 80051EAC 0004DCEC 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051EB0 0004DCF0 7C 7E 1B 78 */ mr r30, r3
/* 80051EB4 0004DCF4 40 82 00 0C */ bne lbl_80051EC0
/* 80051EB8 0004DCF8 3B E0 FF EA */ li r31, -0x16
/* 80051EBC 0004DCFC 48 00 00 3C */ b lbl_80051EF8
.global lbl_80051EC0
lbl_80051EC0:
/* 80051EC0 0004DD00 7F E3 FB 78 */ mr r3, r31
/* 80051EC4 0004DD04 7F C7 F3 78 */ mr r7, r30
/* 80051EC8 0004DD08 38 80 00 0B */ li r4, 0xb
/* 80051ECC 0004DD0C 38 A0 00 00 */ li r5, 0x0
/* 80051ED0 0004DD10 38 C0 00 00 */ li r6, 0x0
/* 80051ED4 0004DD14 39 00 00 08 */ li r8, 0x8
/* 80051ED8 0004DD18 4B FF DC 39 */ bl IOS_Ioctl
/* 80051EDC 0004DD1C 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051EE0 0004DD20 7C 7F 1B 78 */ mr r31, r3
/* 80051EE4 0004DD24 40 82 00 14 */ bne lbl_80051EF8
/* 80051EE8 0004DD28 7F A3 EB 78 */ mr r3, r29
/* 80051EEC 0004DD2C 7F C4 F3 78 */ mr r4, r30
/* 80051EF0 0004DD30 38 A0 00 08 */ li r5, 0x8
/* 80051EF4 0004DD34 4B FB 21 0D */ bl memcpy
.global lbl_80051EF8
lbl_80051EF8:
/* 80051EF8 0004DD38 2C 1E 00 00 */ cmpwi r30, 0x0
/* 80051EFC 0004DD3C 41 82 00 14 */ beq lbl_80051F10
/* 80051F00 0004DD40 41 82 00 10 */ beq lbl_80051F10
/* 80051F04 0004DD44 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80051F08 0004DD48 7F C4 F3 78 */ mr r4, r30
/* 80051F0C 0004DD4C 4B FF E6 B5 */ bl iosFree
.global lbl_80051F10
lbl_80051F10:
/* 80051F10 0004DD50 7F E3 FB 78 */ mr r3, r31
/* 80051F14 0004DD54 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80051F18 0004DD58 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80051F1C 0004DD5C 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80051F20 0004DD60 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80051F24 0004DD64 7C 08 03 A6 */ mtlr r0
/* 80051F28 0004DD68 38 21 00 20 */ addi r1, r1, 0x20
/* 80051F2C 0004DD6C 4E 80 00 20 */ blr
.global ISFS_Seek
ISFS_Seek:
/* 80051F30 0004DD70 4B FF D9 B0 */ b IOS_Seek
/* 80051F34 0004DD74 00 00 00 00 */ .4byte 0x00000000
/* 80051F38 0004DD78 00 00 00 00 */ .4byte 0x00000000
/* 80051F3C 0004DD7C 00 00 00 00 */ .4byte 0x00000000
.global ISFS_SeekAsync
ISFS_SeekAsync:
/* 80051F40 0004DD80 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80051F44 0004DD84 7C 08 02 A6 */ mflr r0
/* 80051F48 0004DD88 90 01 00 24 */ stw r0, 0x24(r1)
/* 80051F4C 0004DD8C 39 61 00 20 */ addi r11, r1, 0x20
/* 80051F50 0004DD90 4B FB 53 ED */ bl lbl_8000733C
/* 80051F54 0004DD94 7C 7B 1B 78 */ mr r27, r3
/* 80051F58 0004DD98 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80051F5C 0004DD9C 7C 9C 23 78 */ mr r28, r4
/* 80051F60 0004DDA0 7C BD 2B 78 */ mr r29, r5
/* 80051F64 0004DDA4 7C DE 33 78 */ mr r30, r6
/* 80051F68 0004DDA8 7C FF 3B 78 */ mr r31, r7
/* 80051F6C 0004DDAC 38 80 01 40 */ li r4, 0x140
/* 80051F70 0004DDB0 38 A0 00 20 */ li r5, 0x20
/* 80051F74 0004DDB4 4B FF E6 3D */ bl iosAllocAligned
/* 80051F78 0004DDB8 2C 03 00 00 */ cmpwi r3, 0x0
/* 80051F7C 0004DDBC 40 82 00 0C */ bne lbl_80051F88
/* 80051F80 0004DDC0 38 60 FF 8A */ li r3, -0x76
/* 80051F84 0004DDC4 48 00 00 30 */ b lbl_80051FB4
.global lbl_80051F88
lbl_80051F88:
/* 80051F88 0004DDC8 93 C3 01 00 */ stw r30, 0x100(r3)
/* 80051F8C 0004DDCC 3C C0 80 05 */ lis r6, _isfsFuncCb@ha
/* 80051F90 0004DDD0 38 00 00 00 */ li r0, 0x0
/* 80051F94 0004DDD4 7F 84 E3 78 */ mr r4, r28
/* 80051F98 0004DDD8 93 E3 01 04 */ stw r31, 0x104(r3)
/* 80051F9C 0004DDDC 7F A5 EB 78 */ mr r5, r29
/* 80051FA0 0004DDE0 7C 67 1B 78 */ mr r7, r3
/* 80051FA4 0004DDE4 38 C6 0C F0 */ addi r6, r6, _isfsFuncCb@l
/* 80051FA8 0004DDE8 90 03 01 08 */ stw r0, 0x108(r3)
/* 80051FAC 0004DDEC 7F 63 DB 78 */ mr r3, r27
/* 80051FB0 0004DDF0 4B FF D8 51 */ bl IOS_SeekAsync
.global lbl_80051FB4
lbl_80051FB4:
/* 80051FB4 0004DDF4 39 61 00 20 */ addi r11, r1, 0x20
/* 80051FB8 0004DDF8 4B FB 53 D1 */ bl lbl_80007388
/* 80051FBC 0004DDFC 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80051FC0 0004DE00 7C 08 03 A6 */ mtlr r0
/* 80051FC4 0004DE04 38 21 00 20 */ addi r1, r1, 0x20
/* 80051FC8 0004DE08 4E 80 00 20 */ blr
/* 80051FCC 0004DE0C 00 00 00 00 */ .4byte 0x00000000
.global ISFS_Read
ISFS_Read:
/* 80051FD0 0004DE10 2C 04 00 00 */ cmpwi r4, 0x0
/* 80051FD4 0004DE14 41 82 00 0C */ beq lbl_80051FE0
/* 80051FD8 0004DE18 54 80 06 FF */ clrlwi. r0, r4, 27
/* 80051FDC 0004DE1C 41 82 00 0C */ beq lbl_80051FE8
.global lbl_80051FE0
lbl_80051FE0:
/* 80051FE0 0004DE20 38 60 FF 9B */ li r3, -0x65
/* 80051FE4 0004DE24 4E 80 00 20 */ blr
.global lbl_80051FE8
lbl_80051FE8:
/* 80051FE8 0004DE28 4B FF D4 F8 */ b IOS_Read
/* 80051FEC 0004DE2C 4E 80 00 20 */ blr
.global ISFS_ReadAsync
ISFS_ReadAsync:
/* 80051FF0 0004DE30 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80051FF4 0004DE34 7C 08 02 A6 */ mflr r0
/* 80051FF8 0004DE38 90 01 00 24 */ stw r0, 0x24(r1)
/* 80051FFC 0004DE3C 39 61 00 20 */ addi r11, r1, 0x20
/* 80052000 0004DE40 4B FB 53 3D */ bl lbl_8000733C
/* 80052004 0004DE44 2C 04 00 00 */ cmpwi r4, 0x0
/* 80052008 0004DE48 7C 7B 1B 78 */ mr r27, r3
/* 8005200C 0004DE4C 7C 9C 23 78 */ mr r28, r4
/* 80052010 0004DE50 7C BD 2B 78 */ mr r29, r5
/* 80052014 0004DE54 7C DE 33 78 */ mr r30, r6
/* 80052018 0004DE58 7C FF 3B 78 */ mr r31, r7
/* 8005201C 0004DE5C 41 82 00 0C */ beq lbl_80052028
/* 80052020 0004DE60 54 80 06 FF */ clrlwi. r0, r4, 27
/* 80052024 0004DE64 41 82 00 0C */ beq lbl_80052030
.global lbl_80052028
lbl_80052028:
/* 80052028 0004DE68 38 60 FF 9B */ li r3, -0x65
/* 8005202C 0004DE6C 48 00 00 50 */ b lbl_8005207C
.global lbl_80052030
lbl_80052030:
/* 80052030 0004DE70 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80052034 0004DE74 38 80 01 40 */ li r4, 0x140
/* 80052038 0004DE78 38 A0 00 20 */ li r5, 0x20
/* 8005203C 0004DE7C 4B FF E5 75 */ bl iosAllocAligned
/* 80052040 0004DE80 2C 03 00 00 */ cmpwi r3, 0x0
/* 80052044 0004DE84 40 82 00 0C */ bne lbl_80052050
/* 80052048 0004DE88 38 60 FF 8A */ li r3, -0x76
/* 8005204C 0004DE8C 48 00 00 30 */ b lbl_8005207C
.global lbl_80052050
lbl_80052050:
/* 80052050 0004DE90 93 C3 01 00 */ stw r30, 0x100(r3)
/* 80052054 0004DE94 3C C0 80 05 */ lis r6, _isfsFuncCb@ha
/* 80052058 0004DE98 38 00 00 00 */ li r0, 0x0
/* 8005205C 0004DE9C 7F 84 E3 78 */ mr r4, r28
/* 80052060 0004DEA0 93 E3 01 04 */ stw r31, 0x104(r3)
/* 80052064 0004DEA4 7F A5 EB 78 */ mr r5, r29
/* 80052068 0004DEA8 7C 67 1B 78 */ mr r7, r3
/* 8005206C 0004DEAC 38 C6 0C F0 */ addi r6, r6, _isfsFuncCb@l
/* 80052070 0004DEB0 90 03 01 08 */ stw r0, 0x108(r3)
/* 80052074 0004DEB4 7F 63 DB 78 */ mr r3, r27
/* 80052078 0004DEB8 4B FF D3 69 */ bl IOS_ReadAsync
.global lbl_8005207C
lbl_8005207C:
/* 8005207C 0004DEBC 39 61 00 20 */ addi r11, r1, 0x20
/* 80052080 0004DEC0 4B FB 53 09 */ bl lbl_80007388
/* 80052084 0004DEC4 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80052088 0004DEC8 7C 08 03 A6 */ mtlr r0
/* 8005208C 0004DECC 38 21 00 20 */ addi r1, r1, 0x20
/* 80052090 0004DED0 4E 80 00 20 */ blr
/* 80052094 0004DED4 00 00 00 00 */ .4byte 0x00000000
/* 80052098 0004DED8 00 00 00 00 */ .4byte 0x00000000
/* 8005209C 0004DEDC 00 00 00 00 */ .4byte 0x00000000
.global ISFS_Write
ISFS_Write:
/* 800520A0 0004DEE0 2C 04 00 00 */ cmpwi r4, 0x0
/* 800520A4 0004DEE4 41 82 00 0C */ beq lbl_800520B0
/* 800520A8 0004DEE8 54 80 06 FF */ clrlwi. r0, r4, 27
/* 800520AC 0004DEEC 41 82 00 0C */ beq lbl_800520B8
.global lbl_800520B0
lbl_800520B0:
/* 800520B0 0004DEF0 38 60 FF 9B */ li r3, -0x65
/* 800520B4 0004DEF4 4E 80 00 20 */ blr
.global lbl_800520B8
lbl_800520B8:
/* 800520B8 0004DEF8 4B FF D6 38 */ b IOS_Write
/* 800520BC 0004DEFC 4E 80 00 20 */ blr
.global ISFS_WriteAsync
ISFS_WriteAsync:
/* 800520C0 0004DF00 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800520C4 0004DF04 7C 08 02 A6 */ mflr r0
/* 800520C8 0004DF08 90 01 00 24 */ stw r0, 0x24(r1)
/* 800520CC 0004DF0C 39 61 00 20 */ addi r11, r1, 0x20
/* 800520D0 0004DF10 4B FB 52 6D */ bl lbl_8000733C
/* 800520D4 0004DF14 2C 04 00 00 */ cmpwi r4, 0x0
/* 800520D8 0004DF18 7C 7B 1B 78 */ mr r27, r3
/* 800520DC 0004DF1C 7C 9C 23 78 */ mr r28, r4
/* 800520E0 0004DF20 7C BD 2B 78 */ mr r29, r5
/* 800520E4 0004DF24 7C DE 33 78 */ mr r30, r6
/* 800520E8 0004DF28 7C FF 3B 78 */ mr r31, r7
/* 800520EC 0004DF2C 41 82 00 0C */ beq lbl_800520F8
/* 800520F0 0004DF30 54 80 06 FF */ clrlwi. r0, r4, 27
/* 800520F4 0004DF34 41 82 00 0C */ beq lbl_80052100
.global lbl_800520F8
lbl_800520F8:
/* 800520F8 0004DF38 38 60 FF 9B */ li r3, -0x65
/* 800520FC 0004DF3C 48 00 00 50 */ b lbl_8005214C
.global lbl_80052100
lbl_80052100:
/* 80052100 0004DF40 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80052104 0004DF44 38 80 01 40 */ li r4, 0x140
/* 80052108 0004DF48 38 A0 00 20 */ li r5, 0x20
/* 8005210C 0004DF4C 4B FF E4 A5 */ bl iosAllocAligned
/* 80052110 0004DF50 2C 03 00 00 */ cmpwi r3, 0x0
/* 80052114 0004DF54 40 82 00 0C */ bne lbl_80052120
/* 80052118 0004DF58 38 60 FF 8A */ li r3, -0x76
/* 8005211C 0004DF5C 48 00 00 30 */ b lbl_8005214C
.global lbl_80052120
lbl_80052120:
/* 80052120 0004DF60 93 C3 01 00 */ stw r30, 0x100(r3)
/* 80052124 0004DF64 3C C0 80 05 */ lis r6, _isfsFuncCb@ha
/* 80052128 0004DF68 38 00 00 00 */ li r0, 0x0
/* 8005212C 0004DF6C 7F 84 E3 78 */ mr r4, r28
/* 80052130 0004DF70 93 E3 01 04 */ stw r31, 0x104(r3)
/* 80052134 0004DF74 7F A5 EB 78 */ mr r5, r29
/* 80052138 0004DF78 7C 67 1B 78 */ mr r7, r3
/* 8005213C 0004DF7C 38 C6 0C F0 */ addi r6, r6, _isfsFuncCb@l
/* 80052140 0004DF80 90 03 01 08 */ stw r0, 0x108(r3)
/* 80052144 0004DF84 7F 63 DB 78 */ mr r3, r27
/* 80052148 0004DF88 4B FF D4 A9 */ bl IOS_WriteAsync
.global lbl_8005214C
lbl_8005214C:
/* 8005214C 0004DF8C 39 61 00 20 */ addi r11, r1, 0x20
/* 80052150 0004DF90 4B FB 52 39 */ bl lbl_80007388
/* 80052154 0004DF94 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80052158 0004DF98 7C 08 03 A6 */ mtlr r0
/* 8005215C 0004DF9C 38 21 00 20 */ addi r1, r1, 0x20
/* 80052160 0004DFA0 4E 80 00 20 */ blr
/* 80052164 0004DFA4 00 00 00 00 */ .4byte 0x00000000
/* 80052168 0004DFA8 00 00 00 00 */ .4byte 0x00000000
/* 8005216C 0004DFAC 00 00 00 00 */ .4byte 0x00000000
.global ISFS_Close
ISFS_Close:
/* 80052170 0004DFB0 4B FF D1 C0 */ b IOS_Close
/* 80052174 0004DFB4 00 00 00 00 */ .4byte 0x00000000
/* 80052178 0004DFB8 00 00 00 00 */ .4byte 0x00000000
/* 8005217C 0004DFBC 00 00 00 00 */ .4byte 0x00000000
.global ISFS_CloseAsync
ISFS_CloseAsync:
/* 80052180 0004DFC0 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 80052184 0004DFC4 7C 08 02 A6 */ mflr r0
/* 80052188 0004DFC8 90 01 00 24 */ stw r0, 0x24(r1)
/* 8005218C 0004DFCC 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 80052190 0004DFD0 7C BF 2B 78 */ mr r31, r5
/* 80052194 0004DFD4 38 A0 00 20 */ li r5, 0x20
/* 80052198 0004DFD8 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8005219C 0004DFDC 7C 9E 23 78 */ mr r30, r4
/* 800521A0 0004DFE0 38 80 01 40 */ li r4, 0x140
/* 800521A4 0004DFE4 93 A1 00 14 */ stw r29, 0x14(r1)
/* 800521A8 0004DFE8 7C 7D 1B 78 */ mr r29, r3
/* 800521AC 0004DFEC 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 800521B0 0004DFF0 4B FF E4 01 */ bl iosAllocAligned
/* 800521B4 0004DFF4 2C 03 00 00 */ cmpwi r3, 0x0
/* 800521B8 0004DFF8 40 82 00 0C */ bne lbl_800521C4
/* 800521BC 0004DFFC 38 60 FF 8A */ li r3, -0x76
/* 800521C0 0004E000 48 00 00 28 */ b lbl_800521E8
.global lbl_800521C4
lbl_800521C4:
/* 800521C4 0004E004 93 C3 01 00 */ stw r30, 0x100(r3)
/* 800521C8 0004E008 3C 80 80 05 */ lis r4, _isfsFuncCb@ha
/* 800521CC 0004E00C 38 00 00 00 */ li r0, 0x0
/* 800521D0 0004E010 7C 65 1B 78 */ mr r5, r3
/* 800521D4 0004E014 93 E3 01 04 */ stw r31, 0x104(r3)
/* 800521D8 0004E018 38 84 0C F0 */ addi r4, r4, _isfsFuncCb@l
/* 800521DC 0004E01C 90 03 01 08 */ stw r0, 0x108(r3)
/* 800521E0 0004E020 7F A3 EB 78 */ mr r3, r29
/* 800521E4 0004E024 4B FF D0 8D */ bl IOS_CloseAsync
.global lbl_800521E8
lbl_800521E8:
/* 800521E8 0004E028 80 01 00 24 */ lwz r0, 0x24(r1)
/* 800521EC 0004E02C 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 800521F0 0004E030 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 800521F4 0004E034 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 800521F8 0004E038 7C 08 03 A6 */ mtlr r0
/* 800521FC 0004E03C 38 21 00 20 */ addi r1, r1, 0x20
/* 80052200 0004E040 4E 80 00 20 */ blr
/* 80052204 0004E044 00 00 00 00 */ .4byte 0x00000000
/* 80052208 0004E048 00 00 00 00 */ .4byte 0x00000000
/* 8005220C 0004E04C 00 00 00 00 */ .4byte 0x00000000
.global ISFS_ShutdownAsync
ISFS_ShutdownAsync:
/* 80052210 0004E050 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80052214 0004E054 7C 08 02 A6 */ mflr r0
/* 80052218 0004E058 38 A0 00 20 */ li r5, 0x20
/* 8005221C 0004E05C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80052220 0004E060 93 E1 00 0C */ stw r31, 0xc(r1)
/* 80052224 0004E064 7C 9F 23 78 */ mr r31, r4
/* 80052228 0004E068 38 80 01 40 */ li r4, 0x140
/* 8005222C 0004E06C 93 C1 00 08 */ stw r30, 0x8(r1)
/* 80052230 0004E070 7C 7E 1B 78 */ mr r30, r3
/* 80052234 0004E074 80 6D E9 3C */ lwz r3, hId_8055CD5C@sda21(r13)
/* 80052238 0004E078 4B FF E3 79 */ bl iosAllocAligned
/* 8005223C 0004E07C 80 0D 83 90 */ lwz r0, __fsFd@sda21(r13)
/* 80052240 0004E080 2C 00 00 00 */ cmpwi r0, 0x0
/* 80052244 0004E084 40 80 00 0C */ bge lbl_80052250
/* 80052248 0004E088 38 60 FF 9B */ li r3, -0x65
/* 8005224C 0004E08C 48 00 00 3C */ b lbl_80052288
.global lbl_80052250
lbl_80052250:
/* 80052250 0004E090 93 C3 01 00 */ stw r30, 0x100(r3)
/* 80052254 0004E094 3D 20 80 05 */ lis r9, _isfsFuncCb@ha
/* 80052258 0004E098 38 00 00 00 */ li r0, 0x0
/* 8005225C 0004E09C 7C 6A 1B 78 */ mr r10, r3
/* 80052260 0004E0A0 93 E3 01 04 */ stw r31, 0x104(r3)
/* 80052264 0004E0A4 39 29 0C F0 */ addi r9, r9, _isfsFuncCb@l
/* 80052268 0004E0A8 38 80 00 0D */ li r4, 0xd
/* 8005226C 0004E0AC 38 A0 00 00 */ li r5, 0x0
/* 80052270 0004E0B0 90 03 01 08 */ stw r0, 0x108(r3)
/* 80052274 0004E0B4 38 C0 00 00 */ li r6, 0x0
/* 80052278 0004E0B8 38 E0 00 00 */ li r7, 0x0
/* 8005227C 0004E0BC 39 00 00 00 */ li r8, 0x0
/* 80052280 0004E0C0 80 6D 83 90 */ lwz r3, __fsFd@sda21(r13)
/* 80052284 0004E0C4 4B FF D7 4D */ bl IOS_IoctlAsync
.global lbl_80052288
lbl_80052288:
/* 80052288 0004E0C8 80 01 00 14 */ lwz r0, 0x14(r1)
/* 8005228C 0004E0CC 83 E1 00 0C */ lwz r31, 0xc(r1)
/* 80052290 0004E0D0 83 C1 00 08 */ lwz r30, 0x8(r1)
/* 80052294 0004E0D4 7C 08 03 A6 */ mtlr r0
/* 80052298 0004E0D8 38 21 00 10 */ addi r1, r1, 0x10
/* 8005229C 0004E0DC 4E 80 00 20 */ blr
.include "macros.inc"
.section .data, "wa" # 0x80421040 - 0x80496700 ; 0x000756C0
.global "@1709_80438508"
"@1709_80438508":
.4byte 0x41505020
.4byte 0x4552524F
.4byte 0x523A204E
.4byte 0x6F742065
.4byte 0x6E6F7567
.4byte 0x68204950
.4byte 0x43206172
.4byte 0x656E610A
.4byte 0
.4byte 0
.include "macros.inc"
.section .sdata, "wa" # 0x80556420 - 0x8055C6E0 ; 0x000062C0
.global __fsFd
__fsFd:
.4byte 0xFFFFFFFF
.4byte 0
.global "@1710_805567B8"
"@1710_805567B8":
.4byte 0x2F646576
.4byte 0x2F667300
.include "macros.inc"
.section .sbss, "", @nobits # 0x8055C6E0 - 0x8055DF80 ; 0x000018A0
.global __fsInitialized
__fsInitialized:
.skip 0x4
.global __devfs
__devfs:
.skip 0x4
.global _asynCnt
_asynCnt:
.skip 0x4
.global "@LOCAL@ISFS_OpenLib__Fv@lo"
"@LOCAL@ISFS_OpenLib__Fv@lo":
.skip 0x4
.global "@LOCAL@ISFS_OpenLib__Fv@hi@0"
"@LOCAL@ISFS_OpenLib__Fv@hi@0":
.skip 0x4
.global hId_8055CD5C
hId_8055CD5C:
.skip 0x4