	.file	"extr_r600_cs.c_r600_cs_common_vline_parse.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"vline wait missing WAIT_REG_MEM segment\n"
	.align 8
.LC1:
	.string	"vline WAIT_REG_MEM waiting on MEM instead of REG\n"
	.align 8
.LC2:
	.string	"vline WAIT_REG_MEM waiting on PFP instead of ME\n"
	.align 8
.LC3:
	.string	"vline WAIT_REG_MEM function not equal\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC4:
	.string	"vline WAIT_REG_MEM bad reg\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"vline WAIT_REG_MEM bad bit mask\n"
	.section	.rodata.str1.1
.LC6:
	.string	"cannot find crtc %d\n"
.LC7:
	.string	"unknown crtc reloc\n"
	.text
	.p2align 4
	.globl	r600_cs_common_vline_parse
	.type	r600_cs_common_vline_parse, @function
r600_cs_common_vline_parse:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	edx, DWORD PTR [rdi]
	mov	r12, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	lea	rsi, 64[rsp]
	call	radeon_cs_packet_parse@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR RADEON_PACKET_TYPE3[rip]
	cmp	QWORD PTR 64[rsp], rax
	jne	.L3
	mov	rax, QWORD PTR PACKET3_WAIT_REG_MEM[rip]
	cmp	QWORD PTR 72[rsp], rax
	je	.L4
.L3:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR 80[rsp]
	mov	rdi, r14
	lea	esi, 1[rax]
	call	radeon_get_ib_value@PLT
	test	al, 16
	jne	.L17
	test	ah, 1
	jne	.L18
	and	eax, 7
	cmp	eax, 3
	jne	.L19
	mov	eax, DWORD PTR 80[rsp]
	mov	rdi, r14
	lea	esi, 2[rax]
	call	radeon_get_ib_value@PLT
	sal	eax, 2
	cmp	eax, DWORD PTR [rbx]
	je	.L8
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 80[rsp]
	mov	rdi, r14
	lea	esi, 5[rax]
	call	radeon_get_ib_value@PLT
	cmp	eax, DWORD PTR RADEON_VLINE_STAT[rip]
	je	.L9
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, DWORD PTR 84[rsp]
	add	edx, DWORD PTR [r14]
	lea	rsi, 32[rsp]
	mov	rdi, r14
	add	edx, 2
	call	radeon_cs_packet_parse@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	r15d, DWORD PTR [r14]
	mov	eax, DWORD PTR 84[rsp]
	mov	rdi, r14
	lea	edx, 2[r15+rax]
	mov	eax, DWORD PTR 52[rsp]
	lea	esi, -2[r15]
	mov	DWORD PTR 16[rsp], esi
	lea	eax, 2[rdx+rax]
	mov	DWORD PTR [r14], eax
	call	radeon_get_ib_value@PLT
	lea	esi, 8[r15]
	mov	rdi, r14
	mov	DWORD PTR 12[rsp], eax
	call	radeon_get_ib_value@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	r15d, eax
	call	R600_CP_PACKET0_GET_REG@PLT
	mov	esi, DWORD PTR 4[r14]
	mov	edx, r15d
	mov	DWORD PTR 20[rsp], eax
	mov	rax, QWORD PTR 8[r14]
	mov	edi, DWORD PTR [rax]
	call	drm_crtc_find@PLT
	test	rax, rax
	je	.L20
	mov	rdi, rax
	mov	QWORD PTR 24[rsp], rax
	call	to_radeon_crtc@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	edx, DWORD PTR [rdx]
	test	edx, edx
	je	.L21
	mov	ecx, DWORD PTR 20[rsp]
	cmp	DWORD PTR 0[rbp], ecx
	jne	.L12
	movsx	rcx, DWORD PTR [rax]
	mov	edx, DWORD PTR R600_CP_PACKET0_REG_MASK[rip]
	movsx	rax, DWORD PTR 16[rsp]
	mov	r14d, DWORD PTR 0[rbp+rcx*4]
	not	edx
	and	edx, DWORD PTR 12[rsp]
	sal	rax, 2
	sar	r14d, 2
	or	r14d, edx
	lea	rdx, [r12+rax]
	mov	DWORD PTR [rdx], r14d
	lea	rdx, 16[r12+rax]
	mov	eax, DWORD PTR [rbx+rcx*4]
	sar	eax, 2
	mov	DWORD PTR [rdx], eax
	jmp	.L1
