	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cp_set_surface_sync
_cp_set_surface_sync:                   ## @cp_set_surface_sync
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	leal	255(%r12), %ebx
	sarl	$8, %ebx
	cmpl	$-1, %r12d
	cmovel	%r12d, %ebx
	movl	$5, %edi
	callq	_BEGIN_RING
	movq	_R600_IT_SURFACE_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_CP_PACKET3
	movl	%eax, %edi
	callq	_OUT_RING
	movl	%r14d, %edi
	callq	_OUT_RING
	movl	%ebx, %edi
	callq	_OUT_RING
	sarl	$8, %r15d
	movl	%r15d, %edi
	callq	_OUT_RING
	movl	$10, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ADVANCE_RING                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_LOCALS,4,2                ## @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_R600_IT_SURFACE_SYNC,4,2       ## @R600_IT_SURFACE_SYNC
	.no_dead_strip	_cp_set_surface_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cp_set_surface_sync
_cp_set_surface_sync:                   ; @cp_set_surface_sync
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	add	w8, w20, #255
	asr	w8, w8, #8
	cmn	w20, #1
	csinv	w20, w8, wzr, ne
	mov	w0, #5
	bl	_BEGIN_RING
Lloh2:
	adrp	x8, _R600_IT_SURFACE_SYNC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R600_IT_SURFACE_SYNC@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_CP_PACKET3
	bl	_OUT_RING
	mov	x0, x21
	bl	_OUT_RING
	mov	x0, x20
	bl	_OUT_RING
	asr	w0, w19, #8
	bl	_OUT_RING
	mov	w0, #10
	bl	_OUT_RING
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ADVANCE_RING
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_R600_IT_SURFACE_SYNC,4,2       ; @R600_IT_SURFACE_SYNC
	.no_dead_strip	_cp_set_surface_sync
.subsections_via_symbols
