//
// PlayerObject::setOpacity from 0x14039daf0 to 0x14039dc18 (296 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405c8940
// > ??> @ 0x1406d6740
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void PlayerObject::setOpacity(PlayerObject *a1, unsigned __int8 a2)
{
GameObject::setOpacity(a1, a2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1->m_slopeAngle + 320LL) + 40LL))(
*(_QWORD *)&a1->m_slopeAngle + 320LL,
a2);
a1->m_collidedObject->setOpacity(&a1->m_collidedObject->cocos2d::CCRGBAProtocol, a2);
a1->m_lastGroundObject->setOpacity(&a1->m_lastGroundObject->cocos2d::CCRGBAProtocol, a2);
a1->m_collidingWithLeft->setOpacity(&a1->m_collidingWithLeft->cocos2d::CCRGBAProtocol, a2);
a1->m_collidingWithRight->setOpacity(&a1->m_collidingWithRight->cocos2d::CCRGBAProtocol, a2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1->m_maybeSavedPlayerFrame + 320LL) + 40LL))(
*(_QWORD *)&a1->m_maybeSavedPlayerFrame + 320LL,
a2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1->m_scaleXRelated2 + 320LL) + 40LL))(
*(_QWORD *)&a1->m_scaleXRelated2 + 320LL,
a2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1->m_groundYVelocity + 320LL) + 40LL))(
*(_QWORD *)&a1->m_groundYVelocity + 320LL,
a2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1->m_yVelocityRelated + 320LL) + 40LL))(
*(_QWORD *)&a1->m_yVelocityRelated + 320LL,
a2);
a1->m_vehicleSpriteSecondary->setOpacity(&a1->m_vehicleSpriteSecondary->cocos2d::CCRGBAProtocol, a2);
a1->m_birdVehicle->setOpacity(&a1->m_birdVehicle->cocos2d::CCRGBAProtocol, a2);
}