{"type": "func", "start": 6442479968, "end": 6442480068, "name": "cocos2d::extension::CCControlButton::setColor", "pseudocode": "// \n// cocos2d::extension::CCControlButton::setColor from 0x180007160 to 0x1800071c4 (100 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800260e0\n// > <???> @ 0x18002a058\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b69c\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\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 0x180007160 to 0x1800071c4 (100 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800260e0\n; > <???> @ 0x18002a058\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b69c\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, 0x180007160\npush    rdi                                                            ; +0x5, 0x180007165\nsub     rsp, 20h                                                       ; +0x6, 0x180007166\nmov     rdi, rdx                                                       ; +0xa, 0x18000716a\nmov     rbx, rcx                                                       ; +0xd, 0x18000716d\ncall    cs:__imp_?setColor@CCLayerRGBA@cocos2d@@UEAAXAEBU_ccColor3B@2@@Z; cocos2d::CCLayerRGBA::setColor(cocos2d::_ccColor3B const &) ; +0x10, 0x180007170\nmov     rax, [rbx+90h]                                                 ; +0x16, 0x180007176\ntest    rax, rax                                                       ; +0x1d, 0x18000717d\njz      short loc_1800071B9                                            ; +0x20, 0x180007180\nmov     rax, [rax+38h]                                                 ; +0x22, 0x180007182\ntest    rax, rax                                                       ; +0x26, 0x180007186\njz      short loc_1800071B9                                            ; +0x29, 0x180007189\nmov     rbx, [rax+120h]                                                ; +0x2b, 0x18000718b\nmov     rcx, [rax+108h]                                                ; +0x32, 0x180007192\nmov     rdx, rdi                                                       ; +0x39, 0x180007199\nadd     rcx, 140h                                                      ; +0x3c, 0x18000719c\nmov     rax, [rcx]                                                     ; +0x43, 0x1800071a3\ncall    qword ptr [rax]                                                ; +0x46, 0x1800071a6\nmov     rax, rbx                                                       ; +0x48, 0x1800071a8\ntest    rbx, rbx                                                       ; +0x4b, 0x1800071ab\njz      short loc_1800071B9                                            ; +0x4e, 0x1800071ae\nmov     rbx, [rbx+120h]                                                ; +0x50, 0x1800071b0\njmp     short loc_180007192                                            ; +0x57, 0x1800071b7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x59, 0x1800071b9\nadd     rsp, 20h                                                       ; +0x5e, 0x1800071be\npop     rdi                                                            ; +0x62, 0x1800071c2\nretn                                                                   ; +0x63, 0x1800071c3", "xrefs": ["<???> @ 0x1800260e0", "<???> @ 0x18002a058", "<???> @ 0x180032408", "<???> @ 0x18004b69c"], "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"}