//
// PlayerObject::collidedWithObject from 0x1404efc90 to 0x1404efd42 (178 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::checkCollisions @ 0x14031b9fb
// > PlayerObject::postCollision @ 0x1404ecd92
// > ??> @ 0x140929f00
//
// 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:16 +0000
//
__int64 __fastcall PlayerObject::collidedWithObject(
__int64 a1,
__int64 a2,
__int64 a3,
const struct cocos2d::CCRect *a4,
char a5)
{
const struct cocos2d::CCRect *v7; // rax
const struct cocos2d::CCRect *v8; // rax
__int64 v9; // rdx
int v11; // eax
int v12; // edx
_BYTE v13[16]; // [rsp+40h] [rbp-38h] BYREF
_BYTE v14[16]; // [rsp+50h] [rbp-28h] BYREF
if ( *(_BYTE *)(a1 + 2507) )
{
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v13, a4);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, v7);
return PlayerObject::handleRotatedCollisionInternal((_QWORD *)a1, v9, a3, v8, a5, 0, 0);
}
else
{
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v14, a4);
return PlayerObject::collidedWithObjectInternal(a1, v12, a3, v11, a5);
}
}