//
// DialogLayer::handleDialogTap from 0x100087170 to 0x10008723c (204 bytes)
//
// 3 xrefs:
// > DialogLayer::ccTouchBegan @ 0x1000873a4
// > sub_1000873B4 @ 0x1000873d8
// > DialogLayer::keyDown @ 0x1000877b0
//
// 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 __fastcall DialogLayer::handleDialogTap(DialogLayer *a1)
{
float m_animateTime; // s0
float v3; // s0
cocos2d::CCArray *m_dialogObjects; // x0
timeb v5; // [xsp+0h] [xbp-20h] BYREF
ftime(&v5);
m_animateTime = a1->m_animateTime;
if ( m_animateTime <= 0.0
|| (v3 = (double)(v5.millitm + 1000 * (unsigned __int64)(v5.time & 0xFFFFF)) / 1000.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 && (unsigned int)sub_10024A36C(m_dialogObjects) )
DialogLayer::displayNextObject(a1);
else
DialogLayer::onClose(a1);
}
}
}