{"type": "func", "start": 6442473680, "end": 6442473868, "name": "cocos2d::extension::CCControlButton::initWithTitleAndFontNameAndFontSize", "pseudocode": "// \n// cocos2d::extension::CCControlButton::initWithTitleAndFontNameAndFontSize from 0x1800058d0 to 0x18000598c (188 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800266d0\n// > <???> @ 0x18002a648\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b4b0\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\n__int64 __fastcall cocos2d::extension::CCControlButton::initWithTitleAndFontNameAndFontSize(\n        __int64 a1,\n        const char *a2,\n        const char *a3,\n        float a4)\n{\n  const char *v6; // rcx\n  struct cocos2d::CCLabelTTF *v7; // rbp\n  __int64 v8; // rax\n  cocos2d::CCObject *v9; // rbx\n  unsigned __int8 v10; // bl\n  cocos2d::extension::CCScale9Sprite *v12; // [rsp+20h] [rbp-48h]\n\n  v6 = a2;\n  if ( *((_QWORD *)a2 + 3) > 0xFu )\n    v6 = *(const char **)a2;\n  v7 = cocos2d::CCLabelTTF::create(v6, a3, a4);\n  v12 = (cocos2d::extension::CCScale9Sprite *)sub_18001F040(0x210u);\n  v8 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v12);\n  v9 = (cocos2d::CCObject *)v8;\n  if ( !v8 )\n    goto LABEL_7;\n  if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v8 + 72LL))(v8) )\n  {\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);\nLABEL_7:\n    v9 = nullptr;\n    goto LABEL_8;\n  }\n  cocos2d::CCObject::autorelease(v9);\nLABEL_8:\n  v10 = (*(__int64 (__fastcall **)(__int64, struct cocos2d::CCLabelTTF *, cocos2d::CCObject *))(*(_QWORD *)a1 + 1184LL))(\n          a1,\n          v7,\n          v9);\n  sub_180003700((__int64)a2);\n  return v10;\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::initWithTitleAndFontNameAndFontSize from 0x1800058d0 to 0x18000598c (188 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800266d0\n; > <???> @ 0x18002a648\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b4b0\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, 0x1800058d0\npush    rbp                                                            ; +0x2, 0x1800058d2\npush    rsi                                                            ; +0x3, 0x1800058d3\npush    rdi                                                            ; +0x4, 0x1800058d4\nsub     rsp, 48h                                                       ; +0x5, 0x1800058d5\nmov     rax, cs:__security_cookie                                      ; +0x9, 0x1800058d9\nxor     rax, rsp                                                       ; +0x10, 0x1800058e0\nmov     [rsp+68h+var_38], rax                                          ; +0x13, 0x1800058e3\nmov     rdi, rdx                                                       ; +0x18, 0x1800058e8\nmov     rsi, rcx                                                       ; +0x1b, 0x1800058eb\nmov     [rsp+68h+var_40], rdx                                          ; +0x1e, 0x1800058ee\nmov     rcx, rdx                                                       ; +0x23, 0x1800058f3\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x26, 0x1800058f6\njbe     short loc_180005900                                            ; +0x2b, 0x1800058fb\nmov     rcx, [rdx]                                                     ; +0x2d, 0x1800058fd\nmovaps  xmm2, xmm3                                                     ; +0x30, 0x180005900\nmov     rdx, r8                                                        ; +0x33, 0x180005903\ncall    cs:?create@CCLabelTTF@cocos2d@@SAPEAV12@PEBD0M@Z; cocos2d::CCLabelTTF::create(char const *,char const *,float) ; +0x36, 0x180005906\nmov     rbp, rax                                                       ; +0x3c, 0x18000590c\nmov     ecx, 210h; Size                                                ; +0x3f, 0x18000590f\ncall    sub_18001F040                                                  ; +0x44, 0x180005914\nmov     [rsp+68h+var_48], rax                                          ; +0x49, 0x180005919\nmov     rcx, rax; this                                                 ; +0x4e, 0x18000591e\ncall    ??0CCScale9Sprite@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCScale9Sprite::CCScale9Sprite(void) ; +0x51, 0x180005921\nmov     rbx, rax                                                       ; +0x56, 0x180005926\ntest    rax, rax                                                       ; +0x59, 0x180005929\njz      short loc_180005954                                            ; +0x5c, 0x18000592c\nmov     rcx, [rax]                                                     ; +0x5e, 0x18000592e\nmov     rax, [rcx+48h]                                                 ; +0x61, 0x180005931\nmov     rcx, rbx                                                       ; +0x65, 0x180005935\ncall    rax                                                            ; +0x68, 0x180005938\nmov     rcx, rbx                                                       ; +0x6a, 0x18000593a\ntest    al, al                                                         ; +0x6d, 0x18000593d\njz      short loc_180005949                                            ; +0x6f, 0x18000593f\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x71, 0x180005941\njmp     short loc_180005956                                            ; +0x77, 0x180005947\nmov     rax, [rbx]                                                     ; +0x79, 0x180005949\nmov     edx, 1                                                         ; +0x7c, 0x18000594c\ncall    qword ptr [rax+8]                                              ; +0x81, 0x180005951\nxor     ebx, ebx                                                       ; +0x84, 0x180005954\nmov     rax, [rsi]                                                     ; +0x86, 0x180005956\nmov     r8, rbx                                                        ; +0x89, 0x180005959\nmov     rdx, rbp                                                       ; +0x8c, 0x18000595c\nmov     rcx, rsi                                                       ; +0x8f, 0x18000595f\ncall    qword ptr [rax+4A0h]                                           ; +0x92, 0x180005962\nmovzx   ebx, al                                                        ; +0x98, 0x180005968\nmov     rcx, rdi                                                       ; +0x9b, 0x18000596b\ncall    sub_180003700                                                  ; +0x9e, 0x18000596e\nmovzx   eax, bl                                                        ; +0xa3, 0x180005973\nmov     rcx, [rsp+68h+var_38]                                          ; +0xa6, 0x180005976\nxor     rcx, rsp; StackCookie                                          ; +0xab, 0x18000597b\ncall    __security_check_cookie                                        ; +0xae, 0x18000597e\nadd     rsp, 48h                                                       ; +0xb3, 0x180005983\npop     rdi                                                            ; +0xb7, 0x180005987\npop     rsi                                                            ; +0xb8, 0x180005988\npop     rbp                                                            ; +0xb9, 0x180005989\npop     rbx                                                            ; +0xba, 0x18000598a\nretn                                                                   ; +0xbb, 0x18000598b", "xrefs": ["<???> @ 0x1800266d0", "<???> @ 0x18002a648", "<???> @ 0x180032408", "<???> @ 0x18004b4b0"], "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"}