//
// cocos2d::extension::CCControl::create from 0x180003b40 to 0x180003b9a (90 bytes)
//
// 3 xrefs:
// > ??> @ 0x180032408
// > ??> @ 0x18004b2f4
// > ??> @ 0x18004b300
//
// 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:15:35 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::extension::CCControl *__fastcall cocos2d::extension::CCControl::create()
{
cocos2d::extension::CCControl *v0; // rax
cocos2d::CCObject *v1; // rbx
cocos2d::extension::CCControl *v3; // [rsp+30h] [rbp+8h]
v3 = (cocos2d::extension::CCControl *)sub_18001F040(0x1D8u);
v0 = cocos2d::extension::CCControl::CCControl(v3);
v1 = v0;
if ( v0 )
{
if ( (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCControl *))(*(_QWORD *)v0 + 72LL))(v0) )
{
cocos2d::CCObject::autorelease(v1);
return v1;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v1 + 8LL))(v1, 1);
}
return nullptr;
}