donut-decomp/asm/TRK_Hollywood_Revolution/notify.s

49 lines
2.1 KiB
ArmAsm

.include "macros.inc"
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
.global TRKDoNotifyStopped
TRKDoNotifyStopped:
/* 800160D0 00011F10 94 21 FF E0 */ stwu r1, -0x20(r1)
/* 800160D4 00011F14 7C 08 02 A6 */ mflr r0
/* 800160D8 00011F18 90 01 00 24 */ stw r0, 0x24(r1)
/* 800160DC 00011F1C 38 81 00 08 */ addi r4, r1, 0x8
/* 800160E0 00011F20 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 800160E4 00011F24 93 C1 00 18 */ stw r30, 0x18(r1)
/* 800160E8 00011F28 7C 7E 1B 78 */ mr r30, r3
/* 800160EC 00011F2C 38 61 00 0C */ addi r3, r1, 0xc
/* 800160F0 00011F30 48 00 0E 99 */ bl TRK_GetFreeBuffer
/* 800160F4 00011F34 2C 03 00 00 */ cmpwi r3, 0x0
/* 800160F8 00011F38 7C 7F 1B 78 */ mr r31, r3
/* 800160FC 00011F3C 40 82 00 48 */ bne lbl_80016144
/* 80016100 00011F40 2C 1E 00 90 */ cmpwi r30, 0x90
/* 80016104 00011F44 40 82 00 10 */ bne lbl_80016114
/* 80016108 00011F48 80 61 00 08 */ lwz r3, 0x8(r1)
/* 8001610C 00011F4C 48 00 33 F1 */ bl TRKTargetAddStopInfo
/* 80016110 00011F50 48 00 00 0C */ b lbl_8001611C
.global lbl_80016114
lbl_80016114:
/* 80016114 00011F54 80 61 00 08 */ lwz r3, 0x8(r1)
/* 80016118 00011F58 48 00 35 E5 */ bl TRKTargetAddExceptionInfo
.global lbl_8001611C
lbl_8001611C:
/* 8001611C 00011F5C 80 61 00 08 */ lwz r3, 0x8(r1)
/* 80016120 00011F60 38 81 00 10 */ addi r4, r1, 0x10
/* 80016124 00011F64 48 00 06 55 */ bl TRK_RequestSend
/* 80016128 00011F68 2C 03 00 00 */ cmpwi r3, 0x0
/* 8001612C 00011F6C 7C 7F 1B 78 */ mr r31, r3
/* 80016130 00011F70 40 82 00 0C */ bne lbl_8001613C
/* 80016134 00011F74 80 61 00 10 */ lwz r3, 0x10(r1)
/* 80016138 00011F78 48 00 0F 11 */ bl TRK_ReleaseBuffer
.global lbl_8001613C
lbl_8001613C:
/* 8001613C 00011F7C 80 61 00 0C */ lwz r3, 0xc(r1)
/* 80016140 00011F80 48 00 0F 09 */ bl TRK_ReleaseBuffer
.global lbl_80016144
lbl_80016144:
/* 80016144 00011F84 7F E3 FB 78 */ mr r3, r31
/* 80016148 00011F88 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 8001614C 00011F8C 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80016150 00011F90 80 01 00 24 */ lwz r0, 0x24(r1)
/* 80016154 00011F94 7C 08 03 A6 */ mtlr r0
/* 80016158 00011F98 38 21 00 20 */ addi r1, r1, 0x20
/* 8001615C 00011F9C 4E 80 00 20 */ blr