// // GJBaseGameLayer::loadUpToPosition from 0x1001fcbfc to 0x1001fcec8 (716 bytes) // // 1 xrefs: // > GJBaseGameLayer::loadStartPosObject @ 0x1001fcb40 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // local variable allocation has failed, the output may be wrong! void __fastcall GJBaseGameLayer::loadUpToPosition(GJBaseGameLayer *a1, float a2, int a3, int a4) { __int64 v4; // x20 __int64 v5; // x21 float v8; // s8 __n128 v9; // q1 float v10; // s0 float v11; // s10 int v12; // w20 __int64 *v13; // x0 float v14; // s0 std::__compressed_pair *>> *p_pair1; // x22 float v16; // s9 float v17; // s12 float v18; // s12 float v19; // s13 float v20; // s13 GJEffectManager *m_effectManager; // x0 PlayerObject *m_player1; // x0 __int64 v23; // [xsp+0h] [xbp-60h] BYREF __int64 v24; // [xsp+8h] [xbp-58h] BYREF v4 = *(_QWORD *)&a4; v5 = *(_QWORD *)&a3; ((void (__fastcall *)(GJBaseGameLayer *))a1->resetSPTriggered)(a1); sub_100017D70( (__int64)&a1->m_gameState.m_proximityVolumeRelated, (_QWORD *)a1->m_gameState.m_proximityVolumeRelated.__tree_.__pair1_.__value_.__left_); a1->m_gameState.m_proximityVolumeRelated.__tree_.__begin_node_ = &a1->m_gameState.m_proximityVolumeRelated.__tree_.__pair1_.__value_; *(_OWORD *)&a1->m_gameState.m_proximityVolumeRelated.__tree_.__pair1_.__value_.__left_ = 0u; a1->m_gameState.m_levelTime = 0.0; v8 = 0.0; v9.n128_u32[0] = 0; sub_100022980((__n128)LODWORD(a2), v9, &v24); v10 = ((float (__fastcall *)(GJBaseGameLayer *, __int64 *, __int64, __int64, _QWORD, _QWORD))a1->timeForPos)( a1, &v24, v5, v4, 0, 0); if ( v10 <= 3600.0 ) v11 = v10; else v11 = 3600.0; v12 = (int)(float)(ceilf(v11 / 0.016667) + 1.0); v13 = (__int64 *)((__int64 (__fastcall *)(PlayerObject *))a1->m_player1->getPosition)(a1->m_player1); v14 = sub_1000229B8(&v24, v13); ((void (__fastcall *)(PlayerObject *, __int64 *, float))a1->m_player1->setPosition)( a1->m_player1, &qword_10086C9A0, v14); if ( v12 >= 1 ) { p_pair1 = &a1->m_spawnTuples.__tree_.__pair1_; do { if ( (float)(v8 + 0.016667) <= v11 ) v16 = 0.016667; else v16 = v11 - v8; v8 = v8 + v16; *(float64x2_t *)&a1->m_gameState.m_totalTime = vaddq_f64( *(float64x2_t *)&a1->m_gameState.m_totalTime, (float64x2_t)vdupq_lane_s64(COERCE__INT64(v16), 0)); ((void (__fastcall *)(__int64 *__return_ptr, GJBaseGameLayer *, float))a1->posForTime)(&v23, a1, v8); v17 = *(float *)&v23; v18 = v17 - *(float *)((__int64 (__fastcall *)(PlayerObject *))a1->m_player1->getPosition)(a1->m_player1); v19 = *((float *)&v23 + 1); v20 = v19 - *(float *)(((__int64 (__fastcall *)(PlayerObject *))a1->m_player1->getPosition)(a1->m_player1) + 4); ((void (__fastcall *)(PlayerObject *, __int64 *))a1->m_player1->setPosition)(a1->m_player1, &v23); GJEffectManager::updateEffects(a1->m_effectManager, v16); GJEffectManager::preCollisionCheck(a1->m_effectManager); sub_100017D70((__int64)&a1->m_spawnTuples, (_QWORD *)a1->m_spawnTuples.__tree_.__pair1_.__value_.__left_); a1->m_spawnTuples.__tree_.__begin_node_ = &p_pair1->__value_; *(_OWORD *)&p_pair1->__value_.__left_ = 0u; GJEffectManager::updateSpawnTriggers(a1->m_effectManager, v16); sub_100017D70((__int64)&a1->m_spawnTuples, (_QWORD *)a1->m_spawnTuples.__tree_.__pair1_.__value_.__left_); a1->m_spawnTuples.__tree_.__begin_node_ = &p_pair1->__value_; *(_OWORD *)&p_pair1->__value_.__left_ = 0u; m_effectManager = a1->m_effectManager; m_effectManager->m_unk780 = v18; m_effectManager->m_unk784 = v20; m_effectManager->m_unk788 = v18; m_effectManager->m_unk78C = v20; GJEffectManager::updateTimers(m_effectManager, v16, 1.0); GJEffectManager::prepareMoveActions(a1->m_effectManager, v16, 0); GJBaseGameLayer::processMoveActionsStep(a1, v16, --v12 == 0); GJEffectManager::postMoveActions(a1->m_effectManager); GJBaseGameLayer::updateCollisionBlocks(a1); GJBaseGameLayer::checkSpawnObjects(a1); a1->m_gameState.m_currentChannel = a1->m_gameState.m_rotateChannel; GJBaseGameLayer::checkSpawnObjects(a1); GJEffectManager::postCollisionCheck(a1->m_effectManager); GJEffectManager::processColors(a1->m_effectManager); } while ( v12 ); } m_player1 = a1->m_player1; *(_OWORD *)&m_player1->m_maybeReverseSpeed = 0u; PlayerObject::setYVelocity(m_player1, 0.0, 0); PlayerObject::enablePlayerControls(a1->m_player1); PlayerObject::enablePlayerControls(a1->m_player2); *(_OWORD *)&a1->m_effectManager->m_unk780 = 0u; ((void (__fastcall *)(PlayerObject *, __int64 *))a1->m_player1->setPosition)(a1->m_player1, &v24); }
GD Web Decomp Icon

GD Web Decomp

Raw Source