// // CreateGuidelinesLayer::init from 0x140099810 to 0x14009aa05 (4597 bytes) // // 4 xrefs: // > FindBPMLayer::create @ 0x14009b97a // > CustomSongLayer::onCreateLines @ 0x1400c41d2 // > @ 0x1406c7404 // > @ 0x1406c7410 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=5 bool CreateGuidelinesLayer::init(CreateGuidelinesLayer *a1, CustomSongDelegate *a2, AudioGuidelinesType a3) { bool result; // al __int64 v7; // rcx cocos2d::CCDirector *v8; // rax __int64 v9; // rcx cocos2d::CCArray *v10; // rax __int64 v11; // rcx cocos2d::CCArray *v12; // rax __int64 v13; // rcx cocos2d::CCMenu *v14; // rax struct cocos2d::CCRect *v15; // rax struct cocos2d::extension::CCScale9Sprite *v16; // rdi cocos2d::extension::CCScale9Sprite_vtbl *v17; // rbx const cocos2d::CCSize *v18; // rax cocos2d::extension::CCScale9Sprite_vtbl *v19; // rbx const cocos2d::CCPoint *v20; // rax char *v21; // r15 __int64 v22; // r12 char *v23; // r14 char *v24; // rax void **v25; // rcx struct cocos2d::CCLabelBMFont *v26; // rdi cocos2d::CCLabelBMFont_vtbl *v27; // rbx const cocos2d::CCPoint *v28; // rax struct cocos2d::CCLabelBMFont *v29; // rdi cocos2d::CCLabelBMFont_vtbl *v30; // rbx const cocos2d::CCPoint *v31; // rax struct cocos2d::CCTintTo *v32; // rbx struct cocos2d::CCTintTo *v33; // rax struct cocos2d::CCSequence *v34; // rax struct cocos2d::CCRepeatForever *v35; // rax cocos2d::ccColor3B *v36; // r8 __int64 v37; // r13 unsigned __int64 v38; // rbx const struct cocos2d::CCPoint *v39; // rax char *v40; // rdi __int64 v41; // rbx __int64 v42; // rax struct cocos2d::CCLabelBMFont *v43; // r12 __int64 v44; // rax __int64 v45; // rdx __int64 v46; // rcx __int64 v47; // r8 __int64 v48; // r9 unsigned __int64 v49; // rbx const struct cocos2d::CCPoint *v50; // rax char *v51; // rdi __int64 v52; // rbx __int64 v53; // rax __int64 v54; // rax AudioGuidelinesType v55; // r12d ButtonSprite *v56; // rax CCMenuItemSpriteExtra *v57; // rdi CCMenuItemSpriteExtra_vtbl *v58; // rbx struct cocos2d::CCPoint v59; // rax struct cocos2d::CCLabelBMFont *v60; // rbx struct cocos2d::CCRect *v61; // rax struct cocos2d::extension::CCScale9Sprite *v62; // rbx __int64 v63; // rdx const char *v64; // r9 CCTextInputNode *v65; // rax CCTextInputNode *m_offsetInput; // rcx CCTextInputNode *v67; // rcx std::string *p_m_allowedChars; // rcx CCTextInputNode *v69; // rcx CCTextInputNode *v70; // rcx ButtonSprite *v71; // rax CCMenuItemSpriteExtra *v72; // rdi CCMenuItemSpriteExtra_vtbl *v73; // rbx struct cocos2d::CCPoint v74; // rax ButtonSprite *v75; // rax CCMenuItemSpriteExtra *v76; // rdi CCMenuItemSpriteExtra_vtbl *v77; // rbx struct cocos2d::CCPoint v78; // rax cocos2d::CCLabelBMFont *v79; // rax cocos2d::CCLabelBMFont_vtbl *v80; // rbx const cocos2d::CCPoint *v81; // rax cocos2d::CCSprite *v82; // rax cocos2d::CCSprite_vtbl *v83; // rbx const cocos2d::CCPoint *v84; // rax struct cocos2d::CCSprite *v85; // rax cocos2d::CCNode *v86; // rdi cocos2d::CCNode_vtbl *v87; // rbx struct cocos2d::CCPoint v88; // rax struct cocos2d::CCSprite *v89; // rax cocos2d::CCNode *v90; // rdi cocos2d::CCNode_vtbl *v91; // rbx struct cocos2d::CCPoint v92; // rax char *v93; // rax char *v94; // rax void *v95; // rcx float v96; // [rsp+28h] [rbp-E0h] int v97; // [rsp+28h] [rbp-E0h] float v98; // [rsp+48h] [rbp-C0h] float v99; // [rsp+4Ch] [rbp-BCh] struct cocos2d::CCPoint *v100; // [rsp+50h] [rbp-B8h] BYREF __int16 v101; // [rsp+58h] [rbp-B0h] BYREF char v102; // [rsp+5Ah] [rbp-AEh] cocos2d::CCRect v103; // [rsp+60h] [rbp-A8h] BYREF struct cocos2d::CCPoint v104[3]; // [rsp+70h] [rbp-98h] BYREF unsigned __int64 v105; // [rsp+88h] [rbp-80h] __int64 v106; // [rsp+90h] [rbp-78h] AudioGuidelinesType v107; // [rsp+98h] [rbp-70h] cocos2d::CCPoint v108; // [rsp+A0h] [rbp-68h] BYREF __int64 v109; // [rsp+A8h] [rbp-60h] unsigned __int64 v110; // [rsp+B0h] [rbp-58h] char Src[12]; // [rsp+B8h] [rbp-50h] BYREF int v112; // [rsp+C4h] [rbp-44h] __int64 v113; // [rsp+C8h] [rbp-40h] __int64 v114; // [rsp+D0h] [rbp-38h] struct cocos2d::CCLabelBMFont *v115; // [rsp+D8h] [rbp-30h] cocos2d::CCSize v116; // [rsp+E0h] [rbp-28h] BYREF cocos2d::CCRect v117; // [rsp+E8h] [rbp-20h] BYREF void *Block[2]; // [rsp+F8h] [rbp-10h] BYREF __int64 v119; // [rsp+108h] [rbp+0h] unsigned __int64 v120; // [rsp+110h] [rbp+8h] __int128 v121; // [rsp+118h] [rbp+10h] __int64 v122; // [rsp+128h] [rbp+20h] __int64 v123; // [rsp+130h] [rbp+28h] __int128 v124; // [rsp+138h] [rbp+30h] unsigned __int64 v125; // [rsp+148h] [rbp+40h] __int64 v126; // [rsp+150h] [rbp+48h] v107 = a3; result = FLAlertLayer::init_1(a1, 75); if ( result ) { a1->m_delegate = a2; v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8); v10 = (cocos2d::CCArray *)cocos2d::CCArray::create(v9); a1->m_nonRecordingObjects = v10; cocos2d::CCObject::retain(v10); v12 = (cocos2d::CCArray *)cocos2d::CCArray::create(v11); a1->m_recordingObjects = v12; cocos2d::CCObject::retain(v12); v14 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v13); a1->m_buttonMenu = v14; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v14, 10); cocos2d::CCRect::CCRect(&v103, 0.0, 0.0, 80.0, 80.0); v16 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v15); v17 = v16->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v100, 440.0, 290.0); v17->setContentSize(v16, v18); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v16, -1); v19 = v16->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v100, v98 * 0.5, v99 * 0.5); v19->setPosition_0(v16, v20); *(_OWORD *)Block = 0; v119 = 0; v120 = 15; LOBYTE(Block[0]) = 0; v121 = 0; v122 = 0; v123 = 15; LOBYTE(v121) = 0; v124 = 0; v125 = 0; v126 = 15; LOBYTE(v124) = 0; if ( a3 == BPMFinder ) { v119 = 10; strcpy((char *)Block, "BPM Finder"); v21 = (char *)sub_14003AA10(0x50u); v22 = 77; v122 = 77; v109 = 79; v110 = 79; v123 = 79; strcpy(v21, "- Find the BPM of a song.\n- Tap to the beat.\n- Recording starts on first tap."); *(_QWORD *)&v121 = v21; v23 = (char *)sub_14003AA10(0x50u); v125 = 68; v126 = 79; strcpy(v23, "- Tap on the screen to the beat.\n- Tap on the stop button to finish."); } else { v24 = (char *)sub_14003AA10(0x20u); v119 = 17; v120 = 31; strcpy(v24, "Guideline Creator"); Block[0] = v24; v21 = (char *)sub_14003AA10(0xC0u); v22 = 182; v122 = 182; v110 = 191; v123 = 191; strcpy( v21, "- Create guidelines for custom songs.\n" "- Each tap will be shown as a line in the editor.\n" "- Multiple recordings will be merged into one.\n" "- Use the clear button to reset the guidelines."); *(_QWORD *)&v121 = v21; v23 = (char *)sub_14003AA10(0x50u); v125 = 74; v109 = 79; v126 = 79; strcpy(v23, "- Tap on the screen to create markers.\n- Tap on the stop button to finish."); } *(_QWORD *)&v124 = v23; v25 = Block; if ( v120 > 0xF ) v25 = (void **)Block[0]; v26 = cocos2d::CCLabelBMFont::create((const char *)v25, (const char *)&qword_14052A4D8); v115 = v26; v27 = v26->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v100, v98 * 0.5, (float)((float)(v99 * 0.5) + 145.0) - 20.0); v27->setPosition_0(v26, v28); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v26); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v26->setScale_0)(v26); cocos2d::CCArray::addObject(a1->m_nonRecordingObjects, v26); v29 = cocos2d::CCLabelBMFont::create(byte_140541C20, (const char *)&qword_14052A4D8); v30 = v29->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v100, v98 * 0.5, (float)((float)(v99 * 0.5) + 145.0) - 20.0); v30->setPosition_0(v29, v31); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v29); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v29->setScale_0)(v29); cocos2d::CCArray::addObject(a1->m_recordingObjects, v29); v101 = -26881; v102 = 0; v29->setColor(&v29->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v101); v32 = cocos2d::CCTintTo::create(1.0, 0xFFu, 0x64u, 0); v33 = cocos2d::CCTintTo::create(1.0, 0xFFu, 0x96u, 0); v34 = cocos2d::CCSequence::create(v32, v33, 0); v35 = cocos2d::CCRepeatForever::create(v34); cocos2d::CCNode::runAction((CCLightFlash *)v29, (cocos2d::CCPoint)v35, v36, 80.0, v96); v100 = &v104[1]; *(_OWORD *)&v104[1].x = 0; v105 = 0; v37 = 0x7FFFFFFFFFFFFFFFLL; v106 = 15; v38 = v22 | 0xF; if ( (v22 | 0xFuLL) <= 0x7FFFFFFFFFFFFFFFLL ) { if ( v38 < 0x16 ) v38 = 22; } else { v38 = 0x7FFFFFFFFFFFFFFFLL; } v104[1] = (struct cocos2d::CCPoint)sub_14003AA10(v38 + 1); v105 = v22; v106 = v38; memcpy(*(void **)&v104[1], v21, v22 + 1); cocos2d::CCPoint::CCPoint(v104, 0.0, 1.0); v40 = TextArea::create((__int64)&v104[1], "goldFont.fnt", 1.0, 9999.0, v39, 1105199104, 0); (*(void (__fastcall **)(char *))(*(_QWORD *)v40 + 160LL))(v40); v41 = *(_QWORD *)v40; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v100, 0.0, 1.0); (*(void (__fastcall **)(char *, __int64))(v41 + 272))(v40, v42); a1->m_mainLayer->addChild_1(a1->m_mainLayer, (cocos2d::CCNode *)v40); cocos2d::CCPoint::CCPoint(&v103.origin, -155.0, -20.0); v43 = v115; v44 = (__int64)v115->getPosition_0(v115); cocos2d::CCPoint::operator+(v44, &v100); (*(void (__fastcall **)(char *, struct cocos2d::CCPoint **))(*(_QWORD *)v40 + 184LL))(v40, &v100); cocos2d::CCArray::addObject(a1->m_nonRecordingObjects, (struct cocos2d::CCObject *)v40); v103.origin = (cocos2d::CCPoint)&v104[1]; *(_OWORD *)&v104[1].x = 0; v105 = 0; v106 = 0; v49 = v125; if ( v125 > 0x7FFFFFFFFFFFFFFFLL ) sub_140007B50(v46, v45, v47, v48); v106 = 15; if ( v125 > 0xF ) { if ( (v125 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { v37 = v125 | 0xF; if ( (v125 | 0xF) < 0x16 ) v37 = 22; } v104[1] = (struct cocos2d::CCPoint)sub_14003AA10(v37 + 1); v105 = v49; v106 = v37; memcpy(*(void **)&v104[1], v23, v49 + 1); } else { v105 = v125; *(_OWORD *)&v104[1].x = *(_OWORD *)v23; } cocos2d::CCPoint::CCPoint(v104, 0.0, 1.0); v51 = TextArea::create((__int64)&v104[1], "goldFont.fnt", 1.0, 9999.0, v50, 1105199104, 0); (*(void (__fastcall **)(char *))(*(_QWORD *)v51 + 160LL))(v51); v52 = *(_QWORD *)v51; cocos2d::CCPoint::CCPoint(&v103.origin, 0.0, 1.0); (*(void (__fastcall **)(char *, __int64))(v52 + 272))(v51, v53); a1->m_mainLayer->addChild_1(a1->m_mainLayer, (cocos2d::CCNode *)v51); cocos2d::CCPoint::CCPoint(&v103.origin, -155.0, -20.0); v54 = (__int64)v43->getPosition_0(v43); cocos2d::CCPoint::operator+(v54, &v100); (*(void (__fastcall **)(char *, struct cocos2d::CCPoint **))(*(_QWORD *)v51 + 184LL))(v51, &v100); cocos2d::CCArray::addObject(a1->m_recordingObjects, (struct cocos2d::CCObject *)v51); v55 = v107; if ( v107 != BPMFinder ) { v56 = ButtonSprite::create_1("Clear", 100, 0, 0.60000002, 0, "goldFont.fnt", "GJ_button_01.png", 0.0); v57 = CCMenuItemSpriteExtra::create( v56, nullptr, a1, (cocos2d::SEL_MenuHandler *)CreateGuidelinesLayer::onClearGuidelines); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v57); cocos2d::CCArray::addObject(a1->m_nonRecordingObjects, v57); v58 = v57->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v103.origin, (float)(v98 * 0.5) - 75.0, v99 * 0.5); v59 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, v104); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v58->setPosition_0)(v57, v59); } cocos2d::CCPoint::CCPoint(&v108, (float)(v98 * 0.5) + 75.0, v99 * 0.5); v60 = cocos2d::CCLabelBMFont::create("Start Offset", (const char *)&qword_14052A4D8); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v60->setScale_0)(v60); cocos2d::CCPoint::CCPoint(&v103.origin, 0.0, 25.0); cocos2d::CCPoint::operator+(&v108, &v100); v60->setPosition_0(v60, (const cocos2d::CCPoint *)&v100); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v60); cocos2d::CCArray::addObject(a1->m_nonRecordingObjects, v60); cocos2d::CCRect::CCRect(&v117, 0.0, 0.0, 40.0, 40.0); v61 = (struct cocos2d::CCRect *)cocos2d::CCRect::CCRect(&v103, &v117); v62 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v61); LOBYTE(v63) = 100; v62->setOpacity(&v62->cocos2d::CCRGBAProtocol, v63); cocos2d::CCSize::CCSize(&v116, 100.0, 30.0); v62->setContentSize(v62, &v116); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v62, -1); v62->setPosition_0(v62, &v108); cocos2d::CCArray::addObject(a1->m_nonRecordingObjects, v62); v65 = CCTextInputNode::create(100.0, 50.0, "Seconds", v64, v97, (const char *)&qword_14052A4D8); a1->m_offsetInput = v65; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v65, 20); a1->m_offsetInput->setPosition_0(a1->m_offsetInput, &v108); m_offsetInput = a1->m_offsetInput; m_offsetInput->m_maxLabelScale = 0.69999999; CCTextInputNode::refreshLabel(m_offsetInput); v67 = a1->m_offsetInput; v67->m_maxLabelWidth = 200.0; CCTextInputNode::refreshLabel(v67); a1->m_offsetInput->m_textField->setVisible(a1->m_offsetInput->m_textField, 0); a1->m_offsetInput->m_maxLabelLength = 3; v112 = 0; v113 = 11; v114 = 15; strcpy(Src, "0123456789."); v103.origin = (cocos2d::CCPoint)Src; p_m_allowedChars = &a1->m_offsetInput->m_allowedChars; if ( p_m_allowedChars != (std::string *)Src ) sub_14003CCE0((void **)p_m_allowedChars, Src, 0xBu); sub_14003A830((__int64)Src); v69 = a1->m_offsetInput; *(_WORD *)&v69->m_placeholderColor.r = -21896; v69->m_placeholderColor.b = -16; CCTextInputNode::refreshLabel(v69); v70 = a1->m_offsetInput; v70->m_placeholderScale = 0.5; CCTextInputNode::refreshLabel(v70); cocos2d::CCArray::addObject(a1->m_nonRecordingObjects, a1->m_offsetInput); v71 = ButtonSprite::create_1( "Record", 120, 0, 0.80000001, 1, (const char *)&qword_14052A4D8, "GJ_button_01.png", 0.0); v72 = CCMenuItemSpriteExtra::create(v71, nullptr, a1, (cocos2d::SEL_MenuHandler *)sub_14009BED8); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v72); cocos2d::CCArray::addObject(a1->m_nonRecordingObjects, v72); v73 = v72->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v103.origin, v98 * 0.5, (float)((float)(v99 * 0.5) - 145.0) + 50.0); v74 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, v104); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v73->setPosition_0)(v72, v74); v75 = ButtonSprite::create_1("Stop", 100, 0, 0.60000002, 0, (const char *)&qword_14052A4D8, "GJ_button_02.png", 0.0); v76 = CCMenuItemSpriteExtra::create(v75, nullptr, a1, (cocos2d::SEL_MenuHandler *)CreateGuidelinesLayer::onStop); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v76); cocos2d::CCArray::addObject(a1->m_recordingObjects, v76); v77 = v76->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint( &v103.origin, (float)((float)(v98 * 0.5) + 220.0) - 40.0, (float)((float)(v99 * 0.5) + 145.0) - 25.0); v78 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, v104); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v77->setPosition_0)(v76, v78); v79 = cocos2d::CCLabelBMFont::create(byte_140518980, (const char *)&qword_14052A4D8); a1->m_infoLabel = v79; v80 = v79->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v103.origin, v98 * 0.5, (float)((float)(v99 * 0.5) - 145.0) + 90.0); v80->setPosition_0(a1->m_infoLabel, v81); a1->m_mainLayer->addChild_1(a1->m_mainLayer, a1->m_infoLabel); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_infoLabel->setScale_0)(a1->m_infoLabel); a1->m_infoLabel->setColor(&a1->m_infoLabel->cocos2d::CCRGBAProtocol, &stru_140529A00); cocos2d::CCArray::addObject(a1->m_nonRecordingObjects, a1->m_infoLabel); v82 = cocos2d::CCSprite::createWithSpriteFrameName("d_ball_01_001.png"); a1->m_circleSprite = v82; v83 = v82->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint( &v103.origin, (float)((float)(v98 * 0.5) - 220.0) + 30.0, (float)((float)(v99 * 0.5) + 145.0) - 30.0); v83->setPosition_0(a1->m_circleSprite, v84); ((void (__fastcall *)(cocos2d::CCSprite *))a1->m_circleSprite->setScale_0)(a1->m_circleSprite); a1->m_mainLayer->addChild_1(a1->m_mainLayer, a1->m_circleSprite); cocos2d::CCArray::addObject(a1->m_recordingObjects, a1->m_circleSprite); v85 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v86 = CCMenuItemSpriteExtra::create(v85, nullptr, a1, (cocos2d::SEL_MenuHandler *)sub_14009BF08); v86[1].m_unknown5 = 1069547520; a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v86); cocos2d::CCArray::addObject(a1->m_nonRecordingObjects, v86); v87 = v86->__vftable; cocos2d::CCPoint::CCPoint( &v103.origin, (float)((float)(v98 * 0.5) - 220.0) + 10.0, (float)((float)(v99 * 0.5) + 145.0) - 10.0); v88 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, v104); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCPoint))v87->setPosition_0)(v86, v88); if ( v55 != BPMFinder ) { v89 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v90 = CCMenuItemSpriteExtra::create(v89, nullptr, a1, (cocos2d::SEL_MenuHandler *)sub_14009BEF0); v90[1].m_unknown5 = 0x40000000; a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v90); v91 = v90->__vftable; cocos2d::CCPoint::CCPoint( &v103.origin, (float)((float)(v98 * 0.5) + 220.0) - 17.0, (float)((float)(v99 * 0.5) + 145.0) - 17.0); v92 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, v104); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCPoint))v91->setPosition_0)(v90, v92); cocos2d::CCArray::addObject(a1->m_nonRecordingObjects, v90); } CreateGuidelinesLayer::toggleItems(a1, 0); v93 = v23; if ( (unsigned __int64)(v109 + 1) >= 0x1000 ) { v23 = *((char **)v23 - 1); if ( (unsigned __int64)(v93 - v23 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v23); if ( v110 > 0xF ) { v94 = v21; if ( v110 + 1 >= 0x1000 ) { v21 = *((char **)v21 - 1); if ( (unsigned __int64)(v94 - v21 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v21); } if ( v120 > 0xF ) { v95 = Block[0]; if ( v120 + 1 >= 0x1000 ) { v95 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v95 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v95); } return 1; } return result; }