Retrieved article excerpt
Open article · Retrieved 2026-11-09T19:22:57.058454+00:00
bo2-mac: Call of Duty: Black Ops II statically recompiled from x86-32 Windows to native ARM64 macOS, from your own Steam copy. On an Apple M1: campaign 51 to 60 frames per second, Zombies 57 to 60, multiplayer against bots 53 to 60.
# bo2-mac
**Call of Duty: Black Ops II, statically recompiled from 32-bit x86 Windows to native ARM64 macOS.**
Campaign, Zombies and multiplayer against bots, built on your Mac from your own Steam copy.
**English** · [中文](https://github.com/adrbn/bo2-mac/blob/main/README.zh.md)
[Play it](https://github.com/adrbn/bo2-mac#install)
[Results](https://github.com/adrbn/bo2-mac#results)
[Pipeline](https://github.com/adrbn/bo2-mac#pipeline)
[Findings](https://github.com/adrbn/bo2-mac#findings)
[Roadmap](https://github.com/adrbn/bo2-mac#roadmap)
[source: x86-32 Windows](https://camo.githubusercontent.com/0807e62d59ce38b54e9a3af3ea1c0a87a6caf189f0de28b0dd579240b33558e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d7838362d2d333225323057696e646f77732d6666366130303f7374796c653d666c61742d737175617265266c6162656c436f6c6f723d306230623063)
[target: ARM64 macOS](https://camo.githubusercontent.com/78894a82a8a896c9c6dd75721eed7a23baf6b74f388fe6f41492291f2f9d2d2d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7461726765742d41524d36342532306d61634f532d6666366130303f7374796c653d666c61742d737175617265266c6162656c436f6c6f723d306230623063)
[lifter: Remill, LLVM 17](https://camo.githubusercontent.com/191bacbab0dd85ea1c8c3f7a00e0ef52eff0e3f3ea9adcf100578b0a30fcced3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c69667465722d52656d696c6c2532302545322538362539322532304c4c564d25323031372d6666366130303f7374796c653d666c61742d737175617265266c6162656c436f6c6f723d306230623063)
[renderer: D3D11 to Metal](https://camo.githubusercontent.com/fe4acbf2e965e1ad109bd095e93cc38eec44036ba0c0370bcf9f8ab1332c79b0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656e64657265722d44334431312532302545322538362539322532304d6574616c2d6666366130303f7374796c653d666c61742d737175617265266c6162656c436f6c6f723d306230623063)
[Wine: none](https://camo.githubusercontent.com/54bf006416955e26efa307f1f39442f3c7f2103530555e33a0a68d82d5212ed1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f57696e652d6e6f6e652d6666366130303f7374796c653d666c61742d737175617265266c6162656c436f6c6f723d306230623063)
[game files in this repository: none](https://camo.githubusercontent.com/f26bc9108faa2c359a3f1b92688f53991426e02f9018bb68d4e5728455d1101e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f67616d6525323066696c65732d6e6f6e652d6634663165613f7374796c653d666c61742d737175617265266c6162656c436f6c6f723d306230623063)
[status: beta](https://camo.githubusercontent.com/bb6f665d8f8211db3356c6baaa20fa7d435ddd92bb5bc7c6db8d472dea5b7fa5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d626574612d6634663165613f7374796c653d666c61742d737175617265266c6162656c436f6c6f723d306230623063)
[Abstract](https://github.com/adrbn/bo2-mac#abstract) · [Method](https://github.com/adrbn/bo2-mac#method) · [Limits](https://github.com/adrbn/bo2-mac#limits) · [Repository](https://github.com/adrbn/bo2-mac#repository) · [Legal](https://github.com/adrbn/bo2-mac#legal)
Beta, 2026-11-03 · measured on one Apple M1 (4 performance + 4 efficiency cores, 16 GB)
[Campaign, Zombies and multiplayer running natively on macOS](https://github.com/adrbn/bo2-mac/raw/main/docs/assets/gameplay.mp4)
Campaign (Angola), Zombies (Town) and multiplayer (Hijacked, against bots) on an Apple M1, recorded while playing; the number in the top right corner is frames per second, and the screen recording itself costs some, mostly in the campaign. [80-second video (MP4, 20 MB)](https://github.com/adrbn/bo2-mac/raw/main/docs/assets/gameplay.mp4)
Important
**This repository contains no game file and no translated game code.** It turns your own Steam copy of Black Ops
II into an app for your Mac, on your Mac. The game's code ends up inside that app, so nobody can hand you a
ready-made one: each player builds their own, and it may not be shared. Unofficial fan project, not affiliated with
Activision, Treyarch or Microsoft. To play, buy the game. Beta: read [what has and has not been proven](https://github.com/adrbn/bo2-mac/blob/main/docs/PRERELEASE.md).
---
## Abstract
bo2-mac takes the three executables of Black Ops II, the campaign (`t6sp.exe`), Zombies (`t6zm.exe`) and
multiplayer (`t6mp.exe`), and turns their x86 machine code into ARM64 machine code ahead of time.
[Remill](https://github.com/lifting-bits/remill) lifts each function to LLVM IR, a chain of our own passes rewrites
that IR, and the result is linked with a Win32 runtime written by hand, whose Direct3D 11 is drawn by Metal. There is
no Wine and no JIT: the game runs as native code, in one process. About 150,000 functions are translated across the
three executables. Only the short sequences that the copy protection hides run in a small x86 interpreter, and so does
any code the translation missed, so a hole is built to cost speed rather than crash the game.
On an Apple M1 the campaign runs at **51–60 frames per second**, and every mission loads and hands over to the next
one, down to the end credits. Zombies is played solo on **six maps** through the game's own menus at **57–60**.
Multiplayer is played against bots through its real menus, eleven game modes, at **53–60**. One app,
`Black Ops II.app`, opens the campaign, and the CAMPAIGN / ZOMBIES / MULTIPLAYER entries of each menu switch to the
other game.
Nothing is downloaded from anyone but you: the converter reads the executables of the copy you bought, checks them
byte for byte, and builds the app on your machine.
## Results
| | measured | conditions |
| --- | --- | --- |
| Campaign | **51–60 fps** | every mission loads and chains to the end credits; not all played end to end |
| Zombies | **57–60 fps** (Die Rise 43–58) | TranZit, Mob of the Dead, Nuketown, Origins, Buried, Die Rise, solo, through the real menus |
| Multiplayer against bots | **53–60 fps** | eleven game modes through the real menus: a full round, the scoreboard, back to the lobby |
| Game world against real time | **≈ 1.0×** | the game's own server clock against wall time |
| Conversion on the player's Mac | **about 1 hour 45** on an M1 (the campaign alone: about 45 minutes) | the campaign is playable as soon as it is converted; Zombies and multiplayer follow |
| Disk | peak about **10 GB**, about **4 GB** kept | after the conversion, only the linked binaries stay |
Frame rate counts the drawables really presented to the screen, checked against the screen and the Metal HUD.
**What you can play**
| | | |
| --- | --- | --- |
| [Campaign](https://github.com/adrbn/bo2-mac/blob/main/docs/assets/card-public-campaign.svg) The real main menu: NEW STORY, RESUME STORY, REPLAY MISSION. From `angola` to the end credits, the missions load and hand over to the next one. Strike Force missions start with a click. | [Zombies](https://github.com/adrbn/bo2-mac/blob/main/docs/assets/card-public-zombies.svg) The six maps, solo: main menu, lobby, match, Game Over, scoreboard, then another match in the same process. DLC maps play if your Steam account owns them. | [Multiplayer](https://github.com/adrbn/bo2-mac/blob/main/docs/assets/card-public-multi.svg) Custom Games against bots from the real menus: CHOOSE CLASS, the HUD, a full round, the scoreboard and back to the lobby. The match rules are this project's own script. |
All three modes: keyboard and mouse, or a DualSense as XInput through GameController.framework; sound on; movement
keys follow their position on your keyboard (ZQSD on AZERTY, WASD on QWERTY), unless you bound them yourself in the
game's options.
## Pipeline
In five steps, all on the player's Mac:
1. **Check.** The converter accepts only the exact Steam build of each executable, checked by SHA-256. The
launcher asks the Steam client on your Mac whether the signed-in account owns the game, and refuses otherwise.
2. **Catalogue and lift.** Ghidra lists the functions of your own executable; Remill v6.0.1 lifts each one to
LLVM IR. Five patches to the lifter are carried in [tools/remill-patches/](https://github.com/adrbn/bo2-mac/blob/main/tools/remill-patches), among them the
x87 rounding mode, and one that forks a running Remill for each function instead of reloading its x86 semantics.
3. **Fold.** Remill's IR is correct but slow: every guest memory access, flag and x87 push is a call or a store
into a `State` structure. Our passes rewrite it before `clang -O2`: guest reads and writes are inlined, `lock`
sequences become hardware atomics, the guest `ret` stays inside the lifted code, and the x87 stack is promoted to
locals.
4. **Runtime.** [runtime/](https://github.com/adrbn/bo2-mac/blob/main/runtime) implements the Windows imports the game really calls, with exact stdcall
arities (the Steam API ones taken from Valve's public headers). Guest memory is one 4 GiB mapping. Direct3D 11 is
a fake-COM layer over Metal; DXBC shaders go through [HLSLcc](https://github.com/adrbn/bo2-mac/blob/main/third_party/HLSLcc). XAudio2 goes to CoreAudio, and
the videos are decoded natively with libvpx.
5. **Threads.** Guest threads start as coroutines on one host thread, which removes most sources of
non-determinism and makes a run replayable. The fast configuration moves the server, the render backend, sound mixing and decoding, and the job
workers onto real host threads. ARM is not TSO, so this needed real memory barriers.
**The copy protection is executed, not bypassed.** The game hides integrity checks behind hardware exceptions,
single-step traps and code it decrypts into the heap. A small x86 machine built on Unicorn
([x86\_guest\_vm.cpp](https://github.com/adrbn/bo2-mac/blob/main/runtime/win32/x86_guest_vm.cpp), [heap\_code.cpp](https://github.com/adrbn/bo2-mac/blob/main/runtime/win32/heap_code.cpp)) runs exactly those
sequences and hands control back to the recompiled code. No check result is forced and no key is placed by hand.
**A hole in the translation is built to cost speed, not a crash.** When the game reaches x86 code that was never lifted, the
same machine runs its original bytes ([interp.cpp](https://github.com/adrbn/bo2-mac/blob/main/runtime/win32/interp.cpp)) and gives control back to the
recompiled code at the next translated block, call or return. Each interpreted address is logged (`[INTERP]`).
**The online service is answered locally.** Zombies and multiplayer expect Demonware; a responder written from the
game's own requests ([dw\_local.cpp](https://github.com/adrbn/bo2-mac/blob/main/runtime/win32/dw_local.cpp)) answers the lobby, storage and ticket on your Mac.
Nothing leaves the machine.
Why not Wine, CrossOver, DXVK or DXMT?
They translate Windows calls at run time and keep the x86 code under Rosetta. Here the x86 code itself is gone: it is
ARM64 machine code before the game starts. DXVK and DXMT are PE DLLs that reach their native backend through Wine's
unixlib mechanism; this port has no Wine, and its Direct3D 11 is its own layer over 32-bit guest memory. Only shader
translation was needed from outside, and HLSLcc, a plain C++ library, covers it.
## Findings
Each entry is a symptom seen on screen, the cause that was measured, and the effect of the fix.
**Thirteen findings**, from the x87 rounding mode to a false start inside one instruction
**F1 · The lifter ignored the x87 rounding mode.** In Zombies the prone view shook. `fistp` rounded to nearest where
the game had asked for truncation, inside the network codec of the view height. The height received by the client was
wrong on 8 samples out of 8, and on 0 out of 8 after a Remill patch and a re-lift of the codec.
**F2 · One reserved bit of the x87 control word.** A campaign mission froze in an effects loop, only with real
threads. The lifter stored bit 6 of the control word dif