{"type": "func", "start": 6442475520, "end": 6442475682, "name": "cocos2d::extension::CCControlButton::setTitleColorForState", "pseudocode": "// \n// cocos2d::extension::CCControlButton::setTitleColorForState from 0x180006000 to 0x1800060a2 (162 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800266f8\n// > <???> @ 0x18002a670\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b5a0\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::setTitleColorForState(__int64 a1, __int64 a2, unsigned int a3)\n{\n  __int64 v6; // [rsp+40h] [rbp+8h]\n\n  cocos2d::CCDictionary::removeObjectForKey(*(cocos2d::CCDictionary **)(a1 + 536), a3);\n  v6 = sub_18001F040(0x40u);\n  cocos2d::CCObject::CCObject((cocos2d::CCObject *)v6);\n  *(_QWORD *)v6 = &cocos2d::extension::CCColor3bObject::`vftable';\n  *(_WORD *)(v6 + 56) = *(_WORD *)a2;\n  *(_BYTE *)(v6 + 58) = *(_BYTE *)(a2 + 2);\n  cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);\n  cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 536), (struct cocos2d::CCObject *)v6, a3);\n  if ( *(_DWORD *)(a1 + 436) == a3 )\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1080LL))(a1);\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::setTitleColorForState from 0x180006000 to 0x1800060a2 (162 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800266f8\n; > <???> @ 0x18002a670\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b5a0\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, 0x180006000\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180006005\npush    rsi                                                            ; +0xa, 0x18000600a\npush    rdi                                                            ; +0xb, 0x18000600b\npush    r14                                                            ; +0xc, 0x18000600c\nsub     rsp, 20h                                                       ; +0xe, 0x18000600e\nmov     ebp, r8d                                                       ; +0x12, 0x180006012\nmov     rdi, rdx                                                       ; +0x15, 0x180006015\nmov     r14, rcx                                                       ; +0x18, 0x180006018\nmov     edx, r8d                                                       ; +0x1b, 0x18000601b\nmov     rcx, [rcx+218h]                                                ; +0x1e, 0x18000601e\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAX_J@Z; cocos2d::CCDictionary::removeObjectForKey(__int64) ; +0x25, 0x180006025\nmov     ecx, 40h ; '@'; Size                                           ; +0x2b, 0x18000602b\ncall    sub_18001F040                                                  ; +0x30, 0x180006030\nmov     rbx, rax                                                       ; +0x35, 0x180006035\nmov     [rsp+38h+arg_0], rax                                           ; +0x38, 0x180006038\nmov     rcx, rax                                                       ; +0x3d, 0x18000603d\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x40, 0x180006040\nlea     rax, ??_7CCColor3bObject@extension@cocos2d@@6B@; const cocos2d::extension::CCColor3bObject::`vftable' ; +0x46, 0x180006046\nmov     [rbx], rax                                                     ; +0x4d, 0x18000604d\nmovzx   ecx, word ptr [rdi]                                            ; +0x50, 0x180006050\nmov     [rbx+38h], cx                                                  ; +0x53, 0x180006053\nmovzx   ecx, byte ptr [rdi+2]                                          ; +0x57, 0x180006057\nmov     [rbx+3Ah], cl                                                  ; +0x5b, 0x18000605b\nmov     rcx, rbx                                                       ; +0x5e, 0x18000605e\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x61, 0x180006061\nmov     r8d, ebp                                                       ; +0x67, 0x180006067\nmov     rdx, rbx                                                       ; +0x6a, 0x18000606a\nmov     rcx, [r14+218h]                                                ; +0x6d, 0x18000606d\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x74, 0x180006074\ncmp     [r14+1B4h], ebp                                                ; +0x7a, 0x18000607a\njnz     short loc_18000608F                                            ; +0x81, 0x180006081\nmov     rax, [r14]                                                     ; +0x83, 0x180006083\nmov     rcx, r14                                                       ; +0x86, 0x180006086\ncall    qword ptr [rax+438h]                                           ; +0x89, 0x180006089\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x8f, 0x18000608f\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x94, 0x180006094\nadd     rsp, 20h                                                       ; +0x99, 0x180006099\npop     r14                                                            ; +0x9d, 0x18000609d\npop     rdi                                                            ; +0x9f, 0x18000609f\npop     rsi                                                            ; +0xa0, 0x1800060a0\nretn                                                                   ; +0xa1, 0x1800060a1", "xrefs": ["<???> @ 0x1800266f8", "<???> @ 0x18002a670", "<???> @ 0x180032408", "<???> @ 0x18004b5a0"], "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"}