mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 13:02:41 +01:00
75 lines
3.4 KiB
ArmAsm
75 lines
3.4 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel ScaleModel
|
|
/* 0ED738 802C8D88 27BDFF88 */ addiu $sp, $sp, -0x78
|
|
/* 0ED73C 802C8D8C AFB20058 */ sw $s2, 0x58($sp)
|
|
/* 0ED740 802C8D90 0080902D */ daddu $s2, $a0, $zero
|
|
/* 0ED744 802C8D94 AFBF005C */ sw $ra, 0x5c($sp)
|
|
/* 0ED748 802C8D98 AFB10054 */ sw $s1, 0x54($sp)
|
|
/* 0ED74C 802C8D9C AFB00050 */ sw $s0, 0x50($sp)
|
|
/* 0ED750 802C8DA0 F7B80070 */ sdc1 $f24, 0x70($sp)
|
|
/* 0ED754 802C8DA4 F7B60068 */ sdc1 $f22, 0x68($sp)
|
|
/* 0ED758 802C8DA8 F7B40060 */ sdc1 $f20, 0x60($sp)
|
|
/* 0ED75C 802C8DAC 8E50000C */ lw $s0, 0xc($s2)
|
|
/* 0ED760 802C8DB0 8E050000 */ lw $a1, ($s0)
|
|
/* 0ED764 802C8DB4 0C0B1EAF */ jal get_variable
|
|
/* 0ED768 802C8DB8 26100004 */ addiu $s0, $s0, 4
|
|
/* 0ED76C 802C8DBC 0C046C04 */ jal get_model_list_index_from_tree_index
|
|
/* 0ED770 802C8DC0 0040202D */ daddu $a0, $v0, $zero
|
|
/* 0ED774 802C8DC4 8E050000 */ lw $a1, ($s0)
|
|
/* 0ED778 802C8DC8 26100004 */ addiu $s0, $s0, 4
|
|
/* 0ED77C 802C8DCC 0240202D */ daddu $a0, $s2, $zero
|
|
/* 0ED780 802C8DD0 0C0B210B */ jal get_float_variable
|
|
/* 0ED784 802C8DD4 0040882D */ daddu $s1, $v0, $zero
|
|
/* 0ED788 802C8DD8 8E050000 */ lw $a1, ($s0)
|
|
/* 0ED78C 802C8DDC 26100004 */ addiu $s0, $s0, 4
|
|
/* 0ED790 802C8DE0 0240202D */ daddu $a0, $s2, $zero
|
|
/* 0ED794 802C8DE4 0C0B210B */ jal get_float_variable
|
|
/* 0ED798 802C8DE8 46000606 */ mov.s $f24, $f0
|
|
/* 0ED79C 802C8DEC 0240202D */ daddu $a0, $s2, $zero
|
|
/* 0ED7A0 802C8DF0 8E050000 */ lw $a1, ($s0)
|
|
/* 0ED7A4 802C8DF4 0C0B210B */ jal get_float_variable
|
|
/* 0ED7A8 802C8DF8 46000586 */ mov.s $f22, $f0
|
|
/* 0ED7AC 802C8DFC 0220202D */ daddu $a0, $s1, $zero
|
|
/* 0ED7B0 802C8E00 0C046B4C */ jal get_model_from_list_index
|
|
/* 0ED7B4 802C8E04 46000506 */ mov.s $f20, $f0
|
|
/* 0ED7B8 802C8E08 0040802D */ daddu $s0, $v0, $zero
|
|
/* 0ED7BC 802C8E0C 96020000 */ lhu $v0, ($s0)
|
|
/* 0ED7C0 802C8E10 30420400 */ andi $v0, $v0, 0x400
|
|
/* 0ED7C4 802C8E14 1440000A */ bnez $v0, .L802C8E40
|
|
/* 0ED7C8 802C8E18 00000000 */ nop
|
|
/* 0ED7CC 802C8E1C 4405C000 */ mfc1 $a1, $f24
|
|
/* 0ED7D0 802C8E20 4406B000 */ mfc1 $a2, $f22
|
|
/* 0ED7D4 802C8E24 4407A000 */ mfc1 $a3, $f20
|
|
/* 0ED7D8 802C8E28 0C019DF0 */ jal guScaleF
|
|
/* 0ED7DC 802C8E2C 26040058 */ addiu $a0, $s0, 0x58
|
|
/* 0ED7E0 802C8E30 96020000 */ lhu $v0, ($s0)
|
|
/* 0ED7E4 802C8E34 34421400 */ ori $v0, $v0, 0x1400
|
|
/* 0ED7E8 802C8E38 080B2399 */ j .L802C8E64
|
|
/* 0ED7EC 802C8E3C A6020000 */ sh $v0, ($s0)
|
|
|
|
.L802C8E40:
|
|
/* 0ED7F0 802C8E40 4405C000 */ mfc1 $a1, $f24
|
|
/* 0ED7F4 802C8E44 4406B000 */ mfc1 $a2, $f22
|
|
/* 0ED7F8 802C8E48 4407A000 */ mfc1 $a3, $f20
|
|
/* 0ED7FC 802C8E4C 0C019DF0 */ jal guScaleF
|
|
/* 0ED800 802C8E50 27A40010 */ addiu $a0, $sp, 0x10
|
|
/* 0ED804 802C8E54 27A40010 */ addiu $a0, $sp, 0x10
|
|
/* 0ED808 802C8E58 26050058 */ addiu $a1, $s0, 0x58
|
|
/* 0ED80C 802C8E5C 0C019D80 */ jal guMtxCatF
|
|
/* 0ED810 802C8E60 00A0302D */ daddu $a2, $a1, $zero
|
|
.L802C8E64:
|
|
/* 0ED814 802C8E64 8FBF005C */ lw $ra, 0x5c($sp)
|
|
/* 0ED818 802C8E68 8FB20058 */ lw $s2, 0x58($sp)
|
|
/* 0ED81C 802C8E6C 8FB10054 */ lw $s1, 0x54($sp)
|
|
/* 0ED820 802C8E70 8FB00050 */ lw $s0, 0x50($sp)
|
|
/* 0ED824 802C8E74 D7B80070 */ ldc1 $f24, 0x70($sp)
|
|
/* 0ED828 802C8E78 D7B60068 */ ldc1 $f22, 0x68($sp)
|
|
/* 0ED82C 802C8E7C D7B40060 */ ldc1 $f20, 0x60($sp)
|
|
/* 0ED830 802C8E80 24020002 */ addiu $v0, $zero, 2
|
|
/* 0ED834 802C8E84 03E00008 */ jr $ra
|
|
/* 0ED838 802C8E88 27BD0078 */ addiu $sp, $sp, 0x78
|
|
|