//
// sub_1008FD440 from 0x1008fd440 to 0x1008fd596 (342 bytes)
//
// 2 xrefs:
// > EditorPauseLayer::onEditorSounds @ 0x10027e802
// > EditorUI::handleEditorAction @ 0x10060c19c
//
// 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:38:01 +0000
//
char *__fastcall sub_1008FD440(__int64 a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x498u);
__bzero(v1, 1176);
SetupTriggerPopup::SetupTriggerPopup((__int64)v1);
*(_OWORD *)(v1 + 1048) = 0;
*(_OWORD *)(v1 + 1032) = 0;
*(_OWORD *)(v1 + 1016) = 0;
*((_QWORD *)v1 + 133) = 0xFFFFFFFF00000000LL;
*((_OWORD *)v1 + 67) = 0;
*(_QWORD *)v1 = off_100BB7648;
*((_QWORD *)v1 + 40) = off_100BB7C40;
*((_QWORD *)v1 + 41) = &off_100BB7CB0;
*((_QWORD *)v1 + 42) = off_100BB7CC8;
*((_QWORD *)v1 + 43) = off_100BB7CE8;
*((_QWORD *)v1 + 44) = off_100BB7D10;
*((_QWORD *)v1 + 51) = off_100BB7D40;
*((_QWORD *)v1 + 54) = off_100BB7DC0;
*((_QWORD *)v1 + 68) = off_100BB7DE0;
*((_QWORD *)v1 + 83) = &off_100BB7E28;
*((_QWORD *)v1 + 84) = off_100BB7E40;
*((_OWORD *)v1 + 68) = 0;
*((_OWORD *)v1 + 69) = 0;
*((_OWORD *)v1 + 70) = 0;
*((_QWORD *)v1 + 142) = 0;
*((_DWORD *)v1 + 286) = -1;
*((_OWORD *)v1 + 72) = 0;
v1[1168] = 0;
if ( (unsigned __int8)sub_1008FD5B0(v1, a1) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}