//
// EditorPauseLayer::customSetup from 0x140181550 to 0x1401822c0 (3440 bytes)
//
// 2 xrefs:
// > ??> @ 0x14074abd0
// > ??> @ 0x140918bcc
//
// 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 11:27:37 +0000
//
// Hidden C++ exception states: #wind=3
__int64 __fastcall EditorPauseLayer::customSetup(_QWORD *a1, __int64 a2)
{
__int64 v3; // rcx
__int64 v4; // rax
__int64 v5; // rcx
cocos2d::CCMenu *v6; // rbx
int v7; // eax
cocos2d::CCObject *v8; // rax
cocos2d::CCObject *v9; // rdi
cocos2d::CCObject *v10; // r14
cocos2d::CCObject *v11; // r15
cocos2d::CCObject *v12; // r12
cocos2d::CCObject *v13; // r13
int v14; // eax
cocos2d::CCObject *v15; // rax
__int64 v16; // rcx
__int64 v17; // rdi
__int64 v18; // rbx
__int64 v19; // rcx
cocos2d::CCDirector *v20; // rax
float v21; // xmm0_4
__int64 v22; // rax
__int64 v23; // rcx
cocos2d::CCDirector *v24; // rax
float v25; // xmm9_4
__int64 v26; // rcx
cocos2d::CCDirector *v27; // rax
float v28; // xmm10_4
__int64 v29; // rcx
cocos2d::CCDirector *v30; // rax
__int64 v31; // rcx
char v32; // al
int v33; // r15d
const char **v34; // r14
__int64 v35; // rax
_QWORD *v36; // r13
__int64 v37; // rbx
__int64 v38; // rax
const struct cocos2d::CCSize *v39; // rax
cocos2d::CCLabelBMFont *v40; // r12
float *v41; // rbx
float v42; // xmm6_4
double v43; // xmm0_8
float v44; // xmm7_4
float v45; // xmm6_4
float v46; // xmm7_4
__int64 v47; // rbx
float v48; // xmm6_4
__int64 v49; // rax
cocos2d::CCObject *v50; // r12
__int64 v51; // rbx
__int64 v52; // rax
cocos2d::CCObject *v53; // r12
__int64 v54; // rbx
__int64 v55; // rax
__int64 v56; // rax
float v57; // xmm9_4
cocos2d::CCDirector *v58; // rax
float v59; // xmm7_4
__int64 v60; // rcx
int v61; // r15d
__int64 (__fastcall **v62)(); // r14
__int64 v63; // r12
float v64; // xmm6_4
struct cocos2d::CCLabelBMFont *v65; // rdi
__int64 v66; // rbx
__int64 v67; // rax
__int64 v68; // rbx
__int64 v69; // rax
__int64 v70; // r8
cocos2d::CCLayer *v71; // rdi
__int64 v72; // rdx
__int64 v73; // rbx
__int64 v74; // rax
__int64 v75; // rax
__int64 *v76; // rdi
__int64 v77; // rbx
float v78; // xmm6_4
__int64 v79; // rcx
cocos2d::CCDirector *v80; // rax
float v81; // xmm0_4
__int64 v82; // rax
_WORD v84[2]; // [rsp+48h] [rbp-C0h] BYREF
char v85; // [rsp+4Ch] [rbp-BCh]
__int16 v86; // [rsp+4Eh] [rbp-BAh]
float v87; // [rsp+58h] [rbp-B0h] BYREF
float v88; // [rsp+5Ch] [rbp-ACh]
cocos2d::CCObject *v89; // [rsp+60h] [rbp-A8h]
void *v90; // [rsp+68h] [rbp-A0h] BYREF
int v91; // [rsp+70h] [rbp-98h]
float v92[2]; // [rsp+78h] [rbp-90h] BYREF
float v93[4]; // [rsp+80h] [rbp-88h] BYREF
cocos2d::CCLabelBMFont *v94; // [rsp+90h] [rbp-78h] BYREF
char v95[8]; // [rsp+98h] [rbp-70h] BYREF
char v96[8]; // [rsp+A0h] [rbp-68h] BYREF
const char *v97; // [rsp+A8h] [rbp-60h]
__int64 (__fastcall *v98)(); // [rsp+B0h] [rbp-58h] BYREF
int v99; // [rsp+B8h] [rbp-50h]
_QWORD *v100; // [rsp+C0h] [rbp-48h]
const char *v101; // [rsp+C8h] [rbp-40h]
__int64 (__fastcall *v102)(); // [rsp+D0h] [rbp-38h]
int v103; // [rsp+D8h] [rbp-30h]
_QWORD *v104; // [rsp+E0h] [rbp-28h]
const char *v105; // [rsp+E8h] [rbp-20h]
__int64 (__fastcall *v106)(); // [rsp+F0h] [rbp-18h]
int v107; // [rsp+F8h] [rbp-10h]
_QWORD *v108; // [rsp+100h] [rbp-8h]
char v109[8]; // [rsp+108h] [rbp+0h] BYREF
char v110[8]; // [rsp+110h] [rbp+8h] BYREF
char v111[8]; // [rsp+118h] [rbp+10h] BYREF
char v112[24]; // [rsp+120h] [rbp+18h] BYREF
const char *v113; // [rsp+138h] [rbp+30h]
const char *v114; // [rsp+140h] [rbp+38h] BYREF
char v115[8]; // [rsp+148h] [rbp+40h] BYREF
int v116; // [rsp+150h] [rbp+48h]
__int64 (__fastcall *v117)(); // [rsp+158h] [rbp+50h]
const char *v118; // [rsp+160h] [rbp+58h]
const char *v119; // [rsp+168h] [rbp+60h]
char v120[8]; // [rsp+170h] [rbp+68h] BYREF
int v121; // [rsp+178h] [rbp+70h]
__int64 (__fastcall *v122)(); // [rsp+180h] [rbp+78h]
const char *v123; // [rsp+188h] [rbp+80h]
const char *v124; // [rsp+190h] [rbp+88h]
char v125[8]; // [rsp+198h] [rbp+90h] BYREF
int v126; // [rsp+1A0h] [rbp+98h]
__int64 (__fastcall *v127)(); // [rsp+1A8h] [rbp+A0h]
const char *v128; // [rsp+1B0h] [rbp+A8h]
const char *v129; // [rsp+1B8h] [rbp+B0h]
char v130[8]; // [rsp+1C0h] [rbp+B8h] BYREF
int v131; // [rsp+1C8h] [rbp+C0h]
__int64 (__fastcall *v132)(); // [rsp+1D0h] [rbp+C8h]
__int64 *v133; // [rsp+1D8h] [rbp+D0h]
const char *v134; // [rsp+1E0h] [rbp+D8h]
char v135[8]; // [rsp+1E8h] [rbp+E0h] BYREF
int v136; // [rsp+1F0h] [rbp+E8h]
__int64 (__fastcall *v137)(); // [rsp+1F8h] [rbp+F0h]
const char *v138; // [rsp+200h] [rbp+F8h]
const char *v139; // [rsp+208h] [rbp+100h]
char v140[8]; // [rsp+210h] [rbp+108h] BYREF
int v141; // [rsp+218h] [rbp+110h]
__int64 (__fastcall *v142)(); // [rsp+220h] [rbp+118h]
const char *v143; // [rsp+228h] [rbp+120h]
const char *v144; // [rsp+230h] [rbp+128h]
char v145[8]; // [rsp+238h] [rbp+130h] BYREF
int v146; // [rsp+240h] [rbp+138h]
__int64 (__fastcall *v147)(); // [rsp+248h] [rbp+140h]
const char *v148; // [rsp+250h] [rbp+148h]
const char *v149; // [rsp+258h] [rbp+150h]
char v150[8]; // [rsp+260h] [rbp+158h] BYREF
int v151; // [rsp+268h] [rbp+160h]
__int64 (__fastcall *v152)(); // [rsp+270h] [rbp+168h]
LOBYTE(a2) = -81;
(*(void (__fastcall **)(_QWORD *, __int64))(a1[51] + 40LL))(a1 + 51, a2);
v4 = cocos2d::CCDirector::sharedDirector(v3);
cocos2d::CCDirector::getWinSize(v4, v92);
v6 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v5);
(*(void (__fastcall **)(_QWORD *, cocos2d::CCMenu *))(*a1 + 464LL))(a1, v6);
v7 = (unsigned int)ButtonSprite::create_1(
(int)"Resume",
180,
0,
0.80000001,
1,
(__int64)"goldFont.fnt",
(__int64)"GJ_button_01.png",
1105199104);
v8 = CCMenuItemSpriteExtra::create(v7, 0, (int)a1, (__int64)EditorPauseLayer::onResume);
(*(void (__fastcall **)(cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v6 + 464LL))(v6, v8);
v9 = ButtonSprite::create_1(
(int)"Save and Play",
180,
0,
0.80000001,
1,
(__int64)"goldFont.fnt",
(__int64)"GJ_button_01.png",
1105199104);
v10 = CCMenuItemSpriteExtra::create((int)v9, 0, (int)a1, (__int64)EditorPauseLayer::onSaveAndPlay);
(*(void (__fastcall **)(cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v6 + 464LL))(v6, v10);
v11 = ButtonSprite::create_1(
(int)"Save and Exit",
180,
0,
0.80000001,
1,
(__int64)"goldFont.fnt",
(__int64)"GJ_button_01.png",
1105199104);
v12 = CCMenuItemSpriteExtra::create((int)v11, 0, (int)a1, (__int64)EditorPauseLayer::onSaveAndExit);
(*(void (__fastcall **)(cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v6 + 464LL))(v6, v12);
v13 = ButtonSprite::create_1(
(int)"Save",
180,
0,
0.80000001,
1,
(__int64)"goldFont.fnt",
(__int64)"GJ_button_01.png",
1105199104);
v89 = CCMenuItemSpriteExtra::create((int)v13, 0, (int)a1, (__int64)EditorPauseLayer::onSave);
(*(void (__fastcall **)(cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v6 + 464LL))(v6, v89);
v14 = (unsigned int)ButtonSprite::create_1(
(int)"Exit",
180,
0,
0.80000001,
1,
(__int64)"goldFont.fnt",
(__int64)"GJ_button_01.png",
1105199104);
v15 = CCMenuItemSpriteExtra::create(v14, 0, (int)a1, (__int64)EditorPauseLayer::onExitNoSave);
(*(void (__fastcall **)(cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v6 + 464LL))(v6, v15);
cocos2d::CCMenu::alignItemsVerticallyWithPadding(v6, 14.0);
v16 = *(_QWORD *)(a1[72] + 2168LL);
v91 = *(_DWORD *)(v16 + 1220);
if ( v91 != 2 )
{
memset(v84, 75, 3);
(**(void (__fastcall ***)(__int64, _WORD *))(*((_QWORD *)v9 + 82) + 320LL))(*((_QWORD *)v9 + 82) + 320LL, v84);
(**(void (__fastcall ***)(__int64, _WORD *))(*((_QWORD *)v9 + 79) + 368LL))(*((_QWORD *)v9 + 79) + 368LL, v84);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v10 + 936LL))(v10, 0);
(**(void (__fastcall ***)(__int64, _WORD *))(*((_QWORD *)v11 + 82) + 320LL))(*((_QWORD *)v11 + 82) + 320LL, v84);
(**(void (__fastcall ***)(__int64, _WORD *))(*((_QWORD *)v11 + 79) + 368LL))(*((_QWORD *)v11 + 79) + 368LL, v84);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v12 + 936LL))(v12, 0);
(**(void (__fastcall ***)(__int64, _WORD *))(*((_QWORD *)v13 + 82) + 320LL))(*((_QWORD *)v13 + 82) + 320LL, v84);
(**(void (__fastcall ***)(__int64, _WORD *))(*((_QWORD *)v13 + 79) + 368LL))(*((_QWORD *)v13 + 79) + 368LL, v84);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v89 + 936LL))(v89, 0);
}
v17 = cocos2d::CCMenu::create(v16);
(*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 464LL))(a1, v17);
v18 = *(_QWORD *)v17;
v20 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v19);
v21 = cocos2d::CCDirector::getScreenBottom(v20) + 28.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v94, v92[0] * 0.5, v21);
(*(void (__fastcall **)(__int64, __int64))(v18 + 184))(v17, v22);
v24 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v23);
v25 = (float)(cocos2d::CCDirector::getScreenRight(v24) - 50.0) - 0.0;
v27 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v26);
v28 = cocos2d::CCDirector::getScreenTop(v27) - 20.0;
v30 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v29);
cocos2d::CCDirector::getScreenLeft(v30);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v109, 8.0, 0.0);
v113 = "Settings";
v114 = "GJ_sSettingsIcon_001.png";
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v115, -0.75, 1.0);
v116 = 1065353216;
v117 = EditorPauseLayer::onOptions;
v118 = "Export";
v119 = "GJ_sExportIcon_001.png";
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, -1.0, 1.0);
v121 = 1065353216;
v122 = EditorPauseLayer::onExport;
v123 = "Editor SFX";
v124 = "GJ_sSFXIcon_001.png";
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v125, -0.5, 0.5);
v126 = 1064514355;
v127 = EditorPauseLayer::onEditorSounds;
v128 = "Auto-Save";
v129 = "GJ_sSaveIcon_001.png";
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v130, -1.0, 0.5);
v131 = 1064514355;
v132 = EditorPauseLayer::onAutoSaveSettings;
v133 = &qword_140730EC8;
v134 = "GJ_sMarkerIcon_001.png";
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v135, -0.5, 0.5);
v136 = 1064514355;
v137 = EditorPauseLayer::onDeathStats;
v138 = "Get Audio";
v139 = "GJ_sAudioDLIcon_001.png";
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, -0.5, 0.5);
v141 = 1064514355;
v142 = EditorPauseLayer::onDownloadAudio;
v143 = "Help";
v144 = "GJ_sHelpIcon_001.png";
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v145, -0.5, 0.5);
v146 = 1065353216;
v147 = EditorPauseLayer::onHelp;
v148 = "Controls";
v149 = "controllerBtn_DPad_None_001.png";
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v150, -0.5, 0.5);
v151 = 1057803469;
v152 = EditorPauseLayer::onControls;
v31 = *(_QWORD *)(a1[72] + 3528LL);
v32 = *(_BYTE *)(v31 + 341);
v85 = v32;
v33 = 0;
v34 = &v114;
do
{
if ( v32 || v34[3] != (char *)EditorPauseLayer::onControls )
{
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v112, 0.0, 0.0, 40.0, 40.0);
v36 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("GJ_button_05.png", v35);
v37 = *v36;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v110, 82.0, 26.0);
(*(void (__fastcall **)(_QWORD *, __int64))(v37 + 312))(v36, v38);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v93, -1.0, 1.0);
v39 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD *))(*v36 + 320LL))(v36);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v87, v39);
v40 = cocos2d::CCLabelBMFont::create(*(v34 - 1), (const char *)&qword_140704F78);
v94 = v40;
(*(void (__fastcall **)(_QWORD *, cocos2d::CCLabelBMFont *, __int64))(*v36 + 456LL))(v36, v40, 1);
cocos2d::CCLabelBMFont::limitLabelWidth(v40, 50.0, 0.44999999, 0.0);
v41 = (float *)cocos2d::CCSprite::createWithSpriteFrameName(*v34);
v89 = (cocos2d::CCObject *)v41;
(*(void (__fastcall **)(_QWORD *, float *, __int64))(*v36 + 456LL))(v36, v41, 1);
(*(void (__fastcall **)(float *))(*(_QWORD *)v41 + 160LL))(v41);
v42 = v41[108];
v43 = (*(double (__fastcall **)(float *))(*(_QWORD *)v41 + 168LL))(v41);
v44 = *(float *)&v43 * v42;
v45 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v40 + 320LL))(v40);
*(float *)&v43 = (float)((*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v40 + 168LL))(v40) * v45)
+ 5.0;
v46 = v44 * 0.5;
v47 = *(_QWORD *)v40;
v48 = (float)((float)(v46 + *(float *)&v43) + 8.0) * 0.5;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v111,
(float)((float)((float)(v87 * 0.5) - v48) + (float)(*(float *)&v43 * 0.5)) + v93[0],
(float)(v88 * 0.5) + v93[1]);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v47 + 184))(v40, v49);
v50 = v89;
v51 = *(_QWORD *)v89;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v95,
(float)((float)((float)(v87 * 0.5) + v48) - v46) + *((float *)v34 + 2),
(float)(v88 * 0.5) + *((float *)v34 + 3));
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v51 + 184))(v50, v52);
v53 = CCMenuItemSpriteExtra::create((int)v36, 0, (int)a1, (__int64)v34[3]);
(*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v17 + 464LL))(v17, v53);
v54 = *(_QWORD *)v53;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v96, v25, v28 - (float)((float)v33 * 32.0));
cocos2d::CCNode::convertToNodeSpace(v17, &v90, v55);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v54 + 184))(v53, v56);
if ( v91 != 2 && v34[3] == (char *)EditorPauseLayer::onExport )
{
v86 = 19275;
memset(v84, 75, 3);
(*(void (__fastcall **)(_QWORD *, _WORD *))v36[40])(v36 + 40, v84);
(**((void (__fastcall ***)(__int64, _WORD *))v94 + 46))((__int64)v94 + 368, v84);
(**((void (__fastcall ***)(__int64, _WORD *))v89 + 40))((__int64)v89 + 320, v84);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v53 + 936LL))(v53, 0);
}
v32 = v85;
}
++v33;
v34 += 5;
}
while ( v33 < 8 );
v57 = v92[0] * 0.5;
v58 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v31);
v59 = cocos2d::CCDirector::getScreenBottom(v58) + 22.0;
v97 = "Music";
v98 = EditorPauseLayer::musicSliderChanged;
v60 = qword_14090BF60;
if ( !qword_14090BF60 )
{
v90 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v90);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v60 = qword_14090BF60;
}
v99 = *(_DWORD *)(v60 + 512);
v100 = a1 + 77;
v101 = "SFX";
v102 = EditorPauseLayer::sfxSliderChanged;
v103 = *(_DWORD *)(v60 + 516);
v104 = a1 + 78;
v105 = "Editor SFX";
v106 = EditorPauseLayer::editorSFXSliderChanged;
v107 = *(_DWORD *)(EditorSFXManager::sharedState() + 264);
v108 = a1 + 79;
v61 = -1;
v62 = &v98;
v63 = 3;
do
{
v64 = (float)((float)v61 * 160.0) + v57;
v65 = cocos2d::CCLabelBMFont::create((const char *)*(v62 - 1), (const char *)&qword_140704F78);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v65 + 160LL))(v65);
v66 = *(_QWORD *)v65;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v90, 0.5, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v66 + 288))(v65, v67);
v68 = *(_QWORD *)v65;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v96, v64, v59 + 20.0);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v68 + 184))(v65, v69);
(*(void (__fastcall **)(_QWORD *, struct cocos2d::CCLabelBMFont *, __int64))(*a1 + 456LL))(a1, v65, 1);
v71 = Slider::create(
(__int64)a1,
(__int64)*v62,
v70,
"slidergroove.png",
(__int64)"sliderthumb.png",
(__int64)"sliderthumbsel.png",
0.55000001);
LOBYTE(v72) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)v71 + 52) + 336LL))(*((_QWORD *)v71 + 52), v72);
v73 = *(_QWORD *)v71;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v95, v64, v59);
(*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(v73 + 184))(v71, v74);
Slider::setValue((__int64)v71, *((float *)v62 + 2));
(*(void (__fastcall **)(_QWORD *, cocos2d::CCLayer *, __int64))(*a1 + 456LL))(a1, v71, 1);
*(_QWORD *)v62[2] = v71;
++v61;
v62 += 4;
--v63;
}
while ( v63 );
v75 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v90 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v90);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v75 = qword_14090BFD0;
}
*(_QWORD *)(v75 + 984) = a1 + 70;
v76 = (__int64 *)TimeSpeedControl::create(a1[72]);
(*(void (__fastcall **)(_QWORD *, __int64 *, __int64))(*a1 + 456LL))(a1, v76, 1);
v77 = *v76;
v78 = (float)(v92[1] * 0.5) + 14.0;
v80 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v79);
v81 = (float)(cocos2d::CCDirector::getScreenLeft(v80) + 40.0) + 0.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v90, v81, v78);
return (*(__int64 (__fastcall **)(__int64 *, __int64))(v77 + 184))(v76, v82);
}