//
// GJPathPage::unlockAnimationFinished from 0xba820c to 0xba82a4 (152 bytes)
//
// 3 xrefs:
// > ??> @ 0x6b3e0
// > GJPathPage::playUnlockAnimation @ 0xba5844
// > ??> @ 0x1542a80
//
// This function is hookable on this platform (idp: arm, 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 13:02:50 +0000
//
__int64 __fastcall GJPathPage::unlockAnimationFinished(GJPathPage *this)
{
__int64 v2; // x0
GJPathsLayer *v3; // x0
__int64 v4; // x0
__int64 v5; // x2
GJPathsLayer *v6; // x2
__int64 v7; // x0
__int64 v8; // x1
GJPathPage *v9; // x19
int v11; // [xsp+28h] [xbp+28h]
GJPathsLayer *v12; // [xsp+28h] [xbp+28h]
*((_BYTE *)this + 692) = 0;
v11 = *((_DWORD *)this + 172) + 29;
v2 = GameStatsManager::sharedState(this);
GameStatsManager::updateActivePath(v2, v11);
GJPathPage::onBack((GJPathsLayer **)this, nullptr);
*(_BYTE *)(*((_QWORD *)this + 85) + 680LL) = 0;
v3 = (GJPathsLayer *)GJPathsLayer::onClose(*((GJPathsLayer **)this + 85), nullptr);
v4 = GJPathsLayer::create(v3);
v5 = *(_QWORD *)v4;
*(_BYTE *)(v4 + 596) = 1;
v12 = (GJPathsLayer *)v4;
(*(void (**)(void))(v5 + 1312))();
v7 = GJPathPage::create((GJPathPage *)*((unsigned int *)this + 172), v12, v6);
v8 = *(_QWORD *)v7;
*(_BYTE *)(v7 + 596) = 1;
v9 = (GJPathPage *)v7;
(*(void (**)(void))(v8 + 1312))();
return GJPathPage::unlockAnimationStep3(v9);
}