sub_81C9A10
This commit is contained in:
@@ -5,257 +5,6 @@
|
||||
|
||||
@ File centered around AllocSubstruct(2)
|
||||
|
||||
thumb_func_start sub_81C9A10
|
||||
sub_81C9A10: @ 81C9A10
|
||||
push {r4,r5,lr}
|
||||
sub sp, 0x4
|
||||
adds r4, r0, 0
|
||||
movs r0, 0x2
|
||||
bl GetSubstructPtr
|
||||
adds r5, r0, 0
|
||||
cmp r4, 0x9
|
||||
bls _081C9A24
|
||||
b _081C9C60
|
||||
_081C9A24:
|
||||
lsls r0, r4, 2
|
||||
ldr r1, =_081C9A34
|
||||
adds r0, r1
|
||||
ldr r0, [r0]
|
||||
mov pc, r0
|
||||
.pool
|
||||
.align 2, 0
|
||||
_081C9A34:
|
||||
.4byte _081C9A5C
|
||||
.4byte _081C9AEC
|
||||
.4byte _081C9B30
|
||||
.4byte _081C9B88
|
||||
.4byte _081C9B9E
|
||||
.4byte _081C9BA4
|
||||
.4byte _081C9BB6
|
||||
.4byte _081C9BC0
|
||||
.4byte _081C9C0E
|
||||
.4byte _081C9C4C
|
||||
_081C9A5C:
|
||||
ldr r0, =gUnknown_08620194
|
||||
movs r1, 0x3
|
||||
bl InitBgTemplates
|
||||
ldr r1, =gPokenavMessageBox_Gfx
|
||||
movs r0, 0
|
||||
str r0, [sp]
|
||||
movs r0, 0x1
|
||||
movs r2, 0
|
||||
movs r3, 0
|
||||
bl decompress_and_copy_tile_data_to_vram
|
||||
adds r1, r5, 0
|
||||
adds r1, 0x8C
|
||||
movs r0, 0x1
|
||||
bl SetBgTilemapBuffer
|
||||
ldr r1, =gPokenavMessageBox_Tilemap
|
||||
movs r0, 0x1
|
||||
movs r2, 0
|
||||
movs r3, 0
|
||||
bl CopyToBgTilemapBuffer
|
||||
movs r0, 0x1
|
||||
bl CopyBgTilemapBufferToVram
|
||||
ldr r0, =gPokenavMessageBox_Pal
|
||||
movs r1, 0x10
|
||||
movs r2, 0x20
|
||||
bl CopyPaletteIntoBufferUnfaded
|
||||
movs r0, 0x1
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl ChangeBgX
|
||||
movs r0, 0x1
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl ChangeBgY
|
||||
movs r0, 0x2
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl ChangeBgX
|
||||
movs r0, 0x2
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl ChangeBgY
|
||||
movs r0, 0x3
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl ChangeBgX
|
||||
movs r0, 0x3
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl ChangeBgY
|
||||
_081C9AD6:
|
||||
movs r0, 0
|
||||
b _081C9C62
|
||||
.pool
|
||||
_081C9AEC:
|
||||
bl free_temp_tile_data_buffers_if_possible
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
cmp r0, 0
|
||||
beq _081C9AFA
|
||||
b _081C9C5C
|
||||
_081C9AFA:
|
||||
ldr r1, =gUnknown_0861FD6C
|
||||
str r0, [sp]
|
||||
movs r0, 0x2
|
||||
movs r2, 0
|
||||
movs r3, 0
|
||||
bl decompress_and_copy_tile_data_to_vram
|
||||
ldr r1, =gUnknown_0861FFF4
|
||||
movs r0, 0x1
|
||||
str r0, [sp]
|
||||
movs r0, 0x2
|
||||
movs r2, 0
|
||||
movs r3, 0
|
||||
bl decompress_and_copy_tile_data_to_vram
|
||||
ldr r0, =gUnknown_0861FD4C
|
||||
movs r1, 0x20
|
||||
movs r2, 0x20
|
||||
bl CopyPaletteIntoBufferUnfaded
|
||||
b _081C9AD6
|
||||
.pool
|
||||
_081C9B30:
|
||||
bl free_temp_tile_data_buffers_if_possible
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
cmp r0, 0
|
||||
beq _081C9B3E
|
||||
b _081C9C5C
|
||||
_081C9B3E:
|
||||
ldr r1, =gUnknown_0861FC98
|
||||
str r0, [sp]
|
||||
movs r0, 0x3
|
||||
movs r2, 0
|
||||
movs r3, 0
|
||||
bl decompress_and_copy_tile_data_to_vram
|
||||
ldr r1, =gUnknown_0861FCAC
|
||||
movs r0, 0x1
|
||||
str r0, [sp]
|
||||
movs r0, 0x3
|
||||
movs r2, 0
|
||||
movs r3, 0
|
||||
bl decompress_and_copy_tile_data_to_vram
|
||||
ldr r0, =gUnknown_0861FC78
|
||||
movs r1, 0x30
|
||||
movs r2, 0x20
|
||||
bl CopyPaletteIntoBufferUnfaded
|
||||
bl sub_81C9894
|
||||
cmp r0, 0x3
|
||||
beq _081C9B76
|
||||
bl sub_81C9894
|
||||
cmp r0, 0x4
|
||||
bne _081C9AD6
|
||||
_081C9B76:
|
||||
bl sub_81CA850
|
||||
b _081C9AD6
|
||||
.pool
|
||||
_081C9B88:
|
||||
bl free_temp_tile_data_buffers_if_possible
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
bne _081C9C5C
|
||||
bl sub_81CA6E0
|
||||
bl sub_81CA7D4
|
||||
_081C9B9A:
|
||||
movs r0, 0x1
|
||||
b _081C9C62
|
||||
_081C9B9E:
|
||||
bl sub_81C9FC4
|
||||
b _081C9B9A
|
||||
_081C9BA4:
|
||||
bl sub_81CA714
|
||||
bl sub_81CA02C
|
||||
bl sub_81CA640
|
||||
bl sub_81CA0C8
|
||||
b _081C9AD6
|
||||
_081C9BB6:
|
||||
bl sub_81CA7C4
|
||||
cmp r0, 0
|
||||
bne _081C9C5C
|
||||
b _081C9B9A
|
||||
_081C9BC0:
|
||||
movs r0, 0x1
|
||||
bl ShowBg
|
||||
movs r0, 0x2
|
||||
bl ShowBg
|
||||
movs r0, 0x3
|
||||
bl ShowBg
|
||||
ldrb r0, [r5, 0xD]
|
||||
cmp r0, 0
|
||||
beq _081C9BE0
|
||||
movs r0, 0x1
|
||||
bl sub_81C7AC0
|
||||
b _081C9BEC
|
||||
_081C9BE0:
|
||||
movs r0, 0x6E
|
||||
bl PlaySE
|
||||
movs r0, 0x3
|
||||
bl sub_81C7AC0
|
||||
_081C9BEC:
|
||||
bl sub_81C9894
|
||||
cmp r0, 0x3
|
||||
beq _081C9BFE
|
||||
cmp r0, 0x4
|
||||
bne _081C9C06
|
||||
movs r0, 0x7
|
||||
bl LoadLeftHeaderGfxForIndex
|
||||
_081C9BFE:
|
||||
movs r0, 0x1
|
||||
bl LoadLeftHeaderGfxForIndex
|
||||
b _081C9AD6
|
||||
_081C9C06:
|
||||
movs r0, 0
|
||||
bl LoadLeftHeaderGfxForIndex
|
||||
b _081C9AD6
|
||||
_081C9C0E:
|
||||
bl IsPaletteFadeActive
|
||||
cmp r0, 0
|
||||
bne _081C9C5C
|
||||
bl sub_81C9894
|
||||
cmp r0, 0x3
|
||||
beq _081C9C2C
|
||||
cmp r0, 0x4
|
||||
bne _081C9C38
|
||||
movs r0, 0x7
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl sub_81C7FA0
|
||||
_081C9C2C:
|
||||
movs r0, 0x1
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl sub_81C7FA0
|
||||
b _081C9C42
|
||||
_081C9C38:
|
||||
movs r0, 0
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
bl sub_81C7FA0
|
||||
_081C9C42:
|
||||
bl sub_81CA20C
|
||||
bl titlescreen_0
|
||||
b _081C9B9A
|
||||
_081C9C4C:
|
||||
bl sub_81CA324
|
||||
cmp r0, 0
|
||||
bne _081C9C5C
|
||||
bl sub_81C8010
|
||||
cmp r0, 0
|
||||
beq _081C9C60
|
||||
_081C9C5C:
|
||||
movs r0, 0x2
|
||||
b _081C9C62
|
||||
_081C9C60:
|
||||
movs r0, 0x4
|
||||
_081C9C62:
|
||||
add sp, 0x4
|
||||
pop {r4,r5}
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end sub_81C9A10
|
||||
|
||||
thumb_func_start sub_81C9C6C
|
||||
sub_81C9C6C: @ 81C9C6C
|
||||
push {lr}
|
||||
|
||||
Reference in New Issue
Block a user