//
// DialogLayer::finishCurrentAnimation from 0x1003b13e0 to 0x1003b1495 (181 bytes)
//
// 1 xrefs:
// > DialogLayer::handleDialogTap @ 0x1003b1339
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:29:26 +0000
//
__int64 __fastcall DialogLayer::finishCurrentAnimation(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rdi
const char *v4; // r14
__int64 v5; // rbx
__int64 v6; // rax
__int64 v7; // rax
*(_BYTE *)(a1 + 616) = 0;
v2 = *(_QWORD *)(a1 + 576);
if ( v2 )
{
*(_QWORD *)(v2 + 696) = 0;
TextArea::stopAllCharacterActions(v2);
TextArea::showAll(*(_QWORD *)(a1 + 576));
}
cocos2d::CCNode::stopAllActions(*(_QWORD *)(a1 + 608));
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 608) + 912LL))(*(_QWORD *)(a1 + 608), 255);
v3 = *(_QWORD *)(a1 + 592);
if ( v3 )
{
v4 = "GJ_chatBtn_01_001.png";
if ( !(unsigned int)sub_1007FEF90(v3) )
v4 = "GJ_chatBtn_02_001.png";
}
else
{
v4 = "GJ_chatBtn_02_001.png";
}
v5 = *(_QWORD *)(a1 + 608);
v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v4);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 1160LL))(v5, v7);
}