//
// GJChestSprite::switchToState from 0xa86d90 to 0xa87a68 (3288 bytes)
//
// 13 xrefs:
// > GJNotificationCell::refreshChest @ 0x739f9c
// > GJNotificationCell::loadFromNotification @ 0x74a71c
// > RewardUnlockLayer::step2 @ 0xa87b0c
// > RewardUnlockLayer::playRewardEffect @ 0xa87c00
// > GJChestSprite::init @ 0xa88fe4
// > SecretLayer3::init @ 0xa92ff0
// > SecretLayer3::init @ 0xa9322c
// > SecretLayer4::init @ 0xa975d0
// > FollowRewardPage::switchToOpenedState @ 0xaaa428
// > FollowRewardPage::init @ 0xaab7ec
// > SecretRewardsLayer::switchToOpenedState @ 0xb9aa58
// > SecretRewardsLayer::generateChestItems @ 0xba1234
// > ??> @ 0xaf5b8
//
// 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:00:35 +0000
//
__int64 __fastcall GJChestSprite::switchToState(unsigned int *a1, unsigned int a2, unsigned __int8 a3)
{
int v3; // w23
__int64 v5; // x2
RewardsPage *v6; // x0
float v7; // s8
size_t v9; // x0
cocos2d::CCSprite *v10; // x0
__int64 v11; // x0
char *v12; // x0
cocos2d::CCSprite *v13; // x0
__int64 v14; // x0
char *v15; // x0
cocos2d::CCSprite *v16; // x0
__int64 v17; // x23
cocos2d::CCSprite *v18; // x0
__int64 v19; // x22
void (__fastcall *v20)(__int64, float *); // x24
float v21; // s9
__int64 v22; // x0
bool v23; // w2
cocos2d::CCParticleSystem *v24; // x22
unsigned int v25; // w0
float v26; // s1
int v27; // w23
int v28; // w24
int v29; // w19
float v30; // s2
void (__fastcall *v31)(cocos2d::CCParticleSystem *, float *); // x2
void (__fastcall *v32)(cocos2d::CCParticleSystem *, float *); // x2
void (__fastcall *v33)(cocos2d::CCParticleSystem *, float *); // x19
cocos2d::CCSprite *v34; // x0
const char *v35; // x1
__int64 v36; // x0
size_t v37; // x0
cocos2d::CCSprite *v38; // x0
__int64 v39; // x0
char *v40; // x0
cocos2d::CCSprite *v41; // x0
__int64 v42; // x0
char *v43; // x0
cocos2d::CCSprite *v44; // x0
cocos2d::CCNode *v45; // x21
unsigned __int8 v46; // w1
cocos2d::CCEaseInOut *v47; // x0
cocos2d::CCActionInterval *v48; // x1
cocos2d::CCSequence *v49; // x22
unsigned __int8 v50; // w1
cocos2d::CCEaseInOut *v51; // x0
cocos2d::CCActionInterval *v52; // x1
cocos2d::CCFiniteTimeAction *v53; // x0
cocos2d::CCRepeatForever *v54; // x0
cocos2d::CCActionInterval *v55; // x1
cocos2d::CCAction *v56; // x0
unsigned int v57; // w0
__int64 v58; // x1
int v59; // w23
int v60; // w25
int v61; // w24
cocos2d::CCNode *v62; // x22
void (__fastcall *v63)(cocos2d::CCNode *, float *); // x28
float v64; // s11
cocos2d::CCRotateBy *v65; // x0
cocos2d::CCRepeatForever *v66; // x0
cocos2d::CCActionInterval *v67; // x1
cocos2d::CCAction *v68; // x0
const char *v69; // x1
cocos2d::CCNode *v70; // x22
void (__fastcall *v71)(cocos2d::CCNode *, float *); // x26
cocos2d::CCRotateBy *v72; // x0
cocos2d::CCRepeatForever *v73; // x0
cocos2d::CCActionInterval *v74; // x1
cocos2d::CCAction *v75; // x0
bool v76; // w2
cocos2d::CCParticleSystem *v77; // x22
void (__fastcall *v78)(cocos2d::CCParticleSystem *, float *); // x26
void (__fastcall *v79)(cocos2d::CCParticleSystem *, float *); // x2
void (__fastcall *v80)(cocos2d::CCParticleSystem *, float *); // x2
const char *v81; // x1
__int64 v82; // x22
const char *v83; // x1
cocos2d::CCSprite *v84; // x22
const char *v85; // x1
__int64 v86; // x22
void (__fastcall *v87)(__int64, float *); // x24
const char *v88; // x1
__int64 v89; // x22
void (__fastcall *v90)(__int64, float *); // x23
int v91; // [xsp+84h] [xbp+84h]
char *RewardFrame; // [xsp+88h] [xbp+88h]
char *v94; // [xsp+88h] [xbp+88h]
int v95; // [xsp+88h] [xbp+88h]
char v96; // [xsp+98h] [xbp+98h] BYREF
char v97; // [xsp+99h] [xbp+99h]
char v98; // [xsp+9Ah] [xbp+9Ah]
char v99; // [xsp+A0h] [xbp+A0h] BYREF
char v100; // [xsp+A1h] [xbp+A1h]
char v101; // [xsp+A2h] [xbp+A2h]
_BYTE v102[8]; // [xsp+A8h] [xbp+A8h] BYREF
float v103; // [xsp+B0h] [xbp+B0h] BYREF
float v104; // [xsp+B4h] [xbp+B4h]
float v105; // [xsp+B8h] [xbp+B8h]
float v106; // [xsp+BCh] [xbp+BCh]
char *v107; // [xsp+C0h] [xbp+C0h] BYREF
__int64 v108; // [xsp+C8h] [xbp+C8h]
cocos2d::CCSprite *v109; // [xsp+D0h] [xbp+D0h]
__int64 v110[2]; // [xsp+D8h] [xbp+D8h] BYREF
cocos2d::CCSprite *v111; // [xsp+E8h] [xbp+E8h]
__int64 v112[2]; // [xsp+F0h] [xbp+F0h] BYREF
void *v113; // [xsp+100h] [xbp+100h]
v3 = a3;
if ( a1[150] == a2 )
return _stack_chk_guard;
v5 = *(_QWORD *)a1;
a1[150] = a2;
(*(void (**)(void))(v5 + 576))();
v6 = (RewardsPage *)a1[149];
if ( (_DWORD)v6 != 1 )
{
v7 = 1.0;
if ( a2 != 3 )
goto LABEL_4;
LABEL_9:
v107 = nullptr;
RewardFrame = (char *)RewardsPage::getRewardFrame(v6, a2);
v108 = 0;
v109 = nullptr;
v9 = strlen(RewardFrame);
std::string::__init((__int64 *)&v107, RewardFrame, v9);
v10 = (cocos2d::CCSprite *)((char *)&v107 + 1);
if ( ((unsigned __int8)v107 & 1) != 0 )
v10 = v109;
v11 = cocos2d::CCSprite::createWithSpriteFrameName(v10, (const char *)(unsigned __int8)v107);
(*(void (__fastcall **)(unsigned int *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v11, 3);
v12 = (char *)&v107 + 1;
if ( ((unsigned __int8)v107 & 1) != 0 )
v12 = (char *)v109;
sub_A86B00(v12, "_back_001", v110);
v13 = (cocos2d::CCSprite *)((char *)v110 + 1);
if ( (v110[0] & 1) != 0 )
v13 = v111;
v14 = cocos2d::CCSprite::createWithSpriteFrameName(v13, (const char *)LOBYTE(v110[0]));
(*(void (__fastcall **)(unsigned int *, __int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, v14, 0);
if ( v3 )
goto LABEL_29;
v15 = (char *)&v107 + 1;
if ( ((unsigned __int8)v107 & 1) != 0 )
v15 = (char *)v109;
sub_A86B00(v15, "_glow_001", v112);
v16 = (cocos2d::CCSprite *)((char *)v112 + 1);
if ( (v112[0] & 1) != 0 )
v16 = (cocos2d::CCSprite *)v113;
v17 = cocos2d::CCSprite::createWithSpriteFrameName(v16, (const char *)LOBYTE(v112[0]));
(*(void (__fastcall **)(unsigned int *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v17, 1);
v18 = (cocos2d::CCSprite *)((char *)v112 + 1);
if ( (v112[0] & 1) != 0 )
v18 = (cocos2d::CCSprite *)v113;
v19 = cocos2d::CCSprite::createWithSpriteFrameName(v18, (const char *)LOBYTE(v112[0]));
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v17 + 464LL))(v17, v19, 1);
v20 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v19 + 184LL);
v21 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 328LL))(v17) * 0.5;
v22 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 328LL))(v17);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v103, v21, *(float *)(v22 + 4) * 0.5);
v20(v19, &v103);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v19 + 128LL))(v19, 0.8);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 1080LL))(v17, 0x100000302LL);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v19 + 1080LL))(v19, 0x100000302LL);
v24 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create(
(cocos2d::CCParticleSystemQuad *)"chestOpen.plist",
nullptr,
v23);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v24 + 1584LL))(v24, 1);
(*(void (__fastcall **)(unsigned int *, cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v24, 4);
v25 = a1[149];
switch ( v25 )
{
case 1u:
v26 = 0.19608;
v27 = 0;
v30 = 1.0;
v28 = 0;
v29 = 255;
break;
case 3u:
v26 = 1.0;
v27 = 255;
v30 = 0.0;
v28 = 0;
v29 = 0;
break;
case 4u:
v26 = 0.0;
v27 = 0;
v30 = 0.58824;
v28 = 255;
v29 = 0;
break;
default:
v26 = 1.0;
v27 = 255;
v28 = 255;
v29 = 0;
v30 = 1.0;
break;
}
v31 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_QWORD *)v24 + 1360LL);
v103 = v30;
v104 = 1.0;
v105 = v26;
v106 = 1.0;
v31(v24, &v103);
v32 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_QWORD *)v24 + 1392LL);
v106 = 1.0;
v103 = (float)v29 / 255.0;
v104 = (float)v28 / 255.0;
v105 = (float)v27 / 255.0;
v32(v24, &v103);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v24 + 160LL))(v24, v7);
v33 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_QWORD *)v24 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v103, 0.0, 0.0);
v33(v24, &v103);
cocos2d::CCParticleSystem::resetSystem(v24);
goto LABEL_27;
}
v7 = 0.8;
if ( a2 == 3 )
goto LABEL_9;
LABEL_4:
if ( a2 != 4 )
{
if ( a2 == 2 )
{
v34 = (cocos2d::CCSprite *)RewardsPage::getRewardFrame(v6, 2u);
v36 = cocos2d::CCSprite::createWithSpriteFrameName(v34, v35);
(*(void (__fastcall **)(unsigned int *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v36, 3);
}
return _stack_chk_guard;
}
v107 = nullptr;
v94 = (char *)RewardsPage::getRewardFrame(v6, 4u);
v108 = 0;
v109 = nullptr;
v37 = strlen(v94);
std::string::__init((__int64 *)&v107, v94, v37);
v38 = (cocos2d::CCSprite *)((char *)&v107 + 1);
if ( ((unsigned __int8)v107 & 1) != 0 )
v38 = v109;
v39 = cocos2d::CCSprite::createWithSpriteFrameName(v38, (const char *)(unsigned __int8)v107);
(*(void (__fastcall **)(unsigned int *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v39, 4);
v40 = (char *)&v107 + 1;
if ( ((unsigned __int8)v107 & 1) != 0 )
v40 = (char *)v109;
sub_A86B00(v40, "_back_001", v110);
v41 = (cocos2d::CCSprite *)((char *)v110 + 1);
if ( (v110[0] & 1) != 0 )
v41 = v111;
v42 = cocos2d::CCSprite::createWithSpriteFrameName(v41, (const char *)LOBYTE(v110[0]));
(*(void (__fastcall **)(unsigned int *, __int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, v42, 0);
if ( !v3 )
{
v43 = (char *)&v107 + 1;
if ( ((unsigned __int8)v107 & 1) != 0 )
v43 = (char *)v109;
sub_A86B00(v43, "_glow_001", v112);
v44 = (cocos2d::CCSprite *)((char *)v112 + 1);
if ( (v112[0] & 1) != 0 )
v44 = (cocos2d::CCSprite *)v113;
v45 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(v44, (const char *)LOBYTE(v112[0]));
(*(void (__fastcall **)(unsigned int *, cocos2d::CCNode *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v45, 1);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v45 + 1080LL))(v45, 0x100000302LL);
v47 = (cocos2d::CCEaseInOut *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0xFFFFFFAFLL, 1.0, v46);
v49 = (cocos2d::CCSequence *)cocos2d::CCEaseInOut::create(v47, v48, 2.0);
v51 = (cocos2d::CCEaseInOut *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0xFFFFFFFFLL, 1.0, v50);
v53 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseInOut::create(v51, v52, 2.0);
v54 = (cocos2d::CCRepeatForever *)cocos2d::CCSequence::create(v49, v53, 0);
v56 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v54, v55);
cocos2d::CCNode::runAction(v45, v56);
v57 = a1[149];
v98 = -1;
v101 = -1;
qmemcpy(v102, "3D", 2);
v96 = 0;
v58 = 4294967193LL;
v97 = -106;
v99 = 0;
v100 = -106;
v102[2] = -103;
switch ( v57 )
{
case 1u:
v61 = 255;
v58 = 4294967240LL;
v96 = -1;
v97 = -56;
v60 = 100;
v98 = 0;
v59 = 0;
v99 = -1;
v95 = 255;
v101 = 0;
v91 = 255;
break;
case 2u:
case 5u:
v59 = 255;
v97 = -56;
v60 = 0;
v61 = 0;
v100 = 100;
v95 = 255;
v91 = 0;
break;
case 4u:
v97 = -1;
v100 = -1;
v60 = 255;
v101 = 50;
v98 = 0;
v61 = 0;
v59 = 0;
v95 = 255;
v91 = 150;
break;
case 6u:
v97 = -56;
v100 = 100;
qmemcpy(v102, "\n6S", 3);
v59 = 255;
v60 = 0;
v61 = 0;
v95 = 255;
v91 = 0;
break;
case 7u:
v97 = -1;
v100 = -1;
v101 = 50;
v91 = 150;
qmemcpy(v102, ")Q;", 3);
v60 = 255;
v61 = 100;
v98 = 0;
v59 = 0;
v95 = 255;
break;
case 8u:
v96 = -1;
v99 = -1;
v95 = 150;
v61 = 255;
v102[0] = 58;
v97 = 0;
v102[1] = 27;
v60 = 0;
v59 = 255;
v100 = 0;
v91 = 255;
v102[2] = 75;
break;
case 9u:
v96 = -1;
v99 = -1;
v102[0] = 39;
v61 = 255;
v58 = 4294967240LL;
v102[1] = 29;
v60 = 100;
v97 = -56;
v59 = 0;
v98 = 0;
v95 = 255;
v91 = 255;
v101 = 0;
v102[2] = 44;
break;
default:
v59 = 255;
v60 = 0;
v61 = 0;
v95 = 255;
v91 = 0;
break;
}
v62 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"shineBurst_001.png",
(const char *)v58);
(*(void (__fastcall **)(unsigned int *, cocos2d::CCNode *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v62, 1);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v62 + 1080LL))(v62, 0x100000302LL);
v63 = *(void (__fastcall **)(cocos2d::CCNode *, float *))(*(_QWORD *)v62 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v103, 0.0, -5.0);
v63(v62, &v103);
(*(void (__fastcall **)(cocos2d::CCNode *, float))(*(_QWORD *)v62 + 160LL))(v62, v7 * 4.0);
(*(void (__fastcall **)(cocos2d::CCNode *, char *))(*(_QWORD *)v62 + 960LL))(v62, &v96);
if ( (float)((float)rand() * 4.6566e-10) > 0.5 )
v64 = 1.0;
else
v64 = -1.0;
v65 = (cocos2d::CCRotateBy *)rand();
v66 = (cocos2d::CCRepeatForever *)cocos2d::CCRotateBy::create(
v65,
1.0,
v64
* (float)((float)((float)((float)((float)(int)v65 * 4.6566e-10) * 0.5) + 0.5)
* 180.0));
v68 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v66, v67);
cocos2d::CCNode::runAction(v62, v68);
v70 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"shineBurst_001.png",
v69);
(*(void (__fastcall **)(unsigned int *, cocos2d::CCNode *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v70, 1);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v70 + 1080LL))(v70, 0x100000302LL);
v71 = *(void (__fastcall **)(cocos2d::CCNode *, float *))(*(_QWORD *)v70 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v103, 0.0, -5.0);
v71(v70, &v103);
(*(void (__fastcall **)(cocos2d::CCNode *, float))(*(_QWORD *)v70 + 160LL))(v70, v7 * 3.5);
(*(void (__fastcall **)(cocos2d::CCNode *, char *))(*(_QWORD *)v70 + 960LL))(v70, &v99);
v72 = (cocos2d::CCRotateBy *)rand();
v73 = (cocos2d::CCRepeatForever *)cocos2d::CCRotateBy::create(
v72,
1.0,
(float)((float)((float)((float)((float)(int)v72 * 4.6566e-10) * 0.5) + 0.5)
* 180.0)
* (float)-v64);
v75 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v73, v74);
cocos2d::CCNode::runAction(v70, v75);
v77 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create(
(cocos2d::CCParticleSystemQuad *)"chestOpened.plist",
nullptr,
v76);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v77 + 1584LL))(v77, 1);
(*(void (__fastcall **)(unsigned int *, cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v77, 1);
v78 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_QWORD *)v77 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v103, 0.0, 0.0);
v78(v77, &v103);
v79 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_QWORD *)v77 + 1360LL);
v106 = 1.0;
v105 = (float)v59 / 255.0;
v103 = (float)v91 / 255.0;
v104 = (float)v95 / 255.0;
v79(v77, &v103);
v80 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_QWORD *)v77 + 1392LL);
v105 = (float)v59 / 255.0;
v106 = 1.0;
v103 = (float)v61 / 255.0;
v104 = (float)v60 / 255.0;
v80(v77, &v103);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v77 + 160LL))(v77, v7);
cocos2d::CCParticleSystem::resetSystem(v77);
v82 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"chest_glow_bg_001.png", v81);
(*(void (__fastcall **)(unsigned int *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v82, 2);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v82 + 160LL))(v82, v7);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v82 + 960LL))(v82, v102);
v84 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"chest_glow_bg_001.png",
v83);
cocos2d::CCSprite::setFlipX(v84, 1);
(*(void (__fastcall **)(unsigned int *, cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v84, 2);
(*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v84 + 160LL))(v84, v7);
(*(void (__fastcall **)(cocos2d::CCSprite *, _BYTE *))(*(_QWORD *)v84 + 960LL))(v84, v102);
v86 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v85);
v87 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v86 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v103, 0.0, v7 * -52.0);
v87(v86, &v103);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v86 + 128LL))(v86, v7 * 5.2);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v86 + 144LL))(v86, v7 * 2.2);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v86 + 960LL))(v86, v102);
(*(void (__fastcall **)(unsigned int *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v86, 2);
v89 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"chest_shadow_001.png", v88);
v90 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v89 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v103, 0.0, v7 * -48.0);
v90(v89, &v103);
(*(void (__fastcall **)(unsigned int *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v89, 3);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v89 + 160LL))(v89, v7 * 0.95);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v89 + 912LL))(v89, 90);
LABEL_27:
if ( (v112[0] & 1) != 0 )
operator delete(v113);
}
LABEL_29:
if ( (v110[0] & 1) != 0 )
operator delete(v111);
if ( ((unsigned __int8)v107 & 1) != 0 )
operator delete(v109);
return _stack_chk_guard;
}