//
// sub_1006653E0 from 0x1006653e0 to 0x100665408 (40 bytes)
//
// 7 xrefs:
// > sub_100643E44 @ 0x100643ff0
// > sub_100643E44 @ 0x1006446dc
// > sub_100648704 @ 0x100648958
// > sub_100654DEC @ 0x100654f98
// > sub_100654DEC @ 0x100655138
// > sub_100654DEC @ 0x100655244
// > sub_1006575E0 @ 0x100657638
//
// 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:11:00 +0000
//
__int64 __fastcall sub_1006653E0(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x8
if ( !a1 )
return 0;
result = *(_QWORD *)(a1 + 184);
if ( !result )
{
v3 = *(_QWORD *)(a1 + 368);
if ( !v3 )
return 0;
result = *(_QWORD *)(v3 + 8);
if ( !result )
return 0;
}
return result;
}