//
// GameStatsManager::accountIDForIcon from 0xbb67d8 to 0xbb685c (132 bytes)
//
// 2 xrefs:
// > ItemInfoPopup::init @ 0x8be8f0
// > ??> @ 0x1018d8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:02:58 +0000
//
__int64 __fastcall GameStatsManager::accountIDForIcon(__int64 a1, int a2, int a3)
{
_DWORD *v3; // x5
__int64 *v4; // x0
_DWORD *v5; // x4
int v6; // w3
int v7; // w0
__int64 result; // x0
v3 = (_DWORD *)(a1 + 848);
v4 = *(__int64 **)(a1 + 848);
if ( !v4 )
return 0;
v5 = v3;
do
{
while ( 1 )
{
v6 = *((_DWORD *)v4 + 7);
if ( a2 > v6 || a2 >= v6 && *((_DWORD *)v4 + 8) < a3 )
break;
v5 = v4;
v4 = (__int64 *)*v4;
if ( !v4 )
goto LABEL_7;
}
v4 = (__int64 *)v4[1];
}
while ( v4 );
LABEL_7:
if ( v3 == v5 )
return 0;
v7 = v5[7];
if ( a2 < v7 || a2 <= v7 && a3 < v5[8] )
return 0;
result = 0;
if ( v3 != v5 )
return (unsigned int)v5[9];
return result;
}