// // CCPartAnimSprite::setColor from 0x14004a570 to 0x14004a63d (205 bytes) // // 6 xrefs: // > CCAnimatedSprite::switchToMode @ 0x140044745 // > CCAnimatedSprite::setColor @ 0x140044c99 // > GJRobotSprite::updateColors @ 0x1403ad0d4 // > @ 0x140885d00 // > @ 0x140885d10 // > @ 0x14090fd1c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:25:32 +0000 // __int64 __fastcall CCPartAnimSprite::setColor(__int64 a1, const struct cocos2d::_ccColor3B *a2) { __int64 result; // rax unsigned __int64 v5; // rbx __int64 v6; // rdi unsigned __int64 i; // rdi cocos2d::CCSprite::setColor((cocos2d::CCSprite *)(a1 + 320), a2); result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1); if ( result ) { result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1); if ( **(_DWORD **)(result + 56) ) { v5 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1) + 56) + 16LL); v6 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1) + 56) + 16LL); result = **(unsigned int **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1) + 56); for ( i = v6 + 8 * result - 8; v5 <= i; v5 += 8LL ) { if ( !*(_QWORD *)v5 ) break; result = (**(__int64 (__fastcall ***)(__int64, const struct cocos2d::_ccColor3B *))(*(_QWORD *)v5 + 320LL))( *(_QWORD *)v5 + 320LL, a2); } } } return result; }