//
// GJBaseGameLayer::processStateObjects from 0x1001ea840 to 0x1001ea8b8 (120 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::update @ 0x1001fee14
//
// 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 *i; // x20
EnhancedGameObject *v3; // x21
for ( i = (__int64 *)a1->m_gameState.m_stateObjects.__table_.__p1_.__value_.__next_;
i;
i = (__int64 *)sub_100018AE0(&a1->m_gameState.m_stateObjects.__table_.__bucket_list_.__ptr_.__value_, i) )
{
while ( 1 )
{
v3 = (EnhancedGameObject *)i[3];
EnhancedGameObject::updateState(v3, a1->m_gameState.m_commandIndex);
if ( !v3->m_isRingPoweredOn )
break;
i = (__int64 *)*i;
if ( !i )
return;
}
((void (__fastcall *)(EnhancedGameObject *, GJBaseGameLayer *))v3->stateSensitiveOff)(v3, a1);
}
}