//
// sub_1007608 from 0x1007608 to 0x1007680 (120 bytes)
//
// 3 xrefs:
// > ??> @ 0x1400388
// > ??> @ 0x14003b0
// > ??> @ 0x14003d8
//
// 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:15:57 +0000
//
__int64 __fastcall sub_1007608(__int64 a1, __int64 *a2)
{
unsigned int v2; // w19
bool v3; // zf
__int64 result; // x0
__int64 v5; // x0
v2 = a1;
if ( (_DWORD)a1 )
{
v3 = (_DWORD)a1 == 2;
result = 1;
if ( v3 )
{
DSA_free(*a2);
*a2 = 0;
return v2;
}
}
else
{
v5 = DSA_new(a1);
*a2 = v5;
if ( v5 )
return 2;
else
return 0;
}
return result;
}