	.file	"extr_iovmm.c_iommu_vmap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	iommu_vmap
	.type	iommu_vmap, @function
iommu_vmap:
.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
	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, 8
	.cfi_def_cfa_offset 64
	test	rdi, rdi
	je	.L17
	mov	eax, DWORD PTR [rdi]
	mov	rbp, rdi
	test	eax, eax
	je	.L17
	mov	r12, rdx
	test	rdx, rdx
	je	.L17
	mov	rdi, rdx
	mov	r13d, esi
	mov	ebx, ecx
	call	sgtable_len@PLT
	mov	rdi, rax
	test	rax, rax
	jne	.L6
.L17:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L6:
	.cfi_restore_state
	call	PAGE_ALIGN@PLT
	mov	rdi, r12
	mov	r15, rax
	call	vmap_sg@PLT
	mov	rdi, rax
	mov	r14, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L19
	and	ebx, DWORD PTR IOVMF_HW_MASK[rip]
	mov	rdx, r12
	mov	rdi, rbp
	mov	r8, r15
	mov	ecx, ebx
	mov	ebx, DWORD PTR IOVMF_DISCONT[rip]
	or	ebx, DWORD PTR IOVMF_MMIO[rip]
	mov	esi, r13d
	or	ecx, ebx
	mov	r9d, DWORD PTR IOVMF_DA_FIXED[rip]
	test	r13d, r13d
	cmove	r9d, DWORD PTR IOVMF_DA_ANON[rip]
	or	r9d, ecx
	mov	rcx, r14
	call	__iommu_vmap@PLT
	mov	edi, eax
	mov	r12d, eax
	call	IS_ERR_VALUE@PLT
	test	rax, rax
	je	.L1
	mov	rdi, r14
	call	vunmap_sg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	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
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	iommu_vmap, .-iommu_vmap
	.comm	IOVMF_MMIO,4,4
	.comm	IOVMF_HW_MASK,4,4
	.comm	IOVMF_DISCONT,4,4
	.comm	IOVMF_DA_FIXED,4,4
	.comm	IOVMF_DA_ANON,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_iovmm.c_iommu_vmap.c"
	.text
	.align	2
	.global	iommu_vmap
	.syntax unified
	.arm
	.fpu softvfp
	.type	iommu_vmap, %function
iommu_vmap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	subs	r5, r0, #0
	sub	sp, sp, #12
	beq	.L16
	mov	r6, r3
	ldr	r3, [r5]
	mov	r4, r2
	cmp	r2, #0
	cmpne	r3, #0
	bne	.L3
.L16:
	ldr	r3, .L19
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L3:
	mov	r0, r2
	mov	r7, r1
	bl	sgtable_len
	cmp	r0, #0
	beq	.L16
	bl	PAGE_ALIGN
	mov	r9, r0
	mov	r0, r4
	bl	vmap_sg
	mov	r8, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L18
	ldr	r3, .L19+4
	ldr	r2, .L19+8
	ldr	r1, .L19+12
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r3, [r3]
	cmp	r7, #0
	and	r3, r3, r6
	orr	r6, r2, r1
	ldrne	r2, .L19+16
	ldreq	r2, .L19+20
	orr	r3, r6, r3
	ldr	r6, [r2]
	mov	r1, r7
	orr	r3, r6, r3
	mov	r2, r4
	str	r3, [sp, #4]
	mov	r0, r5
	mov	r3, r8
	str	r9, [sp]
	bl	__iommu_vmap
	mov	r4, r0
	bl	IS_ERR_VALUE
	cmp	r0, #0
	beq	.L1
	mov	r0, r8
	bl	vunmap_sg
	b	.L1
.L18:
	mov	r0, r8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	PTR_ERR
.L20:
	.align	2
.L19:
	.word	EINVAL
	.word	IOVMF_HW_MASK
	.word	IOVMF_DISCONT
	.word	IOVMF_MMIO
	.word	IOVMF_DA_FIXED
	.word	IOVMF_DA_ANON
	.size	iommu_vmap, .-iommu_vmap
	.comm	IOVMF_MMIO,4,4
	.comm	IOVMF_HW_MASK,4,4
	.comm	IOVMF_DISCONT,4,4
	.comm	IOVMF_DA_FIXED,4,4
	.comm	IOVMF_DA_ANON,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
