// // SongInfoObject::getArtistNames from 0x100597f70 to 0x100598645 (1749 bytes) // // 1 xrefs: // > CustomSongWidget::onMore @ 0x10061c513 // // 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 // std::string *__fastcall SongInfoObject::getArtistNames(std::string *this, __int64 a2, double a3) { std::string *v3; // rbx __int128 v4; // xmm0 unsigned int v5; // eax __int64 v6; // rax std::string::size_type size; // r12 std::string::size_type v8; // r13 void *v9; // rdi __int64 v10; // rbx unsigned __int64 v11; // r15 int v12; // eax char *v13; // rax __int64 *v14; // r14 cocos2d::CCDictionary *v15; // rdi char *v16; // r15 cocos2d::CCObject *v17; // rax std::string::size_type v18; // rcx char v19; // r8 std::string::size_type v20; // r9 std::string::size_type v21; // rax std::string::size_type v22; // rax unsigned int v23; // eax unsigned __int64 v24; // rbx unsigned __int64 v25; // rdi __int64 **v26; // rax const std::string::value_type *data; // rsi __int64 *v28; // r11 __int64 v29; // rax unsigned __int64 v30; // rax char *v31; // rax void **v32; // r14 void *v33; // rdi void **v35; // rbx void *v36[2]; // [rsp+0h] [rbp-B0h] BYREF void *v37[2]; // [rsp+10h] [rbp-A0h] int v38; // [rsp+20h] [rbp-90h] std::string __str; // [rsp+30h] [rbp-80h] BYREF int *v40; // [rsp+50h] [rbp-60h] BYREF int v41; // [rsp+5Ch] [rbp-54h] BYREF std::string __p; // [rsp+60h] [rbp-50h] BYREF std::string *v43; // [rsp+80h] [rbp-30h] v3 = this; if ( (*(_BYTE *)(a2 + 344) & 1) != 0 ) { sub_100006B70(this, *(const void **)(a2 + 360), *(_QWORD *)(a2 + 352), a3); if ( !*(_QWORD *)(a2 + 584) ) return v3; } else { *this = *(std::string *)(a2 + 344); if ( !*(_QWORD *)(a2 + 584) ) return v3; } *(_QWORD *)&v4 = 0; *(_OWORD *)v37 = 0; *(_OWORD *)v36 = 0; v38 = 1065353216; v5 = *(unsigned __int8 *)(a2 + 536); if ( (v5 & 1) == 0 ) { v43 = this; if ( !(v5 >> 1) ) goto LABEL_29; goto LABEL_9; } v6 = *(_QWORD *)(a2 + 544); v43 = this; if ( v6 ) { LABEL_9: memset(&__p, 0, sizeof(__p)); sub_10058DFB0((unsigned __int8 *)(a2 + 536), ",", (__int64)&__p, 0.0); size = __p.__r_.__value_.__l.__size_; v8 = __p.__r_.__value_.__r.__words[0]; if ( __p.__r_.__value_.__l.__size_ == __p.__r_.__value_.__r.__words[0] || 0xAAAAAAAAAAAAAAABLL * ((__int64)(__p.__r_.__value_.__l.__size_ - __p.__r_.__value_.__r.__words[0]) >> 3) < 2 ) { LABEL_10: v3 = v43; if ( v8 ) { v9 = (void *)v8; if ( size != v8 ) { do { if ( (*(_BYTE *)(size - 24) & 1) != 0 ) operator delete(*(void **)(size - 8)); size -= 24LL; } while ( size != v8 ); v9 = (void *)__p.__r_.__value_.__r.__words[0]; } __p.__r_.__value_.__l.__size_ = v8; operator delete(v9); } goto LABEL_29; } v10 = 40; v11 = 0; while ( 1 ) { if ( (*(_BYTE *)(v8 + v10 - 40) & 1) != 0 ) { v12 = atoi(*(const char **)(v8 + v10 - 24)); v41 = v12; if ( (*(_BYTE *)(v8 + v10 - 16) & 1) == 0 ) { LABEL_22: __str.__r_.__value_.__r.__words[2] = *(_QWORD *)(v10 + v8); v4 = *(_OWORD *)(v10 + v8 - 16); *(_OWORD *)&__str.__r_.__value_.__l.0 = v4; goto LABEL_23; } } else { v12 = atoi((const char *)(v10 + v8 - 39)); v41 = v12; if ( (*(_BYTE *)(v8 + v10 - 16) & 1) == 0 ) goto LABEL_22; } sub_100006B70(&__str, *(const void **)(v8 + v10), *(_QWORD *)(v8 + v10 - 8), *(double *)&v4); v12 = v41; LABEL_23: if ( v12 > 0 && v12 != 10004636 ) { v40 = &v41; v13 = sub_100172F30((float *)v36, &v41, (__int64)&unk_10081F28A, &v40); std::string::operator=((std::string *)v13 + 1, &__str); } if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); v11 += 2LL; size = __p.__r_.__value_.__l.__size_; v8 = __p.__r_.__value_.__r.__words[0]; v10 += 48; if ( v11 >= 0xAAAAAAAAAAAAAAABLL * ((__int64)(__p.__r_.__value_.__l.__size_ - __p.__r_.__value_.__r.__words[0]) >> 3) ) goto LABEL_10; } } LABEL_29: v14 = *(__int64 **)(a2 + 576); if ( v14 ) { while ( 1 ) { LODWORD(v40) = *((_DWORD *)v14 + 4); if ( (_DWORD)v40 != 10004636 ) break; LABEL_31: v14 = (__int64 *)*v14; if ( !v14 ) goto LABEL_85; } memset(&__p, 0, sizeof(__p)); if ( qword_1009A2C38 ) { v15 = *(cocos2d::CCDictionary **)(qword_1009A2C38 + 432); if ( !v15 ) goto LABEL_39; } else { v16 = (char *)operator new(0x230u); cocos2d::CCNode::CCNode((__int64)v16); *(_QWORD *)v16 = off_100970158; *((_QWORD *)v16 + 40) = off_1009704D8; *((_OWORD *)v16 + 28) = 0; *(_OWORD *)(v16 + 328) = 0; *(_OWORD *)(v16 + 344) = 0; *((_DWORD *)v16 + 90) = 0; *((_OWORD *)v16 + 23) = 0; *((_OWORD *)v16 + 24) = 0; *((_OWORD *)v16 + 25) = 0; v16[416] = 0; *(_OWORD *)(v16 + 424) = 0; *((_QWORD *)v16 + 55) = v16 + 448; *((_OWORD *)v16 + 30) = 0; *((_OWORD *)v16 + 31) = 0; *((_QWORD *)v16 + 58) = 0; *(_QWORD *)(v16 + 471) = 0; *((_DWORD *)v16 + 128) = 1065353216; *(_OWORD *)(v16 + 520) = 0; *(_OWORD *)(v16 + 536) = 0; *((_DWORD *)v16 + 138) = 1065353216; qword_1009A2C38 = (__int64)v16; MusicDownloadManager::init((MusicDownloadManager *)v16); v15 = *(cocos2d::CCDictionary **)(qword_1009A2C38 + 432); if ( !v15 ) goto LABEL_39; } v17 = cocos2d::CCDictionary::objectForKey(v15, (int)v40); if ( v17 ) std::string::operator=(&__p, (const std::string *)&v17[1].m_uID); LABEL_39: v18 = *(_BYTE *)&__p.__r_.__value_.__l.0 >> 1; v19 = *(_BYTE *)&__p.__r_.__value_.__s.0 & 1; v20 = __p.__r_.__value_.__l.__size_; v21 = __p.__r_.__value_.__l.__size_; if ( (*(_BYTE *)&__p.__r_.__value_.__s.0 & 1) == 0 ) v21 = *(_BYTE *)&__p.__r_.__value_.__l.0 >> 1; if ( v21 || !v36[1] ) { LABEL_42: v22 = v20; if ( !v19 ) v22 = v18; if ( !v22 ) goto LABEL_57; v23 = (unsigned int)v3->__r_.__value_.__l.0; if ( (v23 & 1) != 0 ) { if ( !v3->__r_.__value_.__l.__size_ ) goto LABEL_54; } else if ( !(v23 >> 1) ) { LABEL_54: data = __p.__r_.__value_.__s.__data_; if ( v19 ) { data = __p.__r_.__value_.__l.__data_; v18 = v20; } std::string::append(v3, data, v18); v19 = *(_BYTE *)&__p.__r_.__value_.__s.0 & 1; LABEL_57: if ( v19 ) operator delete(__p.__r_.__value_.__l.__data_); goto LABEL_31; } std::string::append(v3, ", "); v20 = __p.__r_.__value_.__l.__size_; v19 = *(_BYTE *)&__p.__r_.__value_.__s.0 & 1; v18 = *(_BYTE *)&__p.__r_.__value_.__l.0 >> 1; goto LABEL_54; } v24 = (0x101010101010101LL * (((((unsigned __int64)v36[1] - (((unsigned __int64)v36[1] >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + ((((unsigned __int64)v36[1] - (((unsigned __int64)v36[1] >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL) + (((((unsigned __int64)v36[1] - (((unsigned __int64)v36[1] >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + ((((unsigned __int64)v36[1] - (((unsigned __int64)v36[1] >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)) >> 4)) & 0xF0F0F0F0F0F0F0FLL)) >> 56; if ( v24 <= 1 ) { v25 = (int)v40 & ((unsigned __int64)v36[1] - 1); v26 = *((__int64 ***)v36[0] + v25); if ( !v26 ) goto LABEL_84; LABEL_63: v28 = *v26; if ( *v26 ) { if ( (unsigned int)v24 < 2 ) { v3 = v43; while ( 1 ) { v29 = v28[1]; if ( v29 == (int)v40 ) { if ( *((_DWORD *)v28 + 4) == (_DWORD)v40 ) goto LABEL_82; } else if ( (((unsigned __int64)v36[1] - 1) & v29) != v25 ) { goto LABEL_42; } v28 = (__int64 *)*v28; if ( !v28 ) goto LABEL_42; } } v3 = v43; while ( 1 ) { v30 = v28[1]; if ( v30 == (int)v40 ) { if ( *((_DWORD *)v28 + 4) == (_DWORD)v40 ) { LABEL_82: __str.__r_.__value_.__r.__words[0] = (std::string::size_type)&v40; v31 = sub_100172F30((float *)v36, (int *)&v40, (__int64)&unk_10081F28A, &__str); std::string::operator=(&__p, (const std::string *)v31 + 1); v20 = __p.__r_.__value_.__l.__size_; v19 = *(_BYTE *)&__p.__r_.__value_.__s.0 & 1; v18 = *(_BYTE *)&__p.__r_.__value_.__l.0 >> 1; goto LABEL_42; } } else { if ( (void *)v30 < v36[1] ) goto LABEL_78; if ( ((unsigned __int64)v36[1] | v30) >> 32 ) { v30 %= (unsigned __int64)v36[1]; LABEL_78: if ( v30 != v25 ) goto LABEL_42; goto LABEL_73; } if ( (unsigned int)v30 % LODWORD(v36[1]) != v25 ) goto LABEL_42; } LABEL_73: v28 = (__int64 *)*v28; if ( !v28 ) goto LABEL_42; } } LABEL_84: v3 = v43; goto LABEL_42; } v25 = (int)v40; if ( v36[1] <= (void *)(int)v40 ) { if ( !(((unsigned __int64)v36[1] | (int)v40) >> 32) ) { v25 = (unsigned int)v40 % LODWORD(v36[1]); v26 = *((__int64 ***)v36[0] + v25); if ( !v26 ) goto LABEL_84; goto LABEL_63; } v25 = (int)v40 % (unsigned __int64)v36[1]; } v26 = *((__int64 ***)v36[0] + v25); if ( !v26 ) goto LABEL_84; goto LABEL_63; } LABEL_85: v32 = (void **)v37[0]; if ( v37[0] ) { do { v35 = (void **)*v32; if ( ((_BYTE)v32[3] & 1) != 0 ) operator delete(v32[5]); operator delete(v32); v32 = v35; } while ( v35 ); } v33 = v36[0]; v36[0] = nullptr; if ( v33 ) operator delete(v33); return v43; }
GD Web Decomp Icon

GD Web Decomp

Raw Source