//
// GameStatsManager::accountIDForIcon from 0x6dd350 to 0x6dd3a0 (80 bytes)
//
// 1 xrefs:
// > ItemInfoPopup::init @ 0x50e3fe
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:12 +0000
//
int __fastcall GameStatsManager::accountIDForIcon(int a1, int a2, int a3)
{
_DWORD **v3; // r0
_DWORD *v4; // r4
_DWORD *v5; // r3
int v6; // r5
int v7; // r4
_DWORD *v9; // r5
v3 = (_DWORD **)(a1 + 536);
v4 = *v3;
v5 = v3;
while ( v4 )
{
v6 = v4[4];
if ( v6 < a2 || a2 >= v6 && v4[5] < a3 )
{
v9 = (_DWORD *)v4[1];
v4 = v5;
}
else
{
v9 = (_DWORD *)*v4;
}
v5 = v4;
v4 = v9;
}
if ( v5 != v3 )
{
v7 = v5[4];
if ( a2 < v7 )
{
v5 = v3;
}
else if ( v7 >= a2 && a3 < v5[5] )
{
v5 = v3;
}
}
if ( v5 == v3 )
return 0;
else
return v5[6];
}