//
// DialogLayer::onClose from 0x6093a2 to 0x6093f4 (82 bytes)
//
// 2 xrefs:
// > DialogLayer::keyBackClicked @ 0x6093f4
// > DialogLayer::handleDialogTap @ 0x609a82
//
// 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:54:46 +0000
//
int __fastcall DialogLayer::onClose(DialogLayer *this)
{
void (__fastcall ***v2)(_DWORD, DialogLayer *); // r0
int v3; // r3
int result; // r0
v2 = *((void (__fastcall ****)(_DWORD, DialogLayer *))this + 122);
if ( v2 )
(**v2)(v2, this);
v3 = *((_DWORD *)this + 116);
*((_DWORD *)this + 122) = 0;
if ( v3 )
*(_DWORD *)(v3 + 588) = 0;
(*(void (__fastcall **)(DialogLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
result = (*(int (__fastcall **)(DialogLayer *, _DWORD))(*(_DWORD *)this + 544))(this, 0);
if ( !*((_BYTE *)this + 500) )
return (*(int (__fastcall **)(DialogLayer *, int))(*(_DWORD *)this + 264))(this, 1);
return result;
}