//
// cocos2d::CCRemoveSelf::create from 0x180030720 to 0x180030780 (96 bytes)
//
// 3 xrefs:
// > cocos2d::CCRemoveSelf::reverse @ 0x180030cf4
// > ??> @ 0x18014cf68
// > ??> @ 0x1801ba1ec
//
// 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 11:21:33 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCRemoveSelf *__fastcall cocos2d::CCRemoveSelf::create(char a1)
{
cocos2d::CCAction *v2; // rax
cocos2d::CCAction *v3; // rbx
v2 = (cocos2d::CCAction *)sub_1800E4AC0(0x60u);
v3 = v2;
if ( v2 )
{
cocos2d::CCAction::CCAction(v2);
*((_DWORD *)v3 + 20) = 0;
*(_QWORD *)v3 = &cocos2d::CCRemoveSelf::`vftable';
}
else
{
v3 = nullptr;
}
if ( v3 )
{
*((_BYTE *)v3 + 88) = a1;
cocos2d::CCObject::autorelease(v3);
}
return v3;
}