// // cocos2d::CCComponent::create from 0x180099a00 to 0x180099ac3 (195 bytes) // // 2 xrefs: // > @ 0x18014cf68 // > @ 0x1801c0b4c // // 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:22:11 +0000 // // Hidden C++ exception states: #wind=1 struct cocos2d::CCComponent *__fastcall cocos2d::CCComponent::create() { cocos2d::CCObject *v0; // rax cocos2d::CCObject *v1; // rbx char (__fastcall *v2)(cocos2d::CCComponent *, void *); // rdx cocos2d::CCObject *(__fastcall *v3)(cocos2d::CCObject *, char); // r8 v0 = (cocos2d::CCObject *)sub_1800E4AC0(0x68u); v1 = v0; if ( v0 ) { cocos2d::CCObject::CCObject(v0); *(_QWORD *)v1 = &cocos2d::CCComponent::`vftable'; *((_QWORD *)v1 + 7) = 0; *((_OWORD *)v1 + 4) = 0; *((_QWORD *)v1 + 10) = 0; *((_QWORD *)v1 + 11) = 15; *((_BYTE *)v1 + 64) = 0; *((_BYTE *)v1 + 96) = 1; } else { v1 = nullptr; } if ( !v1 ) return v1; v2 = *(char (__fastcall **)(cocos2d::CCComponent *, void *))(*(_QWORD *)v1 + 72LL); if ( v2 == cocos2d::CCComponent::serialize || ((unsigned __int8 (__fastcall *)(cocos2d::CCObject *))v2)(v1) ) { cocos2d::CCObject::autorelease(v1); return v1; } v3 = *(cocos2d::CCObject *(__fastcall **)(cocos2d::CCObject *, char))(*(_QWORD *)v1 + 8LL); if ( v3 == sub_180099960 ) sub_180099960(v1, 1); else v3(v1, 1); return nullptr; }