.include "macros.inc" .section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860 .global getRenderPosition__Q44nrel6devkit7heapmap18HeapMapBlockDrawerFUlUlUlf getRenderPosition__Q44nrel6devkit7heapmap18HeapMapBlockDrawerFUlUlUlf: /* 8014BCA8 00147AE8 94 21 FF C0 */ stwu r1, -0x40(r1) /* 8014BCAC 00147AEC 7C 08 02 A6 */ mflr r0 /* 8014BCB0 00147AF0 90 01 00 44 */ stw r0, 0x44(r1) /* 8014BCB4 00147AF4 DB E1 00 30 */ stfd f31, 0x30(r1) /* 8014BCB8 00147AF8 F3 E1 00 38 */ psq_st f31, 0x38(r1), 0, qr0 /* 8014BCBC 00147AFC 39 61 00 30 */ addi r11, r1, 0x30 /* 8014BCC0 00147B00 4B EB B6 81 */ bl lbl_80007340 /* 8014BCC4 00147B04 7C 7C 1B 78 */ mr r28, r3 /* 8014BCC8 00147B08 7C 9D 23 78 */ mr r29, r4 /* 8014BCCC 00147B0C 7C BE 2B 78 */ mr r30, r5 /* 8014BCD0 00147B10 FF E0 08 90 */ fmr f31, f1 /* 8014BCD4 00147B14 3C 60 80 44 */ lis r3, "@14354"@ha /* 8014BCD8 00147B18 3B E3 6D 58 */ addi r31, r3, "@14354"@l /* 8014BCDC 00147B1C 7C 04 28 40 */ cmplw r4, r5 /* 8014BCE0 00147B20 41 80 00 18 */ blt lbl_8014BCF8 /* 8014BCE4 00147B24 38 7F 00 00 */ addi r3, r31, 0x0 /* 8014BCE8 00147B28 38 80 00 1A */ li r4, 0x1a /* 8014BCEC 00147B2C 38 BF 00 18 */ addi r5, r31, 0x18 /* 8014BCF0 00147B30 4C C6 31 82 */ crclr 4*cr1+eq /* 8014BCF4 00147B34 4B FD C6 5D */ bl Panic__Q24nw4r2dbFPCciPCce .global lbl_8014BCF8 lbl_8014BCF8: /* 8014BCF8 00147B38 38 00 00 00 */ li r0, 0x0 /* 8014BCFC 00147B3C 7C 1C E8 40 */ cmplw r28, r29 /* 8014BD00 00147B40 41 80 00 10 */ blt lbl_8014BD10 /* 8014BD04 00147B44 7C 1C F0 40 */ cmplw r28, r30 /* 8014BD08 00147B48 41 81 00 08 */ bgt lbl_8014BD10 /* 8014BD0C 00147B4C 38 00 00 01 */ li r0, 0x1 .global lbl_8014BD10 lbl_8014BD10: /* 8014BD10 00147B50 2C 00 00 00 */ cmpwi r0, 0x0 /* 8014BD14 00147B54 40 82 00 18 */ bne lbl_8014BD2C /* 8014BD18 00147B58 38 7F 00 00 */ addi r3, r31, 0x0 /* 8014BD1C 00147B5C 38 80 00 1B */ li r4, 0x1b /* 8014BD20 00147B60 38 BF 00 44 */ addi r5, r31, 0x44 /* 8014BD24 00147B64 4C C6 31 82 */ crclr 4*cr1+eq /* 8014BD28 00147B68 4B FD C6 29 */ bl Panic__Q24nw4r2dbFPCciPCce .global lbl_8014BD2C lbl_8014BD2C: /* 8014BD2C 00147B6C 7C 1D E0 50 */ subf r0, r29, r28 /* 8014BD30 00147B70 C8 42 95 D8 */ lfd f2, "@14358"@sda21(r2) /* 8014BD34 00147B74 90 01 00 0C */ stw r0, 0xc(r1) /* 8014BD38 00147B78 3C 60 43 30 */ lis r3, 0x4330 /* 8014BD3C 00147B7C 90 61 00 08 */ stw r3, 0x8(r1) /* 8014BD40 00147B80 C8 01 00 08 */ lfd f0, 0x8(r1) /* 8014BD44 00147B84 EC 00 10 28 */ fsubs f0, f0, f2 /* 8014BD48 00147B88 EC 3F 00 32 */ fmuls f1, f31, f0 /* 8014BD4C 00147B8C 7C 1D F0 50 */ subf r0, r29, r30 /* 8014BD50 00147B90 90 01 00 14 */ stw r0, 0x14(r1) /* 8014BD54 00147B94 90 61 00 10 */ stw r3, 0x10(r1) /* 8014BD58 00147B98 C8 01 00 10 */ lfd f0, 0x10(r1) /* 8014BD5C 00147B9C EC 00 10 28 */ fsubs f0, f0, f2 /* 8014BD60 00147BA0 EC 21 00 24 */ fdivs f1, f1, f0 /* 8014BD64 00147BA4 48 00 00 29 */ bl floor__3stdFf /* 8014BD68 00147BA8 38 00 00 38 */ li r0, 0x38 /* 8014BD6C 00147BAC 13 E1 00 0C */ psq_lx f31, r1, r0, 0, qr0 /* 8014BD70 00147BB0 CB E1 00 30 */ lfd f31, 0x30(r1) /* 8014BD74 00147BB4 39 61 00 30 */ addi r11, r1, 0x30 /* 8014BD78 00147BB8 4B EB B6 15 */ bl lbl_8000738C /* 8014BD7C 00147BBC 80 01 00 44 */ lwz r0, 0x44(r1) /* 8014BD80 00147BC0 7C 08 03 A6 */ mtlr r0 /* 8014BD84 00147BC4 38 21 00 40 */ addi r1, r1, 0x40 /* 8014BD88 00147BC8 4E 80 00 20 */ blr .global floor__3stdFf floor__3stdFf: /* 8014BD8C 00147BCC 4B EC 48 0C */ b floorf .global tryToDraw__Q44nrel6devkit7heapmap18HeapMapBlockDrawerFRCQ34nrel3mem5Block tryToDraw__Q44nrel6devkit7heapmap18HeapMapBlockDrawerFRCQ34nrel3mem5Block: /* 8014BD90 00147BD0 38 A3 00 08 */ addi r5, r3, 0x8 /* 8014BD94 00147BD4 48 00 00 04 */ b tryToDrawWithColor__Q44nrel6devkit7heapmap18HeapMapBlockDrawerFRCQ34nrel3mem5BlockRC8_GXColor .global tryToDrawWithColor__Q44nrel6devkit7heapmap18HeapMapBlockDrawerFRCQ34nrel3mem5BlockRC8_GXColor tryToDrawWithColor__Q44nrel6devkit7heapmap18HeapMapBlockDrawerFRCQ34nrel3mem5BlockRC8_GXColor: /* 8014BD98 00147BD8 94 21 FF D0 */ stwu r1, -0x30(r1) /* 8014BD9C 00147BDC 7C 08 02 A6 */ mflr r0 /* 8014BDA0 00147BE0 90 01 00 34 */ stw r0, 0x34(r1) /* 8014BDA4 00147BE4 39 61 00 30 */ addi r11, r1, 0x30 /* 8014BDA8 00147BE8 4B EB B5 9D */ bl lbl_80007344 /* 8014BDAC 00147BEC 7C 7D 1B 78 */ mr r29, r3 /* 8014BDB0 00147BF0 7C 9E 23 78 */ mr r30, r4 /* 8014BDB4 00147BF4 7C BF 2B 78 */ mr r31, r5 /* 8014BDB8 00147BF8 7F C3 F3 78 */ mr r3, r30 /* 8014BDBC 00147BFC 4B F2 99 75 */ bl GKI_getfirst /* 8014BDC0 00147C00 90 61 00 0C */ stw r3, 0xc(r1) /* 8014BDC4 00147C04 7F C3 F3 78 */ mr r3, r30 /* 8014BDC8 00147C08 4B FB 4A 19 */ bl GetZeroBufferAddress__Q44nw4r3snd6detail9AxManagerFv /* 8014BDCC 00147C0C 90 61 00 08 */ stw r3, 0x8(r1) /* 8014BDD0 00147C10 80 1D 00 00 */ lwz r0, 0x0(r29) /* 8014BDD4 00147C14 7C 03 00 40 */ cmplw r3, r0 /* 8014BDD8 00147C18 41 80 01 30 */ blt lbl_8014BF08 /* 8014BDDC 00147C1C 80 81 00 0C */ lwz r4, 0xc(r1) /* 8014BDE0 00147C20 80 1D 00 04 */ lwz r0, 0x4(r29) /* 8014BDE4 00147C24 7C 04 00 40 */ cmplw r4, r0 /* 8014BDE8 00147C28 41 80 00 08 */ blt lbl_8014BDF0 /* 8014BDEC 00147C2C 48 00 01 1C */ b lbl_8014BF08 .global lbl_8014BDF0 lbl_8014BDF0: /* 8014BDF0 00147C30 80 1D 00 20 */ lwz r0, 0x20(r29) /* 8014BDF4 00147C34 7C 00 20 40 */ cmplw r0, r4 /* 8014BDF8 00147C38 41 81 00 20 */ bgt lbl_8014BE18 /* 8014BDFC 00147C3C 80 BD 00 24 */ lwz r5, 0x24(r29) /* 8014BE00 00147C40 7C 04 28 40 */ cmplw r4, r5 /* 8014BE04 00147C44 41 81 00 14 */ bgt lbl_8014BE18 /* 8014BE08 00147C48 7C 00 18 40 */ cmplw r0, r3 /* 8014BE0C 00147C4C 41 81 00 0C */ bgt lbl_8014BE18 /* 8014BE10 00147C50 7C 03 28 40 */ cmplw r3, r5 /* 8014BE14 00147C54 40 81 00 F4 */ ble lbl_8014BF08 .global lbl_8014BE18 lbl_8014BE18: /* 8014BE18 00147C58 38 61 00 10 */ addi r3, r1, 0x10 /* 8014BE1C 00147C5C 38 9D 00 0C */ addi r4, r29, 0xc /* 8014BE20 00147C60 4B FF FE 65 */ bl __ct__Q34nw4r2ut4RectFRCQ34nw4r2ut4Rect /* 8014BE24 00147C64 38 61 00 0C */ addi r3, r1, 0xc /* 8014BE28 00147C68 7F A4 EB 78 */ mr r4, r29 /* 8014BE2C 00147C6C 48 00 00 F5 */ bl "max