{"type": "func", "start": 6442476624, "end": 6442476898, "name": "cocos2d::extension::CCControlButton::setTitleBMFontForState", "pseudocode": "// \n// cocos2d::extension::CCControlButton::setTitleBMFontForState from 0x180006450 to 0x180006562 (274 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180026730\n// > <???> @ 0x18002a6a8\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b5f4\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\nvoid __fastcall cocos2d::extension::CCControlButton::setTitleBMFontForState(\n        cocos2d::extension::CCControlButton *this,\n        const char *a2,\n        unsigned int a3)\n{\n  cocos2d::CCString *v6; // rdi\n  __m128i si128; // xmm6\n  void *v8; // rcx\n  __int64 v9; // rbx\n  const char *CString; // rax\n  struct cocos2d::CCLabelBMFont *v11; // rax\n  void *Block[2]; // [rsp+30h] [rbp-68h] BYREF\n  __m128i v13; // [rsp+40h] [rbp-58h]\n\n  v6 = (cocos2d::CCString *)(*(__int64 (__fastcall **)(cocos2d::extension::CCControlButton *, _QWORD))(*(_QWORD *)this + 1208LL))(\n                              this,\n                              a3);\n  if ( !v6 )\n  {\n    *(_OWORD *)Block = 0;\n    si128 = _mm_load_si128((const __m128i *)&xmmword_18002BCB0);\n    v13 = si128;\n    LOBYTE(Block[0]) = 0;\n    v6 = (cocos2d::CCString *)cocos2d::CCString::create(Block);\n    if ( v13.m128i_i64[1] > 0xFuLL )\n    {\n      v8 = Block[0];\n      if ( (unsigned __int64)(v13.m128i_i64[1] + 1) >= 0x1000 )\n      {\n        v8 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v8);\n      si128 = _mm_load_si128((const __m128i *)&xmmword_18002BCB0);\n    }\n    v13 = si128;\n    LOBYTE(Block[0]) = 0;\n  }\n  v9 = *(_QWORD *)this;\n  CString = cocos2d::CCString::getCString(v6);\n  v11 = cocos2d::CCLabelBMFont::create(CString, a2);\n  (*(void (__fastcall **)(cocos2d::extension::CCControlButton *, struct cocos2d::CCLabelBMFont *, _QWORD))(v9 + 1248))(\n    this,\n    v11,\n    a3);\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::setTitleBMFontForState from 0x180006450 to 0x180006562 (274 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180026730\n; > <???> @ 0x18002a6a8\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b5f4\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, 0x180006450\npush    rbp                                                            ; +0x2, 0x180006452\npush    rsi                                                            ; +0x3, 0x180006453\npush    rdi                                                            ; +0x4, 0x180006454\npush    r14                                                            ; +0x5, 0x180006455\nsub     rsp, 70h                                                       ; +0x7, 0x180006457\nmovaps  [rsp+98h+var_38], xmm6                                         ; +0xb, 0x18000645b\nmov     rax, cs:__security_cookie                                      ; +0x10, 0x180006460\nxor     rax, rsp                                                       ; +0x17, 0x180006467\nmov     [rsp+98h+var_48], rax                                          ; +0x1a, 0x18000646a\nmov     ebp, r8d                                                       ; +0x1f, 0x18000646f\nmov     r14, rdx                                                       ; +0x22, 0x180006472\nmov     rsi, rcx                                                       ; +0x25, 0x180006475\nmov     rax, [rcx]                                                     ; +0x28, 0x180006478\nmov     edx, r8d                                                       ; +0x2b, 0x18000647b\ncall    qword ptr [rax+4B8h]                                           ; +0x2e, 0x18000647e\nmov     rdi, rax                                                       ; +0x34, 0x180006484\ntest    rax, rax                                                       ; +0x37, 0x180006487\njnz     loc_18000651E                                                  ; +0x3a, 0x18000648a\nxorps   xmm0, xmm0                                                     ; +0x40, 0x180006490\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0x43, 0x180006493\nmovdqa  xmm6, cs:xmmword_18002BCB0                                     ; +0x48, 0x180006498\nmovdqu  [rsp+98h+var_58], xmm6                                         ; +0x50, 0x1800064a0\nmov     byte ptr [rsp+98h+Block], al                                   ; +0x56, 0x1800064a6\nlea     rcx, [rsp+98h+Block]                                           ; +0x5a, 0x1800064aa\ncall    cs:?create@CCString@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::create(std::string const &) ; +0x5f, 0x1800064af\nmov     rdi, rax                                                       ; +0x65, 0x1800064b5\nmov     rdx, qword ptr [rsp+98h+var_58+8]                              ; +0x68, 0x1800064b8\ncmp     rdx, 0Fh                                                       ; +0x6d, 0x1800064bd\njbe     short loc_180006513                                            ; +0x71, 0x1800064c1\ninc     rdx                                                            ; +0x73, 0x1800064c3\nmov     rcx, [rsp+98h+Block]; Block                                    ; +0x76, 0x1800064c6\nmov     rax, rcx                                                       ; +0x7b, 0x1800064cb\ncmp     rdx, 1000h                                                     ; +0x7e, 0x1800064ce\njb      short loc_180006506                                            ; +0x85, 0x1800064d5\nadd     rdx, 27h ; '''                                                 ; +0x87, 0x1800064d7\nmov     rcx, [rcx-8]                                                   ; +0x8b, 0x1800064db\nsub     rax, rcx                                                       ; +0x8f, 0x1800064df\nsub     rax, 8                                                         ; +0x92, 0x1800064e2\ncmp     rax, 1Fh                                                       ; +0x96, 0x1800064e6\njbe     short loc_180006506                                            ; +0x9a, 0x1800064ea\nmov     [rsp+98h+Reserved], 0; Reserved                                ; +0x9c, 0x1800064ec\nxor     r9d, r9d; LineNo                                               ; +0xa5, 0x1800064f5\nxor     r8d, r8d; FileName                                             ; +0xa8, 0x1800064f8\nxor     edx, edx; FunctionName                                         ; +0xab, 0x1800064fb\nxor     ecx, ecx; Expression                                           ; +0xad, 0x1800064fd\ncall    cs:_invoke_watson                                              ; +0xaf, 0x1800064ff\nalign 2                                                                ; +0xb5, 0x180006505\ncall    j_j_free                                                       ; +0xb6, 0x180006506\nmovdqa  xmm6, cs:xmmword_18002BCB0                                     ; +0xbb, 0x18000650b\nmovdqu  [rsp+98h+var_58], xmm6                                         ; +0xc3, 0x180006513\nmov     byte ptr [rsp+98h+Block], 0                                    ; +0xc9, 0x180006519\nmov     rbx, [rsi]                                                     ; +0xce, 0x18000651e\nmov     rcx, rdi                                                       ; +0xd1, 0x180006521\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xd4, 0x180006524\nmov     rcx, rax                                                       ; +0xda, 0x18000652a\nmov     rdx, r14                                                       ; +0xdd, 0x18000652d\ncall    cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0xe0, 0x180006530\nmov     rdx, rax                                                       ; +0xe6, 0x180006536\nmov     r8d, ebp                                                       ; +0xe9, 0x180006539\nmov     rcx, rsi                                                       ; +0xec, 0x18000653c\ncall    qword ptr [rbx+4E0h]                                           ; +0xef, 0x18000653f\nmov     rcx, [rsp+98h+var_48]                                          ; +0xf5, 0x180006545\nxor     rcx, rsp; StackCookie                                          ; +0xfa, 0x18000654a\ncall    __security_check_cookie                                        ; +0xfd, 0x18000654d\nmovaps  xmm6, [rsp+98h+var_38]                                         ; +0x102, 0x180006552\nadd     rsp, 70h                                                       ; +0x107, 0x180006557\npop     r14                                                            ; +0x10b, 0x18000655b\npop     rdi                                                            ; +0x10d, 0x18000655d\npop     rsi                                                            ; +0x10e, 0x18000655e\npop     rbp                                                            ; +0x10f, 0x18000655f\npop     rbx                                                            ; +0x110, 0x180006560\nretn                                                                   ; +0x111, 0x180006561", "xrefs": ["<???> @ 0x180026730", "<???> @ 0x18002a6a8", "<???> @ 0x180032408", "<???> @ 0x18004b5f4"], "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"}