// // GameToolbox::createHashString from 0x6a1eb4 to 0x6a2034 (384 bytes) // // 1 xrefs: // > @ 0xb44f0 // // 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:50:43 +0000 // __int64 *__usercall GameToolbox::createHashString@(char *a1@, int a2@, __int64 *a3@) { unsigned __int8 v6; // w22 const char *v7; // x19 int v8; // w0 size_t v9; // x2 __int64 v10; // x1 unsigned __int8 v12; // w2 __int64 v13; // x19 int v14; // w20 __int64 v15; // x22 char *v16; // x0 __int64 v17; // [xsp+50h] [xbp+50h] BYREF __int64 v18; // [xsp+58h] [xbp+58h] void *v19; // [xsp+60h] [xbp+60h] if ( a2 <= 0 ) { *a3 = 0; a3[1] = 0; a3[2] = 0; std::string::__init(a3, &byte_11B8890, 0); return a3; } v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, &byte_11B8890, 0); v6 = *a1; if ( (*a1 & 1) != 0 ) { v7 = *((const char **)a1 + 2); v8 = strlen(v7); if ( a2 > v8 ) { v9 = *((_QWORD *)a1 + 1); goto LABEL_5; } LABEL_10: v12 = v6; v13 = 0; v14 = 0; v15 = (int)(float)((float)v8 / (float)a2); while ( 1 ) { v16 = a1 + 1; if ( (v12 & 1) != 0 ) v16 = *((char **)a1 + 2); std::string::push_back(&v17, v16[v13]); ++v14; v13 += v15; if ( v14 == a2 ) break; v12 = *a1; } goto LABEL_6; } v7 = a1 + 1; v8 = strlen(a1 + 1); if ( a2 <= v8 ) goto LABEL_10; v9 = v6 >> 1; LABEL_5: std::string::assign(&v17, v7, v9); LABEL_6: a3[2] = (__int64)v19; v10 = v18; *a3 = v17; a3[1] = v10; return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source