{"type": "func", "start": 6443037760, "end": 6443037923, "name": "cocos2d::CCSprite::setChildColor", "pseudocode": "// \n// cocos2d::CCSprite::setChildColor from 0x18008f440 to 0x18008f4e3 (163 bytes)\n// \n// 9 xrefs:\n// > <???> @ 0x1800f1d20\n// > <???> @ 0x1800f2208\n// > <???> @ 0x1800f2db8\n// > <???> @ 0x18010a1f8\n// > <???> @ 0x18010d210\n// > <???> @ 0x180146738\n// > <???> @ 0x180146790\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bff58\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 11:22:07 +0000\n// \n\nvoid __fastcall cocos2d::CCSprite::setChildColor(cocos2d::CCSprite *this, const struct cocos2d::_ccColor3B *a2)\n{\n  __int64 v3; // rax\n  unsigned int *v4; // rbx\n  __int64 v5; // rax\n  _QWORD *v6; // rbx\n  _QWORD *i; // rdi\n  __int64 v8; // rax\n\n  if ( *((_BYTE *)this + 378) )\n  {\n    v3 = *((_QWORD *)this + 26);\n    if ( v3 )\n    {\n      v4 = *(unsigned int **)(v3 + 56);\n      v5 = *v4;\n      if ( (_DWORD)v5 )\n      {\n        v6 = *((_QWORD **)v4 + 2);\n        for ( i = &v6[v5 - 1]; v6 <= i; ++v6 )\n        {\n          if ( !*v6 )\n            break;\n          v8 = _RTDynamicCast(\n                 *v6,\n                 0,\n                 &cocos2d::CCObject `RTTI Type Descriptor',\n                 &cocos2d::CCSprite `RTTI Type Descriptor',\n                 0);\n          if ( v8 )\n            (**(void (__fastcall ***)(__int64, const struct cocos2d::_ccColor3B *))(v8 + 320))(v8 + 320, a2);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCSprite::setChildColor from 0x18008f440 to 0x18008f4e3 (163 bytes)\n; \n; 9 xrefs:\n; > <???> @ 0x1800f1d20\n; > <???> @ 0x1800f2208\n; > <???> @ 0x1800f2db8\n; > <???> @ 0x18010a1f8\n; > <???> @ 0x18010d210\n; > <???> @ 0x180146738\n; > <???> @ 0x180146790\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bff58\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 11:22:07 +0000\n; \npush    rsi                                                            ; +0x0, 0x18008f440\nsub     rsp, 30h                                                       ; +0x2, 0x18008f442\ncmp     byte ptr [rcx+17Ah], 0                                         ; +0x6, 0x18008f446\nmov     rsi, rdx                                                       ; +0xd, 0x18008f44d\njz      loc_18008F4DD                                                  ; +0x10, 0x18008f450\nmov     rax, [rcx+0D0h]                                                ; +0x16, 0x18008f456\ntest    rax, rax                                                       ; +0x1d, 0x18008f45d\njz      short loc_18008F4DD                                            ; +0x20, 0x18008f460\nmov     [rsp+38h+arg_0], rbx                                           ; +0x22, 0x18008f462\nmov     rbx, [rax+38h]                                                 ; +0x27, 0x18008f467\nmov     eax, [rbx]                                                     ; +0x2b, 0x18008f46b\ntest    eax, eax                                                       ; +0x2d, 0x18008f46d\njz      short loc_18008F4D8                                            ; +0x2f, 0x18008f46f\nmov     rbx, [rbx+10h]                                                 ; +0x31, 0x18008f471\nmov     [rsp+38h+arg_10], rdi                                          ; +0x35, 0x18008f475\nlea     rdi, [rax-1]                                                   ; +0x3a, 0x18008f47a\nlea     rdi, [rbx+rdi*8]                                               ; +0x3e, 0x18008f47e\ncmp     rbx, rdi                                                       ; +0x42, 0x18008f482\nja      short loc_18008F4D3                                            ; +0x45, 0x18008f485\nmov     [rsp+38h+arg_8], rbp                                           ; +0x47, 0x18008f487\nxor     ebp, ebp                                                       ; +0x4c, 0x18008f48c\nxchg    ax, ax                                                         ; +0x4e, 0x18008f48e\nmov     rcx, [rbx]                                                     ; +0x50, 0x18008f490\ntest    rcx, rcx                                                       ; +0x53, 0x18008f493\njz      short loc_18008F4CE                                            ; +0x56, 0x18008f496\nlea     r9, ??_R0?AVCCSprite@cocos2d@@@8; cocos2d::CCSprite `RTTI Type Descriptor' ; +0x58, 0x18008f498\nmov     [rsp+38h+var_18], ebp                                          ; +0x5f, 0x18008f49f\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x63, 0x18008f4a3\nxor     edx, edx                                                       ; +0x6a, 0x18008f4aa\ncall    __RTDynamicCast                                                ; +0x6c, 0x18008f4ac\ntest    rax, rax                                                       ; +0x71, 0x18008f4b1\njz      short loc_18008F4C5                                            ; +0x74, 0x18008f4b4\nlea     rcx, [rax+140h]                                                ; +0x76, 0x18008f4b6\nmov     rdx, rsi                                                       ; +0x7d, 0x18008f4bd\nmov     rax, [rcx]                                                     ; +0x80, 0x18008f4c0\ncall    qword ptr [rax]                                                ; +0x83, 0x18008f4c3\nadd     rbx, 8                                                         ; +0x85, 0x18008f4c5\ncmp     rbx, rdi                                                       ; +0x89, 0x18008f4c9\njbe     short loc_18008F490                                            ; +0x8c, 0x18008f4cc\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x8e, 0x18008f4ce\nmov     rdi, [rsp+38h+arg_10]                                          ; +0x93, 0x18008f4d3\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x98, 0x18008f4d8\nadd     rsp, 30h                                                       ; +0x9d, 0x18008f4dd\npop     rsi                                                            ; +0xa1, 0x18008f4e1\nretn                                                                   ; +0xa2, 0x18008f4e2", "xrefs": ["<???> @ 0x1800f1d20", "<???> @ 0x1800f2208", "<???> @ 0x1800f2db8", "<???> @ 0x18010a1f8", "<???> @ 0x18010d210", "<???> @ 0x180146738", "<???> @ 0x180146790", "<???> @ 0x18014cf68", "<???> @ 0x1801bff58"], "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"}