//
// sub_1006E62DC from 0x1006e62dc to 0x1006e63a4 (200 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009bd410
//
// 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 11:12:36 +0000
//
bool __fastcall sub_1006E62DC(__int64 a1, __int64 *a2)
{
__int64 *v2; // x19
void **v4; // x20
_QWORD *v5; // x0
_QWORD *v6; // x22
_BOOL8 v7; // x21
v2 = a2;
if ( a2 )
{
v4 = nullptr;
}
else
{
v2 = (__int64 *)sub_1006D1C30();
v4 = (void **)v2;
if ( !v2 )
{
sub_100706FB0(16, 159, 65, "ec2_smpl.c", 300);
return 0;
}
}
sub_1006D1DF8((__int64)v2);
v5 = sub_1006D1F64(v2);
v6 = v5;
if ( v5 )
{
if ( (unsigned int)sub_1006DA5BC((__int64)v5, (__int64 *)(a1 + 176), (int *)(a1 + 128)) )
v7 = *((_DWORD *)v6 + 2) != 0;
else
v7 = 0;
}
else
{
v7 = 0;
}
sub_1006D1EE0((__int64)v2);
if ( v4 )
sub_1006D1C94(v4);
return v7;
}