{"type": "func", "start": 5369013616, "end": 5369013821, "name": "CCPartAnimSprite::setColor", "pseudocode": "// \n// CCPartAnimSprite::setColor from 0x14004a570 to 0x14004a63d (205 bytes)\n// \n// 6 xrefs:\n// > CCAnimatedSprite::switchToMode @ 0x140044745\n// > CCAnimatedSprite::setColor @ 0x140044c99\n// > GJRobotSprite::updateColors @ 0x1403ad0d4\n// > <???> @ 0x140885d00\n// > <???> @ 0x140885d10\n// > <???> @ 0x14090fd1c\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:25:32 +0000\n// \n\n__int64 __fastcall CCPartAnimSprite::setColor(__int64 a1, const struct cocos2d::_ccColor3B *a2)\n{\n  __int64 result; // rax\n  unsigned __int64 v5; // rbx\n  __int64 v6; // rdi\n  unsigned __int64 i; // rdi\n\n  cocos2d::CCSprite::setColor((cocos2d::CCSprite *)(a1 + 320), a2);\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1);\n  if ( result )\n  {\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1);\n    if ( **(_DWORD **)(result + 56) )\n    {\n      v5 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1) + 56) + 16LL);\n      v6 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1) + 56) + 16LL);\n      result = **(unsigned int **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1) + 56);\n      for ( i = v6 + 8 * result - 8; v5 <= i; v5 += 8LL )\n      {\n        if ( !*(_QWORD *)v5 )\n          break;\n        result = (**(__int64 (__fastcall ***)(__int64, const struct cocos2d::_ccColor3B *))(*(_QWORD *)v5 + 320LL))(\n                   *(_QWORD *)v5 + 320LL,\n                   a2);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCPartAnimSprite::setColor from 0x14004a570 to 0x14004a63d (205 bytes)\n; \n; 6 xrefs:\n; > CCAnimatedSprite::switchToMode @ 0x140044745\n; > CCAnimatedSprite::setColor @ 0x140044c99\n; > GJRobotSprite::updateColors @ 0x1403ad0d4\n; > <???> @ 0x140885d00\n; > <???> @ 0x140885d10\n; > <???> @ 0x14090fd1c\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:25:32 +0000\n; \nmov     [rsp+arg_10], rbp                                              ; +0x0, 0x14004a570\npush    rsi                                                            ; +0x5, 0x14004a575\nsub     rsp, 20h                                                       ; +0x6, 0x14004a576\nmov     rsi, rcx                                                       ; +0xa, 0x14004a57a\nmov     rbp, rdx                                                       ; +0xd, 0x14004a57d\nadd     rcx, 140h                                                      ; +0x10, 0x14004a580\ncall    cs:__imp_?setColor@CCSprite@cocos2d@@UEAAXAEBU_ccColor3B@2@@Z; cocos2d::CCSprite::setColor(cocos2d::_ccColor3B const &) ; +0x17, 0x14004a587\nmov     rax, [rsi]                                                     ; +0x1d, 0x14004a58d\nmov     rcx, rsi                                                       ; +0x20, 0x14004a590\ncall    qword ptr [rax+1E0h]                                           ; +0x23, 0x14004a593\ntest    rax, rax                                                       ; +0x29, 0x14004a599\njz      loc_14004A632                                                  ; +0x2c, 0x14004a59c\nmov     rax, [rsi]                                                     ; +0x32, 0x14004a5a2\nmov     rcx, rsi                                                       ; +0x35, 0x14004a5a5\ncall    qword ptr [rax+1E0h]                                           ; +0x38, 0x14004a5a8\nmov     rcx, [rax+38h]                                                 ; +0x3e, 0x14004a5ae\ncmp     dword ptr [rcx], 0                                             ; +0x42, 0x14004a5b2\njbe     short loc_14004A632                                            ; +0x45, 0x14004a5b5\nmov     rax, [rsi]                                                     ; +0x47, 0x14004a5b7\nmov     rcx, rsi                                                       ; +0x4a, 0x14004a5ba\nmov     [rsp+28h+arg_0], rbx                                           ; +0x4d, 0x14004a5bd\nmov     [rsp+28h+arg_8], rdi                                           ; +0x52, 0x14004a5c2\ncall    qword ptr [rax+1E0h]                                           ; +0x57, 0x14004a5c7\nmov     rcx, rsi                                                       ; +0x5d, 0x14004a5cd\nmov     rbx, [rax+38h]                                                 ; +0x60, 0x14004a5d0\nmov     rax, [rsi]                                                     ; +0x64, 0x14004a5d4\nmov     rbx, [rbx+10h]                                                 ; +0x67, 0x14004a5d7\ncall    qword ptr [rax+1E0h]                                           ; +0x6b, 0x14004a5db\nmov     rcx, [rax+38h]                                                 ; +0x71, 0x14004a5e1\nmov     rax, [rsi]                                                     ; +0x75, 0x14004a5e5\nmov     rdi, [rcx+10h]                                                 ; +0x78, 0x14004a5e8\nmov     rcx, rsi                                                       ; +0x7c, 0x14004a5ec\ncall    qword ptr [rax+1E0h]                                           ; +0x7f, 0x14004a5ef\nmov     rcx, [rax+38h]                                                 ; +0x85, 0x14004a5f5\nmov     eax, [rcx]                                                     ; +0x89, 0x14004a5f9\nlea     rdi, [rdi+rax*8]                                               ; +0x8b, 0x14004a5fb\nadd     rdi, 0FFFFFFFFFFFFFFF8h                                        ; +0x8f, 0x14004a5ff\ncmp     rbx, rdi                                                       ; +0x93, 0x14004a603\nja      short loc_14004A628                                            ; +0x96, 0x14004a606\nmov     rcx, [rbx]                                                     ; +0x98, 0x14004a608\ntest    rcx, rcx                                                       ; +0x9b, 0x14004a60b\njz      short loc_14004A628                                            ; +0x9e, 0x14004a60e\nadd     rcx, 140h                                                      ; +0xa0, 0x14004a610\nmov     rdx, rbp                                                       ; +0xa7, 0x14004a617\nmov     rax, [rcx]                                                     ; +0xaa, 0x14004a61a\ncall    qword ptr [rax]                                                ; +0xad, 0x14004a61d\nadd     rbx, 8                                                         ; +0xaf, 0x14004a61f\ncmp     rbx, rdi                                                       ; +0xb3, 0x14004a623\njbe     short loc_14004A608                                            ; +0xb6, 0x14004a626\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb8, 0x14004a628\nmov     rdi, [rsp+28h+arg_8]                                           ; +0xbd, 0x14004a62d\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xc2, 0x14004a632\nadd     rsp, 20h                                                       ; +0xc7, 0x14004a637\npop     rsi                                                            ; +0xcb, 0x14004a63b\nretn                                                                   ; +0xcc, 0x14004a63c", "xrefs": ["CCAnimatedSprite::switchToMode @ 0x140044745", "CCAnimatedSprite::setColor @ 0x140044c99", "GJRobotSprite::updateColors @ 0x1403ad0d4", "<???> @ 0x140885d00", "<???> @ 0x140885d10", "<???> @ 0x14090fd1c"], "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"}