{"type": "func", "start": 4298746056, "end": 4298746144, "name": "CCAnimatedSprite::setColor", "pseudocode": "// \n// CCAnimatedSprite::setColor from 0x10039a8c8 to 0x10039a920 (88 bytes)\n// \n// 5 xrefs:\n// > sub_10039A920 @ 0x10039a924\n// > <???> @ 0x1008eed98\n// > <???> @ 0x100922058\n// > <???> @ 0x100922620\n// > <???> @ 0x100942b10\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 11:03:43 +0000\n// \n\nunsigned __int8 *__fastcall CCAnimatedSprite::setColor(__int64 a1, unsigned __int8 *a2)\n{\n  __int64 v4; // x0\n  __int64 v5; // x0\n\n  v4 = *(_QWORD *)(a1 + 664);\n  if ( v4 )\n    (*(void (__fastcall **)(__int64, unsigned __int8 *))(*(_QWORD *)v4 + 960LL))(v4, a2);\n  v5 = *(_QWORD *)(a1 + 672);\n  if ( v5 )\n    sub_100087CF4(v5, *(unsigned __int16 *)a2 | (a2[2] << 16));\n  return cocos2d::CCSprite::setColor((unsigned __int8 *)a1, a2);\n}", "assembly": "; \n; CCAnimatedSprite::setColor from 0x10039a8c8 to 0x10039a920 (88 bytes)\n; \n; 5 xrefs:\n; > sub_10039A920 @ 0x10039a924\n; > <???> @ 0x1008eed98\n; > <???> @ 0x100922058\n; > <???> @ 0x100922620\n; > <???> @ 0x100942b10\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 11:03:43 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10039a8c8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10039a8cc\nADD             X29, SP, #0x10                                         ; +0x8, 0x10039a8d0\nMOV             X19, X1                                                ; +0xc, 0x10039a8d4\nMOV             X20, X0                                                ; +0x10, 0x10039a8d8\nLDR             X0, [X0,#0x298]                                        ; +0x14, 0x10039a8dc\nCBZ             X0, loc_10039A8F4                                      ; +0x18, 0x10039a8e0\nLDR             X8, [X0]                                               ; +0x1c, 0x10039a8e4\nLDR             X8, [X8,#0x3C0]                                        ; +0x20, 0x10039a8e8\nMOV             X1, X19                                                ; +0x24, 0x10039a8ec\nBLR             X8                                                     ; +0x28, 0x10039a8f0\nLDR             X0, [X20,#0x2A0]                                       ; +0x2c, 0x10039a8f4\nCBZ             X0, loc_10039A90C                                      ; +0x30, 0x10039a8f8\nLDRB            W8, [X19,#2]                                           ; +0x34, 0x10039a8fc\nLDRH            W9, [X19]                                              ; +0x38, 0x10039a900\nORR             X1, X9, X8,LSL#16                                      ; +0x3c, 0x10039a904\nBL              sub_100087CF4                                          ; +0x40, 0x10039a908\nMOV             X0, X20                                                ; +0x44, 0x10039a90c\nMOV             X1, X19                                                ; +0x48, 0x10039a910\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x10039a914\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x10039a918\nB               cocos2d__CCSprite__setColor                            ; +0x54, 0x10039a91c", "xrefs": ["sub_10039A920 @ 0x10039a924", "<???> @ 0x1008eed98", "<???> @ 0x100922058", "<???> @ 0x100922620", "<???> @ 0x100942b10"], "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"}