//
// sub_10050D924 from 0x10050d924 to 0x10050da04 (224 bytes)
//
// 1 xrefs:
// > sub_10050D3E4 @ 0x10050d3fc
//
// 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:00 +0000
//
_QWORD *__fastcall sub_10050D924(__int64 a1, __int64 a2)
{
_QWORD *v4; // x19
v4 = operator new(0x438u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v4);
*v4 = off_100999E90;
v4[40] = off_10099A4C0;
v4[41] = &off_10099A530;
v4[42] = off_10099A548;
v4[43] = off_10099A568;
v4[44] = off_10099A590;
v4[51] = off_10099A5C0;
v4[54] = off_10099A640;
v4[68] = off_10099A660;
v4[83] = &off_10099A6A8;
v4[84] = off_10099A6C0;
v4[127] = off_10099A6E0;
*((_OWORD *)v4 + 64) = 0u;
*((_OWORD *)v4 + 65) = 0u;
*((_OWORD *)v4 + 66) = 0u;
*((_BYTE *)v4 + 1072) = 0;
if ( (unsigned int)sub_100510CBC(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v4 + 16LL))(v4);
return nullptr;
}
return v4;
}