//
// OBB2D::overlaps1Way from 0x14006e130 to 0x14006e261 (305 bytes)
//
// 15 xrefs:
// > GJBaseGameLayer::damagingObjectsInRect @ 0x140211d17
// > GJBaseGameLayer::damagingObjectsInRect @ 0x140211d2a
// > GJBaseGameLayer::checkCollisions @ 0x1402148b4
// > GJBaseGameLayer::checkCollisions @ 0x1402148c3
// > GJBaseGameLayer::collisionCheckObjects @ 0x140214bb0
// > GJBaseGameLayer::collisionCheckObjects @ 0x140214bbf
// > GJBaseGameLayer::checkCollisionBlocks @ 0x140219014
// > GJBaseGameLayer::checkCollisionBlocks @ 0x140219023
// > LevelEditorLayer::objectAtPosition @ 0x1402d5381
// > LevelEditorLayer::objectAtPosition @ 0x1402d5390
// > LevelEditorLayer::objectsAtPosition @ 0x1402d574d
// > LevelEditorLayer::objectsAtPosition @ 0x1402d575c
// > LevelEditorLayer::objectsInRect @ 0x1402d60d6
// > LevelEditorLayer::objectsInRect @ 0x1402d60e5
// > ??> @ 0x1406c60d8
//
// 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 OBB2D::overlaps1Way(OBB2D *a1)
{
float *v1; // rdx
int v2; // eax
std::array *i; // rcx
float y; // xmm5_4
float x; // xmm6_4
double v6; // xmm2_8
double v7; // xmm3_8
double v8; // xmm4_8
double v9; // xmm4_8
double v10; // xmm0_8
v2 = 0;
for ( i = &a1->m_edges; ; i = (std::array *)((char *)i + 8) )
{
y = i->_Elems[0].y;
x = i->_Elems[0].x;
v6 = (float)((float)(i->_Elems[0].x * v1[80]) + (float)(y * v1[81]));
v7 = v6;
v8 = (float)((float)(y * v1[83]) + (float)(i->_Elems[0].x * v1[82]));
if ( v6 <= v8 )
v7 = fmax(v8, v6);
else
v6 = (float)((float)(i->_Elems[0].y * v1[83]) + (float)(i->_Elems[0].x * v1[82]));
v9 = (float)((float)(y * v1[85]) + (float)(x * v1[84]));
if ( v6 <= v9 )
v7 = fmax(v9, v7);
else
v6 = (float)((float)(y * v1[85]) + (float)(x * v1[84]));
v10 = (float)((float)(y * v1[87]) + (float)(x * v1[86]));
if ( v6 <= v10 )
v7 = fmax(v10, v7);
else
v6 = (float)((float)(y * v1[87]) + (float)(x * v1[86]));
if ( v6 > *(double *)i[1]._Elems + 1.0 || *(double *)i[1]._Elems > v7 )
break;
if ( ++v2 >= 2 )
return 1;
}
return 0;
}