Yet more assorted matches (#278)

* Yet more assorted matches

Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
This commit is contained in:
Tyler McGavran
2022-11-29 20:03:40 -05:00
committed by GitHub
parent a753895359
commit eeab33814d
31 changed files with 737 additions and 2065 deletions
+172 -227
View File
@@ -580,85 +580,76 @@ void func_802A8F14(Gfx *arg0, u8 arg1, u8 arg2) {
Gfx D_802B8D58[] = {gsDPTileSync()};
#ifdef MIPS_TO_C
//generated by mips_to_c commit bd0364fa19633bd6201f8007e2d0a7ed87825909
static Gfx D_802B8D58; /* unable to generate initializer */
void func_802A8F80(s32 arg0, s32 arg1, s8 arg2) {
s32 sp58;
//generated by m2c commit 9841ff34ca242f5f14b2eab2b54a7a65ac47d80f
void func_802A8F80(Gfx *displayList, s32 arg1, s8 arg2) {
u32 sp58;
s32 sp48;
s32 sp44;
s32 sp40;
s32 temp_a1;
s32 temp_t5;
s32 temp_t8;
s32 temp_t9;
s32 var_v0;
s32 var_v1;
u8 temp_a0;
u8 temp_a0_2;
s32 phi_v1;
s32 phi_v0;
sp58.unk0 = D_802B8D58.unk0;
sp58.unk4 = D_802B8D58.unk4;
phi_v0 = 0;
phi_v0 = 0;
sp58.unk0 = D_802B8D58->words.w0;
var_v0 = 0;
sp58.unk4 = (u32) D_802B8D58->words.w1;
switch (arg2) {
case 26:
sp44 = 0x20;
var_v1 = 0x00000020;
sp44 = 0x00000020;
sp40 = 0;
phi_v1 = 0x20;
block_9:
sp48 = phi_v1;
sp48 = var_v1;
break;
case 44:
sp44 = 0x20;
var_v1 = 0x00000020;
sp44 = 0x00000020;
sp40 = 0;
phi_v1 = 0x20;
phi_v0 = 0x100;
var_v0 = 0x100;
goto block_9;
case 27:
sp44 = 0x20;
var_v1 = 0x00000040;
sp44 = 0x00000020;
sp40 = 0;
phi_v1 = 0x40;
goto block_9;
case 28:
sp44 = 0x40;
var_v1 = 0x00000020;
sp44 = 0x00000040;
sp40 = 0;
phi_v1 = 0x20;
goto block_9;
case 29:
sp44 = 0x20;
var_v1 = 0x00000020;
sp44 = 0x00000020;
sp40 = 3;
phi_v1 = 0x20;
goto block_9;
case 30:
sp44 = 0x20;
var_v1 = 0x00000040;
sp44 = 0x00000020;
sp40 = 3;
phi_v1 = 0x40;
goto block_9;
case 31:
sp44 = 0x40;
var_v1 = 0x00000020;
sp44 = 0x00000040;
sp40 = 3;
phi_v1 = 0x20;
goto block_9;
}
temp_a1 = D_802BA274;
temp_a0 = *(temp_a1 + arg1);
temp_t9 = temp_a1 + 1;
temp_a0 = *(D_802BA274 + arg1);
temp_t9 = D_802BA274 + 1;
D_802BA274 = temp_t9;
temp_a0_2 = *(temp_t9 + arg1);
D_802BA274 = temp_t9 + 1;
*(arg0 + (D_802BA270 * 8)) = sp58;
(arg0 + (D_802BA270 * 8))->unk4 = sp5C;
displayList[D_802BA270].words.w0 = sp58;
displayList[D_802BA270].words.w1 = sp5C;
D_802BA270 += 1;
*(arg0 + (D_802BA270 * 8)) = (sp40 << 0x15) | 0xF5000000 | 0x100000 | ((((sp48 * 2) + 7) >> 3) << 9) | phi_v0;
(arg0 + (D_802BA270 * 8))->unk4 = ((temp_a0_2 & 0xF) << 0x12) | (((temp_a0_2 & 0xF0) >> 4) << 0xE) | ((temp_a0 & 0xF) << 8) | (((temp_a0 & 0xF0) >> 4) * 0x10);
displayList[D_802BA270].words.w0 = (sp40 << 0x15) | 0xF5000000 | 0x100000 | (((s32) ((sp48 * 2) + 7) >> 3) << 9) | var_v0;
displayList[D_802BA270].words.w1 = ((temp_a0_2 & 0xF) << 0x12) | (((u32) (temp_a0_2 & 0xF0) >> 4) << 0xE) | ((temp_a0 & 0xF) << 8) | (((u32) (temp_a0 & 0xF0) >> 4) * 0x10);
temp_t5 = D_802BA270 + 1;
temp_t8 = temp_t5 * 8;
D_802BA270 = temp_t5;
*(arg0 + temp_t8) = 0xF2000000;
(arg0 + (D_802BA270 * 8))->unk4 = ((sp48 - 1) << 0xE) | ((sp44 - 1) * 4);
displayList[temp_t5].words.w0 = 0xF2000000;
displayList[D_802BA270].words.w1 = ((sp48 - 1) << 0xE) | ((sp44 - 1) * 4);
D_802BA270 += 1;
}
#else
@@ -669,111 +660,106 @@ Gfx D_802B8D60[] = { gsDPTileSync() };
Gfx D_802B8D68[] = { gsDPLoadSync() };
#ifdef MIPS_TO_C
//generated by mips_to_c commit bd0364fa19633bd6201f8007e2d0a7ed87825909
static Gfx D_802B8D60; /* unable to generate initializer */
static Gfx D_802B8D68; /* unable to generate initializer */
void func_802A91E4(s32 arg0, s32 arg1, s8 arg2) {
s32 sp48;
s32 sp40;
//generated by m2c commit 9841ff34ca242f5f14b2eab2b54a7a65ac47d80f
void func_802A91E4(Gfx *displayList, s32 arg1, s8 arg2) {
u32 sp48;
u32 sp40;
s32 sp2C;
s32 sp28;
s32 sp24;
s32 temp_t1;
s32 temp_t6;
s32 temp_t6_2;
s32 temp_t8;
s32 temp_t9;
s32 temp_t9_2;
s32 temp_v1;
s32 var_v0;
u32 temp_t1;
u32 temp_t2;
u32 temp_t6_3;
u32 var_a2;
u32 var_v0_2;
u32 var_v1;
u8 temp_a2;
u8 temp_a3;
s32 phi_v0;
u32 phi_v0_2;
u32 phi_a2;
u32 phi_v1;
sp48.unk0 = D_802B8D60.unk0;
sp48.unk4 = D_802B8D60.unk4;
sp40.unk0 = D_802B8D68.unk0;
sp40.unk4 = D_802B8D68.unk4;
sp48.unk0 = D_802B8D60->words.w0;
sp48.unk4 = (u32) D_802B8D60->words.w1;
sp40.unk0 = D_802B8D68->words.w0;
sp40.unk4 = (u32) D_802B8D68->words.w1;
switch (arg2) {
case 32:
sp28 = 0x20;
var_v0 = 0x00000020;
sp28 = 0x00000020;
sp24 = 0;
phi_v0 = 0x20;
block_8:
sp2C = phi_v0;
sp2C = var_v0;
break;
case 33:
sp28 = 0x20;
var_v0 = 0x00000040;
sp28 = 0x00000020;
sp24 = 0;
phi_v0 = 0x40;
goto block_8;
case 34:
sp28 = 0x40;
var_v0 = 0x00000020;
sp28 = 0x00000040;
sp24 = 0;
phi_v0 = 0x20;
goto block_8;
case 35:
sp28 = 0x20;
var_v0 = 0x00000020;
sp28 = 0x00000020;
sp24 = 3;
phi_v0 = 0x20;
goto block_8;
case 36:
sp28 = 0x20;
var_v0 = 0x00000040;
sp28 = 0x00000020;
sp24 = 3;
phi_v0 = 0x40;
goto block_8;
case 37:
sp28 = 0x40;
var_v0 = 0x00000020;
sp28 = 0x00000040;
sp24 = 3;
phi_v0 = 0x20;
goto block_8;
}
temp_v1 = D_802BA274;
temp_a2 = *(arg1 + temp_v1);
temp_t9 = temp_v1 + 1;
temp_a2 = *(arg1 + D_802BA274);
temp_t9 = D_802BA274 + 1;
D_802BA274 = temp_t9;
temp_t8 = temp_t9 + 1;
D_802BA274 = temp_t8;
temp_a3 = *(temp_t8 + arg1);
D_802BA274 = temp_t8 + 1;
temp_t6 = sp24 << 0x15;
*(arg0 + (D_802BA270 * 8)) = temp_t6 | 0xFD000000 | 0x100000;
(arg0 + (D_802BA270 * 8))->unk4 = (temp_a2 << 0xB) + 0x5000000;
displayList[D_802BA270].words.w0 = temp_t6 | 0xFD000000 | 0x100000;
displayList[D_802BA270].words.w1 = (temp_a2 << 0xB) + 0x05000000;
temp_t9_2 = D_802BA270 + 1;
D_802BA270 = temp_t9_2;
*(arg0 + (temp_t9_2 * 8)) = sp48;
(arg0 + (D_802BA270 * 8))->unk4 = sp4C;
displayList[temp_t9_2].words.w0 = sp48;
var_v1 = 0x7FF;
displayList[D_802BA270].words.w1 = sp4C;
D_802BA270 += 1;
*(arg0 + (D_802BA270 * 8)) = temp_t6 | 0xF5000000 | 0x100000 | (temp_a3 & 0xF);
temp_t1 = ((temp_a3 & 0xF0) >> 4) << 0x18;
(arg0 + (D_802BA270 * 8))->unk4 = temp_t1;
displayList[D_802BA270].words.w0 = temp_t6 | 0xF5000000 | 0x100000 | (temp_a3 & 0xF);
temp_t1 = ((u32) (temp_a3 & 0xF0) >> 4) << 0x18;
displayList[D_802BA270].words.w1 = temp_t1;
temp_t6_2 = D_802BA270 + 1;
D_802BA270 = temp_t6_2;
*(arg0 + (temp_t6_2 * 8)) = sp40;
(arg0 + (D_802BA270 * 8))->unk4 = sp44;
temp_t6_3 = (sp2C * 2) >> 3;
displayList[temp_t6_2].words.w0 = sp40;
displayList[D_802BA270].words.w1 = sp44;
temp_t6_3 = (u32) (sp2C * 2) >> 3;
D_802BA270 += 1;
temp_t2 = (sp2C * sp28) - 1;
phi_v1 = 0x7FF;
if (temp_t2 < 0x7FF) {
phi_v1 = temp_t2;
if (temp_t2 < 0x7FFU) {
var_v1 = temp_t2;
}
if (temp_t6_3 == 0) {
phi_v0_2 = 1;
var_v0_2 = 1;
} else {
phi_v0_2 = temp_t6_3;
var_v0_2 = temp_t6_3;
}
phi_a2 = temp_t6_3;
var_a2 = temp_t6_3;
if (temp_t6_3 == 0) {
phi_a2 = 1;
var_a2 = 1;
}
*(arg0 + (D_802BA270 * 8)) = 0xF3000000;
(arg0 + (D_802BA270 * 8))->unk4 = ((phi_v0_2 + 0x7FF) / phi_a2) | temp_t1 | (phi_v1 << 0xC);
displayList[D_802BA270].words.w0 = 0xF3000000;
displayList[D_802BA270].words.w1 = ((u32) (var_v0_2 + 0x7FF) / var_a2) | temp_t1 | (var_v1 << 0xC);
D_802BA270 += 1;
}
#else
@@ -796,220 +782,183 @@ void func_802A9544(Gfx *arg0, u8 arg1, u8 arg2) {
}
#ifdef MIPS_TO_C
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
extern s32 D_802BA270;
extern s32 D_802BA274;
void func_802A95B0(s32 arg0, s32 arg1, ? arg2) {
//generated by m2c commit 9841ff34ca242f5f14b2eab2b54a7a65ac47d80f
void func_802A95B0(Gfx *displayList, u8 *arg1, s32 arg2) {
s32 temp_t5;
s32 temp_t7;
s32 temp_t7_2;
s32 temp_v1;
u8 temp_v0;
temp_v1 = D_802BA274;
temp_t7 = temp_v1 + 1;
temp_v0 = *(temp_v1 + arg1);
temp_t7 = D_802BA274 + 1;
temp_v0 = arg1[D_802BA274];
D_802BA274 = temp_t7;
temp_t5 = temp_t7 + 1;
D_802BA274 = temp_t5;
temp_t7_2 = temp_t5 + 1;
D_802BA274 = temp_t7_2;
D_802BA274 = temp_t7_2 + 1;
*(arg0 + (D_802BA270 * 8)) = ((*(temp_t7_2 + arg1) & 0x3F) << 0x11) | 0x4000000 | (((*(temp_t5 + arg1) & 0x3F) * 0x410) - 1);
(arg0 + (D_802BA270 * 8))->unk4 = (((*(temp_t7 + arg1) << 8) | temp_v0) * 0x10) + 0x4000000;
D_802BA270 = D_802BA270 + 1;
displayList[D_802BA270].words.w0 = ((arg1[temp_t7_2] & 0x3F) << 0x11) | 0x04000000 | (((arg1[temp_t5] & 0x3F) * 0x410) - 1);
displayList[D_802BA270].words.w1 = (((arg1[temp_t7] << 8) | temp_v0) * 0x10) + 0x04000000;
D_802BA270 += 1;
}
#else
GLOBAL_ASM("asm/non_matchings/memory/func_802A95B0.s")
#endif
#ifdef MIPS_TO_C
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
extern s32 D_802BA270;
extern s32 D_802BA274;
void func_802A9674(s32 arg0, s32 arg1, s8 arg2) {
//generated by m2c commit 9841ff34ca242f5f14b2eab2b54a7a65ac47d80f
void func_802A9674(Gfx *displayList, u8 *arg1, s8 arg2) {
s32 temp_t9;
s32 temp_v1;
u8 temp_v0;
temp_v1 = D_802BA274;
temp_t9 = temp_v1 + 1;
temp_v0 = *(temp_v1 + arg1);
temp_t9 = D_802BA274 + 1;
temp_v0 = arg1[D_802BA274];
D_802BA274 = temp_t9;
D_802BA274 = temp_t9 + 1;
*(arg0 + (D_802BA270 * 8)) = (((arg2 - 0x32) * 0x410) - 1) | 0x4000000;
(arg0 + (D_802BA270 * 8))->unk4 = (((*(temp_t9 + arg1) << 8) | temp_v0) * 0x10) + 0x4000000;
D_802BA270 = D_802BA270 + 1;
displayList[D_802BA270].words.w0 = (((arg2 - 0x32) * 0x410) - 1) | 0x04000000;
displayList[D_802BA270].words.w1 = (((arg1[temp_t9] << 8) | temp_v0) * 0x10) + 0x04000000;
D_802BA270 += 1;
}
#else
GLOBAL_ASM("asm/non_matchings/memory/func_802A9674.s")
#endif
#ifdef MIPS_TO_C
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
extern s32 D_802BA270;
extern s32 D_802BA274;
void func_802A9714(s32 arg0, s32 arg1, ? arg2) {
//generated by m2c commit 9841ff34ca242f5f14b2eab2b54a7a65ac47d80f
void func_802A9714(Gfx *displayList, u8 *arg1, s32 arg2) {
s32 temp_t7;
s32 temp_v1;
s32 temp_v1_2;
s32 var_a0;
s32 var_a2;
s32 var_a3;
u8 temp_v0;
u8 temp_v0_2;
u8 temp_v0_3;
s32 phi_a3;
s32 phi_a2;
s32 phi_a0;
temp_v1 = D_802BA274;
temp_v0 = *(temp_v1 + arg1);
temp_t7 = temp_v1 + 1;
temp_v0 = arg1[D_802BA274];
temp_t7 = D_802BA274 + 1;
D_802BA274 = temp_t7;
phi_a3 = temp_v0 & 0x1F;
phi_a0 = temp_v0 & 0x1F;
var_a0 = temp_v0 & 0x1F;
var_a3 = temp_v0 & 0x1F;
if (gIsMirrorMode != 0) {
temp_v0_2 = *(temp_t7 + arg1);
temp_v0_2 = arg1[temp_t7];
D_802BA274 = temp_t7 + 1;
phi_a3 = (temp_v0_2 >> 2) & 0x1F;
phi_a2 = ((temp_v0 >> 5) & 7) | ((temp_v0_2 & 3) * 8);
var_a2 = ((temp_v0 >> 5) & 7) | ((temp_v0_2 & 3) * 8);
var_a3 = (temp_v0_2 >> 2) & 0x1F;
} else {
temp_v1_2 = D_802BA274;
temp_v0_3 = *(temp_v1_2 + arg1);
D_802BA274 = temp_v1_2 + 1;
phi_a2 = ((temp_v0 >> 5) & 7) | ((temp_v0_3 & 3) * 8);
phi_a0 = (temp_v0_3 >> 2) & 0x1F;
temp_v0_3 = arg1[D_802BA274];
D_802BA274 += 1;
var_a2 = ((temp_v0 >> 5) & 7) | ((temp_v0_3 & 3) * 8);
var_a0 = (temp_v0_3 >> 2) & 0x1F;
}
*(arg0 + (D_802BA270 * 8)) = 0xBF000000;
(arg0 + (D_802BA270 * 8))->unk4 = (phi_a3 << 0x11) | (phi_a2 << 9) | (phi_a0 * 2);
D_802BA270 = D_802BA270 + 1;
displayList[D_802BA270].words.w0 = 0xBF000000;
displayList[D_802BA270].words.w1 = (var_a3 << 0x11) | (var_a2 << 9) | (var_a0 * 2);
D_802BA270 += 1;
}
#else
GLOBAL_ASM("asm/non_matchings/memory/func_802A9714.s")
#endif
#ifdef MIPS_TO_C
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
extern s32 D_802BA270;
extern s32 D_802BA274;
void func_802A980C(s32 arg0, s32 arg1, ? arg2) {
s32 temp_a2;
//generated by m2c commit 9841ff34ca242f5f14b2eab2b54a7a65ac47d80f
void func_802A980C(Gfx *displayList, u8 *arg1, s32 arg2) {
s32 temp_t7;
s32 temp_t8;
s32 temp_t9;
s32 temp_t9_2;
s32 temp_v1;
s32 temp_v1_2;
s32 temp_v1_3;
s32 temp_v1_4;
s32 var_a0;
s32 var_a2;
s32 var_a3;
s32 var_t0;
s32 var_t1;
s32 var_t2;
u8 temp_v0;
u8 temp_v0_2;
u8 temp_v0_3;
u8 temp_v0_4;
u8 temp_v0_5;
u8 temp_v0_6;
s32 phi_t0;
s32 phi_a3;
s32 phi_a0;
s32 phi_t2;
s32 phi_t1;
s32 phi_a2;
temp_v1 = D_802BA274;
temp_v0 = *(temp_v1 + arg1);
temp_t7 = temp_v1 + 1;
temp_v0 = arg1[D_802BA274];
temp_t7 = D_802BA274 + 1;
D_802BA274 = temp_t7;
temp_a2 = gIsMirrorMode;
phi_t0 = temp_v0 & 0x1F;
phi_a0 = temp_v0 & 0x1F;
if (temp_a2 != 0) {
temp_v0_2 = *(temp_t7 + arg1);
var_a0 = temp_v0 & 0x1F;
var_t0 = temp_v0 & 0x1F;
if (gIsMirrorMode != 0) {
temp_v0_2 = arg1[temp_t7];
D_802BA274 = temp_t7 + 1;
phi_t0 = (temp_v0_2 >> 2) & 0x1F;
phi_a3 = ((temp_v0 >> 5) & 7) | ((temp_v0_2 & 3) * 8);
var_a3 = ((temp_v0 >> 5) & 7) | ((temp_v0_2 & 3) * 8);
var_t0 = (temp_v0_2 >> 2) & 0x1F;
} else {
temp_v1_2 = D_802BA274;
temp_v0_3 = *(temp_v1_2 + arg1);
D_802BA274 = temp_v1_2 + 1;
phi_a3 = ((temp_v0 >> 5) & 7) | ((temp_v0_3 & 3) * 8);
phi_a0 = (temp_v0_3 >> 2) & 0x1F;
temp_v0_3 = arg1[D_802BA274];
D_802BA274 += 1;
var_a3 = ((temp_v0 >> 5) & 7) | ((temp_v0_3 & 3) * 8);
var_a0 = (temp_v0_3 >> 2) & 0x1F;
}
temp_v1_3 = D_802BA274;
temp_v0_4 = *(temp_v1_3 + arg1);
temp_t9 = temp_v1_3 + 1;
temp_v0_4 = arg1[D_802BA274];
temp_t9 = D_802BA274 + 1;
D_802BA274 = temp_t9;
if (temp_a2 != 0) {
temp_v0_5 = *(temp_t9 + arg1);
if (gIsMirrorMode != 0) {
var_a2 = temp_v0_4 & 0x1F;
temp_v0_5 = arg1[temp_t9];
D_802BA274 = temp_t9 + 1;
phi_t2 = (temp_v0_5 >> 2) & 0x1F;
phi_t1 = ((temp_v0_4 >> 5) & 7) | ((temp_v0_5 & 3) * 8);
phi_a2 = temp_v0_4 & 0x1F;
var_t1 = ((temp_v0_4 >> 5) & 7) | ((temp_v0_5 & 3) * 8);
var_t2 = (temp_v0_5 >> 2) & 0x1F;
} else {
temp_v1_4 = D_802BA274;
temp_v0_6 = *(temp_v1_4 + arg1);
var_t2 = temp_v0_4 & 0x1F;
temp_v0_6 = arg1[D_802BA274];
temp_t8 = (temp_v0_6 & 3) * 8;
temp_t9_2 = (temp_v0_6 >> 2) & 0x1F;
D_802BA274 = temp_v1_4 + 1;
phi_t2 = temp_v0_4 & 0x1F;
phi_t1 = ((temp_v0_4 >> 5) & 7) | temp_t8;
phi_a2 = temp_t9_2;
D_802BA274 += 1;
var_t1 = ((temp_v0_4 >> 5) & 7) | temp_t8;
var_a2 = temp_t9_2;
}
*(arg0 + (D_802BA270 * 8)) = (phi_t0 << 0x11) | 0xB1000000 | (phi_a3 << 9) | (phi_a0 * 2);
(arg0 + (D_802BA270 * 8))->unk4 = (phi_t2 << 0x11) | (phi_t1 << 9) | (phi_a2 * 2);
D_802BA270 = D_802BA270 + 1;
displayList[D_802BA270].words.w0 = (var_t0 << 0x11) | 0xB1000000 | (var_a3 << 9) | (var_a0 * 2);
displayList[D_802BA270].words.w1 = (var_t2 << 0x11) | (var_t1 << 9) | (var_a2 * 2);
D_802BA270 += 1;
}
#else
GLOBAL_ASM("asm/non_matchings/memory/func_802A980C.s")
#endif
#ifdef MIPS_TO_C
//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
extern s32 D_802BA270;
extern s32 D_802BA274;
void func_802A99A4(s32 arg0, s32 arg1, ? arg2) {
//generated by m2c commit 9841ff34ca242f5f14b2eab2b54a7a65ac47d80f
void func_802A99A4(Gfx *displayList, u8 *arg1, s32 arg2) {
s32 temp_t3;
s32 temp_t6;
s32 temp_t7;
s32 temp_v1;
s32 temp_v1_2;
s32 var_a0;
s32 var_a2;
s32 var_a3;
s32 var_t0;
u8 temp_v0;
u8 temp_v0_2;
u8 temp_v0_3;
s32 phi_a0;
s32 phi_t0;
s32 phi_a3;
s32 phi_a2;
temp_v1 = D_802BA274;
temp_v0 = *(temp_v1 + arg1);
temp_t7 = temp_v1 + 1;
temp_v0 = arg1[D_802BA274];
temp_t7 = D_802BA274 + 1;
D_802BA274 = temp_t7;
phi_a0 = temp_v0 & 0x1F;
phi_t0 = temp_v0 & 0x1F;
var_a0 = temp_v0 & 0x1F;
var_t0 = temp_v0 & 0x1F;
if (gIsMirrorMode != 0) {
temp_v0_2 = *(temp_t7 + arg1);
temp_v0_2 = arg1[temp_t7];
temp_t3 = temp_t7 + 1;
D_802BA274 = temp_t3;
var_a2 = ((temp_v0 >> 5) & 7) | ((temp_v0_2 & 3) * 8);
var_a3 = (temp_v0_2 >> 2) & 0x1F;
D_802BA274 = temp_t3 + 1;
phi_t0 = ((temp_v0_2 >> 7) & 1) | ((*(temp_t3 + arg1) & 0xF) * 2);
phi_a3 = (temp_v0_2 >> 2) & 0x1F;
phi_a2 = ((temp_v0 >> 5) & 7) | ((temp_v0_2 & 3) * 8);
var_t0 = ((temp_v0_2 >> 7) & 1) | ((arg1[temp_t3] & 0xF) * 2);
} else {
temp_v1_2 = D_802BA274;
temp_v0_3 = *(temp_v1_2 + arg1);
temp_t6 = temp_v1_2 + 1;
temp_v0_3 = arg1[D_802BA274];
temp_t6 = D_802BA274 + 1;
D_802BA274 = temp_t6;
var_a3 = ((temp_v0 >> 5) & 7) | ((temp_v0_3 & 3) * 8);
var_a2 = (temp_v0_3 >> 2) & 0x1F;
D_802BA274 = temp_t6 + 1;
phi_a0 = ((temp_v0_3 >> 7) & 1) | ((*(temp_t6 + arg1) & 0xF) * 2);
phi_a3 = ((temp_v0 >> 5) & 7) | ((temp_v0_3 & 3) * 8);
phi_a2 = (temp_v0_3 >> 2) & 0x1F;
var_a0 = ((temp_v0_3 >> 7) & 1) | ((arg1[temp_t6] & 0xF) * 2);
}
*(arg0 + (D_802BA270 * 8)) = 0xB5000000;
(arg0 + (D_802BA270 * 8))->unk4 = (phi_a0 << 0x19) | (phi_t0 << 0x11) | (phi_a3 << 9) | (phi_a2 * 2);
D_802BA270 = D_802BA270 + 1;
displayList[D_802BA270].words.w0 = 0xB5000000;
displayList[D_802BA270].words.w1 = (var_a0 << 0x19) | (var_t0 << 0x11) | (var_a3 << 9) | (var_a2 * 2);
D_802BA270 += 1;
}
#else
GLOBAL_ASM("asm/non_matchings/memory/func_802A99A4.s")
@@ -2124,7 +2073,7 @@ f32 func_802ABEAC(UnkActorInner *arg0, Vec3f arg1) {
}
#ifdef MIPS_TO_C
//generated by m2c commit b04a67bbeb29101ca8f4ea8a24a81fe594677b33
//generated by m2c commit 9841ff34ca242f5f14b2eab2b54a7a65ac47d80f
void process_shell_collision(f32 *arg0, f32 arg1, f32 *velocity, f32 arg3) {
f32 sp40;
f32 sp3C;
@@ -2137,7 +2086,6 @@ void process_shell_collision(f32 *arg0, f32 arg1, f32 *velocity, f32 arg3) {
f32 temp_f0;
f32 temp_f0_2;
f32 temp_f10;
f32 temp_f10_2;
f32 temp_f12;
f32 temp_f12_2;
f32 temp_f14;
@@ -2148,7 +2096,6 @@ void process_shell_collision(f32 *arg0, f32 arg1, f32 *velocity, f32 arg3) {
f32 temp_f2;
f32 temp_f2_2;
f32 temp_f6;
f32 temp_f8;
f64 temp_f16;
temp_f2 = velocity->unk0;
@@ -2176,11 +2123,9 @@ void process_shell_collision(f32 *arg0, f32 arg1, f32 *velocity, f32 arg3) {
temp_f12_2 = sp3C - spC;
temp_f14_2 = sp38 - temp_f6;
temp_f16_3 = (1.0f / sqrtf((temp_f2_2 * temp_f2_2) + (temp_f12_2 * temp_f12_2) + (temp_f14_2 * temp_f14_2))) * sp24;
temp_f10_2 = temp_f12_2 * temp_f16_3;
temp_f8 = temp_f14_2 * temp_f16_3;
velocity->unk0 = temp_f2_2 * temp_f16_3;
velocity->unk4 = temp_f10_2;
velocity->unk8 = temp_f8;
velocity->unk4 = (f32) (temp_f12_2 * temp_f16_3);
velocity->unk8 = (f32) (temp_f14_2 * temp_f16_3);
}
#else
GLOBAL_ASM("asm/non_matchings/memory/process_shell_collision.s")