//
// PlayerObject::handleRotatedCollisionInternal from 0x100220400 to 0x100220560 (352 bytes)
//
// 2 xrefs:
// > PlayerObject::collidedWithObject @ 0x10022020c
// > PlayerObject::collidedWithSlope @ 0x1002202b0
//
// 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
//
// local variable allocation has failed, the output may be wrong!
bool __fastcall PlayerObject::handleRotatedCollisionInternal(
PlayerObject *a1,
float a2,
GameObject *a3,
cocos2d::CCRect a4,
bool a5,
bool a6,
bool a7)
{
int v7; // w5
int v8; // w24
_BOOL8 v10; // x23
__int64 *v14; // x0
std::__hash_node_base, void *> *>::__next_pointer i; // x25
bool v16; // w21
__int64 *v17; // x0
__n128 v18; // q0
__n128 v19; // q1
std::__hash_node_base, void *> *>::__next_pointer j; // x20
int v22; // [xsp+0h] [xbp-70h] BYREF
__int64 v23[2]; // [xsp+8h] [xbp-68h] BYREF
__int64 v24; // [xsp+18h] [xbp-58h] BYREF
cocos2d::CCRect v25; // 0:s1.4,4:s2.4,8:s3.4,12:s4.4
v8 = v7;
v10 = a5;
v14 = (__int64 *)((__int64 (__fastcall *)(PlayerObject *, float, __n128, __n128, __n128, __n128))a1->getPosition)(
a1,
a2,
(__n128)a4,
*(__n128 *)((char *)&a4 + 4),
*(__n128 *)&a4.size.width,
*(__n128 *)&a4.size.height);
sub_1000229B8(&v24, v14);
PlayerObject::rotateGameplayObject(a1, a3);
for ( i = a1->m_potentialSlopeMap.__table_.__p1_.__value_.__next_; i; i = i->__next_ )
PlayerObject::rotateGameplayObject(a1, (GameObject *)i[3].__next_);
if ( v8 )
{
PlayerObject::collidedWithSlopeInternal(a1, a2, a3, a7);
v16 = 0;
}
else
{
sub_100022B98(v23, v10);
v16 = PlayerObject::collidedWithObjectInternal(a1, a2, a3, v25, (bool)v23);
}
v17 = (__int64 *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1);
sub_1000229B8(v23, v17);
v18.n128_f32[0] = *(float *)&v24 + (float)(*((float *)v23 + 1) - *((float *)&v24 + 1));
v19.n128_f32[0] = *((float *)&v24 + 1) - (float)(*(float *)v23 - *(float *)&v24);
sub_100022980(v18, v19, &v22);
((void (__fastcall *)(PlayerObject *, int *))a1->setPosition)(a1, &v22);
PlayerObject::unrotateGameplayObject(a1, a3);
for ( j = a1->m_potentialSlopeMap.__table_.__p1_.__value_.__next_; j; j = j->__next_ )
PlayerObject::unrotateGameplayObject(a1, (GameObject *)j[3].__next_);
return v16;
}