src(phase-35): T5 bucket new batch 3 — registered 120 groups, 358 sites in 59 TUs replaced by the include, gated 12/12 binaries green per binary, rejected classes 0 ledgered (share_body_cycle)

This commit is contained in:
Drew T
2026-09-08 19:55:15 -06:00
parent e4b25e5f70
commit 3c14ee490a
196 changed files with 6282 additions and 10081 deletions
+40
View File
@@ -0,0 +1,40 @@
/* func_801285E4 — shared body (overlay slot 0x80128158, h_exact 22637e5f). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_801285E4(void)
{
__asm__ __volatile__(
".set noreorder\n"
"addiu $sp, $sp, -24\n"
"lui $v1, 0x1f80\n"
"ori $v1, $v1, 0x03fc\n"
"sw $ra, 16($sp)\n"
"addu $t0, $v1, $zero\n"
"sw $sp, 0($t0)\n"
"addiu $t0, $t0, -4\n"
"addu $sp, $t0, $zero\n"
"jal func_800D18DC\n"
"lui $at, %%hi(D_8018E67C)\n"
"sw $v0, %%lo(D_8018E67C)($at)\n"
"addiu $sp, $sp, 4\n"
"lw $sp, 0($sp)\n"
"jal func_8014607C\n"
"lui $v1, 0x1f80\n"
"ori $v1, $v1, 0x03fc\n"
"addu $t0, $v1, $zero\n"
"sw $sp, 0($t0)\n"
"addiu $t0, $t0, -4\n"
"addu $sp, $t0, $zero\n"
"jal func_801287B8\n"
"addiu $sp, $sp, 4\n"
"lw $sp, 0($sp)\n"
"lui $v0, %%hi(D_8018E67C)\n"
"lw $v0, %%lo(D_8018E67C)($v0)\n"
"nop\n"
"beqz $v0, 1f\n"
"nop\n"
"jal func_80011A3C\n"
"1:\n"
"lw $ra, 16($sp)\n"
"addiu $sp, $sp, 24\n"
: : : "memory");
}
+40
View File
@@ -0,0 +1,40 @@
/* func_80128714 — shared body (overlay slot 0x80128158, h_exact 34914b60). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80128714(void) {
__asm__ __volatile__(
".set noreorder\n"
"addiu $sp, $sp, -24\n"
"lui $v1, 0x1f80\n"
"ori $v1, $v1, 0x03fc\n"
"sw $ra, 16($sp)\n"
"addu $t0, $v1, $zero\n"
"sw $sp, 0($t0)\n"
"addiu $t0, $t0, -4\n"
"addu $sp, $t0, $zero\n"
"jal func_800D19F0\n"
"lui $at, %%hi(D_8018E67C)\n"
"sw $v0, %%lo(D_8018E67C)($at)\n"
"addiu $sp, $sp, 4\n"
"lw $sp, 0($sp)\n"
"lui $v0, %%hi(D_8018E67C)\n"
"lw $v0, %%lo(D_8018E67C)($v0)\n"
"bne $v0, $zero, 1f\n"
"jal func_8014607C\n"
"lui $v1, 0x1f80\n"
"ori $v1, $v1, 0x03fc\n"
"addu $t0, $v1, $zero\n"
"sw $sp, 0($t0)\n"
"addiu $t0, $t0, -4\n"
"addu $sp, $t0, $zero\n"
"jal func_801287B8\n"
"addiu $sp, $sp, 4\n"
"lw $sp, 0($sp)\n"
"j 2f\n"
"1:\n"
"jal func_8001903C\n"
"jal func_80018FC8\n"
"2:\n"
"lw $ra, 16($sp)\n"
"addiu $sp, $sp, 24\n"
: : : "memory");
}
+27
View File
@@ -0,0 +1,27 @@
/* func_80128A28 — shared body (overlay slot 0x80128158, h_exact badd0159). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80128A28(void) {
s16 temp_v0;
switch (D_800B99F6) { /* irregular */
case 1:
D_8017F24C();
/* fallthrough */
case 0:
func_80011C10();
return;
case 2:
temp_v0 = D_8017F250();
if (temp_v0 != 0) {
if (temp_v0 < 0) {
func_80011B7C(0);
D_800B9A00 = 1;
return;
}
func_80010DE0();
} else {
return;
}
break;
}
}
+13
View File
@@ -0,0 +1,13 @@
/* func_80128C98 — shared body (overlay slot 0x80128158, h_exact 363b5a0e). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_80128C98(s32 arg0) {
extern s16 D_8017F528[];
s16 idx = D_8017F528[arg0];
if (idx >= 0) {
func_8001ABBC(0, 0, (u8 *)&cdFileLocTable[idx], D_8018D4F8, 0);
} else {
return 1;
}
}
+13
View File
@@ -0,0 +1,13 @@
/* func_80128CFC — shared body (overlay slot 0x80128158, h_exact 120c5b53). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_80128CFC(s32 arg0) {
extern s16 D_8017F538[];
s16 idx = D_8017F538[arg0];
if (idx >= 0) {
func_8001ABBC(0, 0, (u8 *)&cdFileLocTable[idx], D_8018D4F8, 0);
} else {
return 1;
}
}
+6
View File
@@ -0,0 +1,6 @@
/* func_80128FAC — shared body (overlay slot 0x80128158, h_exact 205d953e). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80128FAC(u16 *arg0) {
func_8001534C(4, &D_8018D4FC, 0x80, 0x90, 0, 0);
func_800153CC(5, *arg0, 0xA8, 0x90, 0x40, 0);
}
+16
View File
@@ -0,0 +1,16 @@
/* func_8012ACE0 — shared body (overlay slot 0x80128158, h_exact 97e255d8). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_8012ACE0(void *o) {
int i;
for (i = 0; ; i++) {
switch (((Owner_8012ACE0_8012ACE0 *)o)->list[i].cmd) {
case -2:
case -1:
case 0:
return i;
case -50: case -45: case -40: case -35: case -30: /* scatter -> force jump table (min=-50 sets low bound) */
default:
break;
}
}
}
+21
View File
@@ -0,0 +1,21 @@
/* func_8012D664 — shared body (overlay slot 0x80128158, h_exact b481cb52). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
int func_8012D664(int arg0, int arg1, int arg2) {
extern int func_8012F568();
extern int D_8017F5B4;
struct S8012D664_8012D664 s;
int ret;
int t;
s.a = (*(unsigned short*)&D_80126B5E);
s.b = (*(unsigned short*)&D_80126B62) - 0x40;
s.c = (*(unsigned short*)&D_80126B66);
ret = ((int(*)())func_800132BC)(arg0, &s);
t = arg1 + 0x20;
if (ret < t * t) {
func_8012F568(1, 1, 0, arg2, arg0, &D_8017F5B4);
return 1;
}
return 0;
}
+21
View File
@@ -0,0 +1,21 @@
/* func_8012DDA4 — shared body (overlay slot 0x80128158, h_exact 0f69dd9d). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_8012DDA4()
{
extern Entry_8012DDA4 * D_8018E69C;
extern Entry_8012DDA4 * D_8018E698;
Entry_8012DDA4 *p;
Entry_8012DDA4 *end = ((Entry_8012DDA4 *)D_80126720);
while (D_8018E69C != end) {
p = D_8018E69C;
if (p->active != 0 && p != D_8018E698) {
D_8018E69C = p + 1;
return p;
}
D_8018E69C++;
}
D_8018E69C = 0;
return 0;
}
+26
View File
@@ -0,0 +1,26 @@
/* func_8012DE2C — shared body (overlay slot 0x80128158, h_exact d811cfb5). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_8012DE2C(s32 a0) {
extern u8 * D_8018E69C;
extern u8 * D_8018E698;
u8 *base;
u8 *end;
u8 *p;
base = D_801202A0;
end = base + 0x6480;
D_8018E69C = base;
D_8018E698 = ((u8 *)a0);
while (D_8018E69C != end) {
p = D_8018E69C;
if (*(u16 *)p != 0 && p != ((u8 *)a0)) {
D_8018E69C = p + 0x10C;
return p;
}
D_8018E69C += 0x10C;
}
D_8018E69C = 0;
return 0;
}
+30
View File
@@ -0,0 +1,30 @@
/* func_8012E9C0 — shared body (overlay slot 0x80128158, h_exact 89747443). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8012E9C0(int param_1)
{
int iVar1;
if (*(short *)(param_1 + 0x60) != 0) {
if (*(unsigned char *)(param_1 + 0x5e) == 0x1d) {
*(short *)(param_1 + 0x82) = 0;
*(short *)(param_1 + 0x7c) = *(unsigned short *)(param_1 + 6);
*(short *)(param_1 + 0x7e) = *(unsigned short *)(param_1 + 0xa);
*(short *)(param_1 + 0x80) = *(unsigned short *)(param_1 + 0xe);
}
if (*(int *)(param_1 + 0x78) != 0) {
iVar1 = *(short *)(param_1 + 0x60) *
*(short *)(*(int *)(param_1 + 0x78) + 0x30) >> 0xc;
if (iVar1 < 1) {
iVar1 = 1;
}
} else {
iVar1 = *(short *)(param_1 + 0x60);
}
func_8016AA50(param_1, iVar1);
if ((*(unsigned short *)(param_1 + 0x82) & 1) != 0) {
func_8016B428(param_1);
func_80019064(&D_8017F5CC);
}
}
return;
}
+18
View File
@@ -0,0 +1,18 @@
/* func_801312D0 — shared body (overlay slot 0x80128158, h_exact 386a9228). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_801312D0(s32 param_1, void *param_2)
{
extern int func_80131CF4(int, int);
extern M8_801312D0 D_8017F730;
int iVar5;
iVar5 = func_80131CF4(*(int *)(((int)param_1) + 0xBC), 0x2E);
if (iVar5 != 0) {
((short *)param_2)[2] = 0;
((short *)param_2)[0] = 0;
((short *)param_2)[1] = (short)iVar5;
} else {
*(M8_801312D0 *)((short *)param_2) = D_8017F730;
}
}
+22
View File
@@ -0,0 +1,22 @@
/* func_80132018 — shared body (overlay slot 0x80128158, h_exact d875a8f9). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80132018(int param_1)
{
extern int tbl_D_80187044[][5] __asm__("D_8017F7A0");
extern int tbl_D_80187048[][5] __asm__("D_8017F7A4");
int v0;
v0 = ((int (*)(void))func_8012C1B8)();
*(int *)(param_1 + 0x20) = v0;
if (v0 == 0) {
((void (*)(int))func_8012CAE4)(param_1);
} else {
func_8001C214(v0, 0);
*(short *)(param_1 + 0x5c) = 0x80;
*(unsigned short *)(param_1 + 2) += 1;
*(int *)(param_1 + 0x58) = (int)&tbl_D_80187048[*(unsigned short *)(param_1 + 0x70) & 0xfff];
*(int *)(param_1 + 0xdc) = tbl_D_80187044[*(unsigned short *)(param_1 + 0x70) & 0xfff][0];
*(short *)(param_1 + 0xfc) = (*(unsigned short *)(param_1 + 0x70) >> 12) << 9;
}
}
+17
View File
@@ -0,0 +1,17 @@
/* func_801320D8 — shared body (overlay slot 0x80128158, h_exact 99a35ab4). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_801320D8(int param_1)
{
int v0;
v0 = ((int (*)(void))func_8012C1B8)();
*(int *)(param_1 + 0x20) = v0;
if (v0 == 0) {
((void (*)(int))func_8012CAE4)(param_1);
} else {
func_8001C214(v0, 0);
*(int *)(param_1 + 0x58) = (int)&D_8017F7A8;
*(short *)(param_1 + 0x5c) = 0x80;
*(unsigned short *)(param_1 + 2) += 1;
}
}
+19
View File
@@ -0,0 +1,19 @@
/* func_80132144 — shared body (overlay slot 0x80128158, h_exact e8e9c8db). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_80132144(s32 param_1)
{
extern int D_8017F7B8;
int v0;
v0 = ((int (*)(void))func_8012C1B8)();
*(int *)(((int)param_1) + 0x20) = v0;
if (v0 == 0) {
((void (*)(int))func_8012CAE4)(((int)param_1));
} else {
((void(*)(int, int))func_8001C214)(v0, 0);
*(int *)(((int)param_1) + 0x58) = (int)&D_8017F7B8;
*(short *)(((int)param_1) + 0x5c) = 0x80;
*(unsigned short *)(((int)param_1) + 2) += 1;
}
}
+17
View File
@@ -0,0 +1,17 @@
/* func_801321B0 — shared body (overlay slot 0x80128158, h_exact c34d9d19). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_801321B0(int param_1)
{
int v0;
v0 = ((int (*)(void))func_8012C1B8)();
*(int *)(param_1 + 0x20) = v0;
if (v0 == 0) {
((void (*)(int))func_8012CAE4)(param_1);
} else {
func_8001C214(v0, 0);
*(int *)(param_1 + 0x58) = (int)&D_8017F7C8;
*(short *)(param_1 + 0x5c) = 0x80;
*(unsigned short *)(param_1 + 2) += 1;
}
}
+17
View File
@@ -0,0 +1,17 @@
/* func_8013221C — shared body (overlay slot 0x80128158, h_exact 6e5d0a2d). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8013221C(int param_1)
{
int v0;
v0 = ((int (*)(void))func_8012C1B8)();
*(int *)(param_1 + 0x20) = v0;
if (v0 == 0) {
((void (*)(int))func_8012CAE4)(param_1);
} else {
func_8001C214(v0, 0);
*(int *)(param_1 + 0x58) = (int)&D_8017F7D8;
*(short *)(param_1 + 0x5c) = 0x80;
*(unsigned short *)(param_1 + 2) += 1;
}
}
+10
View File
@@ -0,0 +1,10 @@
/* func_80136C90 — shared body (overlay slot 0x80128158, h_exact 69b2badc). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_80136C90()
{
extern void func_8001534C(int, void *, int, int, int, int);
extern S10_80136C90 D_8018D74C;
S10_80136C90 buf = D_8018D74C;
func_8001534C(0, &buf, 0x78, 0x10, 0, 0);
}
+21
View File
@@ -0,0 +1,21 @@
/* func_80137D08 — shared body (overlay slot 0x80128158, h_exact 7e58ba7e). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
int func_80137D08(int arg0, int arg1, short arg2)
{
unsigned char buf[3];
D_800A5E60 = arg0;
D_80126A0A = arg2;
((void (*)(void *, int, int))func_801392FC)(&D_801269F0, D_80126A0E, arg1);
if ((*(short *)&D_801269F4) == 7) {
buf[0] = 0x39;
buf[1] = 0xFF;
buf[2] = 0x71;
((void (*)(void *, void *, int))func_80137DD4)(&D_801269F0, buf, arg1);
} else if ((*(short *)&D_801269F4) == 3) {
if (D_8017F878 & 4) {
((void (*)(void *, int))func_80139680)(&D_801269F0, arg1);
}
}
return D_800A5E60;
}
+33
View File
@@ -0,0 +1,33 @@
/* func_80139BE0 — shared body (overlay slot 0x80128158, h_exact 561c5286). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_80139BE0(int param_1)
{
extern unsigned char D_8017F844[];
int v;
if ((*(unsigned int *)(param_1 + 8) & 0x2000) == 0) {
int t = *(unsigned char *)(param_1 + 0x22) & 0x60;
int h = *(unsigned short *)(param_1 + 0x18);
unsigned int idx;
__asm__("" : "=r"(t) : "0"(t));
idx = (unsigned char)t;
if (h < 7) {
if (h >= 2) {
v = D_8017F844[idx >> 5];
} else {
v = D_8017F844[0];
}
} else {
v = D_8017F844[0];
}
*(short *)(param_1 + 0x2e) = 3;
*(short *)(param_1 + 0x2c) = v;
}
*(short *)(param_1 + 0x34) = *(short *)(param_1 + 0x2c) * 6;
{
int x = *(short *)(param_1 + 0x2e);
*(short *)(param_1 + 0x36) = x * 12 + (x - 1) * 2;
}
}
+34
View File
@@ -0,0 +1,34 @@
/* func_8013CA14 — shared body (overlay slot 0x80128158, h_exact 83788c45). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8013CA14(void)
{
int *base = &D_8018E760;
signed char *p;
unsigned char c;
int t;
if ((*base) != 0)
{
c = D_8018E765;
if (c == 0)
{
p = (signed char *) ((((unsigned int) ((unsigned char) D_8018E764)) * 2) + D_8018E760);
t = (int) (*p);
D_801269D4 = t;
D_801269C8 = t;
D_8018E765 = (unsigned char) p[1];
D_8018E764 = D_8018E764 + 1;
if (D_8018E765 == 0)
{
D_801269D4 = 0;
D_801269C8 = 0;
D_8018E764 = 0;
*base = 0;
}
}
else
{
D_8018E765 = c - 1;
}
}
return;
}
+14
View File
@@ -0,0 +1,14 @@
/* func_8013D330 — shared body (overlay slot 0x80128158, h_exact 3ba2802e). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8013D330(void) {
if ((D_8018FAB2 & 0xff) != D_8018FB2C) {
D_8018FAB2 = ((D_8018FAB2 & 0xff) < D_8018FB2C) ? (D_8018FAB2 + 1) : (D_8018FAB2 - 1);
}
if ((D_8018F9DA & 0xff) != D_8018FA94) {
D_8018F9DA = ((D_8018F9DA & 0xff) < D_8018FA94) ? (D_8018F9DA + 1) : (D_8018F9DA - 1);
}
if ((D_8018F9B8 & 0xff) != D_8018F9D9) {
D_8018F9B8 = ((D_8018F9B8 & 0xff) < D_8018F9D9) ? (D_8018F9B8 + 1) : (D_8018F9B8 - 1);
}
D_8018FA98 = 1;
}
+33
View File
@@ -0,0 +1,33 @@
/* func_8013D8FC — shared body (overlay slot 0x80128158, h_exact 392f2627). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8013D8FC(void)
{
extern s16 *D_8018E774;
register s16 *psVar3 __asm__("$17");
register s16 *psVar2 __asm__("$16");
register s32 c9 __asm__("$19");
register s32 cff __asm__("$18");
u16 sVar1;
s16 buf[4];
psVar3 = D_8018E774;
if (psVar3 != (s16 *)0x0 && (sVar1 = (u16)*psVar3, sVar1 != 0xff)) {
c9 = 9;
cff = 0xff;
psVar2 = psVar3 + 5;
do {
if (sVar1 == c9) {
s32 arg2 = *(s32 *)(psVar2 + 1) + psVar2[-1] * 2;
buf[0] = psVar2[-3];
buf[1] = psVar2[-2];
buf[2] = psVar2[-1];
buf[3] = *psVar2;
((void (*)(s32, s32))func_800599B8)((s32)buf, arg2);
}
psVar3 = psVar3 + 8;
sVar1 = (u16)*psVar3;
psVar2 = psVar2 + 8;
} while (sVar1 != cff);
}
}
+21
View File
@@ -0,0 +1,21 @@
/* func_8013E5E8 — shared body (overlay slot 0x80128158, h_exact ae7678cf). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8013E5E8(void)
{
extern u16 D_8011511E;
extern u16 D_8011511C;
extern unsigned short D_80115112;
extern u16 D_80115116;
extern void (*D_8018062C[])(void);
register void (*fp)(void) __asm__("$2"); /* pin fn-ptr to $v0 -> store retires early */
func_80029444();
func_801754A8();
D_8011511E = func_80014ED4(0);
D_8011511C = func_80015018(0);
fp = D_8018062C[D_80115112];
fp();
func_800190AC();
func_80141C04();
D_80115116 += 1;
}
+12
View File
@@ -0,0 +1,12 @@
/* func_8013F138 — shared body (overlay slot 0x80128158, h_exact 67cef5a4). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8013F138(void) {
u16 *p = &D_80115118;
*p += 0x10;
if ((u16)*p >= 0x40) {
if (D_80115110 == 0) {
((void (*)(int, unsigned char *))func_801376E8)((int)func_80141CA4(), &D_801805F4);
}
D_80115112 += 1;
}
}
+14
View File
@@ -0,0 +1,14 @@
/* func_80140E6C — shared body (overlay slot 0x80128158, h_exact 0b0f53ec). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80140E6C(void) {
void *puVar1;
unsigned int uVar2;
unsigned int uVar3;
unsigned int uVar4;
puVar1 = (*(void * *)&D_8018020C);
uVar2 = func_800D2CA8(D_80078E7F, 0x18);
uVar3 = func_800D2CA8(D_80078E7E, 0xc);
uVar4 = func_800D2CA8(D_80078E7D, 0);
func_800D2D10(uVar2 | 0xb00000 | uVar3 | 0xb00 | uVar4, 8, puVar1, 0);
}
+16
View File
@@ -0,0 +1,16 @@
/* func_80141874 — shared body (overlay slot 0x80128158, h_exact 1ec890ca). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80141874(void) {
extern u16 D_8011511C;
extern u16 D_80115116;
extern void (*D_80180678[])(void);
register void (*fp)(void) __asm__("$2"); /* pin fn-ptr to $v0 → store retires early */
func_801754A8();
D_8011511E = func_80014ED4(0);
D_8011511C = func_80015018(0);
fp = D_80180678[D_80115112];
fp();
func_80141C04();
D_80115116 += 1;
}
+32
View File
@@ -0,0 +1,32 @@
/* func_80142608 — shared body (overlay slot 0x80128158, h_exact 66c77755). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80142608(s32 param_1)
{
register s32 iVar1 __asm__("$16");
if (*(short *)(param_1 + 0x70) != 0) {
iVar1 = ((s32 (*)(void))func_8012C1B8)();
} else {
iVar1 = func_8012C1DC(*(s32 *)(param_1 + 100));
}
*(s32 *)(param_1 + 0x20) = iVar1;
if (iVar1 != 0) {
func_8001CA1C(iVar1, (s32)&D_80180690);
*(short *)(iVar1 + 0x1a) = 0x200;
*(short *)(iVar1 + 0x18) = 0x200;
*(short *)(param_1 + 0xfc) = 0x40;
if (*(short *)(param_1 + 0x70) != 0) {
goto ad50;
}
if (*(s32 *)(param_1 + 100) != 0) {
*(short *)(param_1 + 0xfe) = *(short *)(*(s32 *)(param_1 + 100) + 0x36);
goto ad50;
}
}
((void (*)(s32))func_8012CAE4)(param_1);
return;
ad50:
*(short *)(param_1 + 0x98) = 0;
*(s32 *)(param_1 + 0x90) = 0;
((void (*)(s32))func_8012AD50)(param_1);
}
+13
View File
@@ -0,0 +1,13 @@
/* func_80142A10 — shared body (overlay slot 0x80128158, h_exact aae79a19). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80142A10(int param_1)
{
extern void (*D_80180974[])();
if (*(s16 *)&D_801270C0 != 3) {
D_80180974[*(u16 *)(param_1 + 2)]();
if (*(s16 *)(param_1 + 0xFC) != 0) {
((void (*)(int))func_80142A80)(param_1);
}
}
}
+21
View File
@@ -0,0 +1,21 @@
/* func_80142A80 — shared body (overlay slot 0x80128158, h_exact e460239a). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80142A80(void)
{
u16 flags;
union word_bytes local;
s32 mul;
flags = D_800B99D8;
local.pw = D_8018DE88;
if (flags & 0x10) {
mul = (s8)((flags & 0xf) >> 1) + 9;
} else {
mul = 0x10 - (s8)((flags & 0xf) >> 1);
}
D_8018E7C8 = mul * (local.b[0] >> 4);
D_8018E7C9 = mul * (local.b[1] >> 4);
D_8018E7CA = mul * (local.b[2] >> 4);
}
+17
View File
@@ -0,0 +1,17 @@
/* func_80142DC4 — shared body (overlay slot 0x80128158, h_exact ca355465). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80142DC4(int param_1)
{
int v0;
*(int *)(param_1 + 0x20) = v0 = ((int (*)(void))func_8012C1B8)();
if (v0 == 0) {
((void (*)(int))func_8012CAE4)(param_1);
} else {
((void (*)(s32, s32))func_8001CA1C)(v0, (s32)&D_801806B4);
*(short *)(v0 + 0x1a) = 0x1800;
*(short *)(v0 + 0x18) = 0x1800;
*(short *)(param_1 + 0xfc) = 0;
((void (*)(int))func_80142B2C)(param_1);
}
}
+19
View File
@@ -0,0 +1,19 @@
/* func_80142E38 — shared body (overlay slot 0x80128158, h_exact 05b8b1d1). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80142E38(int param_1)
{
short sVar1;
int iVar2;
*(int *)(param_1 + 0x20) = iVar2 = ((int (*)(void))func_8012C1B8)();
if (iVar2 == 0) {
((void (*)(int))func_8012CAE4)(param_1);
} else {
((void (*)(int, void *))func_8001CA1C)(iVar2, &D_801806D0);
sVar1 = (*(unsigned short *)(param_1 + 0x70) & 0xf) * 0x600 + 0x1200;
*(short *)(iVar2 + 0x1a) = sVar1;
*(short *)(iVar2 + 0x18) = sVar1;
*(short *)(param_1 + 0xfc) = 0;
((void (*)(int))func_80142B2C)(param_1);
}
}
+25
View File
@@ -0,0 +1,25 @@
/* func_80142EC0 — shared body (overlay slot 0x80128158, h_exact 41e70b0a). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80142EC0(s32 param_1) {
extern s32 D_8018089C[];
register s32 d __asm__("$16") = param_1; /* $s0 */
register s32 obj __asm__("$17"); /* $s1 */
s32 ret;
s16 sVar2;
ret = ((s32 (*)(void))func_8012C1B8)();
*(s32 *)(d + 0x20) = ret;
obj = ret;
if (ret == 0) {
((void (*)(s32))func_8012CAE4)(d);
} else {
func_8001CA1C(obj, 0);
sVar2 = (s16)((*(u16 *)(d + 0x70) & 0xf) * 0x600 + 0xc00);
*(s16 *)(obj + 0x1a) = sVar2;
*(s16 *)(obj + 0x18) = sVar2;
*(s16 *)(d + 0xfc) = 0;
((void (*)(s32, s32))func_8012A828)(d, D_8018089C[*(u16 *)(d + 0x70) & 0xf]);
((void (*)(s32))func_80142B2C)(d);
}
}
+24
View File
@@ -0,0 +1,24 @@
/* func_8014305C — shared body (overlay slot 0x80128158, h_exact bee6858a). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8014305C(int param_1)
{
register int s0_param __asm__("$16") = param_1;
register int s1_copy __asm__("$17");
int iVar2;
short sVar1;
iVar2 = ((int (*)(void))func_8012C1B8)();
*(int *)(s0_param + 0x20) = iVar2;
s1_copy = iVar2;
if (iVar2 == 0) {
((void (*)(int))func_8012CAE4)(s0_param);
} else {
((void (*)(int, void *))func_8001CA1C)(s1_copy, D_801808BC);
sVar1 = (*(unsigned short *)(s0_param + 0x70) & 0xf) * 0x600 + 0xc00;
*(short *)(s1_copy + 0x1a) = sVar1;
*(short *)(s1_copy + 0x18) = sVar1;
*(short *)(s0_param + 0xfc) = 0;
func_8012A828(s0_param, D_8018091C);
((void (*)(int))func_80142B2C)(s0_param);
}
}
+28
View File
@@ -0,0 +1,28 @@
/* func_80143458 — shared body (overlay slot 0x80128158, h_exact 4deffe40). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80143458(s32 param_1)
{
s32 p;
u16 v;
*(u32 *)(*(s32 *)(param_1 + 0x20) + 0x20) = (u32)&D_800D387C;
p = *(s32 *)(param_1 + 0x20);
if (*(s32 *)(p + 4) == 0) {
*(s32 *)(p + 4) = 0x50000000;
}
*(u8 *)(*(s32 *)(param_1 + 0x20) + 0x27) = 0x9c;
v = *(u16 *)(param_1 + 0x34) & 0x7fff;
if (v != 0) {
p = *(s32 *)(param_1 + 0x20);
*(u16 *)(p + 0x1a) = v;
*(u16 *)(p + 0x18) = v;
}
func_80128EA8(*(u32 *)(param_1 + 0x20), param_1 + 0x24,
D_80180A74[*(u16 *)(param_1 + 0x34) & 3]);
*(u16 *)(param_1 + 2) = *(u16 *)(param_1 + 2) + 1;
}
+31
View File
@@ -0,0 +1,31 @@
/* func_8014358C — shared body (overlay slot 0x80128158, h_exact 9bb6332a). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8014358C(s32 param_1)
{
extern u8 D_80180A84[];
extern u32 D_80180B80[];
s32 p;
u16 v;
*(u32 *)(*(s32 *)(param_1 + 0x20) + 0x20) = (u32)&D_80180A84;
p = *(s32 *)(param_1 + 0x20);
if (*(s32 *)(p + 4) == 0) {
*(s32 *)(p + 4) = 0x50000000;
}
*(u8 *)(*(s32 *)(param_1 + 0x20) + 0x27) = 0x90;
v = *(u16 *)(param_1 + 0x34) & 0x7fff;
if (v != 0) {
p = *(s32 *)(param_1 + 0x20);
*(u16 *)(p + 0x1a) = v;
*(u16 *)(p + 0x18) = v;
}
func_80128EA8(*(u32 *)(param_1 + 0x20), param_1 + 0x24,
D_80180B80[*(u16 *)(param_1 + 0x34) & 3]);
*(u16 *)(param_1 + 2) = *(u16 *)(param_1 + 2) + 1;
}
+13
View File
@@ -0,0 +1,13 @@
/* func_801442F8 — shared body (overlay slot 0x80128158, h_exact bf05b1dc). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_801442F8(int param_1)
{
int iVar1;
D_80180C14[*(u16 *)(param_1 + 2)]();
iVar1 = *(int *)(param_1 + 0x1c) + 1;
*(int *)(param_1 + 0x1c) = iVar1;
if (0x1d < iVar1) {
func_8012C218(param_1);
}
}
+47
View File
@@ -0,0 +1,47 @@
/* func_8014607C — shared body (overlay slot 0x80128158, h_exact b3c81197). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8014607C(void)
{
__asm__ __volatile__(
".set noreorder\n"
"addiu $sp, $sp, -24\n"
"lui $v1, 0x1f80\n"
"ori $v1, $v1, 0x03fc\n"
"sw $ra, 16($sp)\n"
"addu $t0, $v1, $zero\n"
"sw $sp, 0($t0)\n"
"addiu $t0, $t0, -4\n"
"addu $sp, $t0, $zero\n"
"jal func_80146128\n"
"lui $at, %%hi(D_8018E808)\n"
"sw $v0, %%lo(D_8018E808)($at)\n"
"addiu $sp, $sp, 4\n"
"lw $sp, 0($sp)\n"
"lui $v0, %%hi(D_8018E808)\n"
"lw $v0, %%lo(D_8018E808)($v0)\n"
"nop\n"
"beqz $v0, .L80146114\n"
"lui $v1, 0x1f80\n"
"ori $v1, $v1, 0x03fc\n"
"addu $t0, $v1, $zero\n"
"sw $sp, 0($t0)\n"
"addiu $t0, $t0, -4\n"
"addu $sp, $t0, $zero\n"
"jal func_80146360\n"
"addiu $sp, $sp, 4\n"
"lw $sp, 0($sp)\n"
"lui $v1, 0x1f80\n"
"ori $v1, $v1, 0x03fc\n"
"addu $t0, $v1, $zero\n"
"sw $sp, 0($t0)\n"
"addiu $t0, $t0, -4\n"
"addu $sp, $t0, $zero\n"
"jal func_801463A0\n"
"addiu $sp, $sp, 4\n"
"lw $sp, 0($sp)\n"
".L80146114:\n"
"nop\n"
"lw $ra, 16($sp)\n"
"addiu $sp, $sp, 24\n"
: : : "memory");
}
+34
View File
@@ -0,0 +1,34 @@
/* func_80149FB0 — shared body (overlay slot 0x80128158, h_exact 8c634086). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_80149FB0(s32 a0) {
s32 *p = &D_80180E30[0];
register s32 v __asm__("$3") = *p;
u8 *q = &D_80078E78[0];
s32 loc;
if (v != 0) {
loc = currentLocationId;
p = p + 1;
do {
if (loc == v) {
goto ret0;
}
v = *p;
p = p + 1;
} while (v != 0);
}
if ((*(u32 *)(a0 + 0x44) & 0x400) != 0) {
return 0;
}
if (*(s16 *)(a0 + 0x1C8) != 0) {
return 0;
}
if ((*(u16 *)(a0 + 0xAC) & 0x100) == 0) {
ret0:
return 0;
}
v = q[0x48];
q[0x48] = v ^ 0x80;
return 1;
}
+33
View File
@@ -0,0 +1,33 @@
/* func_8014FA04 — shared body (overlay slot 0x80128158, h_exact 6f7b9fcb). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8014FA04(s32 a0)
{
__asm__ __volatile__(
".set noreorder\n"
"addiu $sp, $sp, -24\n"
"sw $ra, 16($sp)\n"
"lw $v0, 68($a0)\n"
"lui $v1, 0x4\n"
"and $v0, $v0, $v1\n"
"bnez $v0, 1f\n"
"addu $v0, $zero, $zero\n"
"lui $a1, 0x1f80\n"
"ori $a1, $a1, 0x03fc\n"
"addu $t0, $a1, $zero\n"
"lw $t1, 0($t0)\n"
"nop\n"
"sw $sp, 0($t1)\n"
"addiu $t1, $t1, -4\n"
"addu $sp, $t1, $zero\n"
"jal func_8014FA70\n"
"lui $at, %%hi(D_8018E814)\n"
"sw $v0, %%lo(D_8018E814)($at)\n"
"addiu $sp, $sp, 4\n"
"lw $sp, 0($sp)\n"
"lui $v0, %%hi(D_8018E814)\n"
"lw $v0, %%lo(D_8018E814)($v0)\n"
"1:\n"
"lw $ra, 16($sp)\n"
"addiu $sp, $sp, 24\n"
: : : "memory");
}
+56
View File
@@ -0,0 +1,56 @@
/* func_80150A70 — shared body (overlay slot 0x80128158, h_exact 5bf92896). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80150A70(s32 a0)
{
__asm__ __volatile__(
".set\tnoreorder\n"
"addiu $sp, $sp, -24\n"
"sw $s0, 16($sp)\n"
"addu $s0, $a0, $zero\n"
"sw $ra, 20($sp)\n"
"lh $v1, 6($s0)\n"
"lh $v0, 136($s0)\n"
"nop\n"
"bne $v1, $v0, 1f\n"
"nop\n"
"lh $v1, 10($s0)\n"
"lh $v0, 138($s0)\n"
"nop\n"
"bne $v1, $v0, 1f\n"
"nop\n"
"lh $v1, 14($s0)\n"
"lh $v0, 140($s0)\n"
"nop\n"
"beq $v1, $v0, 3f\n"
"nop\n"
"1:\n"
"lw $v0, 68($s0)\n"
"lui $v1, 0x4\n"
"and $v0, $v0, $v1\n"
"bnez $v0, 2f\n"
"addiu $a0, $s0, 4\n"
"lui $a2, 0x1f80\n"
"ori $a2, $a2, 0x03fc\n"
"addu $t0, $a2, $zero\n"
"lw $t1, 0($t0)\n"
"nop\n"
"sw $sp, 0($t1)\n"
"addiu $t1, $t1, -4\n"
"addu $sp, $t1, $zero\n"
"jal func_8014FA70\n"
"addu $a0, $s0, $zero\n"
"lui $at, %%hi(D_8018E814)\n"
"sw $v0, %%lo(D_8018E814)($at)\n"
"addiu $sp, $sp, 4\n"
"lw $sp, 0($sp)\n"
"addiu $a0, $s0, 4\n"
"2:\n"
"jal func_80015978\n"
"addiu $a1, $s0, 136\n"
"3:\n"
"lw $ra, 20($sp)\n"
"lw $s0, 16($sp)\n"
"addiu $sp, $sp, 24\n"
".set\treorder\n"
: : : "memory");
}
+18
View File
@@ -0,0 +1,18 @@
/* func_80150B28 — shared body (overlay slot 0x80128158, h_exact f539b4e6). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80150B28(int param_1) {
extern s32 D_800AE6B0;
extern void (*D_80180EF4[])(void);
u32 idx;
register u32 sub __asm__("$2");
if ((D_800AE6B0 & 0x80FFFFFF) == 0) {
idx = *(u16 *)(param_1 + 0x16C);
if (idx != 0 && idx < 0x26) {
sub = idx - 1;
D_80180EF4[sub]();
}
}
*(u16 *)(param_1 + 0x16C) = 0;
}
+17
View File
@@ -0,0 +1,17 @@
/* func_801520DC — shared body (overlay slot 0x80128158, h_exact 43573632). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_801520DC(s32 arg0)
{
func_80019064(&D_80062C04);
func_80151204(arg0, M2C_FIELD(arg0, s16 *, 0xF2));
func_80149020(arg0);
func_801472C8(arg0);
M2C_FIELD(arg0, s8 *, 0xDE) = 0x10;
func_80146DB8(arg0, &D_80180FAC);
func_801477E8(arg0, 0x40000);
func_8014CBF8(arg0);
func_801474EC(arg0);
func_80146A6C(0x10, arg0, M2C_FIELD(arg0, s16 *, 6), M2C_FIELD(arg0, s16 *, 0xA), (s32) M2C_FIELD(arg0, s16 *, 0xE), 0, 0);
func_80147324(0x441);
func_80146CA0(arg0);
}
+16
View File
@@ -0,0 +1,16 @@
/* func_801528B0 — shared body (overlay slot 0x80128158, h_exact 474ae4a5). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_801528B0(s32 arg0)
{
func_80019064(&D_80062C04);
func_80151204(arg0, M2C_FIELD(arg0, s16 *, 0xF2));
func_80149020(arg0);
func_80154274(arg0, &D_800D5880);
func_80147324(0x451);
M2C_FIELD(arg0, s8 *, 0xDE) = 0x10;
func_80146DB8(arg0, &D_80180FF4);
func_801477E8(arg0, 0xFFF00000);
func_8014CBF8(arg0);
func_801474EC(arg0);
func_80146CA0(arg0);
}
+17
View File
@@ -0,0 +1,17 @@
/* func_80152DA8 — shared body (overlay slot 0x80128158, h_exact 7ab61c2d). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80152DA8(s32 arg0)
{
func_80019064(&D_80062C14);
func_80151204(arg0, M2C_FIELD(arg0, s16 *, 0xF2));
func_80149020(arg0);
func_80154274(arg0, &D_800D5880);
func_80147324(0x451);
M2C_FIELD(arg0, s8 *, 0xDE) = 0x10;
M2C_FIELD(arg0, s8 *, 0xDF) = 8;
func_80146DB8(arg0, &D_80181024);
func_801477E8(arg0, 0xFFE40000);
func_8014CBF8(arg0);
func_801474EC(arg0);
func_80146CA0(arg0);
}
+8
View File
@@ -0,0 +1,8 @@
/* func_80153CCC — shared body (overlay slot 0x80128158, h_exact 6f825b34). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80153CCC(S80153CCC *a0) {
((s32 (*)(s32))func_80019064)((s32)&D_80181070);
D_80181098[a0->idx](a0);
D_8011DB0C = 0;
D_8011F748 = 0;
}
+16
View File
@@ -0,0 +1,16 @@
/* func_80153D7C — shared body (overlay slot 0x80128158, h_exact ab751e1b). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80153D7C(s32 param_1)
{
func_80147324(0x451);
func_80154274((s32 *)param_1, (s32)&D_80181078);
func_80149020((s32 *)param_1);
*(u16 *)(param_1 + 0x244) = *(u16 *)(param_1 + 6);
*(u16 *)(param_1 + 0x246) = *(u16 *)(param_1 + 10);
*(u16 *)(param_1 + 0x248) = *(u16 *)(param_1 + 0xe);
if (currentLocationId == 0x3075) *(u8 *)(param_1 + 0xde) = 0x14;
else *(u8 *)(param_1 + 0xde) = 10;
*(u8 *)(param_1 + 0xdf) = 0;
__asm__ __volatile__("" ::: "memory");
func_80146CA0((void *)param_1);
}
+35
View File
@@ -0,0 +1,35 @@
/* func_801549F8 — shared body (overlay slot 0x80128158, h_exact 44f58f33). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_801549F8(s32 param_1, s32 _arg1, s32 _arg2)
{
s32 i, j;
u8 n;
u8 count;
s32 *base;
count = 0;
i = 0;
if (*(u8 *)(param_1 + 0xBC) != 0) {
base = *(s32 **)(param_1 + 0xB4);
n = *(u8 *)(param_1 + 0xBC);
do {
j = i;
switch (base[j]) {
case 0: case 2: case 7: case 8: case 9: case 10:
case 0xd: case 0x10: case 0x11: case 0x12: case 0x13:
case 0x14: case 0x19: case 0x1a:
i = j + 1;
break;
case 3: case 4: case 5: case 6: case 0xb: case 0xc:
case 0xe: case 0xf: case 0x15: case 0x16:
i = j + 2;
break;
default:
i = j + 1;
count += 1;
break;
}
} while (i != n);
}
return count;
}
+9
View File
@@ -0,0 +1,9 @@
/* func_80156A1C — shared body (overlay slot 0x80128158, h_exact 6c509a1c). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80156A1C(s32 param_1, s32 param_2)
{
if (*(unsigned char *)(param_1 + 0xDA) == 0) {
func_80147324(D_8018154C[D_8011520C[param_2]]);
*(unsigned char *)(param_1 + 0xDA) = *(unsigned char *)(param_1 + 0xDA) + 1;
}
}
+11
View File
@@ -0,0 +1,11 @@
/* func_80157808 — shared body (overlay slot 0x80128158, h_exact 9833c197). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80157808(void *param_1)
{
D_80181584[*(unsigned short *)((char *)param_1 + 2)]();
D_8018E848 = D_8018E848 - 1;
if (D_8018E848 == -1) {
func_801599A4(param_1);
func_80159B3C(param_1);
}
}
+15
View File
@@ -0,0 +1,15 @@
/* func_801578C0 — shared body (overlay slot 0x80128158, h_exact 69854285). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_801578C0(s32 param_1)
{
((void (*)(void))func_80156648)();
*(u8 *)(param_1 + 0x1AA) = 9;
func_80154274((s32 *)param_1, (s32)&D_800D5128);
((void (*)(s32 *, s32))func_80154A74)((s32 *)param_1, 0x15);
func_80147324(0xC20);
((void (*)(s32 *, s32))func_80146DB8)((s32 *)param_1, (s32)&D_80181564);
((void (*)(s32, s32 *, s32, s32))func_80146994)(4, (s32 *)param_1, 7, 0);
((void (*)(s32, s32 *, s32, s32))func_80146994)(5, (s32 *)param_1, 9, 0);
((void (*)(s32 *))func_80146CA0)((s32 *)param_1);
((void (*)(s32 *))func_801725A4)((s32 *)param_1);
}
+13
View File
@@ -0,0 +1,13 @@
/* func_80158038 — shared body (overlay slot 0x80128158, h_exact 2062f4e0). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80158038(void * param)
{
*(u8 *)(param + 0x1aa) = 0xe;
func_80154274((s32 *)param, (s32)&D_800D51E0);
func_80154A74(param, 0x15);
func_80146DB8((s32 *)param, &D_80181598);
*(s32 *)(param + 0x234) = 0;
func_80146994(5, param, 0xc, 0);
func_80147324(0x455);
func_80146CA0((void *)param);
}
+14
View File
@@ -0,0 +1,14 @@
/* func_8015879C — shared body (overlay slot 0x80128158, h_exact b6505b9b). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8015879C(s32 param_1) {
D_8018E850 = 0;
D_8018E85C = 1;
D_8018E860 = 0;
*(u8 *)(param_1 + 0xa8) = 0;
((void (*)(void))func_80147084)();
((void (*)(s32))func_80147098)(param_1);
((void (*)(s32))func_801470AC)(param_1);
((void (*)(s32, s32))func_80147078)(param_1, 0x1a);
((void (*)(s32, s32))func_80146C98)(param_1, 1);
((void (*)(s32))func_80158880)(param_1);
}
+13
View File
@@ -0,0 +1,13 @@
/* func_80158814 — shared body (overlay slot 0x80128158, h_exact b665efef). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80158814(void *arg0) {
D_8018E850 = 0;
D_8018E85C = 1;
D_8018E860 = 0;
*(s8 *)((s32)arg0 + 0xA8) = 0;
((void (*)(void))func_80147084)();
((void (*)(void *))func_80147098)(arg0);
((void (*)(void *))func_801470AC)(arg0);
((void (*)(void *, s32))func_80147078)(arg0, 0x1A);
((void (*)(void *))func_80158880)(arg0);
}
+16
View File
@@ -0,0 +1,16 @@
/* func_80158BB0 — shared body (overlay slot 0x80128158, h_exact 5d09eea9). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80158BB0(void *arg0) {
if (D_8018E850 == 0) {
D_8018E850 = 1;
}
func_80147324(0x456);
func_80154274(arg0, &D_800D58D8);
func_80154A74(arg0, 0x16);
M2C_FIELD(arg0, s32 *, 0x234) = 0xE30000;
M2C_FIELD(M2C_FIELD(arg0, void **, 0x20), s16 *, 0x10) = 0;
func_801474EC(arg0);
func_801474D8(arg0);
func_801472C8(arg0);
func_80146CA0(arg0);
}
+15
View File
@@ -0,0 +1,15 @@
/* func_80158F00 — shared body (overlay slot 0x80128158, h_exact 6450992e). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80158F00(int param_1) {
int *self = (int *)param_1;
struct Actor *act = (struct Actor *)self[0x20 / 4];
int gate = D_8018E85C;
act->timer = (u16)((act->timer + 0x16) & 0xfff);
if (gate == 0) {
s32 r = rand();
*(s32 *)(param_1 + 0x198) = func_8013767C(D_801815E8[r % 0xb]);
((void (*)(int))func_80146CA0)(param_1);
}
}
+25
View File
@@ -0,0 +1,25 @@
/* func_80158FA4 — shared body (overlay slot 0x80128158, h_exact 1e7a4e71). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80158FA4(s32 param_1)
{
s32 v0;
s16 sVar1;
v0 = *(s32 *)(param_1 + 0x20);
*(u16 *)(v0 + 0x12) = (*(u16 *)(v0 + 0x12) + 0x16) & 0xfff;
if (((s32 (*)(void))func_80148800)() & 0xf0) {
D_8018E860 = 1;
}
if (func_801399F0(*(s32 *)(param_1 + 0x198)) != 0) {
func_80139914(*(s32 *)(param_1 + 0x198));
*(s32 *)(param_1 + 0x198) = 0;
sVar1 = ((s32 (*)(s32))func_80159464)(param_1);
if (sVar1 != 0) {
func_801594E8(param_1, sVar1);
((void (*)(s32, s32))func_80146C98)(param_1, 0xc);
} else {
*(s32 *)(param_1 + 0x198) = ((s32 (*)(u8 *))func_8013767C)(&(*(u8 *)&D_80110C3C));
((void (*)(s32))func_80146CA0)(param_1);
}
}
}
+16
View File
@@ -0,0 +1,16 @@
/* func_8015934C — shared body (overlay slot 0x80128158, h_exact 8531ecc4). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8015934C(void *arg0) {
void *temp_v1;
if (D_8018E850 == 4) {
D_8018E850 = 5;
}
if (D_8018E858 != 0) {
func_80145BF8();
func_80146CA0(arg0);
D_800AE6BD += 1;
}
temp_v1 = M2C_FIELD(arg0, void **, 0x20);
M2C_FIELD(temp_v1, u16 *, 0x12) = (u16) ((M2C_FIELD(temp_v1, u16 *, 0x12) + 0x16) & 0xFFF);
}
+22
View File
@@ -0,0 +1,22 @@
/* func_80159464 — shared body (overlay slot 0x80128158, h_exact 08b70f0d). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_80159464(void) {
Entry *e;
e = D_80181650;
while (e->id != 0) {
if (currentLocationId == e->id) {
return e->val;
}
e++;
}
if (func_80029A94(1) != 0) {
goto ret0;
}
if (func_80029A94(0) != 0) {
goto ret0;
}
return -1;
ret0:
return 0;
}
+21
View File
@@ -0,0 +1,21 @@
/* func_80159BE4 — shared body (overlay slot 0x80128158, h_exact 1cf147fb). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80159BE4(s32 arg0)
{
int v;
((void (*)(int, void *))func_80146DB8)(arg0, &D_80181878);
if ((*(unsigned int *)(arg0 + 0x44) & 0x200) != 0) {
func_80154150(arg0, 5);
func_80154A74(arg0, 0x1C);
} else {
func_80154150(arg0, 4);
func_80154A74(arg0, 0x11);
}
*(int *)(arg0 + 0x234) = 0;
*(int *)(arg0 + 0x238) = 0;
func_801553C0(arg0);
((void (*)(int))func_801553A8)(arg0);
((void (*)(int))func_80172590)(arg0);
((void (*)(int))func_80146CA0)(arg0);
}
+17
View File
@@ -0,0 +1,17 @@
/* func_8015D104 — shared body (overlay slot 0x80128158, h_exact ae9e650f). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8015D104(void *arg0) {
((void (*)(void))func_80149FB0)();
((void (*)(void *))func_8014FA04)(arg0);
if (((s32 (*)(void *))func_8014E6A0)(arg0) == 0) {
D_80181914[*(u16 *)arg0](arg0);
((void (*)(void *, s16))func_80147078)(arg0, 0);
func_80159B70(arg0);
} else {
((void (*)(void *))func_801725F4)(arg0);
*(s32 *)((u8 *)arg0 + 0x234) = 0xFF1D0000;
*(u16 *)(*(s32 *)((u8 *)arg0 + 0x20) + 0x10) = 0x600;
*(u16 *)((u8 *)arg0 + 0x244) = *(u16 *)(*(s32 *)((u8 *)arg0 + 0x20) + 0x10);
func_80146CA0(arg0);
}
}
+13
View File
@@ -0,0 +1,13 @@
/* func_8015D380 — shared body (overlay slot 0x80128158, h_exact 95fbfaa8). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8015D380(s32 a0) {
s16 out[4];
s32 buf[8];
register s32 s1 __asm__("$17") = a0;
register s32 *s0 __asm__("$16") = buf;
((void (*)(void *))func_80013F3C)((void *)s0);
((void (*)(void *, s32))func_80012558)((void *)s0, *(s16 *)(*(s32 *)(s1 + 0x20) + 0x12));
((void (*)(void *, s32))func_800126C4)((void *)s0, *(s16 *)(*(s32 *)(s1 + 0x20) + 0x10));
ApplyMatrixSV((void *)s0, (void *)&D_80181B44, (void *)out);
memcpy((void *)(s1 + 0x138), (void *)out, 8);
}
+15
View File
@@ -0,0 +1,15 @@
/* func_8015D414 — shared body (overlay slot 0x80128158, h_exact 15eb5ba2). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8015D414(int param_1)
{
*(unsigned char *)(param_1 + 0x1bd) = 8;
*(unsigned char **)(param_1 + 0x38) = D_80180C28;
*(short *)(param_1 + 0x138) = 0;
*(short *)(param_1 + 0x13a) = 0;
*(short *)(param_1 + 0x13c) = 0;
*(short *)(param_1 + 0x13e) = 0;
*(short *)(param_1 + 0xA) = *(short *)(param_1 + 0xA) + 0x48;
*(short *)(*(int *)(param_1 + 0x20) + 0x10) = 0;
((void (*)(void))func_801553C0)();
func_80154A74(param_1, 0x11);
}
+17
View File
@@ -0,0 +1,17 @@
/* func_8015DBD4 — shared body (overlay slot 0x80128158, h_exact 83daff82). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8015DBD4(void *arg0) {
if (*(u16 *)((u8 *)arg0 + 0xB8) & 0x4000) {
((void (*)(void))func_8015DD74)();
}
if (*(u16 *)((u8 *)arg0 + 0xB8) == 0x8000) {
D_80181914[*(u16 *)arg0](arg0);
((void (*)(void *, s16))func_80147078)(arg0, 0);
func_80159B70(arg0);
} else {
if (*(s32 *)((u8 *)arg0 + 0x178) != 0) {
((void (*)(void *))func_8015DCB8)(arg0);
}
((s32 (*)(void *))func_80161208)(arg0);
}
}
+17
View File
@@ -0,0 +1,17 @@
/* func_8015DF34 — shared body (overlay slot 0x80128158, h_exact ad0c1369). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8015DF34(void *arg0) {
if (*(u16 *)((u8 *)arg0 + 0xB8) & 0x4000) {
((void (*)(void))func_8015E0D4)();
}
if (*(u16 *)((u8 *)arg0 + 0xB8) == 0x8000) {
D_80181914[*(u16 *)arg0](arg0);
((void (*)(void *, s16))func_80147078)(arg0, 0);
func_80159B70(arg0);
} else {
if (*(s32 *)((u8 *)arg0 + 0x178) != 0) {
((void (*)(void *))func_8015E018)(arg0);
}
((s32 (*)(void *))func_80161208)(arg0);
}
}
+19
View File
@@ -0,0 +1,19 @@
/* func_8015E344 — shared body (overlay slot 0x80128158, h_exact 6a040027). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8015E344(u16 *param_1)
{
((s32 (*)(void))func_8015E40C)();
if (((s32 (*)(u16 *))func_80161B18)(param_1) == 0 &&
((s32 (*)(u16 *))func_80161B84)(param_1) == 0 &&
((s32 (*)(u16 *))func_80161208)(param_1) == 0) {
if ((param_1[0x5c] & 0x4000) != 0) {
((void (*)(u16 *))func_8015E5B0)(param_1);
*(s32 *)((char *)param_1 + 0x234) = 1;
}
if ((param_1[0x5c] & 0x8000) != 0) {
((void (**)(u16*))D_80181914)[param_1[0]](param_1);
((s32 (*)(u16 *, s32))func_80147078)(param_1, 0);
((s32 (*)(u16 *))func_80159BE4)(param_1);
}
}
}
+10
View File
@@ -0,0 +1,10 @@
/* func_8015E698 — shared body (overlay slot 0x80128158, h_exact 33c63185). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8015E698(u16 *param_1)
{
if (func_80161208() == 0 && (param_1[0x5c] & 0x8000) != 0) {
((void (**)(u16*))D_80181914)[param_1[0]](param_1);
((void (*)(u16 *, s32))func_80147078)(param_1, 0);
((void (*)(u16 *))func_80159BE4)(param_1);
}
}
+11
View File
@@ -0,0 +1,11 @@
/* func_8015EE7C — shared body (overlay slot 0x80128158, h_exact b34f471c). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8015EE7C(s32 param_1)
{
((int (*)(void))func_8014CBF8)();
((int (*)(int))func_801474EC)(param_1);
((int (*)(int, void *))func_80154274)(param_1, &D_800D4C48);
((int (*)(int, void *))func_80146DB8)(param_1, &D_801818F8);
((int (*)(int, int))func_801477E8)(param_1, 0xFFF40000);
((int (*)(int))func_80146CA0)(param_1);
}
+18
View File
@@ -0,0 +1,18 @@
/* func_8015EEE0 — shared body (overlay slot 0x80128158, h_exact 05ff1db5). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8015EEE0(void *arg0)
{
((void (*)(void *, s32))func_80148038)(arg0, 0x10000);
((void (*)(void *))func_80147460)(arg0);
((void (*)(void *, s32, s32, s32))func_80147AD4)(arg0, 0, 0, 0x1000);
((void (*)(void *))func_801473EC)(arg0);
if (*(u16 *)((u8 *)arg0 + 0xB8) & 0x8000) {
D_80181914[*(u16 *)arg0](arg0);
((void (*)(void *, s32))func_80147078)(arg0, 0);
func_80159B70(arg0);
} else {
if (((s32 (*)(void *))func_80161418)(arg0) == 0) {
((void (*)(void *))func_801725A4)(arg0);
}
}
}
+16
View File
@@ -0,0 +1,16 @@
/* func_8015F89C — shared body (overlay slot 0x80128158, h_exact 610b5f14). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8015F89C(void *arg0) {
u16 flags = *(u16 *)((u8 *)arg0 + 0xB8);
if (!(flags & 0x4000)) {
if (flags & 0x8000) {
D_80181914[*(u16 *)arg0](arg0);
func_80147078(arg0, 0);
func_80159B70(arg0);
return;
}
} else {
func_801466F0(1, arg0, 0, -0x1E, 0, 0, 0, 0);
}
((s32 (*)(void *))func_80161208)(arg0);
}
+11
View File
@@ -0,0 +1,11 @@
/* func_8015F9A4 — shared body (overlay slot 0x80128158, h_exact 76dde591). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8015F9A4(void *arg0) {
if (*(u16 *)((u8 *)arg0 + 0xB8) & 0x8000) {
D_80181914[*(u16 *)arg0](arg0);
func_80147078(arg0, 0);
func_80159B70(arg0);
} else {
((s32 (*)(void *))func_80161208)(arg0);
}
}
+17
View File
@@ -0,0 +1,17 @@
/* func_8015FCC8 — shared body (overlay slot 0x80128158, h_exact 87a5e0ba). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8015FCC8(void *param_1) {
if ((D_800AE6B0 & 0x80FFFFFF) != 0) {
((void (*)(void))func_8016007C)();
D_80181914[*(u16 *)param_1](param_1);
((void (*)(void *, s32))func_80147078)(param_1, 0);
func_80159B70(param_1);
} else {
*(u8 *)((s32)param_1 + 0x197) = 0;
*(u8 *)((s32)param_1 + 0xBE) = 0;
*(u8 *)((s32)param_1 + 0xBF) = 0;
*(u8 *)((s32)param_1 + 0x1A0) = (u8)*(s32 *)((s32)param_1 + 0x184);
((s32 (*)(void *, s32))func_8014BFF4)(param_1, 1);
func_80146CA0(param_1);
}
}
+18
View File
@@ -0,0 +1,18 @@
/* func_8015FE70 — shared body (overlay slot 0x80128158, h_exact bbab5a5a). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8015FE70(u16 *param_1)
{
if ((param_1[0x5c] & 0x8000) != 0) {
if (param_1[0x5d] == 0) {
((void (**)())D_80181914)[param_1[0]]();
((void (*)(u16 *, s16))func_80147078)(param_1, 0);
((void (*)(u16 *))func_80159B70)(param_1);
return;
}
param_1[0x5c] = param_1[0x5d];
}
if ((param_1[0x5c] & 0x4000) != 0) {
((void (*)(u16 *, s16))func_80154A74)(param_1, 0x11);
}
((void (*)(u16 *))func_80161208)(param_1);
}
+12
View File
@@ -0,0 +1,12 @@
/* func_801602A4 — shared body (overlay slot 0x80128158, h_exact b32c8455). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_801602A4(s32 *a0) {
if (*(u16 *)((u8 *)a0 + 0xB8) == 0x8000) {
((void (**)())D_80181914)[*(u16 *)a0]();
func_80154A74((s32)a0, 0x11);
((void (*)(s32, s32))func_80147078)((s32)a0, 0);
func_80159B70(a0);
} else {
((s32 (*)(s32 *))func_80161208)(a0);
}
}
+15
View File
@@ -0,0 +1,15 @@
/* func_80160920 — shared body (overlay slot 0x80128158, h_exact f19f7444). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80160920(unsigned short *param_1)
{
if ((((int (*)(void))func_801487F4)() & 8) == 0) {
((code *)D_80181914)[*param_1](param_1);
((void (*)(unsigned short *))func_80160A74)(param_1);
} else {
if (((int (*)(unsigned short *))func_80161208)(param_1) == 0 && param_1[0x5c] == 0x8000) {
((void (*)(unsigned short *, int))func_80154150)(param_1, 0x25);
((void (*)(unsigned short *))func_80146CA0)(param_1);
}
}
return;
}
+10
View File
@@ -0,0 +1,10 @@
/* func_801609B8 — shared body (overlay slot 0x80128158, h_exact 7e8f4287). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_801609B8(u16 *param_1) {
if ((((u32 (*)(void))func_801487F4)() & 8) == 0) {
((void (**)(u16*))D_80181914)[*param_1](param_1);
((void (*)(u16 *))func_80160A74)(param_1);
} else {
((void (*)(u16 *))func_80161208)(param_1);
}
}
+18
View File
@@ -0,0 +1,18 @@
/* func_80161C24 — shared body (overlay slot 0x80128158, h_exact 38230eb9). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80161C24(int param_1, int param_2)
{
extern unsigned short D_80181D30[];
extern unsigned short D_80181D32[];
if ((unsigned int)param_2 < 8) {
if (*(u8 *)(param_1 + 0xDA) != 0) {
func_80147324(D_80181D30[(unsigned int)param_2 * 2]);
*(u8 *)(param_1 + 0xDA) = 0;
} else {
func_80147324(D_80181D32[(unsigned int)param_2 * 2]);
*(u8 *)(param_1 + 0xDA) = 1;
}
}
}
+10
View File
@@ -0,0 +1,10 @@
/* func_80161D88 — shared body (overlay slot 0x80128158, h_exact 41d070a3). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80161D88(void) {
if ((D_800AE6B0 & 0x80FFFFFF) == 0 && (D_800AE6A8 & 0x80FFFFFF) == 0 &&
(func_80029178(0x141) & 0xFF) != 0) {
func_80029124(0x141, 0);
func_80029124(0x95, 1);
func_800D1734(&D_80181DB4);
}
}
+17
View File
@@ -0,0 +1,17 @@
/* func_801622C4 — shared body (overlay slot 0x80128158, h_exact 994a7377). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_801622C4(void)
{
int *p;
int i;
((int (*)(int, int))func_80029124)(0x141, 1);
((int (*)(int, int))func_800291C8)(8, 0);
i = 0;
p = &D_8018E868;
do {
((int (*)(int, int))func_80016714)(*p, 0x38);
p = p + 1;
i = i + 1;
} while (i < 3);
}
+11
View File
@@ -0,0 +1,11 @@
/* func_80162870 — shared body (overlay slot 0x80128158, h_exact de1c9bc5). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80162870(s32 param_1) {
*(s32 *)(param_1 + 8) = (s32)&D_800B5CB8;
func_8001CB6C(&D_800B5CB8, (s32)&D_80181E10, 0x250, 0x1A0);
D_800B5CEC = param_1 + 0xC;
D_800B5CDF = 0x14;
D_800B5CBC |= 0x60000000;
func_80162968(param_1);
func_80162ACC((u8 *)param_1);
}
+24
View File
@@ -0,0 +1,24 @@
/* func_801647A4 — shared body (overlay slot 0x80128158, h_exact 1eeea95d). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_801647A4(int param_1) {
s32 iVar1;
iVar1 = ((s32 (*)(void))func_8014659C)();
*(s32 *)(param_1 + 0x20) = iVar1;
if (iVar1 != 0) {
((void (*)(s32, void *))func_8001C810)(iVar1, &D_800DF2E0);
*(s32 **)(iVar1 + 0x80) = &D_80181E44;
*(u32 *)(iVar1 + 4) = *(u32 *)(iVar1 + 4) | 0x50000000;
*(u16 *)(iVar1 + 0x2c) = *(u16 *)(iVar1 + 0x2c) | 0xb0;
D_80181E78 = 0x80;
D_80181E76 = 0x80;
D_80181E74 = 0x80;
*(u16 *)(iVar1 + 0x1a) = 0;
*(u16 *)(param_1 + 0x60) = 0;
*(u16 *)(param_1 + 0x62) = 0x200;
((s32 (*)(s32))func_80164A74)(param_1);
((void (*)(s32))func_80146CA0)(param_1);
} else {
func_80164930(param_1);
}
}
+17
View File
@@ -0,0 +1,17 @@
/* func_80165140 — shared body (overlay slot 0x80128158, h_exact 2718b2e5). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_80165140(s32 param_1) {
extern Slot_80165140 D_8018E960[8];
int i;
Slot_80165140 *p;
for (i = 0; i < 8; i++) {
p = &D_8018E960[i];
if (p->used == 0) {
p->used = 8;
p->a = *(B8_80165140 *)(((u8 *)param_1) + 0x2c);
p->b = *(B4_80165140 *)(((u8 *)param_1) + 0x50);
return;
}
}
}
+23
View File
@@ -0,0 +1,23 @@
/* func_801651B8 — shared body (overlay slot 0x80128158, h_exact b905c751). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_801651B8(void * param_1)
{
register s32 *puVar1 __asm__("$16"); /* $s0 */
register s32 iVar2 __asm__("$17"); /* $s1 */
register s32 p __asm__("$18"); /* $s2 */
p = param_1;
((s32 (*)(s32, s32, s32))func_80165240)(p, p + 0x2c, p + 0x50);
iVar2 = 0;
puVar1 = &D_8018E960;
do {
if (puVar1[3] != 0) {
s32 a0v = p;
__asm__ __volatile__("" : "=r"(a0v) : "0"(a0v));
((s32 (*)(s32, s32, s32))func_80165240)(a0v, (s32)puVar1, (s32)(puVar1 + 2));
puVar1[3] = puVar1[3] + -1;
}
iVar2 = iVar2 + 1;
puVar1 = puVar1 + 4;
} while (iVar2 < 8);
}
+10
View File
@@ -0,0 +1,10 @@
/* func_80165580 — shared body (overlay slot 0x80128158, h_exact 7088316d). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80165580(s32 _arg0)
{
if (D_80078EC5 & 0x80) {
((void (*)(void))func_80165B28)();
} else {
D_80181EDC[D_80078EC1 & 0x7F]();
}
}
+6
View File
@@ -0,0 +1,6 @@
/* func_80165E2C — shared body (overlay slot 0x80128158, h_exact 1f54f802). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80165E2C(u16 *arg0) {
func_8001534C(0, &D_8018E128, 0x80, 0x80, 0, 0);
func_800153CC(1, *arg0, 0xA8, 0x80, 0x40, 0);
}
+20
View File
@@ -0,0 +1,20 @@
/* func_801681FC — shared body (overlay slot 0x80128158, h_exact 9cf18f49). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_801681FC(s32 param_1) {
extern u8 D_8018220C[];
extern u8 D_801821DC[];
extern u8 D_801821DD[];
s32 iVar3;
s32 a3;
*(s16 *)(param_1 + 0x28) = func_80029178(0x81) & 0xFF;
*(s32 *)(param_1 + 0x30) = D_8018220C[*(s32 *)(param_1 + 0x2C)];
iVar3 = (*(s32 *)(param_1 + 0x2C) << 0x11) >> 0x10;
*(s16 *)(param_1 + 0x2A) = D_801821DC[iVar3];
*(s32 *)(param_1 + 0x1C) = D_801821DD[iVar3];
a3 = *(s32 *)(param_1 + 0x2C) & 1;
*(s32 *)(param_1 + 0x2C) = a3;
((void (*)(s32, s32, s32, s32))func_80166F58)(param_1, 4, 4, a3);
*(s16 *)(param_1 + 2) = *(s16 *)(param_1 + 2) + 1;
}
+16
View File
@@ -0,0 +1,16 @@
/* func_80168430 — shared body (overlay slot 0x80128158, h_exact 64c1a81e). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80168430(s32 param_1) {
extern u8 D_80182218[];
extern u8 D_801821F0[];
extern u8 D_801821F1[];
s32 iVar1;
*(s32 *)(param_1 + 0x30) = D_80182218[*(s32 *)(param_1 + 0x2C)];
iVar1 = (*(s32 *)(param_1 + 0x2C) << 0x11) >> 0x10;
*(s16 *)(param_1 + 0x2A) = D_801821F0[iVar1];
*(s32 *)(param_1 + 0x1C) = D_801821F1[iVar1];
((void (*)(s32, s32, s32, s32))func_80166F58)(param_1, 5, 0x3B, 2);
*(s16 *)(param_1 + 2) = *(s16 *)(param_1 + 2) + 1;
}
+22
View File
@@ -0,0 +1,22 @@
/* func_80169F3C — shared body (overlay slot 0x80128158, h_exact a4abc210). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80169F3C(int param_1)
{
int iVar1;
((int (*)(int, int))func_800D1FC8)(param_1, 6);
iVar1 = func_800D21C4(param_1, D_80182308, 0x16);
if (iVar1 != 0) {
*(int *)(param_1 + 0x20) = iVar1;
*(short *)(iVar1 + 0x1a) = 0x2000;
*(short *)(iVar1 + 0x18) = 0x2000;
*(char *)(iVar1 + 0x26) = 0x60;
*(char *)(iVar1 + 0x25) = 0x60;
*(char *)(iVar1 + 0x24) = 0x60;
*(unsigned int *)(iVar1 + 4) = *(unsigned int *)(iVar1 + 4) | 0x50000000;
((void (*)(int, int, void *))func_80128EA8)(iVar1, param_1 + 0x24, D_801822C8);
*(short *)(param_1 + 2) = *(short *)(param_1 + 2) + 1;
} else {
((void (*)(int))func_80146C3C)(param_1);
}
}
+40
View File
@@ -0,0 +1,40 @@
/* func_8016B4F8 — shared body (overlay slot 0x80128158, h_exact 0b2cc462). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8016B4F8(int param_1)
{
int iVar1;
int uVar2;
volatile int buf[2];
((void (*)(int, void *))func_80015978)(param_1 + 4, &D_8018EC80);
if (func_8016B9F8(param_1) == 0) {
*(int *)(param_1 + 0x18) = 0;
*(int *)(param_1 + 0x14) = 0;
*(int *)(param_1 + 0x10) = 0;
iVar1 = func_8016B834(param_1, 0);
*(int *)(param_1 + 0x10) = iVar1;
if (iVar1 != 0) {
iVar1 = func_8016B834(param_1, 1);
*(int *)(param_1 + 0x14) = iVar1;
if (iVar1 != 0) {
iVar1 = func_8016B834(param_1, 2);
*(int *)(param_1 + 0x18) = iVar1;
if (iVar1 != 0) goto success;
}
}
}
((void (*)(int))func_8016B984)(param_1);
return;
success:
func_8016B91C(param_1);
uVar2 = *(int *)(param_1 + 0x2c);
if (uVar2 == 0) {
uVar2 = 0xf0;
} else {
uVar2 = 0x2d0;
}
*(int *)(param_1 + 0x1c) = uVar2;
uVar2 = *(unsigned short *)(param_1 + 2);
uVar2 = uVar2 + 1;
*(unsigned short *)(param_1 + 2) = uVar2;
}
+23
View File
@@ -0,0 +1,23 @@
/* func_8016BCC0 — shared body (overlay slot 0x80128158, h_exact 04061c8b). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8016BCC0(void *arg0) {
u16 temp_a2;
u16 temp_v0;
void *temp_s0;
temp_s0 = M2C_FIELD(arg0, void **, 0x20);
func_8016BF50();
temp_a2 = M2C_FIELD(arg0, u16 *, 0x10) + 0x60;
M2C_FIELD(arg0, u16 *, 0x10) = temp_a2;
temp_v0 = M2C_FIELD(temp_s0, u16 *, 0x1A) + temp_a2;
M2C_FIELD(temp_s0, u16 *, 0x1A) = temp_v0;
M2C_FIELD(temp_s0, u16 *, 0x18) = temp_v0;
M2C_FIELD(temp_s0, u16 *, 0x12) = (u16) ((M2C_FIELD(temp_s0, u16 *, 0x12) + 0x71) & 0xFFF);
func_8016BFA8(arg0, &D_8018EDBC, &D_8018EDC0, temp_s0 + 0x18);
if ((s16) M2C_FIELD(temp_s0, u16 *, 0x1A) >= 0x1001) {
M2C_FIELD(temp_s0, u16 *, 0x18) = 0x1000U;
M2C_FIELD(temp_s0, u16 *, 0x1A) = 0x1000U;
func_80146E90(arg0, M2C_FIELD(arg0, s32 *, 0x30));
M2C_FIELD(arg0, u16 *, 2) = (u16) (M2C_FIELD(arg0, u16 *, 2) + 1);
}
}
+20
View File
@@ -0,0 +1,20 @@
/* func_8016BEA0 — shared body (overlay slot 0x80128158, h_exact 0a1f8b82). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_8016BEA0(s32 param_1)
{
extern void func_8016BF50(void);
int iVar2;
unsigned short uVar1;
iVar2 = *(int *)(((int)param_1) + 0x20);
func_8016BF50();
uVar1 = *(unsigned short *)(((int)param_1) + 0x10) - 0x18;
*(unsigned short *)(((int)param_1) + 0x10) = uVar1;
*(unsigned short *)(iVar2 + 0x1a) = *(unsigned short *)(iVar2 + 0x1a) + uVar1;
*(unsigned short *)(iVar2 + 0x12) = (*(unsigned short *)(iVar2 + 0x12) + 0x22) & 0xfff;
((void (*)(int, void *, void *, int))func_8016BFA8)(((int)param_1), &(*(int *)&D_8018EDBC), &(*(int *)&D_8018EDC0), iVar2 + 0x18);
if (*(short *)(iVar2 + 0x1a) < 0) {
((void (*)(int))func_80146C3C)(((int)param_1));
}
}
+29
View File
@@ -0,0 +1,29 @@
/* func_8016C2C4 — shared body (overlay slot 0x80128158, h_exact ee79a1cc). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8016C2C4(s32 param)
{
register s32 s1 __asm__("$17");
register s32 s0 __asm__("$16");
u16 buf[3];
s16 v;
s32 r;
s32 arg;
s1 = param;
s0 = *(s32 *)(s1 + 0x20);
arg = *(s32 *)(s1 + 0x34);
buf[0] = *(u16 *)(s1 + 0x12);
buf[1] = *(u16 *)(s1 + 0x16);
buf[2] = *(u16 *)(s1 + 0x1a);
((void (*)(s32, void *, void *))func_80149350)(arg, buf, buf);
((void (*)(void *, s32))func_80015954)(buf, s1 + 4);
v = *(s16 *)(s1 + 0x10) + 0x10;
*(s16 *)(s1 + 0x10) = v;
v = *(s16 *)(s0 + 0x1a) + v;
*(s16 *)(s0 + 0x1a) = v;
*(s16 *)(s0 + 0x18) = v;
r = ((s32 (*)(s32, void *, void *, void *))func_8016C374)(s1, D_8018EDC4, D_8018EDCC, D_8018ED7C);
if (r == 0) {
((void (*)(s32))func_80146C3C)(s1);
}
}
+22
View File
@@ -0,0 +1,22 @@
/* func_8016DA7C — shared body (overlay slot 0x80128158, h_exact 00aabb3f). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8016DA7C(s32 param_1)
{
s32 iVar1;
iVar1 = ((s32 (*)(void))func_801465C0)();
if (iVar1 == 0) {
((void (*)(s32))func_80146C3C)(param_1);
} else {
*(s32 *)(param_1 + 0x20) = iVar1;
((void (*)(s32, s32, s32, s32))func_8001CC3C)(iVar1, (s32)&D_80182518, 0x250, 0x100);
*(u8 *)(iVar1 + 0x27) = 0x90;
*(u16 *)(iVar1 + 0x18) = 0x3000;
*(u16 *)(iVar1 + 0x1a) = 0x4000;
*(u32 *)(iVar1 + 4) = *(u32 *)(iVar1 + 4) | 0x50000000;
func_80128EA8(iVar1, param_1 + 0x24, (s32)&D_80182524);
*(s32 *)(param_1 + 0x10) = 0;
*(s32 *)(param_1 + 0x14) = 0xfff40000;
*(s16 *)(param_1 + 2) = *(s16 *)(param_1 + 2) + 1;
}
}
+12
View File
@@ -0,0 +1,12 @@
/* func_8016E95C — shared body (overlay slot 0x80128158, h_exact 11c325ba). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_8016E95C() {
extern Handler D_80182644[];
struct Entry_8016E95C *p;
for (p = ((struct Entry_8016E95C *)&D_80115218); p < &((struct Entry_8016E95C *)&D_80115218)[4]; p++) {
if (p->f0 != 0) {
D_80182644[p->f1](p);
}
}
}
+15
View File
@@ -0,0 +1,15 @@
/* func_8016EAC0 — shared body (overlay slot 0x80128158, h_exact 8bfcb845). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8016EAC0(Wave *param_1)
{
unsigned char bVar1;
param_1->f4 = param_1->f4 + D_80182638[param_1->f2];
((void (*)(void *, int))func_8016EC0C)(param_1, 0x80);
bVar1 = param_1->f2 + 1;
param_1->f2 = bVar1;
if (5 < bVar1) {
param_1->f2 = 0x20;
param_1->f1 = param_1->f1 + 1;
}
}
+14
View File
@@ -0,0 +1,14 @@
/* func_8016EB3C — shared body (overlay slot 0x80128158, h_exact a0fff8a5). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_8016EB3C(s32 p) {
u8 v;
((void (*)(s32, s32))func_8016EC0C)(p, D_80182628[*(u8 *)(p + 2) & 3]);
v = *(u8 *)(p + 2);
*(u8 *)(p + 2) = v + 0xFF;
if (v == 0) {
*(u8 *)(p + 2) = 5;
*(u8 *)(p + 1) = *(u8 *)(p + 1) + 1;
}
}
+31
View File
@@ -0,0 +1,31 @@
/* func_8016F1C4 — shared body (overlay slot 0x80128158, h_exact ba8761c6). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
s32 func_8016F1C4(void) {
s32 *p;
s32 cur;
s32 loc;
s32 v;
s32 *base = &D_80126B58;
p = &D_80182654;
cur = *p;
if (cur != 0) {
loc = currentLocationId;
p = p + 1;
for (;;) {
if (loc == cur) {
return 1;
}
cur = *p;
p = p + 1;
if (cur == 0) {
break;
}
}
}
v = base[0x7E];
if (((v & 0x80FFFFFF) != 0) && ((v & 0x10000000) != 0)) {
return 0;
}
return base[0x7E] & 0x80FFFFFF;
}
+13
View File
@@ -0,0 +1,13 @@
/* func_80173220 — shared body (overlay slot 0x80128158, h_exact c174c056). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80173220(void * arg0)
{
if (M2C_FIELD(arg0, u16 *, 0xB8) & 0x4000) {
func_80147324(0x516);
func_80019064(&D_801827F0);
}
if (M2C_FIELD(arg0, u16 *, 0xB8) & 0x8000) {
func_80171A1C(arg0);
func_80174650(arg0);
}
}
+22
View File
@@ -0,0 +1,22 @@
/* func_801734BC — shared body (overlay slot 0x80128158, h_exact 0a1baba1). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_801734BC(s32 arg0, s32 _unused1) {
extern void func_80173544(void);
extern s16 D_80126B40;
s16 temp;
switch (((u32)arg0)) {
case 0: temp = -0x4; break;
case 1: temp = -0x8; break;
case 2: temp = -0x12; break;
case 3: temp = -0x18; break;
case 4: temp = -0x1C; break;
default: goto after;
}
D_80126B32 = temp;
after:
D_80126B3E = 0;
D_80126B40 = 0;
func_80174684(&func_80173544);
}
+15
View File
@@ -0,0 +1,15 @@
/* func_80174BF4 — shared body (overlay slot 0x80128158, h_exact 7354cf5d). ONE source: instantiated by #include at each
* member's site in address order; the members are recorded in config/dedup.us.yaml (Phase 35). */
void func_80174BF4(void * arg0)
{
M2C_FIELD(arg0, s32 *, 0xC) = 0x12C;
M2C_FIELD(arg0, s32 *, 0x14) = 0x12C;
M2C_FIELD(arg0, s16 *, 0x20) = 0x155;
M2C_FIELD(arg0, s16 *, 0x22) = 0x800;
M2C_FIELD(arg0, s16 *, 0x24) = 0;
M2C_FIELD(arg0, s16 *, 0x2E) = 0;
M2C_FIELD(arg0, s16 *, 0x30) = -0x28;
M2C_FIELD(arg0, s16 *, 0x32) = 0;
M2C_FIELD(arg0, s32 *, 0x54) = 0;
D_801828F0[M2C_FIELD(arg0, u8 *, 4)]();
}

Some files were not shown because too many files have changed in this diff Show More