.include "macros.inc"
.section .text, "ax"
.global GDSetVtxDescv
GDSetVtxDescv:
mflr r0
lis r4, "@121"@ha
stw r0, 4(r1)
addi r4, r4, "@121"@l
stwu r1, -0x58(r1)
stmw r15, 0x14(r1)
li r31, 0
li r30, 0
li r29, 0
li r28, 0
li r27, 0
li r26, 1
li r25, 0
li r24, 0
li r23, 0
li r22, 0
li r21, 0
li r20, 0
li r19, 0
li r18, 0
li r17, 0
li r16, 0
li r15, 0
b lbl_800AF3F8
lbl_800AF1EC:
cmplwi r0, 0x19
bgt lbl_800AF3F4
slwi r0, r0, 2
lwzx r0, r4, r0
mtctr r0
bctr
lbl_800AF204:
lwz r28, 4(r3)
b lbl_800AF3F4
lbl_800AF20C:
lwz r0, 4(r3)
rlwinm r5, r27, 0, 0, 0x1e
or r27, r5, r0
b lbl_800AF3F4
lbl_800AF21C:
lwz r0, 4(r3)
rlwinm r5, r27, 0, 0x1f, 0x1d
slwi r0, r0, 1
or r27, r5, r0
b lbl_800AF3F4
lbl_800AF230:
lwz r0, 4(r3)
rlwinm r5, r27, 0, 0x1e, 0x1c
slwi r0, r0, 2
or r27, r5, r0
b lbl_800AF3F4
lbl_800AF244:
lwz r0, 4(r3)
rlwinm r5, r27, 0, 0x1d, 0x1b
slwi r0, r0, 3
or r27, r5, r0
b lbl_800AF3F4
lbl_800AF258:
lwz r0, 4(r3)
rlwinm r5, r27, 0, 0x1c, 0x1a
slwi r0, r0, 4
or r27, r5, r0
b lbl_800AF3F4
lbl_800AF26C:
lwz r0, 4(r3)
rlwinm r5, r27, 0, 0x1b, 0x19
slwi r0, r0, 5
or r27, r5, r0
b lbl_800AF3F4
lbl_800AF280:
lwz r0, 4(r3)
rlwinm r5, r27, 0, 0x1a, 0x18
slwi r0, r0, 6
or r27, r5, r0
b lbl_800AF3F4
lbl_800AF294:
lwz r0, 4(r3)
rlwinm r5, r27, 0, 0x19, 0x17
slwi r0, r0, 7
or r27, r5, r0
b lbl_800AF3F4
lbl_800AF2A8:
lwz r26, 4(r3)
b lbl_800AF3F4
lbl_800AF2B0:
lwz r0, 4(r3)
cmpwi r0, 0
beq lbl_800AF3F4
mr r25, r0
li r31, 1
b lbl_800AF3F4
lbl_800AF2C8:
lwz r0, 4(r3)
cmpwi r0, 0
beq lbl_800AF3F4
mr r25, r0
li r31, 2
b lbl_800AF3F4
lbl_800AF2E0:
lwz r6, 4(r3)
neg r5, r6
addic r0, r5, -1
subfe r0, r0, r5
addi r24, r6, 0
add r30, r30, r0
b lbl_800AF3F4
lbl_800AF2FC:
lwz r6, 4(r3)
neg r5, r6
addic r0, r5, -1
subfe r0, r0, r5
addi r23, r6, 0
add r30, r30, r0
b lbl_800AF3F4
lbl_800AF318:
lwz r6, 4(r3)
neg r5, r6
addic r0, r5, -1
subfe r0, r0, r5
addi r22, r6, 0
add r29, r29, r0
b lbl_800AF3F4
lbl_800AF334:
lwz r6, 4(r3)
neg r5, r6
addic r0, r5, -1
subfe r0, r0, r5
addi r21, r6, 0
add r29, r29, r0
b lbl_800AF3F4
lbl_800AF350:
lwz r6, 4(r3)
neg r5, r6
addic r0, r5, -1
subfe r0, r0, r5
addi r20, r6, 0
add r29, r29, r0
b lbl_800AF3F4
lbl_800AF36C:
lwz r6, 4(r3)
neg r5, r6
addic r0, r5, -1
subfe r0, r0, r5
addi r19, r6, 0
add r29, r29, r0
b lbl_800AF3F4
lbl_800AF388:
lwz r6, 4(r3)
neg r5, r6
addic r0, r5, -1
subfe r0, r0, r5
addi r18, r6, 0
add r29, r29, r0
b lbl_800AF3F4
lbl_800AF3A4:
lwz r6, 4(r3)
neg r5, r6
addic r0, r5, -1
subfe r0, r0, r5
addi r17, r6, 0
add r29, r29, r0
b lbl_800AF3F4
lbl_800AF3C0:
lwz r6, 4(r3)
neg r5, r6
addic r0, r5, -1
subfe r0, r0, r5
addi r16, r6, 0
add r29, r29, r0
b lbl_800AF3F4
lbl_800AF3DC:
lwz r6, 4(r3)
neg r5, r6
addic r0, r5, -1
subfe r0, r0, r5
addi r15, r6, 0
add r29, r29, r0
lbl_800AF3F4:
addi r3, r3, 8
lbl_800AF3F8:
lwz r0, 0(r3)
cmpwi r0, 0xff
bne lbl_800AF1EC
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800AF420
bl GDOverflowed
lbl_800AF420:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 8
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800AF454
bl GDOverflowed
lbl_800AF454:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0x50
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800AF488
bl GDOverflowed
lbl_800AF488:
lwz r4, __GDCurrentDL@sda21(r13)
slwi r0, r27, 1
slwi r5, r26, 9
lwz r3, 8(r4)
or r0, r28, r0
or r5, r5, r0
addi r0, r3, 1
stw r0, 8(r4)
slwi r6, r25, 0xb
slwi r7, r24, 0xd
or r0, r6, r5
slwi r4, r23, 0xf
or r0, r7, r0
or r7, r4, r0
srwi r0, r7, 0x18
stb r0, 0(r3)
rlwinm r6, r7, 0x10, 0x18, 0x1f
rlwinm r5, r7, 0x18, 0x18, 0x1f
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r6, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r7, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800AF528
bl GDOverflowed
lbl_800AF528:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 8
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800AF55C
bl GDOverflowed
lbl_800AF55C:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0x60
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800AF590
bl GDOverflowed
lbl_800AF590:
lwz r4, __GDCurrentDL@sda21(r13)
slwi r0, r21, 2
slwi r5, r20, 4
or r0, r22, r0
lwz r3, 8(r4)
slwi r6, r19, 6
or r0, r5, r0
or r5, r6, r0
addi r0, r3, 1
stw r0, 8(r4)
slwi r7, r18, 8
or r0, r7, r5
slwi r6, r17, 0xa
slwi r4, r16, 0xc
or r0, r6, r0
slwi r5, r15, 0xe
or r0, r4, r0
or r7, r5, r0
srwi r0, r7, 0x18
stb r0, 0(r3)
rlwinm r6, r7, 0x10, 0x18, 0x1f
rlwinm r5, r7, 0x18, 0x18, 0x1f
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r6, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r7, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800AF640
bl GDOverflowed
lbl_800AF640:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0x10
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 2
cmplw r3, r0
ble lbl_800AF674
bl GDOverflowed
lbl_800AF674:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 2
cmplw r3, r0
ble lbl_800AF6BC
bl GDOverflowed
lbl_800AF6BC:
lwz r4, __GDCurrentDL@sda21(r13)
li r6, 0x10
li r5, 8
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r6, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800AF708
bl GDOverflowed
lbl_800AF708:
lwz r4, __GDCurrentDL@sda21(r13)
slwi r0, r31, 2
slwi r5, r29, 4
lwz r3, 8(r4)
or r0, r30, r0
or r7, r5, r0
addi r0, r3, 1
stw r0, 8(r4)
srwi r0, r7, 0x18
rlwinm r6, r7, 0x10, 0x18, 0x1f
stb r0, 0(r3)
rlwinm r5, r7, 0x18, 0x18, 0x1f
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r6, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r7, 0(r3)
lmw r15, 0x14(r1)
lwz r0, 0x5c(r1)
addi r1, r1, 0x58
mtlr r0
blr
.global GDSetVtxAttrFmtv
GDSetVtxAttrFmtv:
mflr r0
lis r5, "@207"@ha
stw r0, 4(r1)
li r0, 1
stwu r1, -0xa0(r1)
stmw r14, 0x58(r1)
li r30, 0
li r31, 0
stw r0, 0x50(r1)
li r0, 4
li r24, 0
stw r0, 0x4c(r1)
li r0, 0
li r23, 1
stw r0, 0x48(r1)
li r0, 4
li r25, 4
stw r0, 0x44(r1)
li r0, 1
li r20, 0
stw r0, 0x40(r1)
li r0, 5
li r21, 1
stw r0, 0x3c(r1)
li r0, 1
li r22, 4
stw r0, 0x38(r1)
li r0, 5
li r14, 0
stw r0, 0x34(r1)
li r0, 1
li r15, 1
stw r0, 0x30(r1)
li r0, 4
li r16, 4
stw r0, 0x2c(r1)
li r0, 0
li r17, 0
stw r0, 0x28(r1)
li r0, 1
li r18, 1
stw r0, 0x24(r1)
li r0, 4
li r19, 4
stw r0, 0x20(r1)
li r0, 0
li r26, 0
stw r0, 0x1c(r1)
li r0, 1
li r27, 1
stw r0, 0x18(r1)
li r0, 4
li r28, 4
stw r3, 0x10(r1)
addi r3, r5, "@207"@l
li r29, 0
stw r0, 0x14(r1)
b lbl_800AF99C
lbl_800AF870:
addi r0, r5, -9
cmplwi r0, 0x10
bgt lbl_800AF998
slwi r0, r0, 2
lwzx r0, r3, r0
mtctr r0
bctr
lbl_800AF88C:
lwz r0, 4(r4)
stw r0, 0x50(r1)
lwz r0, 8(r4)
stw r0, 0x4c(r1)
lbz r0, 0xc(r4)
stw r0, 0x48(r1)
b lbl_800AF998
lbl_800AF8A8:
lwz r5, 4(r4)
lwz r0, 8(r4)
cmpwi r5, 2
stw r0, 0x44(r1)
bne lbl_800AF8C8
li r30, 1
li r31, 1
b lbl_800AF998
lbl_800AF8C8:
addi r30, r5, 0
li r31, 0
b lbl_800AF998
lbl_800AF8D4:
lwz r0, 4(r4)
stw r0, 0x40(r1)
lwz r0, 8(r4)
stw r0, 0x3c(r1)
b lbl_800AF998
lbl_800AF8E8:
lwz r0, 4(r4)
stw r0, 0x38(r1)
lwz r0, 8(r4)
stw r0, 0x34(r1)
b lbl_800AF998
lbl_800AF8FC:
lwz r0, 4(r4)
stw r0, 0x30(r1)
lwz r0, 8(r4)
stw r0, 0x2c(r1)
lbz r0, 0xc(r4)
stw r0, 0x28(r1)
b lbl_800AF998
lbl_800AF918:
lwz r0, 4(r4)
stw r0, 0x24(r1)
lwz r0, 8(r4)
stw r0, 0x20(r1)
lbz r0, 0xc(r4)
stw r0, 0x1c(r1)
b lbl_800AF998
lbl_800AF934:
lwz r0, 4(r4)
lbz r24, 0xc(r4)
stw r0, 0x18(r1)
lwz r0, 8(r4)
stw r0, 0x14(r1)
b lbl_800AF998
lbl_800AF94C:
lwz r23, 4(r4)
lwz r25, 8(r4)
lbz r20, 0xc(r4)
b lbl_800AF998
lbl_800AF95C:
lwz r21, 4(r4)
lwz r22, 8(r4)
lbz r14, 0xc(r4)
b lbl_800AF998
lbl_800AF96C:
lwz r15, 4(r4)
lwz r16, 8(r4)
lbz r17, 0xc(r4)
b lbl_800AF998
lbl_800AF97C:
lwz r18, 4(r4)
lwz r19, 8(r4)
lbz r26, 0xc(r4)
b lbl_800AF998
lbl_800AF98C:
lwz r27, 4(r4)
lwz r28, 8(r4)
lbz r29, 0xc(r4)
lbl_800AF998:
addi r4, r4, 0x10
lbl_800AF99C:
lwz r5, 0(r4)
cmpwi r5, 0xff
bne lbl_800AF870
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800AF9C4
bl GDOverflowed
lbl_800AF9C4:
lwz r4, __GDCurrentDL@sda21(r13)
li r0, 8
lwz r3, 8(r4)
addi r5, r3, 1
stw r5, 8(r4)
stb r0, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800AF9F8
bl GDOverflowed
lbl_800AF9F8:
lwz r3, 0x10(r1)
lwz r4, __GDCurrentDL@sda21(r13)
addi r0, r3, 0x70
lwz r3, 8(r4)
addi r5, r3, 1
stw r5, 8(r4)
stb r0, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800AFA30
bl GDOverflowed
lbl_800AFA30:
lwz r0, 0x4c(r1)
slwi r5, r30, 9
lwz r7, __GDCurrentDL@sda21(r13)
slwi r3, r0, 1
lwz r0, 0x48(r1)
slwi r4, r0, 4
lwz r0, 0x50(r1)
or r0, r0, r3
lwz r3, 8(r7)
or r4, r4, r0
lwz r0, 0x44(r1)
or r5, r5, r4
lwz r4, 0x40(r1)
slwi r0, r0, 0xa
or r5, r0, r5
lwz r0, 0x3c(r1)
slwi r4, r4, 0xd
or r4, r4, r5
lwz r5, 0x38(r1)
slwi r0, r0, 0xe
or r4, r0, r4
lwz r0, 0x34(r1)
slwi r5, r5, 0x11
or r5, r5, r4
lwz r4, 0x30(r1)
slwi r0, r0, 0x12
or r0, r0, r5
lwz r5, 0x2c(r1)
slwi r4, r4, 0x15
or r4, r4, r0
lwz r0, 0x28(r1)
slwi r5, r5, 0x16
addi r6, r3, 1
slwi r0, r0, 0x19
stw r6, 8(r7)
or r4, r5, r4
or r0, r0, r4
slwi r4, r31, 0x1f
oris r0, r0, 0x4000
or r6, r4, r0
srwi r0, r6, 0x18
stb r0, 0(r3)
rlwinm r5, r6, 0x10, 0x18, 0x1f
rlwinm r7, r6, 0x18, 0x18, 0x1f
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r7, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r6, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800AFB38
bl GDOverflowed
lbl_800AFB38:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 8
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800AFB6C
bl GDOverflowed
lbl_800AFB6C:
lwz r3, 0x10(r1)
lwz r4, __GDCurrentDL@sda21(r13)
addi r5, r3, 0x80
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800AFBA4
bl GDOverflowed
lbl_800AFBA4:
lwz r0, 0x20(r1)
slwi r7, r25, 0x13
lwz r6, 0x18(r1)
slwi r3, r0, 1
lwz r0, 0x1c(r1)
lwz r4, __GDCurrentDL@sda21(r13)
slwi r6, r6, 9
slwi r5, r0, 4
lwz r0, 0x24(r1)
or r0, r0, r3
lwz r3, 8(r4)
or r5, r5, r0
lwz r0, 0x14(r1)
or r5, r6, r5
slwi r0, r0, 0xa
or r0, r0, r5
slwi r6, r24, 0xd
or r6, r6, r0
addi r0, r3, 1
stw r0, 8(r4)
slwi r5, r23, 0x12
or r0, r5, r6
slwi r4, r20, 0x16
or r0, r7, r0
or r0, r4, r0
slwi r5, r21, 0x1b
slwi r4, r22, 0x1c
or r0, r5, r0
or r0, r4, r0
oris r0, r0, 0x8000
srwi r4, r0, 0x18
stb r4, 0(r3)
rlwinm r7, r0, 0x10, 0x18, 0x1f
rlwinm r3, r0, 0x18, 0x18, 0x1f
lwz r6, __GDCurrentDL@sda21(r13)
lwz r5, 8(r6)
addi r4, r5, 1
stw r4, 8(r6)
stb r7, 0(r5)
lwz r5, __GDCurrentDL@sda21(r13)
lwz r4, 8(r5)
addi r6, r4, 1
stw r6, 8(r5)
stb r3, 0(r4)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r5, r3, 1
stw r5, 8(r4)
stb r0, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800AFC84
bl GDOverflowed
lbl_800AFC84:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 8
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800AFCB8
bl GDOverflowed
lbl_800AFCB8:
lwz r4, 0x10(r1)
lwz r3, __GDCurrentDL@sda21(r13)
addi r5, r4, 0x90
lwz r4, 8(r3)
addi r0, r4, 1
stw r0, 8(r3)
stb r5, 0(r4)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800AFCF0
bl GDOverflowed
lbl_800AFCF0:
slwi r0, r15, 5
lwz r3, __GDCurrentDL@sda21(r13)
slwi r4, r16, 6
or r0, r14, r0
lwz r5, 8(r3)
or r0, r4, r0
slwi r6, r17, 9
or r0, r6, r0
slwi r4, r18, 0xe
or r4, r4, r0
addi r0, r5, 1
stw r0, 8(r3)
slwi r6, r19, 0xf
or r0, r6, r4
slwi r7, r26, 0x12
slwi r3, r27, 0x17
or r0, r7, r0
or r0, r3, r0
slwi r4, r28, 0x18
slwi r3, r29, 0x1b
or r0, r4, r0
or r0, r3, r0
srwi r3, r0, 0x18
stb r3, 0(r5)
rlwinm r7, r0, 0x10, 0x18, 0x1f
rlwinm r6, r0, 0x18, 0x18, 0x1f
lwz r5, __GDCurrentDL@sda21(r13)
lwz r4, 8(r5)
addi r3, r4, 1
stw r3, 8(r5)
stb r7, 0(r4)
lwz r5, __GDCurrentDL@sda21(r13)
lwz r4, 8(r5)
addi r3, r4, 1
stw r3, 8(r5)
stb r6, 0(r4)
lwz r5, __GDCurrentDL@sda21(r13)
lwz r4, 8(r5)
addi r3, r4, 1
stw r3, 8(r5)
stb r0, 0(r4)
lmw r14, 0x58(r1)
lwz r0, 0xa4(r1)
addi r1, r1, 0xa0
mtlr r0
blr
.global GDSetArray
GDSetArray:
mflr r0
cmpwi r3, 0x19
stw r0, 4(r1)
stwu r1, -0x28(r1)
stw r31, 0x24(r1)
stw r30, 0x20(r1)
addi r30, r5, 0
stw r29, 0x1c(r1)
addi r29, r4, 0
bne lbl_800AFDD8
li r31, 1
b lbl_800AFDDC
lbl_800AFDD8:
addi r31, r3, -9
lbl_800AFDDC:
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800AFDF8
bl GDOverflowed
lbl_800AFDF8:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 8
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800AFE2C
bl GDOverflowed
lbl_800AFE2C:
lwz r4, __GDCurrentDL@sda21(r13)
addi r5, r31, 0xa0
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800AFE60
bl GDOverflowed
lbl_800AFE60:
lwz r4, __GDCurrentDL@sda21(r13)
addis r8, r29, 0x8000
srwi r7, r8, 0x18
lwz r3, 8(r4)
rlwinm r6, r8, 0x10, 0x18, 0x1f
rlwinm r5, r8, 0x18, 0x18, 0x1f
addi r0, r3, 1
stw r0, 8(r4)
stb r7, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r6, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r8, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800AFEDC
bl GDOverflowed
lbl_800AFEDC:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 8
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800AFF10
bl GDOverflowed
lbl_800AFF10:
lwz r4, __GDCurrentDL@sda21(r13)
addi r5, r31, 0xb0
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800AFF44
bl GDOverflowed
lbl_800AFF44:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r30, 0(r3)
lwz r0, 0x2c(r1)
lwz r31, 0x24(r1)
lwz r30, 0x20(r1)
lwz r29, 0x1c(r1)
addi r1, r1, 0x28
mtlr r0
blr
.global GDSetArrayRaw
GDSetArrayRaw:
mflr r0
cmpwi r3, 0x19
stw r0, 4(r1)
stwu r1, -0x28(r1)
stw r31, 0x24(r1)
stw r30, 0x20(r1)
addi r30, r5, 0
stw r29, 0x1c(r1)
addi r29, r4, 0
bne lbl_800AFFE4
li r31, 1
b lbl_800AFFE8
lbl_800AFFE4:
addi r31, r3, -9
lbl_800AFFE8:
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800B0004
bl GDOverflowed
lbl_800B0004:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 8
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800B0038
bl GDOverflowed
lbl_800B0038:
lwz r4, __GDCurrentDL@sda21(r13)
addi r5, r31, 0xa0
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800B006C
bl GDOverflowed
lbl_800B006C:
lwz r4, __GDCurrentDL@sda21(r13)
srwi r7, r29, 0x18
rlwinm r6, r29, 0x10, 0x18, 0x1f
lwz r3, 8(r4)
rlwinm r5, r29, 0x18, 0x18, 0x1f
addi r0, r3, 1
stw r0, 8(r4)
stb r7, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r6, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r29, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800B00E4
bl GDOverflowed
lbl_800B00E4:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 8
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800B0118
bl GDOverflowed
lbl_800B0118:
lwz r4, __GDCurrentDL@sda21(r13)
addi r5, r31, 0xb0
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800B014C
bl GDOverflowed
lbl_800B014C:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r30, 0(r3)
lwz r0, 0x2c(r1)
lwz r31, 0x24(r1)
lwz r30, 0x20(r1)
lwz r29, 0x1c(r1)
addi r1, r1, 0x28
mtlr r0
blr
.global GDSetCullMode
GDSetCullMode:
mflr r0
stw r0, 4(r1)
stwu r1, -0x18(r1)
stw r31, 0x14(r1)
mr r31, r3
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800B01EC
bl GDOverflowed
lbl_800B01EC:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0x61
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800B0220
bl GDOverflowed
lbl_800B0220:
lwz r5, __GDCurrentDL@sda21(r13)
li r8, 0xfe
li r7, 0
lwz r4, 8(r5)
li r6, 0xc0
addi r3, r13, cm2hw$400@sda21
addi r0, r4, 1
stw r0, 8(r5)
stb r8, 0(r4)
lwz r5, __GDCurrentDL@sda21(r13)
lwz r4, 8(r5)
addi r0, r4, 1
stw r0, 8(r5)
stb r7, 0(r4)
lwz r5, __GDCurrentDL@sda21(r13)
lwz r4, 8(r5)
addi r0, r4, 1
stw r0, 8(r5)
stb r6, 0(r4)
lwz r5, __GDCurrentDL@sda21(r13)
lwz r4, 8(r5)
addi r0, r4, 1
stw r0, 8(r5)
stb r7, 0(r4)
lwz r5, __GDCurrentDL@sda21(r13)
lbzx r4, r3, r31
lwz r3, 8(r5)
lwz r0, 0xc(r5)
slwi r31, r4, 0xe
addi r3, r3, 1
cmplw r3, r0
ble lbl_800B02A4
bl GDOverflowed
lbl_800B02A4:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0x61
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800B02D8
bl GDOverflowed
lbl_800B02D8:
lwz r4, __GDCurrentDL@sda21(r13)
srwi r7, r31, 0x18
rlwinm r6, r31, 0x10, 0x18, 0x1f
lwz r3, 8(r4)
rlwinm r5, r31, 0x18, 0x18, 0x1f
addi r0, r3, 1
stw r0, 8(r4)
stb r7, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r6, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r31, 0(r3)
lwz r0, 0x1c(r1)
lwz r31, 0x14(r1)
addi r1, r1, 0x18
mtlr r0
blr
.global GDSetGenMode2
GDSetGenMode2:
mflr r0
stw r0, 4(r1)
stwu r1, -0x28(r1)
stmw r27, 0x14(r1)
addi r29, r3, 0
addi r27, r4, 0
mr r30, r5
addi r28, r6, 0
addi r31, r7, 0
lwz r8, __GDCurrentDL@sda21(r13)
lwz r3, 8(r8)
lwz r0, 0xc(r8)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800B0388
bl GDOverflowed
lbl_800B0388:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0x61
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800B03BC
bl GDOverflowed
lbl_800B03BC:
lwz r5, __GDCurrentDL@sda21(r13)
clrlwi r3, r30, 0x18
addi r3, r3, -1
lwz r4, 8(r5)
li r10, 7
clrlwi r29, r29, 0x18
addi r0, r4, 1
stw r0, 8(r5)
li r0, 0xfe
slwi r3, r3, 0xa
stb r0, 0(r4)
rlwinm r0, r27, 4, 0x14, 0x1b
or r0, r29, r0
lwz r7, __GDCurrentDL@sda21(r13)
li r9, 0xfc
li r8, 0x3f
lwz r6, 8(r7)
addi r5, r13, cm2hw$515@sda21
clrlwi r30, r27, 0x18
addi r4, r6, 1
stw r4, 8(r7)
or r4, r3, r0
stb r10, 0(r6)
rlwinm r6, r28, 0x10, 8, 0xf
lwz r7, __GDCurrentDL@sda21(r13)
lwz r3, 8(r7)
addi r0, r3, 1
stw r0, 8(r7)
stb r9, 0(r3)
lwz r7, __GDCurrentDL@sda21(r13)
lwz r3, 8(r7)
addi r0, r3, 1
stw r0, 8(r7)
stb r8, 0(r3)
lwz r7, __GDCurrentDL@sda21(r13)
lbzx r5, r5, r31
lwz r3, 8(r7)
lwz r0, 0xc(r7)
slwi r5, r5, 0xe
addi r3, r3, 1
cmplw r3, r0
or r0, r5, r4
or r31, r6, r0
ble lbl_800B0470
bl GDOverflowed
lbl_800B0470:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0x61
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800B04A4
bl GDOverflowed
lbl_800B04A4:
lwz r4, __GDCurrentDL@sda21(r13)
srwi r7, r31, 0x18
rlwinm r6, r31, 0x10, 0x18, 0x1f
lwz r3, 8(r4)
rlwinm r5, r31, 0x18, 0x18, 0x1f
addi r0, r3, 1
stw r0, 8(r4)
stb r7, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r6, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r31, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800B051C
bl GDOverflowed
lbl_800B051C:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0x10
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 2
cmplw r3, r0
ble lbl_800B0550
bl GDOverflowed
lbl_800B0550:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 2
cmplw r3, r0
ble lbl_800B0598
bl GDOverflowed
lbl_800B0598:
lwz r4, __GDCurrentDL@sda21(r13)
li r6, 0x10
li r5, 9
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r6, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800B05E4
bl GDOverflowed
lbl_800B05E4:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r30, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 1
cmplw r3, r0
ble lbl_800B0654
bl GDOverflowed
lbl_800B0654:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0x10
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 2
cmplw r3, r0
ble lbl_800B0688
bl GDOverflowed
lbl_800B0688:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 2
cmplw r3, r0
ble lbl_800B06D0
bl GDOverflowed
lbl_800B06D0:
lwz r4, __GDCurrentDL@sda21(r13)
li r6, 0x10
li r5, 0x3f
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r6, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
lwz r0, 0xc(r4)
addi r3, r3, 4
cmplw r3, r0
ble lbl_800B071C
bl GDOverflowed
lbl_800B071C:
lwz r4, __GDCurrentDL@sda21(r13)
li r5, 0
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r5, 0(r3)
lwz r4, __GDCurrentDL@sda21(r13)
lwz r3, 8(r4)
addi r0, r3, 1
stw r0, 8(r4)
stb r29, 0(r3)
lwz r0, 0x2c(r1)
lmw r27, 0x14(r1)
addi r1, r1, 0x28
mtlr r0
blr
.section .data, "wa"
.balign 8
"@121":
.4byte lbl_800AF204
.4byte lbl_800AF20C
.4byte lbl_800AF21C
.4byte lbl_800AF230
.4byte lbl_800AF244
.4byte lbl_800AF258
.4byte lbl_800AF26C
.4byte lbl_800AF280
.4byte lbl_800AF294
.4byte lbl_800AF2A8
.4byte lbl_800AF2B0
.4byte lbl_800AF2E0
.4byte lbl_800AF2FC
.4byte lbl_800AF318
.4byte lbl_800AF334
.4byte lbl_800AF350
.4byte lbl_800AF36C
.4byte lbl_800AF388
.4byte lbl_800AF3A4
.4byte lbl_800AF3C0
.4byte lbl_800AF3DC
.4byte lbl_800AF3F4
.4byte lbl_800AF3F4
.4byte lbl_800AF3F4
.4byte lbl_800AF3F4
.4byte lbl_800AF2C8
"@207":
.4byte lbl_800AF88C
.4byte lbl_800AF8A8
.4byte lbl_800AF8D4
.4byte lbl_800AF8E8
.4byte lbl_800AF8FC
.4byte lbl_800AF918
.4byte lbl_800AF934
.4byte lbl_800AF94C
.4byte lbl_800AF95C
.4byte lbl_800AF96C
.4byte lbl_800AF97C
.4byte lbl_800AF98C
.4byte lbl_800AF998
.4byte lbl_800AF998
.4byte lbl_800AF998
.4byte lbl_800AF998
.4byte lbl_800AF8A8
.section .sdata, "wa"
cm2hw$400:
.4byte 0x00020103
cm2hw$515:
.4byte 0x00020103
.4byte 0
.4byte 0