//
// PlayerObject::handleRotatedCollisionInternal from 0x1404ed4c0 to 0x1404ed657 (407 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x14031d265
// > PlayerObject::postCollision @ 0x1404ece88
// > PlayerObject::collidedWithObject @ 0x1404efcef
// > ??> @ 0x140929d80
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:33:14 +0000
//
__int64 __fastcall PlayerObject::handleRotatedCollisionInternal(
_QWORD *a1,
__int64 a2,
__int64 a3,
const struct cocos2d::CCRect *a4,
char a5,
unsigned __int8 a6,
char a7)
{
const struct cocos2d::CCPoint *v10; // rax
__int64 v11; // rdx
_QWORD *v12; // rsi
_QWORD *i; // rbx
unsigned __int8 v14; // bp
int v15; // eax
int v16; // edx
const struct cocos2d::CCPoint *v17; // rax
float v18; // xmm2_4
_QWORD *v19; // rsi
_QWORD *j; // rbx
float v22[2]; // [rsp+30h] [rbp-48h] BYREF
_BYTE v23[8]; // [rsp+38h] [rbp-40h] BYREF
_BYTE v24[16]; // [rsp+40h] [rbp-38h] BYREF
float v25; // [rsp+80h] [rbp+8h] BYREF
float v26; // [rsp+84h] [rbp+Ch]
v10 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD *))(*a1 + 200LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, v10);
PlayerObject::rotateGameplayObject(a1, a3);
v12 = (_QWORD *)a1[222];
for ( i = (_QWORD *)*v12; i != v12; i = (_QWORD *)*i )
PlayerObject::rotateGameplayObject(a1, i[3]);
v14 = 0;
if ( a7 )
{
PlayerObject::collidedWithSlopeInternal(a1, v11, a3, a6);
}
else
{
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v24, a4);
v14 = PlayerObject::collidedWithObjectInternal((_DWORD)a1, v16, a3, v15, a5);
}
v17 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD *))(*a1 + 200LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, v17);
v18 = v26 - (float)(v22[0] - v25);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, (float)(v22[1] - v26) + v25, v18);
(*(void (__fastcall **)(_QWORD *, _BYTE *))(*a1 + 184LL))(a1, v23);
PlayerObject::unrotateGameplayObject(a1, a3);
v19 = (_QWORD *)a1[222];
for ( j = (_QWORD *)*v19; j != v19; j = (_QWORD *)*j )
PlayerObject::unrotateGameplayObject(a1, j[3]);
return v14;
}