//
// sub_EDDC34 from 0xeddc34 to 0xeddcc0 (140 bytes)
//
// 2 xrefs:
// > sub_EDF150 @ 0xedf150
// > sub_EDF150 @ 0xedf158
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:11:47 +0000
//
__int64 __fastcall sub_EDDC34(__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;
}