//
// PlayerObject::handleRotatedCollisionInternal from 0x14038f140 to 0x14038f2d7 (407 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x140215e5b
// > PlayerObject::postCollision @ 0x14038eb43
// > PlayerObject::collidedWithObject @ 0x140391a0f
// > ??> @ 0x1406d60c8
//
// 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)
{
std::_List_val>>::_Nodeptr Myhead; // rdi
__int64 *i; // rbx
bool v12; // bp
cocos2d::CCRect *v13; // rax
std::_List_val>>::_Nodeptr v14; // rdi
__int64 *j; // rbx
cocos2d::CCPoint v17; // [rsp+30h] [rbp-48h] BYREF
_BYTE v18[8]; // [rsp+38h] [rbp-40h] BYREF
cocos2d::CCRect v19; // [rsp+40h] [rbp-38h] BYREF
cocos2d::CCPoint v20; // [rsp+80h] [rbp+8h] BYREF
a1->getPosition_0(a1);
cocos2d::CCPoint::CCPoint(&v20);
PlayerObject::rotateGameplayObject(a1, a3);
Myhead = a1->m_potentialSlopeMap._List._Mypair._Myval2._Myhead;
for ( i = *(__int64 **)Myhead; i != (__int64 *)Myhead; i = (__int64 *)*i )
PlayerObject::rotateGameplayObject(a1, (GameObject *)i[3]);
v12 = 0;
if ( a7 )
{
PlayerObject::collidedWithSlopeInternal(a1, a2, a3, a6);
}
else
{
cocos2d::CCRect::CCRect(&v19, a4);
v12 = PlayerObject::collidedWithObjectInternal(a1, a2, a3, v13, a5);
}
a1->getPosition_0(a1);
cocos2d::CCPoint::CCPoint(&v17);
cocos2d::CCPoint::CCPoint(COERCE_FLOAT(COERCE_UNSIGNED_INT64(v20.x)), (float)(v17.y - v20.y) + v20.x);
a1->setPosition_0(a1, (const cocos2d::CCPoint *)v18);
PlayerObject::unrotateGameplayObject(a1, a3);
v14 = a1->m_potentialSlopeMap._List._Mypair._Myval2._Myhead;
for ( j = *(__int64 **)v14; j != (__int64 *)v14; j = (__int64 *)*j )
PlayerObject::unrotateGameplayObject(a1, (GameObject *)j[3]);
return v12;
}