{"type": "func", "start": 6442516240, "end": 6442516411, "name": "cocos2d::extension::CCScale9Sprite::setOpacityModifyRGB", "pseudocode": "// \n// cocos2d::extension::CCScale9Sprite::setOpacityModifyRGB from 0x18000ff10 to 0x18000ffbb (171 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x180027508\n// > <???> @ 0x18002e478\n// > <???> @ 0x18002e4d0\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004a014\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::CCScale9Sprite::setOpacityModifyRGB(\n        cocos2d::extension::CCScale9Sprite *this,\n        char a2)\n{\n  __int64 v3; // rcx\n  __int64 v4; // rax\n  unsigned int *v5; // rbx\n  __int64 v6; // rax\n  _QWORD *v7; // rbx\n  _QWORD *i; // rdi\n  __int64 v9; // rax\n\n  v3 = *((_QWORD *)this + 15);\n  if ( v3 )\n  {\n    *((_BYTE *)this + 200) = a2;\n    v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 464LL))(v3);\n    if ( v4 )\n    {\n      v5 = *(unsigned int **)(v4 + 56);\n      v6 = *v5;\n      if ( (_DWORD)v6 )\n      {\n        v7 = *((_QWORD **)v5 + 2);\n        for ( i = &v7[v6 - 1]; v7 <= i; ++v7 )\n        {\n          if ( !*v7 )\n            break;\n          v9 = _RTDynamicCast(\n                 *v7,\n                 0,\n                 &cocos2d::CCObject `RTTI Type Descriptor',\n                 &cocos2d::CCRGBAProtocol `RTTI Type Descriptor',\n                 0);\n          if ( v9 )\n            (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 48LL))(v9, *((unsigned __int8 *)this + 200));\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::extension::CCScale9Sprite::setOpacityModifyRGB from 0x18000ff10 to 0x18000ffbb (171 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x180027508\n; > <???> @ 0x18002e478\n; > <???> @ 0x18002e4d0\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004a014\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\npush    rsi                                                            ; +0x0, 0x18000ff10\nsub     rsp, 30h                                                       ; +0x2, 0x18000ff12\nmov     rsi, rcx                                                       ; +0x6, 0x18000ff16\nmov     rcx, [rcx+78h]                                                 ; +0x9, 0x18000ff19\ntest    rcx, rcx                                                       ; +0xd, 0x18000ff1d\njz      loc_18000FFB5                                                  ; +0x10, 0x18000ff20\nmov     [rsi+0C8h], dl                                                 ; +0x16, 0x18000ff26\nmov     rax, [rcx]                                                     ; +0x1c, 0x18000ff2c\ncall    qword ptr [rax+1D0h]                                           ; +0x1f, 0x18000ff2f\ntest    rax, rax                                                       ; +0x25, 0x18000ff35\njz      short loc_18000FFB5                                            ; +0x28, 0x18000ff38\nmov     [rsp+38h+arg_0], rbx                                           ; +0x2a, 0x18000ff3a\nmov     rbx, [rax+38h]                                                 ; +0x2f, 0x18000ff3f\nmov     eax, [rbx]                                                     ; +0x33, 0x18000ff43\ntest    eax, eax                                                       ; +0x35, 0x18000ff45\njz      short loc_18000FFB0                                            ; +0x37, 0x18000ff47\nmov     rbx, [rbx+10h]                                                 ; +0x39, 0x18000ff49\nmov     [rsp+38h+arg_10], rdi                                          ; +0x3d, 0x18000ff4d\nlea     rdi, [rax-1]                                                   ; +0x42, 0x18000ff52\nlea     rdi, [rbx+rdi*8]                                               ; +0x46, 0x18000ff56\ncmp     rbx, rdi                                                       ; +0x4a, 0x18000ff5a\nja      short loc_18000FFAB                                            ; +0x4d, 0x18000ff5d\nmov     [rsp+38h+arg_8], rbp                                           ; +0x4f, 0x18000ff5f\nxor     ebp, ebp                                                       ; +0x54, 0x18000ff64\nmov     rcx, [rbx]                                                     ; +0x56, 0x18000ff66\ntest    rcx, rcx                                                       ; +0x59, 0x18000ff69\njz      short loc_18000FFA6                                            ; +0x5c, 0x18000ff6c\nlea     r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x5e, 0x18000ff6e\nmov     [rsp+38h+var_18], ebp                                          ; +0x65, 0x18000ff75\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x69, 0x18000ff79\nxor     edx, edx                                                       ; +0x70, 0x18000ff80\ncall    __RTDynamicCast                                                ; +0x72, 0x18000ff82\ntest    rax, rax                                                       ; +0x77, 0x18000ff87\njz      short loc_18000FF9D                                            ; +0x7a, 0x18000ff8a\nmov     r8, [rax]                                                      ; +0x7c, 0x18000ff8c\nmov     rcx, rax                                                       ; +0x7f, 0x18000ff8f\nmovzx   edx, byte ptr [rsi+0C8h]                                       ; +0x82, 0x18000ff92\ncall    qword ptr [r8+30h]                                             ; +0x89, 0x18000ff99\nadd     rbx, 8                                                         ; +0x8d, 0x18000ff9d\ncmp     rbx, rdi                                                       ; +0x91, 0x18000ffa1\njbe     short loc_18000FF66                                            ; +0x94, 0x18000ffa4\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x96, 0x18000ffa6\nmov     rdi, [rsp+38h+arg_10]                                          ; +0x9b, 0x18000ffab\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xa0, 0x18000ffb0\nadd     rsp, 30h                                                       ; +0xa5, 0x18000ffb5\npop     rsi                                                            ; +0xa9, 0x18000ffb9\nretn                                                                   ; +0xaa, 0x18000ffba", "xrefs": ["<???> @ 0x180027508", "<???> @ 0x18002e478", "<???> @ 0x18002e4d0", "<???> @ 0x18002fdf8", "<???> @ 0x18004a014"], "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"}