{"type": "func", "start": 6442475760, "end": 6442475979, "name": "cocos2d::extension::CCControlButton::setTitleLabelForState", "pseudocode": "// \n// cocos2d::extension::CCControlButton::setTitleLabelForState from 0x1800060f0 to 0x1800061cb (219 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180026708\n// > <???> @ 0x18002a680\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b5b8\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::setTitleLabelForState(\n        cocos2d::CCDictionary **this,\n        struct cocos2d::CCNode *a2,\n        unsigned int a3)\n{\n  __int64 v6; // rbx\n  struct cocos2d::CCObject *v7; // rax\n  __int64 v8; // r8\n  __int64 v9; // rbx\n  __int64 v10; // rax\n  char v11; // [rsp+30h] [rbp+8h] BYREF\n\n  v6 = a3;\n  v7 = cocos2d::CCDictionary::objectForKey(*(this + 68), a3);\n  if ( v7 )\n  {\n    LOBYTE(v8) = 1;\n    (*((void (__fastcall **)(cocos2d::CCDictionary **, struct cocos2d::CCObject *, __int64))*this + 67))(this, v7, v8);\n    cocos2d::CCDictionary::removeObjectForKey(*(this + 68), (unsigned int)v6);\n  }\n  cocos2d::CCDictionary::setObject(*(this + 68), a2, v6);\n  (*(void (__fastcall **)(struct cocos2d::CCNode *, _QWORD))(*(_QWORD *)a2 + 336LL))(a2, 0);\n  v9 = *(_QWORD *)a2;\n  v10 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, 0.5, 0.5);\n  (*(void (__fastcall **)(struct cocos2d::CCNode *, __int64))(v9 + 288))(a2, v10);\n  (*((void (__fastcall **)(cocos2d::CCDictionary **, struct cocos2d::CCNode *, __int64))*this + 57))(this, a2, 1);\n  if ( *((_DWORD *)this + 109) == a3 )\n    (*((void (__fastcall **)(cocos2d::CCDictionary **))*this + 135))(this);\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::setTitleLabelForState from 0x1800060f0 to 0x1800061cb (219 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180026708\n; > <???> @ 0x18002a680\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b5b8\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; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800060f0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800060f5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1800060fa\npush    rdi                                                            ; +0xf, 0x1800060ff\nsub     rsp, 20h                                                       ; +0x10, 0x180006100\nmov     rsi, rdx                                                       ; +0x14, 0x180006104\nmov     ebp, r8d                                                       ; +0x17, 0x180006107\nmov     rdi, rcx                                                       ; +0x1a, 0x18000610a\nmov     edx, r8d                                                       ; +0x1d, 0x18000610d\nmov     rcx, [rcx+220h]                                                ; +0x20, 0x180006110\nmov     ebx, r8d                                                       ; +0x27, 0x180006117\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x2a, 0x18000611a\ntest    rax, rax                                                       ; +0x30, 0x180006120\njz      short loc_180006147                                            ; +0x33, 0x180006123\nmov     r9, [rdi]                                                      ; +0x35, 0x180006125\nmov     r8b, 1                                                         ; +0x38, 0x180006128\nmov     rdx, rax                                                       ; +0x3b, 0x18000612b\nmov     rcx, rdi                                                       ; +0x3e, 0x18000612e\ncall    qword ptr [r9+218h]                                            ; +0x41, 0x180006131\nmov     rcx, [rdi+220h]                                                ; +0x48, 0x180006138\nmov     edx, ebx                                                       ; +0x4f, 0x18000613f\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAX_J@Z; cocos2d::CCDictionary::removeObjectForKey(__int64) ; +0x51, 0x180006141\nmov     rcx, [rdi+220h]                                                ; +0x57, 0x180006147\nmov     r8, rbx                                                        ; +0x5e, 0x18000614e\nmov     rdx, rsi                                                       ; +0x61, 0x180006151\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x64, 0x180006154\nmov     rax, [rsi]                                                     ; +0x6a, 0x18000615a\nxor     edx, edx                                                       ; +0x6d, 0x18000615d\nmov     rcx, rsi                                                       ; +0x6f, 0x18000615f\ncall    qword ptr [rax+150h]                                           ; +0x72, 0x180006162\nmovss   xmm1, cs:dword_18002BBD8                                       ; +0x78, 0x180006168\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x80, 0x180006170\nmov     rbx, [rsi]                                                     ; +0x85, 0x180006175\nmovaps  xmm2, xmm1                                                     ; +0x88, 0x180006178\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x8b, 0x18000617b\nmov     rdx, rax                                                       ; +0x91, 0x180006181\nmov     rcx, rsi                                                       ; +0x94, 0x180006184\ncall    qword ptr [rbx+120h]                                           ; +0x97, 0x180006187\nmov     rax, [rdi]                                                     ; +0x9d, 0x18000618d\nmov     r8d, 1                                                         ; +0xa0, 0x180006190\nmov     rdx, rsi                                                       ; +0xa6, 0x180006196\nmov     rcx, rdi                                                       ; +0xa9, 0x180006199\ncall    qword ptr [rax+1C8h]                                           ; +0xac, 0x18000619c\ncmp     [rdi+1B4h], ebp                                                ; +0xb2, 0x1800061a2\njnz     short loc_1800061B6                                            ; +0xb8, 0x1800061a8\nmov     rax, [rdi]                                                     ; +0xba, 0x1800061aa\nmov     rcx, rdi                                                       ; +0xbd, 0x1800061ad\ncall    qword ptr [rax+438h]                                           ; +0xc0, 0x1800061b0\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc6, 0x1800061b6\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xcb, 0x1800061bb\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xd0, 0x1800061c0\nadd     rsp, 20h                                                       ; +0xd5, 0x1800061c5\npop     rdi                                                            ; +0xd9, 0x1800061c9\nretn                                                                   ; +0xda, 0x1800061ca", "xrefs": ["<???> @ 0x180026708", "<???> @ 0x18002a680", "<???> @ 0x180032408", "<???> @ 0x18004b5b8"], "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"}