{"type": "func", "start": 6442473568, "end": 6442473665, "name": "cocos2d::extension::CCControlButton::create", "pseudocode": "// \n// cocos2d::extension::CCControlButton::create from 0x180005860 to 0x1800058c1 (97 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b4a4\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:35 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::extension::CCControlButton *__fastcall cocos2d::extension::CCControlButton::create(\n        struct cocos2d::CCNode *a1,\n        struct cocos2d::extension::CCScale9Sprite *a2)\n{\n  cocos2d::extension::CCControlButton *v4; // rbx\n  cocos2d::extension::CCControlButton *v6; // [rsp+40h] [rbp+18h]\n\n  v6 = (cocos2d::extension::CCControlButton *)sub_18001F040(0x238u);\n  v4 = cocos2d::extension::CCControlButton::CCControlButton(v6);\n  (*(void (__fastcall **)(cocos2d::extension::CCControlButton *, struct cocos2d::CCNode *, struct cocos2d::extension::CCScale9Sprite *))(*(_QWORD *)v4 + 1184LL))(\n    v4,\n    a1,\n    a2);\n  cocos2d::CCObject::autorelease(v4);\n  return v4;\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::create from 0x180005860 to 0x1800058c1 (97 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b4a4\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:35 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180005860\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180005865\npush    rdi                                                            ; +0xa, 0x18000586a\nsub     rsp, 20h                                                       ; +0xb, 0x18000586b\nmov     rdi, rdx                                                       ; +0xf, 0x18000586f\nmov     rsi, rcx                                                       ; +0x12, 0x180005872\nmov     ecx, 238h; Size                                                ; +0x15, 0x180005875\ncall    sub_18001F040                                                  ; +0x1a, 0x18000587a\nmov     [rsp+28h+arg_10], rax                                          ; +0x1f, 0x18000587f\nmov     rcx, rax; this                                                 ; +0x24, 0x180005884\ncall    ??0CCControlButton@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCControlButton::CCControlButton(void) ; +0x27, 0x180005887\nmov     rbx, rax                                                       ; +0x2c, 0x18000588c\nmov     r8, [rax]                                                      ; +0x2f, 0x18000588f\nmov     r9, [r8+4A0h]                                                  ; +0x32, 0x180005892\nmov     r8, rdi                                                        ; +0x39, 0x180005899\nmov     rdx, rsi                                                       ; +0x3c, 0x18000589c\nmov     rcx, rax                                                       ; +0x3f, 0x18000589f\ncall    r9                                                             ; +0x42, 0x1800058a2\nmov     rcx, rbx                                                       ; +0x45, 0x1800058a5\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x48, 0x1800058a8\nmov     rax, rbx                                                       ; +0x4e, 0x1800058ae\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x1800058b1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x56, 0x1800058b6\nadd     rsp, 20h                                                       ; +0x5b, 0x1800058bb\npop     rdi                                                            ; +0x5f, 0x1800058bf\nretn                                                                   ; +0x60, 0x1800058c0", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004b4a4"], "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"}