// // std::__ndk1::random_device::random_device from 0xf7a4b0 to 0xf7a58c (220 bytes) // // 3 xrefs: // > GameToolbox::gen_random @ 0x6a883c // > @ 0x84670 // > @ 0xa6420 // // 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:46 +0000 // // Alternative name is '_ZNSt6__ndk113random_deviceC1ERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE' void __fastcall std::random_device::random_device(int *a1, __int64 a2) { const char *v4; // x0 int v5; // w0 int v6; // w20 const char *v7; // x1 unsigned __int64 v8[2]; // [xsp+0h] [xbp-40h] BYREF void *v9; // [xsp+10h] [xbp-30h] __int64 v10; // [xsp+18h] [xbp-28h] v10 = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40); if ( (*(_BYTE *)a2 & 1) != 0 ) v4 = *(const char **)(a2 + 16); else v4 = (const char *)(a2 + 1); v5 = open(v4, 0); *a1 = v5; if ( v5 < 0 ) { v6 = *(_DWORD *)__errno(); std::operator+("random_device failed to open ", a2, v8); if ( (v8[0] & 1) != 0 ) v7 = (const char *)v9; else v7 = (char *)v8 + 1; std::__throw_system_error(v6, v7); if ( (v8[0] & 1) != 0 ) operator delete(v9); } _ReadStatusReg(TPIDR_EL0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source