//
// SecretRewardsLayer::updateBackButton from 0x6ca848 to 0x6ca8fe (182 bytes)
//
// 2 xrefs:
// > SecretRewardsLayer::moveToMainLayer @ 0x6ca9ee
// > SecretRewardsLayer::moveToSecondaryLayer @ 0x6cfea6
//
// 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:56:58 +0000
//
int __fastcall SecretRewardsLayer::updateBackButton(cocos2d::CCNode **this)
{
cocos2d::CCSpriteFrameCache *v2; // r0
int v3; // r5
void (__fastcall *v4)(int, int); // r6
cocos2d::CCSpriteFrameCache *v5; // r0
const char *v6; // r1
int v7; // r0
float v8; // r1
int result; // r0
int v10; // r5
float v11; // r0
float v12; // r2
cocos2d::CCEaseBackOut *v13; // r0
cocos2d::CCActionInterval *v14; // r1
cocos2d::CCSequence *v15; // r6
float v16; // r0
float v17; // r2
cocos2d::CCEaseInOut *v18; // r0
float v19; // r2
cocos2d::CCFiniteTimeAction *v20; // r0
cocos2d::CCAction *v21; // r1
v2 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCNode::stopAllActions(*(this + 94));
v3 = (int)*(this + 94);
v4 = *(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 580);
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v2);
if ( *((_BYTE *)this + 416) )
v6 = "GJ_arrow_03_001.png";
else
v6 = "GJ_closeBtn_001.png";
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v6);
v4(v3, v7);
if ( *((_BYTE *)this + 416) )
v8 = 1.0;
else
v8 = 0.8;
result = (*(int (__fastcall **)(_DWORD, float))(*(_DWORD *)*(this + 94) + 80))(
*(this + 94),
COERCE_FLOAT(LODWORD(v8)));
v10 = *((unsigned __int8 *)this + 416);
if ( !*((_BYTE *)this + 416) )
{
v11 = (*(float (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 94) + 84))(*(this + 94));
v13 = (cocos2d::CCEaseBackOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3E4CCCCD, v11 + 0.1, v12);
v15 = (cocos2d::CCSequence *)cocos2d::CCEaseBackOut::create(v13, v14);
v16 = (*(float (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 94) + 84))(*(this + 94));
v18 = (cocos2d::CCEaseInOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3E4CCCCD, v16, v17);
v20 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseInOut::create(v18, (cocos2d::CCActionInterval *)0x40000000, v19);
v21 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v15, v20, v10);
return cocos2d::CCNode::runAction(*(this + 94), v21);
}
return result;
}