// // MenuGameLayer::resetPlayer from 0x10044239c to 0x100442904 (1384 bytes) // // 3 xrefs: // > MenuGameLayer::init @ 0x100441f2c // > MenuGameLayer::update @ 0x100442b0c // > MenuGameLayer::destroyPlayer @ 0x100442dd8 // // This function is hookable on this platform (idp: arm, 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:05:12 +0000 // void __fastcall MenuGameLayer::resetPlayer(__int64 a1) { __int64 v2; // x20 float v3; // s8 __int64 v4; // x0 bool v5; // w8 _BYTE *v6; // x20 __int64 v7; // x21 unsigned int v8; // w0 __int64 v9; // x0 __int64 v10; // x20 __int64 v11; // x21 unsigned int v12; // w0 __int64 v13; // x0 unsigned int v14; // w0 float v15; // s0 _BYTE *v16; // x0 __int64 v17; // x20 int v18; // w1 unsigned int v19; // w20 __int64 v20; // x21 unsigned int v21; // w0 int v22; // w20 __int64 v23; // x21 __int64 v24; // x21 unsigned int v25; // w0 __int64 v26; // x21 __int64 v27; // x0 __int64 v28; // x20 unsigned int v29; // w0 __int64 v30; // x20 unsigned int v31; // w0 __int64 v32; // x20 _BOOL4 v33; // w1 float v34; // s0 __int64 v35; // x0 float v36; // s0 __int64 v37; // x0 __int64 v38; // x20 unsigned int v39; // w0 __int64 v40; // x20 unsigned int v41; // w0 unsigned __int16 v42; // [xsp+0h] [xbp-40h] BYREF char v43; // [xsp+2h] [xbp-3Eh] __int16 v44; // [xsp+4h] [xbp-3Ch] BYREF char v45; // [xsp+6h] [xbp-3Ah] float v46; // [xsp+8h] [xbp-38h] BYREF PlayerObject::deactivateStreak(*(_QWORD *)(a1 + 432), 1); PlayerObject::deactivateParticle(*(_QWORD *)(a1 + 432)); v2 = *(_QWORD *)(a1 + 432); v3 = (float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 5.0) * -100.0) + -100.0; v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 192LL))(*(_QWORD *)(a1 + 432)); sub_1000262BC(&v46, v3, *(float *)(v4 + 4)); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v2 + 184LL))(v2, &v46); PlayerObject::resetAllParticles(*(_QWORD *)(a1 + 432)); PlayerObject::togglePlayerScale(*(_QWORD *)(a1 + 432), 0, 0); v5 = vcvts_n_f32_s32(rand(), 0x1Fu) > 0.8; v6 = *(_BYTE **)(a1 + 432); v6[1786] = v5; v7 = GameManager::sharedState(); v8 = rand(); v9 = GameManager::colorForIdx(v7, (int)(float)(vcvts_n_f32_s32(v8, 0x1Fu) * 108.0)); v44 = v9; v45 = BYTE2(v9); (*(void (__fastcall **)(_BYTE *, __int16 *))(*(_QWORD *)v6 + 960LL))(v6, &v44); v10 = *(_QWORD *)(a1 + 432); v11 = GameManager::sharedState(); v12 = rand(); v13 = GameManager::colorForIdx(v11, (int)(float)(vcvts_n_f32_s32(v12, 0x1Fu) * 108.0)); v42 = v13; v43 = BYTE2(v13); PlayerObject::setSecondColor(v10, &v42); PlayerObject::flipGravity(*(_QWORD *)(a1 + 432), 0, 0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 432) + 40LL))(*(_QWORD *)(a1 + 432), 0.0); v14 = rand(); if ( (*(_BYTE *)(a1 + 404) & 1) != 0 ) goto LABEL_32; v15 = vcvts_n_f32_s32(v14, 0x1Fu); v16 = *(_BYTE **)(a1 + 432); if ( v15 < 0.12 && (v16[2417] & 1) == 0 ) { v19 = 1; PlayerObject::toggleFlyMode((__int64)v16, 1, 0); v20 = *(_QWORD *)(a1 + 432); v21 = rand(); PlayerObject::updatePlayerShipFrame(v20, llroundf(vcvts_n_f32_s32(v21, 0x1Fu) * 169.0)); LABEL_23: v26 = *(_QWORD *)(a1 + 432); if ( (int)llroundf(vcvts_n_f32_s32(rand(), 0x1Fu) * 485.0) >= 2 ) v19 = llroundf(vcvts_n_f32_s32(rand(), 0x1Fu) * 485.0); v27 = v26; v18 = v19; LABEL_30: PlayerObject::updatePlayerFrame(v27, v18); goto LABEL_31; } if ( v15 < 0.24 && (v16[2419] & 1) == 0 ) { v22 = 1; PlayerObject::releaseButton((__int64)v16, 1); PlayerObject::toggleRollMode(*(_QWORD *)(a1 + 432), 1, 0); v23 = *(_QWORD *)(a1 + 432); if ( (int)llroundf(vcvts_n_f32_s32(rand(), 0x1Fu) * 118.0) >= 2 ) v22 = llroundf(vcvts_n_f32_s32(rand(), 0x1Fu) * 118.0); PlayerObject::updatePlayerRollFrame(v23, v22); goto LABEL_31; } if ( v15 < 0.36 && (v16[2418] & 1) == 0 ) { v19 = 1; PlayerObject::toggleBirdMode((__int64)v16, 1, 0); v24 = *(_QWORD *)(a1 + 432); v25 = rand(); PlayerObject::updatePlayerBirdFrame(v24, llroundf(vcvts_n_f32_s32(v25, 0x1Fu) * 149.0)); goto LABEL_23; } if ( v15 >= 0.48 || (v16[2420] & 1) != 0 ) { if ( v15 >= 0.6 || (v16[2421] & 1) != 0 ) { if ( v15 < 0.7 && (v16[2422] & 1) == 0 ) { PlayerObject::releaseButton((__int64)v16, 1); PlayerObject::toggleSpiderMode(*(_QWORD *)(a1 + 432), 1, 0); v38 = *(_QWORD *)(a1 + 432); v39 = rand(); PlayerObject::updatePlayerSpiderFrame(v38, llroundf(vcvts_n_f32_s32(v39, 0x1Fu) * 69.0)); goto LABEL_31; } if ( v15 < 0.8 && (v16[2428] & 1) == 0 ) { PlayerObject::releaseButton((__int64)v16, 1); PlayerObject::toggleSwingMode(*(_QWORD *)(a1 + 432), 1, 0); v40 = *(_QWORD *)(a1 + 432); v41 = rand(); PlayerObject::updatePlayerSwingFrame(v40, llroundf(vcvts_n_f32_s32(v41, 0x1Fu) * 43.0)); goto LABEL_31; } PlayerObject::switchedToMode((__int64)v16, 6); v17 = *(_QWORD *)(a1 + 432); if ( (int)llroundf(vcvts_n_f32_s32(rand(), 0x1Fu) * 485.0) < 2 ) v18 = 1; else v18 = llroundf(vcvts_n_f32_s32(rand(), 0x1Fu) * 485.0); v27 = v17; goto LABEL_30; } PlayerObject::toggleRobotMode((__int64)v16, 1, 0); v30 = *(_QWORD *)(a1 + 432); v31 = rand(); PlayerObject::updatePlayerRobotFrame(v30, llroundf(vcvts_n_f32_s32(v31, 0x1Fu) * 68.0)); } else { PlayerObject::toggleDartMode((__int64)v16, 1, 0); v28 = *(_QWORD *)(a1 + 432); v29 = rand(); PlayerObject::updatePlayerDartFrame(v28, llroundf(vcvts_n_f32_s32(v29, 0x1Fu) * 96.0)); } LABEL_31: v32 = *(_QWORD *)(a1 + 432); v33 = vcvts_n_f32_s32(rand(), 0x1Fu) <= 0.1; PlayerObject::togglePlayerScale(v32, v33, 0); LABEL_32: PlayerObject::updateGlowColor(*(_QWORD *)(a1 + 432)); v34 = vcvts_n_f32_s32(rand(), 0x1Fu); if ( v34 >= 0.2 ) { if ( v34 >= 0.4 ) { if ( v34 >= 0.6 ) { v35 = *(_QWORD *)(a1 + 432); if ( v34 >= 0.65 ) v36 = 0.9; else v36 = 1.6; } else { v35 = *(_QWORD *)(a1 + 432); v36 = 0.7; } } else { v35 = *(_QWORD *)(a1 + 432); v36 = 1.1; } } else { v35 = *(_QWORD *)(a1 + 432); v36 = 1.3; } PlayerObject::updateTimeMod(v35, 0, v36); v37 = *(_QWORD *)(a1 + 432); if ( *(_BYTE *)(v37 + 2420) == 1 ) { PlayerObject::resetStreak(v37); PlayerObject::placeStreakPoint_1(*(_QWORD *)(a1 + 432)); v37 = *(_QWORD *)(a1 + 432); } PlayerObject::updateEffects(v37); }
GD Web Decomp Icon

GD Web Decomp

Raw Source