Skip to content

Instantly share code, notes, and snippets.

@illustris illustris/dram0.asm
Created Jun 14, 2018

Embed
What would you like to do?
DRAM0_BASE disassembly
POP {R4, R5, R6, R7, R8, PC}
BL #0xFFFB7C0C
TST R4, #0x20
BNE #0xFFFFFFC0
B #0xFFFFFFC8
MOV R0, R5
BL #0xFFFB1698
CMP R0, #0
BNE #0xFFFFFFC0
B #0xFFFFFFD0
PUSH {R4, R5, R6, R7, R8, LR}
MOV R6, R1
LDR R4, [R0, #0x24]
SUB SP, SP, #0x18
MOV R5, R0
MOV R8, R2
MOV R7, R3
ANDS R1, R4, #0x80
BNE #0x6C
TST R4, #0x40
BNE #0xC0
TST R4, #0x20
BEQ #0x64
ADD SP, SP, #0x18
POP {R4, R5, R6, R7, R8, PC}
TST R4, #0x100
BNE #0xD0
MOV R1, R5
MOV R0, SP
MOV R2, #0x18
BL #0xFFFB16CC
SUBS R3, R0, #0
BEQ #0x5C
MOV R1, #0
MOVW R2, #0x4EC5
STR R1, [R3, #8]
MOVT R2, #0xC4EC
LDR R1, [R6, #0x18]
MOV R0, SP
STR R8, [R3, #0x10]
STR R7, [R3, #0x14]
SUB R6, R6, R1
ASR R6, R6, #6
MUL R6, R2, R6
STR R6, [R3, #0xC]
BL #0xFFFAADFC
ADD SP, SP, #0x18
POP {R4, R5, R6, R7, R8, PC}
BL #0xFFFB7C0C
TST R4, #0x20
BNE #0x5C
B #0x64
MOV R0, R5
BL #0xFFFB1698
CMP R0, #0
BNE #0x5C
B #0x6C
PUSH {R4, R5, R6, R7, LR}
MOV R6, R1
LDR R4, [R0, #0x24]
SUB SP, SP, #0x1C
MOV R5, R0
MOV R7, R2
ANDS R1, R4, #0x80
BNE #0x124
TST R4, #0x40
BNE #0x18C
TST R4, #0x20
BEQ #0x11C
ADD SP, SP, #0x1C
POP {R4, R5, R6, R7, PC}
TST R4, #0x100
BNE #0x19C
MOV R1, R5
MOV R0, SP
MOV R2, #0x20
BL #0xFFFB16CC
SUBS R3, R0, #0
BEQ #0x114
MOV R2, #0
MOVW R1, #0x4EC5
STR R2, [R3, #8]
MOVT R1, #0xC4EC
LDR R2, [R6, #0x18]
MOV R0, SP
STR R7, [R3, #0x10]
SUB R2, R6, R2
ASR R2, R2, #6
MUL R2, R1, R2
STR R2, [R3, #0xC]
LDR R2, [R6, #0x2D0]
STR R2, [R3, #0x14]
LDR R2, [R6, #0x2D4]
STR R2, [R3, #0x18]
LDR R2, [R6, #0x2D8]
STR R2, [R3, #0x1C]
BL #0xFFFAADFC
ADD SP, SP, #0x1C
POP {R4, R5, R6, R7, PC}
BL #0xFFFB7C0C
TST R4, #0x20
BNE #0x114
B #0x11C
MOV R0, R5
BL #0xFFFB1698
CMP R0, #0
BNE #0x114
B #0x124
PUSH {R4, R5, R6, LR}
MOV R6, R1
LDR R4, [R0, #0x24]
SUB SP, SP, #0x18
MOV R5, R0
ANDS R1, R4, #0x80
BNE #0x1EC
TST R4, #0x40
BNE #0x218
TST R4, #0x20
BEQ #0x1E4
ADD SP, SP, #0x18
POP {R4, R5, R6, PC}
TST R4, #0x100
BNE #0x228
MOV R1, R5
MOV R0, SP
MOV R2, #0xC
BL #0xFFFB16CC
CMP R0, #0
BEQ #0x1DC
STR R6, [R0, #8]
MOV R0, SP
BL #0xFFFAADFC
ADD SP, SP, #0x18
POP {R4, R5, R6, PC}
BL #0xFFFB7C0C
TST R4, #0x20
BNE #0x1DC
B #0x1E4
MOV R0, R5
BL #0xFFFB1698
CMP R0, #0
BNE #0x1DC
B #0x1EC
PUSH {R4, R5, R6, R7, R8, LR}
MOV R8, R1
LDR R4, [R0, #0x24]
SUB SP, SP, #0x18
MOV R5, R0
MOV R7, R2
MOV R6, R3
ANDS R1, R4, #0x80
BNE #0x280
TST R4, #0x40
BNE #0x2B4
TST R4, #0x20
BEQ #0x278
ADD SP, SP, #0x18
POP {R4, R5, R6, R7, R8, PC}
TST R4, #0x100
BNE #0x2C4
MOV R1, R5
MOV R0, SP
MOV R2, #0x14
BL #0xFFFB16CC
SUBS R3, R0, #0
BEQ #0x270
STR R8, [R3, #8]
MOV R0, SP
STR R7, [R3, #0xC]
STR R6, [R3, #0x10]
BL #0xFFFAADFC
ADD SP, SP, #0x18
POP {R4, R5, R6, R7, R8, PC}
BL #0xFFFB7C0C
TST R4, #0x20
BNE #0x270
B #0x278
MOV R0, R5
BL #0xFFFB1698
CMP R0, #0
BNE #0x270
B #0x280
PUSH {R4, R5, LR}
ADD R3, R0, #0x2000
SUB SP, SP, #0xC
MOV R1, R2
MOV R4, R0
LDR R5, [R3, #0x78]
BL #0xFFFAF3D4
CMP R0, #1
BEQ #0x304
ADD SP, SP, #0xC
POP {R4, R5, PC}
LDR R0, [R5, #0x14]
ADD R4, R4, #0x1040
LDR R3, [R5, #0xC]
ADD R4, R4, #0x18
LDR R2, [R5, #8]
MOVW R1, #0x4954
STR R0, [SP, #4]
MOVT R1, #0x807C
LDR IP, [R5, #0x10]
MOV R0, R4
STR IP, [SP]
BL #0xFFFB0170
MOV R0, R4
ADD SP, SP, #0xC
POP {R4, R5, LR}
B #0xFFFA4D20
PUSH {R4, R5, R6, LR}
ADD R3, R0, #0x2000
MOV R1, R2
MOV R4, R0
LDR R5, [R3, #0x78]
BL #0xFFFAF3D4
CMP R0, #1
POPNE {R4, R5, R6, PC}
ADD R4, R4, #0x1040
MOVW R1, #0x4988
ADD R4, R4, #0x18
LDR R3, [R5, #0xC]
MOV R0, R4
LDR R2, [R5, #8]
MOVT R1, #0x807C
BL #0xFFFB0170
MOV R0, R4
POP {R4, R5, R6, LR}
B #0xFFFA4D20
PUSH {R4, R5, R6, LR}
ADD R3, R0, #0x2000
SUB SP, SP, #0x10
MOV R1, R2
MOV R5, R0
LDR R4, [R3, #0x78]
BL #0xFFFAF3D4
CMP R0, #1
BEQ #0x3BC
ADD SP, SP, #0x10
POP {R4, R5, R6, PC}
LDRB R6, [R4, #0x18]
MOVW R1, #0x9B18
LDR IP, [R4, #0x10]
MOVT R1, #0x807B
LDR LR, [R4, #0x14]
MOVW R0, #0x49A8
CMP R6, #0
ADD R5, R5, #0x1040
MOVT R0, #0x807C
ADD R5, R5, #0x18
MOVNE R0, R1
MOVW R1, #0x49B0
LDR R2, [R4, #8]
MOVT R1, #0x807C
LDR R3, [R4, #0xC]
STR R0, [SP, #8]
MOV R0, R5
STR LR, [SP, #4]
STR IP, [SP]
BL #0xFFFB0170
MOV R0, R5
ADD SP, SP, #0x10
POP {R4, R5, R6, LR}
B #0xFFFA4D20
PUSH {R4, R5, LR}
ADD R3, R0, #0x2000
SUB SP, SP, #0xC
MOV R1, R2
MOV R4, R0
LDR R5, [R3, #0x78]
BL #0xFFFAF3D4
CMP R0, #1
BEQ #0x448
ADD SP, SP, #0xC
POP {R4, R5, PC}
LDR IP, [R5, #0x10]
ADD R4, R4, #0x1040
ADD R4, R4, #0x18
MOVW R1, #0x49FC
LDR R3, [R5, #0xC]
MOV R0, R4
LDR R2, [R5, #8]
MOVT R1, #0x807C
STR IP, [SP]
BL #0xFFFB0170
MOV R0, R4
ADD SP, SP, #0xC
POP {R4, R5, LR}
B #0xFFFA4D20
PUSH {R4, R5, R6, LR}
ADD R3, R0, #0x2000
MOV R1, R2
MOV R4, R0
LDR R5, [R3, #0x78]
BL #0xFFFAF3D4
CMP R0, #1
POPNE {R4, R5, R6, PC}
ADD R4, R4, #0x1040
MOVW R1, #0x90C0
ADD R4, R4, #0x18
LDR R2, [R5, #8]
MOV R0, R4
MOVT R1, #0x807B
BL #0xFFFB0170
MOV R0, R4
POP {R4, R5, R6, LR}
B #0xFFFA4D20
PUSH {R4, R5, R6, R7, R8, SB, SL, LR}
ADD R3, R0, #0x2000
SUB SP, SP, #0x10
MOV R1, R2
MOV R4, R0
LDR R5, [R3, #0x78]
BL #0xFFFAF3D4
CMP R0, #1
BEQ #0x4F4
ADD SP, SP, #0x10
POP {R4, R5, R6, R7, R8, SB, SL, PC}
LDRB R3, [R5, #0x18]
MOVW R1, #0x9B18
LDR SB, [R5, #8]
MOVT R1, #0x807B
LDR SL, [R5, #0xC]
MOVW R6, #0x49A8
CMP R3, #0
LDR R7, [R5, #0x10]
LDR R8, [R5, #0x14]
MOVW R2, #0xC2BC
MOVT R6, #0x807C
MOVT R2, #0x8070
MOVNE R6, R1
ADD R0, R4, #0x30
LDR R1, [R5, #0x1C]
ADD R4, R4, #0x1040
BL #0xFFFAE4C0
ADD R4, R4, #0x18
MOVW R1, #0x4A20
STR R6, [SP, #8]
MOV R3, SL
STR R0, [SP, #0xC]
MOV R2, SB
MOV R0, R4
STR R8, [SP, #4]
STR R7, [SP]
MOVT R1, #0x807C
BL #0xFFFB0170
MOV R0, R4
ADD SP, SP, #0x10
POP {R4, R5, R6, R7, R8, SB, SL, LR}
B #0xFFFA4D20
PUSH {R4, R5, R6, R7, R8, LR}
ADD R3, R0, #0x2000
SUB SP, SP, #8
MOV R1, R2
MOV R4, R0
LDR R5, [R3, #0x78]
BL #0xFFFAF3D4
CMP R0, #1
BEQ #0x5A0
ADD SP, SP, #8
POP {R4, R5, R6, R7, R8, PC}
ADD R6, R4, #0x30
LDR R1, [R5, #0xC]
LDR R2, [PC, #0x58]
MOV R0, R6
LDR R7, [R5, #8]
ADD R4, R4, #0x1040
BL #0xFFFAE4C0
MOV R8, R0
MOV R0, R6
LDR R6, [R5, #0x10]
ADD R4, R4, #0x18
LDR R1, [R5, #0x14]
LDR R2, [PC, #0x34]
BL #0xFFFAE4C0
MOVW R1, #0x4A78
STR R0, [SP, #4]
STR R6, [SP]
MOV R0, R4
MOV R3, R8
MOV R2, R7
MOVT R1, #0x807C
BL #0xFFFB0170
MOV R0, R4
ADD SP, SP, #8
POP {R4, R5, R6, R7, R8, LR}
B #0xFFFA4D20
RSBSHI IP, R0, IP, LSL #6
RSBSHI IP, R0, R4, LSR #6
PUSH {R4, R5, R6, R7, LR}
ADD R3, R0, #0x2000
SUB SP, SP, #0x14
MOV R1, R2
MOV R5, R0
LDR R6, [R3, #0x78]
BL #0xFFFAF3D4
CMP R0, #1
BEQ #0x63C
ADD SP, SP, #0x14
POP {R4, R5, R6, R7, PC}
LDR R1, [R6, #0xC]
MOV R4, R0
LDR R2, [PC, #0x5C]
ADD R0, R5, #0x30
LDR R7, [R6, #8]
ADD R5, R5, #0x1040
BL #0xFFFAE4C0
LDR IP, [R6, #0x18]
ADD R5, R5, #0x18
MOVW R1, #0x4A9C
MOV R3, R0
MOV R2, R7
MOV R0, R5
MOVT R1, #0x807C
LSL R4, R4, IP
STR R4, [SP, #0xC]
LDR IP, [R6, #0x14]
STR IP, [SP, #8]
LDR IP, [R6, #0x1C]
STR IP, [SP, #4]
LDR IP, [R6, #0x10]
STR IP, [SP]
BL #0xFFFB0170
MOV R0, R5
ADD SP, SP, #0x14
POP {R4, R5, R6, R7, LR}
B #0xFFFA4D20
RSBSHI IP, R0, R4, ROR R3
PUSH {R4, R5, R6, R7, LR}
ADD R3, R0, #0x2000
SUB SP, SP, #0xC
MOV R1, R2
MOV R4, R0
LDR R5, [R3, #0x78]
BL #0xFFFAF3D4
CMP R0, #1
BEQ #0x6D8
ADD SP, SP, #0xC
POP {R4, R5, R6, R7, PC}
LDR R6, [R5, #8]
ADD R0, R4, #0x30
LDR R7, [R5, #0xC]
ADD R4, R4, #0x1040
LDR R1, [R5, #0x10]
ADD R4, R4, #0x18
LDR R2, [PC, #0x2C]
BL #0xFFFAE4C0
MOVW R1, #0x4AE0
STR R0, [SP]
MOV R3, R7
MOV R0, R4
MOV R2, R6
MOVT R1, #0x807C
BL #0xFFFB0170
MOV R0, R4
ADD SP, SP, #0xC
POP {R4, R5, R6, R7, LR}
B #0xFFFA4D20
RSBSHI IP, R0, IP, LSL #7
PUSH {R4, R5, R6, R7, R8, SB, LR}
MOV R3, #0
LDR R4, [R0, #0x24]
SUB SP, SP, #0xC
MOV R6, R0
LDR R5, [R0, #0x2C]
STRB R3, [R0, #0x2DC]
ADD R5, R4, R5
CMP R4, R5
BHS #0x7BC
MOVW SB, #0x6504
MOVW R8, #0xFBEC
MOVW R7, #0x4180
MOVT SB, #0x80A0
MOVT R8, #0x80A6
MOVT R7, #0x80A5
MOV R0, R4
BL #0xFFF152B0
CMP R0, #0
MOV R1, #0x340
BEQ #0x7A4
LDR IP, [SB]
LDR R0, [R8]
SUB R2, R4, IP
LDR R3, [R0, R2, LSL #5]
LSL R2, R2, #5
ADD R0, R0, R2
LSR R3, R3, #0x1F
MLA R3, R1, R3, R7
CMP R6, R3
BEQ #0x7DC
ADD R4, R4, #0x400
CMP R5, R4
BHI #0x768
LDR R4, [R6, #0x24]
LDR R5, [R6, #0x2C]
ADD R5, R4, R5
SUB R5, R5, #1
STR R4, [R6, #0x2C8]
BIC R5, R5, #0x3FC
STR R4, [R6, #0x2CC]
BIC R5, R5, #3
STR R5, [R6, #0x2C4]
ADD SP, SP, #0xC
POP {R4, R5, R6, R7, R8, SB, PC}
MOV R3, #1
ADD R2, IP, R2, ASR #5
STR R3, [SP]
MOV R1, #0
MOV R3, #3
BL #0xFFFDF40C
B #0x7A4
CLZ IP, R1
PUSH {R4, R5, R6, R7, R8, SB, LR}
LSR IP, IP, #5
LDRB LR, [R0, #0x48]
SUB SP, SP, #0xC
CMP R2, #0
MOVEQ R2, IP
ORRNE R2, IP, #1
ORRS R2, R2, LR
BEQ #0x828
ADD SP, SP, #0xC
POP {R4, R5, R6, R7, R8, SB, PC}
MOVW SB, #0xFBEC
MOVW R7, #0x6504
MOVT SB, #0x80A6
MOVT R7, #0x80A0
LDR R2, [SB]
MOV R6, R1
LDR IP, [R7]
MOV R5, R3
MOV R3, #1
MOV R4, R0
SUB R2, R6, R2
MOV R1, R3
STR R3, [SP]
MOV R0, R6
MOV R3, #3
ADD R2, IP, R2, ASR #5
LDR R8, [R4, #0x10]
BL #0xFFFDF40C
LDR R1, [SB]
CMP R5, #0
LDR R3, [R7]
SUB R1, R6, R1
ADD R1, R3, R1, ASR #5
BEQ #0x8B0
LDR R3, [R8, #0x2C8]
CMP R1, R3
STRHI R1, [R8, #0x2C8]
LDR R3, [R4, #0x44]
CMP R3, #0
BEQ #0x820
LDR R3, [R8, #0x2CC]
CMP R1, R3
STRHI R1, [R8, #0x2CC]
B #0x820
LDR R3, [R8, #0x2C4]
CMP R1, R3
STRLO R1, [R8, #0x2C4]
ADD SP, SP, #0xC
POP {R4, R5, R6, R7, R8, SB, PC}
PUSH {R4, R5, R6, R7, R8, SB, SL, FP, LR}
SUB SP, SP, #0xC
LDR R4, [R0]
MOV R6, R0
MOV SL, SP
STR SP, [SP]
STR SP, [SP, #4]
CMP R0, R4
LDR R3, [R4]
MOVNE SB, #0x100
SUBNE R4, R4, #0x14
MOVNE R8, #0x200
SUBNE R5, R3, #0x14
BEQ #0x978
LDR R1, [R4, #0x18]
MOV R2, #8
MOV R0, R4
STR R1, [R3, #4]
STR R3, [R1]
LDR R7, [R4, #0x1C]
STR SB, [R4, #0x14]
STR R8, [R4, #0x18]
MOV R1, R7
BL #0xFFFDF67C
CMP R7, #0
MOV R3, #1
LSL FP, R3, R7
BNE #0x9A4
CMP FP, #0
ADDNE R3, R4, #0x14
MOVNE R2, #0
BEQ #0x964
LDR R1, [SP]
ADD R2, R2, #1
CMP FP, R2
STR R3, [R1, #4]
STM R3, {R1, SL}
STR R3, [SP]
ADD R3, R3, #0x20
BNE #0x944
MOV R4, R5
LDR R3, [R5, #0x14]!
CMP R6, R5
SUB R5, R3, #0x14
BNE #0x8FC
LDR R3, [SP]
CMP SL, R3
BEQ #0x99C
LDR R3, [R6]
LDM SP, {R1, R2}
STR R6, [R1, #4]
STR R1, [R6]
STR R3, [R2]
STR R2, [R3, #4]
ADD SP, SP, #0xC
POP {R4, R5, R6, R7, R8, SB, SL, FP, PC}
MOV R1, R7
MOV R0, R4
BL #0xFFFDDC5C
B #0x934
PUSH {R3, R4, R5, R6, R7, R8, SB, SL, FP, LR}
LDR R3, [R0]
CMP R0, R3
LDR R2, [R3]
BEQ #0xA48
MOVW FP, #0xFBEC
MOVW R7, #0x6504
SUB R3, R3, #0x14
SUB SL, R2, #0x14
MOV R6, R0
MOVT FP, #0x80A6
MOVT R7, #0x80A0
MOV R5, #0
MOV SB, #0x100
MOV R8, #0x200
LDR LR, [R3, #0x18]
MOV R0, R3
LDR IP, [FP]
MOV R1, #0
LDR R4, [R7]
STR LR, [R2, #4]
SUB IP, R3, IP
STR R2, [LR]
STR SB, [R3, #0x14]
STR R8, [R3, #0x18]
ADD R4, R4, IP, ASR #5
BL #0xFFFE04C0
MOV R1, SL
CMP R5, R4
LDR R2, [R1, #0x14]!
MOVLO R5, R4
MOV R3, SL
CMP R6, R1
SUB SL, R2, #0x14
BNE #0x9F0
MOV R0, R5
POP {R3, R4, R5, R6, R7, R8, SB, SL, FP, PC}
MOV R5, #0
B #0xA40
MOVW R2, #0x3C2C
PUSH {R4, LR}
MOVT R2, #0x80A0
MVN R0, #0
MOV R1, R2
BL #0x1AC794
MOVW R3, #0x3CE4
MOVT R3, #0x80A0
LDR R3, [R3]
CMP R0, R3
BGE #0xA94
MOVW R3, #0x4180
MOVW R1, #0x3C2C
MOVT R3, #0x80A5
MOVT R1, #0x80A0
LDR R0, [R3, #0x6EC]
BL #0xFFF47410
MOV R0, #0
POP {R4, PC}
PUSH {R4, R5, R6, LR}
MOV R4, R1
LDR R3, [R2, #0x44]
CMP R3, #0
BNE #0xAE8
MOV R5, R2
MRS R3, APSR
CPSID I
STR R3, [R1]
BL #0x46815C
SUBS R3, R0, #0
MOVNE R3, #1
BNE #0xAE0
LDR R2, [R4]
MSR CPSR_C, R2
MOV R2, #1
STRB R2, [R5, #0x4C]
MOV R0, R3
POP {R4, R5, R6, PC}
BL #0x4679A8
MOV R3, #1
STR R0, [R4]
MOV R0, R3
POP {R4, R5, R6, PC}
PUSH {R4, R5, R6, LR}
MOV R4, R2
LDRB R2, [R2]
MOV R5, R3
CMP R2, #0
BNE #0xB48
MOV R3, SP
BIC R2, R3, #0x1FC0
BIC R2, R2, #0x3F
LDR R1, [R2, #0xC]
LDR R0, [R1, #4]
LDR R0, [R0]
TST R0, #1
BNE #0xB58
LDR R0, [R2]
UBFX R0, R0, #1, #1
CMP R0, #0
BNE #0xB70
POP {R4, R5, R6, PC}
BL #0x467D18
MOV R3, #0
STRB R3, [R4]
B #0xB14
LDR R3, [R1, #0x404]
TST R3, #0x100
BEQ #0xB34
MOV R0, #1
STRB R0, [R5, #0x4C]
POP {R4, R5, R6, PC}
LDR R3, [R5, #0x44]
CMP R3, #0
BEQ #0xB64
MOV R0, #0
POP {R4, R5, R6, PC}
PUSH {R4, R5, R6, R7, R8, SB, SL, FP, LR}
SUB SP, SP, #0x2C
MOV LR, R1
STR R1, [SP, #0x14]
MOVW IP, #0xFBEC
MOVW R1, #0x6504
LDR R4, [LR]
MOVT R1, #0x80A0
MOVT IP, #0x80A6
LDR R1, [R1]
LDR R8, [IP]
MOV SB, R3
LDRB R3, [SP, #0x50]
CMP R4, R2
MOV R7, #0
SUB R1, R4, R1
MOV SL, R2
MOV FP, R0
STR R7, [SP, #0x24]
ADD R8, R8, R1, LSL #5
STRB R7, [SP, #0x23]
STR R3, [SP, #0xC]
BHS #0xF34
MOV R5, R7
MOV R6, #1
STR R7, [SP, #0x10]
TST R4, #0x1F
BEQ #0xD24
LDR R3, [R8]
CMP R7, #0
MOVEQ R7, R8
ADD R5, R5, #1
TST R3, #0x8000
BNE #0xCE4
LDR R3, [R8, #0x14]
TST R3, #1
BNE #0xCE4
LDR R3, [R8, #0xC]
CMN R3, #0x80
BEQ #0xE4C
LDR R3, [SP, #0xC]
CMP R3, #0
BNE #0xC40
ADD R4, R4, #1
ADD R8, R8, #0x20
CMP SL, R4
BHI #0xBEC
LDRB R3, [SP, #0x23]
CMP R3, #0
BNE #0xE28
LDR R3, [SP, #0x14]
LDR R6, [SP, #0x10]
LDR R3, [R3]
STR R3, [SP, #0x18]
MOVW R2, #0x754C
CMP SL, R4
MOVT R2, #0x80A5
MOVLO R4, SL
LDR R3, [R2, #4]
CMP R3, #0
BGT #0xD6C
LDR R3, [SP, #0xC]
LDR R2, [SP, #0x14]
CMP SL, R4
MOVLS R3, #0
ANDHI R3, R3, #1
CMP R3, #0
STR R4, [R2]
BNE #0xD48
CMP SL, R4
BEQ #0xF08
LDR R2, [SP, #0x10]
LDR R3, [FP, #0x20]
CMP R2, #0
ADD R5, R3, R5
STR R5, [FP, #0x20]
BEQ #0xCD8
MRS R0, APSR
CPSID I
LDR R3, [PC, #0x280]
MRC P15, #0, R1, C13, C0, #4
LDR R2, [R3, R1]
ADD R2, R2, R6
STR R2, [R3, R1]
MSR CPSR_C, R0
MOV R0, R6
ADD SP, SP, #0x2C
POP {R4, R5, R6, R7, R8, SB, SL, FP, PC}
LDR R3, [R8]
ANDS R3, R3, #0x8000
BEQ #0xD10
LDRH R1, [R8, #0x3A]
CMP R1, #0xA
BHI #0xC24
MOV R3, #0x20
LSL R2, R6, R1
LSL R3, R3, R1
SUB R3, R3, #0x20
B #0xD14
MOV R2, #1
SUB R4, R4, #1
ADD R8, R8, R3
ADD R4, R4, R2
B #0xC24
LDR R0, [FP, #0x10]
MOV R3, FP
ADD R2, SP, #0x23
LDR R1, [SP, #0x24]
ADD R0, R0, #0x280
BL #0xAFC
CMP R0, #0
BEQ #0xBF4
B #0xC40
CMP SL, R4
BEQ #0xF00
LDR R3, [FP, #0x20]
MOV R6, #0
MOV R0, R6
ADD R5, R3, R5
STR R5, [FP, #0x20]
ADD SP, SP, #0x2C
POP {R4, R5, R6, R7, R8, SB, SL, FP, PC}
MOV R3, SP
MOVW R0, #0x3C2C
BIC R1, R3, #0x1FC0
MOVT R0, #0x80A0
BIC R1, R1, #0x3F
LDR R3, [R1, #0x10]
CMP R3, #0
ADD LR, R3, #0x1F
AND IP, R3, #0x1F
MOVLT R3, LR
ASR R3, R3, #5
LDR R3, [R0, R3, LSL #2]
LSR IP, R3, IP
TST IP, #1
BEQ #0xC78
LDR R3, [R1, #4]
ADD R3, R3, #1
STR R3, [R1, #4]
LDR R8, [R2, #0x10]
CMP R8, #0
BEQ #0xDF4
STR R7, [SP, #0x1C]
LDR SB, [R8]
LDR R7, [SP, #0x18]
LDR R0, [R8, #4]
MOV R3, R5
STR R6, [SP]
MOV R2, R4
MOV R1, R7
BLX SB
LDR SB, [R8, #0xC]!
CMP SB, #0
BNE #0xDCC
LDR R7, [SP, #0x1C]
MOV R3, SP
BIC R3, R3, #0x1FC0
BIC R3, R3, #0x3F
LDR R2, [R3, #4]
SUB R2, R2, #1
CMP R2, #0
STR R2, [R3, #4]
BNE #0xC78
LDR R3, [R3]
TST R3, #2
BEQ #0xC78
BL #0x463D08
B #0xC78
LDR R0, [FP, #0x10]
LDR R1, [SP, #0x24]
LDR R6, [SP, #0x10]
ADD R0, R0, #0x280
BL #0x467D18
LDR R3, [SP, #0x14]
LDR R3, [R3]
STR R3, [SP, #0x18]
B #0xC5C
LDRB R3, [SP, #0x23]
CMP R3, #0
BEQ #0xED0
LDR R3, [R8, #0x1C]
MOV R0, R8
MOV R1, R3
STR R3, [SP, #0x18]
BL #0xFFFE14DC
CMP R0, #0
LDR R3, [SP, #0x18]
BEQ #0xC40
STR R3, [R8, #0x1C]
LDR R2, [FP, #0x14]
LDR R3, [SP, #0xC]
LDR R1, [SP, #0x10]
ADD R2, R2, R0
STR R2, [FP, #0x14]
CMP R3, #0
LDR R2, [SB, #4]
ADD R3, R8, #0x14
ADD R1, R1, R0
STR R3, [SB, #4]
STR R1, [SP, #0x10]
STR SB, [R8, #0x14]
STR R2, [R8, #0x18]
STR R3, [R2]
BNE #0xF20
LDR R2, [FP, #0x18]
LDR R3, [FP, #0x14]
CMP R2, R3
BHI #0xF20
ADD R4, R4, R0
B #0xC40
LDR R0, [FP, #0x10]
MOV R2, FP
ADD R1, SP, #0x24
ADD R0, R0, #0x280
BL #0xA9C
CMP R0, #0
STRB R0, [SP, #0x23]
BEQ #0xC4C
LDR R3, [R8, #0xC]
CMN R3, #0x80
BNE #0xC24
B #0xE58
MOV R6, #0
STR R6, [SP, #0x10]
MOV R1, R7
MOV R3, #0
MOV R2, R6
MOV R0, FP
BL #0x7F8
B #0xCA0
SUB R4, R4, #1
SUB R3, R0, #-0x7FFFFFF
ADD R4, R4, R0
ADD R8, R8, R3, LSL #5
B #0xC30
MOV R6, R7
STR R4, [SP, #0x18]
MOV R5, R7
STR R7, [SP, #0x10]
B #0xC5C
ADDSHI SP, R5, R8, LSL R3
PUSH {R4, R5, R6, R7, R8, SB, SL, LR}
MOV R4, R1
LDR R3, [R1]
SUB SP, SP, #0x10
CMP R1, R3
BEQ #0xFA0
LDR R3, [R4]
MOV LR, #0x100
MOV IP, #0x200
LDR R2, [R3, #4]
SUB R0, R3, #0x14
LDR R1, [R3]
STR R2, [R1, #4]
STR R1, [R2]
STR LR, [R3]
STR IP, [R3, #4]
LDR R3, [R4, #0x14]
SUB R3, R3, #1
STR R3, [R4, #0x14]
ADD SP, SP, #0x10
POP {R4, R5, R6, R7, R8, SB, SL, PC}
LDRB R3, [R1, #0x4C]
CMP R3, #0
BEQ #0xFC0
LDR R3, [R4]
CMP R4, R3
BNE #0xF64
MOV R0, #0
B #0xF98
LDR R8, [R1, #0x10]
MOV R3, #0xFC00
LDR R2, [R1, #0x24]
MOVT R3, #0xFFFF
LDR SB, [R1, #0x28]
LDR R7, [R8, #0x24]
LDR R1, [R8, #0x2C]
AND R6, R2, R3
ADD SB, SB, #0x400
STR R2, [SP, #0xC]
ADD R2, R6, #0x400
AND SB, SB, R3
ADD R7, R7, R1
CMP R7, R2
MOVHS R7, R2
CMP R6, SB
BLO #0x1198
MOV R3, SP
BIC SL, R3, #0x1FC0
BIC SL, SL, #0x3F
B #0x10BC
MOVW R2, #0x6504
MOVW R3, #0xFBEC
MOVT R2, #0x80A0
MOVT R3, #0x80A6
LDR R1, [R2]
LDR R5, [R3]
SUB R1, R6, R1
ADD R5, R5, R1, LSL #5
CMP R5, #0
BEQ #0x10A4
LDR R3, [R5, #0xC]
CMN R3, #0x80
BEQ #0x1138
LDRB R3, [R4, #0x49]
CMP R3, #0
BEQ #0x10F8
LDRB R3, [R4, #0x48]
CMP R3, #0
BEQ #0x1148
MOV R2, #0
MOV R3, R4
STR R2, [SP]
ADD R1, SP, #0xC
MOV R2, R7
MOV R0, R4
BL #0xB84
LDR R2, [R4, #0x14]
LDR R3, [R4, #0x18]
CMP R2, R3
BHS #0x11AC
LDRB R3, [R4, #0x4C]
CMP R3, #0
BNE #0x11AC
LDR R3, [SP, #0xC]
CMP R3, R7
BLO #0x1198
SUB R3, R6, #0x400
MOV R7, R6
CMP SB, R3
STR R3, [SP, #0xC]
BHI #0x1198
MOV R6, R3
UBFX R3, R6, #0, #0xF
CMP R3, #0
BNE #0x10D4
LDR R3, [SL]
TST R3, #2
BNE #0x1184
LDRB R3, [R8, #0x2DD]
CMP R3, #0
BNE #0x1014
MOV R2, R8
MOV R1, R7
MOV R0, R6
BL #0xFFFDF578
MOV R5, R0
B #0x1034
MOVW R3, #0xFBEC
MOVW R2, #0x6504
MOVT R3, #0x80A6
MOVT R2, #0x80A0
LDR R1, [R3]
MOV R0, R5
LDR IP, [R2]
MOV R3, #7
MOV R2, #2
SUB R1, R5, R1
ADD R1, IP, R1, ASR #5
BL #0xFFFDF3B8
CMP R0, #4
CMPNE R0, #1
BNE #0x10A4
B #0x1054
LDR R3, [R5, #0x1C]
CMP R3, #9
BLS #0x1048
B #0x10A4
MOVW R2, #0xFBEC
MOVW R3, #0x6504
MOVT R3, #0x80A0
MOVT R2, #0x80A6
LDR R2, [R2]
MOV R0, R5
LDR R1, [R3]
MOV R3, #1
SUB R5, R5, R2
MOV R2, #3
ADD R1, R1, R5, ASR #5
BL #0xFFFDF3B8
CMP R0, #0
BNE #0x10A4
B #0x1060
LDR R3, [R4, #0x44]
CMP R3, #0
BNE #0x10D4
MOV R3, #1
STRB R3, [R4, #0x4C]
MOV R0, R4
BL #0x8C4
LDR R3, [SP, #0xC]
STR R3, [R4, #0x24]
B #0xFAC
LDR R3, [SP, #0xC]
CMP R3, R7
SUBHS R6, R6, #0x400
STRHS R6, [SP, #0xC]
B #0x1198
LDR R3, [R0, #4]
AND R3, R3, #3
CMP R3, #2
BEQ #0x11D8
MOV R0, #0
BX LR
PUSH {R4, LR}
BL #0xFFFF7E88
CMP R0, #0
BEQ #0x1208
LDR R3, [R0, #0x3C]
CMP R3, #0
BEQ #0x1208
LDR R3, [R3, #0x34]
CMP R3, #0
BEQ #0x1208
MOV R0, #1
POP {R4, PC}
MOV R0, #0
POP {R4, PC}
PUSH {R4, R5, R6, LR}
AND IP, R2, #3
SUB SP, SP, #8
MOV R4, R0
MOV R5, R1
MOV R6, R3
STR R2, [SP]
LDR R2, [R0, IP, LSL #2]
BL #0xFFFE16F8
CMP R0, #0
MOVNE R0, #8
BEQ #0x1248
ADD SP, SP, #8
POP {R4, R5, R6, PC}
CMP R5, #3
LDR R3, [SP, #0x18]
LDRGT R2, [R4, #4]
MOV IP, #2
LDRLE R2, [R4]
MOV R1, #0x80
STR R3, [SP, #4]
MOV R0, R4
MOV R3, R6
STR R1, [SP]
MOV R1, #0
ADD R2, R2, IP, LSL R5
BL #0xFFFE084C
CMP R0, #0
MOVEQ R0, #1
MOVNE R0, #4
ADD SP, SP, #8
POP {R4, R5, R6, PC}
PUSH {R4, R5, R6, R7, R8, SB, SL, FP, LR}
SUB SP, SP, #0x3C
MOV SB, R0
MOV IP, SP
MOVW R4, #0x3A40
BIC R5, IP, #0x1FC0
STR R3, [SP, #0x28]
MOVT R4, #0x80A0
LDR R3, [SB, #0x10]
BIC R5, R5, #0x3F
MOV R0, #0
STR R1, [SP, #0x24]
STR R2, [SP, #0x14]
STR R3, [SP, #0x1C]
STR R0, [SP, #0x34]
STRB R0, [SP, #0x33]
LDR LR, [R4, #8]
LDR R3, [R4]
LDR IP, [R4, #0xC]
LDR R0, [R4, #4]
LDR R1, [R4, #0x18]
LDR R2, [R4, #0x14]
BIC R3, R3, R3, ASR #31
CMP LR, #0
ADDGE R3, R3, LR
CMP IP, #0
ADDGE R3, R3, IP
BIC R2, R2, R2, ASR #31
CMP R0, #0
ADDGE R3, R3, R0
CMP R1, #0
ADDGE R2, R2, R1
CMP R2, R3, LSR #1
BHI #0x1980
MOV R3, SP
BIC R3, R3, #0x1FC0
BIC R3, R3, #0x3F
LDR R5, [R3]
UBFX R3, R5, #1, #1
CMP R3, #0
BNE #0x19C0
LDRB R5, [SB, #0x4A]
CMP R5, #0
BNE #0x1764
STR R5, [SP, #0xC]
LDR R3, [SP, #0x24]
MOV R8, #0
LDR R2, [SP, #0x14]
CMP R3, R2
BHS #0x1A24
MOVW R2, #0xFBEC
MOVW FP, #0x6504
MOVT R2, #0x80A6
STR R8, [SP, #0x10]
MOV SL, R8
STR R2, [SP, #0x18]
MOVT FP, #0x80A0
MOV R4, R3
B #0x1420
LDR R2, [R6, #0x14]
TST R2, #1
BNE #0x149C
LDR R2, [R6, #0x14]
TST R2, #1
BNE #0x1794
MOV R2, R6
LDR R2, [R2]
TST R2, #0x20
BNE #0x158C
LDR R2, [R6, #4]
AND R2, R2, #3
CMP R2, #2
BEQ #0x17B8
LDR R3, [SP, #0xC]
CMP R3, #0
BEQ #0x1410
LDR R3, [SP, #0x10]
CMP R3, #0
BEQ #0x13EC
LDRB R3, [SP, #0x33]
CMP R3, #0
BNE #0x1744
ADD R0, SB, #8
BL #0x27B14
MOV R3, #0
STR R3, [SB, #0x18]
STR R3, [SB, #0x2C]
CMP R4, R5
LDRLO R3, [SB, #0x34]
MOVLO R2, #0
STRLO R2, [SP, #0x10]
MOVLO R2, #1
SUBLO R4, R5, #1
MOVHS R3, #0
STRHS R3, [SP, #0x10]
ADDLO R5, R5, R2, LSL R3
LDR R3, [SP, #0x14]
ADD R4, R4, #1
CMP R3, R4
BLS #0x14EC
LDR R3, [SP, #0xC]
CMP R5, R4
MOVHI R3, #0
ANDLS R3, R3, #1
CMP R3, #0
BEQ #0x145C
LDR R3, [SP, #0x10]
CMP R3, #0
BNE #0x14EC
LDR R3, [SB, #0x34]
MOV R2, #1
LSL R3, R2, R3
ADD R5, R3, R4
RSB R3, R3, #0
AND R5, R5, R3
TST R4, #0x1F
BEQ #0x14C8
LDR R3, [SP, #0x18]
CMP R8, #0
LDR R7, [FP]
ADD SL, SL, #1
LDR R3, [R3]
SUB R7, R4, R7
ADD R6, R3, R7, LSL #5
LDR R2, [R6, #0xC]
MOVEQ R8, R6
CMN R2, #0x80
BEQ #0x1568
LDR R2, [R3, R7, LSL #5]
TST R2, #0x8000
BEQ #0x137C
LDR R3, [R3, R7, LSL #5]
TST R3, #0x8000
BEQ #0x1584
LDRH R3, [R6, #0x3A]
CMP R3, #0xA
BHI #0x13B4
MOV R2, #1
LSL R3, R2, R3
SUB R4, R4, #1
ADD R4, R3, R4
B #0x13B4
LDR R3, [SP, #0x1C]
ADD R2, SP, #0x33
LDR R1, [SP, #0x34]
LDR R0, [R3, #0x18]
MOV R3, SB
ADD R0, R0, #0x700
BL #0xAFC
CMP R0, #0
BEQ #0x1464
LDR R3, [SP, #0x14]
CMP R4, R3
LDRB R3, [SP, #0x33]
BHI #0x193C
CMP R3, #0
BNE #0x1948
LDR R3, [SP, #0x14]
CMP R3, R4
BEQ #0x19EC
MOVW R2, #0x754C
MOVT R2, #0x80A5
LDR R3, [R2, #0x18]
CMP R3, #0
BGT #0x17E8
LDR IP, [SP, #0x10]
LDR R3, [SB, #0x1C]
CMP IP, #0
ADD R3, R3, SL
STR R3, [SB, #0x1C]
BEQ #0x155C
MRS R0, APSR
CPSID I
LDR R3, [PC, #0x4E8]
MRC P15, #0, R1, C13, C0, #4
LDR R2, [R3, R1]
ADD R2, R2, IP
STR R2, [R3, R1]
MSR CPSR_C, R0
MOV R0, R4
ADD SP, SP, #0x3C
POP {R4, R5, R6, R7, R8, SB, SL, FP, PC}
LDR R3, [R6, #0x1C]
SUB R2, R3, #1
CMP R2, #9
SUBLS R4, R4, #1
MOVLS R2, #1
ADDLS R4, R4, R2, LSL R3
B #0x1410
MOV R3, #1
B #0x14BC
MOV R0, R6
STR R3, [SP, #0x20]
BL #0xFFFF7E88
CMP R0, #0
LDR R3, [SP, #0x20]
BEQ #0x18A0
LDR R2, [SB, #0x30]
TST R2, #0x80
BEQ #0x179C
LDRB R2, [SP, #0x33]
CMP R2, #0
BNE #0x1630
STR R3, [SP, #0x20]
MOV R2, SB
LDR R3, [SP, #0x1C]
ADD R1, SP, #0x34
LDR R0, [R3, #0x18]
ADD R0, R0, #0x700
BL #0xA9C
CMP R0, #0
STRB R0, [SP, #0x33]
BEQ #0x19E0
LDR R2, [R6, #0x14]
LDR R3, [SP, #0x20]
TST R2, #1
SUBNE R2, R2, #1
MOVEQ R2, R6
LDR R2, [R2]
TST R2, #0x20
BEQ #0x13B4
LDR R2, [R3, R7, LSL #5]
TST R2, #0x8000
BEQ #0x1624
LDR R3, [R3, R7, LSL #5]
TST R3, #0x8000
BEQ #0x1584
LDRH R3, [R6, #0x3A]
B #0x14B4
LDR R2, [R6, #0x14]
TST R2, #1
BNE #0x1610
STR R3, [SP, #0x2C]
MOV R0, R6
LDR R3, [SP, #0x1C]
LDR R1, [SP, #0x28]
LDR R3, [R3, #0x18]
STR R3, [SP, #0x20]
BL #0xFFFEE1AC
CMP R0, #0
BNE #0x13B4
LDR R2, [R6, #0x14]
LDR R3, [SP, #0x2C]
TST R2, #1
SUBNE R2, R2, #1
MOVEQ R2, R6
LDR R2, [R2]
TST R2, #0x80000
BEQ #0x18E4
MOV R1, #4
MOV R2, #5
STR R2, [SP, #0x2C]
LDR LR, [R6, #0x18]
MOV IP, #0x200
LDR R2, [R6, #0x14]
MOV R0, #0x100
STR LR, [R2, #4]
STR R2, [LR]
MVN R2, #0
STR R0, [R6, #0x14]
STR IP, [R6, #0x18]
LDR R7, [R3, R7, LSL #5]
LDR R0, [SP, #0x20]
BL #0xFFFF8C34
LDR R3, [SP, #0x20]
MOV R0, #0x340
LSR R7, R7, #0x1F
LDR R1, [SP, #0x2C]
MVN R2, #0
MLA R0, R0, R7, R3
BL #0xFFFF8B48
LDR R3, [R6, #0x14]
MOV R0, R6
TST R3, #1
SUBNE R3, R3, #1
MOVEQ R3, R6
LDR R1, [R3]
MVN R1, R1, LSR #18
AND R1, R1, #1
ADD R1, R1, #5
BL #0xFFFF9EDC
MOV R3, SB
ADD R2, R6, #0x14
LDR R1, [R3, #8]!
LDR R0, [SP, #0x10]
STR R2, [R1, #4]
STR R3, [R6, #0x18]
ADD R0, R0, #1
STR R1, [R6, #0x14]
LDR R1, [SB, #0x2C]
LDR R3, [SB, #0x18]
STR R0, [SP, #0x10]
CMP R1, #0
STR R2, [SB, #8]
ADD R3, R3, #1
STREQ R4, [SB, #0x2C]
CMP R3, #0x20
STR R3, [SB, #0x18]
BNE #0x1410
ADD R4, R4, #1
B #0x14EC
LDR R3, [SP, #0x1C]
LDR R1, [SP, #0x34]
LDR R0, [R3, #0x18]
ADD R0, R0, #0x700
BL #0x467D18
MOV R3, #0
STRB R3, [SP, #0x33]
B #0x13D8
LDR R2, [SB, #0x44]
CMP R2, #0
BNE #0x1960
LDR R2, [SB, #0x34]
MOV R3, #1
STR R3, [SP, #0xC]
LSL R3, R3, R2
LDR R2, [SP, #0x24]
ADD R5, R2, R3
RSB R3, R3, #0
AND R5, R5, R3
B #0x1344
SUB R2, R2, #1
B #0x1398
MOV R0, R6
STR R3, [SP, #0x20]
BL #0xFFFF7E88
CMP R0, #0
LDR R3, [SP, #0x20]
BNE #0x13B4
B #0x15B0
LDR R3, [R3, R7, LSL #5]
ANDS R7, R3, #0x20000
BNE #0x13B4
LDRB R3, [SP, #0x33]
CMP R3, #0
BNE #0x1A08
LDR R1, [SP, #0x28]
MOV R0, R6
BL #0x27978
CMP R0, #0
BEQ #0x16F4
B #0x13B4
MOV R3, SP
MOVW R0, #0x3C2C
BIC R1, R3, #0x1FC0
MOVT R0, #0x80A0
BIC R1, R1, #0x3F
LDR R3, [R1, #0x10]
CMP R3, #0
ADD LR, R3, #0x1F
AND IP, R3, #0x1F
MOVLT R3, LR
ASR R3, R3, #5
LDR R3, [R0, R3, LSL #2]
LSR R3, R3, IP
TST R3, #1
BEQ #0x1524
LDR R3, [R1, #4]
ADD R3, R3, #1
STR R3, [R1, #4]
LDR R5, [R2, #0x24]
CMP R5, #0
BEQ #0x186C
LDR R6, [R5]
LDR R7, [SP, #0x10]
LDR R8, [SP, #0x24]
LDR R0, [R5, #4]
MOV R3, SL
STR R7, [SP]
MOV R2, R4
MOV R1, R8
BLX R6
LDR R6, [R5, #0xC]!
CMP R6, #0
BNE #0x1848
MOV R3, SP
BIC R3, R3, #0x1FC0
BIC R3, R3, #0x3F
LDR R2, [R3, #4]
SUB R2, R2, #1
CMP R2, #0
STR R2, [R3, #4]
BNE #0x1524
LDR R3, [R3]
TST R3, #2
BEQ #0x1524
BL #0x463D08
B #0x1524
LDR R2, [R6, #0x14]
TST R2, #1
SUBNE R2, R2, #1
MOVEQ R2, R6
LDR R2, [R2, #0x10]
LDR R1, [R3, R7, LSL #5]
TST R1, #0x8000
BEQ #0x1968
MOV R0, R6
STR R3, [SP, #0x2C]
STR R2, [SP, #0x20]
BL #0xFFFF7E44
LDR R2, [SP, #0x20]
LDR R3, [SP, #0x2C]
CMP R0, R2
BLT #0x13B4
B #0x15A4
LDR R2, [R6, #0x14]
TST R2, #1
SUBNE R2, R2, #1
MOVEQ R2, R6
LDR R1, [R2]
LDR R2, [R6, #0x14]
AND R1, R1, #0x40000
CMP R1, #0
MOVNE R0, #1
MOVEQ R0, #3
MOVNE R1, #0
MOVEQ R1, #2
TST R2, #1
SUBNE R2, R2, #1
MOVEQ R2, R6
LDR R2, [R2]
TST R2, #0x40
STREQ R0, [SP, #0x2C]
ADDNE R2, R0, #1
MOVNE R1, R0
STRNE R2, [SP, #0x2C]
B #0x1680
CMP R3, #0
BEQ #0x19EC
LDR R4, [SP, #0x14]
LDR R3, [SP, #0x1C]
LDR R1, [SP, #0x34]
LDR R0, [R3, #0x18]
ADD R0, R0, #0x700
BL #0x467D18
B #0x1504
MOV R5, R3
B #0x1340
LDR R1, [R6, #0x14]
TST R1, #1
BNE #0x18C0
LDR R0, [R6, #0xC]
ADD R0, R0, #1
B #0x18D8
LDR R3, [SB, #0x44]
MOV R0, #0
MOV R1, #0xA
CMP R3, R0
BEQ #0x19B8
BL #0xFFFFAA70
LDR R3, [R5, #0xC]
LDR R2, [R3, #4]
LDR R2, [R2]
TST R2, #1
BEQ #0x12D0
LDR R3, [R3, #0x404]
TST R3, #0x100
BEQ #0x12D0
MOV R4, #0
B #0x155C
LDR R4, [SB, #0x44]
CMP R4, #0
MOVEQ R3, #1
STRBEQ R3, [SB, #0x4C]
BEQ #0x155C
MOV R5, #0
STR R5, [SP, #0xC]
B #0x1344
LDR R3, [SP, #0x14]
CMP R3, R4
BHS #0x1504
MOV R1, R8
MOV R3, #1
LDR R2, [SP, #0x10]
MOV R0, SB
LDR R4, [SP, #0x14]
BL #0x7F8
B #0x1510
LDR R3, [SP, #0x1C]
LDR R1, [SP, #0x34]
LDR R0, [R3, #0x18]
ADD R0, R0, #0x700
BL #0x467D18
STRB R7, [SP, #0x33]
B #0x17D0
LDR R4, [SP, #0x24]
MOV SL, R8
STR R8, [SP, #0x10]
B #0x14EC
ADDSHI SP, R5, R8, LSL R3
LDR R3, [R0, #0x2D4]
MOV IP, #0
LDR R2, [R0, #0x2D8]
STR IP, [R0, #0x2D0]
MOVW IP, #0x754C
ADD R3, R3, #1
MOVT IP, #0x80A5
CMP R2, R1
STR R3, [R0, #0x2D4]
STRGT R1, [R0, #0x2D8]
CMP R3, #6
MOVHI R3, #6
STRHI R3, [R0, #0x2D4]
LDR R3, [IP, #0x2C]
CMP R3, #0
BXLE LR
PUSH {R4, R5, R6, LR}
MOV R3, SP
BIC R2, R3, #0x1FC0
MOVW LR, #0x3C2C
BIC R2, R2, #0x3F
MOVT LR, #0x80A0
LDR R3, [R2, #0x10]
CMP R3, #0
ADD R5, R3, #0x1F
AND R4, R3, #0x1F
MOVLT R3, R5
ASR R3, R3, #5
LDR R3, [LR, R3, LSL #2]
LSR R3, R3, R4
TST R3, #1
BEQ #0x1B1C
LDR R3, [R2, #4]
ADD R3, R3, #1
STR R3, [R2, #4]
LDR R4, [IP, #0x38]
CMP R4, #0
BEQ #0x1AF8
LDR R3, [R4]
MOV R6, R1
MOV R5, R0
LDR R0, [R4, #4]
MOV R2, R6
MOV R1, R5
BLX R3
LDR R3, [R4, #0xC]!
CMP R3, #0
BNE #0x1ADC
MOV R3, SP
BIC R3, R3, #0x1FC0
BIC R3, R3, #0x3F
LDR R2, [R3, #4]
SUB R2, R2, #1
CMP R2, #0
STR R2, [R3, #4]
BEQ #0x1B20
POP {R4, R5, R6, PC}
POP {R4, R5, R6, PC}
LDR R3, [R3]
TST R3, #2
BNE #0x1B30
POP {R4, R5, R6, PC}
POP {R4, R5, R6, LR}
B #0x463D08
LDR R3, [R0, #0x2D8]
CMP R3, R1
BGT #0x1B88
LDR IP, [R0, #0x2D4]
MOV R2, #1
LDR R3, [R0, #0x2D0]
LSL R2, R2, IP
ADD R3, R3, #1
STR R3, [R0, #0x2D0]
CMP R2, R3
BLO #0x1B84
BLS #0x1B88
MOVW R2, #0x754C
MOVT R2, #0x80A5
LDR R3, [R2, #0x40]
CMP R3, #0
BGT #0x1B90
MOV R0, #1
BX LR
STR R2, [R0, #0x2D0]
MOV R0, #0
BX LR
PUSH {R4, R5, R6, LR}
MOV R3, SP
BIC IP, R3, #0x1FC0
MOVW LR, #0x3C2C
BIC IP, IP, #0x3F
MOVT LR, #0x80A0
LDR R3, [IP, #0x10]
CMP R3, #0
ADD R5, R3, #0x1F
AND R4, R3, #0x1F
MOVLT R3, R5
ASR R3, R3, #5
LDR R3, [LR, R3, LSL #2]
LSR R3, R3, R4
TST R3, #1
BEQ #0x1C40
LDR R3, [IP, #4]
MOV R6, R1
MOV R5, R0
ADD R3, R3, #1
STR R3, [IP, #4]
LDR R4, [R2, #0x4C]
CMP R4, #0
LDRNE R3, [R4]
BEQ #0x1C10
LDR R0, [R4, #4]
MOV R2, R6
MOV R1, R5
BLX R3
LDR R3, [R4, #0xC]!
CMP R3, #0
BNE #0x1BF4
MOV R3, SP
BIC R3, R3, #0x1FC0
BIC R3, R3, #0x3F
LDR R2, [R3, #4]
SUB R2, R2, #1
CMP R2, #0
STR R2, [R3, #4]
BNE #0x1C40
LDR R3, [R3]
TST R3, #2
BEQ #0x1C40
BL #0x463D08
MOV R0, #1
POP {R4, R5, R6, PC}
CMP R2, #0
MOVW IP, #0x754C
MOVNE R3, #0
MOVT IP, #0x80A5
STRNE R3, [R0, #0x2D0]
STRNE R3, [R0, #0x2D4]
LDR R3, [R0, #0x2D8]
CMP R3, R1
ADDLE R3, R1, #1
STRLE R3, [R0, #0x2D8]
LDR R3, [IP, #0x54]
CMP R3, #0
BXLE LR
PUSH {R4, R5, R6, LR}
MOV R3, SP
BIC R2, R3, #0x1FC0
MOVW LR, #0x3C2C
BIC R2, R2, #0x3F
MOVT LR, #0x80A0
LDR R3, [R2, #0x10]
CMP R3, #0
ADD R5, R3, #0x1F
AND R4, R3, #0x1F
MOVLT R3, R5
ASR R3, R3, #5
LDR R3, [LR, R3, LSL #2]
LSR R3, R3, R4
TST R3, #1
BEQ #0x1D20
LDR R3, [R2, #4]
ADD R3, R3, #1
STR R3, [R2, #4]
LDR R4, [IP, #0x60]
CMP R4, #0
BEQ #0x1CFC
LDR R3, [R4]
MOV R6, R1
MOV R5, R0
LDR R0, [R4, #4]
MOV R2, R6
MOV R1, R5
BLX R3
LDR R3, [R4, #0xC]!
CMP R3, #0
BNE #0x1CE0
MOV R3, SP
BIC R3, R3, #0x1FC0
BIC R3, R3, #0x3F
LDR R2, [R3, #4]
SUB R2, R2, #1
CMP R2, #0
STR R2, [R3, #4]
BEQ #0x1D24
POP {R4, R5, R6, PC}
POP {R4, R5, R6, PC}
LDR R3, [R3]
TST R3, #2
BNE #0x1D34
POP {R4, R5, R6, PC}
POP {R4, R5, R6, LR}
B #0x463D08
LDR R3, [R0, #0x2D8]
CMP R3, R1
BGT #0x1D54
LDR R3, [R0, #0x2D4]
CMP R3, #6
BEQ #0x1D5C
MOV R0, #0
BX LR
LDR R3, [R0, #0x2D0]
LSRS R3, R3, #6
MOVNE R0, #1
MOVEQ R0, #0
BX LR
PUSH {R4, LR}
MOV R4, R0
LDR R3, [R0, #0x30]
CMP R3, #0
BEQ #0x1D90
LDRB R3, [R0, #0x2DC]
CMP R3, #0
BNE #0x1DB4
LDR R3, [R4, #0x370]
CMP R3, #0
POPEQ {R4, PC}
LDRB R3, [R4, #0x61C]
CMP R3, #0
POPEQ {R4, PC}
ADD R0, R4, #0x340
POP {R4, LR}
B #0x728
BL #0x728
B #0x1D90
PUSH {R4, R5, R6, R7, R8, SB, SL, FP, LR}
MOV R7, R0
LDR LR, [R0, #0x10]
MOV R8, #0xFC00
MOVT R8, #0xFFFF
MOV R6, R2
AND IP, R1, R8
SUB SP, SP, #0x1C
LDR R0, [LR, #0x24]
ADD SB, SP, #0x10
ADD R2, R1, #0x400
MOV R4, R1
AND R2, R2, R8
STR SB, [SP, #0x10]
CMP IP, R0
STR SB, [SP, #0x14]
MOVHS R0, IP
CMP R1, R6
BHS #0x1EE4
MOVW FP, #0xFBEC
MOVW SL, #0x6504
MOVT FP, #0x80A6
MOVT SL, #0x80A0
B #0x1E70
LDR R3, [SL]
LDR IP, [FP]
SUB R0, R0, R3
ADD IP, IP, R0, LSL #5
CMP IP, #0
MOV LR, #1
MOV R3, SB
MOV R2, R5
ADD R1, SP, #0xC
MOV R0, R7
BEQ #0x1EC0
STR LR, [SP]
BL #0xB84
SUBS R3, R0, #0
ADD R2, R5, #0x400
MOV R0, R5
BEQ #0x1EC0
ADD R4, R4, R3
CMP R6, R4
BLS #0x1EE4
LDR LR, [R7, #0x10]
CMP R6, R2
ADD R3, R4, #0x400
MOVLO R5, R6
MOVHS R5, R2
CMP R4, R5
AND R3, R3, R8
STR R4, [SP, #0xC]
BLO #0x1EA0
CMP R3, R6
AND R0, R4, R8
MOVLO R5, R3
MOVHS R5, R6
LDRB R3, [LR, #0x2DD]
CMP R3, #0
BNE #0x1E1C
MOV R2, LR
MOV R1, R5
BL #0xFFFDF578
MOV IP, R0
B #0x1E2C
MOV R0, SB
BL #0x8C4
CMP R4, R6
BHS #0x1EEC
MOV R0, SB
BL #0x9B4
MOV R0, #0
ADD SP, SP, #0x1C
POP {R4, R5, R6, R7, R8, SB, SL, FP, PC}
MOV R0, SB
BL #0x8C4
MOV R0, R4
ADD SP, SP, #0x1C
POP {R4, R5, R6, R7, R8, SB, SL, FP, PC}
PUSH {R4, R5, R6, R7, R8, SB, SL, LR}
MOV R6, R2
LDR IP, [R0, #0x10]
MOV LR, #0xFC00
MOVT LR, #0xFFFF
MOV R7, R0
AND R0, R1, LR
ADD R3, R1, #0x400
LDR R2, [IP, #0x24]
MOV R5, R1
AND R3, R3, LR
CMP R0, R2
MOVLO R0, R2
CMP R1, R6
BHS #0x1FD8
MOVW SB, #0xFBEC
MOVW R8, #0x6504
MOVT SB, #0x80A6
MOVT R8, #0x80A0
B #0x1FA0
LDR R3, [R8]
LDR IP, [SB]
SUB R0, R0, R3
ADD IP, IP, R0, LSL #5
CMP IP, #0
MOV R1, R5
MOV R3, #8
MOV R2, R4
MOV R0, R7
MOV R5, R4
BEQ #0x1F8C
BL #0x1290
CMP R0, #0
POPEQ {R4, R5, R6, R7, R8, SB, SL, PC}
LDR R3, [R7, #0x18]
CMP R3, #0x20
BEQ #0x1FD4
CMP R6, R4
ADD R3, R4, #0x400
MOV R0, R5
BLS #0x1FCC
LDR IP, [R7, #0x10]
LDRB R2, [IP, #0x2DD]
CMP R6, R3
MOVLO R4, R6
MOVHS R4, R3
CMP R2, #0
BNE #0x1F48
MOV R2, IP
MOV R1, R4
BL #0xFFFDF578
MOV IP, R0
B #0x1F58
MOV R0, R4
POP {R4, R5, R6, R7, R8, SB, SL, PC}
POP {R4, R5, R6, R7, R8, SB, SL, PC}
MOV R0, R1
POP {R4, R5, R6, R7, R8, SB, SL, PC}
CMN R1, #1
PUSH {R4, R5, R6, R7, R8, SB, LR}
MOV R7, R1
SUB SP, SP, #0xC
MOV R8, R0
LDR IP, [R0, #0x300]
BEQ #0x2084
BIC IP, IP, IP, ASR #31
STR IP, [SP]
BL #0x1210
SUB R3, R0, #4
CMP R7, #3
CLZ R3, R3
MOV R6, R0
LSR R3, R3, #5
MOVLE R3, #0
CMP R3, #0
MOVEQ SB, R0
BEQ #0x205C
MOV R1, R7
MOV R0, R8
BL #0xFFFFA2D4
CMP R0, #0
BLT #0x2084
MOVW R3, #0xBE78
MOVT R3, #0x80A1
LDR R3, [R3]
CMP R0, R3
BGT #0x2084
MOV SB, #0
MOV R6, SB
MOVW R2, #0x754C
MOVT R2, #0x80A5
LDR R3, [R2, #0x68]
CMP R3, #0
BGT #0x2090
CMP R6, #0
MOVEQ R6, #1
MOV R0, R6
ADD SP, SP, #0xC
POP {R4, R5, R6, R7, R8, SB, PC}
MOV SB, #4
MOV R6, SB
B #0x205C
MOV R3, SP
MOVW R0, #0x3C2C
BIC R1, R3, #0x1FC0
MOVT R0, #0x80A0
BIC R1, R1, #0x3F
LDR R3, [R1, #0x10]
CMP R3, #0
ADD LR, R3, #0x1F
AND IP, R3, #0x1F
MOVLT R3, LR
ASR R3, R3, #5
LDR R3, [R0, R3, LSL #2]
LSR R3, R3, IP
TST R3, #1
BEQ #0x2070
LDR R3, [R1, #4]
ADD R3, R3, #1
STR R3, [R1, #4]
LDR R4, [R2, #0x74]
CMP R4, #0
LDRNE R5, [R4]
BEQ #0x2108
LDR R0, [R4, #4]
MOV R3, SB
MOV R2, R7
MOV R1, R8
BLX R5
LDR R5, [R4, #0xC]!
CMP R5, #0
BNE #0x20E8
MOV R3, SP
BIC R3, R3, #0x1FC0
BIC R3, R3, #0x3F
LDR R2, [R3, #4]
SUB R2, R2, #1
CMP R2, #0
STR R2, [R3, #4]
BNE #0x2070
LDR R3, [R3]
TST R3, #2
BEQ #0x2070
BL #0x463D08
B #0x2070
MOVW R3, #0x3FC8
PUSH {R4, R5, R6, R7, R8, SB, SL, FP, LR}
MOVT R3, #0x80A0
LDR R2, [R0, #0x24]
SUB SP, SP, #0x34
MOV R4, R1
LDR R3, [R3]
MOV R5, R0
STR R2, [SP, #0x18]
LDR R6, [R0, #0x2C]
CMP R3, #0
LDR R3, [R1, #0x30]
MOVNE R3, #0
LDR R7, [R1, #0x44]
LDR R2, [R1, #0x3C]
UBFXEQ R3, R3, #3, #2
STR R3, [R1, #0x38]
LDR R3, [R1, #0x40]
LDR R1, [R1, #0x34]
BL #0x1FE0
CMP R0, #1
CMPNE R0, #8
MOV SL, R0
BEQ #0x25EC
LDR R2, [R4, #0x34]
LDR R3, [R5, #0x2D8]
CMP R2, R3
BGE #0x2698
ADDS R2, R7, #0
LDRB R3, [R4, #0x4B]
MOVNE R2, #1
STR R2, [SP, #0x20]
LDR R2, [SP, #0x18]
CMP R3, #0
ADD R1, R2, R6
STR R1, [SP, #0x1C]
BEQ #0x25F8
SUB R8, R1, #1
MOV SB, R2
BIC R8, R8, #0x3FC
STR R2, [R4, #0x28]
BIC R8, R8, #3
STR R8, [R4, #0x24]
MOVW R3, #0x754C
MOV R2, R3
MOV R3, #0
MOVT R2, #0x80A5
STR R3, [R4, #0x2C]
LDR R3, [R2, #0x7C]
STR R2, [SP, #0x14]
CMP R3, #0
BGT #0x2830
BL #0x27968
MOV R3, SP
BIC FP, R3, #0x1FC0
BIC FP, FP, #0x3F
LDRB R3, [R4, #0x4C]
CMP R3, #0
BEQ #0x2420
LDR R7, [R4, #0x34]
MOV SB, #7
MOV SL, SB
LDR R3, [SP, #0x14]
LDR R3, [R3, #0xA4]
CMP R3, #0
BGT #0x277C
CMP SL, #3
BEQ #0x2254
CMP SB, #4
BNE #0x24B0
MOVW R3, #0x4060
LDR R1, [R4, #0x44]
MOVT R3, #0x80A0
LDR R8, [R4, #0x28]
LDR R2, [R3]
MOV R3, #0xFC00
LDR R0, [R5, #0x24]
MOVT R3, #0xFFFF
AND R6, R8, R3
ADD R7, R8, #0x400
CMP R2, #0
LDR R2, [R4, #0x24]
MOVEQ SB, #0
MOVNE SB, #8
CMP R1, #2
AND R7, R7, R3
MOVEQ R1, #0
MOVNE R1, #4
CMP R6, R0
ORR SB, SB, R1
MOVHS R0, R6
CMP R7, R2
BHI #0x2B68
UBFX R3, R8, #0, #0xF
CMP R3, #0
BNE #0x22C8
LDR R3, [FP]
TST R3, #2
BNE #0x2814
LDRB R3, [R5, #0x2DD]
CMP R3, #0
BEQ #0x272C
MOVW R3, #0x6504
MOVW R2, #0xFBEC
MOVT R3, #0x80A0
MOVT R2, #0x80A6
LDR R3, [R3]
LDR R6, [R2]
SUB R0, R0, R3
ADD R6, R6, R0, LSL #5
CMP R6, #0
BEQ #0x270C
LDRB R3, [R4, #0x48]
CMP R3, #0
BEQ #0x2740
LDR R3, [R4, #0x44]
CMP R3, #0
BNE #0x2320
LDRB R3, [R4, #0x4A]
CMP R3, #0
BNE #0x26BC
MOV R2, R7
MOV R3, SB
MOV R1, R8
MOV R0, R4
BL #0x1290
SUBS R7, R0, #0
BEQ #0x2498
LDRB R3, [R4, #0x4C]
CMP R3, #0
BNE #0x2498
LDR R3, [R4, #0x18]
STR R7, [R4, #0x28]
CMP R3, #0
BEQ #0x23AC
LDR R3, [R4, #0x44]
MOV R0, #0
ADD R8, R4, #8
MOVW R2, #0xF4F8
MOVW R1, #0xF4C
STR R0, [SP, #4]
STR R3, [SP]
MOV R0, R8
MOV R3, R4
MOVT R2, #0x801F
MOVT R1, #0x8020
BL #0x281E8
LDR R3, [SP, #0x14]
MOV SB, R0
LDR R3, [R3, #0x90]
CMP R3, #0
BGT #0x28FC
CMP SB, #0
MOV R3, #0
STR R3, [R4, #0x18]
BNE #0x29D4
LDR R3, [R4, #0x34]
CMP R3, #0
BLE #0x221C
LDR R2, [R4, #0x2C]
CMP R2, #0
BEQ #0x221C
MOV R6, #1
LDR R1, [R4, #0x28]
LSL R3, R6, R3
RSB R3, R3, #0
AND R3, R3, R1
CMP R2, R3
BHS #0x221C
MOV R0, R6
BL #0xFFF44934
BL #0x1C821C
BL #0xFFFE9CB0
MOV R0, R5
BL #0xFFFE000C
MOV R0, R6
BL #0xFFF44A90
LDR R3, [FP, #4]
CMP R3, #0
BEQ #0x2BB8
MOV R3, #0
STR R3, [R4, #0x2C]
LDRB R3, [R4, #0x4C]
CMP R3, #0
BNE #0x2228
LDR R3, [FP, #0xC]
LDR R2, [R3, #4]
LDR R2, [R2]
TST R2, #1
BNE #0x2B58
LDR R3, [R4, #0x28]
LDR R1, [R4, #0x24]
LSR R2, R3, #0xA
CMP R2, R1, LSR #10
BLO #0x2A28
LDR R2, [R5, #0x24]
LDR R3, [R5, #0x2C]
STR R2, [R5, #0x2C8]
ADD R3, R2, R3
STR R2, [R5, #0x2CC]
SUB R3, R3, #1
BIC R3, R3, #0x3FC
BIC R3, R3, #3
STR R3, [R5, #0x2C4]
LDRB R3, [R4, #0x4A]
CMP R3, #0
MOVNE R3, #1
STRBNE R3, [R5, #0x2DC]
LDRB R3, [R4, #0x4B]
LDR R7, [R4, #0x34]
CMP R3, #0
MOVNE SB, #5
MOVEQ SB, #6
MOV SL, SB
B #0x2234
MOV SB, #7
ADD R0, R4, #8
MOV SL, SB
BL #0x27B14
MOV R3, #0
STR R3, [R4, #0x18]
LDR R3, [R4, #0x14]
CMP R3, #0
BNE #0x29AC
LDR R5, [R4, #0x1C]
MRS LR, APSR
CPSID I
LDR R3, [PC, #0x72C]
MRC P15, #0, IP, C13, C0, #4
MOV R2, R3
LDR R1, [R2, IP]
ADD R1, R1, R5
STR R1, [R2, IP]
MSR CPSR_C, LR
LDR IP, [R4, #0x20]
MRS R1, APSR
CPSID I
MRC P15, #0, R0, C13, C0, #4
ADD R3, R3, #4
LDR R2, [R3, R0]
ADD R2, R2, IP
STR R2, [R3, R0]
MSR CPSR_C, R1
LDR R3, [SP, #0x14]
LDR R3, [R3, #0xB8]
CMP R3, #0
BLE #0x25EC
MOV R3, SP
MOVW R1, #0x3C2C
BIC R2, R3, #0x1FC0
MOVT R1, #0x80A0
BIC R2, R2, #0x3F
LDR R3, [R2, #0x10]
CMP R3, #0
ADD IP, R3, #0x1F
AND R0, R3, #0x1F
MOVLT R3, IP
ASR R3, R3, #5
LDR R3, [R1, R3, LSL #2]
LSR R3, R3, R0
TST R3, #1
BEQ #0x25EC
LDR R3, [R2, #4]
LDR R5, [R4, #0x28]
LDR R6, [R4, #0x24]
ADD R3, R3, #1
STR R3, [R2, #4]
LDR R3, [SP, #0x14]
LDR R4, [R3, #0xC4]
CMP R4, #0
BEQ #0x25BC
STR SL, [SP, #0x14]
LDR R7, [R4]
LDR R8, [SP, #0x18]
LDR FP, [SP, #0x1C]
LDR SL, [SP, #0x20]
LDR R0, [R4, #4]
MOV R3, R6
STR SB, [SP, #8]
MOV R2, R5
STR SL, [SP, #4]
MOV R1, R8
STR FP, [SP]
BLX R7
LDR R7, [R4, #0xC]!
CMP R7, #0
BNE #0x258C
LDR SL, [SP, #0x14]
MOV R3, SP
BIC R3, R3, #0x1FC0
BIC R3, R3, #0x3F
LDR R2, [R3, #4]
SUB R2, R2, #1
CMP R2, #0
STR R2, [R3, #4]
BNE #0x25EC
LDR R3, [R3]
TST R3, #2
BEQ #0x25EC
BL #0x463D08
MOV R0, SL
ADD SP, SP, #0x34
POP {R4, R5, R6, R7, R8, SB, SL, FP, PC}
LDR R3, [SP, #0x20]
LDR R2, [SP, #0x18]
LDR R1, [SP, #0x1C]
ADD R3, R3, #0xB0
ADD R3, R5, R3, LSL #2
LDR SB, [R3, #8]
STR SB, [R4, #0x28]
LDR R3, [R5, #0x2C4]
CMP R2, R3
CMPLS R3, R1
LDR R2, [SP, #0x18]
LDRHS R3, [SP, #0x1C]
LDR R1, [SP, #0x1C]
STRLO R3, [R4, #0x24]
SUBHS R3, R3, #1
BICHS R3, R3, #0x3FC
BICHS R3, R3, #3
STRHS R3, [R4, #0x24]
STRHS R3, [R5, #0x2C4]
MOV R3, R2
LDRHS SB, [R4, #0x28]
CMP R2, SB
MOVLS R3, #0
MOVHI R3, #1
CMP R1, SB
ORRLS R3, R3, #1
CMP R3, #0
BEQ #0x267C
STR R2, [R4, #0x28]
STR R2, [R5, #0x2C8]
LDR R3, [R4, #0x28]
STR R3, [R5, #0x2CC]
LDR SB, [R4, #0x28]
LDR R3, [SP, #0x18]
LDR R8, [R4, #0x24]
CMP R3, SB
MOVEQ R3, #1
LDREQ SB, [SP, #0x18]
STRBEQ R3, [R4, #0x4B]
B #0x21E8
LDR R3, [R5, #0x2D4]
CMP R3, #6
BNE #0x21AC
LDR R3, [R5, #0x2D0]
LSRS R3, R3, #6
BEQ #0x21AC
MOV R0, R5
BL #0x728
B #0x21AC
MOVW R2, #0xFBEC
MOVW R3, #0x6504
MOVT R3, #0x80A0
MOVT R2, #0x80A6
LDR R2, [R2]
MOV R0, R6
LDR R1, [R3]
MOV R3, #7
SUB R6, R6, R2
MOV R2, #2
ADD R1, R1, R6, ASR #5
BL #0xFFFDF3B8
LDR R3, [R4, #0x38]
CMP R3, #1
SUBNE R0, R0, R3
CLZNE R0, R0
LSRNE R0, R0, #5
BEQ #0x2998
CMP R0, #0
BNE #0x2320
LDR R2, [R4, #0x24]
ADD R3, R7, #0x400
MOV R8, R7
MOV R0, R7
CMP R3, R2
BHI #0x2348
MOV R7, R3
B #0x22B0
MOV R2, R5
MOV R1, R7
BL #0xFFFDF578
MOV R6, R0
B #0x22F4
MOVW R3, #0xFBEC
MOVW R2, #0x6504
MOVT R3, #0x80A6
MOVT R2, #0x80A0
LDR R1, [R3]
MOV R0, R6
LDR IP, [R2]
MOV R3, #1
MOV R2, #3
SUB R1, R6, R1
ADD R1, IP, R1, ASR #5
BL #0xFFFDF3B8
CMP R0, #0
BNE #0x270C
B #0x2308
LDR R3, [FP, #0x10]
MOVW R2, #0x3C2C
MOVT R2, #0x80A0
CMP R3, #0
ADD R0, R3, #0x1F
AND R1, R3, #0x1F
MOVLT R3, R0
ASR R3, R3, #5
LDR R3, [R2, R3, LSL #2]
LSR R3, R3, R1
TST R3, #1
BEQ #0x2244
LDR R3, [FP, #4]
ADD R3, R3, #1
STR R3, [FP, #4]
LDR R3, [SP, #0x14]
LDR R6, [R3, #0xB0]
CMP R6, #0
LDRNE R8, [R6]
BEQ #0x27EC
LDR R0, [R6, #4]
MOV R3, SB
MOV R2, R7
MOV R1, R5
BLX R8
LDR R8, [R6, #0xC]!
CMP R8, #0
BNE #0x27CC
LDR R3, [FP, #4]
SUB R3, R3, #1
CMP R3, #0
STR R3, [FP, #4]
BNE #0x2244
LDR R3, [FP]
TST R3, #2
BEQ #0x2244
BL #0x463D08
B #0x2244
LDR R3, [R4, #0x44]
CMP R3, #0
BNE #0x22C8
MOV R3, #1
MOV R7, R8
STRB R3, [R4, #0x4C]
B #0x2348
MOV R3, SP
MOVW R0, #0x3C2C
BIC R2, R3, #0x1FC0
MOVT R0, #0x80A0
BIC R2, R2, #0x3F
LDR R3, [R2, #0x10]
CMP R3, #0
ADD IP, R3, #0x1F
AND R1, R3, #0x1F
MOVLT R3, IP
ASR R3, R3, #5
LDR R3, [R0, R3, LSL #2]
LSR R3, R3, R1
TST R3, #1
BEQ #0x220C
LDR R3, [R2, #4]
ADD R3, R3, #1
STR R3, [R2, #4]
LDR R3, [SP, #0x14]
LDR R6, [R3, #0x88]
CMP R6, #0
BEQ #0x28C8
STR R5, [SP, #0x24]
LDR R7, [R6]
LDR SL, [SP, #0x20]
LDR FP, [SP, #0x1C]
LDR R5, [SP, #0x18]
LDR R0, [R6, #4]
MOV R3, R8
STR SL, [SP, #4]
MOV R2, SB
STR FP, [SP]
MOV R1, R5
BLX R7
LDR R7, [R6, #0xC]!
CMP R7, #0
BNE #0x289C
LDR R5, [SP, #0x24]
MOV R3, SP
BIC R3, R3, #0x1FC0
BIC R3, R3, #0x3F
LDR R2, [R3, #4]
SUB R2, R2, #1
CMP R2, #0
STR R2, [R3, #4]
BNE #0x220C
LDR R3, [R3]
TST R3, #2
BEQ #0x220C
BL #0x463D08
B #0x220C
LDR R3, [FP, #0x10]
MOVW R2, #0x3C2C
MOVT R2, #0x80A0
CMP R3, #0
ADD R0, R3, #0x1F
AND R1, R3, #0x1F
MOVLT R3, R0
ASR R3, R3, #5
LDR R3, [R2, R3, LSL #2]