	.file	"extr_rxe_mr.c_iova_to_vaddr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"mem not in valid state\n"
.LC1:
	.string	"range violation\n"
.LC2:
	.string	"crosses page boundary\n"
	.text
	.p2align 4
	.globl	iova_to_vaddr
	.type	iova_to_vaddr, @function
iova_to_vaddr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR RXE_MEM_STATE_VALID[rip]
	cmp	QWORD PTR [rdi], rax
	jne	.L10
	cmp	QWORD PTR 8[rdi], 0
	mov	rbx, rdi
	mov	rbp, rsi
	mov	rax, rsi
	je	.L1
	movsx	r12, edx
	mov	edx, r12d
	call	mem_check_range@PLT
	test	rax, rax
	jne	.L11
	lea	rcx, 12[rsp]
	lea	rdx, 8[rsp]
	mov	rsi, rbp
	mov	rdi, rbx
	lea	r8, 16[rsp]
	call	lookup_iova@PLT
	mov	rdx, QWORD PTR 8[rbx]
	movsx	rcx, DWORD PTR 8[rsp]
	mov	rax, QWORD PTR 16[rsp]
	mov	rcx, QWORD PTR [rdx+rcx*8]
	movsx	rdx, DWORD PTR 12[rsp]
	add	r12, rax
	sal	rdx, 4
	add	rdx, QWORD PTR [rcx]
	cmp	r12, QWORD PTR [rdx]
	ja	.L12
	add	rax, QWORD PTR 8[rdx]
.L3:
	endbr64
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	pr_warn@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC0[rip]
	call	pr_warn@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, .LC2[rip]
	call	pr_warn@PLT
	xor	eax, eax
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	iova_to_vaddr, .-iova_to_vaddr
	.comm	RXE_MEM_STATE_VALID,8,8
	.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_rxe_mr.c_iova_to_vaddr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mem not in valid state\012\000"
	.align	2
.LC1:
	.ascii	"range violation\012\000"
	.align	2
.LC2:
	.ascii	"crosses page boundary\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	iova_to_vaddr
	.syntax unified
	.arm
	.fpu softvfp
	.type	iova_to_vaddr, %function
iova_to_vaddr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L14
	ldr	ip, [r0]
	ldr	r3, [r3]
	ldr	lr, .L14+4
	sub	sp, sp, #28
	cmp	ip, r3
	ldr	lr, [lr]
	str	lr, [sp, #20]
	mov	lr,#0
	bne	.L10
	ldr	r3, [r0, #4]
	mov	r5, r0
	cmp	r3, #0
	mov	r4, r1
	moveq	r0, r1
	beq	.L1
	mov	r6, r2
	bl	mem_check_range
	subs	r7, r0, #0
	bne	.L11
.L3:
	add	r3, sp, #8
	mov	r1, r4
	str	r3, [sp]
	add	r2, sp, #12
	add	r3, sp, #16
	mov	r0, r5
	bl	lookup_iova
	ldr	r2, [sp, #12]
	ldr	r3, [r5, #4]
	ldr	r1, [sp, #16]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r0, [sp, #8]
	ldr	r3, [r3]
	add	r2, r6, r0
	ldr	ip, [r3, r1, lsl #3]
	add	r3, r3, r1, lsl #3
	cmp	r2, ip
	ldrls	r1, [r3, #4]
	addls	r0, r0, r1
	bhi	.L12
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	ldr	r0, .L14+8
	bl	pr_warn
	mov	r0, #0
	b	.L1
.L10:
	ldr	r0, .L14+12
	bl	pr_warn
	mov	r0, #0
	b	.L1
.L12:
	ldr	r0, .L14+16
	bl	pr_warn
	mov	r0, r7
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	RXE_MEM_STATE_VALID
	.word	.LC3
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	iova_to_vaddr, .-iova_to_vaddr
	.comm	RXE_MEM_STATE_VALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
