// // TutorialLayer::loadPage from 0x538bb0 to 0x538e5c (684 bytes) // // 2 xrefs: // > TutorialLayer::init @ 0x5391ea // > TutorialLayer::onNext @ 0x539270 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:52:13 +0000 // int __fastcall TutorialLayer::loadPage(TutorialLayer *this, const char *a2) { char *v2; // r10 cocos2d::CCDirector *v5; // r0 cocos2d::CCString *v6; // r0 cocos2d::CCSprite *CString; // r0 const char *v8; // r1 int v9; // r5 int (__fastcall *v10)(int, _BYTE *); // r9 AppDelegate *v11; // r0 void (__fastcall *v12)(int, _BYTE *); // r9 char *v13; // r1 char *v14; // r1 float v15; // s19 int v16; // r8 float v17; // s18 size_t v18; // r0 int v19; // r8 void (__fastcall *v20)(int, _BYTE *); // r9 void (*v21)(void); // r3 float v23; // [sp+14h] [bp-2Ch] BYREF float v24; // [sp+18h] [bp-28h] _BYTE v25[8]; // [sp+1Ch] [bp-24h] BYREF int v26[2]; // [sp+24h] [bp-1Ch] BYREF char *v27; // [sp+2Ch] [bp-14h] int v28[3]; // [sp+30h] [bp-10h] BYREF (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 130) + 292))(*((_DWORD *)this + 130), 1); v5 = (cocos2d::CCDirector *)TutorialLayer::removeTutorialTexture((int)this); *((_DWORD *)this + 131) = a2; cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v23); v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"tutorial_%02d.png", a2); CString = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v6); v9 = cocos2d::CCSprite::create(CString, v8); v10 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, 0.0, 0.0); v11 = (AppDelegate *)v10(v9, v25); if ( *(_BYTE *)(AppDelegate::get(v11) + 20) ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 80))(v9, 0x40000000); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 130) + 228))(*((_DWORD *)this + 130), v9); v12 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v25, (float)((float)(v23 * 0.5) - 210.0) + 10.0, (float)((float)(v24 * 0.5) - 130.0) + 10.0); v12(v9, v25); v26[0] = 0; v26[1] = 0; v27 = nullptr; std::string::__init(v26, &unk_B6B226, 0); switch ( (unsigned int)a2 ) { case 1u: v13 = "Tap the screen to jump.\nHold down to keep jumping."; goto LABEL_5; case 2u: v13 = "Hold to fly up.\nRelease to fly down."; LABEL_5: std::string::assign(v26, v13); goto LABEL_11; case 3u: v14 = "You can enter practice mode from the pause menu.\n" "Practice mode lets you place checkpoints."; goto LABEL_8; case 4u: std::string::assign( v26, "You can place checkpoints manually, or use the auto-checkpoint feature.\n" "Tap the delete button to remove your last checkpoint."); v15 = -13.0; v16 = 1110704128; v17 = 0.55; break; case 5u: v14 = "Jump Orbs activate when you are on top of them.\n" "Tap while touching an orb to interact with it and use its effect."; LABEL_8: std::string::assign(v26, v14); v15 = -13.0; v16 = 1109393408; v17 = 0.6; break; default: LABEL_11: v15 = 0.0; v16 = 1109393408; v17 = 0.7; break; } if ( (v26[0] & 1) == 0 ) v2 = (char *)v26 + 1; v28[0] = 0; if ( (v26[0] & 1) != 0 ) v2 = v27; v28[1] = 0; v28[2] = 0; v18 = strlen(v2); std::string::__init(v28, v2, v18); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, 0.5, 1.0); v19 = TextArea::create( (int)v28, "bigFont.fnt", 1065353216, COERCE_INT(400.0 / v17), (const cocos2d::CCPoint *)v25, v16, 0, 0); std::string::~string((int)v28); (*(void (__fastcall **)(int, float))(*(_DWORD *)v19 + 80))(v19, COERCE_FLOAT(LODWORD(v17))); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 130) + 228))(*((_DWORD *)this + 130), v19); v20 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v19 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v25, v23 * 0.5, (float)((float)((float)(v24 * 0.5) + 130.0) - 75.0) + v15); v20(v19, v25); v21 = *(void (**)(void))(**((_DWORD **)this + 132) + 172); if ( *((int *)this + 131) <= 4 ) { v21(); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 132) + 528))(*((_DWORD *)this + 132), 1); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 133) + 172))(*((_DWORD *)this + 133), 0); } else { v21(); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 132) + 528))(*((_DWORD *)this + 132), 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 133) + 172))(*((_DWORD *)this + 133), 1); } (*(void (**)(void))(**((_DWORD **)this + 133) + 528))(); return std::string::~string((int)v26); }
GD Web Decomp Icon

GD Web Decomp

Raw Source