//
// DialogLayer::handleDialogTap from 0x4d6618 to 0x4d66c2 (170 bytes)
//
// 2 xrefs:
// > DialogLayer::ccTouchBegan @ 0x4d66e8
// > DialogLayer::keyDown @ 0x4d671e
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void DialogLayer::handleDialogTap(DialogLayer *a1)
{
float m_animateTime; // s14
float v3; // s14
cocos2d::CCArray *m_dialogObjects; // r0
int v5; // [sp+4h] [bp-10h] BYREF
int v6; // [sp+8h] [bp-Ch]
clock_gettime(0, (struct timespec *)&v5);
m_animateTime = a1->m_animateTime;
if ( m_animateTime <= 0.0
|| (v3 = (double)v5 + (double)v6 / 1000000000.0 - m_animateTime, v3 >= 0.2)
|| a1->m_handleTap
|| v3 < 0.0 )
{
if ( a1->m_animating )
{
if ( !a1->m_skippable )
DialogLayer::finishCurrentAnimation(a1);
}
else
{
m_dialogObjects = a1->m_dialogObjects;
if ( m_dialogObjects && cocos2d::CCArray::count(m_dialogObjects) )
DialogLayer::displayNextObject(a1);
else
DialogLayer::onClose(a1);
}
}
}