	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_cs_common_vline_parse     ## -- Begin function r600_cs_common_vline_parse
	.p2align	4, 0x90
_r600_cs_common_vline_parse:            ## @r600_cs_common_vline_parse
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %r13
	movl	(%rdi), %edx
	leaq	-88(%rbp), %rsi
	callq	_radeon_cs_packet_parse
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_24
## %bb.1:
	movq	-88(%rbp), %rax
	movq	_RADEON_PACKET_TYPE3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	-80(%rbp), %rax
	movq	_PACKET3_WAIT_REG_MEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movl	-72(%rbp), %esi
	incl	%esi
	movq	%rbx, %rdi
	callq	_radeon_get_ib_value
	testb	$16, %al
	jne	LBB0_5
## %bb.6:
	testl	$256, %eax                      ## imm = 0x100
	jne	LBB0_7
## %bb.8:
	andl	$7, %eax
	cmpl	$3, %eax
	jne	LBB0_9
## %bb.10:
	movl	-72(%rbp), %esi
	addl	$2, %esi
	movq	%rbx, %rdi
	callq	_radeon_get_ib_value
	shll	$2, %eax
	cmpl	(%r14), %eax
	jne	LBB0_11
## %bb.12:
	movl	-72(%rbp), %esi
	addl	$5, %esi
	movq	%rbx, %rdi
	callq	_radeon_get_ib_value
	movq	_RADEON_VLINE_STAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.14:
	movl	(%rbx), %eax
	movl	-68(%rbp), %ecx
	leal	(%rax,%rcx), %edx
	addl	$2, %edx
	leaq	-112(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_radeon_cs_packet_parse
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_24
## %bb.15:
	movslq	(%rbx), %r12
	leal	-2(%r12), %esi
	leal	2(%r12), %ecx
	movl	-68(%rbp), %eax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	addl	%ecx, %eax
	movl	-92(%rbp), %ecx
	addl	%ecx, %eax
	addl	$2, %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_radeon_get_ib_value
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leal	8(%r12), %esi
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_radeon_get_ib_value
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_R600_CP_PACKET0_GET_REG
	movl	%eax, %r12d
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_drm_crtc_find
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_to_radeon_crtc
	cmpl	$0, (%rbx)
	je	LBB0_18
## %bb.19:
	cmpl	(%r15), %r12d
	jne	LBB0_21
## %bb.20:
	movslq	(%rax), %rax
	movq	_R600_CP_PACKET0_REG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	andl	%ecx, %edx
	movl	(%r15,%rax,4), %ecx
	sarl	$2, %ecx
	orl	%edx, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, -8(%r13,%rdx,4)
	movl	(%r14,%rax,4), %eax
	sarl	$2, %eax
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	%eax, (%r13,%rcx,4)
	xorl	%r12d, %r12d
	jmp	LBB0_24
LBB0_3:
	leaq	L_.str(%rip), %rdi
LBB0_22:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_23:
	subl	(%rax), %r12d
LBB0_24:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_22
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_22
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_22
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_22
LBB0_13:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_22
LBB0_16:
	leaq	L_.str.6(%rip), %rdi
	xorl	%r12d, %r12d
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_18:
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_PACKET2
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%r13,%rbx,4)
	xorl	%edi, %edi
	callq	_PACKET2
	movl	%eax, 4(%r13,%rbx,4)
	xorl	%edi, %edi
	callq	_PACKET2
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	%eax, (%r13,%rcx,4)
	xorl	%edi, %edi
	callq	_PACKET2
	movl	%eax, 12(%r13,%rbx,4)
	xorl	%edi, %edi
	callq	_PACKET2
	movl	%eax, 16(%r13,%rbx,4)
	xorl	%edi, %edi
	callq	_PACKET2
	movl	%eax, 20(%r13,%rbx,4)
	xorl	%edi, %edi
	callq	_PACKET2
	movl	%eax, 24(%r13,%rbx,4)
	jmp	LBB0_24
LBB0_21:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_PACKET_TYPE3,8,3        ## @RADEON_PACKET_TYPE3
	.comm	_PACKET3_WAIT_REG_MEM,8,3       ## @PACKET3_WAIT_REG_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vline wait missing WAIT_REG_MEM segment\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"vline WAIT_REG_MEM waiting on MEM instead of REG\n"

L_.str.2:                               ## @.str.2
	.asciz	"vline WAIT_REG_MEM waiting on PFP instead of ME\n"

L_.str.3:                               ## @.str.3
	.asciz	"vline WAIT_REG_MEM function not equal\n"

L_.str.4:                               ## @.str.4
	.asciz	"vline WAIT_REG_MEM bad reg\n"

	.comm	_RADEON_VLINE_STAT,4,2          ## @RADEON_VLINE_STAT
L_.str.5:                               ## @.str.5
	.asciz	"vline WAIT_REG_MEM bad bit mask\n"

L_.str.6:                               ## @.str.6
	.asciz	"cannot find crtc %d\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_R600_CP_PACKET0_REG_MASK,4,2   ## @R600_CP_PACKET0_REG_MASK
L_.str.7:                               ## @.str.7
	.asciz	"unknown crtc reloc\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_cs_common_vline_parse     ; -- Begin function r600_cs_common_vline_parse
	.p2align	2
