	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r100_cs_packet_parse_vline     ## -- Begin function r100_cs_packet_parse_vline
	.p2align	4, 0x90
_r100_cs_packet_parse_vline:            ## @r100_cs_packet_parse_vline
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdx
	movq	24(%rdi), %r13
	leaq	-72(%rbp), %rsi
	callq	_radeon_cs_packet_parse
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movq	_RADEON_WAIT_UNTIL@GOTPCREL(%rip), %rax
	movq	-72(%rbp), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_11
## %bb.2:
	cmpq	$0, -64(%rbp)
	jne	LBB0_11
## %bb.3:
	movl	-56(%rbp), %esi
	incl	%esi
	movq	%rbx, %rdi
	callq	_radeon_get_ib_value
	movq	_RADEON_WAIT_CRTC_VLINE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.4:
	movq	(%rbx), %rax
	movq	-64(%rbp), %rcx
	leaq	(%rax,%rcx), %rdx
	addq	$2, %rdx
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_radeon_cs_packet_parse
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:
	movq	(%rbx), %r12
	leal	-2(%r12), %esi
	movq	-64(%rbp), %rax
	addq	%r12, %rax
	movq	-88(%rbp), %rcx
	addq	%rcx, %rax
	addq	$4, %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	callq	_radeon_get_ib_value
	movl	%eax, %r14d
	leal	3(%r12), %esi
	movq	%rbx, %rdi
	callq	_radeon_get_ib_value
	movl	%eax, %r15d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_R100_CP_PACKET0_GET_REG
	movl	%eax, %r14d
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	movl	%r15d, %edx
	callq	_drm_crtc_find
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_to_radeon_crtc
	cmpl	$0, (%rbx)
	je	LBB0_17
## %bb.7:
	movl	%r14d, %ecx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%r14d, %r14d
	cmpl	$1, (%rax)
	jne	LBB0_15
## %bb.8:
	cmpl	$129, %ecx
	je	LBB0_18
## %bb.9:
	cmpl	$128, %ecx
	jne	LBB0_20
## %bb.10:
	movq	_RADEON_CRTC2_GUI_TRIG_VLINE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_11:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
LBB0_13:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	subl	(%rax), %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_17:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_PACKET2
	shlq	$32, %r12
	movq	%r12, %rcx
	sarq	$30, %rcx
	movl	%eax, (%r13,%rcx)
	xorl	%edi, %edi
	callq	_PACKET2
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	addq	%r12, %rcx
	sarq	$30, %rcx
	movl	%eax, (%r13,%rcx)
	jmp	LBB0_15
LBB0_18:
	movq	_AVIVO_D2MODE_VLINE_START_END@GOTPCREL(%rip), %rax
LBB0_19:
	movq	_R300_CP_PACKET0_REG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	andl	%ecx, %esi
	movl	(%rax), %eax
	sarl	$2, %eax
	orl	%esi, %eax
	movslq	%edx, %rcx
	movl	%eax, (%r13,%rcx,4)
	movq	_RADEON_ENG_DISPLAY_SELECT_CRTC1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$32, %r12
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	addq	%r12, %rcx
	sarq	$30, %rcx
	orl	%eax, (%r13,%rcx)
	jmp	LBB0_15
LBB0_20:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_WAIT_UNTIL,8,3          ## @RADEON_WAIT_UNTIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vline wait had illegal wait until segment\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RADEON_WAIT_CRTC_VLINE,4,2     ## @RADEON_WAIT_CRTC_VLINE
L_.str.1:                               ## @.str.1
	.asciz	"vline wait had illegal wait until\n"

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

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_R300_CP_PACKET0_REG_MASK,4,2   ## @R300_CP_PACKET0_REG_MASK
	.comm	_AVIVO_D2MODE_VLINE_START_END,4,2 ## @AVIVO_D2MODE_VLINE_START_END
	.comm	_RADEON_CRTC2_GUI_TRIG_VLINE,4,2 ## @RADEON_CRTC2_GUI_TRIG_VLINE
L_.str.3:                               ## @.str.3
	.asciz	"unknown crtc reloc\n"

	.comm	_RADEON_ENG_DISPLAY_SELECT_CRTC1,4,2 ## @RADEON_ENG_DISPLAY_SELECT_CRTC1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r100_cs_packet_parse_vline     ; -- Begin function r100_cs_packet_parse_vline
	.p2align	2
