diff --git a/asm/sysGCU/THPRead.s b/asm/sysGCU/THPRead.s deleted file mode 100644 index f8179d120..000000000 --- a/asm/sysGCU/THPRead.s +++ /dev/null @@ -1,267 +0,0 @@ -.include "macros.inc" -.section .bss # 0x804EFC20 - 0x8051467C - -# presumably OSMessageQueue -.lcomm FreeReadBufferQueue, 0x20, 4 -.lcomm ReadedBufferQueue, 0x20, 4 -.lcomm ReadedBufferQueue2, 0x20, 4 - -.lcomm FreeReadBufferMessage, 0x28, 4 -.lcomm ReadedBufferMessage, 0x28, 4 -.lcomm ReadedBufferMessage2, 0x28, 4 -.lcomm ReadThread, 0x318, 8 -.lcomm ReadThreadStack, 0x1000, 4 - -.section .sbss # 0x80514D80 - 0x80516360 -.balign 8 -.obj gTHPReaderDvdAccess, global - .skip 1 -.endobj gTHPReaderDvdAccess -.balign 4 -# local object -.obj ReadThreadCreated, local - .skip 4 -.endobj ReadThreadCreated - -.section .text, "ax" # 0x800056C0 - 0x80472F00 -.fn CreateReadThread, global -/* 8044F58C 0044C4CC 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044F590 0044C4D0 7C 08 02 A6 */ mflr r0 -/* 8044F594 0044C4D4 3C 80 80 45 */ lis r4, Reader__FPv@ha -/* 8044F598 0044C4D8 3C A0 80 50 */ lis r5, FreeReadBufferQueue@ha -/* 8044F59C 0044C4DC 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044F5A0 0044C4E0 38 84 F6 9C */ addi r4, r4, Reader__FPv@l -/* 8044F5A4 0044C4E4 7C 68 1B 78 */ mr r8, r3 -/* 8044F5A8 0044C4E8 38 E0 10 00 */ li r7, 0x1000 -/* 8044F5AC 0044C4EC 93 E1 00 0C */ stw r31, 0xc(r1) -/* 8044F5B0 0044C4F0 3B E5 43 20 */ addi r31, r5, FreeReadBufferQueue@l -/* 8044F5B4 0044C4F4 38 DF 03 F0 */ addi r6, r31, 0x3f0 -/* 8044F5B8 0044C4F8 38 A0 00 00 */ li r5, 0 -/* 8044F5BC 0044C4FC 38 7F 00 D8 */ addi r3, r31, 0xd8 -/* 8044F5C0 0044C500 39 20 00 01 */ li r9, 1 -/* 8044F5C4 0044C504 38 C6 10 00 */ addi r6, r6, 0x1000 -/* 8044F5C8 0044C508 4B CA 2A 05 */ bl OSCreateThread -/* 8044F5CC 0044C50C 2C 03 00 00 */ cmpwi r3, 0 -/* 8044F5D0 0044C510 40 82 00 0C */ bne .L_8044F5DC -/* 8044F5D4 0044C514 38 60 00 00 */ li r3, 0 -/* 8044F5D8 0044C518 48 00 00 40 */ b .L_8044F618 -.L_8044F5DC: -/* 8044F5DC 0044C51C 38 7F 00 00 */ addi r3, r31, 0 -/* 8044F5E0 0044C520 38 9F 00 60 */ addi r4, r31, 0x60 -/* 8044F5E4 0044C524 38 A0 00 0A */ li r5, 0xa -/* 8044F5E8 0044C528 4B C9 FE D5 */ bl OSInitMessageQueue -/* 8044F5EC 0044C52C 38 7F 00 20 */ addi r3, r31, 0x20 -/* 8044F5F0 0044C530 38 9F 00 88 */ addi r4, r31, 0x88 -/* 8044F5F4 0044C534 38 A0 00 0A */ li r5, 0xa -/* 8044F5F8 0044C538 4B C9 FE C5 */ bl OSInitMessageQueue -/* 8044F5FC 0044C53C 38 7F 00 40 */ addi r3, r31, 0x40 -/* 8044F600 0044C540 38 9F 00 B0 */ addi r4, r31, 0xb0 -/* 8044F604 0044C544 38 A0 00 0A */ li r5, 0xa -/* 8044F608 0044C548 4B C9 FE B5 */ bl OSInitMessageQueue -/* 8044F60C 0044C54C 38 00 00 01 */ li r0, 1 -/* 8044F610 0044C550 38 60 00 01 */ li r3, 1 -/* 8044F614 0044C554 90 0D 9C 54 */ stw r0, ReadThreadCreated@sda21(r13) -.L_8044F618: -/* 8044F618 0044C558 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044F61C 0044C55C 83 E1 00 0C */ lwz r31, 0xc(r1) -/* 8044F620 0044C560 7C 08 03 A6 */ mtlr r0 -/* 8044F624 0044C564 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044F628 0044C568 4E 80 00 20 */ blr -.endfn CreateReadThread - -.fn ReadThreadStart, global -/* 8044F62C 0044C56C 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044F630 0044C570 7C 08 02 A6 */ mflr r0 -/* 8044F634 0044C574 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044F638 0044C578 80 0D 9C 54 */ lwz r0, ReadThreadCreated@sda21(r13) -/* 8044F63C 0044C57C 2C 00 00 00 */ cmpwi r0, 0 -/* 8044F640 0044C580 41 82 00 10 */ beq .L_8044F650 -/* 8044F644 0044C584 3C 60 80 50 */ lis r3, ReadThread@ha -/* 8044F648 0044C588 38 63 43 F8 */ addi r3, r3, ReadThread@l -/* 8044F64C 0044C58C 4B CA 2E A9 */ bl OSResumeThread -.L_8044F650: -/* 8044F650 0044C590 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044F654 0044C594 7C 08 03 A6 */ mtlr r0 -/* 8044F658 0044C598 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044F65C 0044C59C 4E 80 00 20 */ blr -.endfn ReadThreadStart - -.fn ReadThreadCancel, global -/* 8044F660 0044C5A0 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044F664 0044C5A4 7C 08 02 A6 */ mflr r0 -/* 8044F668 0044C5A8 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044F66C 0044C5AC 80 0D 9C 54 */ lwz r0, ReadThreadCreated@sda21(r13) -/* 8044F670 0044C5B0 2C 00 00 00 */ cmpwi r0, 0 -/* 8044F674 0044C5B4 41 82 00 18 */ beq .L_8044F68C -/* 8044F678 0044C5B8 3C 60 80 50 */ lis r3, ReadThread@ha -/* 8044F67C 0044C5BC 38 63 43 F8 */ addi r3, r3, ReadThread@l -/* 8044F680 0044C5C0 4B CA 2C 19 */ bl OSCancelThread -/* 8044F684 0044C5C4 38 00 00 00 */ li r0, 0 -/* 8044F688 0044C5C8 90 0D 9C 54 */ stw r0, ReadThreadCreated@sda21(r13) -.L_8044F68C: -/* 8044F68C 0044C5CC 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044F690 0044C5D0 7C 08 03 A6 */ mtlr r0 -/* 8044F694 0044C5D4 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044F698 0044C5D8 4E 80 00 20 */ blr -.endfn ReadThreadCancel - -.fn Reader__FPv, local -/* 8044F69C 0044C5DC 94 21 FF E0 */ stwu r1, -0x20(r1) -/* 8044F6A0 0044C5E0 7C 08 02 A6 */ mflr r0 -/* 8044F6A4 0044C5E4 3C 60 80 51 */ lis r3, ActivePlayer@ha -/* 8044F6A8 0044C5E8 90 01 00 24 */ stw r0, 0x24(r1) -/* 8044F6AC 0044C5EC BF 61 00 0C */ stmw r27, 0xc(r1) -/* 8044F6B0 0044C5F0 3B E3 44 90 */ addi r31, r3, ActivePlayer@l -/* 8044F6B4 0044C5F4 3B 80 00 00 */ li r28, 0 -/* 8044F6B8 0044C5F8 83 DF 00 B8 */ lwz r30, 0xb8(r31) -/* 8044F6BC 0044C5FC 83 BF 00 BC */ lwz r29, 0xbc(r31) -.L_8044F6C0: -/* 8044F6C0 0044C600 48 00 01 2D */ bl PopFreeReadBuffer -/* 8044F6C4 0044C604 38 00 00 01 */ li r0, 1 -/* 8044F6C8 0044C608 7C 7B 1B 78 */ mr r27, r3 -/* 8044F6CC 0044C60C 98 0D 9C 50 */ stb r0, gTHPReaderDvdAccess@sda21(r13) -/* 8044F6D0 0044C610 7F E3 FB 78 */ mr r3, r31 -/* 8044F6D4 0044C614 7F A5 EB 78 */ mr r5, r29 -/* 8044F6D8 0044C618 7F C6 F3 78 */ mr r6, r30 -/* 8044F6DC 0044C61C 80 9B 00 00 */ lwz r4, 0(r27) -/* 8044F6E0 0044C620 38 E0 00 02 */ li r7, 2 -/* 8044F6E4 0044C624 4B C8 D3 9D */ bl DVDReadPrio -/* 8044F6E8 0044C628 38 00 00 00 */ li r0, 0 -/* 8044F6EC 0044C62C 7C 03 E8 00 */ cmpw r3, r29 -/* 8044F6F0 0044C630 98 0D 9C 50 */ stb r0, gTHPReaderDvdAccess@sda21(r13) -/* 8044F6F4 0044C634 41 82 00 30 */ beq .L_8044F724 -/* 8044F6F8 0044C638 2C 03 FF FF */ cmpwi r3, -1 -/* 8044F6FC 0044C63C 40 82 00 0C */ bne .L_8044F708 -/* 8044F700 0044C640 38 00 FF FF */ li r0, -1 -/* 8044F704 0044C644 90 1F 00 A8 */ stw r0, 0xa8(r31) -.L_8044F708: -/* 8044F708 0044C648 2C 1C 00 00 */ cmpwi r28, 0 -/* 8044F70C 0044C64C 40 82 00 0C */ bne .L_8044F718 -/* 8044F710 0044C650 38 60 00 00 */ li r3, 0 -/* 8044F714 0044C654 4B FF EF 21 */ bl PrepareReady__Fi -.L_8044F718: -/* 8044F718 0044C658 3C 60 80 50 */ lis r3, ReadThread@ha -/* 8044F71C 0044C65C 38 63 43 F8 */ addi r3, r3, ReadThread@l -/* 8044F720 0044C660 4B CA 30 5D */ bl OSSuspendThread -.L_8044F724: -/* 8044F724 0044C664 93 9B 00 04 */ stw r28, 4(r27) -/* 8044F728 0044C668 7F 63 DB 78 */ mr r3, r27 -/* 8044F72C 0044C66C 48 00 00 91 */ bl PushReadedBuffer -/* 8044F730 0044C670 80 1F 00 C0 */ lwz r0, 0xc0(r31) -/* 8044F734 0044C674 7F DE EA 14 */ add r30, r30, r29 -/* 8044F738 0044C678 80 DF 00 50 */ lwz r6, 0x50(r31) -/* 8044F73C 0044C67C 7C 9C 02 14 */ add r4, r28, r0 -/* 8044F740 0044C680 80 BB 00 00 */ lwz r5, 0(r27) -/* 8044F744 0044C684 7C 64 33 96 */ divwu r3, r4, r6 -/* 8044F748 0044C688 38 06 FF FF */ addi r0, r6, -1 -/* 8044F74C 0044C68C 83 A5 00 00 */ lwz r29, 0(r5) -/* 8044F750 0044C690 7C 63 31 D6 */ mullw r3, r3, r6 -/* 8044F754 0044C694 7C 63 20 50 */ subf r3, r3, r4 -/* 8044F758 0044C698 7C 03 00 40 */ cmplw r3, r0 -/* 8044F75C 0044C69C 40 82 00 24 */ bne .L_8044F780 -/* 8044F760 0044C6A0 88 1F 00 A6 */ lbz r0, 0xa6(r31) -/* 8044F764 0044C6A4 54 00 07 FF */ clrlwi. r0, r0, 0x1f -/* 8044F768 0044C6A8 41 82 00 0C */ beq .L_8044F774 -/* 8044F76C 0044C6AC 83 DF 00 64 */ lwz r30, 0x64(r31) -/* 8044F770 0044C6B0 48 00 00 10 */ b .L_8044F780 -.L_8044F774: -/* 8044F774 0044C6B4 3C 60 80 50 */ lis r3, ReadThread@ha -/* 8044F778 0044C6B8 38 63 43 F8 */ addi r3, r3, ReadThread@l -/* 8044F77C 0044C6BC 4B CA 30 01 */ bl OSSuspendThread -.L_8044F780: -/* 8044F780 0044C6C0 3B 9C 00 01 */ addi r28, r28, 1 -/* 8044F784 0044C6C4 4B FF FF 3C */ b .L_8044F6C0 -.endfn Reader__FPv - -.fn PopReadedBuffer, global -/* 8044F788 0044C6C8 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044F78C 0044C6CC 7C 08 02 A6 */ mflr r0 -/* 8044F790 0044C6D0 3C 60 80 50 */ lis r3, ReadedBufferQueue@ha -/* 8044F794 0044C6D4 38 A0 00 01 */ li r5, 1 -/* 8044F798 0044C6D8 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044F79C 0044C6DC 38 81 00 08 */ addi r4, r1, 8 -/* 8044F7A0 0044C6E0 38 63 43 40 */ addi r3, r3, ReadedBufferQueue@l -/* 8044F7A4 0044C6E4 4B C9 FE 41 */ bl OSReceiveMessage -/* 8044F7A8 0044C6E8 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044F7AC 0044C6EC 80 61 00 08 */ lwz r3, 8(r1) -/* 8044F7B0 0044C6F0 7C 08 03 A6 */ mtlr r0 -/* 8044F7B4 0044C6F4 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044F7B8 0044C6F8 4E 80 00 20 */ blr -.endfn PopReadedBuffer - -.fn PushReadedBuffer, global -/* 8044F7BC 0044C6FC 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044F7C0 0044C700 7C 08 02 A6 */ mflr r0 -/* 8044F7C4 0044C704 3C A0 80 50 */ lis r5, ReadedBufferQueue@ha -/* 8044F7C8 0044C708 7C 64 1B 78 */ mr r4, r3 -/* 8044F7CC 0044C70C 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044F7D0 0044C710 38 65 43 40 */ addi r3, r5, ReadedBufferQueue@l -/* 8044F7D4 0044C714 38 A0 00 01 */ li r5, 1 -/* 8044F7D8 0044C718 4B C9 FD 45 */ bl OSSendMessage -/* 8044F7DC 0044C71C 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044F7E0 0044C720 7C 08 03 A6 */ mtlr r0 -/* 8044F7E4 0044C724 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044F7E8 0044C728 4E 80 00 20 */ blr -.endfn PushReadedBuffer - -.fn PopFreeReadBuffer, global -/* 8044F7EC 0044C72C 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044F7F0 0044C730 7C 08 02 A6 */ mflr r0 -/* 8044F7F4 0044C734 3C 60 80 50 */ lis r3, FreeReadBufferQueue@ha -/* 8044F7F8 0044C738 38 A0 00 01 */ li r5, 1 -/* 8044F7FC 0044C73C 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044F800 0044C740 38 81 00 08 */ addi r4, r1, 8 -/* 8044F804 0044C744 38 63 43 20 */ addi r3, r3, FreeReadBufferQueue@l -/* 8044F808 0044C748 4B C9 FD DD */ bl OSReceiveMessage -/* 8044F80C 0044C74C 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044F810 0044C750 80 61 00 08 */ lwz r3, 8(r1) -/* 8044F814 0044C754 7C 08 03 A6 */ mtlr r0 -/* 8044F818 0044C758 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044F81C 0044C75C 4E 80 00 20 */ blr -.endfn PopFreeReadBuffer - -.fn PushFreeReadBuffer, global -/* 8044F820 0044C760 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044F824 0044C764 7C 08 02 A6 */ mflr r0 -/* 8044F828 0044C768 3C A0 80 50 */ lis r5, FreeReadBufferQueue@ha -/* 8044F82C 0044C76C 7C 64 1B 78 */ mr r4, r3 -/* 8044F830 0044C770 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044F834 0044C774 38 65 43 20 */ addi r3, r5, FreeReadBufferQueue@l -/* 8044F838 0044C778 38 A0 00 01 */ li r5, 1 -/* 8044F83C 0044C77C 4B C9 FC E1 */ bl OSSendMessage -/* 8044F840 0044C780 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044F844 0044C784 7C 08 03 A6 */ mtlr r0 -/* 8044F848 0044C788 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044F84C 0044C78C 4E 80 00 20 */ blr -.endfn PushFreeReadBuffer - -.fn PopReadedBuffer2, global -/* 8044F850 0044C790 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044F854 0044C794 7C 08 02 A6 */ mflr r0 -/* 8044F858 0044C798 3C 60 80 50 */ lis r3, ReadedBufferQueue2@ha -/* 8044F85C 0044C79C 38 A0 00 01 */ li r5, 1 -/* 8044F860 0044C7A0 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044F864 0044C7A4 38 81 00 08 */ addi r4, r1, 8 -/* 8044F868 0044C7A8 38 63 43 60 */ addi r3, r3, ReadedBufferQueue2@l -/* 8044F86C 0044C7AC 4B C9 FD 79 */ bl OSReceiveMessage -/* 8044F870 0044C7B0 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044F874 0044C7B4 80 61 00 08 */ lwz r3, 8(r1) -/* 8044F878 0044C7B8 7C 08 03 A6 */ mtlr r0 -/* 8044F87C 0044C7BC 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044F880 0044C7C0 4E 80 00 20 */ blr -.endfn PopReadedBuffer2 - -.fn PushReadedBuffer2, global -/* 8044F884 0044C7C4 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044F888 0044C7C8 7C 08 02 A6 */ mflr r0 -/* 8044F88C 0044C7CC 3C A0 80 50 */ lis r5, ReadedBufferQueue2@ha -/* 8044F890 0044C7D0 7C 64 1B 78 */ mr r4, r3 -/* 8044F894 0044C7D4 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044F898 0044C7D8 38 65 43 60 */ addi r3, r5, ReadedBufferQueue2@l -/* 8044F89C 0044C7DC 38 A0 00 01 */ li r5, 1 -/* 8044F8A0 0044C7E0 4B C9 FC 7D */ bl OSSendMessage -/* 8044F8A4 0044C7E4 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044F8A8 0044C7E8 7C 08 03 A6 */ mtlr r0 -/* 8044F8AC 0044C7EC 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044F8B0 0044C7F0 4E 80 00 20 */ blr -.endfn PushReadedBuffer2 diff --git a/asm/sysGCU/THPVideoDecode.s b/asm/sysGCU/THPVideoDecode.s deleted file mode 100644 index c76bfcbec..000000000 --- a/asm/sysGCU/THPVideoDecode.s +++ /dev/null @@ -1,413 +0,0 @@ -.include "macros.inc" -.section .bss # 0x804EFC20 - 0x8051467C -.lcomm VideoDecodeThread, 0x318, 8 -.lcomm VideoDecodeThreadStack, 0x1000, 4 -.lcomm FreeTextureSetQueue, 0x20, 4 -.lcomm DecodedTextureSetQueue, 0x20, 4 -.lcomm FreeTextureSetMessage, 0xC, 4 -.lcomm DecodedTextureSetMessage, 0xC, 4 - -.section .sbss # 0x80514D80 - 0x80516360 -.balign 8 -.obj VideoDecodeThreadCreated, local - .skip 0x4 -.endobj VideoDecodeThreadCreated -.obj First, local - .skip 0x4 -.endobj First - -.section .text, "ax" # 0x800056C0 - 0x80472F00 -.fn CreateVideoDecodeThread, global -/* 8044F8B4 0044C7F4 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044F8B8 0044C7F8 7C 08 02 A6 */ mflr r0 -/* 8044F8BC 0044C7FC 28 04 00 00 */ cmplwi r4, 0 -/* 8044F8C0 0044C800 3C A0 80 50 */ lis r5, VideoDecodeThread@ha -/* 8044F8C4 0044C804 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044F8C8 0044C808 93 E1 00 0C */ stw r31, 0xc(r1) -/* 8044F8CC 0044C80C 3B E5 57 10 */ addi r31, r5, VideoDecodeThread@l -/* 8044F8D0 0044C810 41 82 00 40 */ beq .L_8044F910 -/* 8044F8D4 0044C814 3C A0 80 45 */ lis r5, VideoDecoderForOnMemory__FPv@ha -/* 8044F8D8 0044C818 38 DF 03 18 */ addi r6, r31, 0x318 -/* 8044F8DC 0044C81C 38 05 FA C4 */ addi r0, r5, VideoDecoderForOnMemory__FPv@l -/* 8044F8E0 0044C820 7C 68 1B 78 */ mr r8, r3 -/* 8044F8E4 0044C824 7C 85 23 78 */ mr r5, r4 -/* 8044F8E8 0044C828 38 7F 00 00 */ addi r3, r31, 0 -/* 8044F8EC 0044C82C 7C 04 03 78 */ mr r4, r0 -/* 8044F8F0 0044C830 38 E0 10 00 */ li r7, 0x1000 -/* 8044F8F4 0044C834 39 20 00 01 */ li r9, 1 -/* 8044F8F8 0044C838 38 C6 10 00 */ addi r6, r6, 0x1000 -/* 8044F8FC 0044C83C 4B CA 26 D1 */ bl OSCreateThread -/* 8044F900 0044C840 2C 03 00 00 */ cmpwi r3, 0 -/* 8044F904 0044C844 40 82 00 44 */ bne .L_8044F948 -/* 8044F908 0044C848 38 60 00 00 */ li r3, 0 -/* 8044F90C 0044C84C 48 00 00 6C */ b .L_8044F978 -.L_8044F910: -/* 8044F910 0044C850 3C 80 80 45 */ lis r4, VideoDecoder__FPv@ha -/* 8044F914 0044C854 38 DF 03 18 */ addi r6, r31, 0x318 -/* 8044F918 0044C858 7C 68 1B 78 */ mr r8, r3 -/* 8044F91C 0044C85C 38 7F 00 00 */ addi r3, r31, 0 -/* 8044F920 0044C860 38 84 F9 FC */ addi r4, r4, VideoDecoder__FPv@l -/* 8044F924 0044C864 38 A0 00 00 */ li r5, 0 -/* 8044F928 0044C868 38 E0 10 00 */ li r7, 0x1000 -/* 8044F92C 0044C86C 39 20 00 01 */ li r9, 1 -/* 8044F930 0044C870 38 C6 10 00 */ addi r6, r6, 0x1000 -/* 8044F934 0044C874 4B CA 26 99 */ bl OSCreateThread -/* 8044F938 0044C878 2C 03 00 00 */ cmpwi r3, 0 -/* 8044F93C 0044C87C 40 82 00 0C */ bne .L_8044F948 -/* 8044F940 0044C880 38 60 00 00 */ li r3, 0 -/* 8044F944 0044C884 48 00 00 34 */ b .L_8044F978 -.L_8044F948: -/* 8044F948 0044C888 38 7F 13 18 */ addi r3, r31, 0x1318 -/* 8044F94C 0044C88C 38 9F 13 58 */ addi r4, r31, 0x1358 -/* 8044F950 0044C890 38 A0 00 03 */ li r5, 3 -/* 8044F954 0044C894 4B C9 FB 69 */ bl OSInitMessageQueue -/* 8044F958 0044C898 38 7F 13 38 */ addi r3, r31, 0x1338 -/* 8044F95C 0044C89C 38 9F 13 64 */ addi r4, r31, 0x1364 -/* 8044F960 0044C8A0 38 A0 00 03 */ li r5, 3 -/* 8044F964 0044C8A4 4B C9 FB 59 */ bl OSInitMessageQueue -/* 8044F968 0044C8A8 38 00 00 01 */ li r0, 1 -/* 8044F96C 0044C8AC 38 60 00 01 */ li r3, 1 -/* 8044F970 0044C8B0 90 0D 9C 58 */ stw r0, VideoDecodeThreadCreated@sda21(r13) -/* 8044F974 0044C8B4 90 0D 9C 5C */ stw r0, First@sda21(r13) -.L_8044F978: -/* 8044F978 0044C8B8 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044F97C 0044C8BC 83 E1 00 0C */ lwz r31, 0xc(r1) -/* 8044F980 0044C8C0 7C 08 03 A6 */ mtlr r0 -/* 8044F984 0044C8C4 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044F988 0044C8C8 4E 80 00 20 */ blr -.endfn CreateVideoDecodeThread - -.fn VideoDecodeThreadStart, global -/* 8044F98C 0044C8CC 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044F990 0044C8D0 7C 08 02 A6 */ mflr r0 -/* 8044F994 0044C8D4 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044F998 0044C8D8 80 0D 9C 58 */ lwz r0, VideoDecodeThreadCreated@sda21(r13) -/* 8044F99C 0044C8DC 2C 00 00 00 */ cmpwi r0, 0 -/* 8044F9A0 0044C8E0 41 82 00 10 */ beq .L_8044F9B0 -/* 8044F9A4 0044C8E4 3C 60 80 50 */ lis r3, VideoDecodeThread@ha -/* 8044F9A8 0044C8E8 38 63 57 10 */ addi r3, r3, VideoDecodeThread@l -/* 8044F9AC 0044C8EC 4B CA 2B 49 */ bl OSResumeThread -.L_8044F9B0: -/* 8044F9B0 0044C8F0 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044F9B4 0044C8F4 7C 08 03 A6 */ mtlr r0 -/* 8044F9B8 0044C8F8 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044F9BC 0044C8FC 4E 80 00 20 */ blr -.endfn VideoDecodeThreadStart - -.fn VideoDecodeThreadCancel, global -/* 8044F9C0 0044C900 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044F9C4 0044C904 7C 08 02 A6 */ mflr r0 -/* 8044F9C8 0044C908 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044F9CC 0044C90C 80 0D 9C 58 */ lwz r0, VideoDecodeThreadCreated@sda21(r13) -/* 8044F9D0 0044C910 2C 00 00 00 */ cmpwi r0, 0 -/* 8044F9D4 0044C914 41 82 00 18 */ beq .L_8044F9EC -/* 8044F9D8 0044C918 3C 60 80 50 */ lis r3, VideoDecodeThread@ha -/* 8044F9DC 0044C91C 38 63 57 10 */ addi r3, r3, VideoDecodeThread@l -/* 8044F9E0 0044C920 4B CA 28 B9 */ bl OSCancelThread -/* 8044F9E4 0044C924 38 00 00 00 */ li r0, 0 -/* 8044F9E8 0044C928 90 0D 9C 58 */ stw r0, VideoDecodeThreadCreated@sda21(r13) -.L_8044F9EC: -/* 8044F9EC 0044C92C 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044F9F0 0044C930 7C 08 03 A6 */ mtlr r0 -/* 8044F9F4 0044C934 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044F9F8 0044C938 4E 80 00 20 */ blr -.endfn VideoDecodeThreadCancel - -.fn VideoDecoder__FPv, local -/* 8044F9FC 0044C93C 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044FA00 0044C940 7C 08 02 A6 */ mflr r0 -/* 8044FA04 0044C944 3C 60 80 51 */ lis r3, ActivePlayer@ha -/* 8044FA08 0044C948 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044FA0C 0044C94C 93 E1 00 0C */ stw r31, 0xc(r1) -/* 8044FA10 0044C950 3B E3 44 90 */ addi r31, r3, ActivePlayer@l -/* 8044FA14 0044C954 93 C1 00 08 */ stw r30, 8(r1) -.L_8044FA18: -/* 8044FA18 0044C958 88 1F 00 A7 */ lbz r0, 0xa7(r31) -/* 8044FA1C 0044C95C 28 00 00 00 */ cmplwi r0, 0 -/* 8044FA20 0044C960 41 82 00 70 */ beq .L_8044FA90 -/* 8044FA24 0044C964 48 00 00 60 */ b .L_8044FA84 -.L_8044FA28: -/* 8044FA28 0044C968 4B FF FE 29 */ bl PopReadedBuffer2 -/* 8044FA2C 0044C96C 80 9F 00 C0 */ lwz r4, 0xc0(r31) -/* 8044FA30 0044C970 7C 7E 1B 78 */ mr r30, r3 -/* 8044FA34 0044C974 80 A3 00 04 */ lwz r5, 4(r3) -/* 8044FA38 0044C978 80 DF 00 50 */ lwz r6, 0x50(r31) -/* 8044FA3C 0044C97C 7C A5 22 14 */ add r5, r5, r4 -/* 8044FA40 0044C980 7C 85 33 96 */ divwu r4, r5, r6 -/* 8044FA44 0044C984 38 06 FF FF */ addi r0, r6, -1 -/* 8044FA48 0044C988 7C 84 31 D6 */ mullw r4, r4, r6 -/* 8044FA4C 0044C98C 7C 84 28 50 */ subf r4, r4, r5 -/* 8044FA50 0044C990 7C 04 00 40 */ cmplw r4, r0 -/* 8044FA54 0044C994 40 82 00 14 */ bne .L_8044FA68 -/* 8044FA58 0044C998 88 1F 00 A6 */ lbz r0, 0xa6(r31) -/* 8044FA5C 0044C99C 54 00 07 FF */ clrlwi. r0, r0, 0x1f -/* 8044FA60 0044C9A0 40 82 00 08 */ bne .L_8044FA68 -/* 8044FA64 0044C9A4 48 00 01 95 */ bl VideoDecode__FP13THPReadBuffer -.L_8044FA68: -/* 8044FA68 0044C9A8 7F C3 F3 78 */ mr r3, r30 -/* 8044FA6C 0044C9AC 4B FF FD B5 */ bl PushFreeReadBuffer -/* 8044FA70 0044C9B0 4B C9 F1 C9 */ bl OSDisableInterrupts -/* 8044FA74 0044C9B4 80 9F 00 D8 */ lwz r4, 0xd8(r31) -/* 8044FA78 0044C9B8 38 04 00 01 */ addi r0, r4, 1 -/* 8044FA7C 0044C9BC 90 1F 00 D8 */ stw r0, 0xd8(r31) -/* 8044FA80 0044C9C0 4B C9 F1 E1 */ bl OSRestoreInterrupts -.L_8044FA84: -/* 8044FA84 0044C9C4 80 1F 00 D8 */ lwz r0, 0xd8(r31) -/* 8044FA88 0044C9C8 2C 00 00 00 */ cmpwi r0, 0 -/* 8044FA8C 0044C9CC 41 80 FF 9C */ blt .L_8044FA28 -.L_8044FA90: -/* 8044FA90 0044C9D0 88 1F 00 A7 */ lbz r0, 0xa7(r31) -/* 8044FA94 0044C9D4 28 00 00 00 */ cmplwi r0, 0 -/* 8044FA98 0044C9D8 41 82 00 10 */ beq .L_8044FAA8 -/* 8044FA9C 0044C9DC 4B FF FD B5 */ bl PopReadedBuffer2 -/* 8044FAA0 0044C9E0 7C 7E 1B 78 */ mr r30, r3 -/* 8044FAA4 0044C9E4 48 00 00 0C */ b .L_8044FAB0 -.L_8044FAA8: -/* 8044FAA8 0044C9E8 4B FF FC E1 */ bl PopReadedBuffer -/* 8044FAAC 0044C9EC 7C 7E 1B 78 */ mr r30, r3 -.L_8044FAB0: -/* 8044FAB0 0044C9F0 7F C3 F3 78 */ mr r3, r30 -/* 8044FAB4 0044C9F4 48 00 01 45 */ bl VideoDecode__FP13THPReadBuffer -/* 8044FAB8 0044C9F8 7F C3 F3 78 */ mr r3, r30 -/* 8044FABC 0044C9FC 4B FF FD 65 */ bl PushFreeReadBuffer -/* 8044FAC0 0044CA00 4B FF FF 58 */ b .L_8044FA18 -.endfn VideoDecoder__FPv - -.fn VideoDecoderForOnMemory__FPv, local -/* 8044FAC4 0044CA04 94 21 FF D0 */ stwu r1, -0x30(r1) -/* 8044FAC8 0044CA08 7C 08 02 A6 */ mflr r0 -/* 8044FACC 0044CA0C 3C 80 80 51 */ lis r4, ActivePlayer@ha -/* 8044FAD0 0044CA10 90 01 00 34 */ stw r0, 0x34(r1) -/* 8044FAD4 0044CA14 93 E1 00 2C */ stw r31, 0x2c(r1) -/* 8044FAD8 0044CA18 3B E4 44 90 */ addi r31, r4, ActivePlayer@l -/* 8044FADC 0044CA1C 93 C1 00 28 */ stw r30, 0x28(r1) -/* 8044FAE0 0044CA20 93 A1 00 24 */ stw r29, 0x24(r1) -/* 8044FAE4 0044CA24 3B A0 00 00 */ li r29, 0 -/* 8044FAE8 0044CA28 90 61 00 08 */ stw r3, 8(r1) -/* 8044FAEC 0044CA2C 83 DF 00 BC */ lwz r30, 0xbc(r31) -.L_8044FAF0: -/* 8044FAF0 0044CA30 88 1F 00 A7 */ lbz r0, 0xa7(r31) -/* 8044FAF4 0044CA34 28 00 00 00 */ cmplwi r0, 0 -/* 8044FAF8 0044CA38 41 82 00 84 */ beq .L_8044FB7C -/* 8044FAFC 0044CA3C 48 00 00 74 */ b .L_8044FB70 -.L_8044FB00: -/* 8044FB00 0044CA40 4B C9 F1 39 */ bl OSDisableInterrupts -/* 8044FB04 0044CA44 80 9F 00 D8 */ lwz r4, 0xd8(r31) -/* 8044FB08 0044CA48 38 04 00 01 */ addi r0, r4, 1 -/* 8044FB0C 0044CA4C 90 1F 00 D8 */ stw r0, 0xd8(r31) -/* 8044FB10 0044CA50 4B C9 F1 51 */ bl OSRestoreInterrupts -/* 8044FB14 0044CA54 80 1F 00 C0 */ lwz r0, 0xc0(r31) -/* 8044FB18 0044CA58 80 BF 00 50 */ lwz r5, 0x50(r31) -/* 8044FB1C 0044CA5C 7C 9D 02 14 */ add r4, r29, r0 -/* 8044FB20 0044CA60 7C 64 2B 96 */ divwu r3, r4, r5 -/* 8044FB24 0044CA64 38 05 FF FF */ addi r0, r5, -1 -/* 8044FB28 0044CA68 7C 63 29 D6 */ mullw r3, r3, r5 -/* 8044FB2C 0044CA6C 7C 63 20 50 */ subf r3, r3, r4 -/* 8044FB30 0044CA70 7C 03 00 40 */ cmplw r3, r0 -/* 8044FB34 0044CA74 40 82 00 24 */ bne .L_8044FB58 -/* 8044FB38 0044CA78 88 1F 00 A6 */ lbz r0, 0xa6(r31) -/* 8044FB3C 0044CA7C 54 00 07 FF */ clrlwi. r0, r0, 0x1f -/* 8044FB40 0044CA80 41 82 00 3C */ beq .L_8044FB7C -/* 8044FB44 0044CA84 80 61 00 08 */ lwz r3, 8(r1) -/* 8044FB48 0044CA88 80 1F 00 B4 */ lwz r0, 0xb4(r31) -/* 8044FB4C 0044CA8C 83 C3 00 00 */ lwz r30, 0(r3) -/* 8044FB50 0044CA90 90 01 00 08 */ stw r0, 8(r1) -/* 8044FB54 0044CA94 48 00 00 18 */ b .L_8044FB6C -.L_8044FB58: -/* 8044FB58 0044CA98 80 61 00 08 */ lwz r3, 8(r1) -/* 8044FB5C 0044CA9C 80 83 00 00 */ lwz r4, 0(r3) -/* 8044FB60 0044CAA0 7C 03 F2 14 */ add r0, r3, r30 -/* 8044FB64 0044CAA4 90 01 00 08 */ stw r0, 8(r1) -/* 8044FB68 0044CAA8 7C 9E 23 78 */ mr r30, r4 -.L_8044FB6C: -/* 8044FB6C 0044CAAC 3B BD 00 01 */ addi r29, r29, 1 -.L_8044FB70: -/* 8044FB70 0044CAB0 80 1F 00 D8 */ lwz r0, 0xd8(r31) -/* 8044FB74 0044CAB4 2C 00 00 00 */ cmpwi r0, 0 -/* 8044FB78 0044CAB8 41 80 FF 88 */ blt .L_8044FB00 -.L_8044FB7C: -/* 8044FB7C 0044CABC 93 A1 00 0C */ stw r29, 0xc(r1) -/* 8044FB80 0044CAC0 38 61 00 08 */ addi r3, r1, 8 -/* 8044FB84 0044CAC4 48 00 00 75 */ bl VideoDecode__FP13THPReadBuffer -/* 8044FB88 0044CAC8 80 1F 00 C0 */ lwz r0, 0xc0(r31) -/* 8044FB8C 0044CACC 80 BF 00 50 */ lwz r5, 0x50(r31) -/* 8044FB90 0044CAD0 7C 9D 02 14 */ add r4, r29, r0 -/* 8044FB94 0044CAD4 7C 64 2B 96 */ divwu r3, r4, r5 -/* 8044FB98 0044CAD8 38 05 FF FF */ addi r0, r5, -1 -/* 8044FB9C 0044CADC 7C 63 29 D6 */ mullw r3, r3, r5 -/* 8044FBA0 0044CAE0 7C 63 20 50 */ subf r3, r3, r4 -/* 8044FBA4 0044CAE4 7C 03 00 40 */ cmplw r3, r0 -/* 8044FBA8 0044CAE8 40 82 00 34 */ bne .L_8044FBDC -/* 8044FBAC 0044CAEC 88 1F 00 A6 */ lbz r0, 0xa6(r31) -/* 8044FBB0 0044CAF0 54 00 07 FF */ clrlwi. r0, r0, 0x1f -/* 8044FBB4 0044CAF4 41 82 00 18 */ beq .L_8044FBCC -/* 8044FBB8 0044CAF8 80 61 00 08 */ lwz r3, 8(r1) -/* 8044FBBC 0044CAFC 80 1F 00 B4 */ lwz r0, 0xb4(r31) -/* 8044FBC0 0044CB00 83 C3 00 00 */ lwz r30, 0(r3) -/* 8044FBC4 0044CB04 90 01 00 08 */ stw r0, 8(r1) -/* 8044FBC8 0044CB08 48 00 00 28 */ b .L_8044FBF0 -.L_8044FBCC: -/* 8044FBCC 0044CB0C 3C 60 80 50 */ lis r3, VideoDecodeThread@ha -/* 8044FBD0 0044CB10 38 63 57 10 */ addi r3, r3, VideoDecodeThread@l -/* 8044FBD4 0044CB14 4B CA 2B A9 */ bl OSSuspendThread -/* 8044FBD8 0044CB18 48 00 00 18 */ b .L_8044FBF0 -.L_8044FBDC: -/* 8044FBDC 0044CB1C 80 61 00 08 */ lwz r3, 8(r1) -/* 8044FBE0 0044CB20 80 83 00 00 */ lwz r4, 0(r3) -/* 8044FBE4 0044CB24 7C 03 F2 14 */ add r0, r3, r30 -/* 8044FBE8 0044CB28 90 01 00 08 */ stw r0, 8(r1) -/* 8044FBEC 0044CB2C 7C 9E 23 78 */ mr r30, r4 -.L_8044FBF0: -/* 8044FBF0 0044CB30 3B BD 00 01 */ addi r29, r29, 1 -/* 8044FBF4 0044CB34 4B FF FE FC */ b .L_8044FAF0 -.endfn VideoDecoderForOnMemory__FPv - -.fn VideoDecode__FP13THPReadBuffer, local -/* 8044FBF8 0044CB38 94 21 FF D0 */ stwu r1, -0x30(r1) -/* 8044FBFC 0044CB3C 7C 08 02 A6 */ mflr r0 -/* 8044FC00 0044CB40 3C 80 80 51 */ lis r4, ActivePlayer@ha -/* 8044FC04 0044CB44 90 01 00 34 */ stw r0, 0x34(r1) -/* 8044FC08 0044CB48 BF 01 00 10 */ stmw r24, 0x10(r1) -/* 8044FC0C 0044CB4C 3B E4 44 90 */ addi r31, r4, ActivePlayer@l -/* 8044FC10 0044CB50 7C 7B 1B 78 */ mr r27, r3 -/* 8044FC14 0044CB54 80 1F 00 6C */ lwz r0, 0x6c(r31) -/* 8044FC18 0044CB58 80 83 00 00 */ lwz r4, 0(r3) -/* 8044FC1C 0044CB5C 54 03 10 3A */ slwi r3, r0, 2 -/* 8044FC20 0044CB60 3B 83 00 08 */ addi r28, r3, 8 -/* 8044FC24 0044CB64 3B A4 00 08 */ addi r29, r4, 8 -/* 8044FC28 0044CB68 7F 84 E2 14 */ add r28, r4, r28 -/* 8044FC2C 0044CB6C 48 00 00 ED */ bl PopFreeTextureSet -/* 8044FC30 0044CB70 3C 80 80 51 */ lis r4, ActivePlayer@ha -/* 8044FC34 0044CB74 3B C0 00 00 */ li r30, 0 -/* 8044FC38 0044CB78 3B 44 44 90 */ addi r26, r4, ActivePlayer@l -/* 8044FC3C 0044CB7C 7C 78 1B 78 */ mr r24, r3 -/* 8044FC40 0044CB80 7F 59 D3 78 */ mr r25, r26 -/* 8044FC44 0044CB84 48 00 00 98 */ b .L_8044FCDC -.L_8044FC48: -/* 8044FC48 0044CB88 88 19 00 70 */ lbz r0, 0x70(r25) -/* 8044FC4C 0044CB8C 2C 00 00 00 */ cmpwi r0, 0 -/* 8044FC50 0044CB90 41 82 00 08 */ beq .L_8044FC58 -/* 8044FC54 0044CB94 48 00 00 74 */ b .L_8044FCC8 -.L_8044FC58: -/* 8044FC58 0044CB98 80 98 00 00 */ lwz r4, 0(r24) -/* 8044FC5C 0044CB9C 7F 83 E3 78 */ mr r3, r28 -/* 8044FC60 0044CBA0 80 B8 00 04 */ lwz r5, 4(r24) -/* 8044FC64 0044CBA4 80 D8 00 08 */ lwz r6, 8(r24) -/* 8044FC68 0044CBA8 80 FA 00 9C */ lwz r7, 0x9c(r26) -/* 8044FC6C 0044CBAC 4B CA 74 DD */ bl THPVideoDecode -/* 8044FC70 0044CBB0 2C 03 00 00 */ cmpwi r3, 0 -/* 8044FC74 0044CBB4 90 7A 00 AC */ stw r3, 0xac(r26) -/* 8044FC78 0044CBB8 41 82 00 2C */ beq .L_8044FCA4 -/* 8044FC7C 0044CBBC 80 0D 9C 5C */ lwz r0, First@sda21(r13) -/* 8044FC80 0044CBC0 2C 00 00 00 */ cmpwi r0, 0 -/* 8044FC84 0044CBC4 41 82 00 14 */ beq .L_8044FC98 -/* 8044FC88 0044CBC8 38 60 00 00 */ li r3, 0 -/* 8044FC8C 0044CBCC 4B FF E9 A9 */ bl PrepareReady__Fi -/* 8044FC90 0044CBD0 38 00 00 00 */ li r0, 0 -/* 8044FC94 0044CBD4 90 0D 9C 5C */ stw r0, First@sda21(r13) -.L_8044FC98: -/* 8044FC98 0044CBD8 3C 60 80 50 */ lis r3, VideoDecodeThread@ha -/* 8044FC9C 0044CBDC 38 63 57 10 */ addi r3, r3, VideoDecodeThread@l -/* 8044FCA0 0044CBE0 4B CA 2A DD */ bl OSSuspendThread -.L_8044FCA4: -/* 8044FCA4 0044CBE4 80 1B 00 04 */ lwz r0, 4(r27) -/* 8044FCA8 0044CBE8 7F 03 C3 78 */ mr r3, r24 -/* 8044FCAC 0044CBEC 90 18 00 0C */ stw r0, 0xc(r24) -/* 8044FCB0 0044CBF0 48 00 01 11 */ bl PushDecodedTextureSet -/* 8044FCB4 0044CBF4 4B C9 EF 85 */ bl OSDisableInterrupts -/* 8044FCB8 0044CBF8 80 9A 00 D8 */ lwz r4, 0xd8(r26) -/* 8044FCBC 0044CBFC 38 04 00 01 */ addi r0, r4, 1 -/* 8044FCC0 0044CC00 90 1A 00 D8 */ stw r0, 0xd8(r26) -/* 8044FCC4 0044CC04 4B C9 EF 9D */ bl OSRestoreInterrupts -.L_8044FCC8: -/* 8044FCC8 0044CC08 80 1D 00 00 */ lwz r0, 0(r29) -/* 8044FCCC 0044CC0C 3B BD 00 04 */ addi r29, r29, 4 -/* 8044FCD0 0044CC10 3B 39 00 01 */ addi r25, r25, 1 -/* 8044FCD4 0044CC14 3B DE 00 01 */ addi r30, r30, 1 -/* 8044FCD8 0044CC18 7F 9C 02 14 */ add r28, r28, r0 -.L_8044FCDC: -/* 8044FCDC 0044CC1C 80 1F 00 6C */ lwz r0, 0x6c(r31) -/* 8044FCE0 0044CC20 7C 1E 00 40 */ cmplw r30, r0 -/* 8044FCE4 0044CC24 41 80 FF 64 */ blt .L_8044FC48 -/* 8044FCE8 0044CC28 80 0D 9C 5C */ lwz r0, First@sda21(r13) -/* 8044FCEC 0044CC2C 2C 00 00 00 */ cmpwi r0, 0 -/* 8044FCF0 0044CC30 41 82 00 14 */ beq .L_8044FD04 -/* 8044FCF4 0044CC34 38 60 00 01 */ li r3, 1 -/* 8044FCF8 0044CC38 4B FF E9 3D */ bl PrepareReady__Fi -/* 8044FCFC 0044CC3C 38 00 00 00 */ li r0, 0 -/* 8044FD00 0044CC40 90 0D 9C 5C */ stw r0, First@sda21(r13) -.L_8044FD04: -/* 8044FD04 0044CC44 BB 01 00 10 */ lmw r24, 0x10(r1) -/* 8044FD08 0044CC48 80 01 00 34 */ lwz r0, 0x34(r1) -/* 8044FD0C 0044CC4C 7C 08 03 A6 */ mtlr r0 -/* 8044FD10 0044CC50 38 21 00 30 */ addi r1, r1, 0x30 -/* 8044FD14 0044CC54 4E 80 00 20 */ blr -.endfn VideoDecode__FP13THPReadBuffer - -.fn PopFreeTextureSet, global -/* 8044FD18 0044CC58 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044FD1C 0044CC5C 7C 08 02 A6 */ mflr r0 -/* 8044FD20 0044CC60 3C 60 80 50 */ lis r3, FreeTextureSetQueue@ha -/* 8044FD24 0044CC64 38 A0 00 01 */ li r5, 1 -/* 8044FD28 0044CC68 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044FD2C 0044CC6C 38 81 00 08 */ addi r4, r1, 8 -/* 8044FD30 0044CC70 38 63 6A 28 */ addi r3, r3, FreeTextureSetQueue@l -/* 8044FD34 0044CC74 4B C9 F8 B1 */ bl OSReceiveMessage -/* 8044FD38 0044CC78 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044FD3C 0044CC7C 80 61 00 08 */ lwz r3, 8(r1) -/* 8044FD40 0044CC80 7C 08 03 A6 */ mtlr r0 -/* 8044FD44 0044CC84 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044FD48 0044CC88 4E 80 00 20 */ blr -.endfn PopFreeTextureSet - -.fn PushFreeTextureSet, global -/* 8044FD4C 0044CC8C 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044FD50 0044CC90 7C 08 02 A6 */ mflr r0 -/* 8044FD54 0044CC94 3C A0 80 50 */ lis r5, FreeTextureSetQueue@ha -/* 8044FD58 0044CC98 7C 64 1B 78 */ mr r4, r3 -/* 8044FD5C 0044CC9C 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044FD60 0044CCA0 38 65 6A 28 */ addi r3, r5, FreeTextureSetQueue@l -/* 8044FD64 0044CCA4 38 A0 00 00 */ li r5, 0 -/* 8044FD68 0044CCA8 4B C9 F7 B5 */ bl OSSendMessage -/* 8044FD6C 0044CCAC 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044FD70 0044CCB0 7C 08 03 A6 */ mtlr r0 -/* 8044FD74 0044CCB4 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044FD78 0044CCB8 4E 80 00 20 */ blr -.endfn PushFreeTextureSet - -.fn PopDecodedTextureSet, global -/* 8044FD7C 0044CCBC 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044FD80 0044CCC0 7C 08 02 A6 */ mflr r0 -/* 8044FD84 0044CCC4 3C 80 80 50 */ lis r4, DecodedTextureSetQueue@ha -/* 8044FD88 0044CCC8 7C 65 1B 78 */ mr r5, r3 -/* 8044FD8C 0044CCCC 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044FD90 0044CCD0 38 64 6A 48 */ addi r3, r4, DecodedTextureSetQueue@l -/* 8044FD94 0044CCD4 38 81 00 08 */ addi r4, r1, 8 -/* 8044FD98 0044CCD8 4B C9 F8 4D */ bl OSReceiveMessage -/* 8044FD9C 0044CCDC 2C 03 00 01 */ cmpwi r3, 1 -/* 8044FDA0 0044CCE0 40 82 00 0C */ bne .L_8044FDAC -/* 8044FDA4 0044CCE4 80 61 00 08 */ lwz r3, 8(r1) -/* 8044FDA8 0044CCE8 48 00 00 08 */ b .L_8044FDB0 -.L_8044FDAC: -/* 8044FDAC 0044CCEC 38 60 00 00 */ li r3, 0 -.L_8044FDB0: -/* 8044FDB0 0044CCF0 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044FDB4 0044CCF4 7C 08 03 A6 */ mtlr r0 -/* 8044FDB8 0044CCF8 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044FDBC 0044CCFC 4E 80 00 20 */ blr -.endfn PopDecodedTextureSet - -.fn PushDecodedTextureSet, global -/* 8044FDC0 0044CD00 94 21 FF F0 */ stwu r1, -0x10(r1) -/* 8044FDC4 0044CD04 7C 08 02 A6 */ mflr r0 -/* 8044FDC8 0044CD08 3C A0 80 50 */ lis r5, DecodedTextureSetQueue@ha -/* 8044FDCC 0044CD0C 7C 64 1B 78 */ mr r4, r3 -/* 8044FDD0 0044CD10 90 01 00 14 */ stw r0, 0x14(r1) -/* 8044FDD4 0044CD14 38 65 6A 48 */ addi r3, r5, DecodedTextureSetQueue@l -/* 8044FDD8 0044CD18 38 A0 00 01 */ li r5, 1 -/* 8044FDDC 0044CD1C 4B C9 F7 41 */ bl OSSendMessage -/* 8044FDE0 0044CD20 80 01 00 14 */ lwz r0, 0x14(r1) -/* 8044FDE4 0044CD24 7C 08 03 A6 */ mtlr r0 -/* 8044FDE8 0044CD28 38 21 00 10 */ addi r1, r1, 0x10 -/* 8044FDEC 0044CD2C 4E 80 00 20 */ blr -.endfn PushDecodedTextureSet diff --git a/docs/recommended_todo.md b/docs/recommended_todo.md index 452454c1c..f661a3e2d 100644 --- a/docs/recommended_todo.md +++ b/docs/recommended_todo.md @@ -183,9 +183,9 @@ | File | Size (bytes) | File | Size (bytes) | | ---- | ---- | ---- | ---- | | JSTObjectSpecialActor.cpp | 2289 | illustratedBookMessage.cpp | 2964 | -| captionMessage.cpp | 3528 | THPRead.c | 3746 | +| captionMessage.cpp | 3528 | THPRead.c | 3743 | | messageObj.cpp | 4504 | aramMgr.cpp | 4920 | -| gameflow.cpp | 5333 | THPVideoDecode.c | 6103 | +| gameflow.cpp | 5333 | THPVideoDecode.c | 6107 | | messageMgr.cpp | 6825 | section.cpp | 7072 | | moviePlayerPauseAndDraw.cpp | 8587 | screenScene.cpp | 9274 | | JSTObjectParticleActor.cpp | 11032 | loadResource.cpp | 11781 | diff --git a/src/sysGCU/THPRead.c b/src/sysGCU/THPRead.c index 7fe2ea168..1e8285d3d 100644 --- a/src/sysGCU/THPRead.c +++ b/src/sysGCU/THPRead.c @@ -29,7 +29,7 @@ static u8 ReadThreadStack[STACK_SIZE]; BOOL CreateReadThread(OSPriority priority) { - if (OSCreateThread(&ReadThread, Reader, NULL, ReadThreadStack + STACK_SIZE, STACK_SIZE, priority, 1) == FALSE){ + if (OSCreateThread(&ReadThread, Reader, NULL, ReadThreadStack + STACK_SIZE, STACK_SIZE, priority, 1) == FALSE) { return FALSE; } diff --git a/tools/progress.csv b/tools/progress.csv index 6c1dc858c..6916ff6dd 100644 --- a/tools/progress.csv +++ b/tools/progress.csv @@ -531,3 +531,5 @@ You have 2610 out of 10000 Pokos and 72 out of 201 treasures.",2023-09-11 20:36: You have 2612 out of 10000 Pokos and 74 out of 201 treasures.",2023-09-12 16:09:22.614997 2613,1215920,0.2613559765039275,74,263149,0.36914748560719135," You have 2613 out of 10000 Pokos and 74 out of 201 treasures.",2023-09-12 20:28:42.908752 +2618,1218068,0.26181767845597237,77,273242,0.3833060253403212," +You have 2618 out of 10000 Pokos and 77 out of 201 treasures.",2023-09-12 22:50:28.209910