// // std::__ndk1::to_string from 0xf837e8 to 0xf839a8 (448 bytes) // // 17 xrefs: // > GameLevelManager::getLevelControls @ 0x835554 // > GameLevelManager::deleteLevelControls @ 0x83581c // > GameLevelManager::uploadLevelControls @ 0x835b34 // > KeybindingsLayer::showTab @ 0x9970d0 // > KeybindingsLayer::showTab @ 0x997310 // > KeybindingsLayer::~KeybindingsLayer @ 0x99812c // > GJKeybindManager::buildBindsBlob @ 0xc0e058 // > GJKeybindManager::buildBindsBlob @ 0xc0e0ec // > GJKeybindManager::exportBindingsToFile @ 0xc0e2f8 // > GJKeybindManager::exportBindingsToFile @ 0xc0e3ac // > LevelPickerPopup::savedIndex @ 0xc73190 // > EditorSoundsLayer::showTab @ 0xcd67f0 // > EditorSoundsLayer::showTab @ 0xcd6a30 // > EditorSoundsLayer::~EditorSoundsLayer @ 0xcd78e8 // > KeybindingsSettingsPopup::onImport @ 0xcf07a8 // > KeybindingsSettingsPopup::onImport @ 0xcf0804 // > @ 0x93100 // // 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:51 +0000 // __int64 __usercall std::to_string@(_QWORD *__return_ptr a1@, unsigned int a2@) { char v4; // w8 unsigned __int64 v5; // x24 char *v6; // x0 __int64 result; // x0 unsigned __int64 v8; // x8 unsigned __int64 v9; // x9 unsigned __int64 v10; // x10 __int128 v11; // q0 __int128 v12; // [xsp+0h] [xbp-50h] BYREF void *v13; // [xsp+10h] [xbp-40h] __int64 v14; // [xsp+18h] [xbp-38h] v14 = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40); v13 = nullptr; v12 = 0u; std::string::append((__int64)&v12, 0x16u, 0); v4 = v12; if ( (v12 & 1) != 0 ) v5 = *((_QWORD *)&v12 + 1); else v5 = (unsigned __int64)(unsigned __int8)v12 >> 1; while ( 1 ) { v6 = (v4 & 1) != 0 ? (char *)v13 : (char *)&v12 + 1; result = snprintf(v6, v5 + 1, "%d", a2); if ( (result & 0x80000000) == 0 ) break; v8 = (2 * v5) | 1; LABEL_11: v5 = v8; v9 = *((_QWORD *)&v12 + 1); if ( (v12 & 1) == 0 ) v9 = (unsigned __int64)(unsigned __int8)v12 >> 1; if ( v8 <= v9 ) { if ( (v12 & 1) != 0 ) { *((_BYTE *)v13 + v8) = 0; v4 = v12; *((_QWORD *)&v12 + 1) = v5; } else { *((_BYTE *)&v12 + v8 + 1) = 0; LOBYTE(v12) = 2 * v8; v4 = 2 * v8; } } else { std::string::append((__int64)&v12, v8 - v9, 0); v4 = v12; } } v8 = (int)result; if ( (int)result > v5 ) goto LABEL_11; v10 = *((_QWORD *)&v12 + 1); if ( (v12 & 1) == 0 ) v10 = (unsigned __int64)(unsigned __int8)v12 >> 1; if ( (int)result <= v10 ) { if ( (v12 & 1) != 0 ) { *((_BYTE *)v13 + (int)result) = 0; *((_QWORD *)&v12 + 1) = (int)result; } else { *((_BYTE *)&v12 + (int)result + 1) = 0; LOBYTE(v12) = 2 * result; } } else { result = std::string::append((__int64)&v12, (int)result - v10, 0); } v11 = v12; a1[2] = v13; *(_OWORD *)a1 = v11; _ReadStatusReg(TPIDR_EL0); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source