//
// sub_140354D80 from 0x140354d80 to 0x140354dda (90 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::resetLevelVariables @ 0x140345598
// > GJBaseGameLayer::resetLevelVariables @ 0x1403455a4
// > GJBaseGameLayer::resetLevelVariables @ 0x1403455b0
// > GJBaseGameLayer::resetLevelVariables @ 0x1403455bc
// > ??> @ 0x1409207e0
//
// 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:30:48 +0000
//
__int64 __fastcall sub_140354D80(__int64 *a1)
{
__int64 v1; // rsi
__int64 v3; // rbx
__int64 result; // rax
v1 = a1[1];
v3 = *a1;
if ( *a1 != v1 )
{
do
{
sub_140069730(v3 + 200);
sub_140358980(v3, v3);
v3 += 232;
}
while ( v3 != v1 );
result = *a1;
a1[1] = *a1;
}
return result;
}