.L21:
	movsx	r13, DWORD PTR 16[rsp]
	xor	edi, edi
	call	PACKET2@PLT
	xor	edi, edi
	lea	rbx, 8[0+r13*4]
	xor	r13d, r13d
	lea	rbp, [r12+rbx]
	mov	DWORD PTR 0[rbp], eax
	lea	rbp, 4[r12+rbx]
	call	PACKET2@PLT
	xor	edi, edi
	mov	DWORD PTR 0[rbp], eax
	lea	rbp, 8[r12+rbx]
	call	PACKET2@PLT
	xor	edi, edi
	mov	DWORD PTR 0[rbp], eax
	lea	rbp, 12[r12+rbx]
	call	PACKET2@PLT
	xor	edi, edi
	mov	DWORD PTR 0[rbp], eax
	lea	rbp, 16[r12+rbx]
	call	PACKET2@PLT
	xor	edi, edi
	mov	DWORD PTR 0[rbp], eax
	lea	rbp, 20[r12+rbx]
	lea	rbx, 24[r12+rbx]
	call	PACKET2@PLT
	xor	edi, edi
	mov	DWORD PTR 0[rbp], eax
	call	PACKET2@PLT
	mov	DWORD PTR [rbx], eax
	jmp	.L1
.L20:
	mov	esi, r15d
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	r13d, DWORD PTR ENOENT[rip]
	neg	r13d
	jmp	.L1
.L12:
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	r600_cs_common_vline_parse, .-r600_cs_common_vline_parse
	.comm	RADEON_VLINE_STAT,4,4
	.comm	RADEON_PACKET_TYPE3,8,8
	.comm	R600_CP_PACKET0_REG_MASK,4,4
	.comm	PACKET3_WAIT_REG_MEM,8,8
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_r600_cs.c_r600_cs_common_vline_parse.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vline wait missing WAIT_REG_MEM segment\012\000"
	.align	2
.LC1:
	.ascii	"vline WAIT_REG_MEM waiting on MEM instead of REG\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"vline WAIT_REG_MEM waiting on PFP instead of ME\012"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"vline WAIT_REG_MEM function not equal\012\000"
	.align	2
.LC4:
	.ascii	"vline WAIT_REG_MEM bad reg\012\000"
	.align	2
.LC5:
	.ascii	"vline WAIT_REG_MEM bad bit mask\012\000"
	.align	2
.LC6:
	.ascii	"cannot find crtc %d\012\000"
	.align	2
.LC7:
	.ascii	"unknown crtc reloc\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	r600_cs_common_vline_parse
	.syntax unified
	.arm
	.fpu softvfp
	.type	r600_cs_common_vline_parse, %function
