papermario/ver/us/asm/nonmatchings/fio/fio_validate_header_checksums.s
Ethan Roseman 03eccf598f
Misc decomp 534 (#301)
* splat disasm update

* a little

* splat jtbl robustness

* git subrepo pull (merge) --force tools/splat

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

* some rodata stuff

* git subrepo pull tools/splat

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

* progress

* All area rodata migrated

* UnkDistFunc

* SwitchToPartner

* UnkNpcAIFunc23

* UnkNpcAIFunc24

* UnkNpcAIFunc25

* cleanup & symbol_addrs

* disasm update

* work on fio.c (6240)

* data 'n' tst_04 funcz

* more tst_

* misc & PlayFX3D

* two end_01 funcs

* more shtuff

* fix

* fix2
2021-07-09 00:53:00 +09:00

32 lines
1.6 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel fio_validate_header_checksums
/* 6370 8002AF70 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 6374 8002AF74 3C02800E */ lui $v0, %hi(D_800D95E8)
/* 6378 8002AF78 244295E8 */ addiu $v0, $v0, %lo(D_800D95E8)
/* 637C 8002AF7C AFB00010 */ sw $s0, 0x10($sp)
/* 6380 8002AF80 0040802D */ daddu $s0, $v0, $zero
/* 6384 8002AF84 3C058007 */ lui $a1, %hi(magicSaveString)
/* 6388 8002AF88 24A545D0 */ addiu $a1, $a1, %lo(magicSaveString)
/* 638C 8002AF8C AFBF0014 */ sw $ra, 0x14($sp)
/* 6390 8002AF90 0C01BB5C */ jal strcmp
/* 6394 8002AF94 0200202D */ daddu $a0, $s0, $zero
/* 6398 8002AF98 1440000B */ bnez $v0, .L8002AFC8
/* 639C 8002AF9C 0000102D */ daddu $v0, $zero, $zero
/* 63A0 8002AFA0 8E020034 */ lw $v0, 0x34($s0)
/* 63A4 8002AFA4 8E030030 */ lw $v1, 0x30($s0)
/* 63A8 8002AFA8 00021027 */ nor $v0, $zero, $v0
/* 63AC 8002AFAC 54620006 */ bnel $v1, $v0, .L8002AFC8
/* 63B0 8002AFB0 0000102D */ daddu $v0, $zero, $zero
/* 63B4 8002AFB4 0C00ABD0 */ jal fio_calc_header_checksum
/* 63B8 8002AFB8 00000000 */ nop
/* 63BC 8002AFBC 8E030030 */ lw $v1, 0x30($s0)
/* 63C0 8002AFC0 00431026 */ xor $v0, $v0, $v1
/* 63C4 8002AFC4 2C420001 */ sltiu $v0, $v0, 1
.L8002AFC8:
/* 63C8 8002AFC8 8FBF0014 */ lw $ra, 0x14($sp)
/* 63CC 8002AFCC 8FB00010 */ lw $s0, 0x10($sp)
/* 63D0 8002AFD0 03E00008 */ jr $ra
/* 63D4 8002AFD4 27BD0018 */ addiu $sp, $sp, 0x18