//
// GJPathsLayer::onPath from 0x1002e95a0 to 0x1002e961c (124 bytes)
//
// 1 xrefs:
// > GJPathsLayer::init @ 0x1002e92c1
//
// 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 12:28:22 +0000
//
__int64 __fastcall GJPathsLayer::onPath(__int64 a1, __int64 a2, __m128 a3)
{
__int64 v3; // rbx
_BYTE *v4; // rax
__int64 v5; // rax
__int64 result; // rax
__int64 v7; // rax
__int64 v8; // rax
v3 = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = (_BYTE *)GJPathPage::create(v3, a1);
v4[596] = 1;
(*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v4 + 1312LL))(v4);
v5 = GameStatsManager::sharedState();
result = GameStatsManager::getStatFromKey(v5, (unsigned int)(v3 + 29), a3);
if ( (int)result >= 1000 )
{
v7 = GameStatsManager::sharedState();
result = GameStatsManager::isPathChestUnlocked(v7, (unsigned int)v3);
if ( !(_BYTE)result )
{
v8 = sub_1002E98F0((unsigned int)v3);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);
}
}
return result;
}