//
// DialogLayer::handleDialogTap from 0x9173b0 to 0x917498 (232 bytes)
//
// 3 xrefs:
// > DialogLayer::ccTouchBegan @ 0x9174d0
// > DialogLayer::keyDown @ 0x917520
// > ??> @ 0x39708
//
// 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; // s2
float v3; // s0
cocos2d::CCArray *m_dialogObjects; // x0
__int64 v5; // [xsp+28h] [xbp+28h] BYREF
__int64 v6; // [xsp+30h] [xbp+30h]
clock_gettime(0, (struct timespec *)&v5);
m_animateTime = a1->m_animateTime;
v3 = (double)v5 + (double)v6 / 1000000000.0 - m_animateTime;
if ( v3 >= 0.2 || m_animateTime <= 0.0 || a1->m_handleTap >= (unsigned int)(v3 >= 0.0) )
{
if ( a1->m_animating )
{
if ( !a1->m_skippable )
DialogLayer::finishCurrentAnimation(a1);
}
else
{
m_dialogObjects = a1->m_dialogObjects;
if ( m_dialogObjects && (unsigned int)cocos2d::CCArray::count(m_dialogObjects) )
DialogLayer::displayNextObject(a1);
else
DialogLayer::onClose(a1);
}
}
}