use ARM assembly optimized write