//
// DialogLayer::handleDialogTap from 0xa70e50 to 0xa70f34 (228 bytes)
//
// 3 xrefs:
// > DialogLayer::ccTouchBegan @ 0xa70f70
// > DialogLayer::keyDown @ 0xa70fc0
// > ??> @ 0x53a28
//
// 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::handleDialogTap(DialogLayer *this)
{
double v2; // d2
float v3; // s0
cocos2d::CCArray *v5; // x0
__int64 v6; // [xsp+28h] [xbp+28h] BYREF
__int64 v7; // [xsp+30h] [xbp+30h]
clock_gettime(0, (struct timespec *)&v6);
v2 = *((double *)this + 69);
v3 = (double)v6 + (double)v7 / 1000000000.0 - v2;
if ( v3 >= 0.2 || v2 <= 0.0 || *((unsigned __int8 *)this + 632) >= (unsigned int)(v3 >= 0.0) )
{
if ( *((_BYTE *)this + 616) )
{
if ( !*((_BYTE *)this + 617) )
DialogLayer::finishCurrentAnimation(this);
}
else
{
v5 = *((cocos2d::CCArray **)this + 74);
if ( v5 && (unsigned int)cocos2d::CCArray::count(v5) )
DialogLayer::displayNextObject((cocos2d::CCArray **)this);
else
DialogLayer::onClose(this);
}
}
return _stack_chk_guard;
}