//
// DialogLayer::updateNavButtonFrame from 0x6092d8 to 0x60931e (70 bytes)
//
// 3 xrefs:
// > DialogLayer::finishCurrentAnimation @ 0x609368
// > DialogLayer::displayNextObject @ 0x6099ee
// > DialogLayer::init @ 0x609daa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:46 +0000
//
int __fastcall DialogLayer::updateNavButtonFrame(DialogLayer *this)
{
cocos2d::CCSpriteFrameCache *v2; // r0
int v3; // r4
int (__fastcall *v4)(int, int); // r5
cocos2d::CCSpriteFrameCache *v5; // r0
const char *v6; // r1
int v7; // r0
v2 = *((cocos2d::CCSpriteFrameCache **)this + 118);
if ( v2 && (v2 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::count(v2)) != nullptr )
{
v3 = *((_DWORD *)this + 120);
v4 = *(int (__fastcall **)(int, int))(*(_DWORD *)v3 + 580);
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v2);
v6 = "GJ_chatBtn_01_001.png";
}
else
{
v3 = *((_DWORD *)this + 120);
v4 = *(int (__fastcall **)(int, int))(*(_DWORD *)v3 + 580);
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v2);
v6 = "GJ_chatBtn_02_001.png";
}
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v6);
return v4(v3, v7);
}