{"type": "func", "start": 6442475392, "end": 6442475505, "name": "cocos2d::extension::CCControlButton::getTitleColorForState", "pseudocode": "// \n// cocos2d::extension::CCControlButton::getTitleColorForState from 0x180005f80 to 0x180005ff1 (113 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800266f0\n// > <???> @ 0x18002a668\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b594\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__int64 __fastcall cocos2d::extension::CCControlButton::getTitleColorForState(__int64 a1, __int64 a2, unsigned int a3)\n{\n  cocos2d::CCDictionary *v4; // rcx\n  struct cocos2d::CCObject *v6; // rax\n  __int16 v7; // cx\n  char v8; // al\n\n  v4 = *(cocos2d::CCDictionary **)(a1 + 536);\n  *(_WORD *)a2 = -1;\n  *(_BYTE *)(a2 + 2) = -1;\n  if ( v4 )\n  {\n    v6 = cocos2d::CCDictionary::objectForKey(v4, a3);\n    if ( v6 || (v6 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 536), 1)) != nullptr )\n    {\n      v7 = *((_WORD *)v6 + 28);\n      v8 = *((_BYTE *)v6 + 58);\n      *(_WORD *)a2 = v7;\n      *(_BYTE *)(a2 + 2) = v8;\n    }\n  }\n  return a2;\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::getTitleColorForState from 0x180005f80 to 0x180005ff1 (113 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800266f0\n; > <???> @ 0x18002a668\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b594\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_0], rbx                                               ; +0x0, 0x180005f80\npush    rdi                                                            ; +0x5, 0x180005f85\nsub     rsp, 20h                                                       ; +0x6, 0x180005f86\nmovzx   eax, cs:word_180025A0C                                         ; +0xa, 0x180005f8a\nmov     rdi, rcx                                                       ; +0x11, 0x180005f91\nmov     rcx, [rcx+218h]                                                ; +0x14, 0x180005f94\nmov     rbx, rdx                                                       ; +0x1b, 0x180005f9b\nmov     [rdx], ax                                                      ; +0x1e, 0x180005f9e\nmovzx   eax, cs:byte_180025A0E                                         ; +0x21, 0x180005fa1\nmov     [rdx+2], al                                                    ; +0x28, 0x180005fa8\ntest    rcx, rcx                                                       ; +0x2b, 0x180005fab\njz      short loc_180005FE3                                            ; +0x2e, 0x180005fae\nmov     edx, r8d                                                       ; +0x30, 0x180005fb0\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x33, 0x180005fb3\ntest    rax, rax                                                       ; +0x39, 0x180005fb9\njnz     short loc_180005FD5                                            ; +0x3c, 0x180005fbc\nmov     rcx, [rdi+218h]                                                ; +0x3e, 0x180005fbe\nmov     edx, 1                                                         ; +0x45, 0x180005fc5\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x4a, 0x180005fca\ntest    rax, rax                                                       ; +0x50, 0x180005fd0\njz      short loc_180005FE3                                            ; +0x53, 0x180005fd3\nmovzx   ecx, word ptr [rax+38h]                                        ; +0x55, 0x180005fd5\nmovzx   eax, byte ptr [rax+3Ah]                                        ; +0x59, 0x180005fd9\nmov     [rbx], cx                                                      ; +0x5d, 0x180005fdd\nmov     [rbx+2], al                                                    ; +0x60, 0x180005fe0\nmov     rax, rbx                                                       ; +0x63, 0x180005fe3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x66, 0x180005fe6\nadd     rsp, 20h                                                       ; +0x6b, 0x180005feb\npop     rdi                                                            ; +0x6f, 0x180005fef\nretn                                                                   ; +0x70, 0x180005ff0", "xrefs": ["<???> @ 0x1800266f0", "<???> @ 0x18002a668", "<???> @ 0x180032408", "<???> @ 0x18004b594"], "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"}