//
// sub_1004C4638 from 0x1004c4638 to 0x1004c4730 (248 bytes)
//
// 1 xrefs:
// > sub_1001B2548 @ 0x1001b25b4
//
// 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:22 +0000
//
char *__fastcall sub_1004C4638(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
char *v8; // x19
v8 = (char *)operator new(0x438u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v8);
*(_QWORD *)v8 = off_1009854F0;
*((_QWORD *)v8 + 40) = off_100985AE0;
*((_QWORD *)v8 + 41) = &off_100985B50;
*((_QWORD *)v8 + 42) = off_100985B68;
*((_QWORD *)v8 + 43) = off_100985B88;
*((_QWORD *)v8 + 44) = off_100985BB0;
*((_QWORD *)v8 + 51) = off_100985BE0;
*((_QWORD *)v8 + 54) = off_100985C60;
*((_QWORD *)v8 + 68) = off_100985C80;
*((_QWORD *)v8 + 83) = &off_100985CC8;
*((_QWORD *)v8 + 84) = off_100985CE0;
*((_DWORD *)v8 + 260) = 0;
*(_OWORD *)(v8 + 1016) = 0u;
*(_QWORD *)(v8 + 1029) = 0;
*(_OWORD *)(v8 + 1048) = 0u;
*(_OWORD *)(v8 + 1064) = 0u;
if ( (unsigned int)sub_1004C4744(v8, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease((__int64)v8);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v8 + 16LL))(v8);
return nullptr;
}
return v8;
}