//
// PlayerObject::handleRotatedCollisionInternal from 0x442730 to 0x44281e (238 bytes)
//
// 2 xrefs:
// > PlayerObject::handleRotatedObjectCollision @ 0x442858
// > PlayerObject::handleRotatedSlopeCollision @ 0x442964
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:27 +0000
//
int __fastcall PlayerObject::handleRotatedCollisionInternal(
PlayerObject *a1,
float a2,
GameObject *a3,
const cocos2d::CCRect *a4,
char a5,
bool a6,
char a7)
{
const cocos2d::CCPoint *v11; // r0
int v12; // r8
const cocos2d::CCPoint *v13; // r0
float v14; // s13
float v15; // s15
float v17; // [sp+Ch] [bp-28h] BYREF
float v18; // [sp+10h] [bp-24h]
float v19[2]; // [sp+14h] [bp-20h] BYREF
_BYTE v20[16]; // [sp+1Ch] [bp-18h] BYREF
v11 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)a1 + 96))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, v11);
PlayerObject::rotateGameplayObject(a1, a3);
PlayerObject::rotatePreSlopeObjects(a1);
if ( a7 )
{
PlayerObject::collidedWithSlopeInternal(a1, a2, a3, a6);
v12 = 0;
}
else
{
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v20, a4);
v12 = PlayerObject::collidedWithObjectInternal((int)a1, a2, a3, (cocos2d::CCRect *)v20, a5);
}
v13 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)a1 + 96))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, v13);
v14 = v17 + (float)(v19[1] - v18);
v15 = v18 - (float)(v19[0] - v17);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v14, v15);
(*(void (__fastcall **)(PlayerObject *, _BYTE *))(*(_DWORD *)a1 + 92))(a1, v20);
PlayerObject::unrotateGameplayObject(a1, a3);
PlayerObject::unrotatePreSlopeObjects(a1);
return v12;
}