optimized x86 assembly