// // SongInfoObject::getExtraArtistCount from 0x100665e40 to 0x100665fa5 (357 bytes) // // 2 xrefs: // > CustomSongWidget::updateSongInfo @ 0x1006f9cdb // > CustomSongWidget::updateSongInfo @ 0x1006f9dc9 // // This function is hookable on this platform (idp: pc, 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 12:34:58 +0000 // __int64 __fastcall SongInfoObject::getExtraArtistCount(__int64 a1) { unsigned __int64 v1; // rsi int v2; // eax unsigned __int64 v3; // r9 __int64 v4; // rcx __int64 **v5; // rdx __int64 *v6; // r8 unsigned __int64 v7; // rsi __int64 v8; // rdx unsigned __int64 v9; // rax v1 = *(_QWORD *)(a1 + 496); v2 = 0; if ( v1 ) { v3 = (0x101010101010101LL * ((((v1 - ((v1 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((v1 - ((v1 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL) + ((((v1 - ((v1 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((v1 - ((v1 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)) >> 4)) & 0xF0F0F0F0F0F0F0FLL)) >> 56; if ( v3 > 1 ) { v4 = 10004636; if ( v1 <= 0x98A89C ) { v2 = 0; v4 = 0x98A89C % (unsigned int)v1; } } else { v4 = ((_DWORD)v1 - 1) & 0x98A89C; } v5 = *(__int64 ***)(*(_QWORD *)(a1 + 488) + 8 * v4); if ( v5 ) { v6 = *v5; if ( *v5 ) { if ( (unsigned int)v3 < 2 ) { v7 = v1 - 1; while ( 1 ) { v8 = v6[1]; if ( v8 == 10004636 ) { if ( *((_DWORD *)v6 + 4) == 10004636 ) goto LABEL_14; } else if ( (v7 & v8) != v4 ) { return (unsigned int)(*(_DWORD *)(a1 + 512) + v2); } v6 = (__int64 *)*v6; if ( !v6 ) return (unsigned int)(*(_DWORD *)(a1 + 512) + v2); } } while ( 1 ) { v9 = v6[1]; if ( v9 == 10004636 ) { if ( *((_DWORD *)v6 + 4) == 10004636 ) { LABEL_14: v2 = -1; return (unsigned int)(*(_DWORD *)(a1 + 512) + v2); } } else { if ( v9 >= v1 ) { if ( (v1 | v9) >> 32 ) v9 %= v1; else v9 = (unsigned int)v9 % (unsigned int)v1; } if ( v9 != v4 ) { LABEL_24: v2 = 0; return (unsigned int)(*(_DWORD *)(a1 + 512) + v2); } } v6 = (__int64 *)*v6; if ( !v6 ) goto LABEL_24; } } } } return (unsigned int)(*(_DWORD *)(a1 + 512) + v2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source