//
// DialogLayer::onClose from 0xa70654 to 0xa706dc (136 bytes)
//
// 3 xrefs:
// > DialogLayer::keyBackClicked @ 0xa706dc
// > DialogLayer::handleDialogTap @ 0xa70f28
// > ??> @ 0x6ba70
//
// 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:00:23 +0000
//
__int64 __fastcall DialogLayer::onClose(DialogLayer *this)
{
void (__fastcall ***v2)(_QWORD, DialogLayer *); // x0
__int64 v3; // x0
__int64 result; // x0
v2 = *((void (__fastcall ****)(_QWORD, DialogLayer *))this + 78);
if ( v2 )
(**v2)(v2, this);
v3 = *((_QWORD *)this + 72);
*((_QWORD *)this + 78) = 0;
if ( v3 )
*(_QWORD *)(v3 + 696) = 0;
(*(void (__fastcall **)(DialogLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
(*(void (__fastcall **)(DialogLayer *, _QWORD))(*(_QWORD *)this + 1088LL))(this, 0);
result = *((unsigned __int8 *)this + 640);
if ( !*((_BYTE *)this + 640) )
return (*(__int64 (__fastcall **)(DialogLayer *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
return result;
}