//
// cocos2d::CCToggleVisibility::create from 0x1800307d0 to 0x180030820 (80 bytes)
//
// 3 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801ba1f8
// > ??> @ 0x1801ba204
//
// 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
//
struct cocos2d::CCToggleVisibility *__fastcall cocos2d::CCToggleVisibility::create()
{
cocos2d::CCAction *v0; // rax
cocos2d::CCAction *v1; // rbx
v0 = (cocos2d::CCAction *)sub_1800E4AC0(0x58u);
v1 = v0;
if ( v0 )
{
cocos2d::CCAction::CCAction(v0);
*((_DWORD *)v1 + 20) = 0;
*(_QWORD *)v1 = &cocos2d::CCToggleVisibility::`vftable';
}
else
{
v1 = nullptr;
}
if ( v1 )
cocos2d::CCObject::autorelease(v1);
return v1;
}