//
// SecretRewardsLayer::updateBackButton from 0xb9a558 to 0xb9a680 (296 bytes)
//
// 3 xrefs:
// > SecretRewardsLayer::moveToMainLayer @ 0xb9a7d8
// > SecretRewardsLayer::moveToSecondaryLayer @ 0xba1dc8
// > ??> @ 0xc7f48
//
// This function is hookable on this platform (idp: arm, 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 13:02:43 +0000
//
__int64 __fastcall SecretRewardsLayer::updateBackButton(cocos2d::CCNode **this)
{
cocos2d::CCSpriteFrameCache **v2; // x20
void (__fastcall *v3)(cocos2d::CCSpriteFrameCache **, __int64); // x21
cocos2d::CCSpriteFrameCache *v4; // x0
const char *v5; // x1
__int64 v6; // x0
void (__fastcall *v7)(float); // x1
__int64 result; // x0
cocos2d::CCScaleTo *v9; // x0
float v10; // s0
cocos2d::CCEaseBackOut *v11; // x0
cocos2d::CCActionInterval *v12; // x1
cocos2d::CCSequence *v13; // x20
cocos2d::CCScaleTo *v14; // x0
float v15; // s0
cocos2d::CCEaseInOut *v16; // x0
cocos2d::CCActionInterval *v17; // x1
cocos2d::CCFiniteTimeAction *v18; // x0
cocos2d::CCAction *v19; // x0
cocos2d::CCNode::stopAllActions(*(this + 66));
v2 = (cocos2d::CCSpriteFrameCache **)*(this + 66);
v3 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v2 + 145);
v4 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v2);
if ( *((_BYTE *)this + 584) )
v5 = "GJ_arrow_03_001.png";
else
v5 = "GJ_closeBtn_001.png";
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, v5);
v3(v2, v6);
v7 = *(void (__fastcall **)(float))(*(_QWORD *)*(this + 66) + 160LL);
if ( !*((_BYTE *)this + 584) )
{
v7(0.8);
result = *((unsigned __int8 *)this + 584);
if ( *((_BYTE *)this + 584) )
return result;
LABEL_8:
v9 = (cocos2d::CCScaleTo *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 66) + 168LL))(*(this + 66));
v11 = (cocos2d::CCEaseBackOut *)cocos2d::CCScaleTo::create(v9, 0.2, v10 + 0.1);
v13 = (cocos2d::CCSequence *)cocos2d::CCEaseBackOut::create(v11, v12);
v14 = (cocos2d::CCScaleTo *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 66) + 168LL))(*(this + 66));
v16 = (cocos2d::CCEaseInOut *)cocos2d::CCScaleTo::create(v14, 0.2, v15);
v18 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseInOut::create(v16, v17, 2.0);
v19 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v13, v18, 0);
return cocos2d::CCNode::runAction(*(this + 66), v19);
}
v7(1.0);
result = *((unsigned __int8 *)this + 584);
if ( !*((_BYTE *)this + 584) )
goto LABEL_8;
return result;
}