mirror of https://github.com/PrimeDecomp/prime.git
33 lines
1.2 KiB
ArmAsm
33 lines
1.2 KiB
ArmAsm
.include "macros.inc"
|
|
|
|
.section .text
|
|
|
|
.global zcfree
|
|
zcfree:
|
|
/* 8034458C 003414EC 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
/* 80344590 003414F0 7C 08 02 A6 */ mflr r0
|
|
/* 80344594 003414F4 90 01 00 14 */ stw r0, 0x14(r1)
|
|
/* 80344598 003414F8 93 E1 00 0C */ stw r31, 0xc(r1)
|
|
/* 8034459C 003414FC 7C 7F 1B 78 */ mr r31, r3
|
|
/* 803445A0 00341500 7C 83 23 78 */ mr r3, r4
|
|
/* 803445A4 00341504 48 04 5D B5 */ bl free
|
|
/* 803445A8 00341508 28 1F 00 00 */ cmplwi r31, 0
|
|
/* 803445AC 0034150C 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
/* 803445B0 00341510 83 E1 00 0C */ lwz r31, 0xc(r1)
|
|
/* 803445B4 00341514 7C 08 03 A6 */ mtlr r0
|
|
/* 803445B8 00341518 38 21 00 10 */ addi r1, r1, 0x10
|
|
/* 803445BC 0034151C 4E 80 00 20 */ blr
|
|
|
|
.global zcalloc
|
|
zcalloc:
|
|
/* 803445C0 00341520 94 21 FF F0 */ stwu r1, -0x10(r1)
|
|
/* 803445C4 00341524 7C 08 02 A6 */ mflr r0
|
|
/* 803445C8 00341528 7C 83 23 78 */ mr r3, r4
|
|
/* 803445CC 0034152C 7C A4 2B 78 */ mr r4, r5
|
|
/* 803445D0 00341530 90 01 00 14 */ stw r0, 0x14(r1)
|
|
/* 803445D4 00341534 48 04 5C C1 */ bl calloc
|
|
/* 803445D8 00341538 80 01 00 14 */ lwz r0, 0x14(r1)
|
|
/* 803445DC 0034153C 7C 08 03 A6 */ mtlr r0
|
|
/* 803445E0 00341540 38 21 00 10 */ addi r1, r1, 0x10
|
|
/* 803445E4 00341544 4E 80 00 20 */ blr
|