donut-decomp/asm/bte/bte_logmsg.s
2022-10-17 09:41:13 +01:00

79 lines
3.4 KiB
ArmAsm

.include "macros.inc"
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
.global LogMsg
LogMsg:
/* 800778A0 000736E0 94 21 FF 80 */ stwu r1, -0x80(r1)
/* 800778A4 000736E4 7C 08 02 A6 */ mflr r0
/* 800778A8 000736E8 90 01 00 84 */ stw r0, 0x84(r1)
/* 800778AC 000736EC 93 E1 00 7C */ stw r31, 0x7c(r1)
/* 800778B0 000736F0 40 86 00 24 */ bne cr1, lbl_800778D4
/* 800778B4 000736F4 D8 21 00 28 */ stfd f1, 0x28(r1)
/* 800778B8 000736F8 D8 41 00 30 */ stfd f2, 0x30(r1)
/* 800778BC 000736FC D8 61 00 38 */ stfd f3, 0x38(r1)
/* 800778C0 00073700 D8 81 00 40 */ stfd f4, 0x40(r1)
/* 800778C4 00073704 D8 A1 00 48 */ stfd f5, 0x48(r1)
/* 800778C8 00073708 D8 C1 00 50 */ stfd f6, 0x50(r1)
/* 800778CC 0007370C D8 E1 00 58 */ stfd f7, 0x58(r1)
/* 800778D0 00073710 D9 01 00 60 */ stfd f8, 0x60(r1)
.global lbl_800778D4
lbl_800778D4:
/* 800778D4 00073714 39 61 00 88 */ addi r11, r1, 0x88
/* 800778D8 00073718 38 01 00 08 */ addi r0, r1, 0x8
/* 800778DC 0007371C 3D 80 02 00 */ lis r12, 0x200
/* 800778E0 00073720 90 61 00 08 */ stw r3, 0x8(r1)
/* 800778E4 00073724 3F E0 80 4F */ lis r31, "@LOCAL@LogMsg__FUlPCce@tmp"@ha
/* 800778E8 00073728 38 61 00 68 */ addi r3, r1, 0x68
/* 800778EC 0007372C 90 A1 00 10 */ stw r5, 0x10(r1)
/* 800778F0 00073730 7C 65 1B 78 */ mr r5, r3
/* 800778F4 00073734 38 7F 42 20 */ addi r3, r31, "@LOCAL@LogMsg__FUlPCce@tmp"@l
/* 800778F8 00073738 90 81 00 0C */ stw r4, 0xc(r1)
/* 800778FC 0007373C 90 C1 00 14 */ stw r6, 0x14(r1)
/* 80077900 00073740 90 E1 00 18 */ stw r7, 0x18(r1)
/* 80077904 00073744 91 01 00 1C */ stw r8, 0x1c(r1)
/* 80077908 00073748 91 21 00 20 */ stw r9, 0x20(r1)
/* 8007790C 0007374C 91 41 00 24 */ stw r10, 0x24(r1)
/* 80077910 00073750 91 81 00 68 */ stw r12, 0x68(r1)
/* 80077914 00073754 91 61 00 6C */ stw r11, 0x6c(r1)
/* 80077918 00073758 90 01 00 70 */ stw r0, 0x70(r1)
/* 8007791C 0007375C 4B F9 5D 29 */ bl vsprintf
/* 80077920 00073760 38 7F 42 20 */ addi r3, r31, 0x4220
/* 80077924 00073764 38 8D 84 C0 */ addi r4, r13, "@2252"@sda21
/* 80077928 00073768 7C 65 1B 78 */ mr r5, r3
/* 8007792C 0007376C 4C C6 31 82 */ crclr 4*cr1+eq
/* 80077930 00073770 4B F9 5E 8D */ bl sprintf
/* 80077934 00073774 38 7F 42 20 */ addi r3, r31, 0x4220
/* 80077938 00073778 4C C6 31 82 */ crclr 4*cr1+eq
/* 8007793C 0007377C 4B FA 60 55 */ bl OSReport
/* 80077940 00073780 80 01 00 84 */ lwz r0, 0x84(r1)
/* 80077944 00073784 83 E1 00 7C */ lwz r31, 0x7c(r1)
/* 80077948 00073788 7C 08 03 A6 */ mtlr r0
/* 8007794C 0007378C 38 21 00 80 */ addi r1, r1, 0x80
/* 80077950 00073790 4E 80 00 20 */ blr
/* 80077954 00073794 00 00 00 00 */ .4byte 0x00000000
/* 80077958 00073798 00 00 00 00 */ .4byte 0x00000000
/* 8007795C 0007379C 00 00 00 00 */ .4byte 0x00000000
.global LogMsg_0
LogMsg_0:
/* 80077960 000737A0 88 0D EA E0 */ lbz r0, bte_target_mode@sda21(r13)
/* 80077964 000737A4 2C 00 00 00 */ cmpwi r0, 0x0
/* 80077968 000737A8 4C 82 00 20 */ bnelr
/* 8007796C 000737AC 4C C6 31 82 */ crclr 4*cr1+eq
/* 80077970 000737B0 4B FF FF 30 */ b LogMsg
/* 80077974 000737B4 4E 80 00 20 */ blr
/* 80077978 000737B8 00 00 00 00 */ .4byte 0x00000000
/* 8007797C 000737BC 00 00 00 00 */ .4byte 0x00000000
.include "macros.inc"
.section .bss, "", @nobits # 0x80496700 - 0x80556420 ; 0x000BFD20
.global "@LOCAL@LogMsg__FUlPCce@tmp"
"@LOCAL@LogMsg__FUlPCce@tmp":
.skip 0x7E0
.include "macros.inc"
.section .sdata, "wa" # 0x80556420 - 0x8055C6E0 ; 0x000062C0
.global "@2252"
"@2252":
.4byte 0x25730A00
.4byte 0