//
// sub_68674 from 0x68674 to 0x68708 (148 bytes)
//
// 2 xrefs:
// > sub_68164 @ 0x68258
// > sub_6975C @ 0x69760
//
// 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 12:13:56 +0000
//
__int64 __fastcall sub_68674(__int64 a1, __int64 a2, char a3)
{
__int64 v7; // x0
__int64 v8; // x8
__int64 v9; // x2
if ( !a2 )
return 31;
if ( *(_QWORD *)(a2 + 36) != a1 )
return 34;
v7 = sub_59598(a2);
if ( !*(_DWORD *)(a2 + 52) )
{
((void (__fastcall *)(_UNKNOWN **__return_ptr, __int64))loc_69D3C)(&off_114000, v7);
sub_E2D74(*(_QWORD *)(*(_QWORD *)v8 + 432LL), a2, v9, 2362, 1);
}
--*(_DWORD *)(a1 + 228);
if ( (a3 & 1) == 0 )
sub_696E0(a1);
return 0;
}