.set noat # allow manual use of $at .set noreorder # don't insert nops after branches glabel func_802A123C_7217DC /* 7217DC 802A123C 27BDFFB8 */ addiu $sp, $sp, -0x48 /* 7217E0 802A1240 AFB20020 */ sw $s2, 0x20($sp) /* 7217E4 802A1244 AFB30024 */ sw $s3, 0x24($sp) /* 7217E8 802A1248 3C13800E */ lui $s3, %hi(gBattleStatus) /* 7217EC 802A124C 2673C070 */ addiu $s3, $s3, %lo(gBattleStatus) /* 7217F0 802A1250 AFBF002C */ sw $ra, 0x2c($sp) /* 7217F4 802A1254 AFB40028 */ sw $s4, 0x28($sp) /* 7217F8 802A1258 AFB1001C */ sw $s1, 0x1c($sp) /* 7217FC 802A125C AFB00018 */ sw $s0, 0x18($sp) /* 721800 802A1260 F7B80040 */ sdc1 $f24, 0x40($sp) /* 721804 802A1264 F7B60038 */ sdc1 $f22, 0x38($sp) /* 721808 802A1268 F7B40030 */ sdc1 $f20, 0x30($sp) /* 72180C 802A126C 8E7000D8 */ lw $s0, 0xd8($s3) /* 721810 802A1270 10A00002 */ beqz $a1, .L802A127C /* 721814 802A1274 0080902D */ daddu $s2, $a0, $zero /* 721818 802A1278 AE400070 */ sw $zero, 0x70($s2) .L802A127C: /* 72181C 802A127C 8E430070 */ lw $v1, 0x70($s2) /* 721820 802A1280 10600005 */ beqz $v1, .L802A1298 /* 721824 802A1284 24020001 */ addiu $v0, $zero, 1 /* 721828 802A1288 1062000D */ beq $v1, $v0, .L802A12C0 /* 72182C 802A128C 0000102D */ daddu $v0, $zero, $zero /* 721830 802A1290 080A84E9 */ j .L802A13A4 /* 721834 802A1294 00000000 */ nop .L802A1298: /* 721838 802A1298 0200202D */ daddu $a0, $s0, $zero /* 72183C 802A129C 8E460084 */ lw $a2, 0x84($s2) /* 721840 802A12A0 0C0997D0 */ jal inflict_status /* 721844 802A12A4 2405000C */ addiu $a1, $zero, 0xc /* 721848 802A12A8 24020003 */ addiu $v0, $zero, 3 /* 72184C 802A12AC A200021C */ sb $zero, 0x21c($s0) /* 721850 802A12B0 AE420074 */ sw $v0, 0x74($s2) /* 721854 802A12B4 24020001 */ addiu $v0, $zero, 1 /* 721858 802A12B8 080A84E8 */ j .L802A13A0 /* 72185C 802A12BC AE420070 */ sw $v0, 0x70($s2) .L802A12C0: /* 721860 802A12C0 0000882D */ daddu $s1, $zero, $zero /* 721864 802A12C4 24140019 */ addiu $s4, $zero, 0x19 /* 721868 802A12C8 3C0140A0 */ lui $at, 0x40a0 /* 72186C 802A12CC 4481C000 */ mtc1 $at, $f24 /* 721870 802A12D0 3C013F80 */ lui $at, 0x3f80 /* 721874 802A12D4 4481B000 */ mtc1 $at, $f22 .L802A12D8: /* 721878 802A12D8 0C00A67F */ jal rand_int /* 72187C 802A12DC 24040014 */ addiu $a0, $zero, 0x14 /* 721880 802A12E0 2442FFF6 */ addiu $v0, $v0, -0xa /* 721884 802A12E4 C6020188 */ lwc1 $f2, 0x188($s0) /* 721888 802A12E8 44820000 */ mtc1 $v0, $f0 /* 72188C 802A12EC 00000000 */ nop /* 721890 802A12F0 46800020 */ cvt.s.w $f0, $f0 /* 721894 802A12F4 46020002 */ mul.s $f0, $f0, $f2 /* 721898 802A12F8 00000000 */ nop /* 72189C 802A12FC C6140144 */ lwc1 $f20, 0x144($s0) /* 7218A0 802A1300 24040014 */ addiu $a0, $zero, 0x14 /* 7218A4 802A1304 0C00A67F */ jal rand_int /* 7218A8 802A1308 4600A500 */ add.s $f20, $f20, $f0 /* 7218AC 802A130C 2442000A */ addiu $v0, $v0, 0xa /* 7218B0 802A1310 C6020188 */ lwc1 $f2, 0x188($s0) /* 7218B4 802A1314 44820000 */ mtc1 $v0, $f0 /* 7218B8 802A1318 00000000 */ nop /* 7218BC 802A131C 46800020 */ cvt.s.w $f0, $f0 /* 7218C0 802A1320 46020002 */ mul.s $f0, $f0, $f2 /* 7218C4 802A1324 00000000 */ nop /* 7218C8 802A1328 C6020148 */ lwc1 $f2, 0x148($s0) /* 7218CC 802A132C 46001080 */ add.s $f2, $f2, $f0 /* 7218D0 802A1330 C600014C */ lwc1 $f0, 0x14c($s0) /* 7218D4 802A1334 26310001 */ addiu $s1, $s1, 1 /* 7218D8 802A1338 46180000 */ add.s $f0, $f0, $f24 /* 7218DC 802A133C 4405A000 */ mfc1 $a1, $f20 /* 7218E0 802A1340 44061000 */ mfc1 $a2, $f2 /* 7218E4 802A1344 44070000 */ mfc1 $a3, $f0 /* 7218E8 802A1348 0000202D */ daddu $a0, $zero, $zero /* 7218EC 802A134C E7B60010 */ swc1 $f22, 0x10($sp) /* 7218F0 802A1350 0C01C7FC */ jal func_80071FF0 /* 7218F4 802A1354 AFB40014 */ sw $s4, 0x14($sp) /* 7218F8 802A1358 2A22000A */ slti $v0, $s1, 0xa /* 7218FC 802A135C 1440FFDE */ bnez $v0, .L802A12D8 /* 721900 802A1360 00000000 */ nop /* 721904 802A1364 8E420074 */ lw $v0, 0x74($s2) /* 721908 802A1368 1440000C */ bnez $v0, .L802A139C /* 72190C 802A136C 2442FFFF */ addiu $v0, $v0, -1 /* 721910 802A1370 3C05FBFF */ lui $a1, 0xfbff /* 721914 802A1374 34A5FFFF */ ori $a1, $a1, 0xffff /* 721918 802A1378 3C04800E */ lui $a0, %hi(gBattleStatus) /* 72191C 802A137C 2484C070 */ addiu $a0, $a0, %lo(gBattleStatus) /* 721920 802A1380 8C830000 */ lw $v1, ($a0) /* 721924 802A1384 24020002 */ addiu $v0, $zero, 2 /* 721928 802A1388 A260008B */ sb $zero, 0x8b($s3) /* 72192C 802A138C A2600088 */ sb $zero, 0x88($s3) /* 721930 802A1390 00651824 */ and $v1, $v1, $a1 /* 721934 802A1394 080A84E9 */ j .L802A13A4 /* 721938 802A1398 AC830000 */ sw $v1, ($a0) .L802A139C: /* 72193C 802A139C AE420074 */ sw $v0, 0x74($s2) .L802A13A0: /* 721940 802A13A0 0000102D */ daddu $v0, $zero, $zero .L802A13A4: /* 721944 802A13A4 8FBF002C */ lw $ra, 0x2c($sp) /* 721948 802A13A8 8FB40028 */ lw $s4, 0x28($sp) /* 72194C 802A13AC 8FB30024 */ lw $s3, 0x24($sp) /* 721950 802A13B0 8FB20020 */ lw $s2, 0x20($sp) /* 721954 802A13B4 8FB1001C */ lw $s1, 0x1c($sp) /* 721958 802A13B8 8FB00018 */ lw $s0, 0x18($sp) /* 72195C 802A13BC D7B80040 */ ldc1 $f24, 0x40($sp) /* 721960 802A13C0 D7B60038 */ ldc1 $f22, 0x38($sp) /* 721964 802A13C4 D7B40030 */ ldc1 $f20, 0x30($sp) /* 721968 802A13C8 03E00008 */ jr $ra /* 72196C 802A13CC 27BD0048 */ addiu $sp, $sp, 0x48