// // SongInfoObject::getExtraArtistCount from 0x100598730 to 0x100598895 (357 bytes) // // 2 xrefs: // > CustomSongWidget::updateSongInfo @ 0x10061d913 // > CustomSongWidget::updateSongInfo @ 0x10061da01 // // 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 // int __fastcall SongInfoObject::getExtraArtistCount(SongInfoObject *a1) { unsigned __int64 value; // rsi int v2; // eax unsigned __int64 v3; // r9 __int64 v4; // rcx std::__hash_node_base *> *v5; // rdx std::__hash_node_base *>::__next_pointer next; // r8 unsigned __int64 v7; // rsi std::__hash_node_base *>::__next_pointer v8; // rdx unsigned __int64 v9; // rax value = a1->m_artistIDs.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_; v2 = 0; if ( value ) { v3 = (0x101010101010101LL * ((((value - ((value >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((value - ((value >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL) + ((((value - ((value >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((value - ((value >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)) >> 4)) & 0xF0F0F0F0F0F0F0FLL)) >> 56; if ( v3 > 1 ) { v4 = 10004636; if ( value <= 0x98A89C ) { v2 = 0; v4 = 0x98A89C % (unsigned int)value; } } else { v4 = ((_DWORD)value - 1) & 0x98A89C; } v5 = a1->m_artistIDs.__table_.__bucket_list_.__ptr_.__value_[v4]; if ( v5 ) { next = v5->__next_; if ( v5->__next_ ) { if ( (unsigned int)v3 < 2 ) { v7 = value - 1; while ( 1 ) { v8 = next[1].__next_; if ( v8 == (std::__hash_node_base *>::__next_pointer)10004636 ) { if ( LODWORD(next[2].__next_) == 10004636 ) goto LABEL_14; } else if ( (v7 & (unsigned __int64)v8) != v4 ) { return LODWORD(a1->m_artistIDs.__table_.__p2_.__value_) + v2; } next = next->__next_; if ( !next ) return LODWORD(a1->m_artistIDs.__table_.__p2_.__value_) + v2; } } while ( 1 ) { v9 = (unsigned __int64)next[1].__next_; if ( v9 == 10004636 ) { if ( LODWORD(next[2].__next_) == 10004636 ) { LABEL_14: v2 = -1; return LODWORD(a1->m_artistIDs.__table_.__p2_.__value_) + v2; } } else { if ( v9 >= value ) { if ( (value | v9) >> 32 ) v9 %= value; else v9 = (unsigned int)v9 % (unsigned int)value; } if ( v9 != v4 ) { LABEL_24: v2 = 0; return LODWORD(a1->m_artistIDs.__table_.__p2_.__value_) + v2; } } next = next->__next_; if ( !next ) goto LABEL_24; } } } } return LODWORD(a1->m_artistIDs.__table_.__p2_.__value_) + v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source