//
// sub_10007AFF0 from 0x10007aff0 to 0x10007b108 (280 bytes)
//
// 1 xrefs:
// > sub_10007A984 @ 0x10007ab10
//
// 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 10:58:15 +0000
//
char *__fastcall sub_10007AFF0(__int64 a1, __int64 a2)
{
char *v4; // x19
int v5; // w0
int v6; // w20
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
__int64 v9; // [xsp+10h] [xbp-30h]
v4 = (char *)operator new(0x2E8u);
FLAlertLayer::FLAlertLayer((__int64)v4);
*((_DWORD *)v4 + 170) = 0;
*(_OWORD *)(v4 + 664) = 0u;
*((_OWORD *)v4 + 43) = 0u;
*((_OWORD *)v4 + 44) = 0u;
*(_QWORD *)v4 = off_1008C5AA8;
*((_QWORD *)v4 + 40) = off_1008C6000;
*((_QWORD *)v4 + 41) = &off_1008C6070;
*((_QWORD *)v4 + 42) = off_1008C6088;
*((_QWORD *)v4 + 43) = off_1008C60A8;
*((_QWORD *)v4 + 44) = off_1008C60D0;
*((_QWORD *)v4 + 51) = off_1008C6100;
*((_QWORD *)v4 + 54) = off_1008C6180;
*((_QWORD *)v4 + 68) = off_1008C61A0;
*((_OWORD *)v4 + 45) = 0u;
*((_DWORD *)v4 + 184) = 0;
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v9 = *(_QWORD *)(a2 + 16);
}
v5 = sub_10007B234(v4, a1, __p);
v6 = v5;
if ( SHIBYTE(v9) < 0 )
{
operator delete(__p[0]);
if ( v6 )
goto LABEL_6;
LABEL_8:
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
if ( !v5 )
goto LABEL_8;
LABEL_6:
cocos2d::CCObject::autorelease(v4);
return v4;
}