//
// sub_10037FFB8 from 0x10037ffb8 to 0x1003800b0 (248 bytes)
//
// 1 xrefs:
// > CreatorLayer::onAdventureMap @ 0x1000dbb3c
//
// 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:03:30 +0000
//
_QWORD *__fastcall sub_10037FFB8(__int64 a1)
{
_QWORD *v2; // x19
int v3; // w0
int v4; // w20
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v7; // [xsp+10h] [xbp-20h]
v2 = operator new(0x2B0u);
FLAlertLayer::FLAlertLayer((__int64)v2);
*v2 = off_10093BAB8;
v2[40] = off_10093C008;
v2[41] = &off_10093C078;
v2[42] = off_10093C090;
v2[43] = off_10093C0B0;
v2[44] = off_10093C0D8;
v2[51] = off_10093C108;
v2[54] = off_10093C188;
v2[68] = off_10093C1A8;
v2[83] = 0;
v2[85] = 0;
v2[84] = 0;
if ( *(char *)(a1 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a1, *(_QWORD *)(a1 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a1;
v7 = *(_QWORD *)(a1 + 16);
}
v3 = sub_1003800D8(v2, __p);
v4 = v3;
if ( SHIBYTE(v7) < 0 )
{
operator delete(__p[0]);
if ( v4 )
goto LABEL_6;
LABEL_8:
(*(void (__fastcall **)(_QWORD *))(*v2 + 16LL))(v2);
return nullptr;
}
if ( !v3 )
goto LABEL_8;
LABEL_6:
cocos2d::CCObject::autorelease((__int64)v2);
return v2;
}