//
// sub_C67A74 from 0xc67a74 to 0xc67b00 (140 bytes)
//
// 2 xrefs:
// > sub_C68F90 @ 0xc68f90
// > sub_C68F90 @ 0xc68f98
//
// 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_C67A74(__int64 a1)
{
__int64 v1; // x20
unsigned int v3; // w21
void (__fastcall *v4)(__int64, __int64, _QWORD); // x3
v1 = *(_QWORD *)(a1 + 56);
if ( *(int *)(a1 + 16) <= 0 || *(int *)(a1 + 12) <= 0 )
return 0;
v3 = (*(__int64 (**)(void))(v1 + 472))();
v4 = *(void (__fastcall **)(__int64, __int64, _QWORD))(v1 + 480);
if ( v4 )
v4(a1, v1, v3);
*(_DWORD *)(v1 + 32) += v3;
return 1;
}