{"type": "func", "start": 6442481296, "end": 6442481396, "name": "cocos2d::extension::CCControlButton::setColor", "pseudocode": "// \n// cocos2d::extension::CCControlButton::setColor from 0x180007690 to 0x1800076f4 (100 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180023bb8\n// > <???> @ 0x180027a00\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x180049768\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::setColor(\n        cocos2d::extension::CCControlButton *this,\n        const struct cocos2d::_ccColor3B *a2)\n{\n  __int64 v4; // rax\n  __int64 v5; // rax\n  __int64 i; // rbx\n\n  cocos2d::CCLayerRGBA::setColor(this, a2);\n  v4 = *((_QWORD *)this + 18);\n  if ( v4 )\n  {\n    v5 = *(_QWORD *)(v4 + 56);\n    if ( v5 )\n    {\n      for ( i = *(_QWORD *)(v5 + 288); ; i = *(_QWORD *)(i + 288) )\n      {\n        (**(void (__fastcall ***)(__int64, const struct cocos2d::_ccColor3B *))(*(_QWORD *)(v5 + 264) + 320LL))(\n          *(_QWORD *)(v5 + 264) + 320LL,\n          a2);\n        v5 = i;\n        if ( !i )\n          break;\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::setColor from 0x180007690 to 0x1800076f4 (100 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180023bb8\n; > <???> @ 0x180027a00\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x180049768\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, 0x180007690\npush    rdi                                                            ; +0x5, 0x180007695\nsub     rsp, 20h                                                       ; +0x6, 0x180007696\nmov     rdi, rdx                                                       ; +0xa, 0x18000769a\nmov     rbx, rcx                                                       ; +0xd, 0x18000769d\ncall    cs:__imp_?setColor@CCLayerRGBA@cocos2d@@UEAAXAEBU_ccColor3B@2@@Z; cocos2d::CCLayerRGBA::setColor(cocos2d::_ccColor3B const &) ; +0x10, 0x1800076a0\nmov     rax, [rbx+90h]                                                 ; +0x16, 0x1800076a6\ntest    rax, rax                                                       ; +0x1d, 0x1800076ad\njz      short loc_1800076E9                                            ; +0x20, 0x1800076b0\nmov     rax, [rax+38h]                                                 ; +0x22, 0x1800076b2\ntest    rax, rax                                                       ; +0x26, 0x1800076b6\njz      short loc_1800076E9                                            ; +0x29, 0x1800076b9\nmov     rbx, [rax+120h]                                                ; +0x2b, 0x1800076bb\nmov     rcx, [rax+108h]                                                ; +0x32, 0x1800076c2\nmov     rdx, rdi                                                       ; +0x39, 0x1800076c9\nadd     rcx, 140h                                                      ; +0x3c, 0x1800076cc\nmov     rax, [rcx]                                                     ; +0x43, 0x1800076d3\ncall    qword ptr [rax]                                                ; +0x46, 0x1800076d6\nmov     rax, rbx                                                       ; +0x48, 0x1800076d8\ntest    rbx, rbx                                                       ; +0x4b, 0x1800076db\njz      short loc_1800076E9                                            ; +0x4e, 0x1800076de\nmov     rbx, [rbx+120h]                                                ; +0x50, 0x1800076e0\njmp     short loc_1800076C2                                            ; +0x57, 0x1800076e7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x59, 0x1800076e9\nadd     rsp, 20h                                                       ; +0x5e, 0x1800076ee\npop     rdi                                                            ; +0x62, 0x1800076f2\nretn                                                                   ; +0x63, 0x1800076f3", "xrefs": ["<???> @ 0x180023bb8", "<???> @ 0x180027a00", "<???> @ 0x18002fdf8", "<???> @ 0x180049768"], "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"}