This is a C# port of lz4 using AssetRipper.Translation.LlvmIR.
clang -g -fno-discard-value-names -fstandalone-debug -w -S -emit-llvm -DLZ4_FORCE_MEMORY_ACCESS=0 -DLZ4_FAST_DEC_LOOP=0 -DLZ4_FORCE_INLINE="static" -o lz4.ll NativeCode/lib/lz4.c
clang -g -fno-discard-value-names -fstandalone-debug -w -S -emit-llvm -DLZ4_FORCE_MEMORY_ACCESS=0 -DLZ4_FAST_DEC_LOOP=0 -DLZ4_FORCE_INLINE="static" -o lz4hc.ll NativeCode/lib/lz4hc.c
llvm-link.exe lz4.ll lz4hc.ll -o lz4combined.bc