//
// sub_100058B18 from 0x100058b18 to 0x100058bec (212 bytes)
//
// 1 xrefs:
// > sub_100057EC0 @ 0x100057ed4
//
// 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:57:46 +0000
//
_QWORD *__fastcall sub_100058B18(__int64 a1, __int64 a2, __int64 a3)
{
_QWORD *v6; // x19
double v7; // d0
v6 = operator new(0x408u);
v7 = SetupTriggerPopup::SetupTriggerPopup((__int64)v6);
*v6 = &off_1008BE000;
v6[40] = off_1008BE5F0;
v6[41] = &off_1008BE660;
v6[42] = off_1008BE678;
v6[43] = off_1008BE698;
v6[44] = off_1008BE6C0;
v6[51] = off_1008BE6F0;
v6[54] = off_1008BE770;
v6[68] = off_1008BE790;
v6[83] = &off_1008BE7D8;
v6[84] = off_1008BE7F0;
v6[127] = 0;
*((_BYTE *)v6 + 1024) = 0;
if ( (unsigned int)sub_1000594B8(v6, a1, a2, a3, v7) )
{
cocos2d::CCObject::autorelease(v6);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v6 + 16LL))(v6);
return nullptr;
}
return v6;
}