mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
99 lines
4.8 KiB
ArmAsm
99 lines
4.8 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel func_80035058_2
|
|
/* 010458 80035058 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
/* 01045C 8003505C AFBF001C */ sw $ra, 0x1c($sp)
|
|
/* 010460 80035060 AFB00018 */ sw $s0, 0x18($sp)
|
|
/* 010464 80035064 F7B40020 */ sdc1 $f20, 0x20($sp)
|
|
/* 010468 80035068 3C01800A */ lui $at, 0x800a
|
|
/* 01046C 8003506C A0200931 */ sb $zero, 0x931($at)
|
|
/* 010470 80035070 3C01800A */ lui $at, 0x800a
|
|
/* 010474 80035074 A4200932 */ sh $zero, 0x932($at)
|
|
/* 010478 80035078 0C03805E */ jal func_800E0178
|
|
/* 01047C 8003507C 00000000 */ nop
|
|
/* 010480 80035080 0C009C22 */ jal func_80027088
|
|
/* 010484 80035084 24040002 */ addiu $a0, $zero, 2
|
|
/* 010488 80035088 0C00AB00 */ jal general_heap_create
|
|
/* 01048C 8003508C 00000000 */ nop
|
|
/* 010490 80035090 0000202D */ daddu $a0, $zero, $zero
|
|
/* 010494 80035094 0C0514BA */ jal func_801452E8
|
|
/* 010498 80035098 0080282D */ daddu $a1, $a0, $zero
|
|
/* 01049C 8003509C 0C050440 */ jal func_80141100
|
|
/* 0104A0 800350A0 00000000 */ nop
|
|
/* 0104A4 800350A4 0000202D */ daddu $a0, $zero, $zero
|
|
/* 0104A8 800350A8 0080282D */ daddu $a1, $a0, $zero
|
|
/* 0104AC 800350AC 0C045709 */ jal load_model_textures
|
|
/* 0104B0 800350B0 0080302D */ daddu $a2, $a0, $zero
|
|
/* 0104B4 800350B4 0000202D */ daddu $a0, $zero, $zero
|
|
/* 0104B8 800350B8 2405000C */ addiu $a1, $zero, 0xc
|
|
/* 0104BC 800350BC 2406001C */ addiu $a2, $zero, 0x1c
|
|
/* 0104C0 800350C0 3C10800B */ lui $s0, 0x800b
|
|
/* 0104C4 800350C4 26101D80 */ addiu $s0, $s0, 0x1d80
|
|
/* 0104C8 800350C8 24020006 */ addiu $v0, $zero, 6
|
|
/* 0104CC 800350CC A6020004 */ sh $v0, 4($s0)
|
|
/* 0104D0 800350D0 24020001 */ addiu $v0, $zero, 1
|
|
/* 0104D4 800350D4 A6020006 */ sh $v0, 6($s0)
|
|
/* 0104D8 800350D8 24020010 */ addiu $v0, $zero, 0x10
|
|
/* 0104DC 800350DC A6020012 */ sh $v0, 0x12($s0)
|
|
/* 0104E0 800350E0 24021000 */ addiu $v0, $zero, 0x1000
|
|
/* 0104E4 800350E4 A6020014 */ sh $v0, 0x14($s0)
|
|
/* 0104E8 800350E8 96020000 */ lhu $v0, ($s0)
|
|
/* 0104EC 800350EC 240300B8 */ addiu $v1, $zero, 0xb8
|
|
/* 0104F0 800350F0 AFA30010 */ sw $v1, 0x10($sp)
|
|
/* 0104F4 800350F4 96030AB0 */ lhu $v1, 0xab0($s0)
|
|
/* 0104F8 800350F8 3C0141C8 */ lui $at, 0x41c8
|
|
/* 0104FC 800350FC 4481A000 */ mtc1 $at, $f20
|
|
/* 010500 80035100 34420002 */ ori $v0, $v0, 2
|
|
/* 010504 80035104 A6020000 */ sh $v0, ($s0)
|
|
/* 010508 80035108 96020558 */ lhu $v0, 0x558($s0)
|
|
/* 01050C 8003510C 24070128 */ addiu $a3, $zero, 0x128
|
|
/* 010510 80035110 3C018007 */ lui $at, 0x8007
|
|
/* 010514 80035114 AC207410 */ sw $zero, 0x7410($at)
|
|
/* 010518 80035118 34420002 */ ori $v0, $v0, 2
|
|
/* 01051C 8003511C A6020558 */ sh $v0, 0x558($s0)
|
|
/* 010520 80035120 96021008 */ lhu $v0, 0x1008($s0)
|
|
/* 010524 80035124 34630002 */ ori $v1, $v1, 2
|
|
/* 010528 80035128 A6030AB0 */ sh $v1, 0xab0($s0)
|
|
/* 01052C 8003512C E6140018 */ swc1 $f20, 0x18($s0)
|
|
/* 010530 80035130 34420002 */ ori $v0, $v0, 2
|
|
/* 010534 80035134 0C00B8C5 */ jal set_cam_viewport
|
|
/* 010538 80035138 A6021008 */ sh $v0, 0x1008($s0)
|
|
/* 01053C 8003513C 24020028 */ addiu $v0, $zero, 0x28
|
|
/* 010540 80035140 A602001E */ sh $v0, 0x1e($s0)
|
|
/* 010544 80035144 24020064 */ addiu $v0, $zero, 0x64
|
|
/* 010548 80035148 3C0143FA */ lui $at, 0x43fa
|
|
/* 01054C 8003514C 44810000 */ mtc1 $at, $f0
|
|
/* 010550 80035150 3C01447A */ lui $at, 0x447a
|
|
/* 010554 80035154 44811000 */ mtc1 $at, $f2
|
|
/* 010558 80035158 3C0144BB */ lui $at, 0x44bb
|
|
/* 01055C 8003515C 34218000 */ ori $at, $at, 0x8000
|
|
/* 010560 80035160 44812000 */ mtc1 $at, $f4
|
|
/* 010564 80035164 3C014316 */ lui $at, 0x4316
|
|
/* 010568 80035168 44813000 */ mtc1 $at, $f6
|
|
/* 01056C 8003516C 3C04800A */ lui $a0, 0x800a
|
|
/* 010570 80035170 2484A650 */ addiu $a0, $a0, -0x59b0
|
|
/* 010574 80035174 A600002C */ sh $zero, 0x2c($s0)
|
|
/* 010578 80035178 A600002E */ sh $zero, 0x2e($s0)
|
|
/* 01057C 8003517C A6000030 */ sh $zero, 0x30($s0)
|
|
/* 010580 80035180 E6140054 */ swc1 $f20, 0x54($s0)
|
|
/* 010584 80035184 E6140058 */ swc1 $f20, 0x58($s0)
|
|
/* 010588 80035188 A600001C */ sh $zero, 0x1c($s0)
|
|
/* 01058C 8003518C A6020020 */ sh $v0, 0x20($s0)
|
|
/* 010590 80035190 A6000022 */ sh $zero, 0x22($s0)
|
|
/* 010594 80035194 E600003C */ swc1 $f0, 0x3c($s0)
|
|
/* 010598 80035198 E6020040 */ swc1 $f2, 0x40($s0)
|
|
/* 01059C 8003519C E6040044 */ swc1 $f4, 0x44($s0)
|
|
/* 0105A0 800351A0 E606005C */ swc1 $f6, 0x5c($s0)
|
|
/* 0105A4 800351A4 8C820000 */ lw $v0, ($a0)
|
|
/* 0105A8 800351A8 3C030001 */ lui $v1, 1
|
|
/* 0105AC 800351AC 00431025 */ or $v0, $v0, $v1
|
|
/* 0105B0 800351B0 AC820000 */ sw $v0, ($a0)
|
|
/* 0105B4 800351B4 8FBF001C */ lw $ra, 0x1c($sp)
|
|
/* 0105B8 800351B8 8FB00018 */ lw $s0, 0x18($sp)
|
|
/* 0105BC 800351BC D7B40020 */ ldc1 $f20, 0x20($sp)
|
|
/* 0105C0 800351C0 03E00008 */ jr $ra
|
|
/* 0105C4 800351C4 27BD0028 */ addiu $sp, $sp, 0x28
|
|
|