//
// PlayerObject::handleRotatedCollisionInternal from 0x1003f3be0 to 0x1003f3d36 (342 bytes)
//
// 7 xrefs:
// > PlayerObject::postCollision @ 0x1003f2d1e
// > PlayerObject::postCollision @ 0x1003f2e60
// > PlayerObject::collidedWithObject @ 0x1003f39ae
// > PlayerObject::collidedWithSlope @ 0x1003f3a45
// > PlayerObject::handleRotatedObjectCollision @ 0x1003f3bc1
// > PlayerObject::handleRotatedSlopeCollision @ 0x1003f3d88
// > PlayerObject::collidedWithObject_1 @ 0x1003f9ef9
//
// 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 12:29:55 +0000
//
__int64 __fastcall PlayerObject::handleRotatedCollisionInternal(
_QWORD *a1,
__int64 a2,
unsigned __int64 *a3,
int a4,
unsigned __int8 a5,
char a6,
float a7)
{
_QWORD *v9; // rax
_QWORD *i; // r12
unsigned int v11; // r15d
_QWORD *v12; // rax
_QWORD *j; // r14
float v15; // [rsp+8h] [rbp-58h] BYREF
__m128 v16; // [rsp+10h] [rbp-50h] BYREF
unsigned __int64 *v17; // [rsp+20h] [rbp-40h]
__int64 v18; // [rsp+28h] [rbp-38h] BYREF
int v19; // [rsp+30h] [rbp-30h]
float v20; // [rsp+34h] [rbp-2Ch]
v19 = a4;
v17 = a3;
v20 = a7;
v9 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *))(*a1 + 192LL))(a1);
sub_1002782D0(&v18, v9);
PlayerObject::rotateGameplayObject(a1, a2);
for ( i = (_QWORD *)a1[219]; i; i = (_QWORD *)*i )
PlayerObject::rotateGameplayObject(a1, i[3]);
if ( a6 )
{
PlayerObject::collidedWithSlopeInternal(a1, a2, a5, COERCE_DOUBLE((unsigned __int64)LODWORD(v20)));
v11 = 0;
}
else
{
sub_1002787F0(&v16, v17);
v11 = PlayerObject::collidedWithObjectInternal(
a1,
a2,
&v16,
(unsigned __int8)v19,
COERCE_DOUBLE((unsigned __int64)LODWORD(v20)));
}
v12 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *))(*a1 + 192LL))(a1);
sub_1002782D0(&v16, v12);
sub_100278250(
&v15,
(float)(v16.f32[1] - *((float *)&v18 + 1)) + *(float *)&v18,
*((float *)&v18 + 1) - (float)(v16.f32[0] - *(float *)&v18));
(*(void (__fastcall **)(_QWORD *, float *))(*a1 + 184LL))(a1, &v15);
PlayerObject::unrotateGameplayObject(a1, a2);
for ( j = (_QWORD *)a1[219]; j; j = (_QWORD *)*j )
PlayerObject::unrotateGameplayObject(a1, j[3]);
return v11;
}