	.file	"extr_intel_ctx.c_dmar_domain_unload_entry.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dmar_domain_unload_entry
	.type	dmar_domain_unload_entry, @function
dmar_domain_unload_entry:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	rdi, QWORD PTR 16[rdi]
	mov	r13, QWORD PTR [rdi]
	cmp	QWORD PTR 8[r13], 0
	je	.L2
	mov	rdi, r13
	call	DMAR_LOCK@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 8[rbp]
	lea	rcx, 28[rbp]
	mov	rdi, QWORD PTR 16[rbp]
	mov	r8d, 1
	sub	rdx, rsi
	call	dmar_qi_invalidate_locked@PLT
	test	r12d, r12d
	jne	.L3
	mov	eax, DWORD PTR DMAR_MAP_ENTRY_QI_NF[rip]
	or	DWORD PTR 24[rbp], eax
.L3:
	mov	edx, DWORD PTR dmamap_link[rip]
	mov	rdi, r13
	mov	rsi, rbp
	call	TAILQ_INSERT_TAIL@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r13
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	DMAR_UNLOCK@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 8[rbp]
	sub	rdx, rsi
	call	domain_flush_iotlb_sync@PLT
	mov	esi, r12d
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	dmar_domain_free_entry@PLT
	.cfi_endproc
.LFE0:
	.size	dmar_domain_unload_entry, .-dmar_domain_unload_entry
	.comm	dmamap_link,4,4
	.comm	DMAR_MAP_ENTRY_QI_NF,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_intel_ctx.c_dmar_domain_unload_entry.c"
	.text
	.align	2
	.global	dmar_domain_unload_entry
	.syntax unified
	.arm
	.fpu softvfp
	.type	dmar_domain_unload_entry, %function
dmar_domain_unload_entry:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #8]
	mov	r5, r1
	ldr	r6, [r0]
	sub	sp, sp, #8
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L2
	mov	r0, r6
	bl	DMAR_LOCK
	mov	r3, r4
	mov	r0, #1
	ldr	r1, [r3], #16
	ldr	r2, [r4, #4]
	str	r0, [sp]
	sub	r2, r2, r1
	ldr	r0, [r4, #8]
	bl	dmar_qi_invalidate_locked
	cmp	r5, #0
	ldreq	r2, .L6
	ldreq	r3, [r4, #12]
	ldreq	r2, [r2]
	mov	r1, r4
	orreq	r3, r3, r2
	streq	r3, [r4, #12]
	ldr	r3, .L6+4
	mov	r0, r6
	ldr	r2, [r3]
	bl	TAILQ_INSERT_TAIL
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	DMAR_UNLOCK
.L2:
	ldm	r4, {r1, r2}
	sub	r2, r2, r1
	bl	domain_flush_iotlb_sync
	mov	r1, r5
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	dmar_domain_free_entry
.L7:
	.align	2
.L6:
	.word	DMAR_MAP_ENTRY_QI_NF
	.word	dmamap_link
	.size	dmar_domain_unload_entry, .-dmar_domain_unload_entry
	.comm	dmamap_link,4,4
	.comm	DMAR_MAP_ENTRY_QI_NF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
