//
// LevelCell::recallLevel from 0x140148cc0 to 0x140148d2c (108 bytes)
//
// 4 xrefs:
// > LevelCell::onClick @ 0x14014d445
// > LevelBrowserLayer::cellPerformedAction @ 0x1403eabef
// > LevelBrowserLayer::claimRecallChest @ 0x1403eb268
// > ??> @ 0x14091760c
//
// 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:27:12 +0000
//
_DWORD *__fastcall LevelCell::recallLevel(__int64 a1)
{
__int64 v1; // rbx
_DWORD *v2; // rdi
__m128i v3; // xmm0
v1 = a1;
v2 = (_DWORD *)GJGameLevel::duplicate(*(_QWORD *)(a1 + 568));
LODWORD(v1) = *(_DWORD *)(*(_QWORD *)(v1 + 568) + 1412LL);
v2[250] = v1;
v3 = _mm_cvtsi32_si128(rand());
*(float *)v3.m128i_i32 = (float)(_mm_cvtepi32_ps(v3).m128_f32[0] / 32767.0) * 1000.0;
v2[249] = (int)*(float *)v3.m128i_i32;
v2[248] = v1 + (int)*(float *)v3.m128i_i32;
return v2;
}