//
// GJGameLevel::unverifyCoins from 0x14026ae30 to 0x14026aee4 (180 bytes)
//
// 7 xrefs:
// > AutoBackupPopup::onRestore @ 0x1400cbd19
// > GJGameLevel::copyLevelInfo @ 0x140267185
// > LevelEditorLayer::saveLevel @ 0x1403ff2b5
// > LocalLevelManager::tryRecoverAutoSaves @ 0x14046d9d8
// > LocalLevelManager::importLevelsFromFile @ 0x14046f07e
// > LocalLevelManager::filesPicked @ 0x14046f4e2
// > ??> @ 0x14091ca0c
//
// 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:51 +0000
//
__int64 __fastcall GJGameLevel::unverifyCoins(_DWORD *a1)
{
int v2; // eax
int v3; // eax
int v4; // eax
int v5; // eax
__int64 result; // rax
a1[272] = 0;
v2 = rand();
a1[275] = 0;
v3 = (int)(float)((float)((float)v2 / 32767.0) * 1000.0);
a1[271] = v3;
a1[270] = v3;
v4 = rand();
a1[278] = 0;
v5 = (int)(float)((float)((float)v4 / 32767.0) * 1000.0);
a1[274] = v5;
a1[273] = v5;
result = (unsigned int)(int)(float)((float)((float)rand() / 32767.0) * 1000.0);
a1[277] = result;
a1[276] = result;
return result;
}