{"type": "func", "start": 6442516880, "end": 6442517063, "name": "cocos2d::extension::CCScale9Sprite::setColor", "pseudocode": "// \n// cocos2d::extension::CCScale9Sprite::setColor from 0x180010190 to 0x180010247 (183 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800274d8\n// > <???> @ 0x18002e4e4\n// > <???> @ 0x18002e53c\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004a098\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::setColor(\n        cocos2d::extension::CCScale9Sprite *this,\n        const struct cocos2d::_ccColor3B *a2)\n{\n  __int64 v3; // rdx\n  __int64 v4; // rax\n  unsigned int *v5; // rbx\n  __int64 v6; // rax\n  _QWORD *v7; // rbx\n  _QWORD *i; // rdi\n  void (__fastcall ***v9)(_QWORD, const struct cocos2d::_ccColor3B *); // rax\n\n  v3 = *((_QWORD *)this + 15);\n  if ( v3 )\n  {\n    *((_WORD *)this + 101) = *(_WORD *)a2;\n    *((_BYTE *)this + 204) = *((_BYTE *)a2 + 2);\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 = (void (__fastcall ***)(_QWORD, const struct cocos2d::_ccColor3B *))_RTDynamicCast(\n                                                                                    *v7,\n                                                                                    0,\n                                                                                    &cocos2d::CCObject `RTTI Type Descriptor',\n                                                                                    &cocos2d::CCRGBAProtocol `RTTI Type Descriptor',\n                                                                                    0);\n          if ( v9 )\n            (**v9)(v9, a2);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::extension::CCScale9Sprite::setColor from 0x180010190 to 0x180010247 (183 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800274d8\n; > <???> @ 0x18002e4e4\n; > <???> @ 0x18002e53c\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004a098\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, 0x180010190\nsub     rsp, 30h                                                       ; +0x2, 0x180010192\nmov     rsi, rdx                                                       ; +0x6, 0x180010196\nmov     rdx, [rcx+78h]                                                 ; +0x9, 0x180010199\ntest    rdx, rdx                                                       ; +0xd, 0x18001019d\njz      loc_180010241                                                  ; +0x10, 0x1800101a0\nmovzx   eax, word ptr [rsi]                                            ; +0x16, 0x1800101a6\nmov     [rcx+0CAh], ax                                                 ; +0x19, 0x1800101a9\nmovzx   eax, byte ptr [rsi+2]                                          ; +0x20, 0x1800101b0\nmov     [rcx+0CCh], al                                                 ; +0x24, 0x1800101b4\nmov     rcx, rdx                                                       ; +0x2a, 0x1800101ba\nmov     rax, [rdx]                                                     ; +0x2d, 0x1800101bd\ncall    qword ptr [rax+1D0h]                                           ; +0x30, 0x1800101c0\ntest    rax, rax                                                       ; +0x36, 0x1800101c6\njz      short loc_180010241                                            ; +0x39, 0x1800101c9\nmov     [rsp+38h+arg_0], rbx                                           ; +0x3b, 0x1800101cb\nmov     rbx, [rax+38h]                                                 ; +0x40, 0x1800101d0\nmov     eax, [rbx]                                                     ; +0x44, 0x1800101d4\ntest    eax, eax                                                       ; +0x46, 0x1800101d6\njz      short loc_18001023C                                            ; +0x48, 0x1800101d8\nmov     rbx, [rbx+10h]                                                 ; +0x4a, 0x1800101da\nmov     [rsp+38h+arg_10], rdi                                          ; +0x4e, 0x1800101de\nlea     rdi, [rax-1]                                                   ; +0x53, 0x1800101e3\nlea     rdi, [rbx+rdi*8]                                               ; +0x57, 0x1800101e7\ncmp     rbx, rdi                                                       ; +0x5b, 0x1800101eb\nja      short loc_180010237                                            ; +0x5e, 0x1800101ee\nmov     [rsp+38h+arg_8], rbp                                           ; +0x60, 0x1800101f0\nxor     ebp, ebp                                                       ; +0x65, 0x1800101f5\nmov     rcx, [rbx]                                                     ; +0x67, 0x1800101f7\ntest    rcx, rcx                                                       ; +0x6a, 0x1800101fa\njz      short loc_180010232                                            ; +0x6d, 0x1800101fd\nlea     r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x6f, 0x1800101ff\nmov     [rsp+38h+var_18], ebp                                          ; +0x76, 0x180010206\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x7a, 0x18001020a\nxor     edx, edx                                                       ; +0x81, 0x180010211\ncall    __RTDynamicCast                                                ; +0x83, 0x180010213\ntest    rax, rax                                                       ; +0x88, 0x180010218\njz      short loc_180010229                                            ; +0x8b, 0x18001021b\nmov     r8, [rax]                                                      ; +0x8d, 0x18001021d\nmov     rdx, rsi                                                       ; +0x90, 0x180010220\nmov     rcx, rax                                                       ; +0x93, 0x180010223\ncall    qword ptr [r8]                                                 ; +0x96, 0x180010226\nadd     rbx, 8                                                         ; +0x99, 0x180010229\ncmp     rbx, rdi                                                       ; +0x9d, 0x18001022d\njbe     short loc_1800101F7                                            ; +0xa0, 0x180010230\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xa2, 0x180010232\nmov     rdi, [rsp+38h+arg_10]                                          ; +0xa7, 0x180010237\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xac, 0x18001023c\nadd     rsp, 30h                                                       ; +0xb1, 0x180010241\npop     rsi                                                            ; +0xb5, 0x180010245\nretn                                                                   ; +0xb6, 0x180010246", "xrefs": ["<???> @ 0x1800274d8", "<???> @ 0x18002e4e4", "<???> @ 0x18002e53c", "<???> @ 0x18002fdf8", "<???> @ 0x18004a098"], "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"}