papermario/ver/us/asm/nonmatchings/code_16F740/func_802480F0.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

50 lines
2.4 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_802480F0
/* 1769D0 802480F0 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 1769D4 802480F4 3C038028 */ lui $v1, %hi(D_802809F6)
/* 1769D8 802480F8 846309F6 */ lh $v1, %lo(D_802809F6)($v1)
/* 1769DC 802480FC 2402FFFF */ addiu $v0, $zero, -1
/* 1769E0 80248100 14620020 */ bne $v1, $v0, .L80248184
/* 1769E4 80248104 AFBF0010 */ sw $ra, 0x10($sp)
/* 1769E8 80248108 3C02802A */ lui $v0, %hi(D_8029F254)
/* 1769EC 8024810C 8C42F254 */ lw $v0, %lo(D_8029F254)($v0)
/* 1769F0 80248110 1040001C */ beqz $v0, .L80248184
/* 1769F4 80248114 00000000 */ nop
/* 1769F8 80248118 3C048028 */ lui $a0, %hi(D_80280A30)
/* 1769FC 8024811C 24840A30 */ addiu $a0, $a0, %lo(D_80280A30)
/* 176A00 80248120 8C830000 */ lw $v1, ($a0)
/* 176A04 80248124 14600004 */ bnez $v1, .L80248138
/* 176A08 80248128 00000000 */ nop
/* 176A0C 8024812C 3C05BF80 */ lui $a1, 0xbf80
/* 176A10 80248130 0809205F */ j .L8024817C
/* 176A14 80248134 240400FF */ addiu $a0, $zero, 0xff
.L80248138:
/* 176A18 80248138 3C028007 */ lui $v0, %hi(gGameStatusPtr)
/* 176A1C 8024813C 8C42419C */ lw $v0, %lo(gGameStatusPtr)($v0)
/* 176A20 80248140 904200AA */ lbu $v0, 0xaa($v0)
/* 176A24 80248144 30420001 */ andi $v0, $v0, 1
/* 176A28 80248148 14400002 */ bnez $v0, .L80248154
/* 176A2C 8024814C 2462FFCE */ addiu $v0, $v1, -0x32
/* 176A30 80248150 2462FFEC */ addiu $v0, $v1, -0x14
.L80248154:
/* 176A34 80248154 AC820000 */ sw $v0, ($a0)
/* 176A38 80248158 3C038028 */ lui $v1, %hi(D_80280A30)
/* 176A3C 8024815C 24630A30 */ addiu $v1, $v1, %lo(D_80280A30)
/* 176A40 80248160 8C620000 */ lw $v0, ($v1)
/* 176A44 80248164 04420001 */ bltzl $v0, .L8024816C
/* 176A48 80248168 AC600000 */ sw $zero, ($v1)
.L8024816C:
/* 176A4C 8024816C C4600000 */ lwc1 $f0, ($v1)
/* 176A50 80248170 46800020 */ cvt.s.w $f0, $f0
/* 176A54 80248174 44050000 */ mfc1 $a1, $f0
/* 176A58 80248178 0000202D */ daddu $a0, $zero, $zero
.L8024817C:
/* 176A5C 8024817C 0C04DF62 */ jal set_transition_stencil_zoom_0
/* 176A60 80248180 00000000 */ nop
.L80248184:
/* 176A64 80248184 8FBF0010 */ lw $ra, 0x10($sp)
/* 176A68 80248188 03E00008 */ jr $ra
/* 176A6C 8024818C 27BD0018 */ addiu $sp, $sp, 0x18