// // GJBaseGameLayer::loadUpToPosition from 0x5bc8d8 to 0x5bcb7c (676 bytes) // // 1 xrefs: // > GJBaseGameLayer::loadStartPosObject @ 0x5bcc04 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:53:43 +0000 // int __fastcall GJBaseGameLayer::loadUpToPosition(GJBaseGameLayer *this, float a2, int a3, int a4) { float v8; // s18 float v9; // r1 int v10; // r5 int (__fastcall *v11)(GJBaseGameLayer *, float *, int, int, _DWORD, _DWORD); // r6 float v12; // s16 int v13; // r6 const cocos2d::CCPoint *v14; // r0 int v15; // r3 float v16; // s17 float v17; // s21 float v18; // s22 float v19; // s21 float v20; // s21 _BOOL4 v21; // r2 double v22; // r0 int result; // r0 int v24; // s15 _BYTE v25[8]; // [sp+Ch] [bp-8h] BYREF float v26[2]; // [sp+14h] [bp+0h] BYREF v8 = 0.0; (*(void (__fastcall **)(GJBaseGameLayer *))(*(_DWORD *)this + 712))(this); GJBaseGameLayer::resetSongTriggerValues(this); v9 = a2; v10 = 0; v11 = *(int (__fastcall **)(GJBaseGameLayer *, float *, int, int, _DWORD, _DWORD))(*(_DWORD *)this + 704); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, v9, 0.0); v12 = COERCE_FLOAT(v11(this, v26, a3, a4, 0, 0)); if ( v12 > 3600.0 ) v12 = 3600.0; v13 = (int)(float)(ceilf(v12 / 0.016667) + 1.0); v14 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 519) + 96))(*((_DWORD *)this + 519)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v14); (*(void (__fastcall **)(_DWORD, float *))(**((_DWORD **)this + 519) + 92))(*((_DWORD *)this + 519), flt_D2C400); while ( v10 < v13 ) { v15 = *(_DWORD *)this; if ( (float)(v8 + 0.016667) <= v12 ) v16 = 0.016667; else v16 = v12 - v8; *((double *)this + 99) = *((double *)this + 99) + v16; v8 = v8 + v16; *((double *)this + 98) = *((double *)this + 98) + v16; (*(void (__fastcall **)(float *, GJBaseGameLayer *, float))(v15 + 708))(v26, this, COERCE_FLOAT(LODWORD(v8))); v17 = v26[0]; v18 = v17 - *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 519) + 96))(*((_DWORD *)this + 519)); v19 = v26[1]; v20 = v19 - *(float *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 519) + 96))(*((_DWORD *)this + 519)) + 4); (*(void (__fastcall **)(_DWORD, float *))(**((_DWORD **)this + 519) + 92))(*((_DWORD *)this + 519), v26); GJEffectManager::updateEffects(*((GJEffectManager **)this + 381), v16); GJEffectManager::preCollisionCheck(*((GJEffectManager **)this + 381)); std::__tree>::clear((int)this + 2516); GJEffectManager::updateSpawnTriggers(*((GJEffectManager **)this + 381), v16); std::__tree>::clear((int)this + 2516); *(float *)(*((_DWORD *)this + 381) + 916) = v18; *(float *)(*((_DWORD *)this + 381) + 920) = v20; *(float *)(*((_DWORD *)this + 381) + 924) = v18; *(float *)(*((_DWORD *)this + 381) + 928) = v20; GJEffectManager::updateTimers(*((GJEffectManager **)this + 381), v16, 1.0); GJEffectManager::prepareMoveActions(*((GJEffectManager **)this + 381), v16, 0); v21 = v10++ == v13 - 1; GJBaseGameLayer::processMoveActionsStep(this, v16, v21); GJEffectManager::postMoveActions(*((GJEffectManager **)this + 381)); GJBaseGameLayer::updateCollisionBlocks((cocos2d::CCArray **)this); GJBaseGameLayer::checkSpawnObjects(this); *((_DWORD *)this + 183) = *((_DWORD *)this + 184); GJBaseGameLayer::checkSpawnObjects(this); GJEffectManager::postCollisionCheck(*((GJEffectManager **)this + 381)); GJGameState::updateTweenActions((float *)this + 82, v16); GJEffectManager::processColors(*((GJEffectManager **)this + 381)); } *(_QWORD *)(*((_DWORD *)this + 519) + 1976) = 0; HIDWORD(v22) = *((_DWORD *)this + 519) + 1984; *(_QWORD *)HIDWORD(v22) = 0; LODWORD(v22) = *((_DWORD *)this + 519); PlayerObject::setYVelocity(v22, 0.0, 0); GJBaseGameLayer::toggleLockPlayer(this, 0, 1); GJBaseGameLayer::toggleLockPlayer(this, 0, 0); *(_DWORD *)(*((_DWORD *)this + 381) + 916) = 0; *(_DWORD *)(*((_DWORD *)this + 381) + 920) = 0; *(_DWORD *)(*((_DWORD *)this + 381) + 924) = 0; *(_DWORD *)(*((_DWORD *)this + 381) + 928) = 0; result = (*(int (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 519) + 92))(*((_DWORD *)this + 519), v25); v24 = (int)((v12 + v12) / 0.00416666667 + 0.5); *((_DWORD *)this + 202) = v24; *((_DWORD *)this + 204) = v24; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source