// // CreateGuidelinesLayer::init from 0x140132db0 to 0x140134050 (4768 bytes) // // 3 xrefs: // > FindBPMLayer::create @ 0x140134f0a // > CustomSongLayer::onCreateLines @ 0x1401652b0 // > @ 0x140916fd0 // // 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:04 +0000 // // Hidden C++ exception states: #wind=5 bool __fastcall CreateGuidelinesLayer::init(__int64 a1, __int64 a2, int a3) { bool result; // al __int64 v7; // rcx __int64 v8; // rax __int64 v9; // rcx cocos2d::CCObject *v10; // rax __int64 v11; // rcx cocos2d::CCObject *v12; // rax __int64 v13; // rax __int64 v14; // rax __int64 *v15; // rdi __int64 v16; // rbx __int64 v17; // rax __int64 v18; // rbx __int64 v19; // rax char *v20; // r13 __int64 v21; // r12 char *v22; // r15 char *v23; // rax void **v24; // rcx struct cocos2d::CCObject *v25; // rdi __int64 v26; // rbx __int64 v27; // rax struct cocos2d::CCLabelBMFont *v28; // rdi __int64 v29; // rbx __int64 v30; // rax struct cocos2d::CCFiniteTimeAction *v31; // rbx struct cocos2d::CCTintTo *v32; // rax struct cocos2d::CCActionInterval *v33; // rax struct cocos2d::CCAction *v34; // rax __int64 v35; // rsi unsigned __int64 v36; // rbx const struct cocos2d::CCPoint *v37; // rax char *v38; // rdi __int64 v39; // rbx __int64 v40; // rax __int64 v41; // rax __int64 v42; // rbx struct cocos2d::CCObject *v43; // r12 __int64 v44; // rax __int64 v45; // rcx unsigned __int64 v46; // rbx const struct cocos2d::CCPoint *v47; // rax char *v48; // rdi __int64 v49; // rbx __int64 v50; // rax __int64 v51; // rax __int64 v52; // rbx __int64 v53; // rax int v54; // r12d int v55; // eax struct cocos2d::CCObject *v56; // rsi __int64 v57; // rdi __int64 v58; // rbx __int64 v59; // rax __int64 v60; // rax struct cocos2d::CCObject *v61; // rbx __int64 v62; // rax __int64 v63; // rax struct cocos2d::CCObject *v64; // rbx __int64 v65; // rdx __int64 v66; // rdx __int64 v67; // rcx char *v68; // rax __int64 v69; // rcx __int64 v70; // rcx __int64 v71; // rcx __int64 v72; // rcx int v73; // eax struct cocos2d::CCObject *v74; // rsi __int64 v75; // rdi __int64 v76; // rbx __int64 v77; // rax __int64 v78; // rax int v79; // eax struct cocos2d::CCObject *v80; // rsi __int64 v81; // rdi __int64 v82; // rbx __int64 v83; // rax __int64 v84; // rax struct cocos2d::CCLabelBMFont *v85; // rdi __int64 v86; // rbx __int64 v87; // rax struct cocos2d::CCSprite *v88; // rdi __int64 v89; // rbx __int64 v90; // rax int v91; // eax cocos2d::CCObject *v92; // rsi __int64 v93; // rdi __int64 v94; // rbx __int64 v95; // rax __int64 v96; // rax int v97; // eax cocos2d::CCObject *v98; // rsi __int64 v99; // rdi __int64 v100; // rbx __int64 v101; // rax __int64 v102; // rax char *v103; // rax char *v104; // rax void *v105; // rcx float v106; // [rsp+48h] [rbp-C0h] BYREF float v107; // [rsp+4Ch] [rbp-BCh] __int128 *v108; // [rsp+50h] [rbp-B8h] BYREF __int16 v109; // [rsp+58h] [rbp-B0h] BYREF char v110; // [rsp+5Ah] [rbp-AEh] __int128 v111; // [rsp+60h] [rbp-A8h] BYREF __int64 v112; // [rsp+70h] [rbp-98h] __int64 v113; // [rsp+78h] [rbp-90h] _QWORD v114[2]; // [rsp+80h] [rbp-88h] BYREF char v115[8]; // [rsp+90h] [rbp-78h] BYREF int v116; // [rsp+98h] [rbp-70h] char v117[8]; // [rsp+A0h] [rbp-68h] BYREF __int64 v118; // [rsp+A8h] [rbp-60h] unsigned __int64 v119; // [rsp+B0h] [rbp-58h] struct cocos2d::CCObject *v120; // [rsp+B8h] [rbp-50h] char v121[8]; // [rsp+C0h] [rbp-48h] BYREF _BYTE v122[16]; // [rsp+C8h] [rbp-40h] BYREF void *Block[2]; // [rsp+D8h] [rbp-30h] BYREF __int64 v124; // [rsp+E8h] [rbp-20h] unsigned __int64 v125; // [rsp+F0h] [rbp-18h] __int128 v126; // [rsp+F8h] [rbp-10h] __int64 v127; // [rsp+108h] [rbp+0h] __int64 v128; // [rsp+110h] [rbp+8h] __int128 v129; // [rsp+118h] [rbp+10h] unsigned __int64 v130; // [rsp+128h] [rbp+20h] __int64 v131; // [rsp+130h] [rbp+28h] v116 = a3; result = FLAlertLayer::init_1(a1, 75); if ( result ) { *(_QWORD *)(a1 + 672) = a2; v8 = cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8, &v106); v10 = (cocos2d::CCObject *)cocos2d::CCArray::create(v9); *(_QWORD *)(a1 + 688) = v10; cocos2d::CCObject::retain(v10); v12 = (cocos2d::CCObject *)cocos2d::CCArray::create(v11); *(_QWORD *)(a1 + 696) = v12; cocos2d::CCObject::retain(v12); v13 = cocos2d::CCMenu::create(); *(_QWORD *)(a1 + 552) = v13; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v13, 10); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v114, 0.0, 0.0, 80.0, 80.0); v15 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v14); v16 = *v15; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v108, 440.0, 290.0); (*(void (__fastcall **)(__int64 *, __int64))(v16 + 312))(v15, v17); (*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v15, 0xFFFFFFFFLL); v18 = *v15; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v108, v106 * 0.5, v107 * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v18 + 184))(v15, v19); *(_OWORD *)Block = 0; v124 = 0; v125 = 15; LOBYTE(Block[0]) = 0; v126 = 0; v127 = 0; v128 = 15; LOBYTE(v126) = 0; v129 = 0; v130 = 0; v131 = 15; LOBYTE(v129) = 0; if ( a3 == 1 ) { v124 = 10; strcpy((char *)Block, "BPM Finder"); v20 = (char *)sub_14003D460(0x50u); v21 = 77; v127 = 77; v118 = 79; v119 = 79; v128 = 79; strcpy(v20, "- Find the BPM of a song.\n- Tap to the beat.\n- Recording starts on first tap."); *(_QWORD *)&v126 = v20; v22 = (char *)sub_14003D460(0x50u); v130 = 68; v131 = 79; strcpy(v22, "- Tap on the screen to the beat.\n- Tap on the stop button to finish."); } else { v23 = (char *)sub_14003D460(0x20u); v124 = 17; v125 = 31; strcpy(v23, "Guideline Creator"); Block[0] = v23; v20 = (char *)sub_14003D460(0xC0u); v21 = 182; v127 = 182; v119 = 191; v128 = 191; strcpy( v20, "- 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 *)&v126 = v20; v22 = (char *)sub_14003D460(0x50u); v130 = 74; v118 = 79; v131 = 79; strcpy(v22, "- Tap on the screen to create markers.\n- Tap on the stop button to finish."); } *(_QWORD *)&v129 = v22; v24 = Block; if ( v125 > 0xF ) v24 = (void **)Block[0]; v25 = cocos2d::CCLabelBMFont::create((const char *)v24, (const char *)&qword_140704F78); v120 = v25; v26 = *(_QWORD *)v25; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v108, v106 * 0.5, (float)((float)(v107 * 0.5) + 145.0) - 20.0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v26 + 184))(v25, v27); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v25); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v25 + 160LL))(v25); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 688), v25); v28 = cocos2d::CCLabelBMFont::create(byte_140736F80, (const char *)&qword_140704F78); v29 = *(_QWORD *)v28; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v108, v106 * 0.5, (float)((float)(v107 * 0.5) + 145.0) - 20.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v29 + 184))(v28, v30); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v28); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v28 + 160LL))(v28); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 696), v28); v109 = -26881; v110 = 0; (**((void (__fastcall ***)(__int64, __int16 *))v28 + 46))((__int64)v28 + 368, &v109); v31 = cocos2d::CCTintTo::create(1.0, 0xFFu, 0x64u, 0); v32 = cocos2d::CCTintTo::create(1.0, 0xFFu, 0x96u, 0); v33 = cocos2d::CCSequence::create(v31, v32, 0); v34 = cocos2d::CCRepeatForever::create(v33); cocos2d::CCNode::runAction(v28, v34); v108 = &v111; v111 = 0; v112 = 0; v113 = 0; v35 = 0x7FFFFFFFFFFFFFFFLL; v36 = v21 | 0xF; if ( (v21 | 0xFuLL) <= 0x7FFFFFFFFFFFFFFFLL ) { if ( v36 < 0x16 ) v36 = 22; } else { v36 = 0x7FFFFFFFFFFFFFFFLL; } *(_QWORD *)&v111 = sub_14003D460(v36 + 1); v112 = v21; v113 = v36; memcpy((void *)v111, v20, v21 + 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v115, 0.0, 1.0); v38 = TextArea::create((__int64)&v111, "goldFont.fnt", 1.0, 9999.0, v37, 1105199104, 0, 0); (*(void (__fastcall **)(char *))(*(_QWORD *)v38 + 160LL))(v38); v39 = *(_QWORD *)v38; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v108, 0.0, 1.0); (*(void (__fastcall **)(char *, __int64))(v39 + 288))(v38, v40); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v38); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, -155.0, -20.0); v42 = v41; v43 = v120; v44 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v120 + 200LL))(v120); cocos2d::CCPoint::operator+(v44, &v108, v42); (*(void (__fastcall **)(char *, __int128 **))(*(_QWORD *)v38 + 184LL))(v38, &v108); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 688), (struct cocos2d::CCObject *)v38); v114[0] = &v111; v111 = 0; v112 = 0; v113 = 0; v46 = v130; if ( v130 > 0x7FFFFFFFFFFFFFFFLL ) sub_140009D90(v45); if ( v130 > 0xF ) { if ( (v130 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { v35 = v130 | 0xF; if ( (v130 | 0xF) < 0x16 ) v35 = 22; } *(_QWORD *)&v111 = sub_14003D460(v35 + 1); v112 = v46; v113 = v35; memcpy((void *)v111, v22, v46 + 1); } else { v112 = v130; v113 = 15; v111 = *(_OWORD *)v22; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v115, 0.0, 1.0); v48 = TextArea::create((__int64)&v111, "goldFont.fnt", 1.0, 9999.0, v47, 1105199104, 0, 0); (*(void (__fastcall **)(char *))(*(_QWORD *)v48 + 160LL))(v48); v49 = *(_QWORD *)v48; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, 0.0, 1.0); (*(void (__fastcall **)(char *, __int64))(v49 + 288))(v48, v50); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v48); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, -155.0, -20.0); v52 = v51; v53 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v43 + 200LL))(v43); cocos2d::CCPoint::operator+(v53, &v108, v52); (*(void (__fastcall **)(char *, __int128 **))(*(_QWORD *)v48 + 184LL))(v48, &v108); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 696), (struct cocos2d::CCObject *)v48); v54 = v116; if ( v116 != 1 ) { v55 = (unsigned int)ButtonSprite::create_1( (int)"Clear", 100, 0, 0.60000002, 0, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0); v56 = CCMenuItemSpriteExtra::create(v55, 0, a1, (__int64)CreateGuidelinesLayer::onClearGuidelines); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v56); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 688), v56); v57 = *(_QWORD *)v56; v58 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, (float)(v106 * 0.5) - 75.0, v107 * 0.5); cocos2d::CCNode::convertToNodeSpace(v58, v115, v59); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v57 + 184))(v56, v60); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v117, (float)(v106 * 0.5) + 75.0, v107 * 0.5); v61 = cocos2d::CCLabelBMFont::create("Start Offset", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v61 + 160LL))(v61); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, 0.0, 25.0); cocos2d::CCPoint::operator+(v117, &v108, v62); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int128 **))(*(_QWORD *)v61 + 184LL))(v61, &v108); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v61); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 688), v61); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v122, 0.0, 0.0, 40.0, 40.0); v63 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v114, (const struct cocos2d::CCRect *)v122); v64 = (struct cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v63); LOBYTE(v65) = 100; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v64 + 40) + 40LL))((__int64)v64 + 320, v65); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v121, 100.0, 30.0); (*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v64 + 312LL))(v64, v121); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v64, 0xFFFFFFFFLL); (*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v64 + 184LL))(v64, v117); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 688), v64); v68 = CCTextInputNode::create(v67, v66, (__int64)"Seconds"); *(_QWORD *)(a1 + 680) = v68; (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v68, 20); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 680) + 184LL))(*(_QWORD *)(a1 + 680), v117); v69 = *(_QWORD *)(a1 + 680); *(_DWORD *)(v69 + 564) = 1060320051; CCTextInputNode::refreshLabel(v69); v70 = *(_QWORD *)(a1 + 680); *(_DWORD *)(v70 + 560) = 1128792064; CCTextInputNode::refreshLabel(v70); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 680) + 592LL) + 336LL))( *(_QWORD *)(*(_QWORD *)(a1 + 680) + 592LL), 0); *(_DWORD *)(*(_QWORD *)(a1 + 680) + 608LL) = 3; v112 = 11; v113 = 15; *(_QWORD *)&v111 = 0x3736353433323130LL; *((_QWORD *)&v111 + 1) = 3029304; CCTextInputNode::setAllowedChars(*(_QWORD *)(a1 + 680), (void **)&v111); v71 = *(_QWORD *)(a1 + 680); *(_WORD *)(v71 + 572) = -21896; *(_BYTE *)(v71 + 574) = -16; CCTextInputNode::refreshLabel(v71); v72 = *(_QWORD *)(a1 + 680); *(_DWORD *)(v72 + 568) = 1056964608; CCTextInputNode::refreshLabel(v72); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 688), *(struct cocos2d::CCObject **)(a1 + 680)); v73 = (unsigned int)ButtonSprite::create_1( (int)"Record", 120, 0, 0.80000001, 1, (__int64)&qword_140704F78, (__int64)"GJ_button_01.png", 0); v74 = CCMenuItemSpriteExtra::create(v73, 0, a1, (__int64)sub_1401353DC); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v74); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 688), v74); v75 = *(_QWORD *)v74; v76 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, v106 * 0.5, (float)((float)(v107 * 0.5) - 145.0) + 50.0); cocos2d::CCNode::convertToNodeSpace(v76, v115, v77); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v75 + 184))(v74, v78); v79 = (unsigned int)ButtonSprite::create_1( (int)"Stop", 100, 0, 0.60000002, 0, (__int64)&qword_140704F78, (__int64)"GJ_button_02.png", 0); v80 = CCMenuItemSpriteExtra::create(v79, 0, a1, (__int64)CreateGuidelinesLayer::onStop); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v80); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 696), v80); v81 = *(_QWORD *)v80; v82 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v114, (float)((float)(v106 * 0.5) + 220.0) - 40.0, (float)((float)(v107 * 0.5) + 145.0) - 25.0); cocos2d::CCNode::convertToNodeSpace(v82, v115, v83); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v81 + 184))(v80, v84); v85 = cocos2d::CCLabelBMFont::create(&byte_1406ED6E0, (const char *)&qword_140704F78); *(_QWORD *)(a1 + 704) = v85; v86 = *(_QWORD *)v85; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, v106 * 0.5, (float)((float)(v107 * 0.5) - 145.0) + 90.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v86 + 184))(v85, v87); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 704)); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 704) + 160LL))(*(_QWORD *)(a1 + 704)); (**(void (__fastcall ***)(__int64, void *))(*(_QWORD *)(a1 + 704) + 368LL))( *(_QWORD *)(a1 + 704) + 368LL, &unk_140702F4C); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 688), *(struct cocos2d::CCObject **)(a1 + 704)); v88 = cocos2d::CCSprite::createWithSpriteFrameName("d_ball_01_001.png"); *(_QWORD *)(a1 + 712) = v88; v89 = *(_QWORD *)v88; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v114, (float)((float)(v106 * 0.5) - 220.0) + 30.0, (float)((float)(v107 * 0.5) + 145.0) - 30.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v89 + 184))(v88, v90); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 160LL))(*(_QWORD *)(a1 + 712)); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 712)); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 696), *(struct cocos2d::CCObject **)(a1 + 712)); v91 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v92 = CCMenuItemSpriteExtra::create(v91, 0, a1, (__int64)sub_1401353D0); *((_DWORD *)v92 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v92); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 688), v92); v93 = *(_QWORD *)v92; v94 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v114, (float)((float)(v106 * 0.5) - 220.0) + 10.0, (float)((float)(v107 * 0.5) + 145.0) - 10.0); cocos2d::CCNode::convertToNodeSpace(v94, v115, v95); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v93 + 184))(v92, v96); if ( v54 != 1 ) { v97 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v98 = CCMenuItemSpriteExtra::create(v97, 0, a1, (__int64)sub_14009D628); *((_DWORD *)v98 + 93) = 0x40000000; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v98); v99 = *(_QWORD *)v98; v100 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v114, (float)((float)(v106 * 0.5) + 220.0) - 17.0, (float)((float)(v107 * 0.5) + 145.0) - 17.0); cocos2d::CCNode::convertToNodeSpace(v100, v115, v101); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v99 + 184))(v98, v102); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 688), v98); } CreateGuidelinesLayer::toggleItems(a1, 0); v103 = v22; if ( (unsigned __int64)(v118 + 1) >= 0x1000 ) { v22 = *((char **)v22 - 1); if ( (unsigned __int64)(v103 - v22 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v22); if ( v119 > 0xF ) { v104 = v20; if ( v119 + 1 >= 0x1000 ) { v20 = *((char **)v20 - 1); if ( (unsigned __int64)(v104 - v20 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v20); } if ( v125 > 0xF ) { v105 = Block[0]; if ( v125 + 1 >= 0x1000 ) { v105 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v105 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v105); } return 1; } return result; }