//
// GJGameState::getGameObjectPhysics from 0x1001d9f74 to 0x1001da004 (144 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x1001f9a28
//
// 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
//
GameObjectPhysics *__fastcall GJGameState::getGameObjectPhysics(GJGameState *a1, GameObject *a2)
{
__int64 *v4; // x0
GameObjectPhysics *result; // x0
__int64 v6; // [xsp+8h] [xbp-58h] BYREF
__int64 v7; // [xsp+10h] [xbp-50h] BYREF
_QWORD v8[3]; // [xsp+18h] [xbp-48h] BYREF
int v9; // [xsp+30h] [xbp-30h]
int m_uniqueID; // [xsp+3Ch] [xbp-24h] BYREF
m_uniqueID = a2->m_uniqueID;
v4 = sub_100018814(&a1->m_gameObjectPhysics.__table_.__bucket_list_.__ptr_.__value_, &m_uniqueID);
if ( !v4 )
{
v6 = 0;
sub_1000229B0(&v7);
sub_1000229B0(v8);
v8[1] = 0;
v8[2] = 0;
v9 = 0;
v4 = (__int64 *)sub_100209A70(&a1->m_gameObjectPhysics, &m_uniqueID, &m_uniqueID, &v6);
v4[3] = (__int64)a2;
}
result = (GameObjectPhysics *)(v4 + 3);
result->m_unkInt1 = a1->m_commandIndex;
return result;
}