donut-decomp/asm/gx/GXFrameBuf.s

696 lines
32 KiB
ArmAsm
Raw Permalink Normal View History

2022-10-16 16:05:58 +00:00
.include "macros.inc"
.section .text, "ax" # 0x80006A00 - 0x80406260 ; 0x003FF860
2022-10-16 16:31:36 +00:00
.global GXSetDispCopySrc
GXSetDispCopySrc:
/* 80035600 00031440 81 02 86 08 */ lwz r8, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 80035604 00031444 38 E0 00 00 */ li r7, 0x0
/* 80035608 00031448 50 67 05 BE */ rlwimi r7, r3, 0, 22, 31
/* 8003560C 0003144C 38 05 FF FF */ addi r0, r5, -0x1
/* 80035610 00031450 50 87 53 2A */ rlwimi r7, r4, 10, 12, 21
/* 80035614 00031454 38 80 00 49 */ li r4, 0x49
/* 80035618 00031458 38 60 00 00 */ li r3, 0x0
/* 8003561C 0003145C 50 03 05 BE */ rlwimi r3, r0, 0, 22, 31
/* 80035620 00031460 50 87 C0 0E */ rlwimi r7, r4, 24, 0, 7
/* 80035624 00031464 38 06 FF FF */ addi r0, r6, -0x1
/* 80035628 00031468 90 E8 02 30 */ stw r7, 0x230(r8)
/* 8003562C 0003146C 50 03 53 2A */ rlwimi r3, r0, 10, 12, 21
/* 80035630 00031470 38 00 00 4A */ li r0, 0x4a
/* 80035634 00031474 50 03 C0 0E */ rlwimi r3, r0, 24, 0, 7
/* 80035638 00031478 90 68 02 34 */ stw r3, 0x234(r8)
/* 8003563C 0003147C 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global GXSetTexCopySrc
GXSetTexCopySrc:
/* 80035640 00031480 81 02 86 08 */ lwz r8, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 80035644 00031484 38 E0 00 00 */ li r7, 0x0
/* 80035648 00031488 50 67 05 BE */ rlwimi r7, r3, 0, 22, 31
/* 8003564C 0003148C 38 05 FF FF */ addi r0, r5, -0x1
/* 80035650 00031490 50 87 53 2A */ rlwimi r7, r4, 10, 12, 21
/* 80035654 00031494 38 80 00 49 */ li r4, 0x49
/* 80035658 00031498 38 60 00 00 */ li r3, 0x0
/* 8003565C 0003149C 50 03 05 BE */ rlwimi r3, r0, 0, 22, 31
/* 80035660 000314A0 50 87 C0 0E */ rlwimi r7, r4, 24, 0, 7
/* 80035664 000314A4 38 06 FF FF */ addi r0, r6, -0x1
/* 80035668 000314A8 90 E8 02 40 */ stw r7, 0x240(r8)
/* 8003566C 000314AC 50 03 53 2A */ rlwimi r3, r0, 10, 12, 21
/* 80035670 000314B0 38 00 00 4A */ li r0, 0x4a
/* 80035674 000314B4 50 03 C0 0E */ rlwimi r3, r0, 24, 0, 7
/* 80035678 000314B8 90 68 02 44 */ stw r3, 0x244(r8)
/* 8003567C 000314BC 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global GXSetDispCopyDst
GXSetDispCopyDst:
2022-10-16 16:05:58 +00:00
/* 80035680 000314C0 54 60 0C 3C */ rlwinm r0, r3, 1, 16, 30
2022-10-16 16:31:36 +00:00
/* 80035684 000314C4 80 82 86 08 */ lwz r4, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 80035688 000314C8 7C 00 2E 70 */ srawi r0, r0, 5
/* 8003568C 000314CC 38 60 00 00 */ li r3, 0x0
/* 80035690 000314D0 50 03 05 BE */ rlwimi r3, r0, 0, 22, 31
/* 80035694 000314D4 38 00 00 4D */ li r0, 0x4d
/* 80035698 000314D8 50 03 C0 0E */ rlwimi r3, r0, 24, 0, 7
/* 8003569C 000314DC 90 64 02 38 */ stw r3, 0x238(r4)
/* 800356A0 000314E0 4E 80 00 20 */ blr
/* 800356A4 000314E4 00 00 00 00 */ .4byte 0x00000000
/* 800356A8 000314E8 00 00 00 00 */ .4byte 0x00000000
/* 800356AC 000314EC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global GXSetTexCopyDst
GXSetTexCopyDst:
2022-10-16 16:05:58 +00:00
/* 800356B0 000314F0 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 800356B4 000314F4 7C 08 02 A6 */ mflr r0
2022-10-16 16:31:36 +00:00
/* 800356B8 000314F8 80 E2 86 08 */ lwz r7, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 800356BC 000314FC 2C 05 00 13 */ cmpwi r5, 0x13
/* 800356C0 00031500 90 01 00 34 */ stw r0, 0x34(r1)
/* 800356C4 00031504 38 00 00 00 */ li r0, 0x0
/* 800356C8 00031508 7C 69 1B 78 */ mr r9, r3
/* 800356CC 0003150C 7C 88 23 78 */ mr r8, r4
/* 800356D0 00031510 93 E1 00 2C */ stw r31, 0x2c(r1)
/* 800356D4 00031514 54 BF 07 3E */ clrlwi r31, r5, 28
/* 800356D8 00031518 93 C1 00 28 */ stw r30, 0x28(r1)
/* 800356DC 0003151C 7C DE 33 78 */ mr r30, r6
/* 800356E0 00031520 93 A1 00 24 */ stw r29, 0x24(r1)
/* 800356E4 00031524 93 81 00 20 */ stw r28, 0x20(r1)
/* 800356E8 00031528 98 07 02 50 */ stb r0, 0x250(r7)
/* 800356EC 0003152C 40 82 00 08 */ bne lbl_800356F4
/* 800356F0 00031530 3B E0 00 0B */ li r31, 0xb
.global lbl_800356F4
lbl_800356F4:
/* 800356F4 00031534 28 05 00 03 */ cmplwi r5, 0x3
/* 800356F8 00031538 40 81 00 0C */ ble lbl_80035704
/* 800356FC 0003153C 2C 05 00 26 */ cmpwi r5, 0x26
/* 80035700 00031540 40 82 00 1C */ bne lbl_8003571C
.global lbl_80035704
lbl_80035704:
/* 80035704 00031544 38 00 00 03 */ li r0, 0x3
/* 80035708 00031548 80 67 02 4C */ lwz r3, 0x24c(r7)
/* 8003570C 0003154C 50 03 7B E0 */ rlwimi r3, r0, 15, 15, 16
/* 80035710 00031550 90 67 02 4C */ stw r3, 0x24c(r7)
/* 80035714 00031554 3B A7 02 4C */ addi r29, r7, 0x24c
/* 80035718 00031558 48 00 00 18 */ b lbl_80035730
.global lbl_8003571C
lbl_8003571C:
/* 8003571C 0003155C 38 00 00 02 */ li r0, 0x2
/* 80035720 00031560 80 67 02 4C */ lwz r3, 0x24c(r7)
/* 80035724 00031564 50 03 7B E0 */ rlwimi r3, r0, 15, 15, 16
/* 80035728 00031568 90 67 02 4C */ stw r3, 0x24c(r7)
/* 8003572C 0003156C 3B A7 02 4C */ addi r29, r7, 0x24c
.global lbl_80035730
lbl_80035730:
/* 80035730 00031570 54 A0 E7 FE */ extrwi r0, r5, 1, 27
/* 80035734 00031574 98 07 02 50 */ stb r0, 0x250(r7)
/* 80035738 00031578 7C A3 2B 78 */ mr r3, r5
/* 8003573C 0003157C 7D 05 43 78 */ mr r5, r8
/* 80035740 00031580 80 1D 00 00 */ lwz r0, 0x0(r29)
/* 80035744 00031584 53 E0 07 38 */ rlwimi r0, r31, 0, 28, 28
2022-10-16 16:31:36 +00:00
/* 80035748 00031588 83 82 86 08 */ lwz r28, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 8003574C 0003158C 7D 24 4B 78 */ mr r4, r9
/* 80035750 00031590 90 1D 00 00 */ stw r0, 0x0(r29)
/* 80035754 00031594 38 C1 00 10 */ addi r6, r1, 0x10
/* 80035758 00031598 38 E1 00 0C */ addi r7, r1, 0xc
/* 8003575C 0003159C 39 01 00 08 */ addi r8, r1, 0x8
2022-10-16 16:31:36 +00:00
/* 80035760 000315A0 48 00 0F 91 */ bl __GetImageTileCount
2022-10-16 16:05:58 +00:00
/* 80035764 000315A4 38 00 00 00 */ li r0, 0x0
/* 80035768 000315A8 90 1C 02 48 */ stw r0, 0x248(r28)
/* 8003576C 000315AC 38 00 00 4D */ li r0, 0x4d
/* 80035770 000315B0 38 60 00 00 */ li r3, 0x0
/* 80035774 000315B4 80 A1 00 10 */ lwz r5, 0x10(r1)
/* 80035778 000315B8 80 81 00 08 */ lwz r4, 0x8(r1)
/* 8003577C 000315BC 7C 85 21 D6 */ mullw r4, r5, r4
/* 80035780 000315C0 50 83 05 BE */ rlwimi r3, r4, 0, 22, 31
/* 80035784 000315C4 50 03 C0 0E */ rlwimi r3, r0, 24, 0, 7
/* 80035788 000315C8 90 7C 02 48 */ stw r3, 0x248(r28)
/* 8003578C 000315CC 80 1D 00 00 */ lwz r0, 0x0(r29)
/* 80035790 000315D0 53 C0 4D AC */ rlwimi r0, r30, 9, 22, 22
/* 80035794 000315D4 53 E0 26 76 */ rlwimi r0, r31, 4, 25, 27
/* 80035798 000315D8 90 1D 00 00 */ stw r0, 0x0(r29)
/* 8003579C 000315DC 83 E1 00 2C */ lwz r31, 0x2c(r1)
/* 800357A0 000315E0 83 C1 00 28 */ lwz r30, 0x28(r1)
/* 800357A4 000315E4 83 A1 00 24 */ lwz r29, 0x24(r1)
/* 800357A8 000315E8 83 81 00 20 */ lwz r28, 0x20(r1)
/* 800357AC 000315EC 80 01 00 34 */ lwz r0, 0x34(r1)
/* 800357B0 000315F0 7C 08 03 A6 */ mtlr r0
/* 800357B4 000315F4 38 21 00 30 */ addi r1, r1, 0x30
/* 800357B8 000315F8 4E 80 00 20 */ blr
/* 800357BC 000315FC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global GXSetDispCopyFrame2Field
GXSetDispCopyFrame2Field:
/* 800357C0 00031600 80 82 86 08 */ lwz r4, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 800357C4 00031604 80 04 02 3C */ lwz r0, 0x23c(r4)
/* 800357C8 00031608 50 60 64 A6 */ rlwimi r0, r3, 12, 18, 19
/* 800357CC 0003160C 90 04 02 3C */ stw r0, 0x23c(r4)
/* 800357D0 00031610 80 04 02 4C */ lwz r0, 0x24c(r4)
/* 800357D4 00031614 54 00 05 22 */ rlwinm r0, r0, 0, 20, 17
/* 800357D8 00031618 90 04 02 4C */ stw r0, 0x24c(r4)
/* 800357DC 0003161C 4E 80 00 20 */ blr
2022-10-16 16:31:36 +00:00
.global GXSetCopyClamp
GXSetCopyClamp:
/* 800357E0 00031620 80 82 86 08 */ lwz r4, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 800357E4 00031624 80 04 02 3C */ lwz r0, 0x23c(r4)
/* 800357E8 00031628 50 60 07 FE */ rlwimi r0, r3, 0, 31, 31
/* 800357EC 0003162C 50 60 07 BC */ rlwimi r0, r3, 0, 30, 30
/* 800357F0 00031630 90 04 02 3C */ stw r0, 0x23c(r4)
/* 800357F4 00031634 80 04 02 4C */ lwz r0, 0x24c(r4)
/* 800357F8 00031638 50 60 07 FE */ rlwimi r0, r3, 0, 31, 31
/* 800357FC 0003163C 50 60 07 BC */ rlwimi r0, r3, 0, 30, 30
/* 80035800 00031640 90 04 02 4C */ stw r0, 0x24c(r4)
/* 80035804 00031644 4E 80 00 20 */ blr
/* 80035808 00031648 00 00 00 00 */ .4byte 0x00000000
/* 8003580C 0003164C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global GXSetDispCopyYScale
GXSetDispCopyYScale:
2022-10-16 16:05:58 +00:00
/* 80035810 00031650 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80035814 00031654 7C 08 02 A6 */ mflr r0
2022-10-16 16:31:36 +00:00
/* 80035818 00031658 C0 02 86 30 */ lfs f0, "@2195"@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 8003581C 0003165C 90 01 00 14 */ stw r0, 0x14(r1)
/* 80035820 00031660 EC 20 08 24 */ fdivs f1, f0, f1
2022-10-16 16:31:36 +00:00
/* 80035824 00031664 4B FD 19 F1 */ bl __cvt_fp2unsigned
2022-10-16 16:05:58 +00:00
/* 80035828 00031668 3C 80 CC 01 */ lis r4, 0xCC008000@ha
/* 8003582C 0003166C 38 00 00 61 */ li r0, 0x61
/* 80035830 00031670 98 04 80 00 */ stb r0, 0xCC008000@l(r4)
/* 80035834 00031674 38 C0 00 00 */ li r6, 0x0
/* 80035838 00031678 38 A0 00 4E */ li r5, 0x4e
/* 8003583C 0003167C 54 68 05 FE */ clrlwi r8, r3, 23
/* 80035840 00031680 50 66 05 FE */ rlwimi r6, r3, 0, 23, 31
2022-10-16 16:31:36 +00:00
/* 80035844 00031684 80 E2 86 08 */ lwz r7, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 80035848 00031688 50 A6 C0 0E */ rlwimi r6, r5, 24, 0, 7
/* 8003584C 0003168C 90 C4 80 00 */ stw r6, -0x8000(r4)
/* 80035850 00031690 38 60 00 00 */ li r3, 0x0
/* 80035854 00031694 38 08 FF 7F */ addi r0, r8, -0x81
/* 80035858 00031698 B0 67 00 02 */ sth r3, 0x2(r7)
/* 8003585C 0003169C 20 88 01 00 */ subfic r4, r8, 0x100
/* 80035860 000316A0 38 68 FF 00 */ addi r3, r8, -0x100
/* 80035864 000316A4 28 00 00 7E */ cmplwi r0, 0x7e
/* 80035868 000316A8 7C 83 1B 78 */ or r3, r4, r3
/* 8003586C 000316AC 80 07 02 3C */ lwz r0, 0x23c(r7)
/* 80035870 000316B0 50 60 5D 6A */ rlwimi r0, r3, 11, 21, 21
/* 80035874 000316B4 90 07 02 3C */ stw r0, 0x23c(r7)
/* 80035878 000316B8 80 07 02 34 */ lwz r0, 0x234(r7)
/* 8003587C 000316BC 54 03 B5 BE */ extrwi r3, r0, 10, 12
/* 80035880 000316C0 38 83 00 01 */ addi r4, r3, 0x1
/* 80035884 000316C4 38 04 FF FF */ addi r0, r4, -0x1
/* 80035888 000316C8 54 00 40 2E */ slwi r0, r0, 8
/* 8003588C 000316CC 7C 60 43 96 */ divwu r3, r0, r8
/* 80035890 000316D0 38 63 00 01 */ addi r3, r3, 0x1
/* 80035894 000316D4 41 81 00 2C */ bgt lbl_800358C0
/* 80035898 000316D8 48 00 00 0C */ b lbl_800358A4
/* 8003589C 000316DC 60 00 00 00 */ nop
.global lbl_800358A0
lbl_800358A0:
/* 800358A0 000316E0 55 08 F8 7E */ srwi r8, r8, 1
.global lbl_800358A4
lbl_800358A4:
/* 800358A4 000316E4 55 00 07 FF */ clrlwi. r0, r8, 31
/* 800358A8 000316E8 41 82 FF F8 */ beq lbl_800358A0
/* 800358AC 000316EC 7C 04 43 96 */ divwu r0, r4, r8
/* 800358B0 000316F0 7C 00 41 D6 */ mullw r0, r0, r8
/* 800358B4 000316F4 7C 00 20 51 */ subf. r0, r0, r4
/* 800358B8 000316F8 40 82 00 08 */ bne lbl_800358C0
/* 800358BC 000316FC 38 63 00 01 */ addi r3, r3, 0x1
.global lbl_800358C0
lbl_800358C0:
/* 800358C0 00031700 28 03 04 00 */ cmplwi r3, 0x400
/* 800358C4 00031704 40 81 00 08 */ ble lbl_800358CC
/* 800358C8 00031708 38 60 04 00 */ li r3, 0x400
.global lbl_800358CC
lbl_800358CC:
/* 800358CC 0003170C 80 01 00 14 */ lwz r0, 0x14(r1)
/* 800358D0 00031710 7C 08 03 A6 */ mtlr r0
/* 800358D4 00031714 38 21 00 10 */ addi r1, r1, 0x10
/* 800358D8 00031718 4E 80 00 20 */ blr
/* 800358DC 0003171C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global GXSetCopyClear
GXSetCopyClear:
2022-10-16 16:05:58 +00:00
/* 800358E0 00031720 88 03 00 00 */ lbz r0, 0x0(r3)
/* 800358E4 00031724 39 00 00 00 */ li r8, 0x0
/* 800358E8 00031728 88 C3 00 03 */ lbz r6, 0x3(r3)
/* 800358EC 0003172C 3D 20 CC 01 */ lis r9, 0xCC008000@ha
/* 800358F0 00031730 39 40 00 61 */ li r10, 0x61
/* 800358F4 00031734 50 08 06 3E */ rlwimi r8, r0, 0, 24, 31
/* 800358F8 00031738 99 49 80 00 */ stb r10, 0xCC008000@l(r9)
/* 800358FC 0003173C 38 00 00 4F */ li r0, 0x4f
/* 80035900 00031740 50 C8 44 2E */ rlwimi r8, r6, 8, 16, 23
/* 80035904 00031744 38 A0 00 00 */ li r5, 0x0
/* 80035908 00031748 50 08 C0 0E */ rlwimi r8, r0, 24, 0, 7
/* 8003590C 0003174C 91 09 80 00 */ stw r8, -0x8000(r9)
/* 80035910 00031750 50 85 02 3E */ rlwimi r5, r4, 0, 8, 31
/* 80035914 00031754 38 00 00 51 */ li r0, 0x51
/* 80035918 00031758 89 03 00 02 */ lbz r8, 0x2(r3)
/* 8003591C 0003175C 38 E0 00 00 */ li r7, 0x0
/* 80035920 00031760 88 C3 00 01 */ lbz r6, 0x1(r3)
/* 80035924 00031764 50 05 C0 0E */ rlwimi r5, r0, 24, 0, 7
/* 80035928 00031768 38 80 00 50 */ li r4, 0x50
/* 8003592C 0003176C 51 07 06 3E */ rlwimi r7, r8, 0, 24, 31
/* 80035930 00031770 50 C7 44 2E */ rlwimi r7, r6, 8, 16, 23
/* 80035934 00031774 99 49 80 00 */ stb r10, -0x8000(r9)
/* 80035938 00031778 50 87 C0 0E */ rlwimi r7, r4, 24, 0, 7
2022-10-16 16:31:36 +00:00
/* 8003593C 0003177C 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 80035940 00031780 90 E9 80 00 */ stw r7, -0x8000(r9)
/* 80035944 00031784 38 00 00 00 */ li r0, 0x0
/* 80035948 00031788 99 49 80 00 */ stb r10, -0x8000(r9)
/* 8003594C 0003178C 90 A9 80 00 */ stw r5, -0x8000(r9)
/* 80035950 00031790 B0 03 00 02 */ sth r0, 0x2(r3)
/* 80035954 00031794 4E 80 00 20 */ blr
/* 80035958 00031798 00 00 00 00 */ .4byte 0x00000000
/* 8003595C 0003179C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global GXSetCopyFilter
GXSetCopyFilter:
2022-10-16 16:05:58 +00:00
/* 80035960 000317A0 2C 03 00 00 */ cmpwi r3, 0x0
/* 80035964 000317A4 41 82 00 F8 */ beq lbl_80035A5C
/* 80035968 000317A8 89 04 00 00 */ lbz r8, 0x0(r4)
/* 8003596C 000317AC 38 00 00 00 */ li r0, 0x0
/* 80035970 000317B0 89 44 00 01 */ lbz r10, 0x1(r4)
/* 80035974 000317B4 38 60 00 00 */ li r3, 0x0
/* 80035978 000317B8 51 00 07 3E */ rlwimi r0, r8, 0, 28, 31
/* 8003597C 000317BC 88 E4 00 06 */ lbz r7, 0x6(r4)
/* 80035980 000317C0 51 40 26 36 */ rlwimi r0, r10, 4, 24, 27
/* 80035984 000317C4 89 04 00 0C */ lbz r8, 0xc(r4)
/* 80035988 000317C8 50 E3 07 3E */ rlwimi r3, r7, 0, 28, 31
/* 8003598C 000317CC 38 E0 00 00 */ li r7, 0x0
/* 80035990 000317D0 51 07 07 3E */ rlwimi r7, r8, 0, 28, 31
/* 80035994 000317D4 89 44 00 0D */ lbz r10, 0xd(r4)
/* 80035998 000317D8 89 64 00 07 */ lbz r11, 0x7(r4)
/* 8003599C 000317DC 39 00 00 00 */ li r8, 0x0
/* 800359A0 000317E0 51 47 26 36 */ rlwimi r7, r10, 4, 24, 27
/* 800359A4 000317E4 89 44 00 02 */ lbz r10, 0x2(r4)
/* 800359A8 000317E8 89 24 00 12 */ lbz r9, 0x12(r4)
/* 800359AC 000317EC 51 63 26 36 */ rlwimi r3, r11, 4, 24, 27
/* 800359B0 000317F0 51 40 45 2E */ rlwimi r0, r10, 8, 20, 23
/* 800359B4 000317F4 89 44 00 0E */ lbz r10, 0xe(r4)
/* 800359B8 000317F8 51 28 07 3E */ rlwimi r8, r9, 0, 28, 31
/* 800359BC 000317FC 89 24 00 13 */ lbz r9, 0x13(r4)
/* 800359C0 00031800 51 47 45 2E */ rlwimi r7, r10, 8, 20, 23
/* 800359C4 00031804 89 44 00 03 */ lbz r10, 0x3(r4)
/* 800359C8 00031808 51 28 26 36 */ rlwimi r8, r9, 4, 24, 27
/* 800359CC 0003180C 89 24 00 14 */ lbz r9, 0x14(r4)
/* 800359D0 00031810 51 40 64 26 */ rlwimi r0, r10, 12, 16, 19
/* 800359D4 00031814 89 44 00 0F */ lbz r10, 0xf(r4)
/* 800359D8 00031818 51 28 45 2E */ rlwimi r8, r9, 8, 20, 23
/* 800359DC 0003181C 89 24 00 15 */ lbz r9, 0x15(r4)
/* 800359E0 00031820 51 47 64 26 */ rlwimi r7, r10, 12, 16, 19
/* 800359E4 00031824 89 44 00 04 */ lbz r10, 0x4(r4)
/* 800359E8 00031828 89 64 00 08 */ lbz r11, 0x8(r4)
/* 800359EC 0003182C 51 28 64 26 */ rlwimi r8, r9, 12, 16, 19
/* 800359F0 00031830 51 40 83 1E */ rlwimi r0, r10, 16, 12, 15
/* 800359F4 00031834 89 44 00 10 */ lbz r10, 0x10(r4)
/* 800359F8 00031838 89 24 00 16 */ lbz r9, 0x16(r4)
/* 800359FC 0003183C 51 63 45 2E */ rlwimi r3, r11, 8, 20, 23
/* 80035A00 00031840 89 64 00 09 */ lbz r11, 0x9(r4)
/* 80035A04 00031844 51 47 83 1E */ rlwimi r7, r10, 16, 12, 15
/* 80035A08 00031848 89 44 00 05 */ lbz r10, 0x5(r4)
/* 80035A0C 0003184C 51 28 83 1E */ rlwimi r8, r9, 16, 12, 15
/* 80035A10 00031850 89 24 00 11 */ lbz r9, 0x11(r4)
/* 80035A14 00031854 51 63 64 26 */ rlwimi r3, r11, 12, 16, 19
/* 80035A18 00031858 89 64 00 0A */ lbz r11, 0xa(r4)
/* 80035A1C 0003185C 51 40 A2 16 */ rlwimi r0, r10, 20, 8, 11
/* 80035A20 00031860 89 44 00 0B */ lbz r10, 0xb(r4)
/* 80035A24 00031864 51 27 A2 16 */ rlwimi r7, r9, 20, 8, 11
/* 80035A28 00031868 88 84 00 17 */ lbz r4, 0x17(r4)
/* 80035A2C 0003186C 39 20 00 01 */ li r9, 0x1
/* 80035A30 00031870 51 63 83 1E */ rlwimi r3, r11, 16, 12, 15
/* 80035A34 00031874 51 43 A2 16 */ rlwimi r3, r10, 20, 8, 11
/* 80035A38 00031878 50 88 A2 16 */ rlwimi r8, r4, 20, 8, 11
/* 80035A3C 0003187C 51 20 C0 0E */ rlwimi r0, r9, 24, 0, 7
/* 80035A40 00031880 39 40 00 02 */ li r10, 0x2
/* 80035A44 00031884 39 20 00 03 */ li r9, 0x3
/* 80035A48 00031888 38 80 00 04 */ li r4, 0x4
/* 80035A4C 0003188C 51 43 C0 0E */ rlwimi r3, r10, 24, 0, 7
/* 80035A50 00031890 51 27 C0 0E */ rlwimi r7, r9, 24, 0, 7
/* 80035A54 00031894 50 88 C0 0E */ rlwimi r8, r4, 24, 0, 7
/* 80035A58 00031898 48 00 00 24 */ b lbl_80035A7C
.global lbl_80035A5C
lbl_80035A5C:
/* 80035A5C 0003189C 3D 00 01 66 */ lis r8, 0x166
/* 80035A60 000318A0 3C 60 02 66 */ lis r3, 0x266
/* 80035A64 000318A4 3C E0 03 66 */ lis r7, 0x366
/* 80035A68 000318A8 3C 80 04 66 */ lis r4, 0x466
/* 80035A6C 000318AC 38 08 66 66 */ addi r0, r8, 0x6666
/* 80035A70 000318B0 38 63 66 66 */ addi r3, r3, 0x6666
/* 80035A74 000318B4 38 E7 66 66 */ addi r7, r7, 0x6666
/* 80035A78 000318B8 39 04 66 66 */ addi r8, r4, 0x6666
.global lbl_80035A7C
lbl_80035A7C:
/* 80035A7C 000318BC 3D 20 CC 01 */ lis r9, 0xCC008000@ha
/* 80035A80 000318C0 39 40 00 61 */ li r10, 0x61
/* 80035A84 000318C4 99 49 80 00 */ stb r10, 0xCC008000@l(r9)
/* 80035A88 000318C8 2C 05 00 00 */ cmpwi r5, 0x0
/* 80035A8C 000318CC 38 80 00 53 */ li r4, 0x53
/* 80035A90 000318D0 39 60 00 00 */ li r11, 0x0
/* 80035A94 000318D4 90 09 80 00 */ stw r0, -0x8000(r9)
/* 80035A98 000318D8 38 00 00 54 */ li r0, 0x54
/* 80035A9C 000318DC 39 80 00 00 */ li r12, 0x0
/* 80035AA0 000318E0 50 8B C0 0E */ rlwimi r11, r4, 24, 0, 7
/* 80035AA4 000318E4 99 49 80 00 */ stb r10, -0x8000(r9)
/* 80035AA8 000318E8 50 0C C0 0E */ rlwimi r12, r0, 24, 0, 7
/* 80035AAC 000318EC 90 69 80 00 */ stw r3, -0x8000(r9)
/* 80035AB0 000318F0 99 49 80 00 */ stb r10, -0x8000(r9)
/* 80035AB4 000318F4 90 E9 80 00 */ stw r7, -0x8000(r9)
/* 80035AB8 000318F8 99 49 80 00 */ stb r10, -0x8000(r9)
/* 80035ABC 000318FC 91 09 80 00 */ stw r8, -0x8000(r9)
/* 80035AC0 00031900 41 82 00 40 */ beq lbl_80035B00
/* 80035AC4 00031904 88 86 00 00 */ lbz r4, 0x0(r6)
/* 80035AC8 00031908 88 06 00 04 */ lbz r0, 0x4(r6)
/* 80035ACC 0003190C 50 8B 06 BE */ rlwimi r11, r4, 0, 26, 31
/* 80035AD0 00031910 88 66 00 01 */ lbz r3, 0x1(r6)
/* 80035AD4 00031914 50 0C 06 BE */ rlwimi r12, r0, 0, 26, 31
/* 80035AD8 00031918 88 A6 00 02 */ lbz r5, 0x2(r6)
/* 80035ADC 0003191C 50 6B 35 32 */ rlwimi r11, r3, 6, 20, 25
/* 80035AE0 00031920 88 66 00 05 */ lbz r3, 0x5(r6)
/* 80035AE4 00031924 88 86 00 03 */ lbz r4, 0x3(r6)
/* 80035AE8 00031928 50 AB 63 A6 */ rlwimi r11, r5, 12, 14, 19
/* 80035AEC 0003192C 88 06 00 06 */ lbz r0, 0x6(r6)
/* 80035AF0 00031930 50 6C 35 32 */ rlwimi r12, r3, 6, 20, 25
/* 80035AF4 00031934 50 8B 92 1A */ rlwimi r11, r4, 18, 8, 13
/* 80035AF8 00031938 50 0C 63 A6 */ rlwimi r12, r0, 12, 14, 19
/* 80035AFC 0003193C 48 00 00 20 */ b lbl_80035B1C
.global lbl_80035B00
lbl_80035B00:
/* 80035B00 00031940 38 60 00 15 */ li r3, 0x15
/* 80035B04 00031944 55 6B 00 26 */ clrrwi r11, r11, 12
/* 80035B08 00031948 50 6C 06 BE */ rlwimi r12, r3, 0, 26, 31
/* 80035B0C 0003194C 38 00 00 16 */ li r0, 0x16
/* 80035B10 00031950 50 6B 63 A6 */ rlwimi r11, r3, 12, 14, 19
/* 80035B14 00031954 50 0B 92 1A */ rlwimi r11, r0, 18, 8, 13
/* 80035B18 00031958 55 8C 06 9A */ rlwinm r12, r12, 0, 26, 13
.global lbl_80035B1C
lbl_80035B1C:
/* 80035B1C 0003195C 3C 80 CC 01 */ lis r4, 0xCC008000@ha
/* 80035B20 00031960 38 A0 00 61 */ li r5, 0x61
/* 80035B24 00031964 98 A4 80 00 */ stb r5, 0xCC008000@l(r4)
/* 80035B28 00031968 38 00 00 00 */ li r0, 0x0
2022-10-16 16:31:36 +00:00
/* 80035B2C 0003196C 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 80035B30 00031970 91 64 80 00 */ stw r11, -0x8000(r4)
/* 80035B34 00031974 98 A4 80 00 */ stb r5, -0x8000(r4)
/* 80035B38 00031978 91 84 80 00 */ stw r12, -0x8000(r4)
/* 80035B3C 0003197C B0 03 00 02 */ sth r0, 0x2(r3)
/* 80035B40 00031980 4E 80 00 20 */ blr
/* 80035B44 00031984 00 00 00 00 */ .4byte 0x00000000
/* 80035B48 00031988 00 00 00 00 */ .4byte 0x00000000
/* 80035B4C 0003198C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global GXSetDispCopyGamma
GXSetDispCopyGamma:
/* 80035B50 00031990 80 82 86 08 */ lwz r4, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 80035B54 00031994 80 04 02 3C */ lwz r0, 0x23c(r4)
/* 80035B58 00031998 50 60 3D F0 */ rlwimi r0, r3, 7, 23, 24
/* 80035B5C 0003199C 90 04 02 3C */ stw r0, 0x23c(r4)
/* 80035B60 000319A0 4E 80 00 20 */ blr
/* 80035B64 000319A4 00 00 00 00 */ .4byte 0x00000000
/* 80035B68 000319A8 00 00 00 00 */ .4byte 0x00000000
/* 80035B6C 000319AC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global GXCopyDisp
GXCopyDisp:
2022-10-16 16:05:58 +00:00
/* 80035B70 000319B0 2C 04 00 00 */ cmpwi r4, 0x0
/* 80035B74 000319B4 41 82 00 30 */ beq lbl_80035BA4
2022-10-16 16:31:36 +00:00
/* 80035B78 000319B8 80 E2 86 08 */ lwz r7, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 80035B7C 000319BC 3C A0 CC 01 */ lis r5, 0xCC008000@ha
/* 80035B80 000319C0 38 00 00 61 */ li r0, 0x61
/* 80035B84 000319C4 80 C7 02 28 */ lwz r6, 0x228(r7)
/* 80035B88 000319C8 98 05 80 00 */ stb r0, 0xCC008000@l(r5)
/* 80035B8C 000319CC 60 C6 00 0F */ ori r6, r6, 0xf
/* 80035B90 000319D0 90 C5 80 00 */ stw r6, -0x8000(r5)
/* 80035B94 000319D4 80 C7 02 20 */ lwz r6, 0x220(r7)
/* 80035B98 000319D8 98 05 80 00 */ stb r0, -0x8000(r5)
/* 80035B9C 000319DC 54 C0 00 3A */ clrrwi r0, r6, 2
/* 80035BA0 000319E0 90 05 80 00 */ stw r0, -0x8000(r5)
.global lbl_80035BA4
lbl_80035BA4:
/* 80035BA4 000319E4 2C 04 00 00 */ cmpwi r4, 0x0
/* 80035BA8 000319E8 39 80 00 00 */ li r12, 0x0
/* 80035BAC 000319EC 40 82 00 1C */ bne lbl_80035BC8
2022-10-16 16:31:36 +00:00
/* 80035BB0 000319F0 80 A2 86 08 */ lwz r5, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 80035BB4 000319F4 80 05 02 2C */ lwz r0, 0x22c(r5)
/* 80035BB8 000319F8 39 45 02 2C */ addi r10, r5, 0x22c
/* 80035BBC 000319FC 54 00 07 7E */ clrlwi r0, r0, 29
/* 80035BC0 00031A00 28 00 00 03 */ cmplwi r0, 0x3
/* 80035BC4 00031A04 40 82 00 34 */ bne lbl_80035BF8
.global lbl_80035BC8
lbl_80035BC8:
2022-10-16 16:31:36 +00:00
/* 80035BC8 00031A08 80 A2 86 08 */ lwz r5, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 80035BCC 00031A0C 80 E5 02 2C */ lwz r7, 0x22c(r5)
/* 80035BD0 00031A10 39 45 02 2C */ addi r10, r5, 0x22c
/* 80035BD4 00031A14 54 E0 D7 FE */ extrwi r0, r7, 1, 25
/* 80035BD8 00031A18 28 00 00 01 */ cmplwi r0, 0x1
/* 80035BDC 00031A1C 40 82 00 1C */ bne lbl_80035BF8
/* 80035BE0 00031A20 3C C0 CC 01 */ lis r6, 0xCC008000@ha
/* 80035BE4 00031A24 38 00 00 61 */ li r0, 0x61
/* 80035BE8 00031A28 98 06 80 00 */ stb r0, 0xCC008000@l(r6)
/* 80035BEC 00031A2C 54 E0 06 B0 */ rlwinm r0, r7, 0, 26, 24
/* 80035BF0 00031A30 39 80 00 01 */ li r12, 0x1
/* 80035BF4 00031A34 90 06 80 00 */ stw r0, -0x8000(r6)
.global lbl_80035BF8
lbl_80035BF8:
/* 80035BF8 00031A38 3D 00 CC 01 */ lis r8, 0xCC008000@ha
/* 80035BFC 00031A3C 39 20 00 61 */ li r9, 0x61
/* 80035C00 00031A40 99 28 80 00 */ stb r9, 0xCC008000@l(r8)
/* 80035C04 00031A44 38 C0 00 00 */ li r6, 0x0
2022-10-16 16:31:36 +00:00
/* 80035C08 00031A48 81 62 86 08 */ lwz r11, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 80035C0C 00031A4C 50 66 DA 3E */ rlwimi r6, r3, 27, 8, 31
/* 80035C10 00031A50 38 60 00 4B */ li r3, 0x4b
/* 80035C14 00031A54 38 00 00 52 */ li r0, 0x52
/* 80035C18 00031A58 80 EB 02 30 */ lwz r7, 0x230(r11)
/* 80035C1C 00031A5C 50 66 C0 0E */ rlwimi r6, r3, 24, 0, 7
/* 80035C20 00031A60 90 E8 80 00 */ stw r7, -0x8000(r8)
/* 80035C24 00031A64 2C 04 00 00 */ cmpwi r4, 0x0
/* 80035C28 00031A68 99 28 80 00 */ stb r9, -0x8000(r8)
/* 80035C2C 00031A6C 80 6B 02 34 */ lwz r3, 0x234(r11)
/* 80035C30 00031A70 90 68 80 00 */ stw r3, -0x8000(r8)
/* 80035C34 00031A74 99 28 80 00 */ stb r9, -0x8000(r8)
/* 80035C38 00031A78 80 6B 02 38 */ lwz r3, 0x238(r11)
/* 80035C3C 00031A7C 90 68 80 00 */ stw r3, -0x8000(r8)
/* 80035C40 00031A80 99 28 80 00 */ stb r9, -0x8000(r8)
/* 80035C44 00031A84 90 C8 80 00 */ stw r6, -0x8000(r8)
/* 80035C48 00031A88 80 6B 02 3C */ lwz r3, 0x23c(r11)
/* 80035C4C 00031A8C 50 83 5D 28 */ rlwimi r3, r4, 11, 20, 20
/* 80035C50 00031A90 60 63 40 00 */ ori r3, r3, 0x4000
/* 80035C54 00031A94 50 03 C0 0E */ rlwimi r3, r0, 24, 0, 7
/* 80035C58 00031A98 90 6B 02 3C */ stw r3, 0x23c(r11)
/* 80035C5C 00031A9C 99 28 80 00 */ stb r9, -0x8000(r8)
/* 80035C60 00031AA0 80 0B 02 3C */ lwz r0, 0x23c(r11)
/* 80035C64 00031AA4 90 08 80 00 */ stw r0, -0x8000(r8)
/* 80035C68 00031AA8 41 82 00 1C */ beq lbl_80035C84
/* 80035C6C 00031AAC 99 28 80 00 */ stb r9, -0x8000(r8)
/* 80035C70 00031AB0 80 0B 02 28 */ lwz r0, 0x228(r11)
/* 80035C74 00031AB4 90 08 80 00 */ stw r0, -0x8000(r8)
/* 80035C78 00031AB8 99 28 80 00 */ stb r9, -0x8000(r8)
/* 80035C7C 00031ABC 80 0B 02 20 */ lwz r0, 0x220(r11)
/* 80035C80 00031AC0 90 08 80 00 */ stw r0, -0x8000(r8)
.global lbl_80035C84
lbl_80035C84:
/* 80035C84 00031AC4 2C 0C 00 00 */ cmpwi r12, 0x0
/* 80035C88 00031AC8 41 82 00 18 */ beq lbl_80035CA0
/* 80035C8C 00031ACC 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 80035C90 00031AD0 38 00 00 61 */ li r0, 0x61
/* 80035C94 00031AD4 98 03 80 00 */ stb r0, 0xCC008000@l(r3)
/* 80035C98 00031AD8 80 0A 00 00 */ lwz r0, 0x0(r10)
/* 80035C9C 00031ADC 90 03 80 00 */ stw r0, -0x8000(r3)
.global lbl_80035CA0
lbl_80035CA0:
/* 80035CA0 00031AE0 38 00 00 00 */ li r0, 0x0
/* 80035CA4 00031AE4 B0 05 00 02 */ sth r0, 0x2(r5)
/* 80035CA8 00031AE8 4E 80 00 20 */ blr
/* 80035CAC 00031AEC 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global GXCopyTex
GXCopyTex:
2022-10-16 16:05:58 +00:00
/* 80035CB0 00031AF0 2C 04 00 00 */ cmpwi r4, 0x0
/* 80035CB4 00031AF4 41 82 00 30 */ beq lbl_80035CE4
2022-10-16 16:31:36 +00:00
/* 80035CB8 00031AF8 80 E2 86 08 */ lwz r7, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 80035CBC 00031AFC 3C A0 CC 01 */ lis r5, 0xCC008000@ha
/* 80035CC0 00031B00 38 00 00 61 */ li r0, 0x61
/* 80035CC4 00031B04 80 C7 02 28 */ lwz r6, 0x228(r7)
/* 80035CC8 00031B08 98 05 80 00 */ stb r0, 0xCC008000@l(r5)
/* 80035CCC 00031B0C 60 C6 00 0F */ ori r6, r6, 0xf
/* 80035CD0 00031B10 90 C5 80 00 */ stw r6, -0x8000(r5)
/* 80035CD4 00031B14 80 C7 02 20 */ lwz r6, 0x220(r7)
/* 80035CD8 00031B18 98 05 80 00 */ stb r0, -0x8000(r5)
/* 80035CDC 00031B1C 54 C0 00 3A */ clrrwi r0, r6, 2
/* 80035CE0 00031B20 90 05 80 00 */ stw r0, -0x8000(r5)
.global lbl_80035CE4
lbl_80035CE4:
2022-10-16 16:31:36 +00:00
/* 80035CE4 00031B24 81 22 86 08 */ lwz r9, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 80035CE8 00031B28 39 60 00 00 */ li r11, 0x0
/* 80035CEC 00031B2C 88 09 02 50 */ lbz r0, 0x250(r9)
/* 80035CF0 00031B30 80 C9 02 2C */ lwz r6, 0x22c(r9)
/* 80035CF4 00031B34 2C 00 00 00 */ cmpwi r0, 0x0
/* 80035CF8 00031B38 41 82 00 1C */ beq lbl_80035D14
/* 80035CFC 00031B3C 54 C0 07 7E */ clrlwi r0, r6, 29
/* 80035D00 00031B40 28 00 00 03 */ cmplwi r0, 0x3
/* 80035D04 00031B44 41 82 00 10 */ beq lbl_80035D14
/* 80035D08 00031B48 38 00 00 03 */ li r0, 0x3
/* 80035D0C 00031B4C 39 60 00 01 */ li r11, 0x1
/* 80035D10 00031B50 50 06 07 7E */ rlwimi r6, r0, 0, 29, 31
.global lbl_80035D14
lbl_80035D14:
/* 80035D14 00031B54 2C 04 00 00 */ cmpwi r4, 0x0
/* 80035D18 00031B58 40 82 00 10 */ bne lbl_80035D28
/* 80035D1C 00031B5C 54 C0 07 7E */ clrlwi r0, r6, 29
/* 80035D20 00031B60 28 00 00 03 */ cmplwi r0, 0x3
/* 80035D24 00031B64 40 82 00 18 */ bne lbl_80035D3C
.global lbl_80035D28
lbl_80035D28:
/* 80035D28 00031B68 54 C0 D7 FE */ extrwi r0, r6, 1, 25
/* 80035D2C 00031B6C 28 00 00 01 */ cmplwi r0, 0x1
/* 80035D30 00031B70 40 82 00 0C */ bne lbl_80035D3C
/* 80035D34 00031B74 39 60 00 01 */ li r11, 0x1
/* 80035D38 00031B78 54 C6 06 B0 */ rlwinm r6, r6, 0, 26, 24
.global lbl_80035D3C
lbl_80035D3C:
/* 80035D3C 00031B7C 2C 0B 00 00 */ cmpwi r11, 0x0
/* 80035D40 00031B80 41 82 00 14 */ beq lbl_80035D54
/* 80035D44 00031B84 3C A0 CC 01 */ lis r5, 0xCC008000@ha
/* 80035D48 00031B88 38 00 00 61 */ li r0, 0x61
/* 80035D4C 00031B8C 98 05 80 00 */ stb r0, 0xCC008000@l(r5)
/* 80035D50 00031B90 90 C5 80 00 */ stw r6, -0x8000(r5)
.global lbl_80035D54
lbl_80035D54:
/* 80035D54 00031B94 3C E0 CC 01 */ lis r7, 0xCC008000@ha
/* 80035D58 00031B98 39 00 00 61 */ li r8, 0x61
/* 80035D5C 00031B9C 99 07 80 00 */ stb r8, 0xCC008000@l(r7)
/* 80035D60 00031BA0 38 A0 00 00 */ li r5, 0x0
2022-10-16 16:31:36 +00:00
/* 80035D64 00031BA4 81 42 86 08 */ lwz r10, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 80035D68 00031BA8 50 65 DA 3E */ rlwimi r5, r3, 27, 8, 31
/* 80035D6C 00031BAC 38 60 00 4B */ li r3, 0x4b
/* 80035D70 00031BB0 38 00 00 52 */ li r0, 0x52
/* 80035D74 00031BB4 80 CA 02 40 */ lwz r6, 0x240(r10)
/* 80035D78 00031BB8 50 65 C0 0E */ rlwimi r5, r3, 24, 0, 7
/* 80035D7C 00031BBC 90 C7 80 00 */ stw r6, -0x8000(r7)
/* 80035D80 00031BC0 2C 04 00 00 */ cmpwi r4, 0x0
/* 80035D84 00031BC4 99 07 80 00 */ stb r8, -0x8000(r7)
/* 80035D88 00031BC8 80 6A 02 44 */ lwz r3, 0x244(r10)
/* 80035D8C 00031BCC 90 67 80 00 */ stw r3, -0x8000(r7)
/* 80035D90 00031BD0 99 07 80 00 */ stb r8, -0x8000(r7)
/* 80035D94 00031BD4 80 6A 02 48 */ lwz r3, 0x248(r10)
/* 80035D98 00031BD8 90 67 80 00 */ stw r3, -0x8000(r7)
/* 80035D9C 00031BDC 99 07 80 00 */ stb r8, -0x8000(r7)
/* 80035DA0 00031BE0 90 A7 80 00 */ stw r5, -0x8000(r7)
/* 80035DA4 00031BE4 80 6A 02 4C */ lwz r3, 0x24c(r10)
/* 80035DA8 00031BE8 50 83 5D 28 */ rlwimi r3, r4, 11, 20, 20
/* 80035DAC 00031BEC 54 63 04 A0 */ rlwinm r3, r3, 0, 18, 16
/* 80035DB0 00031BF0 50 03 C0 0E */ rlwimi r3, r0, 24, 0, 7
/* 80035DB4 00031BF4 90 6A 02 4C */ stw r3, 0x24c(r10)
/* 80035DB8 00031BF8 99 07 80 00 */ stb r8, -0x8000(r7)
/* 80035DBC 00031BFC 80 0A 02 4C */ lwz r0, 0x24c(r10)
/* 80035DC0 00031C00 90 07 80 00 */ stw r0, -0x8000(r7)
/* 80035DC4 00031C04 41 82 00 1C */ beq lbl_80035DE0
/* 80035DC8 00031C08 99 07 80 00 */ stb r8, -0x8000(r7)
/* 80035DCC 00031C0C 80 0A 02 28 */ lwz r0, 0x228(r10)
/* 80035DD0 00031C10 90 07 80 00 */ stw r0, -0x8000(r7)
/* 80035DD4 00031C14 99 07 80 00 */ stb r8, -0x8000(r7)
/* 80035DD8 00031C18 80 0A 02 20 */ lwz r0, 0x220(r10)
/* 80035DDC 00031C1C 90 07 80 00 */ stw r0, -0x8000(r7)
.global lbl_80035DE0
lbl_80035DE0:
/* 80035DE0 00031C20 2C 0B 00 00 */ cmpwi r11, 0x0
/* 80035DE4 00031C24 41 82 00 18 */ beq lbl_80035DFC
/* 80035DE8 00031C28 3C 60 CC 01 */ lis r3, 0xCC008000@ha
/* 80035DEC 00031C2C 38 00 00 61 */ li r0, 0x61
/* 80035DF0 00031C30 98 03 80 00 */ stb r0, 0xCC008000@l(r3)
/* 80035DF4 00031C34 80 09 02 2C */ lwz r0, 0x22c(r9)
/* 80035DF8 00031C38 90 03 80 00 */ stw r0, -0x8000(r3)
.global lbl_80035DFC
lbl_80035DFC:
/* 80035DFC 00031C3C 38 00 00 00 */ li r0, 0x0
/* 80035E00 00031C40 B0 09 00 02 */ sth r0, 0x2(r9)
/* 80035E04 00031C44 4E 80 00 20 */ blr
/* 80035E08 00031C48 00 00 00 00 */ .4byte 0x00000000
/* 80035E0C 00031C4C 00 00 00 00 */ .4byte 0x00000000
2022-10-16 16:31:36 +00:00
.global GXClearBoundingBox
GXClearBoundingBox:
2022-10-16 16:05:58 +00:00
/* 80035E10 00031C50 3C A0 CC 01 */ lis r5, 0xCC008000@ha
/* 80035E14 00031C54 38 C0 00 61 */ li r6, 0x61
/* 80035E18 00031C58 98 C5 80 00 */ stb r6, 0xCC008000@l(r5)
/* 80035E1C 00031C5C 3C 60 55 00 */ lis r3, 0x5500
/* 80035E20 00031C60 38 03 03 FF */ addi r0, r3, 0x3ff
/* 80035E24 00031C64 90 05 80 00 */ stw r0, -0x8000(r5)
/* 80035E28 00031C68 3C 60 56 00 */ lis r3, 0x5600
/* 80035E2C 00031C6C 38 83 03 FF */ addi r4, r3, 0x3ff
2022-10-16 16:31:36 +00:00
/* 80035E30 00031C70 80 62 86 08 */ lwz r3, __GXData@sda21(r2)
2022-10-16 16:05:58 +00:00
/* 80035E34 00031C74 98 C5 80 00 */ stb r6, -0x8000(r5)
/* 80035E38 00031C78 38 00 00 00 */ li r0, 0x0
/* 80035E3C 00031C7C 90 85 80 00 */ stw r4, -0x8000(r5)
/* 80035E40 00031C80 B0 03 00 02 */ sth r0, 0x2(r3)
/* 80035E44 00031C84 4E 80 00 20 */ blr
/* 80035E48 00031C88 00 00 00 00 */ .4byte 0x00000000
/* 80035E4C 00031C8C 00 00 00 00 */ .4byte 0x00000000
2022-10-17 08:11:35 +00:00
.include "macros.inc"
.section .data, "wa" # 0x80421040 - 0x80496700 ; 0x000756C0
.global GXNtsc480IntDf
GXNtsc480IntDf:
.4byte 0
.4byte 0x028001E0
.4byte 0x01E00028
.4byte 0x00000280
.4byte 0x01E00000
.4byte 0x00000001
.4byte 0x00000606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060808
.4byte 0x0A0C0A08
.4byte 0x08000000
.global GXMpal480IntDf
GXMpal480IntDf:
.4byte 0x00000008
.4byte 0x028001E0
.4byte 0x01E00028
.4byte 0x00000280
.4byte 0x01E00000
.4byte 0x00000001
.4byte 0x00000606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060808
.4byte 0x0A0C0A08
.4byte 0x08000000
.global GXPal528IntDf
GXPal528IntDf:
.4byte 0x00000004
.4byte 0x02800210
.4byte 0x02100028
.4byte 0x00170280
.4byte 0x02100000
.4byte 0x00000001
.4byte 0x00000606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060808
.4byte 0x0A0C0A08
.4byte 0x08000000
.global GXEurgb60Hz480IntDf
GXEurgb60Hz480IntDf:
.4byte 0x00000014
.4byte 0x028001E0
.4byte 0x01E00028
.4byte 0x00000280
.4byte 0x01E00000
.4byte 0x00000001
.4byte 0x00000606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060606
.4byte 0x06060808
.4byte 0x0A0C0A08
.4byte 0x08000000
.include "macros.inc"
.section .sdata2, "wa" # 0x8055DF80 - 0x805643C0 ; 0x00006440
.global "@2195"
"@2195":
.4byte 0x43800000
.4byte 0