//
// TutorialPopup::closeTutorial from 0x1006a5ec0 to 0x1006a5f1d (93 bytes)
//
// 1 xrefs:
// > TutorialPopup::init @ 0x1006a5dca
//
// 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:35:19 +0000
//
__int64 __fastcall TutorialPopup::closeTutorial(__int64 a1)
{
char *v2; // rax
_QWORD *v3; // rdi
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
if ( *(_BYTE *)(a1 + 688) == 1 )
{
v2 = *(char **)(a1 + 696);
v3 = (_QWORD *)(*(_QWORD *)(a1 + 704) + *(_QWORD *)(a1 + 560));
if ( ((unsigned __int8)v2 & 1) != 0 )
v2 = *(char **)&v2[*v3 - 1];
((void (__fastcall *)(_QWORD *, __int64))v2)(v3, a1);
}
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);
}