//
// sub_498DCA from 0x498dca to 0x498e08 (62 bytes)
//
// 2 xrefs:
// > GJEffectManager::updateCountForItem @ 0x4a3412
// > GJEffectManager::runCountTrigger @ 0x4a3aac
//
// 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
//
_DWORD **__fastcall sub_498DCA(_DWORD *a1, int a2, _DWORD *a3)
{
_DWORD **v3; // r5
_DWORD *i; // r3
v3 = *(_DWORD ***)(*a1 + 4 * a2);
if ( !v3 )
return nullptr;
for ( i = *v3; *a3 != i[1]; i = (_DWORD *)*i )
{
if ( !*i )
return nullptr;
v3 = (_DWORD **)i;
if ( *(_DWORD *)(*i + 4) % a1[1] != a2 )
return nullptr;
}
return v3;
}