//
// sub_A2908 from 0xa2908 to 0xa298c (132 bytes)
//
// 1 xrefs:
// > sub_A1F14 @ 0xa1f14
//
// 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:14:30 +0000
//
__int64 __fastcall sub_A2908(__int64 a1)
{
unsigned __int16 *v1; // x21
int v2; // w8
unsigned int v3; // w19
__int64 v5; // x0
v1 = *(unsigned __int16 **)(a1 + 552);
if ( !v1 )
return 39;
v2 = *v1;
v3 = 39;
if ( v2 != 1 && v2 != 3 )
{
if ( v2 != 65534 )
return v3;
v5 = ((__int64 (*)(void))sub_A2CBC)();
if ( (_DWORD)v5 && (unsigned int)sub_A2CBC(v5, &unk_4D9C0) )
return 39;
}
if ( v1[7] == 8 )
return 39;
else
return 0;
}