//
// sub_1005E3538 from 0x1005e3538 to 0x1005e3588 (80 bytes)
//
// 5 xrefs:
// > sub_100564A9C @ 0x100564b0c
// > sub_1005F4FC0 @ 0x1005f52b8
// > sub_1005F4FC0 @ 0x1005f52cc
// > sub_1005F4FC0 @ 0x1005f52e0
// > sub_1005F4FC0 @ 0x1005f52f0
//
// 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:09:41 +0000
//
__int64 __fastcall sub_1005E3538(__int64 a1)
{
__int64 result; // x0
result = *(_QWORD *)(a1 + 8);
if ( result )
{
result = sub_1005CD520(result, 0, 0, 4u);
if ( !(_DWORD)result )
{
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 8) + 16LL))(*(_QWORD *)(a1 + 8));
if ( !(_DWORD)result )
*(_QWORD *)(a1 + 8) = 0;
}
}
return result;
}