//
// PlayerObject::setSecondColor from 0x1002b6eb4 to 0x1002b6f1c (104 bytes)
//
// 8 xrefs:
// > GJBaseGameLayer::createPlayer @ 0x100277e40
// > GJBaseGameLayer::createPlayer @ 0x100278018
// > PlayerObject::update @ 0x1002b629c
// > PlayerObject::playSpiderDashEffect @ 0x1002c24c8
// > PlayerObject::startDashing @ 0x1002c3490
// > PlayerObject::resetObject @ 0x1002c3678
// > MenuGameLayer::init @ 0x100441e5c
// > MenuGameLayer::resetPlayer @ 0x1004424d8
//
// This function is hookable on this platform (idp: arm, 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:02:23 +0000
//
__int64 __fastcall PlayerObject::setSecondColor(__int64 a1, unsigned __int16 *a2)
{
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1808) + 960LL))(*(_QWORD *)(a1 + 1808));
(*(void (__fastcall **)(_QWORD, unsigned __int16 *))(**(_QWORD **)(a1 + 1840) + 960LL))(*(_QWORD *)(a1 + 1840), a2);
GJRobotSprite::updateColor02(*(_QWORD *)(a1 + 2136), *a2 | ((unsigned __int64)*((unsigned __int8 *)a2 + 2) << 16));
return GJRobotSprite::updateColor02(
*(_QWORD *)(a1 + 2144),
*a2 | ((unsigned __int64)*((unsigned __int8 *)a2 + 2) << 16));
}