//
// sub_1001AC730 from 0x1001ac730 to 0x1001ac85c (300 bytes)
//
// 2 xrefs:
// > TabbedPopupLayer::showTab @ 0x1001aa6f8
// > sub_1001AC4E8 @ 0x1001ac69c
//
// 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_1001AC730(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x20
__int64 v4; // x21
int v5; // w22
__int64 v6; // x23
__int64 v7; // x24
bool v8; // zf
__int64 v9; // x25
int v10; // w0
__int64 v11; // x0
__int64 v12; // x24
__int64 v13; // x0
result = sub_1002E757C(*(_QWORD *)(a1 + 928));
if ( (_DWORD)result )
{
result = sub_1002E757C(*(_QWORD *)(a1 + 928));
if ( (_DWORD)result )
{
v3 = 0;
do
{
v4 = sub_1002E75A0(*(_QWORD *)(a1 + 928), v3);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4);
if ( (unsigned int)sub_1002E757C(v4) )
{
v6 = 0;
do
{
v7 = sub_1002E75A0(v4, v6);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v7 + 352LL))(v7) )
v8 = v5 == 0;
else
v8 = 0;
if ( v8 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, 0);
v9 = *(_QWORD *)(a1 + 760);
v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 64LL))(v7);
v11 = cocos2d::CCDictionary::objectForKey_1(v9, v10);
if ( v11 )
{
v12 = v11;
v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 352LL))(v11);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 1000LL))(v12, v13);
}
v6 = (unsigned int)(v6 + 1);
}
while ( (unsigned int)v6 < (unsigned int)sub_1002E757C(v4) );
}
v3 = (unsigned int)(v3 + 1);
result = sub_1002E757C(*(_QWORD *)(a1 + 928));
}
while ( (unsigned int)v3 < (unsigned int)result );
}
}
return result;
}