// // std::__ndk1::random_device::operator from 0x977724 to 0x97779e (122 bytes) // // 1 xrefs: // > GameToolbox::gen_random @ 0x3d3e96 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:05:59 +0000 // int __fastcall std::random_device::operator()(int *a1) { int *p_buf; // r6 size_t v3; // r5 int *v4; // r0 ssize_t v5; // r0 int buf; // [sp+4h] [bp-14h] BYREF p_buf = &buf; v3 = 4; do { while ( 1 ) { v5 = read(*a1, p_buf, v3); if ( v5 != -1 ) break; if ( *(_DWORD *)_errno() != 4 ) { v4 = (int *)_errno(); std::__throw_system_error(*v4, "random_device got an unexpected error"); } } if ( !v5 ) std::__throw_system_error(61, "random_device got EOF"); p_buf = (int *)((char *)p_buf + v5); v3 -= v5; } while ( v3 ); return buf; }
GD Web Decomp Icon

GD Web Decomp

Raw Source