//
// sub_1004A9BA8 from 0x1004a9ba8 to 0x1004a9c68 (192 bytes)
//
// 1 xrefs:
// > GameSettingsLayer::onCustomButton @ 0x100167100
//
// 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:06:06 +0000
//
void *sub_1004A9BA8()
{
void *v0; // x19
v0 = operator new(0x2C0u);
bzero(v0, 0x2C0u);
FLAlertLayer::FLAlertLayer((__int64)v0);
*(_QWORD *)v0 = &off_1009801F0;
*((_QWORD *)v0 + 40) = off_100980748;
*((_QWORD *)v0 + 41) = &off_1009807B8;
*((_QWORD *)v0 + 42) = off_1009807D0;
*((_QWORD *)v0 + 43) = off_1009807F0;
*((_QWORD *)v0 + 44) = off_100980818;
*((_QWORD *)v0 + 51) = off_100980848;
*((_QWORD *)v0 + 54) = off_1009808C8;
*((_QWORD *)v0 + 68) = off_1009808E8;
*((_QWORD *)v0 + 83) = &off_100980930;
*((_BYTE *)v0 + 672) = 0;
*((_QWORD *)v0 + 85) = 0;
*((_QWORD *)v0 + 87) = 0;
*((_QWORD *)v0 + 86) = 0;
if ( (unsigned int)ClearPlatformerSavesPopup::init(v0) )
{
cocos2d::CCObject::autorelease((__int64)v0);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return v0;
}