//
// DialogLayer::displayNextObject from 0x1003b0cd0 to 0x1003b0d76 (166 bytes)
//
// 2 xrefs:
// > DialogLayer::init @ 0x1003b0c19
// > DialogLayer::handleDialogTap @ 0x1003b135d
//
// 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:25 +0000
//
__int64 __fastcall DialogLayer::displayNextObject(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rax
__int64 v4; // rdi
const char *v5; // r14
__int64 v6; // rbx
__int64 v7; // rax
__int64 v8; // rax
result = sub_1007FEF90(*(_QWORD *)(a1 + 592));
if ( (_DWORD)result )
{
v3 = sub_1007FEFE0(*(_QWORD *)(a1 + 592), 0);
DialogLayer::displayDialogObject(a1, v3);
sub_1007FF150(*(_QWORD *)(a1 + 592), 0, 1);
v4 = *(_QWORD *)(a1 + 592);
if ( v4 )
{
v5 = "GJ_chatBtn_01_001.png";
if ( !(unsigned int)sub_1007FEF90(v4) )
v5 = "GJ_chatBtn_02_001.png";
}
else
{
v5 = "GJ_chatBtn_02_001.png";
}
v6 = *(_QWORD *)(a1 + 608);
v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v5);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1160LL))(v6, v8);
}
return result;
}