// // sub_95E9D8 from 0x95e9d8 to 0x95eb04 (300 bytes) // // 3 xrefs: // > MusicDownloadManager::createCustomSFXPlacement @ 0x963f54 // > MusicDownloadManager::createCustomSFXFolder @ 0x9641f0 // > MusicDownloadManager::renameCustomSFXObject @ 0x9649a8 // // 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:30 +0000 // __int64 *__usercall sub_95E9D8@(__int64 a1@, __int64 *a2@) { unsigned __int8 v3; // w0 _BYTE *v4; // x5 __int64 v5; // x4 _BYTE *v7; // x4 _BYTE *v8; // x2 unsigned __int64 v9; // x2 __int64 v10; // x3 __int64 v11; // x0 __int64 v12; // x0 int v13; // w4 __int64 v14; // x0 int v15; // t1 __int64 v16; // x3 v3 = *(_BYTE *)a1; if ( (v3 & 1) != 0 ) { v4 = *(_BYTE **)(a1 + 16); v5 = *(_QWORD *)(a1 + 8); } else { v4 = (_BYTE *)(a1 + 1); v5 = v3 >> 1; } if ( !v5 || (v7 = &v4[v5], v7 == v4) ) { LABEL_4: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, &byte_11B8890, 0); return a2; } v8 = v4; if ( *v4 == 32 ) { while ( v7 != ++v8 ) { if ( *v8 != 32 ) { v9 = v8 - v4; if ( v9 == -1 ) goto LABEL_4; goto LABEL_10; } } goto LABEL_4; } v9 = 0; LABEL_10: if ( (v3 & 1) != 0 ) { v10 = *(_QWORD *)(a1 + 16); v11 = *(_QWORD *)(a1 + 8); } else { v10 = a1 + 1; v11 = v3 >> 1; } v12 = v10 + v11; if ( v12 != v10 ) { v13 = *(unsigned __int8 *)(v12 - 1); v14 = v12 - 1; if ( v13 != 32 ) { LABEL_21: v16 = v14 - v10; goto LABEL_18; } while ( v14 != v10 ) { v15 = *(unsigned __int8 *)--v14; if ( v15 != 32 ) goto LABEL_21; } } v16 = -1; LABEL_18: std::string::basic_string(a2, a1, v9, v16 - v9 + 1); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source