//
// sub_C079B4 from 0xc079b4 to 0xc07a14 (96 bytes)
//
// 1 xrefs:
// > jinit_d_coef_controller @ 0xc07da8
//
// 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
//
__int64 __fastcall sub_C079B4(__int64 a1)
{
int v1; // w1
bool v2; // cc
_DWORD *v3; // x1
__int64 result; // x0
int v5; // w2
__int64 v6; // x0
v1 = *(_DWORD *)(a1 + 448);
*(_DWORD *)(a1 + 176) = 0;
v2 = v1 <= 1;
v3 = *(_DWORD **)(a1 + 592);
if ( v2 )
{
v5 = *(_DWORD *)(a1 + 432);
v6 = *(_QWORD *)(a1 + 456);
if ( v5 == 1 )
result = *(unsigned int *)(v6 + 76);
else
result = *(unsigned int *)(v6 + 12);
v3[12] = result;
v3[10] = 0;
v3[11] = 0;
}
else
{
v3[10] = 0;
v3[12] = 1;
v3[11] = 0;
return 1;
}
return result;
}