//
// SecretRewardsLayer::updateBackButton from 0x14056abd0 to 0x14056ad08 (312 bytes)
//
// 3 xrefs:
// > SecretRewardsLayer::onChestType @ 0x14056abba
// > SecretRewardsLayer::onBack @ 0x14056d842
// > ??> @ 0x14092c630
//
// 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:34:19 +0000
//
struct cocos2d::CCAction *__fastcall SecretRewardsLayer::updateBackButton(__int64 a1)
{
__int64 v2; // rdx
__int64 v3; // rcx
__int64 *v4; // rsi
const char *v5; // rbx
__int64 v6; // rdi
cocos2d::CCSpriteFrameCache *v7; // rax
struct cocos2d::CCSpriteFrame *v8; // rax
struct cocos2d::CCAction *result; // rax
double v10; // xmm0_8
struct cocos2d::CCActionInterval *v11; // rax
struct cocos2d::CCFiniteTimeAction *v12; // rbx
double v13; // xmm0_8
struct cocos2d::CCActionInterval *v14; // rax
struct cocos2d::CCEaseInOut *v15; // rax
struct cocos2d::CCAction *v16; // rax
cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(a1 + 528));
v4 = *(__int64 **)(a1 + 528);
v5 = "GJ_closeBtn_001.png";
if ( *(_BYTE *)(a1 + 584) )
v5 = "GJ_arrow_03_001.png";
v6 = *v4;
v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v3, v2);
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v5);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v6 + 1008))(v4, v8);
result = (struct cocos2d::CCAction *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 528) + 160LL))(*(_QWORD *)(a1 + 528));
if ( !*(_BYTE *)(a1 + 584) )
{
v10 = (*(double (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 528) + 168LL))(*(_QWORD *)(a1 + 528));
v11 = cocos2d::CCScaleTo::create(0.2, *(float *)&v10 + 0.1);
v12 = cocos2d::CCEaseBackOut::create(v11);
v13 = (*(double (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 528) + 168LL))(*(_QWORD *)(a1 + 528));
v14 = cocos2d::CCScaleTo::create(0.2, *(float *)&v13);
v15 = cocos2d::CCEaseInOut::create(v14, 2.0);
v16 = cocos2d::CCSequence::create(v12, v15, 0);
return cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 528), v16);
}
return result;
}