	.file	"extr_etnaviv_gem_submit.c_submit_reloc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"invalid reloc flags\n"
.LC1:
	.string	"non-aligned reloc offset: %u\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"invalid offset %u at reloc %u\n"
	.section	.rodata.str1.1
.LC3:
	.string	"relocation %u outside object\n"
	.text
	.p2align 4
	.type	submit_reloc, @function
submit_reloc:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 24[rsp], rsi
	mov	QWORD PTR 16[rsp], rdx
	mov	QWORD PTR 8[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR ETNA_SUBMIT_SOFTPIN[rip], eax
	je	.L2
	test	r8, r8
	jne	.L23
.L2:
	cmp	QWORD PTR 8[rsp], 0
	jle	.L12
	mov	rbp, rcx
	xor	ebx, ebx
	lea	r15, 32[rsp]
	xor	r12d, r12d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r8d, DWORD PTR 0[rbp]
	test	r8b, 3
	jne	.L25
	test	r8d, r8d
	lea	esi, 3[r8]
	cmovns	esi, r8d
	sar	esi, 2
	movsx	r14, esi
	cmp	r14, QWORD PTR 16[rsp]
	jge	.L15
	cmp	r14, rbx
	jl	.L15
	mov	esi, DWORD PTR 8[rbp]
	mov	rdx, r15
	mov	rdi, r13
	call	submit_bo@PLT
	test	eax, eax
	jne	.L1
	mov	rsi, QWORD PTR 32[rsp]
	movsx	rax, DWORD PTR 4[rbp]
	mov	rdx, QWORD PTR 8[rsi]
	movsx	rdx, DWORD PTR [rdx]
	sub	rdx, 8
	cmp	rax, rdx
	ja	.L26
	mov	rdx, QWORD PTR [rsi]
	mov	rcx, QWORD PTR 24[rsp]
	add	r12, 1
	add	rbp, 16
	add	rax, QWORD PTR [rdx]
	mov	QWORD PTR [rcx+r14*8], rax
	cmp	QWORD PTR 8[rsp], r12
	je	.L12
	mov	rbx, r14
.L10:
	mov	edi, DWORD PTR 12[rbp]
	call	unlikely@PLT
	test	rax, rax
	je	.L4
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L27
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L26:
	.cfi_restore_state
	mov	rsi, r12
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
.L23:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, r8d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdx, r12
	mov	rsi, r14
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	submit_reloc, .-submit_reloc
	.comm	ETNA_SUBMIT_SOFTPIN,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_etnaviv_gem_submit.c_submit_reloc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid reloc flags\012\000"
	.align	2
.LC1:
	.ascii	"non-aligned reloc offset: %u\012\000"
	.align	2
.LC2:
	.ascii	"invalid offset %u at reloc %u\012\000"
	.align	2
.LC3:
	.ascii	"relocation %u outside object\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	submit_reloc, %function
submit_reloc:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r0, .L21
	sub	sp, sp, #8
	ldr	ip, [r5]
	ldr	r0, [r0]
	ldr	r8, [sp, #40]
	tst	ip, r0
	movne	r10, #1
	moveq	r10, #0
	cmp	r8, #0
	moveq	r10, #0
	mov	r6, r2
	ldr	r2, .L21+4
	cmp	r10, #0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	bne	.L15
	cmp	r8, #0
	movgt	r7, r1
	movgt	r4, r3
	movgt	r9, r10
	bgt	.L9
	b	.L11
.L4:
	ldr	ip, [r4]
	tst	ip, #3
	bne	.L17
	cmp	ip, #0
	add	r1, ip, #3
	movlt	ip, r1
	cmp	r6, ip, asr #2
	movle	r3, #1
	movgt	r3, #0
	cmp	r10, ip, asr #2
	orrgt	r3, r3, #1
	cmp	r3, #0
	asr	r10, ip, #2
	bne	.L18
	mov	r2, sp
	mov	r0, r5
	ldr	r1, [r4, #8]
	bl	submit_bo
	cmp	r0, #0
	bne	.L1
	ldr	r1, [sp]
	ldr	r2, [r4, #4]
	ldr	r3, [r1, #4]
	ldr	r3, [r3]
	sub	r3, r3, #4
	cmp	r2, r3
	bhi	.L19
	ldr	r3, [r1]
	add	r9, r9, #1
	ldr	r3, [r3]
	cmp	r8, r9
	add	r3, r3, r2
	str	r3, [r7, r10, lsl #2]
	add	r4, r4, #16
	beq	.L11
.L9:
	ldr	r0, [r4, #12]
	bl	unlikely
	cmp	r0, #0
	beq	.L4
	ldr	r0, .L21+8
	bl	DRM_ERROR
	ldr	r3, .L21+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	mov	r1, r9
	ldr	r0, .L21+16
	bl	DRM_ERROR
.L15:
	ldr	r3, .L21+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L11:
	mov	r0, #0
	b	.L1
.L17:
	mov	r1, ip
	ldr	r0, .L21+20
	bl	DRM_ERROR
	ldr	r3, .L21+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L18:
	mov	r2, r9
	mov	r1, r10
	ldr	r0, .L21+24
	bl	DRM_ERROR
	ldr	r3, .L21+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	ETNA_SUBMIT_SOFTPIN
	.word	.LC4
	.word	.LC0
	.word	EINVAL
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	submit_reloc, .-submit_reloc
	.comm	ETNA_SUBMIT_SOFTPIN,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
