//
// DialogLayer::handleDialogTap from 0x1003c7dc0 to 0x1003c7efd (317 bytes)
//
// 4 xrefs:
// > DialogLayer::ccTouchBegan @ 0x1003c81e9
// > sub_1003C8200 @ 0x1003c8220
// > DialogLayer::keyDown @ 0x1003c86d3
// > sub_1003C86E0 @ 0x1003c871a
//
// 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; // xmm0_4
float v3; // xmm0_4
cocos2d::CCArray *m_dialogObjects; // rdi
DialogDelegate *m_delegate; // rdi
TextArea *m_textArea; // rax
timeb v7; // [rsp+8h] [rbp-18h] BYREF
ftime(&v7);
m_animateTime = a1->m_animateTime;
if ( m_animateTime <= 0.0
|| (v3 = (double)(v7.millitm + 1000 * (v7.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_100720070(m_dialogObjects) )
{
DialogLayer::displayNextObject(a1);
}
else
{
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(DialogDelegate *, DialogLayer *))m_delegate->dialogClosed)(m_delegate, a1);
a1->m_delegate = nullptr;
m_textArea = a1->m_textArea;
if ( m_textArea )
m_textArea->m_delegate = nullptr;
((void (__fastcall *)(DialogLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(DialogLayer *, _QWORD))a1->setKeyboardEnabled)(a1, 0);
if ( !a1->m_noRemove )
((void (__fastcall *)(DialogLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}
}
}
}