{"type": "func", "start": 6442477216, "end": 6442477435, "name": "cocos2d::extension::CCControlButton::setTitleLabelForState", "pseudocode": "// \n// cocos2d::extension::CCControlButton::setTitleLabelForState from 0x1800066a0 to 0x18000677b (219 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800241c0\n// > <???> @ 0x180028008\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004966c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\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 + 65))(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 + 320LL))(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 + 272))(a2, v10);\n  (*((void (__fastcall **)(cocos2d::CCDictionary **, struct cocos2d::CCNode *, __int64))*this + 55))(this, a2, 1);\n  if ( *((_DWORD *)this + 109) == a3 )\n    (*((void (__fastcall **)(cocos2d::CCDictionary **))*this + 133))(this);\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::setTitleLabelForState from 0x1800066a0 to 0x18000677b (219 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800241c0\n; > <???> @ 0x180028008\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004966c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800066a0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800066a5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1800066aa\npush    rdi                                                            ; +0xf, 0x1800066af\nsub     rsp, 20h                                                       ; +0x10, 0x1800066b0\nmov     rsi, rdx                                                       ; +0x14, 0x1800066b4\nmov     ebp, r8d                                                       ; +0x17, 0x1800066b7\nmov     rdi, rcx                                                       ; +0x1a, 0x1800066ba\nmov     edx, r8d                                                       ; +0x1d, 0x1800066bd\nmov     rcx, [rcx+220h]                                                ; +0x20, 0x1800066c0\nmov     ebx, r8d                                                       ; +0x27, 0x1800066c7\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x2a, 0x1800066ca\ntest    rax, rax                                                       ; +0x30, 0x1800066d0\njz      short loc_1800066F7                                            ; +0x33, 0x1800066d3\nmov     r9, [rdi]                                                      ; +0x35, 0x1800066d5\nmov     r8b, 1                                                         ; +0x38, 0x1800066d8\nmov     rdx, rax                                                       ; +0x3b, 0x1800066db\nmov     rcx, rdi                                                       ; +0x3e, 0x1800066de\ncall    qword ptr [r9+208h]                                            ; +0x41, 0x1800066e1\nmov     rcx, [rdi+220h]                                                ; +0x48, 0x1800066e8\nmov     edx, ebx                                                       ; +0x4f, 0x1800066ef\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAX_J@Z; cocos2d::CCDictionary::removeObjectForKey(__int64) ; +0x51, 0x1800066f1\nmov     rcx, [rdi+220h]                                                ; +0x57, 0x1800066f7\nmov     r8, rbx                                                        ; +0x5e, 0x1800066fe\nmov     rdx, rsi                                                       ; +0x61, 0x180006701\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x64, 0x180006704\nmov     rax, [rsi]                                                     ; +0x6a, 0x18000670a\nxor     edx, edx                                                       ; +0x6d, 0x18000670d\nmov     rcx, rsi                                                       ; +0x6f, 0x18000670f\ncall    qword ptr [rax+140h]                                           ; +0x72, 0x180006712\nmovss   xmm1, cs:dword_180029510                                       ; +0x78, 0x180006718\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x80, 0x180006720\nmov     rbx, [rsi]                                                     ; +0x85, 0x180006725\nmovaps  xmm2, xmm1                                                     ; +0x88, 0x180006728\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x8b, 0x18000672b\nmov     rdx, rax                                                       ; +0x91, 0x180006731\nmov     rcx, rsi                                                       ; +0x94, 0x180006734\ncall    qword ptr [rbx+110h]                                           ; +0x97, 0x180006737\nmov     rax, [rdi]                                                     ; +0x9d, 0x18000673d\nmov     r8d, 1                                                         ; +0xa0, 0x180006740\nmov     rdx, rsi                                                       ; +0xa6, 0x180006746\nmov     rcx, rdi                                                       ; +0xa9, 0x180006749\ncall    qword ptr [rax+1B8h]                                           ; +0xac, 0x18000674c\ncmp     [rdi+1B4h], ebp                                                ; +0xb2, 0x180006752\njnz     short loc_180006766                                            ; +0xb8, 0x180006758\nmov     rax, [rdi]                                                     ; +0xba, 0x18000675a\nmov     rcx, rdi                                                       ; +0xbd, 0x18000675d\ncall    qword ptr [rax+428h]                                           ; +0xc0, 0x180006760\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc6, 0x180006766\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xcb, 0x18000676b\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xd0, 0x180006770\nadd     rsp, 20h                                                       ; +0xd5, 0x180006775\npop     rdi                                                            ; +0xd9, 0x180006779\nretn                                                                   ; +0xda, 0x18000677a", "xrefs": ["<???> @ 0x1800241c0", "<???> @ 0x180028008", "<???> @ 0x18002fdf8", "<???> @ 0x18004966c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}