.include "macros.inc"
.section .text, "ax"
.global sprintf
sprintf:
mflr r0
stw r0, 4(r1)
stwu r1, -0x90(r1)
stw r31, 0x8c(r1)
stw r30, 0x88(r1)
bne cr1, lbl_80084028
stfd f1, 0x28(r1)
stfd f2, 0x30(r1)
stfd f3, 0x38(r1)
stfd f4, 0x40(r1)
stfd f5, 0x48(r1)
stfd f6, 0x50(r1)
stfd f7, 0x58(r1)
stfd f8, 0x60(r1)
lbl_80084028:
stw r3, 8(r1)
lis r0, 0x200
addi r30, r3, 0
stw r4, 0xc(r1)
li r31, -1
stw r5, 0x10(r1)
lis r5, __StringWrite@ha
addi r3, r5, __StringWrite@l
stw r6, 0x14(r1)
addi r5, r4, 0
addi r6, r1, 0x7c
stw r7, 0x18(r1)
addi r4, r1, 0x70
stw r8, 0x1c(r1)
stw r9, 0x20(r1)
stw r10, 0x24(r1)
stw r0, 0x7c(r1)
addi r0, r1, 0x98
stw r0, 0x80(r1)
addi r0, r1, 8
stw r0, 0x84(r1)
li r0, 0
stw r30, 0x70(r1)
stw r31, 0x74(r1)
stw r0, 0x78(r1)
bl __pformatter
cmplw r3, r31
bge lbl_800840A0
mr r4, r3
b lbl_800840A4
lbl_800840A0:
li r4, -2
lbl_800840A4:
li r0, 0
stbx r0, r30, r4
lwz r0, 0x94(r1)
lwz r31, 0x8c(r1)
lwz r30, 0x88(r1)
mtlr r0
addi r1, r1, 0x90
blr
.global snprintf
snprintf:
mflr r0
stw r0, 4(r1)
stwu r1, -0x98(r1)
stw r31, 0x94(r1)
stw r30, 0x90(r1)
bne cr1, lbl_800840FC
stfd f1, 0x28(r1)
stfd f2, 0x30(r1)
stfd f3, 0x38(r1)
stfd f4, 0x40(r1)
stfd f5, 0x48(r1)
stfd f6, 0x50(r1)
stfd f7, 0x58(r1)
stfd f8, 0x60(r1)
lbl_800840FC:
stw r3, 8(r1)
lis r0, 0x300
mr r30, r3
stw r4, 0xc(r1)
addi r31, r4, 0
lis r4, __StringWrite@ha
stw r5, 0x10(r1)
addi r3, r4, __StringWrite@l
addi r4, r1, 0x74
stw r6, 0x14(r1)
addi r6, r1, 0x80
stw r7, 0x18(r1)
stw r8, 0x1c(r1)
stw r9, 0x20(r1)
stw r10, 0x24(r1)
stw r0, 0x80(r1)
addi r0, r1, 0xa0
stw r0, 0x84(r1)
addi r0, r1, 8
stw r0, 0x88(r1)
li r0, 0
stw r30, 0x74(r1)
stw r31, 0x78(r1)
stw r0, 0x7c(r1)
bl __pformatter
cmplw r3, r31
bge lbl_80084170
mr r4, r3
b lbl_80084174
lbl_80084170:
addi r4, r31, -1
lbl_80084174:
li r0, 0
stbx r0, r30, r4
lwz r0, 0x9c(r1)
lwz r31, 0x94(r1)
lwz r30, 0x90(r1)
mtlr r0
addi r1, r1, 0x98
blr
.global vsnprintf
vsnprintf:
mflr r0
stw r0, 4(r1)
li r0, 0
stwu r1, -0x30(r1)
stw r31, 0x2c(r1)
addi r31, r4, 0
addi r4, r1, 0x18
stw r30, 0x28(r1)
mr r30, r3
lis r3, __StringWrite@ha
stw r30, 0x18(r1)
addi r3, r3, __StringWrite@l
stw r31, 0x1c(r1)
stw r0, 0x20(r1)
bl __pformatter
cmplw r3, r31
bge lbl_800841E0
mr r4, r3
b lbl_800841E4
lbl_800841E0:
addi r4, r31, -1
lbl_800841E4:
li r0, 0
stbx r0, r30, r4
lwz r0, 0x34(r1)
lwz r31, 0x2c(r1)
lwz r30, 0x28(r1)
mtlr r0
addi r1, r1, 0x30
blr
.global vprintf
vprintf:
mflr r0
lis r5, __files@ha
stw r0, 4(r1)
addi r5, r5, __files@l
stwu r1, -0x20(r1)
stw r31, 0x1c(r1)
addi r31, r5, 0x48
stw r30, 0x18(r1)
addi r30, r4, 0
li r4, -1
stw r29, 0x14(r1)
addi r29, r3, 0
addi r3, r31, 0
bl fwide
cmpwi r3, 0
blt lbl_8008424C
li r3, -1
b lbl_80084264
lbl_8008424C:
lis r3, __FileWrite@ha
addi r3, r3, __FileWrite@l
addi r4, r31, 0
addi r5, r29, 0
addi r6, r30, 0
bl __pformatter
lbl_80084264:
lwz r0, 0x24(r1)
lwz r31, 0x1c(r1)
lwz r30, 0x18(r1)
mtlr r0
lwz r29, 0x14(r1)
addi r1, r1, 0x20
blr
.global __StringWrite
__StringWrite:
mflr r0
stw r0, 4(r1)
stwu r1, -0x20(r1)
stw r31, 0x1c(r1)
stw r30, 0x18(r1)
mr r30, r3
lwz r3, 8(r3)
lwz r6, 4(r30)
add r0, r3, r5
cmplw r0, r6
bgt lbl_800842B4
mr r31, r5
b lbl_800842B8
lbl_800842B4:
subf r31, r3, r6
lbl_800842B8:
lwz r0, 0(r30)
addi r5, r31, 0
add r3, r0, r3
bl memcpy
lwz r0, 8(r30)
add r0, r0, r31
stw r0, 8(r30)
lwz r0, 0x24(r1)
lwz r31, 0x1c(r1)
lwz r30, 0x18(r1)
mtlr r0
addi r1, r1, 0x20
blr
.global __FileWrite
__FileWrite:
mflr r0
stw r0, 4(r1)
stwu r1, -0x20(r1)
stw r31, 0x1c(r1)
addi r31, r5, 0
stw r30, 0x18(r1)
addi r30, r3, 0
addi r3, r4, 0
addi r6, r30, 0
li r4, 1
bl fwrite
cmplw r31, r3
bne lbl_80084328
mr r3, r30
b lbl_8008432C
lbl_80084328:
li r3, 0
lbl_8008432C:
lwz r0, 0x24(r1)
lwz r31, 0x1c(r1)
lwz r30, 0x18(r1)
mtlr r0
addi r1, r1, 0x20
blr
.global __pformatter
__pformatter:
mflr r0
lis r7, "@stringBase0"@ha
stw r0, 4(r1)
li r0, 0x20
stwu r1, -0x268(r1)
stmw r18, 0x230(r1)
addi r31, r3, 0
addi r30, r4, 0
addi r28, r6, 0
addi r25, r5, 0
addi r26, r1, 0x21c
addi r23, r1, 0x21b
addi r20, r7, "@stringBase0"@l
li r27, 0
stb r0, 0x19(r1)
b lbl_80084950
lbl_80084384:
addi r3, r25, 0
li r4, 0x25
bl strchr
or. r24, r3, r3
bne lbl_800843D0
mr r3, r25
bl strlen
or. r5, r3, r3
add r27, r27, r5
beq lbl_8008495C
addi r12, r31, 0
mtlr r12
addi r3, r30, 0
addi r4, r25, 0
blrl
cmplwi r3, 0
bne lbl_8008495C
li r3, -1
b lbl_80084960
lbl_800843D0:
subf. r5, r25, r24
add r27, r27, r5
beq lbl_80084400
addi r12, r31, 0
mtlr r12
addi r3, r30, 0
addi r4, r25, 0
blrl
cmplwi r3, 0
bne lbl_80084400
li r3, -1
b lbl_80084960
lbl_80084400:
addi r3, r24, 0
addi r4, r28, 0
addi r5, r1, 0x21c
bl parse_format
lbz r0, 0x221(r1)
addi r25, r3, 0
cmpwi r0, 0x69
beq lbl_800844C0
bge lbl_80084478
cmpwi r0, 0x58
beq lbl_8008457C
bge lbl_80084454
cmpwi r0, 0x45
beq lbl_80084638
bge lbl_80084448
cmpwi r0, 0x25
beq lbl_800847BC
b lbl_800847D0
lbl_80084448:
cmpwi r0, 0x47
beq lbl_80084638
b lbl_800847D0
lbl_80084454:
cmpwi r0, 0x64
beq lbl_800844C0
bge lbl_8008446C
cmpwi r0, 0x63
bge lbl_80084798
b lbl_800847D0
lbl_8008446C:
cmpwi r0, 0x68
bge lbl_800847D0
b lbl_80084638
lbl_80084478:
cmpwi r0, 0x75
beq lbl_8008457C
bge lbl_800844A8
cmpwi r0, 0x6f
beq lbl_8008457C
bge lbl_8008449C
cmpwi r0, 0x6e
bge lbl_80084730
b lbl_800847D0
lbl_8008449C:
cmpwi r0, 0x73
beq lbl_8008465C
b lbl_800847D0
lbl_800844A8:
cmpwi r0, 0xff
beq lbl_800847D0
bge lbl_800847D0
cmpwi r0, 0x78
beq lbl_8008457C
b lbl_800847D0
lbl_800844C0:
lbz r0, 0x220(r1)
cmplwi r0, 3
bne lbl_800844E0
addi r3, r28, 0
li r4, 1
bl __va_arg
lwz r29, 0(r3)
b lbl_80084510
lbl_800844E0:
cmplwi r0, 4
bne lbl_80084500
addi r3, r28, 0
li r4, 2
bl __va_arg
lwz r21, 0(r3)
lwz r22, 4(r3)
b lbl_80084510
lbl_80084500:
addi r3, r28, 0
li r4, 1
bl __va_arg
lwz r29, 0(r3)
lbl_80084510:
lbz r3, 0x220(r1)
cmplwi r3, 2
bne lbl_80084524
extsh r0, r29
mr r29, r0
lbl_80084524:
cmplwi r3, 1
bne lbl_80084534
extsb r0, r29
mr r29, r0
lbl_80084534:
cmplwi r3, 4
bne lbl_8008455C
addi r4, r22, 0
addi r3, r21, 0
addi r5, r26, 0
addi r6, r1, 0x21c
bl longlong2str
or. r19, r3, r3
beq lbl_800847D0
b lbl_80084574
lbl_8008455C:
addi r3, r29, 0
addi r4, r26, 0
addi r5, r1, 0x21c
bl long2str
or. r19, r3, r3
beq lbl_800847D0
lbl_80084574:
subf r24, r19, r23
b lbl_80084810
lbl_8008457C:
lbz r0, 0x220(r1)
cmplwi r0, 3
bne lbl_8008459C
addi r3, r28, 0
li r4, 1
bl __va_arg
lwz r29, 0(r3)
b lbl_800845CC
lbl_8008459C:
cmplwi r0, 4
bne lbl_800845BC
addi r3, r28, 0
li r4, 2
bl __va_arg
lwz r21, 0(r3)
lwz r22, 4(r3)
b lbl_800845CC
lbl_800845BC:
addi r3, r28, 0
li r4, 1
bl __va_arg
lwz r29, 0(r3)
lbl_800845CC:
lbz r3, 0x220(r1)
cmplwi r3, 2
bne lbl_800845E0
clrlwi r0, r29, 0x10
mr r29, r0
lbl_800845E0:
cmplwi r3, 1
bne lbl_800845F0
clrlwi r0, r29, 0x18
mr r29, r0
lbl_800845F0:
cmplwi r3, 4
bne lbl_80084618
addi r4, r22, 0
addi r3, r21, 0
addi r5, r26, 0
addi r6, r1, 0x21c
bl longlong2str
or. r19, r3, r3
beq lbl_800847D0
b lbl_80084630
lbl_80084618:
addi r3, r29, 0
addi r4, r26, 0
addi r5, r1, 0x21c
bl long2str
or. r19, r3, r3
beq lbl_800847D0
lbl_80084630:
subf r24, r19, r23
b lbl_80084810
lbl_80084638:
addi r3, r28, 0
addi r4, r26, 0
addi r5, r1, 0x21c
li r6, 0
bl float2str
or. r19, r3, r3
beq lbl_800847D0
subf r24, r19, r23
b lbl_80084810
lbl_8008465C:
lbz r0, 0x220(r1)
cmplwi r0, 6
bne lbl_800846A0
addi r3, r28, 0
li r4, 1
bl __va_arg
lwz r4, 0(r3)
cmplwi r4, 0
bne lbl_80084684
addi r4, r13, "@wstringBase0"@sda21
lbl_80084684:
addi r3, r1, 0x1c
li r5, 0x200
bl wcstombs
cmpwi r3, 0
blt lbl_800847D0
addi r19, r1, 0x1c
b lbl_800846B0
lbl_800846A0:
addi r3, r28, 0
li r4, 1
bl __va_arg
lwz r19, 0(r3)
lbl_800846B0:
cmplwi r19, 0
bne lbl_800846BC
mr r19, r20
lbl_800846BC:
lbz r0, 0x21f(r1)
cmplwi r0, 0
beq lbl_800846F0
lbz r0, 0x21e(r1)
lbz r24, 0(r19)
addi r19, r19, 1
cmplwi r0, 0
beq lbl_80084810
lwz r0, 0x228(r1)
cmpw r24, r0
ble lbl_80084810
mr r24, r0
b lbl_80084810
lbl_800846F0:
lbz r0, 0x21e(r1)
cmplwi r0, 0
beq lbl_80084720
lwz r24, 0x228(r1)
addi r3, r19, 0
li r4, 0
addi r5, r24, 0
bl memchr
cmplwi r3, 0
beq lbl_80084810
subf r24, r19, r3
b lbl_80084810
lbl_80084720:
mr r3, r19
bl strlen
mr r24, r3
b lbl_80084810
lbl_80084730:
addi r3, r28, 0
li r4, 1
bl __va_arg
lbz r0, 0x220(r1)
lwz r3, 0(r3)
cmpwi r0, 2
beq lbl_80084774
bge lbl_8008475C
cmpwi r0, 0
beq lbl_8008476C
b lbl_80084950
lbl_8008475C:
cmpwi r0, 4
beq lbl_80084788
bge lbl_80084950
b lbl_80084780
lbl_8008476C:
stw r27, 0(r3)
b lbl_80084950
lbl_80084774:
extsh r0, r27
sth r0, 0(r3)
b lbl_80084950
lbl_80084780:
stw r27, 0(r3)
b lbl_80084950
lbl_80084788:
stw r27, 4(r3)
srawi r0, r27, 0x1f
stw r0, 0(r3)
b lbl_80084950
lbl_80084798:
addi r3, r28, 0
addi r19, r1, 0x1c
li r4, 1
bl __va_arg
lwz r0, 0(r3)
li r24, 1
extsb r0, r0
stb r0, 0x1c(r1)
b lbl_80084810
lbl_800847BC:
li r0, 0x25
stb r0, 0x1c(r1)
addi r19, r1, 0x1c
li r24, 1
b lbl_80084810
lbl_800847D0:
mr r3, r24
bl strlen
or. r5, r3, r3
add r27, r27, r5
beq lbl_80084808
addi r12, r31, 0
mtlr r12
addi r3, r30, 0
addi r4, r24, 0
blrl
cmplwi r3, 0
bne lbl_80084808
li r3, -1
b lbl_80084960
lbl_80084808:
mr r3, r27
b lbl_80084960
lbl_80084810:
lbz r0, 0x21c(r1)
addi r18, r24, 0
cmplwi r0, 0
beq lbl_800848CC
cmplwi r0, 2
bne lbl_80084830
li r0, 0x30
b lbl_80084834
lbl_80084830:
li r0, 0x20
lbl_80084834:
extsb r0, r0
stb r0, 0x19(r1)
lbz r0, 0(r19)
extsb r0, r0
cmpwi r0, 0x2b
beq lbl_80084854
cmpwi r0, 0x2d
bne lbl_800848C0
lbl_80084854:
lbz r0, 0x19(r1)
cmpwi r0, 0x30
bne lbl_800848C0
addi r12, r31, 0
mtlr r12
addi r3, r30, 0
addi r4, r19, 0
li r5, 1
blrl
cmplwi r3, 0
bne lbl_80084888
li r3, -1
b lbl_80084960
lbl_80084888:
addi r19, r19, 1
addi r24, r24, -1
b lbl_800848C0
lbl_80084894:
addi r12, r31, 0
mtlr r12
addi r3, r30, 0
addi r4, r1, 0x19
li r5, 1
blrl
cmplwi r3, 0
bne lbl_800848BC
li r3, -1
b lbl_80084960
lbl_800848BC:
addi r18, r18, 1
lbl_800848C0:
lwz r0, 0x224(r1)
cmpw r18, r0
blt lbl_80084894
lbl_800848CC:
cmpwi r24, 0
beq lbl_800848FC
addi r12, r31, 0
mtlr r12
addi r3, r30, 0
addi r4, r19, 0
addi r5, r24, 0
blrl
cmplwi r3, 0
bne lbl_800848FC
li r3, -1
b lbl_80084960
lbl_800848FC:
lbz r0, 0x21c(r1)
cmplwi r0, 0
bne lbl_8008494C
li r19, 0x20
b lbl_80084940
lbl_80084910:
mr r12, r31
stb r19, 0x18(r1)
mtlr r12
addi r3, r30, 0
addi r4, r1, 0x18
li r5, 1
blrl
cmplwi r3, 0
bne lbl_8008493C
li r3, -1
b lbl_80084960
lbl_8008493C:
addi r18, r18, 1
lbl_80084940:
lwz r0, 0x224(r1)
cmpw r18, r0
blt lbl_80084910
lbl_8008494C:
add r27, r27, r18
lbl_80084950:
lbz r0, 0(r25)
extsb. r0, r0
bne lbl_80084384
lbl_8008495C:
mr r3, r27
lbl_80084960:
lmw r18, 0x230(r1)
lwz r0, 0x26c(r1)
addi r1, r1, 0x268
mtlr r0
blr
.global float2str
float2str:
mflr r0
stw r0, 4(r1)
stwu r1, -0x60(r1)
stfd f31, 0x58(r1)
stw r31, 0x54(r1)
stw r30, 0x50(r1)
stw r29, 0x4c(r1)
mr r29, r5
stw r28, 0x48(r1)
addi r28, r4, 0
lbz r0, 4(r5)
cmplwi r0, 5
bne lbl_800849B8
li r4, 3
bl __va_arg
lfd f31, 0(r3)
b lbl_800849C4
lbl_800849B8:
li r4, 3
bl __va_arg
lfd f31, 0(r3)
lbl_800849C4:
lwz r0, 0xc(r29)
cmpwi r0, 0x1fd
ble lbl_800849D8
li r3, 0
b lbl_80084F88
lbl_800849D8:
li r0, 0
fmr f1, f31
stb r0, 0x18(r1)
li r0, 0x20
addi r3, r1, 0x18
sth r0, 0x1a(r1)
addi r4, r1, 0x1c
bl __num2dec
lbz r0, 0x20(r1)
addi r31, r1, 0x21
add r4, r31, r0
b lbl_80084A20
lbl_80084A08:
lbz r3, 0x20(r1)
addi r0, r3, -1
stb r0, 0x20(r1)
lha r3, 0x1e(r1)
addi r0, r3, 1
sth r0, 0x1e(r1)
lbl_80084A20:
lbz r0, 0x20(r1)
cmplwi r0, 1
ble lbl_80084A38
lbzu r0, -1(r4)
cmpwi r0, 0x30
beq lbl_80084A08
lbl_80084A38:
lbz r0, 0x21(r1)
cmpwi r0, 0x49
beq lbl_80084A6C
bge lbl_80084A54
cmpwi r0, 0x30
beq lbl_80084A60
b lbl_80084AD4
lbl_80084A54:
cmpwi r0, 0x4e
beq lbl_80084AB4
b lbl_80084AD4
lbl_80084A60:
li r0, 0
sth r0, 0x1e(r1)
b lbl_80084AD4
lbl_80084A6C:
lfd f0, "@919"@sda21(r2)
fcmpo cr0, f31, f0
bge lbl_80084A94
lis r3, "@stringBase0"@ha
addi r28, r28, -5
addi r4, r3, "@stringBase0"@l
addi r3, r28, 0
addi r4, r4, 1
bl strcpy
b lbl_80084AAC
lbl_80084A94:
lis r3, "@stringBase0"@ha
addi r28, r28, -4
addi r4, r3, "@stringBase0"@l
addi r3, r28, 0
addi r4, r4, 6
bl strcpy
lbl_80084AAC:
mr r3, r28
b lbl_80084F88
lbl_80084AB4:
lis r3, "@stringBase0"@ha
addi r28, r28, -4
addi r4, r3, "@stringBase0"@l
addi r3, r28, 0
addi r4, r4, 0xa
bl strcpy
mr r3, r28
b lbl_80084F88
lbl_80084AD4:
lha r4, 0x1e(r1)
li r0, 0
lbz r3, 0x20(r1)
addi r30, r28, -1
add r3, r3, r4
addi r3, r3, -1
sth r3, 0x1e(r1)
stb r0, -1(r28)
lbz r0, 5(r29)
cmpwi r0, 0x65
beq lbl_80084BF0
bge lbl_80084B28
cmpwi r0, 0x46
beq lbl_80084F84
bge lbl_80084B1C
cmpwi r0, 0x45
bge lbl_80084BF0
b lbl_80084F84
lbl_80084B1C:
cmpwi r0, 0x48
bge lbl_80084F84
b lbl_80084B38
lbl_80084B28:
cmpwi r0, 0x67
beq lbl_80084B38
bge lbl_80084F84
b lbl_80084D60
lbl_80084B38:
lbz r0, 0x20(r1)
lwz r4, 0xc(r29)
cmpw r0, r4
ble lbl_80084B50
addi r3, r1, 0x1c
bl round_decimal
lbl_80084B50:
lha r4, 0x1e(r1)
cmpwi r4, -4
blt lbl_80084B68
lwz r3, 0xc(r29)
cmpw r4, r3
blt lbl_80084BB4
lbl_80084B68:
lbz r0, 3(r29)
cmplwi r0, 0
beq lbl_80084B84
lwz r3, 0xc(r29)
addi r0, r3, -1
stw r0, 0xc(r29)
b lbl_80084B90
lbl_80084B84:
lbz r3, 0x20(r1)
addi r0, r3, -1
stw r0, 0xc(r29)
lbl_80084B90:
lbz r0, 5(r29)
cmplwi r0, 0x67
bne lbl_80084BA8
li r0, 0x65
stb r0, 5(r29)
b lbl_80084BF0
lbl_80084BA8:
li r0, 0x45
stb r0, 5(r29)
b lbl_80084BF0
lbl_80084BB4:
lbz r0, 3(r29)
cmplwi r0, 0
beq lbl_80084BD0
addi r0, r4, 1
subf r0, r0, r3
stw r0, 0xc(r29)
b lbl_80084D60
lbl_80084BD0:
lbz r0, 0x20(r1)
addi r3, r4, 1
subf. r0, r3, r0
stw r0, 0xc(r29)
bge lbl_80084D60
li r0, 0
stw r0, 0xc(r29)
b lbl_80084D60
lbl_80084BF0:
lwz r3, 0xc(r29)
lbz r0, 0x20(r1)
addi r4, r3, 1
cmpw r0, r4
ble lbl_80084C0C
addi r3, r1, 0x1c
bl round_decimal
lbl_80084C0C:
lha r0, 0x1e(r1)
li r8, 0x2b
cmpwi r0, 0
mr r4, r0
bge lbl_80084C28
neg r4, r4
li r8, 0x2d
lbl_80084C28:
lis r3, 0x66666667@ha
addi r5, r3, 0x66666667@l
li r7, 0
b lbl_80084C6C
lbl_80084C38:
mulhw r6, r5, r4
srawi r0, r6, 2
srwi r3, r0, 0x1f
add r0, r0, r3
mulli r0, r0, 0xa
subf r4, r0, r4
srawi r0, r6, 2
addi r4, r4, 0x30
stb r4, -1(r30)
srwi r3, r0, 0x1f
add r4, r0, r3
addi r7, r7, 1
addi r30, r30, -1
lbl_80084C6C:
cmpwi r4, 0
bne lbl_80084C38
cmpwi r7, 2
blt lbl_80084C38
extsb r0, r8
stb r0, -1(r30)
addi r30, r30, -2
subf r0, r30, r28
lbz r3, 5(r29)
stb r3, 0(r30)
lwz r3, 0xc(r29)
add r0, r3, r0
cmpwi r0, 0x1fd
ble lbl_80084CAC
li r3, 0
b lbl_80084F88
lbl_80084CAC:
lbz r4, 0x20(r1)
addi r0, r3, 1
cmpw r4, r0
bge lbl_80084CD8
addi r0, r3, 2
subf r3, r4, r0
li r0, 0x30
b lbl_80084CD0
lbl_80084CCC:
stbu r0, -1(r30)
lbl_80084CD0:
addic. r3, r3, -1
bne lbl_80084CCC
lbl_80084CD8:
lbz r3, 0x20(r1)
add r4, r31, r3
b lbl_80084CEC
lbl_80084CE4:
lbzu r0, -1(r4)
stbu r0, -1(r30)
lbl_80084CEC:
addic. r3, r3, -1
bne lbl_80084CE4
lwz r0, 0xc(r29)
cmpwi r0, 0
bne lbl_80084D0C
lbz r0, 3(r29)
cmplwi r0, 0
beq lbl_80084D14
lbl_80084D0C:
li r0, 0x2e
stbu r0, -1(r30)
lbl_80084D14:
lbz r0, 0x21(r1)
stbu r0, -1(r30)
lbz r0, 0x1c(r1)
extsb. r0, r0
beq lbl_80084D34
li r0, 0x2d
stbu r0, -1(r30)
b lbl_80084F84
lbl_80084D34:
lbz r0, 1(r29)
cmplwi r0, 1
bne lbl_80084D4C
li r0, 0x2b
stbu r0, -1(r30)
b lbl_80084F84
lbl_80084D4C:
cmplwi r0, 2
bne lbl_80084F84
li r0, 0x20
stbu r0, -1(r30)
b lbl_80084F84
lbl_80084D60:
lha r0, 0x1e(r1)
lbz r4, 0x20(r1)
subf r0, r0, r4
addic. r7, r0, -1
bge lbl_80084D78
li r7, 0
lbl_80084D78:
lwz r0, 0xc(r29)
cmpw r7, r0
ble lbl_80084DAC
subf r0, r0, r7
addi r3, r1, 0x1c
subf r4, r0, r4
bl round_decimal
lha r3, 0x1e(r1)
lbz r0, 0x20(r1)
subf r0, r3, r0
addic. r7, r0, -1
bge lbl_80084DAC
li r7, 0
lbl_80084DAC:
lha r0, 0x1e(r1)
addic. r6, r0, 1
bge lbl_80084DBC
li r6, 0
lbl_80084DBC:
add r0, r6, r7
cmpwi r0, 0x1fd
ble lbl_80084DD0
li r3, 0
b lbl_80084F88
lbl_80084DD0:
lbz r0, 0x20(r1)
li r4, 0
li r3, 0x30
add r5, r31, r0
b lbl_80084DEC
lbl_80084DE4:
stbu r3, -1(r30)
addi r4, r4, 1
lbl_80084DEC:
lwz r0, 0xc(r29)
subf r0, r7, r0
cmpw r4, r0
blt lbl_80084DE4
li r3, 0
b lbl_80084E10
lbl_80084E04:
lbzu r0, -1(r5)
addi r3, r3, 1
stbu r0, -1(r30)
lbl_80084E10:
cmpw r3, r7
bge lbl_80084E24
lbz r0, 0x20(r1)
cmpw r3, r0
blt lbl_80084E04
lbl_80084E24:
cmpw r3, r7
subf r3, r3, r7
li r4, 0x30
bge lbl_80084E78
rlwinm. r0, r3, 0x1d, 3, 0x1f
mtctr r0
beq lbl_80084E6C
lbl_80084E40:
stb r4, -1(r30)
stb r4, -2(r30)
stb r4, -3(r30)
stb r4, -4(r30)
stb r4, -5(r30)
stb r4, -6(r30)
stb r4, -7(r30)
stbu r4, -8(r30)
bdnz lbl_80084E40
andi. r3, r3, 7
beq lbl_80084E78
lbl_80084E6C:
mtctr r3
lbl_80084E70:
stbu r4, -1(r30)
bdnz lbl_80084E70
lbl_80084E78:
lwz r0, 0xc(r29)
cmpwi r0, 0
bne lbl_80084E90
lbz r0, 3(r29)
cmplwi r0, 0
beq lbl_80084E98
lbl_80084E90:
li r0, 0x2e
stbu r0, -1(r30)
lbl_80084E98:
cmpwi r6, 0
beq lbl_80084F3C
li r4, 0
li r3, 0x30
b lbl_80084EB4
lbl_80084EAC:
stbu r3, -1(r30)
addi r4, r4, 1
lbl_80084EB4:
lbz r0, 0x20(r1)
subf r0, r0, r6
cmpw r4, r0
blt lbl_80084EAC
cmpw r4, r6
subf r3, r4, r6
bge lbl_80084F44
rlwinm. r0, r3, 0x1d, 3, 0x1f
mtctr r0
beq lbl_80084F28
lbl_80084EDC:
lbz r0, -1(r5)
stb r0, -1(r30)
lbz r0, -2(r5)
stb r0, -2(r30)
lbz r0, -3(r5)
stb r0, -3(r30)
lbz r0, -4(r5)
stb r0, -4(r30)
lbz r0, -5(r5)
stb r0, -5(r30)
lbz r0, -6(r5)
stb r0, -6(r30)
lbz r0, -7(r5)
stb r0, -7(r30)
lbzu r0, -8(r5)
stbu r0, -8(r30)
bdnz lbl_80084EDC
andi. r3, r3, 7
beq lbl_80084F44
lbl_80084F28:
mtctr r3
lbl_80084F2C:
lbzu r0, -1(r5)
stbu r0, -1(r30)
bdnz lbl_80084F2C
b lbl_80084F44
lbl_80084F3C:
li r0, 0x30
stbu r0, -1(r30)
lbl_80084F44:
lbz r0, 0x1c(r1)
extsb. r0, r0
beq lbl_80084F5C
li r0, 0x2d
stbu r0, -1(r30)
b lbl_80084F84
lbl_80084F5C:
lbz r0, 1(r29)
cmplwi r0, 1
bne lbl_80084F74
li r0, 0x2b
stbu r0, -1(r30)
b lbl_80084F84
lbl_80084F74:
cmplwi r0, 2
bne lbl_80084F84
li r0, 0x20
stbu r0, -1(r30)
lbl_80084F84:
mr r3, r30
lbl_80084F88:
lwz r0, 0x64(r1)
lfd f31, 0x58(r1)
lwz r31, 0x54(r1)
mtlr r0
lwz r30, 0x50(r1)
lwz r29, 0x4c(r1)
lwz r28, 0x48(r1)
addi r1, r1, 0x60
blr
.global round_decimal
round_decimal:
cmpwi r4, 0
bge lbl_80084FD4
lbl_80084FB4:
li r5, 0
stb r5, 0(r3)
li r4, 1
li r0, 0x30
sth r5, 2(r3)
stb r4, 4(r3)
stb r0, 5(r3)
blr
lbl_80084FD4:
lbz r0, 4(r3)
cmpw r4, r0
bgelr
add r5, r3, r4
addi r8, r5, 6
lbzu r5, -1(r8)
addi r5, r5, -48
extsb r6, r5
cmpwi r6, 5
bne lbl_8008503C
add r5, r3, r0
addi r5, r5, 5
lbl_80085004:
addi r5, r5, -1
cmplw r5, r8
ble lbl_8008501C
lbz r0, 0(r5)
cmpwi r0, 0x30
beq lbl_80085004
lbl_8008501C:
cmplw r5, r8
bne lbl_80085030
lbz r0, -1(r8)
clrlwi r0, r0, 0x1f
b lbl_80085034
lbl_80085030:
li r0, 1
lbl_80085034:
mr r5, r0
b lbl_8008509C
lbl_8008503C:
li r5, 5
eqv r0, r6, r5
subfc r5, r6, r5
srwi r0, r0, 0x1f
addze r5, r0
clrlwi r5, r5, 0x1f
b lbl_8008509C
lbl_80085058:
lbzu r0, -1(r8)
add r7, r0, r5
addi r7, r7, -48
extsb r5, r7
eqv r0, r5, r6
subfc r5, r5, r6
srwi r0, r0, 0x1f
addze r5, r0
clrlwi. r5, r5, 0x1f
bne lbl_80085088
extsb. r0, r7
bne lbl_80085090
lbl_80085088:
addi r4, r4, -1
b lbl_800850A0
lbl_80085090:
addi r0, r7, 0x30
stb r0, 0(r8)
b lbl_800850A8
lbl_8008509C:
li r6, 9
lbl_800850A0:
cmpwi r4, 0
bne lbl_80085058
lbl_800850A8:
cmpwi r5, 0
beq lbl_800850D0
lha r5, 2(r3)
li r4, 1
li r0, 0x31
addi r5, r5, 1
sth r5, 2(r3)
stb r4, 4(r3)
stb r0, 5(r3)
blr
lbl_800850D0:
cmpwi r4, 0
beq lbl_80084FB4
stb r4, 4(r3)
blr
.global longlong2str
longlong2str:
mflr r0
stw r0, 4(r1)
li r0, 0
stwu r1, -0x40(r1)
stmw r22, 0x18(r1)
addi r23, r5, 0
xor r5, r4, r0
addi r27, r23, -1
addi r24, r6, 0
addi r30, r4, 0
addi r31, r3, 0
li r25, 0
li r26, 0
stb r0, -1(r23)
xor r0, r3, r0
or. r0, r5, r0
bne lbl_80085150
lwz r0, 0xc(r24)
cmpwi r0, 0
bne lbl_80085150
lbz r0, 3(r24)
cmplwi r0, 0
beq lbl_80085148
lbz r0, 5(r24)
cmplwi r0, 0x6f
beq lbl_80085150
lbl_80085148:
mr r3, r27
b lbl_800853AC
lbl_80085150:
lbz r5, 5(r24)
addi r0, r5, -88
cmplwi r0, 0x20
bgt lbl_800851E8
lis r5, "@1009"@ha
addi r5, r5, "@1009"@l
slwi r0, r0, 2
lwzx r0, r5, r0
mtctr r0
bctr
lbl_80085178:
li r0, 0
xoris r5, r3, 0x8000
xoris r3, r0, 0x8000
subfc r0, r0, r4
subfe r3, r3, r5
subfe r3, r5, r5
neg. r3, r3
li r28, 0xa
li r29, 0
beq lbl_800851E8
subfic r30, r30, 0
subfze r31, r31
li r25, 1
b lbl_800851E8
lbl_800851B0:
li r0, 0
stb r0, 1(r24)
li r28, 8
li r29, 0
b lbl_800851E8
lbl_800851C4:
li r0, 0
stb r0, 1(r24)
li r28, 0xa
li r29, 0
b lbl_800851E8
lbl_800851D8:
li r0, 0
stb r0, 1(r24)
li r28, 0x10
li r29, 0
lbl_800851E8:
addi r3, r31, 0
addi r4, r30, 0
addi r5, r29, 0
addi r6, r28, 0
bl __mod2u
addi r22, r4, 0
addi r3, r31, 0
addi r4, r30, 0
addi r5, r29, 0
addi r6, r28, 0
bl __div2u
cmpwi r22, 0xa
addi r30, r4, 0
addi r31, r3, 0
bge lbl_8008522C
addi r5, r22, 0x30
b lbl_80085244
lbl_8008522C:
lbz r0, 5(r24)
cmplwi r0, 0x78
bne lbl_80085240
addi r5, r22, 0x57
b lbl_80085244
lbl_80085240:
addi r5, r22, 0x37
lbl_80085244:
li r4, 0
xor r3, r30, r4
xor r0, r31, r4
or. r0, r3, r0
extsb r0, r5
addi r26, r26, 1
stbu r0, -1(r27)
bne lbl_800851E8
li r0, 8
xor r3, r28, r0
xor r0, r29, r4
or. r0, r3, r0
bne lbl_8008529C
lbz r0, 3(r24)
cmplwi r0, 0
beq lbl_8008529C
lbz r0, 0(r27)
cmpwi r0, 0x30
beq lbl_8008529C
li r0, 0x30
stbu r0, -1(r27)
addi r26, r26, 1
lbl_8008529C:
lbz r0, 0(r24)
cmplwi r0, 2
bne lbl_80085300
lwz r0, 8(r24)
cmpwi r25, 0
stw r0, 0xc(r24)
bne lbl_800852C4
lbz r0, 1(r24)
cmplwi r0, 0
beq lbl_800852D0
lbl_800852C4:
lwz r3, 0xc(r24)
addi r0, r3, -1
stw r0, 0xc(r24)
lbl_800852D0:
li r3, 0x10
li r0, 0
xor r3, r28, r3
xor r0, r29, r0
or. r0, r3, r0
bne lbl_80085300
lbz r0, 3(r24)
cmplwi r0, 0
beq lbl_80085300
lwz r3, 0xc(r24)
addi r0, r3, -2
stw r0, 0xc(r24)
lbl_80085300:
lwz r3, 0xc(r24)
subf r0, r27, r23
add r0, r3, r0
cmpwi r0, 0x1fd
ble lbl_8008531C
li r3, 0
b lbl_800853AC
lbl_8008531C:
li r3, 0x30
b lbl_8008532C
lbl_80085324:
stbu r3, -1(r27)
addi r26, r26, 1
lbl_8008532C:
lwz r0, 0xc(r24)
cmpw r26, r0
blt lbl_80085324
li r3, 0x10
li r0, 0
xor r3, r28, r3
xor r0, r29, r0
or. r0, r3, r0
bne lbl_8008536C
lbz r0, 3(r24)
cmplwi r0, 0
beq lbl_8008536C
lbz r3, 5(r24)
li r0, 0x30
stb r3, -1(r27)
stbu r0, -2(r27)
lbl_8008536C:
cmpwi r25, 0
beq lbl_80085380
li r0, 0x2d
stbu r0, -1(r27)
b lbl_800853A8
lbl_80085380:
lbz r0, 1(r24)
cmplwi r0, 1
bne lbl_80085398
li r0, 0x2b
stbu r0, -1(r27)
b lbl_800853A8
lbl_80085398:
cmplwi r0, 2
bne lbl_800853A8
li r0, 0x20
stbu r0, -1(r27)
lbl_800853A8:
mr r3, r27
lbl_800853AC:
lmw r22, 0x18(r1)
lwz r0, 0x44(r1)
addi r1, r1, 0x40
mtlr r0
blr
.global long2str
long2str:
li r7, 0
stb r7, -1(r4)
cmpwi r3, 0
addi r6, r4, -1
li r8, 0
li r7, 0
bne lbl_80085408
lwz r9, 0xc(r5)
cmpwi r9, 0
bne lbl_80085408
lbz r9, 3(r5)
cmplwi r9, 0
beq lbl_80085400
lbz r9, 5(r5)
cmplwi r9, 0x6f
beq lbl_80085408
lbl_80085400:
mr r3, r6
blr
lbl_80085408:
lbz r9, 5(r5)
addi r10, r9, -88
cmplwi r10, 0x20
bgt lbl_80085474
lis r9, "@1066"@ha
addi r9, r9, "@1066"@l
slwi r10, r10, 2
lwzx r9, r9, r10
mtctr r9
bctr
lbl_80085430:
cmpwi r3, 0
li r0, 0xa
bge lbl_80085474
neg r3, r3
li r8, 1
b lbl_80085474
lbl_80085448:
li r0, 0
stb r0, 1(r5)
li r0, 8
b lbl_80085474
lbl_80085458:
li r0, 0
stb r0, 1(r5)
li r0, 0xa
b lbl_80085474
lbl_80085468:
li r0, 0
stb r0, 1(r5)
li r0, 0x10
lbl_80085474:
divwu r9, r3, r0
mullw r9, r9, r0
subf r10, r9, r3
divwu r3, r3, r0
cmpwi r10, 0xa
bge lbl_80085494
addi r10, r10, 0x30
b lbl_800854AC
lbl_80085494:
lbz r9, 5(r5)
cmplwi r9, 0x78
bne lbl_800854A8
addi r10, r10, 0x57
b lbl_800854AC
lbl_800854A8:
addi r10, r10, 0x37
lbl_800854AC:
extsb r9, r10
stb r9, -1(r6)
cmplwi r3, 0
addi r6, r6, -1
addi r7, r7, 1
bne lbl_80085474
cmplwi r0, 8
bne lbl_800854F0
lbz r3, 3(r5)
cmplwi r3, 0
beq lbl_800854F0
lbz r3, 0(r6)
cmpwi r3, 0x30
beq lbl_800854F0
li r3, 0x30
stbu r3, -1(r6)
addi r7, r7, 1
lbl_800854F0:
lbz r3, 0(r5)
cmplwi r3, 2
bne lbl_80085544
lwz r3, 8(r5)
cmpwi r8, 0
stw r3, 0xc(r5)
bne lbl_80085518
lbz r3, 1(r5)
cmplwi r3, 0
beq lbl_80085524
lbl_80085518:
lwz r3, 0xc(r5)
addi r3, r3, -1
stw r3, 0xc(r5)
lbl_80085524:
cmplwi r0, 0x10
bne lbl_80085544
lbz r3, 3(r5)
cmplwi r3, 0
beq lbl_80085544
lwz r3, 0xc(r5)
addi r3, r3, -2
stw r3, 0xc(r5)
lbl_80085544:
lwz r9, 0xc(r5)
subf r3, r6, r4
add r3, r9, r3
cmpwi r3, 0x1fd
ble lbl_80085560
li r3, 0
blr
lbl_80085560:
li r4, 0x30
b lbl_80085570
lbl_80085568:
stbu r4, -1(r6)
addi r7, r7, 1
lbl_80085570:
lwz r3, 0xc(r5)
cmpw r7, r3
blt lbl_80085568
cmplwi r0, 0x10
bne lbl_800855A0
lbz r0, 3(r5)
cmplwi r0, 0
beq lbl_800855A0
lbz r3, 5(r5)
li r0, 0x30
stb r3, -1(r6)
stbu r0, -2(r6)
lbl_800855A0:
cmpwi r8, 0
beq lbl_800855B4
li r0, 0x2d
stbu r0, -1(r6)
b lbl_800855DC
lbl_800855B4:
lbz r0, 1(r5)
cmplwi r0, 1
bne lbl_800855CC
li r0, 0x2b
stbu r0, -1(r6)
b lbl_800855DC
lbl_800855CC:
cmplwi r0, 2
bne lbl_800855DC
li r0, 0x20
stbu r0, -1(r6)
lbl_800855DC:
mr r3, r6
blr
.global parse_format
parse_format:
mflr r0
stw r0, 4(r1)
li r0, 1
stwu r1, -0x38(r1)
stw r31, 0x34(r1)
addi r31, r3, 1
stw r30, 0x30(r1)
addi r30, r5, 0
stw r29, 0x2c(r1)
addi r29, r4, 0
stb r0, 0x14(r1)
li r0, 0
stb r0, 0x15(r1)
stb r0, 0x16(r1)
stb r0, 0x17(r1)
stb r0, 0x18(r1)
stw r0, 0x1c(r1)
stw r0, 0x20(r1)
lbz r3, 1(r3)
extsb r3, r3
cmpwi r3, 0x25
bne lbl_80085668
stb r3, 0x19(r1)
addi r3, r31, 1
lwz r4, 0x14(r1)
lwz r0, 0x18(r1)
stw r4, 0(r30)
stw r0, 4(r30)
lwz r4, 0x1c(r1)
lwz r0, 0x20(r1)
stw r4, 8(r30)
stw r0, 0xc(r30)
b lbl_80085AA0
lbl_80085668:
lis r4, "@1185"@ha
addi r4, r4, "@1185"@l
lbl_80085670:
addi r0, r3, -32
cmplwi r0, 0x10
li r5, 1
bgt lbl_800856E4
slwi r0, r0, 2
lwzx r0, r4, r0
mtctr r0
bctr
lbl_80085690:
li r0, 0
stb r0, 0x14(r1)
b lbl_800856E8
lbl_8008569C:
li r0, 1
stb r0, 0x15(r1)
b lbl_800856E8
lbl_800856A8:
lbz r0, 0x15(r1)
cmplwi r0, 1
beq lbl_800856E8
li r0, 2
stb r0, 0x15(r1)
b lbl_800856E8
lbl_800856C0:
li r0, 1
stb r0, 0x17(r1)
b lbl_800856E8
lbl_800856CC:
lbz r0, 0x14(r1)
cmplwi r0, 0
beq lbl_800856E8
li r0, 2
stb r0, 0x14(r1)
b lbl_800856E8
lbl_800856E4:
li r5, 0
lbl_800856E8:
cmpwi r5, 0
beq lbl_800856FC
lbzu r3, 1(r31)
extsb r3, r3
b lbl_80085670
lbl_800856FC:
cmpwi r3, 0x2a
bne lbl_80085740
addi r3, r29, 0
li r4, 1
bl __va_arg
lwz r0, 0(r3)
cmpwi r0, 0
stw r0, 0x1c(r1)
bge lbl_80085734
li r0, 0
stb r0, 0x14(r1)
lwz r0, 0x1c(r1)
neg r0, r0
stw r0, 0x1c(r1)
lbl_80085734:
lbzu r3, 1(r31)
extsb r3, r3
b lbl_8008577C
lbl_80085740:
lis r4, __ctype_map@ha
addi r5, r4, __ctype_map@l
b lbl_80085768
lbl_8008574C:
lwz r0, 0x1c(r1)
mulli r0, r0, 0xa
add r3, r3, r0
addi r0, r3, -48
stw r0, 0x1c(r1)
lbzu r3, 1(r31)
extsb r3, r3
lbl_80085768:
clrlwi r0, r3, 0x18
add r4, r5, r0
lbz r0, 0(r4)
rlwinm. r0, r0, 0, 0x1b, 0x1b
bne lbl_8008574C
lbl_8008577C:
lwz r0, 0x1c(r1)
cmpwi r0, 0x1fd
ble lbl_800857B8
li r0, 0xff
stb r0, 0x19(r1)
addi r3, r31, 1
lwz r4, 0x14(r1)
lwz r0, 0x18(r1)
stw r4, 0(r30)
stw r0, 4(r30)
lwz r4, 0x1c(r1)
lwz r0, 0x20(r1)
stw r4, 8(r30)
stw r0, 0xc(r30)
b lbl_80085AA0
lbl_800857B8:
cmpwi r3, 0x2e
bne lbl_80085844
li r0, 1
stb r0, 0x16(r1)
lbzu r3, 1(r31)
extsb r3, r3
cmpwi r3, 0x2a
bne lbl_80085808
addi r3, r29, 0
li r4, 1
bl __va_arg
lwz r0, 0(r3)
cmpwi r0, 0
stw r0, 0x20(r1)
bge lbl_800857FC
li r0, 0
stb r0, 0x16(r1)
lbl_800857FC:
lbzu r3, 1(r31)
extsb r3, r3
b lbl_80085844
lbl_80085808:
lis r4, __ctype_map@ha
addi r5, r4, __ctype_map@l
b lbl_80085830
lbl_80085814:
lwz r0, 0x20(r1)
mulli r0, r0, 0xa
add r3, r3, r0
addi r0, r3, -48
stw r0, 0x20(r1)
lbzu r3, 1(r31)
extsb r3, r3
lbl_80085830:
clrlwi r0, r3, 0x18
add r4, r5, r0
lbz r0, 0(r4)
rlwinm. r0, r0, 0, 0x1b, 0x1b
bne lbl_80085814
lbl_80085844:
cmpwi r3, 0x68
li r4, 1
beq lbl_8008586C
bge lbl_80085860
cmpwi r3, 0x4c
beq lbl_800858B8
b lbl_800858C4
lbl_80085860:
cmpwi r3, 0x6c
beq lbl_80085890
b lbl_800858C4
lbl_8008586C:
li r0, 2
stb r0, 0x18(r1)
lbz r0, 1(r31)
cmpwi r0, 0x68
bne lbl_800858C8
stb r4, 0x18(r1)
lbzu r3, 1(r31)
extsb r3, r3
b lbl_800858C8
lbl_80085890:
li r0, 3
stb r0, 0x18(r1)
lbz r0, 1(r31)
cmpwi r0, 0x6c
bne lbl_800858C8
li r0, 4
stb r0, 0x18(r1)
lbzu r3, 1(r31)
extsb r3, r3
b lbl_800858C8
lbl_800858B8:
li r0, 5
stb r0, 0x18(r1)
b lbl_800858C8
lbl_800858C4:
li r4, 0
lbl_800858C8:
cmpwi r4, 0
beq lbl_800858D8
lbzu r3, 1(r31)
extsb r3, r3
lbl_800858D8:
addi r0, r3, -69
stb r3, 0x19(r1)
cmplwi r0, 0x33
bgt lbl_80085A74
lis r3, "@1186"@ha
addi r3, r3, "@1186"@l
slwi r0, r0, 2
lwzx r0, r3, r0
mtctr r0
bctr
lbl_80085900:
lbz r0, 0x18(r1)
cmplwi r0, 5
bne lbl_80085918
li r0, 0xff
stb r0, 0x19(r1)
b lbl_80085A7C
lbl_80085918:
lbz r0, 0x16(r1)
cmplwi r0, 0
bne lbl_80085930
li r0, 1
stw r0, 0x20(r1)
b lbl_80085A7C
lbl_80085930:
lbz r0, 0x14(r1)
cmplwi r0, 2
bne lbl_80085A7C
li r0, 1
stb r0, 0x14(r1)
b lbl_80085A7C
lbl_80085948:
lbz r0, 0x18(r1)
cmplwi r0, 2
beq lbl_8008595C
cmplwi r0, 4
bne lbl_80085968
lbl_8008595C:
li r0, 0xff
stb r0, 0x19(r1)
b lbl_80085A7C
lbl_80085968:
lbz r0, 0x16(r1)
cmplwi r0, 0
bne lbl_80085A7C
li r0, 6
stw r0, 0x20(r1)
b lbl_80085A7C
lbl_80085980:
lwz r0, 0x20(r1)
cmpwi r0, 0
bne lbl_80085994
li r0, 1
stw r0, 0x20(r1)
lbl_80085994:
lbz r0, 0x18(r1)
cmplwi r0, 2
beq lbl_800859B0
cmplwi r0, 4
beq lbl_800859B0
cmplwi r0, 1
bne lbl_800859BC
lbl_800859B0:
li r0, 0xff
stb r0, 0x19(r1)
b lbl_80085A7C
lbl_800859BC:
lbz r0, 0x16(r1)
cmplwi r0, 0
bne lbl_80085A7C
li r0, 6
stw r0, 0x20(r1)
b lbl_80085A7C
lbl_800859D4:
li r0, 0x78
stb r0, 0x19(r1)
li r0, 1
li r3, 3
stb r0, 0x17(r1)
li r0, 8
stb r3, 0x18(r1)
stw r0, 0x20(r1)
b lbl_80085A7C
lbl_800859F8:
lbz r3, 0x18(r1)
cmplwi r3, 3
bne lbl_80085A10
li r0, 6
stb r0, 0x18(r1)
b lbl_80085A7C
lbl_80085A10:
lbz r0, 0x16(r1)
cmplwi r0, 0
bne lbl_80085A24
cmplwi r3, 0
beq lbl_80085A7C
lbl_80085A24:
li r0, 0xff
stb r0, 0x19(r1)
b lbl_80085A7C
lbl_80085A30:
lbz r0, 0x18(r1)
cmplwi r0, 3
bne lbl_80085A48
li r0, 6
stb r0, 0x18(r1)
b lbl_80085A7C
lbl_80085A48:
cmplwi r0, 0
beq lbl_80085A7C
li r0, 0xff
stb r0, 0x19(r1)
b lbl_80085A7C
lbl_80085A5C:
lbz r0, 0x18(r1)
cmplwi r0, 5
bne lbl_80085A7C
li r0, 0xff
stb r0, 0x19(r1)
b lbl_80085A7C
lbl_80085A74:
li r0, 0xff
stb r0, 0x19(r1)
lbl_80085A7C:
lwz r4, 0x14(r1)
addi r3, r31, 1
lwz r0, 0x18(r1)
stw r4, 0(r30)
stw r0, 4(r30)
lwz r4, 0x1c(r1)
lwz r0, 0x20(r1)
stw r4, 8(r30)
stw r0, 0xc(r30)
lbl_80085AA0:
lwz r0, 0x3c(r1)
lwz r31, 0x34(r1)
lwz r30, 0x30(r1)
mtlr r0
lwz r29, 0x2c(r1)
addi r1, r1, 0x38
blr
.section .rodata, "a"
.balign 8
"@stringBase0":
.4byte 0x002D496E
.4byte 0x6600496E
.4byte 0x66004E61
.4byte 0x4E000000
.section .data, "wa"
"@1009":
.4byte lbl_800851D8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_80085178
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_80085178
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851B0
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851C4
.4byte lbl_800851E8
.4byte lbl_800851E8
.4byte lbl_800851D8
"@1066":
.4byte lbl_80085468
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085430
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085430
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085448
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085458
.4byte lbl_80085474
.4byte lbl_80085474
.4byte lbl_80085468
"@1186":
.4byte lbl_80085994
.4byte lbl_80085A74
.4byte lbl_80085980
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085900
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_800859F8
.4byte lbl_80085900
.4byte lbl_80085994
.4byte lbl_80085948
.4byte lbl_80085980
.4byte lbl_80085A74
.4byte lbl_80085900
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A5C
.4byte lbl_80085900
.4byte lbl_800859D4
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085A30
.4byte lbl_80085A74
.4byte lbl_80085900
.4byte lbl_80085A74
.4byte lbl_80085A74
.4byte lbl_80085900
"@1185":
.4byte lbl_800856A8
.4byte lbl_800856E4
.4byte lbl_800856E4
.4byte lbl_800856C0
.4byte lbl_800856E4
.4byte lbl_800856E4
.4byte lbl_800856E4
.4byte lbl_800856E4
.4byte lbl_800856E4
.4byte lbl_800856E4
.4byte lbl_800856E4
.4byte lbl_8008569C
.4byte lbl_800856E4
.4byte lbl_80085690
.4byte lbl_800856E4
.4byte lbl_800856E4
.4byte lbl_800856CC
.section .sdata, "wa"
"@wstringBase0":
.4byte 0
.4byte 0
.section .sdata2, "a"
.balign 8
"@919":
.4byte 0
.4byte 0