Lil Nas X and his attorney appeared in a Los Angeles courtroom to attend a hearing on behalf of the rapper's battery arrest in August