// // TutorialLayer::loadPage from 0x14066f780 to 0x14066fdc1 (1601 bytes) // // 3 xrefs: // > TutorialLayer::init @ 0x14066f733 // > TutorialLayer::onNext @ 0x14066f774 // > @ 0x140932264 // // 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:35:53 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall TutorialLayer::loadPage(__int64 a1, __int64 a2) { int v2; // edi __int64 v4; // rcx int v5; // edx cocos2d::CCString *v6; // rax const char *CString; // rbx __int64 v8; // rcx cocos2d::CCTextureCache *v9; // rax __int64 v10; // rax cocos2d::CCString *v11; // rax const char *v12; // rax struct cocos2d::CCSprite *v13; // r14 __int64 v14; // rbx float v15; // xmm7_4 __int64 v16; // rax __int64 v17; // rcx __int64 v18; // rbx __int64 v19; // rax float v20; // xmm8_4 int v21; // xmm10_4 unsigned __int64 v22; // rdx int v23; // edi int v24; // edi int v25; // edi int v26; // edi char *v27; // rcx void **v28; // rax size_t v29; // r8 const struct cocos2d::CCPoint *v30; // rax char *v31; // rdi __int64 v32; // rbx __int64 v33; // rax __int64 v34; // rdx __int64 *v35; // rcx __int64 v36; // rax __int64 v37; // rdx __int64 v38; // rdx __int64 v39; // rdx void *v40; // rcx float v41; // [rsp+48h] [rbp-59h] BYREF float v42; // [rsp+4Ch] [rbp-55h] __int128 *v43; // [rsp+50h] [rbp-51h] BYREF __int128 v44; // [rsp+58h] [rbp-49h] BYREF __int64 v45; // [rsp+68h] [rbp-39h] __int64 v46; // [rsp+70h] [rbp-31h] _BYTE v47[8]; // [rsp+78h] [rbp-29h] BYREF void *Block[2]; // [rsp+80h] [rbp-21h] BYREF __int64 v49; // [rsp+90h] [rbp-11h] unsigned __int64 v50; // [rsp+98h] [rbp-9h] v2 = a2; LOBYTE(a2) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 664) + 576LL))(*(_QWORD *)(a1 + 664), a2); v5 = *(_DWORD *)(a1 + 672); if ( v5 ) { v6 = cocos2d::CCString::createWithFormat("tutorial_%02d.png", v5); CString = cocos2d::CCString::getCString(v6); v9 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v8); cocos2d::CCTextureCache::removeTextureForKey(v9, CString); } *(_DWORD *)(a1 + 672) = v2; v10 = cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize(v10, &v41); v11 = cocos2d::CCString::createWithFormat("tutorial_%02d.png", v2); v12 = cocos2d::CCString::getCString(v11); v13 = cocos2d::CCSprite::create(v12); v14 = *(_QWORD *)v13; v15 = 0.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v43, 0.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v14 + 288))(v13, v16); if ( *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v17) + 244) ) (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v13 + 160LL))(v13); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(a1 + 664) + 464LL))( *(_QWORD *)(a1 + 664), v13); v18 = *(_QWORD *)v13; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v43, (float)((float)(v41 * 0.5) - 210.0) + 10.0, (float)((float)(v42 * 0.5) - 130.0) + 10.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v18 + 184))(v13, v19); v20 = 0.69999999; v21 = 1109393408; *(_OWORD *)Block = 0; v49 = 0; v22 = 15; v50 = 15; LOBYTE(Block[0]) = 0; v23 = v2 - 1; if ( !v23 ) { v27 = (char *)sub_14003D460(0x50u); v49 = 66; v22 = 79; strcpy(v27, "Tap the screen to jump.\nHold down to keep jumping."); goto LABEL_17; } v24 = v23 - 1; if ( !v24 ) { v27 = (char *)sub_14003D460(0x40u); v49 = 52; v22 = 63; strcpy(v27, "Hold to fly up.\nRelease to fly down."); goto LABEL_17; } v25 = v24 - 1; if ( v25 ) { v26 = v25 - 1; if ( !v26 ) { v27 = (char *)sub_14003D460(0x80u); v49 = 125; v22 = 127; strcpy( v27, "You can place checkpoints manually, or use the auto-checkpoint feature.\n" "Tap the delete button to remove your last checkpoint."); v20 = 0.55000001; v15 = -13.0; v21 = 1110704128; goto LABEL_17; } if ( v26 != 1 ) { v27 = (char *)Block[0]; goto LABEL_18; } v27 = (char *)sub_14003D460(0x90u); v49 = 129; v22 = 143; strcpy( v27, "Jump Orbs activate when you are on top of them.\n" "Tap while touching an orb to interact with it and use its effect."); } else { v27 = (char *)sub_14003D460(0x70u); v49 = 106; v22 = 111; strcpy( v27, "You can enter practice mode from the pause menu.\nPractice mode lets you place checkpoints."); } v20 = 0.60000002; v15 = -13.0; LABEL_17: v50 = v22; Block[0] = v27; LABEL_18: v43 = &v44; v28 = Block; if ( v22 > 0xF ) v28 = (void **)v27; v44 = 0; v45 = 0; v46 = 0; v29 = -1; do ++v29; while ( *((_BYTE *)v28 + v29) ); sub_14003D230(&v44, v28, v29); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 0.5, 1.0); v31 = TextArea::create((__int64)&v44, &qword_140704F78, 1.0, 400.0 / v20, v30, v21, 0, 0); (*(void (__fastcall **)(char *))(*(_QWORD *)v31 + 160LL))(v31); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 664) + 464LL))(*(_QWORD *)(a1 + 664), v31); v32 = *(_QWORD *)v31; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v43, v41 * 0.5, (float)((float)((float)(v42 * 0.5) + 130.0) - 75.0) + v15); (*(void (__fastcall **)(char *, __int64))(v32 + 184))(v31, v33); v35 = *(__int64 **)(a1 + 680); v36 = *v35; if ( *(int *)(a1 + 672) < 5 ) { LOBYTE(v34) = 1; (*(void (__fastcall **)(__int64 *, __int64))(v36 + 336))(v35, v34); LOBYTE(v39) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 680) + 936LL))(*(_QWORD *)(a1 + 680), v39); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 688) + 336LL))(*(_QWORD *)(a1 + 688), 0); v38 = 0; } else { (*(void (__fastcall **)(__int64 *, _QWORD))(v36 + 336))(v35, 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 680) + 936LL))(*(_QWORD *)(a1 + 680), 0); LOBYTE(v37) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 688) + 336LL))(*(_QWORD *)(a1 + 688), v37); LOBYTE(v38) = 1; } (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 688) + 936LL))(*(_QWORD *)(a1 + 688), v38); if ( v50 > 0xF ) { v40 = Block[0]; if ( v50 + 1 >= 0x1000 ) { v40 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v40 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v40); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source