Ultimately borrowed from Old Turkic 𐰖𐰺𐰴 (yarak, “weapon”), from yar (yar, “to split in two”) + -ak (-ak).
yarák