{"type": "func", "start": 6442475984, "end": 6442476266, "name": "cocos2d::extension::CCControlButton::setTitleTTFForState", "pseudocode": "// \n// cocos2d::extension::CCControlButton::setTitleTTFForState from 0x1800061d0 to 0x1800062ea (282 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180026710\n// > <???> @ 0x18002a688\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b5c4\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\nvoid __fastcall cocos2d::extension::CCControlButton::setTitleTTFForState(\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::CCLabelTTF *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::CCLabelTTF::create(CString, a2, 12.0);\n  (*(void (__fastcall **)(cocos2d::extension::CCControlButton *, struct cocos2d::CCLabelTTF *, _QWORD))(v9 + 1248))(\n    this,\n    v11,\n    a3);\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::setTitleTTFForState from 0x1800061d0 to 0x1800062ea (282 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180026710\n; > <???> @ 0x18002a688\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b5c4\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, 0x1800061d0\npush    rbp                                                            ; +0x2, 0x1800061d2\npush    rsi                                                            ; +0x3, 0x1800061d3\npush    rdi                                                            ; +0x4, 0x1800061d4\npush    r14                                                            ; +0x5, 0x1800061d5\nsub     rsp, 70h                                                       ; +0x7, 0x1800061d7\nmovaps  [rsp+98h+var_38], xmm6                                         ; +0xb, 0x1800061db\nmov     rax, cs:__security_cookie                                      ; +0x10, 0x1800061e0\nxor     rax, rsp                                                       ; +0x17, 0x1800061e7\nmov     [rsp+98h+var_48], rax                                          ; +0x1a, 0x1800061ea\nmov     ebp, r8d                                                       ; +0x1f, 0x1800061ef\nmov     r14, rdx                                                       ; +0x22, 0x1800061f2\nmov     rsi, rcx                                                       ; +0x25, 0x1800061f5\nmov     rax, [rcx]                                                     ; +0x28, 0x1800061f8\nmov     edx, r8d                                                       ; +0x2b, 0x1800061fb\ncall    qword ptr [rax+4B8h]                                           ; +0x2e, 0x1800061fe\nmov     rdi, rax                                                       ; +0x34, 0x180006204\ntest    rax, rax                                                       ; +0x37, 0x180006207\njnz     loc_18000629E                                                  ; +0x3a, 0x18000620a\nxorps   xmm0, xmm0                                                     ; +0x40, 0x180006210\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0x43, 0x180006213\nmovdqa  xmm6, cs:xmmword_18002BCB0                                     ; +0x48, 0x180006218\nmovdqu  [rsp+98h+var_58], xmm6                                         ; +0x50, 0x180006220\nmov     byte ptr [rsp+98h+Block], al                                   ; +0x56, 0x180006226\nlea     rcx, [rsp+98h+Block]                                           ; +0x5a, 0x18000622a\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, 0x18000622f\nmov     rdi, rax                                                       ; +0x65, 0x180006235\nmov     rdx, qword ptr [rsp+98h+var_58+8]                              ; +0x68, 0x180006238\ncmp     rdx, 0Fh                                                       ; +0x6d, 0x18000623d\njbe     short loc_180006293                                            ; +0x71, 0x180006241\ninc     rdx                                                            ; +0x73, 0x180006243\nmov     rcx, [rsp+98h+Block]; Block                                    ; +0x76, 0x180006246\nmov     rax, rcx                                                       ; +0x7b, 0x18000624b\ncmp     rdx, 1000h                                                     ; +0x7e, 0x18000624e\njb      short loc_180006286                                            ; +0x85, 0x180006255\nadd     rdx, 27h ; '''                                                 ; +0x87, 0x180006257\nmov     rcx, [rcx-8]                                                   ; +0x8b, 0x18000625b\nsub     rax, rcx                                                       ; +0x8f, 0x18000625f\nsub     rax, 8                                                         ; +0x92, 0x180006262\ncmp     rax, 1Fh                                                       ; +0x96, 0x180006266\njbe     short loc_180006286                                            ; +0x9a, 0x18000626a\nmov     [rsp+98h+Reserved], 0; Reserved                                ; +0x9c, 0x18000626c\nxor     r9d, r9d; LineNo                                               ; +0xa5, 0x180006275\nxor     r8d, r8d; FileName                                             ; +0xa8, 0x180006278\nxor     edx, edx; FunctionName                                         ; +0xab, 0x18000627b\nxor     ecx, ecx; Expression                                           ; +0xad, 0x18000627d\ncall    cs:_invoke_watson                                              ; +0xaf, 0x18000627f\nalign 2                                                                ; +0xb5, 0x180006285\ncall    j_j_free                                                       ; +0xb6, 0x180006286\nmovdqa  xmm6, cs:xmmword_18002BCB0                                     ; +0xbb, 0x18000628b\nmovdqu  [rsp+98h+var_58], xmm6                                         ; +0xc3, 0x180006293\nmov     byte ptr [rsp+98h+Block], 0                                    ; +0xc9, 0x180006299\nmov     rbx, [rsi]                                                     ; +0xce, 0x18000629e\nmov     rcx, rdi                                                       ; +0xd1, 0x1800062a1\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xd4, 0x1800062a4\nmov     rcx, rax                                                       ; +0xda, 0x1800062aa\nmovss   xmm2, cs:dword_18002BC58                                       ; +0xdd, 0x1800062ad\nmov     rdx, r14                                                       ; +0xe5, 0x1800062b5\ncall    cs:?create@CCLabelTTF@cocos2d@@SAPEAV12@PEBD0M@Z; cocos2d::CCLabelTTF::create(char const *,char const *,float) ; +0xe8, 0x1800062b8\nmov     rdx, rax                                                       ; +0xee, 0x1800062be\nmov     r8d, ebp                                                       ; +0xf1, 0x1800062c1\nmov     rcx, rsi                                                       ; +0xf4, 0x1800062c4\ncall    qword ptr [rbx+4E0h]                                           ; +0xf7, 0x1800062c7\nmov     rcx, [rsp+98h+var_48]                                          ; +0xfd, 0x1800062cd\nxor     rcx, rsp; StackCookie                                          ; +0x102, 0x1800062d2\ncall    __security_check_cookie                                        ; +0x105, 0x1800062d5\nmovaps  xmm6, [rsp+98h+var_38]                                         ; +0x10a, 0x1800062da\nadd     rsp, 70h                                                       ; +0x10f, 0x1800062df\npop     r14                                                            ; +0x113, 0x1800062e3\npop     rdi                                                            ; +0x115, 0x1800062e5\npop     rsi                                                            ; +0x116, 0x1800062e6\npop     rbp                                                            ; +0x117, 0x1800062e7\npop     rbx                                                            ; +0x118, 0x1800062e8\nretn                                                                   ; +0x119, 0x1800062e9", "xrefs": ["<???> @ 0x180026710", "<???> @ 0x18002a688", "<???> @ 0x180032408", "<???> @ 0x18004b5c4"], "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"}