{"type": "func", "start": 3961252, "end": 3961374, "name": "CCPartAnimSprite::setColor", "pseudocode": "// \n// CCPartAnimSprite::setColor from 0x3c71a4 to 0x3c721e (122 bytes)\n// \n// 3 xrefs:\n// > CCAnimatedSprite::switchToMode @ 0x3c35b6\n// > CCAnimatedSprite::setColor @ 0x3c3f48\n// > GJRobotSprite::updateColors @ 0x5e6548\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:35 +0000\n// \n\n_DWORD **__fastcall CCPartAnimSprite::setColor(int a1, int a2, int a3, int a4)\n{\n  _DWORD **result; // r0\n  _DWORD *v6; // r5\n  int v7; // r7\n  unsigned int v8; // r4\n  _DWORD **v9; // t1\n  _DWORD v10[2]; // [sp+4h] [bp-8h] BYREF\n\n  v10[1] = a3;\n  v10[0] = a2;\n  cocos2d::CCSprite::setColor(a1, v10, a3, a4);\n  result = (_DWORD **)(*(int (__fastcall **)(int))(*(_DWORD *)a1 + 244))(a1);\n  if ( result )\n  {\n    result = (_DWORD **)(*(int (__fastcall **)(int))(*(_DWORD *)a1 + 244))(a1);\n    if ( *result[13] )\n    {\n      v6 = *(_DWORD **)(*(_DWORD *)((*(int (__fastcall **)(int))(*(_DWORD *)a1 + 244))(a1) + 52) + 12);\n      v7 = *(_DWORD *)(*(_DWORD *)((*(int (__fastcall **)(int))(*(_DWORD *)a1 + 244))(a1) + 52) + 12);\n      result = (_DWORD **)(*(int (__fastcall **)(int))(*(_DWORD *)a1 + 244))(a1);\n      v8 = v7 + 4 * (*result[13] + 0x3FFFFFFF);\n      while ( (unsigned int)v6 <= v8 )\n      {\n        v9 = (_DWORD **)*v6++;\n        result = v9;\n        if ( !v9 )\n          break;\n        result = (_DWORD **)((int (__fastcall *)(_DWORD **, _DWORD *))(*result)[120])(result, v10);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCPartAnimSprite::setColor from 0x3c71a4 to 0x3c721e (122 bytes)\n; \n; 3 xrefs:\n; > CCAnimatedSprite::switchToMode @ 0x3c35b6\n; > CCAnimatedSprite::setColor @ 0x3c3f48\n; > GJRobotSprite::updateColors @ 0x5e6548\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:35 +0000\n; \nPUSH            {R0-R2,R4-R7,LR}                                       ; +0x0, 0x3c71a4\nADD             R6, SP, #0xC+var_4                                     ; +0x2, 0x3c71a6\nMOV             R4, R0                                                 ; +0x4, 0x3c71a8\nSTR.W           R1, [R6,#-4]!                                          ; +0x6, 0x3c71aa\nMOV             R1, R6                                                 ; +0xa, 0x3c71ae\nBL              _ZN7cocos2d8CCSprite8setColorERKNS_10_ccColor3BE; cocos2d::CCSprite::setColor(cocos2d::_ccColor3B const&) ; +0xc, 0x3c71b0\nLDR             R3, [R4]                                               ; +0x10, 0x3c71b4\nMOV             R0, R4                                                 ; +0x12, 0x3c71b6\nLDR.W           R3, [R3,#0xF4]                                         ; +0x14, 0x3c71b8\nBLX             R3                                                     ; +0x18, 0x3c71bc\nCBZ             R0, loc_3C721A                                         ; +0x1a, 0x3c71be\nLDR             R3, [R4]                                               ; +0x1c, 0x3c71c0\nMOV             R0, R4                                                 ; +0x1e, 0x3c71c2\nLDR.W           R3, [R3,#0xF4]                                         ; +0x20, 0x3c71c4\nBLX             R3                                                     ; +0x24, 0x3c71c8\nLDR             R3, [R0,#0x34]                                         ; +0x26, 0x3c71ca\nLDR             R3, [R3]                                               ; +0x28, 0x3c71cc\nCBZ             R3, loc_3C721A                                         ; +0x2a, 0x3c71ce\nLDR             R3, [R4]                                               ; +0x2c, 0x3c71d0\nMOV             R0, R4                                                 ; +0x2e, 0x3c71d2\nLDR.W           R3, [R3,#0xF4]                                         ; +0x30, 0x3c71d4\nBLX             R3                                                     ; +0x34, 0x3c71d8\nLDR             R3, [R0,#0x34]                                         ; +0x36, 0x3c71da\nMOV             R0, R4                                                 ; +0x38, 0x3c71dc\nLDR             R5, [R3,#0xC]                                          ; +0x3a, 0x3c71de\nLDR             R3, [R4]                                               ; +0x3c, 0x3c71e0\nLDR.W           R3, [R3,#0xF4]                                         ; +0x3e, 0x3c71e2\nBLX             R3                                                     ; +0x42, 0x3c71e6\nLDR             R3, [R0,#0x34]                                         ; +0x44, 0x3c71e8\nMOV             R0, R4                                                 ; +0x46, 0x3c71ea\nLDR             R7, [R3,#0xC]                                          ; +0x48, 0x3c71ec\nLDR             R3, [R4]                                               ; +0x4a, 0x3c71ee\nLDR.W           R3, [R3,#0xF4]                                         ; +0x4c, 0x3c71f0\nBLX             R3                                                     ; +0x50, 0x3c71f4\nLDR             R3, [R0,#0x34]                                         ; +0x52, 0x3c71f6\nLDR             R3, [R3]                                               ; +0x54, 0x3c71f8\nADD.W           R3, R3, #0x40000000                                    ; +0x56, 0x3c71fa\nSUBS            R3, #1                                                 ; +0x5a, 0x3c71fe\nADD.W           R4, R7, R3,LSL#2                                       ; +0x5c, 0x3c7200\nCMP             R5, R4                                                 ; +0x60, 0x3c7204\nBHI             loc_3C721A                                             ; +0x62, 0x3c7206\nLDR.W           R0, [R5],#4                                            ; +0x64, 0x3c7208\nCBZ             R0, loc_3C721A                                         ; +0x68, 0x3c720c\nLDR             R3, [R0]                                               ; +0x6a, 0x3c720e\nMOV             R1, R6                                                 ; +0x6c, 0x3c7210\nLDR.W           R3, [R3,#0x1E0]                                        ; +0x6e, 0x3c7212\nBLX             R3                                                     ; +0x72, 0x3c7216\nB               loc_3C7204                                             ; +0x74, 0x3c7218\nADD             SP, SP, #0xC                                           ; +0x76, 0x3c721a\nPOP             {R4-R7,PC}                                             ; +0x78, 0x3c721c", "xrefs": ["CCAnimatedSprite::switchToMode @ 0x3c35b6", "CCAnimatedSprite::setColor @ 0x3c3f48", "GJRobotSprite::updateColors @ 0x5e6548"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}