//
// SecretRewardsLayer::updateBackButton from 0x1003858ac to 0x1003859cc (288 bytes)
//
// 2 xrefs:
// > SecretRewardsLayer::moveToSecondaryLayer @ 0x100385898
// > sub_1003859CC @ 0x100385ad4
//
// 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 11:03:33 +0000
//
__int64 __fastcall SecretRewardsLayer::updateBackButton(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 v4; // x0
const char *v5; // x1
__int64 v6; // x0
__n128 v7; // q0
__int64 result; // x0
float v9; // s0
float *v10; // x0
_OWORD *v11; // x20
float v12; // s0
float *v13; // x0
char v14; // w0
__int64 v15; // x1
__int64 v16; // x2
__int64 v17; // x3
__int64 v18; // x4
__int64 v19; // x5
__int64 v20; // x6
__int64 v21; // x7
__int64 v22; // x1
v2 = cocos2d::CCNode::stopAllActions(*(_QWORD *)(a1 + 528));
v3 = *(_QWORD *)(a1 + 528);
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v2);
if ( *(_BYTE *)(a1 + 584) )
v5 = "GJ_arrow_03_001.png";
else
v5 = "GJ_closeBtn_001.png";
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, v5);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1160LL))(v3, v6);
v7.n128_u32[0] = 1061997773;
if ( *(_BYTE *)(a1 + 584) )
v7.n128_f32[0] = 1.0;
result = (*(__int64 (__fastcall **)(_QWORD, __n128))(**(_QWORD **)(a1 + 528) + 160LL))(*(_QWORD *)(a1 + 528), v7);
if ( (*(_BYTE *)(a1 + 584) & 1) == 0 )
{
v9 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 528) + 168LL))(*(_QWORD *)(a1 + 528));
v10 = cocos2d::CCScaleTo::create_1(0.2, v9 + 0.1);
v11 = cocos2d::CCEaseBackOut::create((__int64)v10);
v12 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 528) + 168LL))(*(_QWORD *)(a1 + 528));
v13 = cocos2d::CCScaleTo::create_1(0.2, v12);
v14 = (unsigned __int8)cocos2d::CCEaseInOut::create((__int64)v13, 2.0);
v22 = sub_10021D420((__int64)v11, v15, v16, v17, v18, v19, v20, v21, v14);
return cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 528), v22);
}
return result;
}