//
// DialogLayer::handleDialogTap from 0x6099f8 to 0x609a9e (166 bytes)
//
// 2 xrefs:
// > DialogLayer::ccTouchBegan @ 0x609ac0
// > DialogLayer::keyDown @ 0x609af6
//
// 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:47 +0000
//
int __fastcall DialogLayer::handleDialogTap(DialogLayer *this)
{
int result; // r0
double v3; // d5
float v4; // s14
cocos2d::CCArray *v5; // r0
int v6; // [sp+4h] [bp-10h] BYREF
int v7; // [sp+8h] [bp-Ch]
result = clock_gettime(0, (struct timespec *)&v6);
v3 = *((double *)this + 56);
if ( v3 <= 0.0 || (v4 = (double)v6 + (double)v7 / 1000000000.0 - v3, v4 >= 0.2) || *((_BYTE *)this + 492) || v4 < 0.0 )
{
if ( *((_BYTE *)this + 484) )
{
if ( !*((_BYTE *)this + 485) )
return DialogLayer::finishCurrentAnimation(this);
}
else
{
v5 = *((cocos2d::CCArray **)this + 118);
if ( v5 && cocos2d::CCArray::count(v5) )
return DialogLayer::displayNextObject((cocos2d::CCArray **)this);
else
return DialogLayer::onClose(this);
}
}
return result;
}