//
// DialogLayer::handleDialogTap from 0x1000905e0 to 0x1000906a4 (196 bytes)
//
// 3 xrefs:
// > DialogLayer::ccTouchBegan @ 0x10009080c
// > sub_10009081C @ 0x100090840
// > DialogLayer::keyDown @ 0x100090c10
//
// 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 10:58:23 +0000
//
__int64 __fastcall DialogLayer::handleDialogTap(__int64 a1)
{
__int64 result; // x0
unsigned __int64 v3; // d2
double v4; // d0
float v5; // s0
__int64 v6; // x0
timeb v7; // [xsp+0h] [xbp-20h] BYREF
result = ftime(&v7);
v4 = *(double *)(a1 + 552);
if ( v4 <= 0.0
|| (LOWORD(v3) = v7.millitm, v5 = (double)v3 / 1000.0 + (double)v7.time - v4, v5 >= 0.2)
|| (*(_BYTE *)(a1 + 632) & 1) != 0
|| v5 < 0.0 )
{
if ( *(_BYTE *)(a1 + 616) == 1 )
{
if ( (*(_BYTE *)(a1 + 617) & 1) == 0 )
return DialogLayer::finishCurrentAnimation(a1);
}
else
{
v6 = *(_QWORD *)(a1 + 592);
if ( v6 && (unsigned int)sub_1002E757C(v6) )
return DialogLayer::displayNextObject(a1);
else
return DialogLayer::onClose(a1);
}
}
return result;
}