// // GJBaseGameLayer::toggleFlipped from 0x140350b00 to 0x140350d29 (553 bytes) // // 6 xrefs: // > GJBaseGameLayer::setupLevelStart @ 0x140319c88 // > GJBaseGameLayer::collisionCheckObjects @ 0x14031ca7a // > GJBaseGameLayer::collisionCheckObjects @ 0x14031cb0e // > @ 0x1408b8974 // > @ 0x1408b8984 // > @ 0x1409202ac // // 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:30:47 +0000 // float *__fastcall GJBaseGameLayer::toggleFlipped(__int64 a1, char a2, char a3) { float *result; // rax __int64 v7; // rdi __int64 v8; // rcx _BYTE *v9; // rcx float v10; // xmm6_4 float *v11; // rdi float v12; // xmm1_4 _UNKNOWN *retaddr; // [rsp+88h] [rbp+0h] BYREF __int16 v14; // [rsp+90h] [rbp+8h] BYREF char v15; // [rsp+92h] [rbp+Ah] result = (float *)&retaddr; if ( *(_BYTE *)(a1 + 1048) == a2 ) return result; v7 = *(_QWORD *)(a1 + 3512); *(_BYTE *)(a1 + 1048) = a2; cocos2d::CCMotionStreak::stopStroke(*(cocos2d::CCMotionStreak **)(v7 + 1960)); if ( *(_BYTE *)(v7 + 2432) ) { *(_BYTE *)(v7 + 2432) = 0; PlayerObject::fadeOutStreak2(v7); } if ( a3 ) { v10 = 1.0; if ( a2 ) goto LABEL_14; } else { v8 = *(_QWORD *)(a1 + 3512); if ( a2 ) { v14 = -26881; v15 = 0; PlayerObject::spawnPortalCircle(v8, &v14); v9 = (_BYTE *)(a1 + 1056); v10 = 1.0; v11 = (float *)(a1 + 1052); *(_BYTE *)(a1 + 1056) = 0; result = (float *)(a1 + 1052); goto LABEL_7; } v14 = -256; v15 = -1; PlayerObject::spawnPortalCircle(v8, &v14); } v10 = 0.0; LABEL_14: v9 = (_BYTE *)(a1 + 1056); *(_BYTE *)(a1 + 1056) = 0; v11 = (float *)(a1 + 1052); result = (float *)(a1 + 1052); if ( a3 ) { *v11 = v10; return result; } LABEL_7: v12 = *result; if ( *result != 0.0 && v12 != 1.0 ) { if ( *(_BYTE *)(a1 + 1048) ) { if ( v12 >= 0.5 ) goto LABEL_22; } else if ( v12 <= 0.5 ) { goto LABEL_22; } *v9 = 1; goto LABEL_22; } if ( v10 == 1.0 ) *result = 0.0000099999997; else *result = 0.99998999; LABEL_22: PlayerObject::levelWillFlip(*(_QWORD *)(a1 + 3512)); if ( *(_BYTE *)(a1 + 1058) ) PlayerObject::levelWillFlip(*(_QWORD *)(a1 + 3520)); result = (float *)GJGameState::tweenValue(a1 + 424, *v11, v10, 7, 1053609165, 1, 1067030938, -1, -1); *(_BYTE *)(a1 + 1057) = 1; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source