{"type": "func", "start": 3948320, "end": 3948376, "name": "CCAnimatedSprite::setColor", "pseudocode": "// \n// CCAnimatedSprite::setColor from 0x3c3f20 to 0x3c3f58 (56 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CCAnimatedSprite::setColor @ 0x3c3f5c\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:33 +0000\n// \n\nint __fastcall CCAnimatedSprite::setColor(int a1, unsigned __int8 *a2, int a3, int a4)\n{\n  int v5; // r0\n  int v7; // r0\n\n  v5 = *(_DWORD *)(a1 + 540);\n  if ( v5 )\n    (*(void (__fastcall **)(int))(*(_DWORD *)v5 + 480))(v5);\n  v7 = *(_DWORD *)(a1 + 544);\n  if ( v7 )\n    CCPartAnimSprite::setColor(v7, *a2 | (a2[1] << 8) | (a2[2] << 16));\n  return cocos2d::CCSprite::setColor(a1, a2, a3, a4);\n}", "assembly": "; \n; CCAnimatedSprite::setColor from 0x3c3f20 to 0x3c3f58 (56 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CCAnimatedSprite::setColor @ 0x3c3f5c\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:33 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x3c3f20\nMOV             R5, R0                                                 ; +0x2, 0x3c3f22\nLDR.W           R0, [R0,#0x21C]                                        ; +0x4, 0x3c3f24\nMOV             R4, R1                                                 ; +0x8, 0x3c3f28\nCBZ             R0, loc_3C3F34                                         ; +0xa, 0x3c3f2a\nLDR             R3, [R0]                                               ; +0xc, 0x3c3f2c\nLDR.W           R3, [R3,#0x1E0]                                        ; +0xe, 0x3c3f2e\nBLX             R3                                                     ; +0x12, 0x3c3f32\nLDR.W           R0, [R5,#0x220]                                        ; +0x14, 0x3c3f34\nCBZ             R0, loc_3C3F4C                                         ; +0x18, 0x3c3f38\nLDRB            R1, [R4,#1]                                            ; +0x1a, 0x3c3f3a\nLDRB            R3, [R4]                                               ; +0x1c, 0x3c3f3c\nORR.W           R3, R3, R1,LSL#8                                       ; +0x1e, 0x3c3f3e\nLDRB            R1, [R4,#2]                                            ; +0x22, 0x3c3f42\nORR.W           R1, R3, R1,LSL#16                                      ; +0x24, 0x3c3f44\nBL              _ZN16CCPartAnimSprite8setColorEN7cocos2d10_ccColor3BE; CCPartAnimSprite::setColor(cocos2d::_ccColor3B) ; +0x28, 0x3c3f48\nMOV             R0, R5                                                 ; +0x2c, 0x3c3f4c\nMOV             R1, R4                                                 ; +0x2e, 0x3c3f4e\nPOP.W           {R3-R5,LR}                                             ; +0x30, 0x3c3f50\nB.W             _ZN7cocos2d8CCSprite8setColorERKNS_10_ccColor3BE; cocos2d::CCSprite::setColor(cocos2d::_ccColor3B const&) ; +0x34, 0x3c3f54", "xrefs": ["`non-virtual thunk to'CCAnimatedSprite::setColor @ 0x3c3f5c"], "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"}