//
// sub_1001AC0E4 from 0x1001ac0e4 to 0x1001ac15c (120 bytes)
//
// 2 xrefs:
// > UIPOptionsLayer::init @ 0x100380d50
// > sub_10052BC30 @ 0x10052bc9c
//
// 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:00:06 +0000
//
__int64 __fastcall sub_1001AC0E4(__int64 a1, __int64 a2)
{
__int64 v4; // x0
__int64 result; // x0
v4 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 480LL))(*(_QWORD *)(a1 + 584), 1);
if ( v4 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 344LL))(v4, a2);
result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 480LL))(*(_QWORD *)(a1 + 584), 3);
if ( result )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 344LL))(result, a2);
return result;
}