{"type": "func", "start": 6442480160, "end": 6442480250, "name": "cocos2d::extension::CCControlButton::create", "pseudocode": "// \n// cocos2d::extension::CCControlButton::create from 0x180007220 to 0x18000727a (90 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b6b4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:36 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::extension::CCControlButton *__fastcall cocos2d::extension::CCControlButton::create()\n{\n  cocos2d::extension::CCControlButton *v0; // rax\n  cocos2d::CCObject *v1; // rbx\n  cocos2d::extension::CCControlButton *v3; // [rsp+30h] [rbp+8h]\n\n  v3 = (cocos2d::extension::CCControlButton *)sub_18001F040(0x238u);\n  v0 = cocos2d::extension::CCControlButton::CCControlButton(v3);\n  v1 = v0;\n  if ( v0 )\n  {\n    if ( (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_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::CCControlButton::create from 0x180007220 to 0x18000727a (90 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b6b4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:36 +0000\n; \npush    rbx                                                            ; +0x0, 0x180007220\nsub     rsp, 20h                                                       ; +0x2, 0x180007222\nmov     ecx, 238h; Size                                                ; +0x6, 0x180007226\ncall    sub_18001F040                                                  ; +0xb, 0x18000722b\nmov     [rsp+28h+arg_0], rax                                           ; +0x10, 0x180007230\nmov     rcx, rax; this                                                 ; +0x15, 0x180007235\ncall    ??0CCControlButton@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCControlButton::CCControlButton(void) ; +0x18, 0x180007238\nmov     rbx, rax                                                       ; +0x1d, 0x18000723d\ntest    rax, rax                                                       ; +0x20, 0x180007240\njz      short loc_180007272                                            ; +0x23, 0x180007243\nmov     rcx, [rax]                                                     ; +0x25, 0x180007245\nmov     rdx, [rcx+48h]                                                 ; +0x28, 0x180007248\nmov     rcx, rax                                                       ; +0x2c, 0x18000724c\ncall    rdx                                                            ; +0x2f, 0x18000724f\nmov     rcx, rbx                                                       ; +0x31, 0x180007251\ntest    al, al                                                         ; +0x34, 0x180007254\njz      short loc_180007267                                            ; +0x36, 0x180007256\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x38, 0x180007258\nmov     rax, rbx                                                       ; +0x3e, 0x18000725e\nadd     rsp, 20h                                                       ; +0x41, 0x180007261\npop     rbx                                                            ; +0x45, 0x180007265\nretn                                                                   ; +0x46, 0x180007266\nmov     rax, [rbx]                                                     ; +0x47, 0x180007267\nmov     edx, 1                                                         ; +0x4a, 0x18000726a\ncall    qword ptr [rax+8]                                              ; +0x4f, 0x18000726f\nxor     eax, eax                                                       ; +0x52, 0x180007272\nadd     rsp, 20h                                                       ; +0x54, 0x180007274\npop     rbx                                                            ; +0x58, 0x180007278\nretn                                                                   ; +0x59, 0x180007279", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004b6b4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}