{"type": "func", "start": 6442473872, "end": 6442474025, "name": "cocos2d::extension::CCControlButton::create", "pseudocode": "// \n// cocos2d::extension::CCControlButton::create from 0x180005990 to 0x180005a29 (153 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b4bc\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=2\ncocos2d::extension::CCControlButton *__fastcall cocos2d::extension::CCControlButton::create(__int64 a1, __int64 a2)\n{\n  cocos2d::extension::CCControlButton *v4; // rbx\n  __int64 v5; // rax\n  cocos2d::extension::CCControlButton *v7; // [rsp+20h] [rbp-68h]\n  _BYTE v8[32]; // [rsp+28h] [rbp-60h] BYREF\n  __int64 v9; // [rsp+48h] [rbp-40h]\n\n  v9 = a1;\n  v7 = (cocos2d::extension::CCControlButton *)sub_18001F040(0x238u);\n  v4 = cocos2d::extension::CCControlButton::CCControlButton(v7);\n  v5 = sub_1800039B0((__int64)v8, a1);\n  (*(void (__fastcall **)(cocos2d::extension::CCControlButton *, __int64, __int64))(*(_QWORD *)v4 + 1192LL))(v4, v5, a2);\n  cocos2d::CCObject::autorelease(v4);\n  sub_180003700(a1);\n  return v4;\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::create from 0x180005990 to 0x180005a29 (153 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b4bc\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; \npush    rbx                                                            ; +0x0, 0x180005990\npush    rsi                                                            ; +0x2, 0x180005992\npush    rdi                                                            ; +0x3, 0x180005993\nsub     rsp, 70h                                                       ; +0x4, 0x180005994\nmovaps  [rsp+88h+var_28], xmm6                                         ; +0x8, 0x180005998\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x18000599d\nxor     rax, rsp                                                       ; +0x14, 0x1800059a4\nmov     [rsp+88h+var_38], rax                                          ; +0x17, 0x1800059a7\nmovaps  xmm6, xmm2                                                     ; +0x1c, 0x1800059ac\nmov     rdi, rdx                                                       ; +0x1f, 0x1800059af\nmov     rsi, rcx                                                       ; +0x22, 0x1800059b2\nmov     [rsp+88h+var_40], rcx                                          ; +0x25, 0x1800059b5\nmov     ecx, 238h; Size                                                ; +0x2a, 0x1800059ba\ncall    sub_18001F040                                                  ; +0x2f, 0x1800059bf\nmov     [rsp+88h+var_68], rax                                          ; +0x34, 0x1800059c4\nmov     rcx, rax; this                                                 ; +0x39, 0x1800059c9\ncall    ??0CCControlButton@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCControlButton::CCControlButton(void) ; +0x3c, 0x1800059cc\nmov     rbx, rax                                                       ; +0x41, 0x1800059d1\nmov     rdx, rsi                                                       ; +0x44, 0x1800059d4\nlea     rcx, [rsp+88h+var_60]                                          ; +0x47, 0x1800059d7\ncall    sub_1800039B0                                                  ; +0x4c, 0x1800059dc\nmov     rdx, [rbx]                                                     ; +0x51, 0x1800059e1\nmov     r9, [rdx+4A8h]                                                 ; +0x54, 0x1800059e4\nmovaps  xmm3, xmm6                                                     ; +0x5b, 0x1800059eb\nmov     r8, rdi                                                        ; +0x5e, 0x1800059ee\nmov     rdx, rax                                                       ; +0x61, 0x1800059f1\nmov     rcx, rbx                                                       ; +0x64, 0x1800059f4\ncall    r9                                                             ; +0x67, 0x1800059f7\nmov     rcx, rbx                                                       ; +0x6a, 0x1800059fa\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x6d, 0x1800059fd\nnop                                                                    ; +0x73, 0x180005a03\nmov     rcx, rsi                                                       ; +0x74, 0x180005a04\ncall    sub_180003700                                                  ; +0x77, 0x180005a07\nmov     rax, rbx                                                       ; +0x7c, 0x180005a0c\nmov     rcx, [rsp+88h+var_38]                                          ; +0x7f, 0x180005a0f\nxor     rcx, rsp; StackCookie                                          ; +0x84, 0x180005a14\ncall    __security_check_cookie                                        ; +0x87, 0x180005a17\nmovaps  xmm6, [rsp+88h+var_28]                                         ; +0x8c, 0x180005a1c\nadd     rsp, 70h                                                       ; +0x91, 0x180005a21\npop     rdi                                                            ; +0x95, 0x180005a25\npop     rsi                                                            ; +0x96, 0x180005a26\npop     rbx                                                            ; +0x97, 0x180005a27\nretn                                                                   ; +0x98, 0x180005a28", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004b4bc"], "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"}