_r100_cs_packet_parse_vline:            ; @r100_cs_packet_parse_vline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
	ldr	x24, [x0, #24]
	ldr	x2, [x0]
	add	x1, sp, #16
	bl	_radeon_cs_packet_parse
	cbnz	w0, LBB0_14
; %bb.1:
Lloh0:
	adrp	x8, _RADEON_WAIT_UNTIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_WAIT_UNTIL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x9, x10, [sp, #16]
	cmp	x9, x8
	ccmp	x10, #0, #0, eq
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_3:
	ldr	w8, [sp, #32]
	add	w1, w8, #1
	mov	x0, x19
	bl	_radeon_get_ib_value
Lloh5:
	adrp	x8, _RADEON_WAIT_CRTC_VLINE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RADEON_WAIT_CRTC_VLINE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.4:
	ldr	x8, [x19]
	ldr	x9, [sp, #24]
	add	x8, x8, x9
	add	x2, x8, #2
	add	x1, sp, #40
	mov	x0, x19
	bl	_radeon_cs_packet_parse
	cbnz	w0, LBB0_14
; %bb.5:
	ldr	x25, [x19]
	sub	w20, w25, #2
	ldr	x8, [sp, #24]
	ldr	x9, [sp, #48]
	add	x8, x25, x8
	add	x8, x8, x9
	add	x8, x8, #4
	str	x8, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_radeon_get_ib_value
	mov	x21, x0
	add	w1, w25, #3
	mov	x0, x19
	bl	_radeon_get_ib_value
	mov	x23, x0
	mov	x0, x21
	bl	_R100_CP_PACKET0_GET_REG
	mov	x22, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	mov	x2, x23
	bl	_drm_crtc_find
	cbz	x0, LBB0_15
; %bb.6:
	mov	x19, x0
	bl	_to_radeon_crtc
	ldr	w8, [x19]
	cbz	w8, LBB0_16
; %bb.7:
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_17
; %bb.8:
	cmp	w22, #129
	b.eq	LBB0_18
; %bb.9:
	cmp	w22, #128
	b.ne	LBB0_21
; %bb.10:
Lloh8:
	adrp	x8, _RADEON_CRTC2_GUI_TRIG_VLINE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RADEON_CRTC2_GUI_TRIG_VLINE@GOTPAGEOFF]
	b	LBB0_19
LBB0_11:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_12:
	bl	_DRM_ERROR
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_15:
	str	x23, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
Lloh16:
	adrp	x8, _ENOENT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_13
LBB0_16:
	mov	w0, #0
	bl	_PACKET2
	lsl	x19, x25, #32
	sbfiz	x8, x25, #2, #32
	str	w0, [x24, x8]
	mov	w0, #0
	bl	_PACKET2
	mov	x8, x0
	mov	w0, #0
	mov	x9, #4294967296
	add	x9, x19, x9
	asr	x9, x9, #30
	b	LBB0_20
LBB0_17:
	mov	w0, #0
	b	LBB0_14
LBB0_18:
Lloh18:
	adrp	x8, _AVIVO_D2MODE_VLINE_START_END@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVIVO_D2MODE_VLINE_START_END@GOTPAGEOFF]
LBB0_19:
	mov	w0, #0
Lloh20:
	adrp	x9, _R300_CP_PACKET0_REG_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _R300_CP_PACKET0_REG_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	bic	w9, w21, w9
	ldr	w8, [x8]
	orr	w8, w9, w8, asr #2
	str	w8, [x24, w20, sxtw #2]
Lloh23:
	adrp	x8, _RADEON_ENG_DISPLAY_SELECT_CRTC1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RADEON_ENG_DISPLAY_SELECT_CRTC1@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	mov	x9, #4294967296
	add	x9, x9, x25, lsl #32
	asr	x9, x9, #30
	ldr	w10, [x24, x9]
	orr	w8, w10, w8
LBB0_20:
	str	w8, [x24, x9]
	b	LBB0_14
LBB0_21:
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_WAIT_UNTIL,8,3          ; @RADEON_WAIT_UNTIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vline wait had illegal wait until segment\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RADEON_WAIT_CRTC_VLINE,4,2     ; @RADEON_WAIT_CRTC_VLINE
l_.str.1:                               ; @.str.1
	.asciz	"vline wait had illegal wait until\n"

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

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_R300_CP_PACKET0_REG_MASK,4,2   ; @R300_CP_PACKET0_REG_MASK
	.comm	_AVIVO_D2MODE_VLINE_START_END,4,2 ; @AVIVO_D2MODE_VLINE_START_END
	.comm	_RADEON_CRTC2_GUI_TRIG_VLINE,4,2 ; @RADEON_CRTC2_GUI_TRIG_VLINE
l_.str.3:                               ; @.str.3
	.asciz	"unknown crtc reloc\n"

	.comm	_RADEON_ENG_DISPLAY_SELECT_CRTC1,4,2 ; @RADEON_ENG_DISPLAY_SELECT_CRTC1
.subsections_via_symbols
