2016-11-01 16:29:13 +01:00
|
|
|
.include "asm/macros.inc"
|
2016-11-01 18:08:48 +01:00
|
|
|
.include "constants/constants.inc"
|
2016-09-03 08:11:29 +02:00
|
|
|
|
|
|
|
.syntax unified
|
|
|
|
|
|
|
|
.text
|
|
|
|
|
2015-11-27 18:39:52 +01:00
|
|
|
thumb_func_start sub_80A0954
|
2016-09-03 04:51:16 +02:00
|
|
|
@ void sub_80A0954()
|
|
|
|
sub_80A0954: @ 80A0954
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
sub sp, 0x4
|
|
|
|
ldr r1, =0x03000f34
|
|
|
|
movs r0, 0
|
|
|
|
strb r0, [r1]
|
|
|
|
movs r0, 0
|
|
|
|
str r0, [sp]
|
|
|
|
ldr r1, =0x02037624
|
|
|
|
ldr r2, =0x0500003c
|
|
|
|
mov r0, sp
|
|
|
|
bl CpuSet
|
|
|
|
add sp, 0x4
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A0954
|
|
|
|
|
|
|
|
thumb_func_start sub_80A0980
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A0980: @ 80A0980
|
2015-11-27 18:39:52 +01:00
|
|
|
push {r4-r6,lr}
|
|
|
|
adds r4, r0, 0
|
|
|
|
adds r5, r1, 0
|
|
|
|
lsls r2, 16
|
|
|
|
lsrs r6, r2, 16
|
|
|
|
ldr r3, =0x03000f34
|
|
|
|
ldrb r0, [r3]
|
|
|
|
cmp r0, 0x13
|
2016-01-07 05:23:20 +01:00
|
|
|
bhi _080A09C0
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r2, =0x02037624
|
|
|
|
adds r1, r0, 0
|
|
|
|
lsls r0, r1, 1
|
|
|
|
adds r0, r1
|
|
|
|
lsls r0, 2
|
|
|
|
adds r0, r2
|
|
|
|
str r4, [r0]
|
|
|
|
ldrb r1, [r3]
|
|
|
|
lsls r0, r1, 1
|
|
|
|
adds r0, r1
|
|
|
|
lsls r0, 2
|
|
|
|
adds r1, r2, 0x4
|
|
|
|
adds r0, r1
|
|
|
|
str r5, [r0]
|
|
|
|
ldrb r1, [r3]
|
|
|
|
lsls r0, r1, 1
|
|
|
|
adds r0, r1
|
|
|
|
lsls r0, 2
|
|
|
|
adds r0, r2
|
|
|
|
strh r6, [r0, 0x8]
|
|
|
|
ldrb r0, [r3]
|
|
|
|
adds r0, 0x1
|
|
|
|
strb r0, [r3]
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A09C0:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r4-r6}
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A0980
|
|
|
|
|
|
|
|
thumb_func_start sub_80A09D0
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A09D0: @ 80A09D0
|
2015-11-27 18:39:52 +01:00
|
|
|
push {r4-r6,lr}
|
|
|
|
movs r3, 0
|
|
|
|
ldr r4, =0x03000f34
|
|
|
|
adds r6, r4, 0
|
|
|
|
ldrb r0, [r4]
|
|
|
|
cmp r3, r0
|
2016-01-07 05:23:20 +01:00
|
|
|
bge _080A0A02
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r2, =0x040000d4
|
|
|
|
ldr r1, =0x02037624
|
|
|
|
movs r5, 0x80
|
|
|
|
lsls r5, 24
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A09E6:
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r0, [r1]
|
|
|
|
str r0, [r2]
|
|
|
|
ldr r0, [r1, 0x4]
|
|
|
|
str r0, [r2, 0x4]
|
|
|
|
ldrh r0, [r1, 0x8]
|
|
|
|
lsrs r0, 1
|
|
|
|
orrs r0, r5
|
|
|
|
str r0, [r2, 0x8]
|
|
|
|
ldr r0, [r2, 0x8]
|
|
|
|
adds r1, 0xC
|
|
|
|
adds r3, 0x1
|
|
|
|
ldrb r0, [r4]
|
|
|
|
cmp r3, r0
|
2016-01-07 05:23:20 +01:00
|
|
|
blt _080A09E6
|
|
|
|
_080A0A02:
|
2015-11-27 18:39:52 +01:00
|
|
|
movs r0, 0
|
|
|
|
strb r0, [r6]
|
|
|
|
pop {r4-r6}
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A09D0
|
|
|
|
|
|
|
|
thumb_func_start cur_mapheader_run_tileset_funcs_after_some_cpuset
|
2016-09-03 04:51:16 +02:00
|
|
|
cur_mapheader_run_tileset_funcs_after_some_cpuset: @ 80A0A18
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
bl sub_80A0954
|
|
|
|
bl cur_mapheader_run_tileset1_func
|
|
|
|
bl cur_mapheader_run_tileset2_func
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end cur_mapheader_run_tileset_funcs_after_some_cpuset
|
|
|
|
|
|
|
|
thumb_func_start sub_80A0A2C
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A0A2C: @ 80A0A2C
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
bl cur_mapheader_run_tileset2_func
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A0A2C
|
|
|
|
|
|
|
|
thumb_func_start sub_80A0A38
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A0A38: @ 80A0A38
|
2015-11-27 18:39:52 +01:00
|
|
|
push {r4,lr}
|
|
|
|
bl sub_80A0954
|
|
|
|
ldr r2, =0x03000f36
|
|
|
|
ldrh r0, [r2]
|
|
|
|
adds r0, 0x1
|
|
|
|
strh r0, [r2]
|
|
|
|
ldr r1, =0x03000f38
|
|
|
|
lsls r0, 16
|
|
|
|
lsrs r0, 16
|
|
|
|
ldrh r1, [r1]
|
|
|
|
cmp r0, r1
|
2016-01-07 05:23:20 +01:00
|
|
|
bcc _080A0A56
|
2015-11-27 18:39:52 +01:00
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r2]
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A0A56:
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r4, =0x03000f3a
|
|
|
|
ldrh r0, [r4]
|
|
|
|
adds r0, 0x1
|
|
|
|
strh r0, [r4]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
lsls r0, 16
|
|
|
|
lsrs r0, 16
|
|
|
|
ldrh r1, [r1]
|
|
|
|
cmp r0, r1
|
2016-01-07 05:23:20 +01:00
|
|
|
bcc _080A0A6E
|
2015-11-27 18:39:52 +01:00
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r4]
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A0A6E:
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r0, =0x03000f40
|
|
|
|
ldr r1, [r0]
|
|
|
|
cmp r1, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
beq _080A0A7C
|
2015-11-27 18:39:52 +01:00
|
|
|
ldrh r0, [r2]
|
|
|
|
bl _call_via_r1
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A0A7C:
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r0, =0x03000f44
|
|
|
|
ldr r1, [r0]
|
|
|
|
cmp r1, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
beq _080A0A8A
|
2015-11-27 18:39:52 +01:00
|
|
|
ldrh r0, [r4]
|
|
|
|
bl _call_via_r1
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A0A8A:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r4}
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A0A38
|
|
|
|
|
|
|
|
thumb_func_start cur_mapheader_run_tileset1_func
|
2016-09-03 04:51:16 +02:00
|
|
|
cur_mapheader_run_tileset1_func: @ 80A0AA8
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
ldr r0, =0x03000f36
|
|
|
|
movs r1, 0
|
|
|
|
strh r1, [r0]
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
strh r1, [r0]
|
|
|
|
ldr r1, =0x03000f40
|
|
|
|
movs r0, 0
|
|
|
|
str r0, [r1]
|
|
|
|
ldr r0, =0x02037318
|
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r0, [r0, 0x10]
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
beq _080A0ACE
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r0, [r0, 0x14]
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
beq _080A0ACE
|
2015-11-27 18:39:52 +01:00
|
|
|
bl _call_via_r0
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A0ACE:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end cur_mapheader_run_tileset1_func
|
|
|
|
|
|
|
|
thumb_func_start cur_mapheader_run_tileset2_func
|
2016-09-03 04:51:16 +02:00
|
|
|
cur_mapheader_run_tileset2_func: @ 80A0AE4
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
ldr r0, =0x03000f3a
|
|
|
|
movs r1, 0
|
|
|
|
strh r1, [r0]
|
|
|
|
ldr r0, =0x03000f3c
|
|
|
|
strh r1, [r0]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
movs r0, 0
|
|
|
|
str r0, [r1]
|
|
|
|
ldr r0, =0x02037318
|
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r0, [r0, 0x14]
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
beq _080A0B0A
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r0, [r0, 0x14]
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
beq _080A0B0A
|
2015-11-27 18:39:52 +01:00
|
|
|
bl _call_via_r0
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A0B0A:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end cur_mapheader_run_tileset2_func
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_General
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_General: @ 80A0B20
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f36
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f38
|
|
|
|
movs r2, 0x80
|
|
|
|
lsls r2, 1
|
|
|
|
adds r0, r2, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f40
|
|
|
|
ldr r0, =sub_80A0B70
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_General
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_InsideBuilding
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_InsideBuilding: @ 80A0B48
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f36
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f38
|
|
|
|
movs r2, 0x80
|
|
|
|
lsls r2, 1
|
|
|
|
adds r0, r2, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f40
|
|
|
|
ldr r0, =sub_80A0BB4
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_InsideBuilding
|
|
|
|
|
|
|
|
thumb_func_start sub_80A0B70
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A0B70: @ 80A0B70
|
2015-11-27 18:39:52 +01:00
|
|
|
push {r4,r5,lr}
|
|
|
|
lsls r5, r0, 16
|
|
|
|
movs r0, 0xF0
|
|
|
|
lsls r0, 12
|
|
|
|
ands r0, r5
|
|
|
|
lsrs r4, r0, 16
|
|
|
|
cmp r4, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A0B86
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r5, 20
|
|
|
|
bl sub_80A0BCC
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A0B86:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r4, 0x1
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A0B90
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r5, 20
|
|
|
|
bl sub_80A0BF4
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A0B90:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r4, 0x2
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A0B9A
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r5, 20
|
|
|
|
bl sub_80A0C1C
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A0B9A:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r4, 0x3
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A0BA4
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r5, 20
|
|
|
|
bl sub_80A0C44
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A0BA4:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r4, 0x4
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A0BAE
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r5, 20
|
|
|
|
bl sub_80A12AC
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A0BAE:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r4,r5}
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A0B70
|
|
|
|
|
|
|
|
thumb_func_start sub_80A0BB4
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A0BB4: @ 80A0BB4
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r1, r0, 16
|
|
|
|
movs r0, 0xE0
|
|
|
|
lsls r0, 11
|
|
|
|
ands r0, r1
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A0BC8
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r1, 19
|
|
|
|
bl sub_80A1688
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A0BC8:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A0BB4
|
|
|
|
|
|
|
|
thumb_func_start sub_80A0BCC
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A0BCC: @ 80A0BCC
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
movs r1, 0xC0
|
|
|
|
lsls r1, 10
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_08510764
|
|
|
|
lsrs r1, 14
|
|
|
|
adds r1, r0
|
|
|
|
ldr r0, [r1]
|
|
|
|
ldr r1, =0x06003f80
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A0BCC
|
|
|
|
|
|
|
|
thumb_func_start sub_80A0BF4
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A0BF4: @ 80A0BF4
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
lsrs r0, 16
|
|
|
|
movs r1, 0x7
|
|
|
|
ands r0, r1
|
|
|
|
ldr r1, =gUnknown_08512574
|
|
|
|
lsls r0, 2
|
|
|
|
adds r0, r1
|
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, =0x06003600
|
|
|
|
movs r2, 0xF0
|
|
|
|
lsls r2, 2
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A0BF4
|
|
|
|
|
|
|
|
thumb_func_start sub_80A0C1C
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A0C1C: @ 80A0C1C
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
movs r1, 0xE0
|
|
|
|
lsls r1, 11
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_08512E54
|
|
|
|
lsrs r1, 14
|
|
|
|
adds r1, r0
|
|
|
|
ldr r0, [r1]
|
|
|
|
ldr r1, =0x06003a00
|
|
|
|
movs r2, 0xA0
|
|
|
|
lsls r2, 1
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A0C1C
|
|
|
|
|
|
|
|
thumb_func_start sub_80A0C44
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A0C44: @ 80A0C44
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
movs r1, 0xC0
|
|
|
|
lsls r1, 10
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_08513174
|
|
|
|
lsrs r1, 14
|
|
|
|
adds r1, r0
|
|
|
|
ldr r0, [r1]
|
|
|
|
ldr r1, =0x06003e00
|
|
|
|
movs r2, 0xC0
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A0C44
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_Petalburg
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_Petalburg: @ 80A0C6C
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
movs r0, 0
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_Petalburg
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_Rustboro
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_Rustboro: @ 80A0C94
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A103C
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_Rustboro
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_Dewford
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_Dewford: @ 80A0CC0
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A10B8
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_Dewford
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_Slateport
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_Slateport: @ 80A0CEC
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A10D0
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_Slateport
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_Mauville
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_Mauville: @ 80A0D18
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
ldr r0, =0x03000f36
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A10E8
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_Mauville
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_Lavaridge
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_Lavaridge: @ 80A0D48
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A115C
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_Lavaridge
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_Fallarbor
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_Fallarbor: @ 80A0D74
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
movs r0, 0
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_Fallarbor
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_Fortree
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_Fortree: @ 80A0D9C
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
movs r0, 0
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_Fortree
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_Lilycove
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_Lilycove: @ 80A0DC4
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
movs r0, 0
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_Lilycove
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_Mossdeep
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_Mossdeep: @ 80A0DEC
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
movs r0, 0
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_Mossdeep
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_EverGrande
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_EverGrande: @ 80A0E14
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A1188
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_EverGrande
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_Pacifidlog
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_Pacifidlog: @ 80A0E40
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
ldr r0, =0x03000f36
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A11FC
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_Pacifidlog
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_Sootopolis
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_Sootopolis: @ 80A0E70
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A122C
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_Sootopolis
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_BattleFrontierOutsideWest
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_BattleFrontierOutsideWest: @ 80A0E9C
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A127C
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_BattleFrontierOutsideWest
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_BattleFrontierOutsideEast
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_BattleFrontierOutsideEast: @ 80A0EC8
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A1294
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_BattleFrontierOutsideEast
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_Underwater
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_Underwater: @ 80A0EF4
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
movs r0, 0x80
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A1244
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_Underwater
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_SootopolisGym
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_SootopolisGym: @ 80A0F18
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
movs r0, 0xF0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A15D8
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_SootopolisGym
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_Cave
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_Cave: @ 80A0F3C
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A1260
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_Cave
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_EliteFour
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_EliteFour: @ 80A0F68
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
movs r0, 0x80
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A15F0
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_EliteFour
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_MauvilleGym
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_MauvilleGym: @ 80A0F8C
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A15C0
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_MauvilleGym
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_BikeShop
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_BikeShop: @ 80A0FB8
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A161C
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_BikeShop
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_BattlePyramid
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_BattlePyramid: @ 80A0FE4
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A1634
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_BattlePyramid
|
|
|
|
|
|
|
|
thumb_func_start TilesetCb_BattleDome
|
2016-09-03 04:51:16 +02:00
|
|
|
TilesetCb_BattleDome: @ 80A1010
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r1, =0x03000f3a
|
|
|
|
movs r0, 0
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f3c
|
|
|
|
ldr r0, =0x03000f38
|
|
|
|
ldrh r0, [r0]
|
|
|
|
strh r0, [r1]
|
|
|
|
ldr r1, =0x03000f44
|
|
|
|
ldr r0, =sub_80A1658
|
|
|
|
str r0, [r1]
|
|
|
|
bx lr
|
|
|
|
.pool
|
|
|
|
thumb_func_end TilesetCb_BattleDome
|
|
|
|
|
|
|
|
thumb_func_start sub_80A103C
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A103C: @ 80A103C
|
2015-11-27 18:39:52 +01:00
|
|
|
push {r4-r6,lr}
|
|
|
|
lsls r5, r0, 16
|
|
|
|
movs r0, 0xE0
|
|
|
|
lsls r0, 11
|
|
|
|
ands r0, r5
|
|
|
|
lsrs r6, r0, 16
|
|
|
|
cmp r6, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A105C
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r4, r5, 19
|
|
|
|
adds r0, r4, 0
|
|
|
|
movs r1, 0
|
|
|
|
bl sub_80A1434
|
|
|
|
adds r0, r4, 0
|
|
|
|
bl sub_80A1470
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A105C:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r6, 0x1
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1068
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r5, 19
|
|
|
|
movs r1, 0x1
|
|
|
|
bl sub_80A1434
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1068:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r6, 0x2
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1074
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r5, 19
|
|
|
|
movs r1, 0x2
|
|
|
|
bl sub_80A1434
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1074:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r6, 0x3
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1080
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r5, 19
|
|
|
|
movs r1, 0x3
|
|
|
|
bl sub_80A1434
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1080:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r6, 0x4
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A108C
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r5, 19
|
|
|
|
movs r1, 0x4
|
|
|
|
bl sub_80A1434
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A108C:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r6, 0x5
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1098
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r5, 19
|
|
|
|
movs r1, 0x5
|
|
|
|
bl sub_80A1434
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1098:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r6, 0x6
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A10A4
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r5, 19
|
|
|
|
movs r1, 0x6
|
|
|
|
bl sub_80A1434
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A10A4:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r6, 0x7
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A10B0
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r5, 19
|
|
|
|
movs r1, 0x7
|
|
|
|
bl sub_80A1434
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A10B0:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r4-r6}
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A103C
|
|
|
|
|
|
|
|
thumb_func_start sub_80A10B8
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A10B8: @ 80A10B8
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r1, r0, 16
|
|
|
|
movs r0, 0xE0
|
|
|
|
lsls r0, 11
|
|
|
|
ands r0, r1
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A10CC
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r1, 19
|
|
|
|
bl sub_80A1520
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A10CC:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A10B8
|
|
|
|
|
|
|
|
thumb_func_start sub_80A10D0
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A10D0: @ 80A10D0
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r1, r0, 16
|
|
|
|
movs r0, 0xF0
|
|
|
|
lsls r0, 12
|
|
|
|
ands r0, r1
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A10E4
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r1, 20
|
|
|
|
bl sub_80A1598
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A10E4:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A10D0
|
|
|
|
|
|
|
|
thumb_func_start sub_80A10E8
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A10E8: @ 80A10E8
|
2015-11-27 18:39:52 +01:00
|
|
|
push {r4,r5,lr}
|
|
|
|
lsls r4, r0, 16
|
|
|
|
movs r0, 0xE0
|
|
|
|
lsls r0, 11
|
|
|
|
ands r0, r4
|
|
|
|
lsrs r5, r0, 16
|
|
|
|
cmp r5, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1100
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0
|
|
|
|
bl sub_80A1394
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1100:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x1
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A110C
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0x1
|
|
|
|
bl sub_80A1394
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A110C:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x2
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1118
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0x2
|
|
|
|
bl sub_80A1394
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1118:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x3
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1124
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0x3
|
|
|
|
bl sub_80A1394
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1124:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x4
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1130
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0x4
|
|
|
|
bl sub_80A1394
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1130:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x5
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A113C
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0x5
|
|
|
|
bl sub_80A1394
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A113C:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x6
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1148
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0x6
|
|
|
|
bl sub_80A1394
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1148:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x7
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1154
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0x7
|
|
|
|
bl sub_80A1394
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1154:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r4,r5}
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A10E8
|
|
|
|
|
|
|
|
thumb_func_start sub_80A115C
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A115C: @ 80A115C
|
2015-11-27 18:39:52 +01:00
|
|
|
push {r4,r5,lr}
|
|
|
|
lsls r4, r0, 16
|
|
|
|
movs r0, 0xF0
|
|
|
|
lsls r0, 12
|
|
|
|
ands r0, r4
|
|
|
|
lsrs r5, r0, 16
|
|
|
|
cmp r5, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1176
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 20
|
|
|
|
lsls r0, 24
|
|
|
|
lsrs r0, 24
|
|
|
|
bl sub_80A12D4
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1176:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x1
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1180
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 20
|
|
|
|
bl sub_80A1498
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1180:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r4,r5}
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A115C
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1188
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1188: @ 80A1188
|
2015-11-27 18:39:52 +01:00
|
|
|
push {r4,r5,lr}
|
|
|
|
lsls r4, r0, 16
|
|
|
|
movs r0, 0xE0
|
|
|
|
lsls r0, 11
|
|
|
|
ands r0, r4
|
|
|
|
lsrs r5, r0, 16
|
|
|
|
cmp r5, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A11A0
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0
|
|
|
|
bl sub_80A14C0
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A11A0:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x1
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A11AC
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0x1
|
|
|
|
bl sub_80A14C0
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A11AC:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x2
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A11B8
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0x2
|
|
|
|
bl sub_80A14C0
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A11B8:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x3
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A11C4
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0x3
|
|
|
|
bl sub_80A14C0
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A11C4:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x4
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A11D0
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0x4
|
|
|
|
bl sub_80A14C0
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A11D0:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x5
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A11DC
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0x5
|
|
|
|
bl sub_80A14C0
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A11DC:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x6
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A11E8
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0x6
|
|
|
|
bl sub_80A14C0
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A11E8:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x7
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A11F4
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
movs r1, 0x7
|
|
|
|
bl sub_80A14C0
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A11F4:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r4,r5}
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A1188
|
|
|
|
|
|
|
|
thumb_func_start sub_80A11FC
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A11FC: @ 80A11FC
|
2015-11-27 18:39:52 +01:00
|
|
|
push {r4,r5,lr}
|
|
|
|
lsls r4, r0, 16
|
|
|
|
movs r0, 0xF0
|
|
|
|
lsls r0, 12
|
|
|
|
ands r0, r4
|
|
|
|
lsrs r5, r0, 16
|
|
|
|
cmp r5, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1216
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 20
|
|
|
|
lsls r0, 24
|
|
|
|
lsrs r0, 24
|
|
|
|
bl sub_80A131C
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1216:
|
2015-11-27 18:39:52 +01:00
|
|
|
cmp r5, 0x1
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1224
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 20
|
|
|
|
lsls r0, 24
|
|
|
|
lsrs r0, 24
|
|
|
|
bl sub_80A136C
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1224:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r4,r5}
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A11FC
|
|
|
|
|
|
|
|
thumb_func_start sub_80A122C
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A122C: @ 80A122C
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r1, r0, 16
|
|
|
|
movs r0, 0xF0
|
|
|
|
lsls r0, 12
|
|
|
|
ands r0, r1
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1240
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r1, 20
|
|
|
|
bl sub_80A1798
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1240:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A122C
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1244
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1244: @ 80A1244
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r1, r0, 16
|
|
|
|
movs r0, 0xF0
|
|
|
|
lsls r0, 12
|
|
|
|
ands r0, r1
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A125C
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r1, 20
|
|
|
|
lsls r0, 24
|
|
|
|
lsrs r0, 24
|
|
|
|
bl sub_80A1344
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A125C:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A1244
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1260
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1260: @ 80A1260
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r1, r0, 16
|
|
|
|
movs r0, 0xF0
|
|
|
|
lsls r0, 12
|
|
|
|
ands r0, r1
|
|
|
|
lsrs r0, 16
|
|
|
|
cmp r0, 0x1
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1276
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r1, 20
|
|
|
|
bl sub_80A14F8
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1276:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A1260
|
|
|
|
|
|
|
|
thumb_func_start sub_80A127C
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A127C: @ 80A127C
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r1, r0, 16
|
|
|
|
movs r0, 0xE0
|
|
|
|
lsls r0, 11
|
|
|
|
ands r0, r1
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1290
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r1, 19
|
|
|
|
bl sub_80A1548
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1290:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A127C
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1294
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1294: @ 80A1294
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r1, r0, 16
|
|
|
|
movs r0, 0xE0
|
|
|
|
lsls r0, 11
|
|
|
|
ands r0, r1
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A12A8
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r1, 19
|
|
|
|
bl sub_80A1570
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A12A8:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A1294
|
|
|
|
|
|
|
|
thumb_func_start sub_80A12AC
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A12AC: @ 80A12AC
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
movs r1, 0xC0
|
|
|
|
lsls r1, 10
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_08513684
|
|
|
|
lsrs r1, 14
|
|
|
|
adds r1, r0
|
|
|
|
ldr r0, [r1]
|
|
|
|
ldr r1, =0x06003c00
|
|
|
|
movs r2, 0xA0
|
|
|
|
lsls r2, 1
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A12AC
|
|
|
|
|
|
|
|
thumb_func_start sub_80A12D4
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A12D4: @ 80A12D4
|
2015-11-27 18:39:52 +01:00
|
|
|
push {r4,r5,lr}
|
|
|
|
lsls r0, 24
|
|
|
|
lsrs r4, r0, 24
|
|
|
|
movs r0, 0x3
|
|
|
|
ands r0, r4
|
|
|
|
ldr r5, =gUnknown_08513894
|
|
|
|
lsls r0, 2
|
|
|
|
adds r0, r5
|
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, =0x06006400
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
|
|
|
adds r1, r4, 0x2
|
|
|
|
adds r0, r1, 0
|
|
|
|
asrs r0, 2
|
|
|
|
lsls r0, 2
|
|
|
|
subs r0, r1, r0
|
|
|
|
lsls r0, 24
|
|
|
|
lsrs r0, 22
|
|
|
|
adds r0, r5
|
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, =0x06006480
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r4,r5}
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A12D4
|
|
|
|
|
|
|
|
thumb_func_start sub_80A131C
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A131C: @ 80A131C
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 24
|
|
|
|
movs r1, 0xC0
|
|
|
|
lsls r1, 18
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_085143E4
|
|
|
|
lsrs r1, 22
|
|
|
|
adds r1, r0
|
|
|
|
ldr r0, [r1]
|
|
|
|
ldr r1, =0x06007a00
|
|
|
|
movs r2, 0xF0
|
|
|
|
lsls r2, 2
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A131C
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1344
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1344: @ 80A1344
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 24
|
|
|
|
movs r1, 0xC0
|
|
|
|
lsls r1, 18
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_085145F4
|
|
|
|
lsrs r1, 22
|
|
|
|
adds r1, r0
|
|
|
|
ldr r0, [r1]
|
|
|
|
ldr r1, =0x06007e00
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A1344
|
|
|
|
|
|
|
|
thumb_func_start sub_80A136C
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A136C: @ 80A136C
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 24
|
|
|
|
movs r1, 0xE0
|
|
|
|
lsls r1, 19
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_08514E04
|
|
|
|
lsrs r1, 22
|
|
|
|
adds r1, r0
|
|
|
|
ldr r0, [r1]
|
|
|
|
ldr r1, =0x06007e00
|
|
|
|
movs r2, 0x80
|
|
|
|
lsls r2, 1
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A136C
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1394
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1394: @ 80A1394
|
2015-11-27 18:39:52 +01:00
|
|
|
push {r4-r6,lr}
|
|
|
|
lsls r0, 16
|
|
|
|
lsrs r5, r0, 16
|
|
|
|
lsls r1, 24
|
|
|
|
lsrs r6, r1, 24
|
|
|
|
subs r0, r5, r6
|
|
|
|
lsls r0, 16
|
|
|
|
lsrs r5, r0, 16
|
|
|
|
cmp r5, 0xB
|
2016-01-07 05:23:20 +01:00
|
|
|
bhi _080A13F0
|
2015-11-27 18:39:52 +01:00
|
|
|
adds r0, r5, 0
|
|
|
|
movs r1, 0xC
|
|
|
|
bl __umodsi3
|
|
|
|
adds r4, r0, 0
|
|
|
|
lsls r4, 16
|
|
|
|
ldr r0, =gUnknown_08515384
|
|
|
|
lsrs r4, 14
|
|
|
|
adds r0, r4, r0
|
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, =gUnknown_08515344
|
|
|
|
lsls r5, r6, 2
|
|
|
|
adds r1, r5, r1
|
|
|
|
ldr r1, [r1]
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
|
|
|
ldr r0, =gUnknown_085153B4
|
|
|
|
adds r4, r0
|
|
|
|
ldr r0, [r4]
|
|
|
|
ldr r1, =gUnknown_08515364
|
|
|
|
adds r5, r1
|
|
|
|
ldr r1, [r5]
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
2016-01-07 05:23:20 +01:00
|
|
|
b _080A141C
|
2015-11-27 18:39:52 +01:00
|
|
|
.pool
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A13F0:
|
2015-11-27 18:39:52 +01:00
|
|
|
movs r0, 0x3
|
|
|
|
ands r5, r0
|
|
|
|
ldr r0, =gUnknown_085153E4
|
|
|
|
lsls r5, 2
|
|
|
|
adds r0, r5, r0
|
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, =gUnknown_08515344
|
|
|
|
lsls r4, r6, 2
|
|
|
|
adds r1, r4, r1
|
|
|
|
ldr r1, [r1]
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
|
|
|
ldr r0, =gUnknown_085153F4
|
|
|
|
adds r5, r0
|
|
|
|
ldr r0, [r5]
|
|
|
|
ldr r1, =gUnknown_08515364
|
|
|
|
adds r4, r1
|
|
|
|
ldr r1, [r4]
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A141C:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r4-r6}
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A1394
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1434
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1434: @ 80A1434
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
lsrs r0, 16
|
|
|
|
lsls r1, 24
|
|
|
|
lsrs r3, r1, 24
|
|
|
|
subs r0, r3
|
|
|
|
lsls r0, 16
|
|
|
|
movs r1, 0xE0
|
|
|
|
lsls r1, 11
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_08515824
|
|
|
|
lsrs r1, 14
|
|
|
|
adds r1, r0
|
|
|
|
ldr r2, [r1]
|
|
|
|
cmp r2, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
beq _080A1464
|
2015-11-27 18:39:52 +01:00
|
|
|
ldr r0, =gUnknown_08515804
|
|
|
|
lsls r1, r3, 2
|
|
|
|
adds r1, r0
|
|
|
|
ldr r1, [r1]
|
|
|
|
adds r0, r2, 0
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1464:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A1434
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1470
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1470: @ 80A1470
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
lsrs r0, 16
|
|
|
|
movs r1, 0x1
|
|
|
|
ands r0, r1
|
|
|
|
ldr r1, =gUnknown_08515964
|
|
|
|
lsls r0, 2
|
|
|
|
adds r0, r1
|
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, =0x06007800
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A1470
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1498
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1498: @ 80A1498
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
movs r1, 0xC0
|
|
|
|
lsls r1, 10
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_08515D8C
|
|
|
|
lsrs r1, 14
|
|
|
|
adds r1, r0
|
|
|
|
ldr r0, [r1]
|
|
|
|
ldr r1, =0x06005400
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A1498
|
|
|
|
|
|
|
|
thumb_func_start sub_80A14C0
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A14C0: @ 80A14C0
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
lsrs r0, 16
|
|
|
|
lsls r1, 24
|
|
|
|
lsrs r1, 24
|
|
|
|
subs r0, r1
|
|
|
|
lsls r0, 16
|
|
|
|
movs r2, 0xE0
|
|
|
|
lsls r2, 11
|
|
|
|
ands r2, r0
|
|
|
|
ldr r0, =gUnknown_085161DC
|
|
|
|
lsrs r2, 14
|
|
|
|
adds r2, r0
|
|
|
|
ldr r0, [r2]
|
|
|
|
ldr r2, =gUnknown_085161BC
|
|
|
|
lsls r1, 2
|
|
|
|
adds r1, r2
|
|
|
|
ldr r1, [r1]
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A14C0
|
|
|
|
|
|
|
|
thumb_func_start sub_80A14F8
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A14F8: @ 80A14F8
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
movs r1, 0xC0
|
|
|
|
lsls r1, 10
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_08515D8C
|
|
|
|
lsrs r1, 14
|
|
|
|
adds r1, r0
|
|
|
|
ldr r0, [r1]
|
|
|
|
ldr r1, =0x06007400
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A14F8
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1520
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1520: @ 80A1520
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
movs r1, 0xC0
|
|
|
|
lsls r1, 10
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_085164FC
|
|
|
|
lsrs r1, 14
|
|
|
|
adds r1, r0
|
|
|
|
ldr r0, [r1]
|
|
|
|
ldr r1, =0x06005540
|
|
|
|
movs r2, 0xC0
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A1520
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1548
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1548: @ 80A1548
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
movs r1, 0xC0
|
|
|
|
lsls r1, 10
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_0851680C
|
|
|
|
lsrs r1, 14
|
|
|
|
adds r1, r0
|
|
|
|
ldr r0, [r1]
|
|
|
|
ldr r1, =0x06005b40
|
|
|
|
movs r2, 0xC0
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A1548
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1570
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1570: @ 80A1570
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
movs r1, 0xC0
|
|
|
|
lsls r1, 10
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_08516B1C
|
|
|
|
lsrs r1, 14
|
|
|
|
adds r1, r0
|
|
|
|
ldr r0, [r1]
|
|
|
|
ldr r1, =0x06005b40
|
|
|
|
movs r2, 0xC0
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A1570
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1598
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1598: @ 80A1598
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
movs r1, 0xC0
|
|
|
|
lsls r1, 10
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_08516D2C
|
|
|
|
lsrs r1, 14
|
|
|
|
adds r1, r0
|
|
|
|
ldr r0, [r1]
|
|
|
|
ldr r1, =0x06005c00
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A1598
|
|
|
|
|
|
|
|
thumb_func_start sub_80A15C0
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A15C0: @ 80A15C0
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r2, r0, 16
|
|
|
|
lsrs r0, r2, 16
|
|
|
|
movs r1, 0x1
|
|
|
|
ands r0, r1
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A15D4
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r2, 17
|
|
|
|
bl sub_80A1748
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A15D4:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A15C0
|
|
|
|
|
|
|
|
thumb_func_start sub_80A15D8
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A15D8: @ 80A15D8
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r1, r0, 16
|
|
|
|
movs r0, 0xE0
|
|
|
|
lsls r0, 11
|
|
|
|
ands r0, r1
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A15EC
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r1, 19
|
|
|
|
bl sub_80A16B0
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A15EC:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A15D8
|
|
|
|
|
|
|
|
thumb_func_start sub_80A15F0
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A15F0: @ 80A15F0
|
2015-11-27 18:39:52 +01:00
|
|
|
push {r4,r5,lr}
|
|
|
|
lsls r4, r0, 16
|
|
|
|
lsrs r0, r4, 16
|
|
|
|
adds r5, r0, 0
|
|
|
|
movs r0, 0x3F
|
|
|
|
ands r0, r5
|
|
|
|
cmp r0, 0x1
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1606
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 22
|
|
|
|
bl sub_80A1720
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1606:
|
2015-11-27 18:39:52 +01:00
|
|
|
movs r0, 0x7
|
|
|
|
ands r0, r5
|
|
|
|
cmp r0, 0x1
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1614
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r4, 19
|
|
|
|
bl sub_80A16F8
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1614:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r4,r5}
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A15F0
|
|
|
|
|
|
|
|
thumb_func_start sub_80A161C
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A161C: @ 80A161C
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r1, r0, 16
|
|
|
|
movs r0, 0xC0
|
|
|
|
lsls r0, 10
|
|
|
|
ands r0, r1
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1630
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r1, 18
|
|
|
|
bl sub_80A1770
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1630:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A161C
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1634
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1634: @ 80A1634
|
2015-11-27 18:39:52 +01:00
|
|
|
push {r4,lr}
|
|
|
|
lsls r4, r0, 16
|
|
|
|
movs r0, 0xE0
|
|
|
|
lsls r0, 11
|
|
|
|
ands r0, r4
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1650
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r4, 19
|
|
|
|
adds r0, r4, 0
|
|
|
|
bl sub_80A17C0
|
|
|
|
adds r0, r4, 0
|
|
|
|
bl sub_80A17EC
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1650:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r4}
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A1634
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1658
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1658: @ 80A1658
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r1, r0, 16
|
|
|
|
movs r0, 0xC0
|
|
|
|
lsls r0, 10
|
|
|
|
ands r0, r1
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A166C
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r1, 18
|
|
|
|
bl sub_80A1818
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A166C:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A1658
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1670
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1670: @ 80A1670
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r1, r0, 16
|
|
|
|
movs r0, 0xC0
|
|
|
|
lsls r0, 10
|
|
|
|
ands r0, r1
|
|
|
|
cmp r0, 0
|
2016-01-07 05:23:20 +01:00
|
|
|
bne _080A1684
|
2015-11-27 18:39:52 +01:00
|
|
|
lsrs r0, r1, 18
|
|
|
|
bl sub_80A1884
|
2016-01-07 05:23:20 +01:00
|
|
|
_080A1684:
|
2015-11-27 18:39:52 +01:00
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
thumb_func_end sub_80A1670
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1688
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1688: @ 80A1688
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
lsrs r0, 16
|
|
|
|
movs r1, 0x1
|
|
|
|
ands r0, r1
|
|
|
|
ldr r1, =gUnknown_08516E3C
|
|
|
|
lsls r0, 2
|
|
|
|
adds r0, r1
|
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, =0x06003e00
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A1688
|
|
|
|
|
|
|
|
thumb_func_start sub_80A16B0
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A16B0: @ 80A16B0
|
2015-11-27 18:39:52 +01:00
|
|
|
push {r4,lr}
|
|
|
|
lsls r0, 16
|
|
|
|
lsrs r0, 16
|
|
|
|
movs r1, 0x3
|
|
|
|
bl __umodsi3
|
|
|
|
adds r4, r0, 0
|
|
|
|
lsls r4, 16
|
|
|
|
ldr r0, =gUnknown_08517A44
|
|
|
|
lsrs r4, 14
|
|
|
|
adds r0, r4, r0
|
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, =0x06007e00
|
|
|
|
movs r2, 0xC0
|
|
|
|
lsls r2, 1
|
|
|
|
bl sub_80A0980
|
|
|
|
ldr r0, =gUnknown_08517A50
|
|
|
|
adds r4, r0
|
|
|
|
ldr r0, [r4]
|
|
|
|
ldr r1, =0x06007a00
|
|
|
|
movs r2, 0xA0
|
|
|
|
lsls r2, 2
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r4}
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A16B0
|
|
|
|
|
|
|
|
thumb_func_start sub_80A16F8
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A16F8: @ 80A16F8
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
movs r1, 0xC0
|
|
|
|
lsls r1, 10
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_08517BFC
|
|
|
|
lsrs r1, 14
|
|
|
|
adds r1, r0
|
|
|
|
ldr r0, [r1]
|
|
|
|
ldr r1, =0x06007f00
|
|
|
|
movs r2, 0x20
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A16F8
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1720
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1720: @ 80A1720
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
lsrs r0, 16
|
|
|
|
movs r1, 0x1
|
|
|
|
ands r0, r1
|
|
|
|
ldr r1, =gUnknown_08517C0C
|
|
|
|
lsls r0, 2
|
|
|
|
adds r0, r1
|
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, =0x06007c00
|
|
|
|
movs r2, 0x80
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A1720
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1748
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1748: @ 80A1748
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
lsrs r0, 16
|
|
|
|
movs r1, 0x1
|
|
|
|
ands r0, r1
|
|
|
|
ldr r1, =gUnknown_08518034
|
|
|
|
lsls r0, 2
|
|
|
|
adds r0, r1
|
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, =0x06005200
|
|
|
|
movs r2, 0x80
|
|
|
|
lsls r2, 2
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A1748
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1770
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1770: @ 80A1770
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
lsrs r0, 16
|
|
|
|
movs r1, 0x1
|
|
|
|
ands r0, r1
|
|
|
|
ldr r1, =gUnknown_0851829C
|
|
|
|
lsls r0, 2
|
|
|
|
adds r0, r1
|
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, =0x06007e00
|
|
|
|
movs r2, 0x90
|
|
|
|
lsls r2, 1
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A1770
|
|
|
|
|
|
|
|
thumb_func_start sub_80A1798
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A1798: @ 80A1798
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
movs r1, 0xE0
|
|
|
|
lsls r1, 11
|
|
|
|
ands r1, r0
|
|
|
|
ldr r0, =gUnknown_085202C4
|
|
|
|
lsrs r1, 14
|
|
|
|
adds r1, r0
|
|
|
|
ldr r0, [r1]
|
|
|
|
ldr r1, =0x06005e00
|
|
|
|
movs r2, 0xC0
|
|
|
|
lsls r2, 4
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A1798
|
|
|
|
|
|
|
|
thumb_func_start sub_80A17C0
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A17C0: @ 80A17C0
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
lsrs r0, 16
|
|
|
|
movs r1, 0x3
|
|
|
|
bl __umodsi3
|
|
|
|
lsls r0, 16
|
|
|
|
ldr r1, =gUnknown_08524864
|
|
|
|
lsrs r0, 14
|
|
|
|
adds r0, r1
|
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, =0x060052e0
|
|
|
|
movs r2, 0x80
|
|
|
|
lsls r2, 1
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A17C0
|
|
|
|
|
|
|
|
thumb_func_start sub_80A17EC
|
2016-09-03 04:51:16 +02:00
|
|
|
sub_80A17EC: @ 80A17EC
|
2015-11-27 18:39:52 +01:00
|
|
|
push {lr}
|
|
|
|
lsls r0, 16
|
|
|
|
lsrs r0, 16
|
|
|
|
movs r1, 0x3
|
|
|
|
bl __umodsi3
|
|
|
|
lsls r0, 16
|
|
|
|
ldr r1, =gUnknown_08524870
|
|
|
|
lsrs r0, 14
|
|
|
|
adds r0, r1
|
|
|
|
ldr r0, [r0]
|
|
|
|
ldr r1, =0x060050e0
|
|
|
|
movs r2, 0x80
|
|
|
|
lsls r2, 1
|
|
|
|
bl sub_80A0980
|
|
|
|
pop {r0}
|
|
|
|
bx r0
|
|
|
|
.pool
|
|
|
|
thumb_func_end sub_80A17EC
|
|
|
|
|
2016-09-03 08:11:29 +02:00
|
|
|
.align 2, 0 @ Don't pad with nop.
|