//
// GJBaseGameLayer::processStateObjects from 0x10012a7c0 to 0x10012a862 (162 bytes)
//
// 0 xrefs:
//
// 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
//
void __fastcall GJBaseGameLayer::processStateObjects(GJBaseGameLayer *a1)
{
__int64 *next; // r12
__int64 *p_m_stateObjects; // r14
__int64 v4; // r13
EnhancedGameObject *v5; // r13
void *v6; // rdi
void *__p; // [rsp+0h] [rbp-40h] BYREF
next = (__int64 *)a1->m_gameState.m_stateObjects.__table_.__p1_.__value_.__next_;
if ( next )
{
p_m_stateObjects = (__int64 *)&a1->m_gameState.m_stateObjects;
do
{
v5 = (EnhancedGameObject *)next[3];
EnhancedGameObject::updateState(v5, a1->m_gameState.m_commandIndex);
if ( v5->m_isRingPoweredOn )
{
v4 = *next;
}
else
{
((void (__fastcall *)(EnhancedGameObject *, GJBaseGameLayer *))v5->stateSensitiveOff)(v5, a1);
v4 = *next;
sub_100056B40((__int64)&__p, p_m_stateObjects, next);
v6 = __p;
__p = nullptr;
if ( v6 )
operator delete(v6);
}
next = (__int64 *)v4;
}
while ( v4 );
}
}