papermario/asm/nonmatchings/code_a5dd0_len_114e0/func_80112900.s
2020-08-12 22:37:16 -04:00

66 lines
2.7 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80112900
/* 0A9000 80112900 3C028007 */ lui $v0, 0x8007
/* 0A9004 80112904 8C42419C */ lw $v0, 0x419c($v0)
/* 0A9008 80112908 44851000 */ mtc1 $a1, $f2
/* 0A900C 8011290C 80420070 */ lb $v0, 0x70($v0)
/* 0A9010 80112910 44862000 */ mtc1 $a2, $f4
/* 0A9014 80112914 1440000A */ bnez $v0, .L80112940
/* 0A9018 80112918 00000000 */ nop
/* 0A901C 8011291C 3C014522 */ lui $at, 0x4522
/* 0A9020 80112920 34218000 */ ori $at, $at, 0x8000
/* 0A9024 80112924 44810000 */ mtc1 $at, $f0
/* 0A9028 80112928 00000000 */ nop
/* 0A902C 8011292C 46001003 */ div.s $f0, $f2, $f0
/* 0A9030 80112930 3C018015 */ lui $at, 0x8015
/* 0A9034 80112934 D422F968 */ ldc1 $f2, -0x698($at)
/* 0A9038 80112938 08044A57 */ j .L8011295C
/* 0A903C 8011293C 46000021 */ cvt.d.s $f0, $f0
.L80112940:
/* 0A9040 80112940 3C014561 */ lui $at, 0x4561
/* 0A9044 80112944 44810000 */ mtc1 $at, $f0
/* 0A9048 80112948 00000000 */ nop
/* 0A904C 8011294C 46001003 */ div.s $f0, $f2, $f0
/* 0A9050 80112950 3C018015 */ lui $at, 0x8015
/* 0A9054 80112954 D422F970 */ ldc1 $f2, -0x690($at)
/* 0A9058 80112958 46000021 */ cvt.d.s $f0, $f0
.L8011295C:
/* 0A905C 8011295C 46201081 */ sub.d $f2, $f2, $f0
/* 0A9060 80112960 462010A0 */ cvt.s.d $f2, $f2
/* 0A9064 80112964 E482001C */ swc1 $f2, 0x1c($a0)
/* 0A9068 80112968 C480001C */ lwc1 $f0, 0x1c($a0)
/* 0A906C 8011296C 3C018015 */ lui $at, 0x8015
/* 0A9070 80112970 D422F978 */ ldc1 $f2, -0x688($at)
/* 0A9074 80112974 46000021 */ cvt.d.s $f0, $f0
/* 0A9078 80112978 4622003C */ c.lt.d $f0, $f2
/* 0A907C 8011297C 00000000 */ nop
/* 0A9080 80112980 45000006 */ bc1f .L8011299C
/* 0A9084 80112984 00000000 */ nop
/* 0A9088 80112988 3C013C23 */ lui $at, 0x3c23
/* 0A908C 8011298C 3421D70A */ ori $at, $at, 0xd70a
/* 0A9090 80112990 44810000 */ mtc1 $at, $f0
/* 0A9094 80112994 00000000 */ nop
/* 0A9098 80112998 E480001C */ swc1 $f0, 0x1c($a0)
.L8011299C:
/* 0A909C 8011299C 3C014270 */ lui $at, 0x4270
/* 0A90A0 801129A0 44810000 */ mtc1 $at, $f0
/* 0A90A4 801129A4 00000000 */ nop
/* 0A90A8 801129A8 4604003C */ c.lt.s $f0, $f4
/* 0A90AC 801129AC 00000000 */ nop
/* 0A90B0 801129B0 45000005 */ bc1f .L801129C8
/* 0A90B4 801129B4 00000000 */ nop
/* 0A90B8 801129B8 C480001C */ lwc1 $f0, 0x1c($a0)
/* 0A90BC 801129BC 46000000 */ add.s $f0, $f0, $f0
/* 0A90C0 801129C0 03E00008 */ jr $ra
/* 0A90C4 801129C4 E4800024 */ swc1 $f0, 0x24($a0)
.L801129C8:
/* 0A90C8 801129C8 C480001C */ lwc1 $f0, 0x1c($a0)
/* 0A90CC 801129CC 03E00008 */ jr $ra
/* 0A90D0 801129D0 E4800024 */ swc1 $f0, 0x24($a0)