papermario/ver/us/asm/nonmatchings/code_715850/func_802A12EC_715B3C.s
alex a4e1c2f522
Add versioning (#187)
* fix vscode cpp extension messing with files.associations

* move stuff

* it builds!

* symlink papermario.us.z64

* ci: put baserom in right place

* add jp

* fix splat dir

* ignore starrod dump

* .s deps

* update jenkins

* add dsl back

* configure.py versions

* wups

* fine ethan

* fix paths

* configure: default to only the version(s) with existing baseroms

* fix coverage

* fix progress.py

* progress.py verisoning

* remove format.sh from CONTRIBUTING

* update CONTRIBUTING

* fix first_diff

* diff.py: use ver/current/

* update splat.yaml

* trying to fix subrepo

* git subrepo pull tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "06a737f02d"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "06a737f02d"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* configure fix

* git subrepo pull tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "41786effd3"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "41786effd3"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

Co-authored-by: Ethan Roseman <ethteck@gmail.com>
2021-02-22 18:21:23 +09:00

44 lines
2.1 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802A12EC_715B3C
/* 715B3C 802A12EC 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 715B40 802A12F0 AFB00010 */ sw $s0, 0x10($sp)
/* 715B44 802A12F4 3C10800E */ lui $s0, %hi(gBattleStatus+0xDC)
/* 715B48 802A12F8 8E10C14C */ lw $s0, %lo(gBattleStatus+0xDC)($s0)
/* 715B4C 802A12FC AFBF0014 */ sw $ra, 0x14($sp)
/* 715B50 802A1300 82020217 */ lb $v0, 0x217($s0)
/* 715B54 802A1304 8C85000C */ lw $a1, 0xc($a0)
/* 715B58 802A1308 10400017 */ beqz $v0, .L802A1368
/* 715B5C 802A130C 24020002 */ addiu $v0, $zero, 2
/* 715B60 802A1310 8CA50000 */ lw $a1, ($a1)
/* 715B64 802A1314 0C0B1EAF */ jal get_variable
/* 715B68 802A1318 00000000 */ nop
/* 715B6C 802A131C 92030217 */ lbu $v1, 0x217($s0)
/* 715B70 802A1320 00621823 */ subu $v1, $v1, $v0
/* 715B74 802A1324 A2030217 */ sb $v1, 0x217($s0)
/* 715B78 802A1328 00031E00 */ sll $v1, $v1, 0x18
/* 715B7C 802A132C 04620001 */ bltzl $v1, .L802A1334
/* 715B80 802A1330 A2000217 */ sb $zero, 0x217($s0)
.L802A1334:
/* 715B84 802A1334 82030217 */ lb $v1, 0x217($s0)
/* 715B88 802A1338 18600005 */ blez $v1, .L802A1350
/* 715B8C 802A133C 24040034 */ addiu $a0, $zero, 0x34
/* 715B90 802A1340 8E020440 */ lw $v0, 0x440($s0)
/* 715B94 802A1344 8C42000C */ lw $v0, 0xc($v0)
/* 715B98 802A1348 080A84D9 */ j .L802A1364
/* 715B9C 802A134C AC43003C */ sw $v1, 0x3c($v0)
.L802A1350:
/* 715BA0 802A1350 0C09F7A0 */ jal dispatch_event_partner
/* 715BA4 802A1354 A2000216 */ sb $zero, 0x216($s0)
/* 715BA8 802A1358 8E020440 */ lw $v0, 0x440($s0)
/* 715BAC 802A135C 8C42000C */ lw $v0, 0xc($v0)
/* 715BB0 802A1360 AC40003C */ sw $zero, 0x3c($v0)
.L802A1364:
/* 715BB4 802A1364 24020002 */ addiu $v0, $zero, 2
.L802A1368:
/* 715BB8 802A1368 8FBF0014 */ lw $ra, 0x14($sp)
/* 715BBC 802A136C 8FB00010 */ lw $s0, 0x10($sp)
/* 715BC0 802A1370 03E00008 */ jr $ra
/* 715BC4 802A1374 27BD0018 */ addiu $sp, $sp, 0x18