r600_cs_common_vline_parse:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L22
	sub	sp, sp, #52
	mov	r6, r1
	mov	r5, r2
	add	r1, sp, #28
	ldr	r2, [r0]
	mov	fp, r0
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	r7, [r0, #12]
	bl	radeon_cs_packet_parse
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L22+4
	ldr	r2, [sp, #28]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L3
	ldr	r3, .L22+8
	ldr	r2, [sp, #32]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L4
.L3:
	ldr	r0, .L22+12
	bl	DRM_ERROR
	ldr	r3, .L22+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r1, [sp, #36]
	mov	r0, fp
	add	r1, r1, #1
	bl	radeon_get_ib_value
	tst	r0, #16
	bne	.L17
	tst	r0, #256
	bne	.L18
	and	r0, r0, #7
	cmp	r0, #3
	bne	.L19
	ldr	r1, [sp, #36]
	mov	r0, fp
	add	r1, r1, #2
	bl	radeon_get_ib_value
	ldr	r3, [r5]
	cmp	r3, r0, lsl #2
	beq	.L8
	ldr	r0, .L22+20
	bl	DRM_ERROR
	ldr	r3, .L22+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L19:
	ldr	r0, .L22+24
	bl	DRM_ERROR
	ldr	r3, .L22+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L17:
	ldr	r0, .L22+28
	bl	DRM_ERROR
	ldr	r3, .L22+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L18:
	ldr	r0, .L22+32
	bl	DRM_ERROR
	ldr	r3, .L22+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L8:
	ldr	r1, [sp, #36]
	mov	r0, fp
	add	r1, r1, #5
	bl	radeon_get_ib_value
	ldr	r3, .L22+36
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L9
	ldr	r0, .L22+40
	bl	DRM_ERROR
	ldr	r3, .L22+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L9:
	ldr	r2, [fp]
	ldr	r3, [sp, #40]
	mov	r0, fp
	add	r2, r2, r3
	add	r1, sp, #12
	add	r2, r2, #2
	bl	radeon_cs_packet_parse
	subs	r4, r0, #0
	bne	.L1
	ldr	r2, [sp, #40]
	ldr	r8, [fp]
	ldr	r3, [sp, #24]
	add	r2, r2, #2
	add	r3, r3, #2
	add	r2, r2, r8
	add	r2, r2, r3
	sub	r3, r8, #2
	mov	r1, r3
	str	r2, [fp]
	mov	r0, fp
	str	r3, [sp]
	bl	radeon_get_ib_value
	add	r1, r8, #8
	mov	r9, r0
	mov	r0, fp
	bl	radeon_get_ib_value
	mov	r10, r0
	mov	r0, r9
	bl	R600_CP_PACKET0_GET_REG
	mov	ip, r0
	ldr	r1, [fp, #8]
	mov	r2, r10
	ldr	r0, [r1]
	ldr	r1, [fp, #4]
	mov	fp, ip
	bl	drm_crtc_find
	subs	r2, r0, #0
	ldr	r3, [sp]
	beq	.L20
	mov	r0, r2
	str	r3, [sp, #4]
	str	r2, [sp]
	bl	to_radeon_crtc
	ldr	r2, [sp]
	ldr	r3, [sp, #4]
	ldr	r10, [r2]
	cmp	r10, #0
	beq	.L21
	ldr	r2, [r6]
	cmp	r2, fp
	bne	.L12
	ldr	r2, .L22+44
	ldr	r1, [r0]
	ldr	r2, [r2]
	ldr	r0, [r6, r1, lsl #2]
	bic	r2, r9, r2
	orr	r2, r2, r0, asr #2
	str	r2, [r7, r3, lsl #2]
	ldr	r2, [r5, r1, lsl #2]
	lsl	r3, r3, #2
	asr	r2, r2, #2
	add	r3, r3, #16
	str	r2, [r7, r3]
	b	.L1
.L21:
	mov	r0, r10
	bl	PACKET2
	mov	r3, r0
	mov	r0, r10
	str	r3, [r7, r8, lsl #2]
	bl	PACKET2
	lsl	r8, r8, #2
	add	r2, r8, #4
	str	r0, [r7, r2]
	mov	r0, r10
	bl	PACKET2
	add	r2, r8, #8
	str	r0, [r7, r2]
	mov	r0, r10
	bl	PACKET2
	add	r2, r8, #12
	str	r0, [r7, r2]
	mov	r0, r10
	bl	PACKET2
	add	r2, r8, #16
	str	r0, [r7, r2]
	mov	r0, r10
	bl	PACKET2
	add	r2, r8, #20
	str	r0, [r7, r2]
	mov	r0, r10
	bl	PACKET2
	add	r8, r8, #24
	mov	r4, r10
	str	r0, [r7, r8]
	b	.L1
.L20:
	mov	r1, r10
	ldr	r0, .L22+48
	bl	DRM_ERROR
	ldr	r3, .L22+52
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L12:
	ldr	r0, .L22+56
	bl	DRM_ERROR
	ldr	r3, .L22+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L16:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC8
	.word	RADEON_PACKET_TYPE3
	.word	PACKET3_WAIT_REG_MEM
	.word	.LC0
	.word	EINVAL
	.word	.LC4
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.word	RADEON_VLINE_STAT
	.word	.LC5
	.word	R600_CP_PACKET0_REG_MASK
	.word	.LC6
	.word	ENOENT
	.word	.LC7
	.size	r600_cs_common_vline_parse, .-r600_cs_common_vline_parse
	.comm	RADEON_VLINE_STAT,4,4
	.comm	RADEON_PACKET_TYPE3,4,4
	.comm	R600_CP_PACKET0_REG_MASK,4,4
	.comm	PACKET3_WAIT_REG_MEM,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
