// // GameManager::isIconLoaded from 0x100381000 to 0x1003810d1 (209 bytes) // // 2 xrefs: // > SimplePlayer::asyncLoadIcon @ 0x10037072f // > GJItemIcon::init @ 0x100371341 // // 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 // bool __fastcall GameManager::isIconLoaded(GameManager *a1, int a2, int a3) { std::__tree_end_node *>::pointer left; // rax int v4; // r15d std::__compressed_pair *>> *p_pair1; // r12 std::__compressed_pair *>> *v6; // r14 int v7; // eax std::__compressed_pair *>> *v8; // r13 std::__tree_end_node *> *v9; // rax left = a1->m_iconLoadCounts.__tree_.__pair1_.__value_.__left_; v4 = a2 + a1->m_keyStartForIcon.__begin_[a3] - 1; if ( left ) { while ( 1 ) { while ( 1 ) { v6 = (std::__compressed_pair *>> *)left; v7 = *((_DWORD *)left + 7); if ( v4 >= v7 ) break; left = v6->__value_.__left_; p_pair1 = v6; if ( !v6->__value_.__left_ ) goto LABEL_8; } if ( v4 <= v7 ) break; left = v6[1].__value_.__left_; if ( !left ) { p_pair1 = v6 + 1; goto LABEL_8; } } } else { p_pair1 = &a1->m_iconLoadCounts.__tree_.__pair1_; v6 = &a1->m_iconLoadCounts.__tree_.__pair1_; LABEL_8: v8 = v6; v6 = (std::__compressed_pair *>> *)operator new(0x28u); HIDWORD(v6[3].__value_.__left_) = v4; LODWORD(v6[4].__value_.__left_) = 0; *(_OWORD *)&v6->__value_.__left_ = 0; v6[2].__value_.__left_ = (std::__tree_end_node *>::pointer)v8; p_pair1->__value_.__left_ = (std::__tree_end_node *>::pointer)v6; v9 = (std::__tree_end_node *> *)a1->m_iconLoadCounts.__tree_.__begin_node_->__left_; if ( v9 ) a1->m_iconLoadCounts.__tree_.__begin_node_ = v9; sub_100054DD0((__int64 *)a1->m_iconLoadCounts.__tree_.__pair1_.__value_.__left_, (__int64 *)v6); ++a1->m_iconLoadCounts.__tree_.__pair3_.__value_; } return SLODWORD(v6[4].__value_.__left_) > 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source