Samsung operates one of the few foundries capable of rivalling industry-leading TSMC in producing advanced chips.