// // GJBaseGameLayer::teleportPlayer from 0x1000fcdd0 to 0x1000fd4af (1759 bytes) // // 3 xrefs: // > GJBaseGameLayer::collisionCheckObjects @ 0x100104de7 // > EffectGameObject::triggerObject @ 0x10019a2bc // > PlayerObject::ringJump @ 0x1004017aa // // 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 12:21:19 +0000 // __int64 __fastcall GJBaseGameLayer::teleportPlayer(__int64 a1, __int64 a2, __int64 a3) { __int64 v3; // r14 __int64 v5; // r13 int v6; // ebx __int64 v7; // rsi __int64 v8; // rax __int64 v9; // rsi _DWORD *PortalTarget; // r12 __int64 v11; // rax __int64 v12; // rax int v13; // eax unsigned __int8 v14; // al int v15; // eax int v16; // xmm0_4 __int64 v17; // rdi float v18; // xmm0_4 int v19; // xmm0_4 __int64 v20; // rax double v21; // xmm0_8 _DWORD *v22; // rdi __int64 v23; // rax _DWORD *v24; // rdi _BYTE *v25; // rsi double v26; // xmm0_8 __int64 v27; // rax __int64 v28; // rsi __int64 v29; // rax __int64 v30; // rax __int64 v32; // rsi __int64 v33; // rax char v34[8]; // [rsp+Ch] [rbp-64h] BYREF _BYTE v35[4]; // [rsp+14h] [rbp-5Ch] BYREF float v36; // [rsp+18h] [rbp-58h] float v37; // [rsp+1Ch] [rbp-54h] __int64 v38; // [rsp+20h] [rbp-50h] char v39[8]; // [rsp+28h] [rbp-48h] BYREF _DWORD v40[2]; // [rsp+30h] [rbp-40h] BYREF float v41; // [rsp+38h] [rbp-38h] _BYTE v42[4]; // [rsp+3Ch] [rbp-34h] BYREF float v43; // [rsp+40h] [rbp-30h] float v44; // [rsp+44h] [rbp-2Ch] v3 = a3; v5 = a1; if ( !a3 ) v3 = *(_QWORD *)(a1 + 3256); *(_BYTE *)(v3 + 1368) = 1; v6 = *(_DWORD *)(a2 + 1028); v7 = *(_QWORD *)(a2 + 1848); if ( v7 ) { (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v7 + 1816LL))(v42); v44 = v43; (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a2 + 1816LL))(v35, a2); *(float *)(a2 + 1860) = v44 - v36; } v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3); sub_1002782D0(v35, v8); v9 = a2; PortalTarget = (_DWORD *)GJBaseGameLayer::getPortalTarget(a1, a2); v38 = a1; if ( PortalTarget ) { v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 192LL))(a2); sub_1002782D0(v42, v11); sub_100278300(v3 + 2488, v42); *(_QWORD *)(v3 + 2592) = a2; *(_DWORD *)(v3 + 3044) = 0; if ( *(_DWORD *)(a2 + 1028) == 747 ) { v44 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3); (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a2 + 1360LL))(v42, a2); sub_100278250(v40, v44, v43 + *(float *)(a2 + 1860)); if ( *(_BYTE *)(a2 + 1888) != 1 ) { LABEL_11: v5 = v38; if ( *(_BYTE *)(a2 + 1889) == 1 ) { v40[0] = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3); if ( *(_BYTE *)(a2 + 1890) != 1 ) goto LABEL_14; } else if ( *(_BYTE *)(a2 + 1890) != 1 ) { LABEL_14: v9 = (__int64)v40; (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v3 + 184LL))(v3, v40); goto LABEL_15; } v40[1] = *(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3) + 4); goto LABEL_14; } } else { (*(void (__fastcall **)(_DWORD *, _DWORD *))(*(_QWORD *)PortalTarget + 1360LL))(v40, PortalTarget); if ( *(_BYTE *)(a2 + 1888) != 1 ) goto LABEL_11; } (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)a2 + 1360LL))(v39, a2); v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3); sub_100278370(v42, v39, v12); sub_100278370(v39, v40, v42); sub_100278300(v40, v39); goto LABEL_11; } LABEL_15: v13 = *(_DWORD *)(a2 + 1892); if ( v13 <= 0 ) goto LABEL_25; switch ( v13 ) { case 1: v14 = 0; break; case 3: v14 = *(_BYTE *)(v3 + 2423) ^ 1; break; case 2: v14 = 1; break; default: goto LABEL_25; } v9 = v14; PlayerObject::flipGravity(v3, v14, 1); LABEL_25: if ( v6 != 3022 ) { GameObject::playShineEffect(a2); v9 = v3; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 1536LL))(a2, v3); } if ( !PortalTarget ) { v44 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 384LL))(a2); v17 = a2; if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1424LL))(a2) ) v18 = 180.0; else v18 = 0.0; v44 = v18 - v44; if ( *(_BYTE *)(a2 + 1864) == 1 ) goto LABEL_54; goto LABEL_55; } if ( !*(_BYTE *)(a2 + 1044) ) PlayerObject::spawnPortalCircle(v3, 16776960, 50.0); v15 = PortalTarget[257]; *(float *)&v16 = 90.0; if ( v15 > 748 ) { if ( v15 != 749 && v15 != 2902 && v15 != 2064 ) goto LABEL_40; LABEL_39: *(float *)&v16 = 180.0; goto LABEL_40; } if ( v15 == 38 || v15 == 747 ) goto LABEL_39; LABEL_40: v44 = *(float *)&v16; v37 = (*(float (__fastcall **)(_DWORD *))(*(_QWORD *)PortalTarget + 384LL))(PortalTarget); if ( (*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)PortalTarget + 1424LL))(PortalTarget) ) *(float *)&v19 = 180.0; else *(float *)&v19 = 0.0; v41 = *(float *)&v19; v20 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)PortalTarget + 192LL))(PortalTarget); sub_1002782D0(v42, v20); v9 = (__int64)v42; sub_100278300(v3 + 2488, v42); *(_QWORD *)(v3 + 2592) = PortalTarget; GameObject::playShineEffect(PortalTarget); if ( !*(_BYTE *)(a2 + 1044) ) { v9 = 51455; PlayerObject::spawnPortalCircle(v3, 51455, 50.0); } v44 = v44 - v37; v17 = v3; PlayerObject::resetStreak(v3); if ( *(_BYTE *)(v3 + 2420) == 1 ) { v17 = v3; sub_1003F05E0(v3); } *(_QWORD *)&v21 = LODWORD(v44); *(float *)&v21 = v44 + v41; if ( *(_BYTE *)(a2 + 1044) ) { v5 = v38; v44 = v44 + v41; if ( *(_BYTE *)(a2 + 1864) != 1 ) goto LABEL_55; LABEL_54: *(_DWORD *)(v5 + 1192) = 1056964608; goto LABEL_55; } v44 = v44 + v41; if ( v6 == 3022 ) { sub_1002782D0(v42, v35); v22 = (_DWORD *)v3; } else { v32 = (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)a2 + 192LL))(a2, *(float *)&v21); sub_1002782D0(v42, v32); v22 = PortalTarget; } v33 = (*(__int64 (__fastcall **)(_DWORD *, double))(*(_QWORD *)v22 + 192LL))(v22, v21); sub_1002782D0(v40, v33); sub_1002782D0(v39, v42); sub_1002782D0(v34, v40); v17 = v38; v9 = (__int64)v39; v5 = v38; GJBaseGameLayer::lightningFlash( v38, v39, v34, *(unsigned __int16 *)(v3 + 2602) | (*(unsigned __int8 *)(v3 + 2604) << 16), 100, 1, 4.0, 0.2, 1.0); if ( *(_BYTE *)(a2 + 1864) == 1 ) goto LABEL_54; LABEL_55: v23 = cocos2d::CCDirector::sharedDirector(v17, v9); v24 = v40; v25 = (_BYTE *)v23; cocos2d::CCDirector::getWinSize(v40, v23); if ( *(_BYTE *)(a2 + 1864) ) { v41 = 180.0; if ( !PortalTarget ) goto LABEL_60; goto LABEL_59; } v41 = 60.0; if ( PortalTarget ) { LABEL_59: v24 = (_DWORD *)v3; sub_100402F00(v3); } LABEL_60: if ( *(_BYTE *)(a2 + 1872) != 1 ) { if ( *(_BYTE *)(a2 + 1865) == 1 ) { v25 = (_BYTE *)*(unsigned __int8 *)(a2 + 1896); v24 = (_DWORD *)v3; PlayerObject::updateStaticForce(v3, v25, v44, *(float *)(a2 + 1868)); if ( *(_BYTE *)(a2 + 1897) == 1 ) goto LABEL_69; } else if ( *(_BYTE *)(a2 + 1897) == 1 ) { goto LABEL_69; } LABEL_65: if ( *(_BYTE *)(a2 + 1898) == 1 ) goto LABEL_70; goto LABEL_66; } v24 = (_DWORD *)v3; PlayerObject::redirectPlayerForce(v3, v44, *(float *)(a2 + 1876), *(float *)(a2 + 1880), *(float *)(a2 + 1884)); if ( *(_BYTE *)(a2 + 1897) != 1 ) goto LABEL_65; LABEL_69: *(_WORD *)(v5 + 1720) = 257; if ( *(_BYTE *)(a2 + 1898) == 1 ) { LABEL_70: v27 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3); sub_1002782D0(v42, v27); v24 = (_DWORD *)(v3 + 2532); v25 = v42; sub_100278300(v3 + 2532, v42); *(_QWORD *)&v26 = LODWORD(v44); if ( *(_BYTE *)(v3 + 2460) != 1 ) goto LABEL_73; goto LABEL_71; } LABEL_66: *(_QWORD *)&v26 = LODWORD(v44); if ( *(_BYTE *)(v3 + 2460) != 1 ) goto LABEL_73; LABEL_71: if ( *(_BYTE *)(a2 + 1899) == 1 ) { v24 = (_DWORD *)v3; PlayerObject::redirectDash(v3, v26); } LABEL_73: if ( PortalTarget ) { *(_QWORD *)&v26 = *(unsigned int *)(v5 + 572); if ( *(float *)&v26 == 0.0 && !*(_BYTE *)(v3 + 2427) ) { v28 = cocos2d::CCDirector::sharedDirector(v24, v25); cocos2d::CCDirector::getWinSize(v42, v28); v29 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3); if ( *(float *)(v29 + 4) > (float)((float)(*(float *)(v5 + 996) + v43) + v41) || (v30 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3), *(_QWORD *)&v26 = *(unsigned int *)(v5 + 996), *(float *)&v26 = *(float *)&v26 - v41, *(float *)&v26 > *(float *)(v30 + 4)) ) { *(_BYTE *)(v5 + 1721) = 1; v26 = 0.0; GJBaseGameLayer::updateCamera(v5, 0.0); } } } return GJBaseGameLayer::gameEventTriggered(v5, 25, 0, 0, v26); }
GD Web Decomp Icon

GD Web Decomp

Raw Source