Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .type BattleAICmd_get_highest_possible_damage,function
- .thumb_func
- BattleAICmd_get_highest_possible_damage:
- push {r4, r5, r6, r7, lr}
- mov r7, r8
- push {r7}
- ldr r0, .L500
- mov r2, #0x0
- strh r2, [r0]
- ldr r1, .L500+0x4
- ldr r3, .L500+0x8
- add r0, r1, r3
- mov r4, #0x0
- strb r2, [r0]
- add r3, r3, #0x3
- add r0, r1, r3
- mov r3, #0x1
- strb r3, [r0]
- ldr r0, .L500+0xc
- strb r2, [r0]
- ldr r0, .L500+0x10
- strb r3, [r0]
- mov r0, #0xb4
- lsl r0, r0, #0x9
- add r1, r1, r0
- str r4, [r1, #0x8]
- mov r5, #0x0
- ldr r4, .L500+0x14
- ldr r7, .L500+0x18
- ldr r3, .L500+0x1c
- mov r8, r3
- ldr r6, .L500+0x20
- .L491:
- mov r0, #0x28
- str r0, [r4]
- lsl r1, r5, #0x1
- ldrb r2, [r6]
- mov r0, #0x58
- mul r0, r0, r2
- add r1, r1, r0
- add r1, r1, r8
- ldrh r0, [r1]
- strh r0, [r7]
- lsl r0, r0, #0x10
- cmp r0, #0
- beq .L490 @cond_branch
- ldrh r0, [r7]
- ldrb r1, [r6]
- ldr r2, .L500+0x24
- ldrb r2, [r2]
- bl move_effectiveness_something
- ldr r0, [r4]
- cmp r0, #0x78
- bne .L493 @cond_branch
- mov r0, #0x50
- str r0, [r4]
- .L493:
- ldr r0, [r4]
- cmp r0, #0xf0
- bne .L494 @cond_branch
- mov r0, #0xa0
- str r0, [r4]
- .L494:
- ldr r0, [r4]
- cmp r0, #0x1e
- bne .L495 @cond_branch
- mov r0, #0x14
- str r0, [r4]
- .L495:
- ldr r0, [r4]
- cmp r0, #0xf
- bne .L496 @cond_branch
- mov r0, #0xa
- str r0, [r4]
- .L496:
- ldr r0, .L500+0xc
- ldrb r1, [r0]
- mov r0, #0x8
- and r0, r0, r1
- cmp r0, #0
- beq .L497 @cond_branch
- mov r0, #0x0
- str r0, [r4]
- .L497:
- ldr r2, .L500+0x28
- ldr r0, [r2, #0x8]
- ldr r1, [r4]
- cmp r0, r1
- bcs .L490 @cond_branch
- str r1, [r2, #0x8]
- .L490:
- add r5, r5, #0x1
- cmp r5, #0x3
- ble .L491 @cond_branch
- ldr r1, .L500+0x2c
- ldr r0, [r1]
- add r0, r0, #0x1
- str r0, [r1]
- pop {r3}
- mov r8, r3
- pop {r4, r5, r6, r7}
- pop {r0}
- bx r0
- .L501:
- .align 2, 0
- .L500:
- .word gUnknown_02024DEC
- .word unk_2000000
- .word 0x1601c
- .word gBattleMoveFlags
- .word gCritMultiplier
- .word gBattleMoveDamage
- .word gUnknown_02024BE6
- .word gBattleMons+0xc
- .word gPlayerMonIndex
- .word gEnemyMonIndex
- .word unk_2000000+0x16800
- .word gAIScriptPtr
- .Lfe57:
- .size BattleAICmd_get_highest_possible_damage,.Lfe57-BattleAICmd_get_highest_possible_damage
- .align 2, 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement