//
// GJGameLevel::setPassword from 0x140218360 to 0x1402183a9 (73 bytes)
//
// 2 xrefs:
// > GJGameLevel::create @ 0x140263276
// > ??> @ 0x14091b8c0
//
// This function is hookable on this platform (idp: pc, 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 11:28:21 +0000
//
__int64 __fastcall GJGameLevel::setPassword(__int64 a1, int a2)
{
float v4; // xmm0_4
__int64 result; // rax
v4 = (float)((float)rand() / 32767.0) * 1000.0;
*(_DWORD *)(a1 + 1056) = (int)v4;
result = (unsigned int)(a2 + (int)v4);
*(_DWORD *)(a1 + 1052) = result;
return result;
}