{"type": "func", "start": 6442467648, "end": 6442467735, "name": "cocos2d::extension::CCControl::create", "pseudocode": "// \n// cocos2d::extension::CCControl::create from 0x180004140 to 0x180004197 (87 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x1800493b4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::extension::CCControl *__fastcall cocos2d::extension::CCControl::create()\n{\n  cocos2d::extension::CCControl *v0; // rax\n  cocos2d::CCObject *v1; // rbx\n  cocos2d::extension::CCControl *v3; // [rsp+30h] [rbp+8h]\n\n  v3 = (cocos2d::extension::CCControl *)operator new(0x1D8u);\n  v0 = cocos2d::extension::CCControl::CCControl(v3);\n  v1 = v0;\n  if ( v0 )\n  {\n    if ( (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCControl *))(*(_QWORD *)v0 + 72LL))(v0) )\n    {\n      cocos2d::CCObject::autorelease(v1);\n      return v1;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v1 + 8LL))(v1, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::extension::CCControl::create from 0x180004140 to 0x180004197 (87 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x1800493b4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x180004140\nsub     rsp, 20h                                                       ; +0x2, 0x180004142\nmov     ecx, 1D8h; Size                                                ; +0x6, 0x180004146\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb, 0x18000414b\nmov     [rsp+28h+arg_0], rax                                           ; +0x10, 0x180004150\nmov     rcx, rax; this                                                 ; +0x15, 0x180004155\ncall    ??0CCControl@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCControl::CCControl(void) ; +0x18, 0x180004158\nmov     rbx, rax                                                       ; +0x1d, 0x18000415d\ntest    rax, rax                                                       ; +0x20, 0x180004160\njz      short loc_18000418F                                            ; +0x23, 0x180004163\nmov     rdx, [rax]                                                     ; +0x25, 0x180004165\nmov     rcx, rax                                                       ; +0x28, 0x180004168\ncall    qword ptr [rdx+48h]                                            ; +0x2b, 0x18000416b\nmov     rcx, rbx                                                       ; +0x2e, 0x18000416e\ntest    al, al                                                         ; +0x31, 0x180004171\njz      short loc_180004184                                            ; +0x33, 0x180004173\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x35, 0x180004175\nmov     rax, rbx                                                       ; +0x3b, 0x18000417b\nadd     rsp, 20h                                                       ; +0x3e, 0x18000417e\npop     rbx                                                            ; +0x42, 0x180004182\nretn                                                                   ; +0x43, 0x180004183\nmov     rax, [rbx]                                                     ; +0x44, 0x180004184\nmov     edx, 1                                                         ; +0x47, 0x180004187\ncall    qword ptr [rax+8]                                              ; +0x4c, 0x18000418c\nxor     eax, eax                                                       ; +0x4f, 0x18000418f\nadd     rsp, 20h                                                       ; +0x51, 0x180004191\npop     rbx                                                            ; +0x55, 0x180004195\nretn                                                                   ; +0x56, 0x180004196", "xrefs": ["<???> @ 0x18002fdf8", "<???> @ 0x1800493b4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}