_r600_cs_common_vline_parse:            ; @r600_cs_common_vline_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x26, [x0, #16]
	ldr	w2, [x0]
	add	x1, sp, #16
	bl	_radeon_cs_packet_parse
	cbnz	w0, LBB0_16
; %bb.1:
	ldr	x8, [sp, #16]
Lloh0:
	adrp	x9, _RADEON_PACKET_TYPE3@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RADEON_PACKET_TYPE3@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.2:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, _PACKET3_WAIT_REG_MEM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PACKET3_WAIT_REG_MEM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.3:
	ldr	w8, [sp, #32]
	add	w1, w8, #1
	mov	x0, x21
	bl	_radeon_get_ib_value
	tbnz	w0, #4, LBB0_17
; %bb.4:
	tbnz	w0, #8, LBB0_18
; %bb.5:
	and	w8, w0, #0x7
	cmp	w8, #3
	b.ne	LBB0_19
; %bb.6:
	ldr	w8, [sp, #32]
	add	w1, w8, #2
	mov	x0, x21
	bl	_radeon_get_ib_value
	ldr	w8, [x19]
	cmp	w8, w0, lsl #2
	b.ne	LBB0_20
; %bb.7:
	ldr	w8, [sp, #32]
	add	w1, w8, #5
	mov	x0, x21
	bl	_radeon_get_ib_value
Lloh6:
	adrp	x8, _RADEON_VLINE_STAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RADEON_VLINE_STAT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_21
; %bb.8:
	ldr	w8, [x21]
	ldr	w9, [sp, #36]
	add	w8, w8, w9
	add	w2, w8, #2
	add	x1, sp, #40
	mov	x0, x21
	bl	_radeon_cs_packet_parse
	cbnz	w0, LBB0_16
; %bb.9:
	ldrsw	x27, [x21]
	sub	w22, w27, #2
	ldr	w8, [sp, #36]
	add	w28, w27, #2
	ldr	w9, [sp, #60]
	add	w8, w28, w8
	add	w8, w9, w8
	add	w8, w8, #2
	str	w8, [x21]
	mov	x0, x21
	mov	x1, x22
	bl	_radeon_get_ib_value
	mov	x23, x0
	add	w1, w27, #8
	mov	x0, x21
	bl	_radeon_get_ib_value
	mov	x25, x0
	mov	x0, x23
	bl	_R600_CP_PACKET0_GET_REG
	mov	x24, x0
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	ldr	w1, [x21, #4]
	mov	x2, x25
	bl	_drm_crtc_find
	cbz	x0, LBB0_22
; %bb.10:
	mov	x21, x0
	bl	_to_radeon_crtc
	ldr	w9, [x21]
	cbz	w9, LBB0_23
; %bb.11:
	ldr	w9, [x20]
	cmp	w24, w9
	b.ne	LBB0_24
; %bb.12:
	mov	x8, x0
	mov	w0, #0
	ldrsw	x8, [x8]
Lloh9:
	adrp	x9, _R600_CP_PACKET0_REG_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _R600_CP_PACKET0_REG_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	bic	w9, w23, w9
	lsl	x8, x8, #2
	ldr	w10, [x20, x8]
	orr	w9, w9, w10, asr #2
	str	w9, [x26, w22, sxtw #2]
	ldr	w8, [x19, x8]
	asr	w8, w8, #2
	str	w8, [x26, w28, sxtw #2]
	b	LBB0_16
LBB0_13:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
LBB0_14:
	bl	_DRM_ERROR
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_17:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_18:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_19:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_20:
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_21:
Lloh24:
	adrp	x0, l_.str.5@PAGE
Lloh25:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_22:
	str	x25, [sp]
Lloh26:
	adrp	x0, l_.str.6@PAGE
Lloh27:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DRM_ERROR
Lloh28:
	adrp	x8, _ENOENT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_15
LBB0_23:
	mov	w0, #0
	bl	_PACKET2
	str	w0, [x26, x27, lsl #2]
	mov	w0, #0
	bl	_PACKET2
	add	w8, w27, #1
	str	w0, [x26, w8, sxtw #2]
	mov	w0, #0
	bl	_PACKET2
	str	w0, [x26, w28, sxtw #2]
	mov	w0, #0
	bl	_PACKET2
	add	w8, w27, #3
	str	w0, [x26, w8, sxtw #2]
	mov	w0, #0
	bl	_PACKET2
	add	w8, w27, #4
	str	w0, [x26, w8, sxtw #2]
	mov	w0, #0
	bl	_PACKET2
	add	w8, w27, #5
	str	w0, [x26, w8, sxtw #2]
	mov	w0, #0
	bl	_PACKET2
	mov	x8, x0
	mov	w0, #0
	add	w9, w27, #6
	str	w8, [x26, w9, sxtw #2]
	b	LBB0_16
LBB0_24:
Lloh30:
	adrp	x0, l_.str.7@PAGE
Lloh31:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_PACKET_TYPE3,8,3        ; @RADEON_PACKET_TYPE3
	.comm	_PACKET3_WAIT_REG_MEM,8,3       ; @PACKET3_WAIT_REG_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vline wait missing WAIT_REG_MEM segment\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"vline WAIT_REG_MEM waiting on MEM instead of REG\n"

l_.str.2:                               ; @.str.2
	.asciz	"vline WAIT_REG_MEM waiting on PFP instead of ME\n"

l_.str.3:                               ; @.str.3
	.asciz	"vline WAIT_REG_MEM function not equal\n"

l_.str.4:                               ; @.str.4
	.asciz	"vline WAIT_REG_MEM bad reg\n"

	.comm	_RADEON_VLINE_STAT,4,2          ; @RADEON_VLINE_STAT
l_.str.5:                               ; @.str.5
	.asciz	"vline WAIT_REG_MEM bad bit mask\n"

l_.str.6:                               ; @.str.6
	.asciz	"cannot find crtc %d\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_R600_CP_PACKET0_REG_MASK,4,2   ; @R600_CP_PACKET0_REG_MASK
l_.str.7:                               ; @.str.7
	.asciz	"unknown crtc reloc\n"

.subsections_via_symbols
