//
// GJPathPage::onActivatePath from 0x140394fd0 to 0x140395034 (100 bytes)
//
// 3 xrefs:
// > GJPathPage::init @ 0x140394e59
// > ??> @ 0x1409230a8
// > ??> @ 0x1409230b4
//
// 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:31:13 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall GJPathPage::onActivatePath(__int64 a1)
{
int v1; // ebx
__int64 v2; // rcx
__int64 result; // rax
void *v4; // [rsp+30h] [rbp+8h]
v1 = *(_DWORD *)(a1 + 688) + 29;
v2 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v4 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480((__int64)v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v2 = qword_14090BFE0;
}
result = (unsigned int)(v1 - 30);
if ( (unsigned int)result > 9 )
v1 = 0;
*(_DWORD *)(v2 + 996) = v1;
return result;
}