//
// PlayLayer::fullReset from 0x140518920 to 0x140518a24 (260 bytes)
//
// 3 xrefs:
// > UILayer::handleAction @ 0x140671864
// > EndLevelLayer::onReplay @ 0x140206377
// > ??> @ 0x14092ade8
//
// 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:33:34 +0000
//
__int64 __fastcall PlayLayer::fullReset(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rax
__int64 *v4; // rdi
__int64 v5; // rbx
__int64 v6; // rax
float v8; // [rsp+30h] [rbp+8h] BYREF
float v9; // [rsp+34h] [rbp+Ch]
char v10; // [rsp+38h] [rbp+10h] BYREF
v2 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v2, &v8);
v3 = *(_QWORD *)(a1 + 3512);
*(_QWORD *)(a1 + 968) = 0;
*(_QWORD *)(a1 + 984) = 0;
*(_QWORD *)(a1 + 976) = 0;
*(_QWORD *)(v3 + 2728) = 0;
*(_QWORD *)(*(_QWORD *)(a1 + 3520) + 2728LL) = *(_QWORD *)(a1 + 968);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1432LL))(a1);
*(_DWORD *)(a1 + 12644) = 0;
*(_DWORD *)(a1 + 15304) = 0;
*(_BYTE *)(a1 + 12904) = 1;
*(_BYTE *)(a1 + 13097) = 1;
if ( *(_BYTE *)(a1 + 13024) )
PlayLayer::togglePracticeMode(a1, 0);
else
PlayLayer::resetLevelFromStart(a1);
v4 = *(__int64 **)(a1 + 14984);
v5 = *v4;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v10,
(float)(v8 * 0.5) + *(float *)(a1 + 1040),
(float)((float)(v9 * 0.5) + *(float *)(a1 + 1044)) + 85.0);
return (*(__int64 (__fastcall **)(__int64 *, __int64))(v5 + 184))(v4, v6);
}