{"type": "func", "start": 6442476864, "end": 6442476975, "name": "cocos2d::extension::CCControlButton::getTitleColorForState", "pseudocode": "// \n// cocos2d::extension::CCControlButton::getTitleColorForState from 0x180006540 to 0x1800065af (111 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800241a8\n// > <???> @ 0x180027ff0\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x180049648\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\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 0x180006540 to 0x1800065af (111 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800241a8\n; > <???> @ 0x180027ff0\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x180049648\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, 0x180006540\npush    rdi                                                            ; +0x5, 0x180006545\nsub     rsp, 20h                                                       ; +0x6, 0x180006546\nmovzx   eax, cs:word_18002349C                                         ; +0xa, 0x18000654a\nmov     rdi, rcx                                                       ; +0x11, 0x180006551\nmov     rcx, [rcx+218h]                                                ; +0x14, 0x180006554\nmov     rbx, rdx                                                       ; +0x1b, 0x18000655b\nmov     [rdx], ax                                                      ; +0x1e, 0x18000655e\nmovzx   eax, cs:byte_18002349E                                         ; +0x21, 0x180006561\nmov     [rdx+2], al                                                    ; +0x28, 0x180006568\ntest    rcx, rcx                                                       ; +0x2b, 0x18000656b\njz      short loc_1800065A1                                            ; +0x2e, 0x18000656e\nmov     edx, r8d                                                       ; +0x30, 0x180006570\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x33, 0x180006573\ntest    rax, rax                                                       ; +0x39, 0x180006579\njnz     short loc_180006593                                            ; +0x3c, 0x18000657c\nmov     rcx, [rdi+218h]                                                ; +0x3e, 0x18000657e\nlea     edx, [rax+1]                                                   ; +0x45, 0x180006585\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x48, 0x180006588\ntest    rax, rax                                                       ; +0x4e, 0x18000658e\njz      short loc_1800065A1                                            ; +0x51, 0x180006591\nmovzx   ecx, word ptr [rax+38h]                                        ; +0x53, 0x180006593\nmovzx   eax, byte ptr [rax+3Ah]                                        ; +0x57, 0x180006597\nmov     [rbx], cx                                                      ; +0x5b, 0x18000659b\nmov     [rbx+2], al                                                    ; +0x5e, 0x18000659e\nmov     rax, rbx                                                       ; +0x61, 0x1800065a1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x64, 0x1800065a4\nadd     rsp, 20h                                                       ; +0x69, 0x1800065a9\npop     rdi                                                            ; +0x6d, 0x1800065ad\nretn                                                                   ; +0x6e, 0x1800065ae", "xrefs": ["<???> @ 0x1800241a8", "<???> @ 0x180027ff0", "<???> @ 0x18002fdf8", "<???> @ 0x180049648"], "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"}