1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
|
.include "constants/gba_constants.inc"
.include "asm/macros.inc"
.syntax unified
.text
@ liquid_ball
thumb_func_start sub_80D3554
sub_80D3554: @ 80D3554
push {r4,r5,lr}
adds r5, r0, 0
movs r1, 0x1
bl sub_80787B0
movs r0, 0x1E
strh r0, [r5, 0x2E]
ldrh r0, [r5, 0x20]
strh r0, [r5, 0x30]
ldr r4, _080D35BC @ =gBattleAnimBankTarget
ldrb r0, [r4]
movs r1, 0x2
bl sub_8077ABC
lsls r0, 24
lsrs r0, 24
strh r0, [r5, 0x32]
ldrh r0, [r5, 0x22]
strh r0, [r5, 0x34]
ldrb r0, [r4]
movs r1, 0x3
bl sub_8077ABC
lsls r0, 24
lsrs r0, 24
strh r0, [r5, 0x36]
adds r0, r5, 0
bl obj_translate_based_on_private_1_2_3_4
movs r0, 0x2E
ldrsh r1, [r5, r0]
movs r0, 0xD2
lsls r0, 8
bl __divsi3
strh r0, [r5, 0x38]
ldr r0, _080D35C0 @ =gBattleAnimArgs
ldrh r2, [r0, 0x6]
strh r2, [r5, 0x3C]
ldrh r1, [r0, 0xE]
movs r3, 0xE
ldrsh r0, [r0, r3]
cmp r0, 0x7F
ble _080D35C4
adds r0, r1, 0
subs r0, 0x7F
lsls r0, 8
strh r0, [r5, 0x3A]
negs r0, r2
strh r0, [r5, 0x3C]
b _080D35C8
.align 2, 0
_080D35BC: .4byte gBattleAnimBankTarget
_080D35C0: .4byte gBattleAnimArgs
_080D35C4:
lsls r0, r1, 8
strh r0, [r5, 0x3A]
_080D35C8:
ldr r1, _080D35D8 @ =sub_80D35DC
str r1, [r5, 0x1C]
adds r0, r5, 0
bl _call_via_r1
pop {r4,r5}
pop {r0}
bx r0
.align 2, 0
_080D35D8: .4byte sub_80D35DC
thumb_func_end sub_80D3554
thumb_func_start sub_80D35DC
sub_80D35DC: @ 80D35DC
push {r4,lr}
adds r4, r0, 0
bl sub_8078B5C
lsls r0, 24
cmp r0, 0
beq _080D35F0
adds r0, r4, 0
bl move_anim_8072740
_080D35F0:
ldrh r0, [r4, 0x3A]
lsls r0, 16
asrs r0, 24
movs r2, 0x3C
ldrsh r1, [r4, r2]
bl Sin
ldrh r1, [r4, 0x26]
adds r0, r1
strh r0, [r4, 0x26]
movs r2, 0x3A
ldrsh r0, [r4, r2]
movs r2, 0x38
ldrsh r1, [r4, r2]
adds r0, r1
asrs r0, 8
cmp r0, 0x7F
ble _080D3620
movs r0, 0
strh r0, [r4, 0x3A]
ldrh r0, [r4, 0x3C]
negs r0, r0
strh r0, [r4, 0x3C]
b _080D3628
_080D3620:
ldrh r0, [r4, 0x38]
ldrh r1, [r4, 0x3A]
adds r0, r1
strh r0, [r4, 0x3A]
_080D3628:
pop {r4}
pop {r0}
bx r0
thumb_func_end sub_80D35DC
thumb_func_start sub_80D3630
sub_80D3630: @ 80D3630
lsls r0, 24
lsrs r0, 24
ldr r2, _080D3650 @ =gTasks
lsls r1, r0, 2
adds r1, r0
lsls r1, 3
adds r1, r2
ldr r3, _080D3654 @ =gBattleAnimArgs
ldrh r0, [r3]
movs r2, 0
strh r0, [r1, 0x8]
strh r2, [r3, 0xE]
ldr r0, _080D3658 @ =sub_80D365C
str r0, [r1]
bx lr
.align 2, 0
_080D3650: .4byte gTasks
_080D3654: .4byte gBattleAnimArgs
_080D3658: .4byte sub_80D365C
thumb_func_end sub_80D3630
thumb_func_start sub_80D365C
sub_80D365C: @ 80D365C
push {lr}
lsls r0, 24
lsrs r3, r0, 24
ldr r2, _080D3690 @ =gBattleAnimArgs
ldrh r0, [r2, 0xE]
adds r0, 0x3
movs r1, 0xFF
ands r0, r1
strh r0, [r2, 0xE]
ldr r1, _080D3694 @ =gTasks
lsls r0, r3, 2
adds r0, r3
lsls r0, 3
adds r0, r1
ldrh r1, [r0, 0x8]
subs r1, 0x1
strh r1, [r0, 0x8]
lsls r1, 16
cmp r1, 0
bne _080D368A
adds r0, r3, 0
bl DestroyAnimVisualTask
_080D368A:
pop {r0}
bx r0
.align 2, 0
_080D3690: .4byte gBattleAnimArgs
_080D3694: .4byte gTasks
thumb_func_end sub_80D365C
thumb_func_start sub_80D3698
sub_80D3698: @ 80D3698
push {r4-r7,lr}
adds r4, r0, 0
ldr r7, _080D36E4 @ =gBattleAnimBankAttacker
ldrb r0, [r7]
movs r1, 0
bl sub_8077ABC
lsls r0, 24
lsrs r0, 24
strh r0, [r4, 0x20]
ldrb r0, [r7]
movs r1, 0x1
bl sub_8077ABC
lsls r0, 24
lsrs r0, 24
strh r0, [r4, 0x22]
ldr r6, _080D36E8 @ =0x0000fff6
strh r6, [r4, 0x26]
ldrb r0, [r7]
bl sub_8079E90
lsls r0, 24
lsrs r5, r0, 24
bl NotInBattle
lsls r0, 24
cmp r0, 0
bne _080D36F2
ldrb r0, [r7]
bl GetBankSide
lsls r0, 24
cmp r0, 0
bne _080D36EC
movs r0, 0xA
strh r0, [r4, 0x24]
b _080D36F4
.align 2, 0
_080D36E4: .4byte gBattleAnimBankAttacker
_080D36E8: .4byte 0x0000fff6
_080D36EC:
strh r6, [r4, 0x24]
subs r0, r5, 0x2
b _080D36F6
_080D36F2:
strh r6, [r4, 0x24]
_080D36F4:
adds r0, r5, 0x2
_080D36F6:
adds r1, r4, 0
adds r1, 0x43
strb r0, [r1]
ldr r0, _080D3708 @ =sub_80D370C
str r0, [r4, 0x1C]
pop {r4-r7}
pop {r0}
bx r0
.align 2, 0
_080D3708: .4byte sub_80D370C
thumb_func_end sub_80D3698
thumb_func_start sub_80D370C
sub_80D370C: @ 80D370C
push {lr}
adds r2, r0, 0
adds r0, 0x3F
ldrb r1, [r0]
movs r0, 0x20
ands r0, r1
cmp r0, 0
beq _080D3722
adds r0, r2, 0
bl move_anim_8072740
_080D3722:
pop {r0}
bx r0
thumb_func_end sub_80D370C
thumb_func_start sub_80D3728
sub_80D3728: @ 80D3728
push {r4-r7,lr}
adds r6, r0, 0
ldr r5, _080D37E8 @ =gBattleAnimBankAttacker
ldrb r0, [r5]
bl GetBankSide
adds r4, r0, 0
ldr r0, _080D37EC @ =gBattleAnimBankTarget
ldrb r0, [r0]
bl GetBankSide
lsls r4, 24
lsls r0, 24
cmp r4, r0
bne _080D3772
ldr r4, _080D37F0 @ =gBattleAnimArgs
movs r1, 0
ldrsh r0, [r4, r1]
negs r0, r0
strh r0, [r4]
ldrb r0, [r5]
bl GetBankIdentity
lsls r0, 24
cmp r0, 0
beq _080D376A
ldrb r0, [r5]
bl GetBankIdentity
lsls r0, 24
lsrs r0, 24
cmp r0, 0x1
bne _080D3772
_080D376A:
movs r1, 0
ldrsh r0, [r4, r1]
negs r0, r0
strh r0, [r4]
_080D3772:
ldr r5, _080D37F0 @ =gBattleAnimArgs
movs r1, 0xA
ldrsh r0, [r5, r1]
movs r1, 0xFF
lsls r1, 8
ands r0, r1
movs r1, 0
cmp r0, 0
bne _080D3786
movs r1, 0x1
_080D3786:
ldrb r0, [r5, 0xA]
movs r7, 0x1
cmp r0, 0
bne _080D3790
movs r7, 0x3
_080D3790:
adds r0, r6, 0
bl sub_80787B0
ldr r0, _080D37E8 @ =gBattleAnimBankAttacker
ldrb r0, [r0]
bl GetBankSide
lsls r0, 24
cmp r0, 0
beq _080D37AA
ldrh r0, [r5, 0x4]
negs r0, r0
strh r0, [r5, 0x4]
_080D37AA:
ldrh r0, [r5, 0x8]
strh r0, [r6, 0x2E]
ldr r4, _080D37EC @ =gBattleAnimBankTarget
ldrb r0, [r4]
movs r1, 0x2
bl sub_8077ABC
lsls r0, 24
lsrs r0, 24
ldrh r1, [r5, 0x4]
adds r0, r1
strh r0, [r6, 0x32]
ldrb r0, [r4]
adds r1, r7, 0
bl sub_8077ABC
lsls r0, 24
lsrs r0, 24
ldrh r5, [r5, 0x6]
adds r0, r5
strh r0, [r6, 0x36]
ldr r0, _080D37F4 @ =sub_8078B34
str r0, [r6, 0x1C]
ldr r1, _080D37F8 @ =move_anim_8072740
adds r0, r6, 0
bl StoreSpriteCallbackInData
pop {r4-r7}
pop {r0}
bx r0
.align 2, 0
_080D37E8: .4byte gBattleAnimBankAttacker
_080D37EC: .4byte gBattleAnimBankTarget
_080D37F0: .4byte gBattleAnimArgs
_080D37F4: .4byte sub_8078B34
_080D37F8: .4byte move_anim_8072740
thumb_func_end sub_80D3728
.align 2, 0 @ Don't pad with nop.
|