//
// sub_78D12 from 0x78d12 to 0x78d94 (130 bytes)
//
// 1 xrefs:
// > sub_792FC @ 0x7933a
//
// 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_78D12(int a1)
{
_DWORD *v2; // r6
_DWORD *v3; // r9
int v4; // r5
v3 = (_DWORD *)(a1 + 16);
v2 = *(_DWORD **)(a1 + 16);
while ( v3 != v2 )
{
v4 = (int)v2;
v2 = (_DWORD *)*v2;
if ( *(_DWORD *)(v4 + 408) )
{
sub_77FCC(v4);
*(float *)(v4 + 464) = *(float *)(v4 + 464) + *(float *)(**(_DWORD **)(a1 + 12) + 11540);
sub_78310(v4);
*(float *)(v4 + 520) = *(float *)(v4 + 520) + *(float *)(**(_DWORD **)(a1 + 12) + 11540);
sub_785D0(v4);
*(float *)(v4 + 416) = *(float *)(v4 + 416) + *(float *)(**(_DWORD **)(a1 + 12) + 11540);
}
}
return 0;
}