{"type": "func", "start": 6443024976, "end": 6443025139, "name": "cocos2d::CCSprite::setChildColor", "pseudocode": "// \n// cocos2d::CCSprite::setChildColor from 0x18008c250 to 0x18008c2f3 (163 bytes)\n// \n// 9 xrefs:\n// > <???> @ 0x1800ebc20\n// > <???> @ 0x1800ec0f8\n// > <???> @ 0x1800ecc78\n// > <???> @ 0x180103b30\n// > <???> @ 0x180106b28\n// > <???> @ 0x18013d48c\n// > <???> @ 0x18013d4e4\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5c88\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::CCSprite::setChildColor(cocos2d::CCSprite *this, const struct cocos2d::_ccColor3B *a2)\n{\n  cocos2d::CCArray *m_pChildren; // rax\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rbx\n  cocos2d::CCObject **i; // rdi\n  __int64 v8; // rax\n\n  if ( this->m_bHasChildren )\n  {\n    m_pChildren = this->m_pChildren;\n    if ( m_pChildren )\n    {\n      data = m_pChildren->data;\n      num = data->num;\n      if ( (_DWORD)num )\n      {\n        arr = data->arr;\n        for ( i = &arr[num - 1]; arr <= i; ++arr )\n        {\n          if ( !*arr )\n            break;\n          v8 = _RTDynamicCast(\n                 *arr,\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 0x18008c250 to 0x18008c2f3 (163 bytes)\n; \n; 9 xrefs:\n; > <???> @ 0x1800ebc20\n; > <???> @ 0x1800ec0f8\n; > <???> @ 0x1800ecc78\n; > <???> @ 0x180103b30\n; > <???> @ 0x180106b28\n; > <???> @ 0x18013d48c\n; > <???> @ 0x18013d4e4\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5c88\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, 0x18008c250\nsub     rsp, 30h                                                       ; +0x2, 0x18008c252\ncmp     byte ptr [rcx+17Ah], 0                                         ; +0x6, 0x18008c256\nmov     rsi, rdx                                                       ; +0xd, 0x18008c25d\njz      loc_18008C2ED                                                  ; +0x10, 0x18008c260\nmov     rax, [rcx+0D0h]                                                ; +0x16, 0x18008c266\ntest    rax, rax                                                       ; +0x1d, 0x18008c26d\njz      short loc_18008C2ED                                            ; +0x20, 0x18008c270\nmov     [rsp+38h+arg_0], rbx                                           ; +0x22, 0x18008c272\nmov     rbx, [rax+38h]                                                 ; +0x27, 0x18008c277\nmov     eax, [rbx]                                                     ; +0x2b, 0x18008c27b\ntest    eax, eax                                                       ; +0x2d, 0x18008c27d\njz      short loc_18008C2E8                                            ; +0x2f, 0x18008c27f\nmov     rbx, [rbx+10h]                                                 ; +0x31, 0x18008c281\nmov     [rsp+38h+arg_10], rdi                                          ; +0x35, 0x18008c285\nlea     rdi, [rax-1]                                                   ; +0x3a, 0x18008c28a\nlea     rdi, [rbx+rdi*8]                                               ; +0x3e, 0x18008c28e\ncmp     rbx, rdi                                                       ; +0x42, 0x18008c292\nja      short loc_18008C2E3                                            ; +0x45, 0x18008c295\nmov     [rsp+38h+arg_8], rbp                                           ; +0x47, 0x18008c297\nxor     ebp, ebp                                                       ; +0x4c, 0x18008c29c\nxchg    ax, ax                                                         ; +0x4e, 0x18008c29e\nmov     rcx, [rbx]                                                     ; +0x50, 0x18008c2a0\ntest    rcx, rcx                                                       ; +0x53, 0x18008c2a3\njz      short loc_18008C2DE                                            ; +0x56, 0x18008c2a6\nlea     r9, ??_R0?AVCCSprite@cocos2d@@@8; cocos2d::CCSprite `RTTI Type Descriptor' ; +0x58, 0x18008c2a8\nmov     [rsp+38h+var_18], ebp                                          ; +0x5f, 0x18008c2af\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x63, 0x18008c2b3\nxor     edx, edx                                                       ; +0x6a, 0x18008c2ba\ncall    __RTDynamicCast                                                ; +0x6c, 0x18008c2bc\ntest    rax, rax                                                       ; +0x71, 0x18008c2c1\njz      short loc_18008C2D5                                            ; +0x74, 0x18008c2c4\nlea     rcx, [rax+140h]                                                ; +0x76, 0x18008c2c6\nmov     rdx, rsi                                                       ; +0x7d, 0x18008c2cd\nmov     rax, [rcx]                                                     ; +0x80, 0x18008c2d0\ncall    qword ptr [rax]                                                ; +0x83, 0x18008c2d3\nadd     rbx, 8                                                         ; +0x85, 0x18008c2d5\ncmp     rbx, rdi                                                       ; +0x89, 0x18008c2d9\njbe     short loc_18008C2A0                                            ; +0x8c, 0x18008c2dc\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x8e, 0x18008c2de\nmov     rdi, [rsp+38h+arg_10]                                          ; +0x93, 0x18008c2e3\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x98, 0x18008c2e8\nadd     rsp, 30h                                                       ; +0x9d, 0x18008c2ed\npop     rsi                                                            ; +0xa1, 0x18008c2f1\nretn                                                                   ; +0xa2, 0x18008c2f2", "xrefs": ["<???> @ 0x1800ebc20", "<???> @ 0x1800ec0f8", "<???> @ 0x1800ecc78", "<???> @ 0x180103b30", "<???> @ 0x180106b28", "<???> @ 0x18013d48c", "<???> @ 0x18013d4e4", "<???> @ 0x1801438a8", "<???> @ 0x1801b5c88"], "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"}