//
// sub_1008C8A20 from 0x1008c8a20 to 0x1008c8b19 (249 bytes)
//
// 1 xrefs:
// > EditorPauseLayer::onDeathStats @ 0x10027e84b
//
// This function is hookable on this platform (idp: pc, 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 12:37:33 +0000
//
char *__fastcall sub_1008C8A20(__int64 a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x428u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v1);
*(_QWORD *)v1 = off_100BB04C8;
*((_QWORD *)v1 + 40) = off_100BB0AB8;
*((_QWORD *)v1 + 41) = &off_100BB0B28;
*((_QWORD *)v1 + 42) = off_100BB0B40;
*((_QWORD *)v1 + 43) = off_100BB0B60;
*((_QWORD *)v1 + 44) = off_100BB0B88;
*((_QWORD *)v1 + 51) = off_100BB0BB8;
*((_QWORD *)v1 + 54) = off_100BB0C38;
*((_QWORD *)v1 + 68) = off_100BB0C58;
*((_QWORD *)v1 + 83) = &off_100BB0CA0;
*((_QWORD *)v1 + 84) = off_100BB0CB8;
*(_OWORD *)(v1 + 1016) = 0;
*(_OWORD *)(v1 + 1032) = 0;
*(_OWORD *)(v1 + 1044) = 0;
if ( (unsigned __int8)sub_1008C8B30(v1, a1) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}