// // std::__ndk1::to_wstring from 0xf8523c to 0xf8542c (496 bytes) // // 1 xrefs: // > @ 0xe0f98 // // 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:52 +0000 // __int64 *__usercall std::to_wstring@(float a1@, __int64 a2@) { char v4; // w8 double v5; // d8 unsigned __int64 v6; // x23 wchar_t *v7; // x0 __int64 *result; // x0 unsigned __int64 v9; // x8 unsigned __int64 v10; // x9 unsigned __int64 v11; // x10 __int128 v12; // q0 __int128 v13; // [xsp+0h] [xbp-50h] BYREF void *v14; // [xsp+10h] [xbp-40h] __int64 v15; // [xsp+18h] [xbp-38h] v15 = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40); *(_QWORD *)&v13 = 25; *((_QWORD *)&v13 + 1) = 20; v14 = operator new(0x60u); wmemset((wchar_t *)v14, 0, 0x14u); *((_DWORD *)v14 + 20) = 0; std::wstring::append((__int64 *)&v13, 3u, 0); v4 = v13; v5 = a1; if ( (v13 & 1) != 0 ) v6 = *((_QWORD *)&v13 + 1); else v6 = (unsigned __int64)(unsigned __int8)v13 >> 1; while ( 1 ) { v7 = (v4 & 1) != 0 ? (wchar_t *)v14 : (wchar_t *)((char *)&v13 + 4); result = (__int64 *)swprintf(v7, v6 + 1, U"%f", v5); if ( ((unsigned int)result & 0x80000000) == 0 ) break; v9 = (2 * v6) | 1; LABEL_11: v6 = v9; v10 = *((_QWORD *)&v13 + 1); if ( (v13 & 1) == 0 ) v10 = (unsigned __int64)(unsigned __int8)v13 >> 1; if ( v9 <= v10 ) { if ( (v13 & 1) != 0 ) { *((_DWORD *)v14 + v9) = 0; v4 = v13; *((_QWORD *)&v13 + 1) = v6; } else { *((_DWORD *)&v13 + v9 + 1) = 0; LOBYTE(v13) = 2 * v9; v4 = 2 * v9; } } else { std::wstring::append((__int64 *)&v13, v9 - v10, 0); v4 = v13; } } v9 = (int)result; if ( (int)result > v6 ) goto LABEL_11; v11 = *((_QWORD *)&v13 + 1); if ( (v13 & 1) == 0 ) v11 = (unsigned __int64)(unsigned __int8)v13 >> 1; if ( (int)result <= v11 ) { if ( (v13 & 1) != 0 ) { *((_DWORD *)v14 + (int)result) = 0; *((_QWORD *)&v13 + 1) = (int)result; } else { *((_DWORD *)&v13 + (int)result + 1) = 0; LOBYTE(v13) = 2 * (_BYTE)result; } } else { result = std::wstring::append((__int64 *)&v13, (int)result - v11, 0); } v12 = v13; *(_QWORD *)(a2 + 16) = v14; *(_OWORD *)a2 = v12; _ReadStatusReg(TPIDR_EL0); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source