Instead of wrapping an existing disassembly library, I implemented the core instruction-decoding pipeline myself, including legacy and REX prefixes, ModR/M, SIB addressing, RIP-relative addressing, instruction boundaries, and control-flow instructions.