//
// sub_7678F0 from 0x7678f0 to 0x767970 (128 bytes)
//
// 1 xrefs:
// > sub_7696C4 @ 0x7696e6
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_7678F0(int a1, int *a2)
{
int v3; // r0
int v4; // r7
int v5; // r5
int result; // r0
unsigned int *v7; // r0
unsigned int *v8; // r4
v3 = sub_756B58(&dword_ACDD90);
v4 = *(_DWORD *)(*a2 + 12);
v5 = v3;
result = *(_DWORD *)(v4 + 4 * v3);
if ( !result )
{
v7 = (unsigned int *)operator new(0x70u);
v7[1] = 0;
v7[2] = 0;
v7[3] = 0;
*v7 = (unsigned int)&off_A2E440;
v8 = v7;
*((_BYTE *)v7 + 16) = 0;
v7[5] = 0;
v7[6] = 0;
v7[7] = 0;
v7[8] = 0;
v7[9] = 0;
v7[10] = 0;
v7[11] = 0;
v7[12] = 0;
v7[13] = 0;
*((_BYTE *)v7 + 56) = 0;
*((_BYTE *)v7 + 57) = 0;
*((_BYTE *)v7 + 58) = 0;
*((_BYTE *)v7 + 59) = 0;
*((_BYTE *)v7 + 60) = 0;
*((_BYTE *)v7 + 61) = 0;
*((_BYTE *)v7 + 62) = 0;
*((_BYTE *)v7 + 63) = 0;
*((_BYTE *)v7 + 108) = 0;
sub_764B1C((int)v7, (int)a2);
sub_756A4C(*a2, v8, v5);
return *(_DWORD *)(v4 + 4 * v5);
}
return result;
}