{"type": "func", "start": 6442476752, "end": 6442476862, "name": "cocos2d::extension::CCControlButton::setTitleForState", "pseudocode": "// \n// cocos2d::extension::CCControlButton::setTitleForState from 0x1800064d0 to 0x18000653e (110 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800241a0\n// > <???> @ 0x180027fe8\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004963c\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::setTitleForState(\n        cocos2d::CCDictionary **this,\n        struct cocos2d::CCString *a2,\n        unsigned int a3)\n{\n  cocos2d::CCDictionary::removeObjectForKey(*(this + 66), a3);\n  if ( a2 )\n    cocos2d::CCDictionary::setObject(*(this + 66), a2, a3);\n  if ( *((_DWORD *)this + 109) == a3 )\n    (*((void (__fastcall **)(cocos2d::CCDictionary **))*this + 133))(this);\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::setTitleForState from 0x1800064d0 to 0x18000653e (110 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800241a0\n; > <???> @ 0x180027fe8\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004963c\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_0], rbx                                               ; +0x0, 0x1800064d0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800064d5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800064da\npush    rdi                                                            ; +0xf, 0x1800064df\nsub     rsp, 20h                                                       ; +0x10, 0x1800064e0\nmov     rsi, rdx                                                       ; +0x14, 0x1800064e4\nmov     edi, r8d                                                       ; +0x17, 0x1800064e7\nmov     rbx, rcx                                                       ; +0x1a, 0x1800064ea\nmov     edx, r8d                                                       ; +0x1d, 0x1800064ed\nmov     rcx, [rcx+210h]                                                ; +0x20, 0x1800064f0\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAX_J@Z; cocos2d::CCDictionary::removeObjectForKey(__int64) ; +0x27, 0x1800064f7\ntest    rsi, rsi                                                       ; +0x2d, 0x1800064fd\njz      short loc_180006515                                            ; +0x30, 0x180006500\nmov     rcx, [rbx+210h]                                                ; +0x32, 0x180006502\nmov     r8d, edi                                                       ; +0x39, 0x180006509\nmov     rdx, rsi                                                       ; +0x3c, 0x18000650c\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x3f, 0x18000650f\ncmp     [rbx+1B4h], edi                                                ; +0x45, 0x180006515\njnz     short loc_180006529                                            ; +0x4b, 0x18000651b\nmov     rax, [rbx]                                                     ; +0x4d, 0x18000651d\nmov     rcx, rbx                                                       ; +0x50, 0x180006520\ncall    qword ptr [rax+428h]                                           ; +0x53, 0x180006523\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x59, 0x180006529\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x5e, 0x18000652e\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x63, 0x180006533\nadd     rsp, 20h                                                       ; +0x68, 0x180006538\npop     rdi                                                            ; +0x6c, 0x18000653c\nretn                                                                   ; +0x6d, 0x18000653d", "xrefs": ["<???> @ 0x1800241a0", "<???> @ 0x180027fe8", "<???> @ 0x18002fdf8", "<???> @ 0x18004963c"], "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"}