Apple previously enjoyed four years of consistent growth following US sanctions that placed Huawei on an entity list in 2019.