//
// TutorialPopup::closeTutorial from 0x41e6e8 to 0x41e72e (70 bytes)
//
// 1 xrefs:
// > TutorialPopup::keyBackClicked @ 0x41e730
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:00 +0000
//
int __fastcall TutorialPopup::closeTutorial(TutorialPopup *this, cocos2d::CCObject *a2)
{
int v3; // r1
int v4; // r0
void (__fastcall *v5)(int, TutorialPopup *); // r3
int v6; // r2
int v7; // r0
(*(void (__fastcall **)(TutorialPopup *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
if ( *((_BYTE *)this + 532) )
{
v4 = *((_DWORD *)this + 112);
v5 = *((void (__fastcall **)(int, TutorialPopup *))this + 134);
v6 = *((int *)this + 135) >> 1;
if ( (*((_DWORD *)this + 135) & 1) != 0 )
v3 = *(_DWORD *)(v4 + v6);
v7 = v4 + v6;
if ( (*((_DWORD *)this + 135) & 1) != 0 )
v5 = *(void (__fastcall **)(int, TutorialPopup *))((char *)v5 + v3);
v5(v7, this);
}
return (*(int (__fastcall **)(TutorialPopup *, int))(*(_DWORD *)this + 264))(this, 1);
}