{"type": "func", "start": 4295488840, "end": 4295489072, "name": "CCPartAnimSprite::setColor", "pseudocode": "// \n// CCPartAnimSprite::setColor from 0x10007f548 to 0x10007f630 (232 bytes)\n// \n// 3 xrefs:\n// > GJRobotSprite::updateColors @ 0x10023fe2c\n// > CCAnimatedSprite::switchToMode @ 0x1002fda00\n// > CCAnimatedSprite::setColor @ 0x1002fdf50\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  _QWORD *v3; // x20\n  __int64 v4; // x21\n  unsigned __int64 v5; // x19\n  cocos2d::ccColor3B v6; // [xsp+Ch] [xbp-24h] BYREF\n\n  v6 = a2;\n  cocos2d::CCSprite::setColor(a1, &v6);\n  if ( ((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1)\n    && **(_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    v5 = v4 + 8LL * **(unsigned int **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) - 8;\n    while ( (unsigned __int64)v3 <= v5 && *v3 )\n    {\n      (*(void (__fastcall **)(_QWORD, cocos2d::ccColor3B *))(*(_QWORD *)*v3 + 944LL))(*v3, &v6);\n      ++v3;\n    }\n  }\n}", "assembly": "; \n; CCPartAnimSprite::setColor from 0x10007f548 to 0x10007f630 (232 bytes)\n; \n; 3 xrefs:\n; > GJRobotSprite::updateColors @ 0x10023fe2c\n; > CCAnimatedSprite::switchToMode @ 0x1002fda00\n; > CCAnimatedSprite::setColor @ 0x1002fdf50\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x10007f548\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10007f54c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10007f550\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10007f554\nADD             X29, SP, #0x30                                         ; +0x10, 0x10007f558\nMOV             X19, X0                                                ; +0x14, 0x10007f55c\nSTRH            W1, [SP,#0x30+var_24]                                  ; +0x18, 0x10007f560\nUBFX            X8, X1, #0x10, #0x10                                   ; +0x1c, 0x10007f564\nSTRB            W8, [SP,#0x30+var_22]                                  ; +0x20, 0x10007f568\nADD             X1, SP, #0x30+var_24                                   ; +0x24, 0x10007f56c\nBL              cocos2d__CCSprite__setColor                            ; +0x28, 0x10007f570\nLDR             X8, [X19]                                              ; +0x2c, 0x10007f574\nLDR             X8, [X8,#0x1D8]                                        ; +0x30, 0x10007f578\nMOV             X0, X19                                                ; +0x34, 0x10007f57c\nBLR             X8                                                     ; +0x38, 0x10007f580\nCBZ             X0, loc_10007F61C                                      ; +0x3c, 0x10007f584\nLDR             X8, [X19]                                              ; +0x40, 0x10007f588\nLDR             X8, [X8,#0x1D8]                                        ; +0x44, 0x10007f58c\nMOV             X0, X19                                                ; +0x48, 0x10007f590\nBLR             X8                                                     ; +0x4c, 0x10007f594\nLDR             X8, [X0,#0x38]                                         ; +0x50, 0x10007f598\nLDR             W8, [X8]                                               ; +0x54, 0x10007f59c\nCBZ             W8, loc_10007F61C                                      ; +0x58, 0x10007f5a0\nLDR             X8, [X19]                                              ; +0x5c, 0x10007f5a4\nLDR             X8, [X8,#0x1D8]                                        ; +0x60, 0x10007f5a8\nMOV             X0, X19                                                ; +0x64, 0x10007f5ac\nBLR             X8                                                     ; +0x68, 0x10007f5b0\nLDR             X8, [X0,#0x38]                                         ; +0x6c, 0x10007f5b4\nLDR             X20, [X8,#0x10]                                        ; +0x70, 0x10007f5b8\nLDR             X8, [X19]                                              ; +0x74, 0x10007f5bc\nLDR             X8, [X8,#0x1D8]                                        ; +0x78, 0x10007f5c0\nMOV             X0, X19                                                ; +0x7c, 0x10007f5c4\nBLR             X8                                                     ; +0x80, 0x10007f5c8\nLDR             X8, [X0,#0x38]                                         ; +0x84, 0x10007f5cc\nLDR             X21, [X8,#0x10]                                        ; +0x88, 0x10007f5d0\nLDR             X8, [X19]                                              ; +0x8c, 0x10007f5d4\nLDR             X8, [X8,#0x1D8]                                        ; +0x90, 0x10007f5d8\nMOV             X0, X19                                                ; +0x94, 0x10007f5dc\nBLR             X8                                                     ; +0x98, 0x10007f5e0\nLDR             X8, [X0,#0x38]                                         ; +0x9c, 0x10007f5e4\nLDR             W8, [X8]                                               ; +0xa0, 0x10007f5e8\nADD             X8, X21, X8,LSL#3                                      ; +0xa4, 0x10007f5ec\nSUB             X19, X8, #8                                            ; +0xa8, 0x10007f5f0\nCMP             X20, X19                                               ; +0xac, 0x10007f5f4\nB.HI            loc_10007F61C                                          ; +0xb0, 0x10007f5f8\nLDR             X0, [X20]                                              ; +0xb4, 0x10007f5fc\nCBZ             X0, loc_10007F61C                                      ; +0xb8, 0x10007f600\nLDR             X8, [X0]                                               ; +0xbc, 0x10007f604\nLDR             X8, [X8,#0x3B0]                                        ; +0xc0, 0x10007f608\nADD             X1, SP, #0x30+var_24                                   ; +0xc4, 0x10007f60c\nBLR             X8                                                     ; +0xc8, 0x10007f610\nADD             X20, X20, #8                                           ; +0xcc, 0x10007f614\nB               loc_10007F5F4                                          ; +0xd0, 0x10007f618\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xd4, 0x10007f61c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xd8, 0x10007f620\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xdc, 0x10007f624\nADD             SP, SP, #0x40 ; '@'                                    ; +0xe0, 0x10007f628\nRET                                                                    ; +0xe4, 0x10007f62c", "xrefs": ["GJRobotSprite::updateColors @ 0x10023fe2c", "CCAnimatedSprite::switchToMode @ 0x1002fda00", "CCAnimatedSprite::setColor @ 0x1002fdf50"], "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"}