	.file	"extr_xdma_iommu.c_xdma_iommu_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"xDMA vmem"
	.text
	.p2align 4
	.globl	xdma_iommu_init
	.type	xdma_iommu_init, @function
xdma_iommu_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	add	rdi, 16
	call	pmap_pinit@PLT
	mov	ecx, DWORD PTR PAGE_SIZE[rip]
	xor	edx, edx
	xor	esi, esi
	mov	r9d, DWORD PTR M_FIRSTFIT[rip]
	lea	rdi, .LC0[rip]
	or	r9d, DWORD PTR M_WAITOK[rip]
	mov	r8d, ecx
	call	vmem_create@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L6
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rbx
	call	XDMA_IOMMU_INIT@PLT
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR ENXIO[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	xdma_iommu_init, .-xdma_iommu_init
	.comm	PAGE_SIZE,4,4
	.comm	M_WAITOK,4,4
	.comm	M_FIRSTFIT,4,4
	.comm	ENXIO,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_xdma_iommu.c_xdma_iommu_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"xDMA vmem\000"
	.text
	.align	2
	.global	xdma_iommu_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	xdma_iommu_init, %function
xdma_iommu_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	sub	sp, sp, #8
	add	r0, r0, #8
	bl	pmap_pinit
	mov	r2, #0
	ldr	r1, .L7
	ldr	r0, .L7+4
	ldr	r3, .L7+8
	ldr	r0, [r0]
	ldr	r1, [r1]
	ldr	r3, [r3]
	orr	r1, r1, r0
	str	r1, [sp, #4]
	ldr	r0, .L7+12
	mov	r1, r2
	str	r3, [sp]
	bl	vmem_create
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L6
	mov	r1, r4
	ldr	r0, [r4]
	bl	XDMA_IOMMU_INIT
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L6:
	ldr	r3, .L7+16
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L8:
	.align	2
.L7:
	.word	M_FIRSTFIT
	.word	M_WAITOK
	.word	PAGE_SIZE
	.word	.LC0
	.word	ENXIO
	.size	xdma_iommu_init, .-xdma_iommu_init
	.comm	PAGE_SIZE,4,4
	.comm	M_WAITOK,4,4
	.comm	M_FIRSTFIT,4,4
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
