//
// PlayerObject::handleRotatedCollisionInternal from 0x34c3d8 to 0x34c4c6 (238 bytes)
//
// 2 xrefs:
// > PlayerObject::handleRotatedObjectCollision @ 0x34c500
// > PlayerObject::handleRotatedSlopeCollision @ 0x34c60c
//
// 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
//
bool PlayerObject::handleRotatedCollisionInternal(
PlayerObject *a1,
float a2,
GameObject *a3,
cocos2d::CCRect a4,
bool a5,
bool a6,
bool a7)
{
float x; // r9
const cocos2d::CCPoint *v11; // r0
bool v12; // r8
const cocos2d::CCPoint *v13; // r0
float v14; // s13
float v15; // s15
cocos2d::CCPoint v18; // [sp+Ch] [bp-28h] BYREF
cocos2d::CCPoint v19; // [sp+14h] [bp-20h] BYREF
cocos2d::CCRect v20; // [sp+1Ch] [bp-18h] BYREF
cocos2d::CCSize v21; // 0:^4.8
cocos2d::CCRect v22; // 0:kr00_16.16
x = a4.origin.x;
v11 = a1->getPosition(a1);
cocos2d::CCPoint::CCPoint(&v18, v11);
PlayerObject::rotateGameplayObject(a1, a3);
PlayerObject::rotatePreSlopeObjects(a1);
if ( LOBYTE(a4.size.height) )
{
PlayerObject::collidedWithSlopeInternal(a1, a2, a3, SLOBYTE(a4.size.width));
v12 = 0;
}
else
{
cocos2d::CCRect::CCRect(&v20, (const cocos2d::CCRect *)LODWORD(x));
LODWORD(v22.origin.x) = &v20;
LODWORD(v22.origin.y) = LOBYTE(a4.origin.y);
v22.size = v21;
v12 = PlayerObject::collidedWithObjectInternal(a1, a2, a3, v22, SLOBYTE(v18.x));
}
v13 = a1->getPosition(a1);
cocos2d::CCPoint::CCPoint(&v19, v13);
v14 = v18.x + (float)(v19.y - v18.y);
v15 = v18.y - (float)(v19.x - v18.x);
cocos2d::CCPoint::CCPoint(&v20.origin, v14, v15);
a1->setPosition(a1, (const cocos2d::CCPoint *)&v20);
PlayerObject::unrotateGameplayObject(a1, a3);
PlayerObject::unrotatePreSlopeObjects(a1);
return v12;
}