	.file	"extr_amd_iommu.c_update_device_table.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	update_device_table, @function
update_device_table:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR amd_iommu_last_bdf[rip]
	test	eax, eax
	js	.L7
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, amd_iommu_devtable_lock[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 1
	cmp	DWORD PTR amd_iommu_last_bdf[rip], ebx
	jl	.L11
.L4:
	mov	rax, QWORD PTR amd_iommu_pd_table[rip]
	cmp	QWORD PTR [rax+rbx*8], rbp
	jne	.L3
	xor	r12d, r12d
	mov	rdi, r13
	mov	rsi, r12
	call	write_lock_irqsave@PLT
	mov	edi, ebx
	mov	rsi, rbp
	add	rbx, 1
	call	set_dte_entry@PLT
	mov	rsi, r12
	mov	rdi, r13
	call	write_unlock_irqrestore@PLT
	cmp	DWORD PTR amd_iommu_last_bdf[rip], ebx
	jge	.L4
.L11:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	update_device_table, .-update_device_table
	.comm	amd_iommu_pd_table,8,8
	.comm	amd_iommu_last_bdf,4,4
	.comm	amd_iommu_devtable_lock,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_amd_iommu.c_update_device_table.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_device_table, %function
update_device_table:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L8
	ldr	r3, [r6]
	cmp	r3, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r5, r0
	mov	r4, #0
	ldr	r7, .L8+4
	ldr	r8, .L8+8
	b	.L4
.L3:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r3, [r7]
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, r5
	bne	.L3
	mov	r9, #0
	mov	r0, r8
	mov	r1, r9
	bl	write_lock_irqsave
	mov	r1, r5
	mov	r0, r4
	bl	set_dte_entry
	mov	r1, r9
	mov	r0, r8
	bl	write_unlock_irqrestore
	b	.L3
.L9:
	.align	2
.L8:
	.word	amd_iommu_last_bdf
	.word	amd_iommu_pd_table
	.word	amd_iommu_devtable_lock
	.size	update_device_table, .-update_device_table
	.comm	amd_iommu_pd_table,4,4
	.comm	amd_iommu_last_bdf,4,4
	.comm	amd_iommu_devtable_lock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
