// // GJBaseGameLayer::applyTimeWarp from 0x14033efa0 to 0x14033f0ed (333 bytes) // // 4 xrefs: // > @ 0x14076b880 // > @ 0x14078b2f8 // > @ 0x1407d5ee0 // > @ 0x14091fd0c // // 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:38 +0000 // // Hidden C++ exception states: #wind=1 double __fastcall GJBaseGameLayer::applyTimeWarp(__int64 a1, float a2) { float v2; // xmm7_4 float v4; // xmm6_4 __int64 v5; // rax __int64 v6; // rcx double result; // xmm0_8 __int64 v8; // rax _QWORD *v9; // rbx void *v10; // [rsp+50h] [rbp+8h] float v11; // [rsp+58h] [rbp+10h] BYREF v2 = a2; *(float *)(a1 + 824) = a2; v4 = 1.0; if ( fabs(*(float *)(a1 + 13664) - 1.0) >= 0.0099999998 && !*(_BYTE *)(a1 + 2214) ) v2 = *(float *)(a1 + 13664) * a2; v5 = cocos2d::CCDirector::sharedDirector(a1); *(_QWORD *)&result = *(unsigned int *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 112LL))(v5) + 56); if ( *(float *)&result != v2 && *(_BYTE *)(a1 + 13144) ) { v8 = cocos2d::CCDirector::sharedDirector(v6); *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 112LL))(v8) + 56) = v2; if ( !*(_BYTE *)(a1 + 2214) ) v4 = *(float *)(a1 + 13668); v9 = (_QWORD *)qword_14090BF60; if ( !qword_14090BF60 ) { v10 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v9 = (_QWORD *)qword_14090BF60; } v11 = 1.0; FMOD::ChannelControl::getPitch(v9[69], &v11); if ( v4 != v11 ) { FMOD::ChannelControl::setPitch(v9[69]); FMOD::ChannelControl::setPitch(v9[73]); return FMOD::ChannelControl::setPitch(v9[74]); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source