{"type": "func", "start": 6892040, "end": 6892268, "name": "CCPartAnimSprite::setColor", "pseudocode": "// \n// CCPartAnimSprite::setColor from 0x692a08 to 0x692aec (228 bytes)\n// \n// 4 xrefs:\n// > CCAnimatedSprite::switchToMode @ 0x68c81c\n// > CCAnimatedSprite::setColor @ 0x68d754\n// > GJRobotSprite::updateColors @ 0xa3c6dc\n// > <???> @ 0x99ee0\n// \n// This function is hookable on this platform (idp: arm, 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 12:50:36 +0000\n// \n\n__int64 __fastcall CCPartAnimSprite::setColor(__int64 *a1, __int64 a2)\n{\n  __int64 result; // x0\n  __int64 *v4; // x19\n  __int64 v5; // x2\n  __int64 v6; // x1\n  __int64 *v7; // x0\n  __int64 v8; // x20\n  unsigned __int64 i; // x20\n  __int64 v10; // [xsp+38h] [xbp+38h] BYREF\n\n  v10 = a2;\n  cocos2d::CCSprite::setColor(a1, &v10);\n  result = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 488))(a1);\n  if ( result )\n  {\n    result = **(unsigned int **)((*(__int64 (__fastcall **)(__int64 *))(*a1 + 488))(a1) + 56);\n    if ( (_DWORD)result )\n    {\n      v4 = *(__int64 **)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64 *))(*a1 + 488))(a1) + 56) + 16LL);\n      v5 = *(_QWORD *)((*(__int64 (__fastcall **)(__int64 *))(*a1 + 488))(a1) + 56);\n      v6 = *a1;\n      v7 = a1;\n      v8 = *(_QWORD *)(v5 + 16);\n      result = *(_QWORD *)((*(__int64 (__fastcall **)(__int64 *))(v6 + 488))(v7) + 56);\n      for ( i = v8 + 8LL * *(unsigned int *)result - 8;\n            i >= (unsigned __int64)v4;\n            result = (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)result + 960LL))(result, &v10) )\n      {\n        result = *v4;\n        if ( !*v4 )\n          break;\n        ++v4;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCPartAnimSprite::setColor from 0x692a08 to 0x692aec (228 bytes)\n; \n; 4 xrefs:\n; > CCAnimatedSprite::switchToMode @ 0x68c81c\n; > CCAnimatedSprite::setColor @ 0x68d754\n; > GJRobotSprite::updateColors @ 0xa3c6dc\n; > <???> @ 0x99ee0\n; \n; This function is hookable on this platform (idp: arm, 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 12:50:36 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x692a08\nMOV             X29, SP                                                ; +0x4, 0x692a0c\nSTR             X21, [SP,#0x40+var_20]                                 ; +0x8, 0x692a10\nADD             X21, X29, #0x40+var_8                                  ; +0xc, 0x692a14\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x10, 0x692a18\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x14, 0x692a1c\nMOV             X20, X0                                                ; +0x18, 0x692a20\nMOV             X1, X21                                                ; +0x1c, 0x692a24\nBL              _ZN7cocos2d8CCSprite8setColorERKNS_10_ccColor3BE; cocos2d::CCSprite::setColor(cocos2d::_ccColor3B const&) ; +0x20, 0x692a28\nLDR             X1, [X20]                                              ; +0x24, 0x692a2c\nMOV             X0, X20                                                ; +0x28, 0x692a30\nLDR             X1, [X1,#0x1E8]                                        ; +0x2c, 0x692a34\nBLR             X1                                                     ; +0x30, 0x692a38\nCBZ             X0, loc_692ADC                                         ; +0x34, 0x692a3c\nLDR             X1, [X20]                                              ; +0x38, 0x692a40\nMOV             X0, X20                                                ; +0x3c, 0x692a44\nLDR             X1, [X1,#0x1E8]                                        ; +0x40, 0x692a48\nBLR             X1                                                     ; +0x44, 0x692a4c\nLDR             X0, [X0,#0x38]                                         ; +0x48, 0x692a50\nLDR             W0, [X0]                                               ; +0x4c, 0x692a54\nCBZ             W0, loc_692ADC                                         ; +0x50, 0x692a58\nLDR             X1, [X20]                                              ; +0x54, 0x692a5c\nMOV             X0, X20                                                ; +0x58, 0x692a60\nLDR             X1, [X1,#0x1E8]                                        ; +0x5c, 0x692a64\nBLR             X1                                                     ; +0x60, 0x692a68\nLDR             X2, [X0,#0x38]                                         ; +0x64, 0x692a6c\nLDR             X1, [X20]                                              ; +0x68, 0x692a70\nMOV             X0, X20                                                ; +0x6c, 0x692a74\nLDR             X19, [X2,#0x10]                                        ; +0x70, 0x692a78\nLDR             X1, [X1,#0x1E8]                                        ; +0x74, 0x692a7c\nBLR             X1                                                     ; +0x78, 0x692a80\nLDR             X2, [X0,#0x38]                                         ; +0x7c, 0x692a84\nLDR             X1, [X20]                                              ; +0x80, 0x692a88\nMOV             X0, X20                                                ; +0x84, 0x692a8c\nLDR             X20, [X2,#0x10]                                        ; +0x88, 0x692a90\nLDR             X1, [X1,#0x1E8]                                        ; +0x8c, 0x692a94\nBLR             X1                                                     ; +0x90, 0x692a98\nLDR             X0, [X0,#0x38]                                         ; +0x94, 0x692a9c\nMOV             X1, #0xFFFFFFFFFFFFFFF8                                ; +0x98, 0x692aa0\nLDR             W2, [X0]                                               ; +0x9c, 0x692aa4\nADD             X1, X1, W2,UXTW#3                                      ; +0xa0, 0x692aa8\nADD             X20, X20, X1                                           ; +0xa4, 0x692aac\nCMP             X19, X20                                               ; +0xa8, 0x692ab0\nB.HI            loc_692ADC                                             ; +0xac, 0x692ab4\nLDR             X0, [X19]                                              ; +0xb0, 0x692ab8\nCBZ             X0, loc_692ADC                                         ; +0xb4, 0x692abc\nLDR             X2, [X0]                                               ; +0xb8, 0x692ac0\nMOV             X1, X21                                                ; +0xbc, 0x692ac4\nADD             X19, X19, #8                                           ; +0xc0, 0x692ac8\nLDR             X2, [X2,#0x3C0]                                        ; +0xc4, 0x692acc\nBLR             X2                                                     ; +0xc8, 0x692ad0\nCMP             X20, X19                                               ; +0xcc, 0x692ad4\nB.CS            loc_692AB8                                             ; +0xd0, 0x692ad8\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xd4, 0x692adc\nLDR             X21, [SP,#0x40+var_20]                                 ; +0xd8, 0x692ae0\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xdc, 0x692ae4\nRET                                                                    ; +0xe0, 0x692ae8", "xrefs": ["CCAnimatedSprite::switchToMode @ 0x68c81c", "CCAnimatedSprite::setColor @ 0x68d754", "GJRobotSprite::updateColors @ 0xa3c6dc", "<???> @ 0x99ee0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}