//
// sub_7D678 from 0x7d678 to 0x7d76e (246 bytes)
//
// 1 xrefs:
// > sub_7B924 @ 0x7b93e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:41:15 +0000
//
int sub_7D678()
{
int v0; // r12
_UNKNOWN **v1; // r8
char *v2; // r1
int v3; // lr
int v4; // r10
_BYTE *v5; // r6
int v6; // r11
char *v7; // r9
char *v8; // r4
int v9; // r5
char v10; // t1
int i; // r4
float *v12; // r5
int v13; // r6
float v14; // s18
float v15; // r0
v0 = 0;
v1 = &off_40630;
v2 = (char *)&off_E5B20;
while ( v0 != 3 )
{
v3 = 0;
v4 = dword_4064C[v0];
v5 = *(&off_E5B20 + v0);
while ( v3 < v4 )
{
v6 = 0;
v7 = (char *)&off_40630 + 9 * v0;
v2 = &v7[v3];
while ( v6 != v4 )
{
v8 = (char *)v1;
v9 = v4;
while ( v9 )
{
--v9;
v10 = *v8++;
v5[2] = *v2;
v5[1] = v7[v6];
*v5 = v10;
v5 += 3;
}
++v6;
}
++v3;
}
v1 = (_UNKNOWN **)((char *)v1 + 9);
++v0;
}
for ( i = 0; i != 27; ++i )
{
v12 = (float *)((char *)&unk_FA8D0 + 256 * i);
v13 = 63;
v14 = flt_405C4[i];
while ( v13 )
{
v15 = exp2f((float)(v13 - 60) * 0.33333, v2);
--v13;
*v12++ = v15 * v14;
}
*v12 = 0.0;
}
return 0;
}