// // PlayerObject::updateTimeMod from 0x1003e9870 to 0x1003e99e5 (373 bytes) // // 12 xrefs: // > GJBaseGameLayer::setupLevelStart @ 0x1001010d1 // > GJBaseGameLayer::setupLevelStart @ 0x100101108 // > GJBaseGameLayer::setupLevelStart @ 0x100101124 // > GJBaseGameLayer::updateTimeMod @ 0x1001022c6 // > GJBaseGameLayer::updateTimeMod @ 0x1001022eb // > GJBaseGameLayer::update @ 0x10012fbdc // > GJBaseGameLayer::update @ 0x10012fbf9 // > PlayerObject::init @ 0x1003e83f5 // > PlayerObject::resetObject @ 0x1003ff59b // > PlayerObject::copyAttributes @ 0x100408513 // > PlayerObject::loadFromCheckpoint @ 0x100409ccd // > MenuGameLayer::resetPlayer @ 0x1004f9810 // // 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:29:49 +0000 // __int64 __fastcall PlayerObject::updateTimeMod(__int64 a1, __int64 a2, float a3) { __int64 v4; // rax __int64 v5; // rdx __int128 v6; // xmm1 __int64 v7; // xmm2_8 __int64 result; // rax __int64 v9; // r14 int v10; // edi float v11; // [rsp+4h] [rbp-1Ch] BYREF float v12[6]; // [rsp+8h] [rbp-18h] BYREF if ( !*(_BYTE *)(a1 + 1969) && !((unsigned __int8)a2 | *(_BYTE *)(a1 + 1972) ^ 1) && *(float *)(a1 + 2476) != a3 ) { v12[1] = a3; v4 = GameManager::sharedState(); GJBaseGameLayer::playSpeedParticle(*(_BYTE **)(v4 + 544), a2, v5, a3); } *(float *)(a1 + 2476) = a3; if ( a3 == 0.89999998 ) { v6 = xmmword_100A09D40; v7 = 0x4017147B60000000LL; LABEL_7: *(_OWORD *)(a1 + 1936) = v6; goto LABEL_15; } if ( a3 == 0.69999999 ) { v7 = 0x4017EB85A4F00EF1LL; *(_OWORD *)(a1 + 1936) = xmmword_100A09D50; } else if ( a3 == 1.1 ) { v7 = 0x40177AE1CDE5D181LL; *(_OWORD *)(a1 + 1936) = xmmword_100A09D60; } else { v6 = xmmword_100A09D70; v7 = 0x401800008637BD06LL; if ( a3 == 1.3 || a3 == 1.6 ) goto LABEL_7; v7 = 0x4017147B60000000LL; } LABEL_15: *(_QWORD *)(a1 + 1928) = v7; result = PlayerObject::updateRobotAnimationSpeed(a1); if ( *(_BYTE *)(a1 + 2419) == 1 ) result = PlayerObject::runRotateAction(a1, 0); v9 = *(_QWORD *)(a1 + 1912); if ( v9 ) { v10 = *(_DWORD *)(a1 + 2276); v11 = 0.0; v12[0] = 0.0; sub_1003E6780(v10, &v11, v12, *(float *)(a1 + 2476), (__m128)*(unsigned int *)(a1 + 2472)); cocos2d::CCMotionStreak::updateFade(v9, v11); return cocos2d::CCMotionStreak::setStroke(v9, v12[0]); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source