//
// GameManager::logLoadedIconInfo from 0x100382f30 to 0x100383016 (230 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 GameManager::logLoadedIconInfo(GameManager *a1)
{
int i; // r12d
std::__tree_end_node *>::pointer left; // rax
std::__compressed_pair *>> *p_pair1; // r15
std::__compressed_pair *>> *v4; // r13
int v5; // eax
_DWORD *v6; // rax
std::__tree_end_node *> *v7; // rcx
int v8; // [rsp+0h] [rbp-2Ch]
v8 = a1->m_keyStartForIcon.__begin_[8] + 7;
if ( v8 > 0 )
{
for ( i = 0; i != v8; ++i )
{
left = a1->m_iconLoadCounts.__tree_.__pair1_.__value_.__left_;
p_pair1 = &a1->m_iconLoadCounts.__tree_.__pair1_;
v4 = &a1->m_iconLoadCounts.__tree_.__pair1_;
LABEL_7:
if ( left )
{
do
{
v4 = (std::__compressed_pair *>> *)left;
v5 = *((_DWORD *)left + 7);
if ( i < v5 )
{
left = v4->__value_.__left_;
p_pair1 = v4;
goto LABEL_7;
}
if ( i <= v5 )
goto LABEL_4;
left = v4[1].__value_.__left_;
}
while ( left );
p_pair1 = v4 + 1;
}
v6 = operator new(0x28u);
v6[7] = i;
v6[8] = 0;
*(_OWORD *)v6 = 0;
*((_QWORD *)v6 + 2) = v4;
p_pair1->__value_.__left_ = (std::__tree_end_node *>::pointer)v6;
v7 = (std::__tree_end_node *> *)a1->m_iconLoadCounts.__tree_.__begin_node_->__left_;
if ( v7 )
a1->m_iconLoadCounts.__tree_.__begin_node_ = v7;
sub_100054DD0((__int64 *)a1->m_iconLoadCounts.__tree_.__pair1_.__value_.__left_, (__int64 *)v6);
++a1->m_iconLoadCounts.__tree_.__pair3_.__value_;
LABEL_4:
;
}
}
}