# Max Payne 2 gets a static recompilation project targeting Apple Silicon

> Developer rv4102 has released max-payne-2-recomp, a static recompilation project aiming to bring Max Payne 2 natively to Apple Silicon macOS.

- Published: 2026-11-10T06:28:45Z
- Score: 8/10
- Tags: recomp, port, pc
- Port / platforms: PC (Windows) -> Mac, Linux / Steam Deck (Recompilation)
- Web page: https://emu-radar.customfw.xyz/news/max-payne-2-recomp-macos/
- Sources: https://github.com/rv4102/max-payne-2-recomp

Developer **rv4102** has released **max-payne-2-recomp** (https://github.com/rv4102/max-payne-2-recomp), a static recompilation project that brings Remedy's 2003 shooter *Max Payne 2: The Fall of Max Payne* natively to **Apple Silicon macOS**.

It needs neither Wine nor an emulator. The project translates the original 32-bit x86 Windows binaries, including the executable, engine DLLs, plugin libraries, Direct3D 8 driver, and the MSVC 7.1 runtime, into C code. That generated code is then compiled with clang and linked into a single native dynamic library alongside a small native host.

The loader maps and relocates all twenty-seven PE images, resolving 7,284 imports and turning 904 into high-level emulation stubs. The lifter has converted 1,370 of 1,400 functions in `rlmfc.dll`, and all twenty-seven `DllMain` routines run alongside the main executable entry point. The project reuses the Metal renderer and SDL3 audio code from the Max Payne 1 project, though Bink movie playback and the startup launcher remain on the to-do list.

### How to try it

You need a local installation of the original Windows game. The repository supplies the pipeline and host code but distributes no game files. The project is still a work in progress, and the make-app.sh script meant to build the .app bundle is not yet wired to the full lift.

1. Clone the repository and set up a Python virtual environment:
   ```bash
   git clone [https://github.com/rv4102/max-payne-2-recomp](https://github.com/rv4102/max-payne-2-recomp)
   cd max-payne-2-recomp
   python3 -m venv .venv
   .venv/bin/pip install -r requirements.txt
   ```

2. Point the environment variable to your game directory:
   ```bash
   export MP2_GAME_DIR="/path/to/Max Payne 2 The Fall of Max Payne"
   ```

3. Run the file check and census tools to verify your installation and inspect module requirements:
   ```bash
   .venv/bin/python -m mp2recomp check
   .venv/bin/python -m mp2recomp census --out docs/census.md
   ```

4. Build function inventories and lift the core modules:
   ```bash
   .venv/bin/python -m mp2recomp inventory --group core
   .venv/bin/python -m mp2recomp lift --group core -j 8
   ```

5. Build the native host and execute the loader:
   ```bash
   make -C host
   MAXPAYNE2_DATA=/tmp/mp2-data ./build/mp2host "$MP2_GAME_DIR" \
       --lib build-lift/liblifted_game.dylib --dump-images /tmp/mp2-images
   ```
