{"type": "func", "start": 4298593344, "end": 4298593544, "name": "CCPartAnimSprite::setColor", "pseudocode": "// \n// CCPartAnimSprite::setColor from 0x100375440 to 0x100375508 (200 bytes)\n// \n// 4 xrefs:\n// > CCAnimatedSprite::switchToMode @ 0x100350992\n// > CCAnimatedSprite::setColor @ 0x1003510ad\n// > sub_1003510D0 @ 0x10035110d\n// > GJRobotSprite::updateColors @ 0x1005dcd58\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 CCPartAnimSprite::setColor(CCPartAnimSprite *a1, cocos2d::ccColor3B a2)\n{\n  __int64 v2; // rax\n  _QWORD *v3; // r14\n  __int64 v4; // r15\n  unsigned __int64 i; // r15\n  cocos2d::ccColor3B v6; // [rsp+0h] [rbp-1Ch] BYREF\n  char v7; // [rsp+3h] [rbp-19h]\n\n  v7 = HIBYTE(v2);\n  v6 = a2;\n  cocos2d::CCSprite::setColor(a1, &v6);\n  if ( ((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) )\n  {\n    if ( **(_DWORD **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) )\n    {\n      v3 = *(_QWORD **)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);\n      v4 = *(_QWORD *)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);\n      for ( i = v4\n              + 8LL * **(unsigned int **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56)\n              - 8; (unsigned __int64)v3 <= i; ++v3 )\n      {\n        if ( !*v3 )\n          break;\n        (*(void (__fastcall **)(_QWORD, cocos2d::ccColor3B *))(*(_QWORD *)*v3 + 944LL))(*v3, &v6);\n      }\n    }\n  }\n}", "assembly": "; \n; CCPartAnimSprite::setColor from 0x100375440 to 0x100375508 (200 bytes)\n; \n; 4 xrefs:\n; > CCAnimatedSprite::switchToMode @ 0x100350992\n; > CCAnimatedSprite::setColor @ 0x1003510ad\n; > sub_1003510D0 @ 0x10035110d\n; > GJRobotSprite::updateColors @ 0x1005dcd58\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    rbp                                                            ; +0x0, 0x100375440\nmov     rbp, rsp                                                       ; +0x1, 0x100375441\npush    r15                                                            ; +0x4, 0x100375444\npush    r14                                                            ; +0x6, 0x100375446\npush    rbx                                                            ; +0x8, 0x100375448\npush    rax                                                            ; +0x9, 0x100375449\nmov     rbx, rdi                                                       ; +0xa, 0x10037544a\nmov     [rbp+var_1C], si                                               ; +0xd, 0x10037544d\nshr     esi, 10h                                                       ; +0x11, 0x100375451\nmov     [rbp+var_1A], sil                                              ; +0x14, 0x100375454\nlea     rsi, [rbp+var_1C]                                              ; +0x18, 0x100375458\ncall    cocos2d__CCSprite__setColor                                    ; +0x1c, 0x10037545c\nmov     rax, [rbx]                                                     ; +0x21, 0x100375461\nmov     rdi, rbx                                                       ; +0x24, 0x100375464\ncall    qword ptr [rax+1D8h]                                           ; +0x27, 0x100375467\ntest    rax, rax                                                       ; +0x2d, 0x10037546d\njz      loc_1003754FD                                                  ; +0x30, 0x100375470\nmov     rax, [rbx]                                                     ; +0x36, 0x100375476\nmov     rdi, rbx                                                       ; +0x39, 0x100375479\ncall    qword ptr [rax+1D8h]                                           ; +0x3c, 0x10037547c\nmov     rax, [rax+38h]                                                 ; +0x42, 0x100375482\ncmp     dword ptr [rax], 0                                             ; +0x46, 0x100375486\njz      short loc_1003754FD                                            ; +0x49, 0x100375489\nmov     rax, [rbx]                                                     ; +0x4b, 0x10037548b\nmov     rdi, rbx                                                       ; +0x4e, 0x10037548e\ncall    qword ptr [rax+1D8h]                                           ; +0x51, 0x100375491\nmov     rax, [rax+38h]                                                 ; +0x57, 0x100375497\nmov     r14, [rax+10h]                                                 ; +0x5b, 0x10037549b\nmov     rax, [rbx]                                                     ; +0x5f, 0x10037549f\nmov     rdi, rbx                                                       ; +0x62, 0x1003754a2\ncall    qword ptr [rax+1D8h]                                           ; +0x65, 0x1003754a5\nmov     rax, [rax+38h]                                                 ; +0x6b, 0x1003754ab\nmov     r15, [rax+10h]                                                 ; +0x6f, 0x1003754af\nmov     rax, [rbx]                                                     ; +0x73, 0x1003754b3\nmov     rdi, rbx                                                       ; +0x76, 0x1003754b6\ncall    qword ptr [rax+1D8h]                                           ; +0x79, 0x1003754b9\nmov     rax, [rax+38h]                                                 ; +0x7f, 0x1003754bf\nmov     eax, [rax]                                                     ; +0x83, 0x1003754c3\nlea     r15, [r15+rax*8]                                               ; +0x85, 0x1003754c5\nadd     r15, 0FFFFFFFFFFFFFFF8h                                        ; +0x89, 0x1003754c9\ncmp     r14, r15                                                       ; +0x8d, 0x1003754cd\nja      short loc_1003754FD                                            ; +0x90, 0x1003754d0\nlea     rbx, [rbp+var_1C]                                              ; +0x92, 0x1003754d2\nnop     word ptr [rax+rax+00000000h]                                   ; +0x96, 0x1003754d6\nmov     rdi, [r14]                                                     ; +0xa0, 0x1003754e0\ntest    rdi, rdi                                                       ; +0xa3, 0x1003754e3\njz      short loc_1003754FD                                            ; +0xa6, 0x1003754e6\nmov     rax, [rdi]                                                     ; +0xa8, 0x1003754e8\nmov     rsi, rbx                                                       ; +0xab, 0x1003754eb\ncall    qword ptr [rax+3B0h]                                           ; +0xae, 0x1003754ee\nadd     r14, 8                                                         ; +0xb4, 0x1003754f4\ncmp     r14, r15                                                       ; +0xb8, 0x1003754f8\njbe     short loc_1003754E0                                            ; +0xbb, 0x1003754fb\nadd     rsp, 8                                                         ; +0xbd, 0x1003754fd\npop     rbx                                                            ; +0xc1, 0x100375501\npop     r14                                                            ; +0xc2, 0x100375502\npop     r15                                                            ; +0xc4, 0x100375504\npop     rbp                                                            ; +0xc6, 0x100375506\nretn                                                                   ; +0xc7, 0x100375507", "xrefs": ["CCAnimatedSprite::switchToMode @ 0x100350992", "CCAnimatedSprite::setColor @ 0x1003510ad", "sub_1003510D0 @ 0x10035110d", "GJRobotSprite::updateColors @ 0x1005dcd58"], "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"}