//
// FollowRewardPage::init from 0x10040c310 to 0x10040d2ee (4062 bytes)
//
// 2 xrefs:
// > sub_10040C0F0 @ 0x10040c2b4
// > ??> @ 0x100b3e118
//
// 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 12:30:07 +0000
//
__int64 __fastcall FollowRewardPage::init(__int64 a1)
{
__int64 result; // rax
__int64 v2; // rax
void *v3; // rbx
double v4; // xmm0_8
char *v5; // r15
double v6; // xmm0_8
unsigned __int8 *v7; // r12
unsigned int v8; // r15d
double v9; // xmm0_8
unsigned __int8 *v10; // r12
double v11; // xmm0_8
unsigned __int8 *v12; // r14
__int64 v13; // rbx
__int64 v14; // r14
unsigned __int64 *v15; // rbx
double v16; // xmm0_8
char *v17; // rax
void *v18; // rax
int v19; // edx
int v20; // ecx
int v21; // r8d
int v22; // r9d
__int64 v23; // rbx
_QWORD *v24; // r14
__int64 v25; // rdi
__int64 v26; // rax
__m128 v27; // xmm2
__int64 v28; // rax
__int64 v29; // rax
__int64 RewardForSpecialChest; // r13
__int64 v31; // rax
__int64 v32; // xmm0_8
__int64 v33; // xmm1_8
__int64 v34; // rax
__int64 v35; // rax
__int64 v36; // rax
__int64 v37; // rax
__int64 v38; // rax
__int64 v39; // rax
__int64 v40; // rax
__int64 v41; // rax
__int64 v42; // rax
__int64 v43; // rax
__int64 v44; // rax
__int64 v45; // rax
__int64 v46; // rax
__int64 v47; // rax
__int64 v48; // rax
__int64 v49; // rax
__int64 v50; // rax
__int64 v51; // rax
_QWORD *v52; // r13
_WORD *v53; // r14
__int64 v54; // rax
std::string::pointer data; // rdi
__int64 v56; // r12
__int64 v57; // rbx
__int64 v58; // rax
unsigned int *v59; // rax
_QWORD *v60; // r12
unsigned __int64 v61; // r13
__int64 v62; // rbx
std::string::pointer v63; // rdi
char *v64; // rbx
unsigned __int64 v65; // [rsp+0h] [rbp-210h] BYREF
char v66; // [rsp+8h] [rbp-208h] BYREF
char v67[15]; // [rsp+9h] [rbp-207h] BYREF
void *__p; // [rsp+18h] [rbp-1F8h]
char v69; // [rsp+20h] [rbp-1F0h] BYREF
char v70[15]; // [rsp+21h] [rbp-1EFh] BYREF
void *v71; // [rsp+30h] [rbp-1E0h]
char v72; // [rsp+38h] [rbp-1D8h] BYREF
char v73[15]; // [rsp+39h] [rbp-1D7h] BYREF
void *v74; // [rsp+48h] [rbp-1C8h]
char v75; // [rsp+50h] [rbp-1C0h] BYREF
char v76[15]; // [rsp+51h] [rbp-1BFh] BYREF
void *v77; // [rsp+60h] [rbp-1B0h]
char v78; // [rsp+68h] [rbp-1A8h] BYREF
char v79[15]; // [rsp+69h] [rbp-1A7h] BYREF
void *v80; // [rsp+78h] [rbp-198h]
char v81; // [rsp+80h] [rbp-190h] BYREF
char v82[15]; // [rsp+81h] [rbp-18Fh] BYREF
void *v83; // [rsp+90h] [rbp-180h]
char v84; // [rsp+98h] [rbp-178h] BYREF
char v85[15]; // [rsp+99h] [rbp-177h] BYREF
void *v86; // [rsp+A8h] [rbp-168h]
char v87; // [rsp+B0h] [rbp-160h] BYREF
char v88[15]; // [rsp+B1h] [rbp-15Fh] BYREF
void *v89; // [rsp+C0h] [rbp-150h]
char v90; // [rsp+C8h] [rbp-148h] BYREF
char v91[15]; // [rsp+C9h] [rbp-147h] BYREF
void *v92; // [rsp+D8h] [rbp-138h]
char v93; // [rsp+E0h] [rbp-130h] BYREF
char v94[15]; // [rsp+E1h] [rbp-12Fh] BYREF
void *v95; // [rsp+F0h] [rbp-120h]
char v96; // [rsp+F8h] [rbp-118h] BYREF
char v97[15]; // [rsp+F9h] [rbp-117h] BYREF
void *v98; // [rsp+108h] [rbp-108h]
char v99; // [rsp+110h] [rbp-100h] BYREF
char v100[15]; // [rsp+111h] [rbp-FFh] BYREF
void *v101; // [rsp+120h] [rbp-F0h]
char v102; // [rsp+128h] [rbp-E8h] BYREF
char v103[15]; // [rsp+129h] [rbp-E7h] BYREF
void *v104; // [rsp+138h] [rbp-D8h]
char v105; // [rsp+140h] [rbp-D0h] BYREF
char v106[15]; // [rsp+141h] [rbp-CFh] BYREF
void *v107; // [rsp+150h] [rbp-C0h]
std::string __str; // [rsp+158h] [rbp-B8h] BYREF
unsigned __int64 v109; // [rsp+174h] [rbp-9Ch] BYREF
float v110; // [rsp+17Ch] [rbp-94h]
std::string v111; // [rsp+180h] [rbp-90h] BYREF
std::string v112; // [rsp+198h] [rbp-78h] BYREF
double v113; // [rsp+1B4h] [rbp-5Ch] BYREF
unsigned __int64 v114; // [rsp+1BCh] [rbp-54h] BYREF
unsigned __int64 v115; // [rsp+1C4h] [rbp-4Ch] BYREF
unsigned __int8 v116; // [rsp+1CFh] [rbp-41h]
__int64 v117; // [rsp+1D0h] [rbp-40h]
float v118; // [rsp+1DCh] [rbp-34h] BYREF
float v119; // [rsp+1E0h] [rbp-30h]
bool isSpecialChestUnlocked; // [rsp+1E6h] [rbp-2Ah]
char UGV; // [rsp+1E7h] [rbp-29h]
result = FLAlertLayer::init_1(a1, 150);
if ( (_BYTE)result )
{
v116 = result;
v2 = cocos2d::CCDirector::sharedDirector(a1, 150);
cocos2d::CCDirector::getWinSize(&v118, v2);
sub_100278270((__int64)&v112, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u);
v3 = cocos2d::extension::CCScale9Sprite::create_2((__int64)"GJ_square01.png", (unsigned __int64 *)&v112);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v3 + 912LL))(v3, 255);
v117 = a1;
sub_100278260((float *)&v112, 420.0, 280.0);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v3 + 320LL))(v3, &v112);
(*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(v117 + 584) + 464LL))(
*(_QWORD *)(v117 + 584),
v3,
0xFFFFFFFFLL);
sub_100278250((float *)&v112, v118 * 0.5, v119 * 0.5);
v4 = (*(double (__fastcall **)(void *, std::string *))(*(_QWORD *)v3 + 184LL))(v3, &v112);
v5 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dailyLevelCorner_001.png", v4);
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v117 + 584) + 464LL))(
*(_QWORD *)(v117 + 584),
v5,
8);
sub_100278250((float *)&v112, (float)(v118 * 0.5) + -185.0, (float)(v119 * 0.5) + -115.0);
v6 = (*(double (__fastcall **)(char *, std::string *))(*(_QWORD *)v5 + 184LL))(v5, &v112);
v7 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dailyLevelCorner_001.png", v6);
(*(void (__fastcall **)(_QWORD, unsigned __int8 *, __int64))(**(_QWORD **)(v117 + 584) + 464LL))(
*(_QWORD *)(v117 + 584),
v7,
8);
v8 = 1;
cocos2d::CCSprite::setFlipY(v7, 1u);
sub_100278250((float *)&v112, (float)(v118 * 0.5) + -185.0, (float)(v119 * 0.5) + 115.0);
v9 = (*(double (__fastcall **)(unsigned __int8 *, std::string *))(*(_QWORD *)v7 + 184LL))(v7, &v112);
v10 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dailyLevelCorner_001.png", v9);
(*(void (__fastcall **)(_QWORD, unsigned __int8 *, __int64))(**(_QWORD **)(v117 + 584) + 464LL))(
*(_QWORD *)(v117 + 584),
v10,
8);
cocos2d::CCSprite::setFlipX(v10, 1u);
cocos2d::CCSprite::setFlipY(v10, 1u);
sub_100278250((float *)&v112, (float)(v118 * 0.5) + 185.0, (float)(v119 * 0.5) + 115.0);
v11 = (*(double (__fastcall **)(unsigned __int8 *, std::string *))(*(_QWORD *)v10 + 184LL))(v10, &v112);
v12 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dailyLevelCorner_001.png", v11);
(*(void (__fastcall **)(_QWORD, unsigned __int8 *, __int64))(**(_QWORD **)(v117 + 584) + 464LL))(
*(_QWORD *)(v117 + 584),
v12,
8);
cocos2d::CCSprite::setFlipX(v12, 1u);
sub_100278250((float *)&v112, (float)(v118 * 0.5) + 185.0, (float)(v119 * 0.5) + -115.0);
(*(void (__fastcall **)(unsigned __int8 *, std::string *))(*(_QWORD *)v12 + 184LL))(v12, &v112);
v13 = cocos2d::CCLabelBMFont::create_3("Follow RobTop Games!", "bigFont.fnt");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.80000001);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v117 + 584) + 456LL))(*(_QWORD *)(v117 + 584), v13);
sub_100278250((float *)&v112, v118 * 0.5, (float)((float)(v119 * 0.5) + 140.0) + -22.0);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v13 + 184LL))(v13, &v112);
v14 = cocos2d::CCLabelBMFont::create_3("Earn rewards!", "bigFont.fnt");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v117 + 584) + 456LL))(*(_QWORD *)(v117 + 584), v14);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v14 + 160LL))(v14, 0.5);
v15 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 192LL))(v13);
sub_100278250((float *)&v111, 0.0, -26.0);
sub_100278350((double *)&v112, v15, (unsigned __int64 *)&v111);
v16 = (*(double (__fastcall **)(__int64, std::string *))(*(_QWORD *)v14 + 184LL))(v14, &v112);
v17 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_closeBtn_001.png", v16);
v18 = CCMenuItemSpriteExtra::create((__int64)v17, 0, v117, (__int64)FollowRewardPage::onClose, 0);
LODWORD(v15) = (_DWORD)v18;
CCMenuItemSpriteExtra::setSizeMult((__int64)v18, 1.6);
v23 = sub_1008735E0((_DWORD)v15, 0, v19, v20, v21, v22);
*(_QWORD *)(v117 + 552) = v23;
sub_100278250(
(float *)&v112,
(float)((float)(v118 * 0.5) + -210.0) + 10.0,
(float)((float)(v119 * 0.5) + 140.0) + -10.0);
v24 = (_QWORD *)v117;
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v23 + 184LL))(v23, &v112);
v25 = v24[73];
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v25 + 464LL))(v25, v24[69], 10);
v26 = sub_1007FE900(v25);
v24[86] = v26;
cocos2d::CCObject::retain(v26);
v27 = (__m128)0x3F000000u;
sub_100278250((float *)&v65, v118 * 0.5, (float)(v119 * 0.5) + -30.0);
while ( 1 )
{
*(_WORD *)&v112.__r_.__value_.__l.0 = 0;
*(_WORD *)&v111.__r_.__value_.__l.0 = 0;
sub_1002782D0(&v114, &qword_100BE3808);
switch ( v8 )
{
case 1u:
v28 = GameStatsManager::sharedState();
v66 = 8;
strcpy(v67, "0007");
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v28, (__int64)&v66);
if ( (v66 & 1) != 0 )
operator delete(__p);
v29 = GameStatsManager::sharedState();
v69 = 8;
strcpy(v70, "0007");
RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest(v29, (__int64)&v69);
if ( (v69 & 1) != 0 )
operator delete(v71);
std::string::assign(&v112, "gj_ytIcon_001.png");
std::string::assign(&v111, "YouTube");
v31 = GameManager::sharedState();
UGV = GameManager::getUGV(v31, "22");
v32 = 3266576384LL;
v33 = 1111490560;
sub_100278250((float *)&v115, -90.0, 48.0);
sub_100278300(&v114, &v115);
break;
case 2u:
v43 = GameStatsManager::sharedState();
v72 = 8;
strcpy(v73, "0008");
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v43, (__int64)&v72);
if ( (v72 & 1) != 0 )
operator delete(v74);
v44 = GameStatsManager::sharedState();
v75 = 8;
strcpy(v76, "0008");
RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest(v44, (__int64)&v75);
if ( (v75 & 1) != 0 )
operator delete(v77);
std::string::assign(&v112, "gj_twIcon_001.png");
std::string::assign(&v111, "Twitter");
v45 = GameManager::sharedState();
UGV = GameManager::getUGV(v45, "24");
v32 = 0;
v33 = 1111490560;
sub_100278250((float *)&v115, 0.0, 48.0);
sub_100278300(&v114, &v115);
break;
case 3u:
v37 = GameStatsManager::sharedState();
v78 = 8;
strcpy(v79, "0009");
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v37, (__int64)&v78);
if ( (v78 & 1) != 0 )
operator delete(v80);
v38 = GameStatsManager::sharedState();
v81 = 8;
strcpy(v82, "0009");
RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest(v38, (__int64)&v81);
if ( (v81 & 1) != 0 )
operator delete(v83);
std::string::assign(&v112, "gj_fbIcon_001.png");
std::string::assign(&v111, "Facebook");
v39 = GameManager::sharedState();
UGV = GameManager::getUGV(v39, "23");
v32 = 1119092736;
v33 = 1111490560;
sub_100278250((float *)&v115, 90.0, 48.0);
sub_100278300(&v114, &v115);
break;
case 4u:
v40 = GameStatsManager::sharedState();
v84 = 8;
strcpy(v85, "0010");
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v40, (__int64)&v84);
if ( (v84 & 1) != 0 )
operator delete(v86);
v41 = GameStatsManager::sharedState();
v87 = 8;
strcpy(v88, "0010");
RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest(v41, (__int64)&v87);
if ( (v87 & 1) != 0 )
operator delete(v89);
std::string::assign(&v112, "gj_twitchIcon_001.png");
std::string::assign(&v111, "Twitch");
v42 = GameManager::sharedState();
UGV = GameManager::getUGV(v42, "26");
v32 = 3272015872LL;
v33 = 3258974208LL;
sub_100278250((float *)&v115, -135.0, -48.0);
sub_100278300(&v114, &v115);
break;
case 5u:
v34 = GameStatsManager::sharedState();
v90 = 8;
strcpy(v91, "0011");
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v34, (__int64)&v90);
if ( (v90 & 1) != 0 )
operator delete(v92);
v35 = GameStatsManager::sharedState();
v93 = 8;
strcpy(v94, "0011");
RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest(v35, (__int64)&v93);
if ( (v93 & 1) != 0 )
operator delete(v95);
std::string::assign(&v112, "gj_discordIcon_001.png");
std::string::assign(&v111, "Discord");
v36 = GameManager::sharedState();
UGV = GameManager::getUGV(v36, "27");
v32 = 3258187776LL;
v33 = 3258974208LL;
sub_100278250((float *)&v115, -45.0, -48.0);
sub_100278300(&v114, &v115);
break;
case 6u:
v46 = GameStatsManager::sharedState();
v96 = 8;
strcpy(v97, "0024");
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v46, (__int64)&v96);
if ( (v96 & 1) != 0 )
operator delete(v98);
v47 = GameStatsManager::sharedState();
v99 = 8;
strcpy(v100, "0024");
RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest(v47, (__int64)&v99);
if ( (v99 & 1) != 0 )
operator delete(v101);
std::string::assign(&v112, "gj_rdIcon_001.png");
std::string::assign(&v111, "Reddit");
v48 = GameManager::sharedState();
UGV = GameManager::getUGV(v48, "32");
v32 = 1110704128;
v33 = 3258974208LL;
sub_100278250((float *)&v115, 45.0, -48.0);
sub_100278300(&v114, &v115);
break;
case 7u:
v49 = GameStatsManager::sharedState();
v102 = 8;
strcpy(v103, "0025");
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v49, (__int64)&v102);
if ( (v102 & 1) != 0 )
operator delete(v104);
v50 = GameStatsManager::sharedState();
v105 = 8;
strcpy(v106, "0025");
RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest(v50, (__int64)&v105);
if ( (v105 & 1) != 0 )
operator delete(v107);
std::string::assign(&v112, "gj_ytIcon_001.png");
std::string::assign(&v111, "Spotlight");
v51 = GameManager::sharedState();
UGV = GameManager::getUGV(v51, "39");
v32 = 1124532224;
v33 = 3258974208LL;
sub_100278250((float *)&v115, 135.0, -48.0);
sub_100278300(&v114, &v115);
break;
}
v52 = GJChestSprite::create(*(_DWORD *)(RewardForSpecialChest + 64));
GJChestSprite::switchToState(v52, 2, 0, *(double *)&v32, *(double *)&v33, v27);
sub_1007FEBF0(v24[86], v52);
(*(void (__fastcall **)(_QWORD *, float))(*v52 + 160LL))(v52, 0.5);
v53 = CCMenuItemSpriteExtra::create((__int64)v52, 0, (__int64)v24, (__int64)FollowRewardPage::onSpecialItem, 0);
__str.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)28;
strcpy(__str.__r_.__value_.__s.__data_, "chestClick.ogg");
std::string::operator=((std::string *)(v53 + 220), &__str);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__str.__r_.__value_.__l.__data_);
sub_100278260((float *)&v115, 50.0, 40.0);
(*(void (__fastcall **)(_WORD *, unsigned __int64 *))(*(_QWORD *)v53 + 320LL))(v53, &v115);
v110 = *(float *)(*(__int64 (__fastcall **)(_WORD *))(*(_QWORD *)v53 + 328LL))(v53);
v54 = (*(__int64 (__fastcall **)(_WORD *))(*(_QWORD *)v53 + 328LL))(v53);
v27 = (__m128)0x3F000000u;
sub_100278250((float *)&v115, v110 * 0.5, *(float *)(v54 + 4) * 0.5);
(*(void (__fastcall **)(_QWORD *, unsigned __int64 *))(*v52 + 184LL))(v52, &v115);
(*(void (__fastcall **)(_QWORD, _WORD *))(**(_QWORD **)(v117 + 552) + 456LL))(*(_QWORD *)(v117 + 552), v53);
v53[204] = 256;
(*(void (__fastcall **)(_WORD *, _QWORD))(*(_QWORD *)v53 + 72LL))(v53, v8);
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v52 + 72LL))(v52, v8);
sub_100278350((double *)&v115, &v65, &v114);
cocos2d::CCNode::convertToNodeSpace(&v113, *(_QWORD *)(v117 + 552), (unsigned int *)&v115);
(*(void (__fastcall **)(_WORD *, double *))(*(_QWORD *)v53 + 184LL))(v53, &v113);
data = v111.__r_.__value_.__s.__data_;
if ( (*(_BYTE *)&v111.__r_.__value_.__s.0 & 1) != 0 )
data = v111.__r_.__value_.__l.__data_;
v56 = cocos2d::CCLabelBMFont::create_3(data, "goldFont.fnt");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v56 + 160LL))(v56, 0.5);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v117 + 584) + 456LL))(*(_QWORD *)(v117 + 584), v56);
sub_100278250((float *)&v109, 0.0, 42.0);
sub_100278350(&v113, &v115, &v109);
(*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v56 + 184LL))(v56, &v113);
if ( isSpecialChestUnlocked )
{
v57 = (*(__int64 (__fastcall **)(_WORD *))(*(_QWORD *)v53 + 1072LL))(v53);
*(_BYTE *)(v57 + 604) = 0;
GJChestSprite::switchToState((_DWORD *)v57, 4, 1, 0.0, COERCE_DOUBLE(1109917696), (__m128)0x3F000000u);
v58 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v57 + 488LL))(v57);
if ( v58 )
{
v59 = *(unsigned int **)(v58 + 56);
if ( *v59 )
{
v60 = *((_QWORD **)v59 + 2);
v61 = (unsigned __int64)&v60[*v59 - 1];
do
{
v62 = *v60;
if ( !*v60 )
break;
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v62 + 912LL))(*v60, 150);
BYTE2(v113) = -106;
LOWORD(v113) = -26986;
(*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v62 + 960LL))(v62, &v113);
++v60;
}
while ( (unsigned __int64)v60 <= v61 );
}
}
(*(void (__fastcall **)(_WORD *, _QWORD))(*(_QWORD *)v53 + 1056LL))(v53, 0);
}
else if ( !UGV )
{
v63 = v112.__r_.__value_.__s.__data_;
if ( (*(_BYTE *)&v112.__r_.__value_.__s.0 & 1) != 0 )
v63 = v112.__r_.__value_.__l.__data_;
v64 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v63, 0.0);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v64 + 160LL))(v64, 1.2);
(*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v64 + 72LL))(v64, v8 + 10);
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v117 + 584) + 464LL))(
*(_QWORD *)(v117 + 584),
v64,
11);
sub_100278250((float *)&v109, 0.0, 2.0);
sub_100278350(&v113, &v115, &v109);
(*(void (__fastcall **)(char *, double *))(*(_QWORD *)v64 + 184LL))(v64, &v113);
*((_BYTE *)v52 + 604) = 1;
(*(void (__fastcall **)(_QWORD *, void *))(*v52 + 960LL))(v52, &unk_100A09E88);
}
if ( (*(_BYTE *)&v111.__r_.__value_.__s.0 & 1) != 0 )
{
operator delete(v111.__r_.__value_.__l.__data_);
v24 = (_QWORD *)v117;
if ( (*(_BYTE *)&v112.__r_.__value_.__s.0 & 1) != 0 )
LABEL_59:
operator delete(v112.__r_.__value_.__l.__data_);
}
else
{
v24 = (_QWORD *)v117;
if ( (*(_BYTE *)&v112.__r_.__value_.__s.0 & 1) != 0 )
goto LABEL_59;
}
if ( ++v8 == 8 )
{
*(_QWORD *)(GameManager::sharedState() + 944) = v24 + 84;
return v116;
}
}
}
return result;
}