//
// DialogLayer::updateNavButtonFrame from 0x140175460 to 0x1401754d6 (118 bytes)
//
// 4 xrefs:
// > DialogLayer::init @ 0x14017506f
// > DialogLayer::displayNextObject @ 0x1401750fe
// > DialogLayer::handleDialogTap @ 0x1401755fa
// > ??> @ 0x140918440
//
// 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 11:27:32 +0000
//
__int64 __fastcall DialogLayer::updateNavButtonFrame(__int64 a1)
{
cocos2d::CCArray *v2; // rcx
__int64 *v3; // rdi
__int64 v4; // rbx
cocos2d::CCSpriteFrameCache *v5; // rax
const char *v6; // rdx
struct cocos2d::CCSpriteFrame *v7; // rax
v2 = *(cocos2d::CCArray **)(a1 + 592);
if ( v2 && cocos2d::CCArray::count(v2) )
{
v3 = *(__int64 **)(a1 + 608);
v4 = *v3;
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = "GJ_chatBtn_01_001.png";
}
else
{
v3 = *(__int64 **)(a1 + 608);
v4 = *v3;
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = "GJ_chatBtn_02_001.png";
}
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v6);
return (*(__int64 (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v4 + 1008))(v3, v7);
}