{"type": "func", "start": 6442479840, "end": 6442479942, "name": "cocos2d::extension::CCControlButton::setOpacity", "pseudocode": "// \n// cocos2d::extension::CCControlButton::setOpacity from 0x1800070e0 to 0x180007146 (102 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180026108\n// > <???> @ 0x18002a080\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b690\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::setOpacity(\n        cocos2d::extension::CCControlButton *this,\n        unsigned __int8 a2)\n{\n  __int64 v4; // rax\n  __int64 v5; // rax\n  __int64 i; // rbx\n\n  cocos2d::CCLayerRGBA::setOpacity(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, _QWORD))(*(_QWORD *)(*(_QWORD *)(v5 + 264) + 320LL) + 40LL))(\n          *(_QWORD *)(v5 + 264) + 320LL,\n          a2);\n        v5 = i;\n        if ( !i )\n          break;\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::setOpacity from 0x1800070e0 to 0x180007146 (102 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180026108\n; > <???> @ 0x18002a080\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b690\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, 0x1800070e0\npush    rdi                                                            ; +0x5, 0x1800070e5\nsub     rsp, 20h                                                       ; +0x6, 0x1800070e6\nmovzx   edi, dl                                                        ; +0xa, 0x1800070ea\nmov     rbx, rcx                                                       ; +0xd, 0x1800070ed\ncall    cs:__imp_?setOpacity@CCLayerRGBA@cocos2d@@UEAAXE@Z; cocos2d::CCLayerRGBA::setOpacity(uchar) ; +0x10, 0x1800070f0\nmov     rax, [rbx+90h]                                                 ; +0x16, 0x1800070f6\ntest    rax, rax                                                       ; +0x1d, 0x1800070fd\njz      short loc_18000713B                                            ; +0x20, 0x180007100\nmov     rax, [rax+38h]                                                 ; +0x22, 0x180007102\ntest    rax, rax                                                       ; +0x26, 0x180007106\njz      short loc_18000713B                                            ; +0x29, 0x180007109\nmov     rbx, [rax+120h]                                                ; +0x2b, 0x18000710b\nmov     rcx, [rax+108h]                                                ; +0x32, 0x180007112\nmovzx   edx, dil                                                       ; +0x39, 0x180007119\nadd     rcx, 140h                                                      ; +0x3d, 0x18000711d\nmov     rax, [rcx]                                                     ; +0x44, 0x180007124\ncall    qword ptr [rax+28h]                                            ; +0x47, 0x180007127\nmov     rax, rbx                                                       ; +0x4a, 0x18000712a\ntest    rbx, rbx                                                       ; +0x4d, 0x18000712d\njz      short loc_18000713B                                            ; +0x50, 0x180007130\nmov     rbx, [rbx+120h]                                                ; +0x52, 0x180007132\njmp     short loc_180007112                                            ; +0x59, 0x180007139\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5b, 0x18000713b\nadd     rsp, 20h                                                       ; +0x60, 0x180007140\npop     rdi                                                            ; +0x64, 0x180007144\nretn                                                                   ; +0x65, 0x180007145", "xrefs": ["<???> @ 0x180026108", "<???> @ 0x18002a080", "<???> @ 0x180032408", "<???> @ 0x18004b690"], "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"}