// // sub_F7FA4C from 0xf7fa4c to 0xf7fb04 (184 bytes) // // 0 xrefs: // // 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 13:13:50 +0000 // unsigned __int8 *__fastcall sub_F7FA4C(unsigned __int8 *a1, __int64 a2, __int64 a3) { unsigned __int64 v4; // x8 unsigned __int8 *v5; // x20 unsigned __int64 v6; // x22 unsigned __int64 v7; // x21 unsigned __int64 v8; // x9 unsigned __int64 v9; // x10 unsigned __int8 *v10; // x23 __int64 v11; // x24 unsigned __int64 v12; // x9 v4 = *a1; if ( (v4 & 1) != 0 ) { v6 = *((_QWORD *)a1 + 1); v5 = *((unsigned __int8 **)a1 + 2); } else { v5 = a1 + 4; v6 = v4 >> 1; } v7 = (a2 - (__int64)v5) >> 2; v8 = v6 - v7; if ( v6 < v7 ) std::__basic_string_common::__throw_out_of_range(); v9 = (a3 - a2) >> 2; if ( v9 ) { if ( (v4 & 1) != 0 ) v10 = *((unsigned __int8 **)a1 + 2); else v10 = a1 + 4; if ( v8 >= v9 ) v11 = (a3 - a2) >> 2; else v11 = v6 - v7; if ( v8 != v11 ) { wmemmove((wchar_t *)&v10[4 * v7], (const wchar_t *)&v10[4 * v7 + 4 * v11], v8 - v11); LOBYTE(v4) = *a1; } v12 = v6 - v11; if ( (v4 & 1) != 0 ) *((_QWORD *)a1 + 1) = v12; else *a1 = 2 * v12; *(_DWORD *)&v10[4 * v12] = 0; } return &v5[4 * v7]; }
GD Web Decomp Icon

GD Web Decomp

Raw Source