//
// sub_10008C698 from 0x10008c698 to 0x10008c7ac (276 bytes)
//
// 2 xrefs:
// > sub_1001EEAA4 @ 0x1001eeae8
// > sub_1001F00E4 @ 0x1001f0108
//
// 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:21 +0000
//
char *__fastcall sub_10008C698(__int64 a1)
{
char *v2; // x19
int v3; // w0
int v4; // w20
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v7; // [xsp+10h] [xbp-20h]
v2 = (char *)operator new(0x300u);
FLAlertLayer::FLAlertLayer((__int64)v2);
*(_QWORD *)v2 = off_1008C9AD8;
*((_QWORD *)v2 + 40) = off_1008CA058;
*((_QWORD *)v2 + 41) = &off_1008CA0C8;
*((_QWORD *)v2 + 42) = off_1008CA0E0;
*((_QWORD *)v2 + 43) = off_1008CA100;
*((_QWORD *)v2 + 44) = off_1008CA128;
*((_QWORD *)v2 + 51) = off_1008CA158;
*((_QWORD *)v2 + 54) = off_1008CA1D8;
*((_QWORD *)v2 + 68) = off_1008CA1F8;
*((_QWORD *)v2 + 83) = off_1008CA240;
*((_QWORD *)v2 + 84) = &off_1008CA260;
*((_QWORD *)v2 + 95) = 0;
*(_OWORD *)(v2 + 680) = 0u;
*(_OWORD *)(v2 + 696) = 0u;
*(_OWORD *)(v2 + 712) = 0u;
*(_OWORD *)(v2 + 728) = 0u;
*(_OWORD *)(v2 + 744) = 0u;
if ( *(char *)(a1 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a1, *(_QWORD *)(a1 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a1;
v7 = *(_QWORD *)(a1 + 16);
}
v3 = sub_10008C7D4(v2, __p);
v4 = v3;
if ( SHIBYTE(v7) < 0 )
{
operator delete(__p[0]);
if ( v4 )
goto LABEL_6;
LABEL_8:
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
if ( !v3 )
goto LABEL_8;
LABEL_6:
cocos2d::CCObject::autorelease(v2);
return v2;
}