//
// sub_10052E6E0 from 0x10052e6e0 to 0x10052e7b8 (216 bytes)
//
// 1 xrefs:
// > sub_10052D154 @ 0x10052d160
//
// 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:07:19 +0000
//
void *__fastcall sub_10052E6E0(__int64 a1, __int64 a2)
{
void *v4; // x19
double v5; // d0
v4 = operator new(0x408u);
bzero(v4, 0x408u);
v5 = SetupTriggerPopup::SetupTriggerPopup((__int64)v4);
*(_QWORD *)v4 = &off_1009A39A8;
*((_QWORD *)v4 + 40) = off_1009A3F98;
*((_QWORD *)v4 + 41) = &off_1009A4008;
*((_QWORD *)v4 + 42) = off_1009A4020;
*((_QWORD *)v4 + 43) = off_1009A4040;
*((_QWORD *)v4 + 44) = off_1009A4068;
*((_QWORD *)v4 + 51) = off_1009A4098;
*((_QWORD *)v4 + 54) = off_1009A4118;
*((_QWORD *)v4 + 68) = off_1009A4138;
*((_QWORD *)v4 + 83) = &off_1009A4180;
*((_QWORD *)v4 + 84) = off_1009A4198;
*((_QWORD *)v4 + 127) = 0;
*((_BYTE *)v4 + 1024) = 0;
if ( (unsigned int)sub_10052E974(v4, a1, a2, v5) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}