// // sub_967854 from 0x967854 to 0x96797c (296 bytes) // // 4 xrefs: // > MusicDownloadManager::generateCustomContentURL @ 0x967d88 // > MusicDownloadManager::generateCustomContentURL @ 0x967dec // > MusicDownloadManager::generateCustomContentURL @ 0x967e54 // > MusicDownloadManager::generateCustomContentURL @ 0x967ebc // // This function is hookable on this platform (idp: arm, 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:57:36 +0000 // unsigned __int64 __fastcall sub_967854(_QWORD *a1, char *a2, __int64 a3) { unsigned __int64 result; // x0 unsigned __int8 v7; // w3 char *v8; // x25 unsigned __int64 v9; // x1 unsigned __int8 *v10; // x2 unsigned __int64 v11; // x3 size_t v12; // x19 size_t v13; // x2 char *v14; // x3 size_t v15; // x4 __int64 v16; // x0 char *v17; // x20 for ( result = 0; ; result = v16 + v12 ) { if ( (*(_BYTE *)a1 & 1) != 0 ) { v7 = *a2; v8 = (char *)a1[2]; v9 = a1[1]; if ( (*a2 & 1) != 0 ) goto LABEL_4; } else { v7 = *a2; v8 = (char *)a1 + 1; v9 = *(_BYTE *)a1 >> 1; if ( (*a2 & 1) != 0 ) { LABEL_4: v10 = *((unsigned __int8 **)a2 + 2); v11 = *((_QWORD *)a2 + 1); if ( result > v9 ) return result; goto LABEL_8; } } v10 = (unsigned __int8 *)(a2 + 1); v11 = v7 >> 1; if ( result > v9 ) return result; LABEL_8: if ( v9 - result < v11 ) return result; v12 = result; if ( v11 ) break; LABEL_10: if ( v12 == -1 ) return result; v13 = (unsigned __int8)*a2 >> 1; if ( (*a2 & 1) != 0 ) v13 = *((_QWORD *)a2 + 1); if ( (*(_BYTE *)a3 & 1) != 0 ) { v14 = *(char **)(a3 + 16); v15 = *(_QWORD *)(a3 + 8); } else { v14 = (char *)(a3 + 1); v15 = *(_BYTE *)a3 >> 1; } std::string::replace(a1, v12, v13, v14, v15); v16 = *(_BYTE *)a3 >> 1; if ( (*(_BYTE *)a3 & 1) != 0 ) v16 = *(_QWORD *)(a3 + 8); } v17 = &v8[v9]; result = std::__search( (__int64)&v8[result], (__int64)&v8[v9], v10, &v10[v11], (unsigned __int8 (__fastcall *)(__int64, _QWORD))std::char_traits::eq); if ( v17 != (char *)result ) { v12 = result - (_QWORD)v8; goto LABEL_10; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source