# Xenoblade Chronicles 2: matching decompilation of the Switch executable

> xc2-decomp reconstructs Xenoblade Chronicles 2 version 1.0.0 C++ for Nintendo Switch and checks functions against the original AArch64 executable. Its Nix environment provides Clang 3.9.1 and analysis tools; check compiles reconstructed functions and reports byte differences. The author reports 37,087 of 48,739 named functions matched.

- Type: Case study
- Targets: Binary · Game
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/KevinBonnoron/xc2-decomp>
- Primary source: <https://github.com/KevinBonnoron/xc2-decomp/blob/0386b128c26cfa992440ebb2f4990abf6cec736b/README.md>
- Catalog page: <https://awesomerea.org/resources/xc2-decomp-case/>
- Record JSON: <https://awesomerea.org/resources/xc2-decomp-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/xc2-decomp-case/index.md)

## Requirements & limits

- Requires a user-supplied Xenoblade Chronicles 2 version 1.0.0 XCI dump and matching console prod.keys.
- Requires Nix with flakes enabled; the development shell supplies the compiler and analysis tools.
- The author reports 37,087 of 48,739 named functions matched.

## Primary sources

1. <https://github.com/KevinBonnoron/xc2-decomp/blob/0386b128c26cfa992440ebb2f4990abf6cec736b/README.md>
2. <https://github.com/KevinBonnoron/xc2-decomp/blob/0386b128c26cfa992440ebb2f4990abf6cec736b/AGENTS.md>

## More in Games

- [Xenoblade Chronicles 2: Switch source reconstruction](https://awesomerea.org/resources/xenoblade-chronicles-2-case/index.md) · Case study
- [Xenogears Decompilation: matching the US PlayStation release](https://awesomerea.org/resources/xenogears-decompilation-case/index.md) · Case study
- [xenogears-decomp-port: matching Xenogears decompilation and native PC port](https://awesomerea.org/resources/xenogears-decomp-port-case/index.md) · Case study
- [Xenosaga Episode I: an early PS2 matching decompilation](https://awesomerea.org/resources/xenosaga-i-decomp-case/index.md) · Case study
- [xmen2-pc: a matching decompilation and native port of X-Men 2: Clone Wars](https://awesomerea.org/resources/xmen2-pc-case/index.md) · Case study
- [xmen2disasm: rebuilding X-Men 2 from a matching disassembly](https://awesomerea.org/resources/xmen2disasm-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
