	.file	"extr_intel_qi.c_dmar_qi_wait_for_seq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dmarse"
	.text
	.p2align 4
	.type	dmar_qi_wait_for_seq, @function
dmar_qi_wait_for_seq:
.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, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	lea	r13, 4[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	DMAR_ASSERT_LOCKED@PLT
	add	DWORD PTR [rbx], 1
.L2:
	mov	rsi, rbp
	mov	rdi, rbx
	call	dmar_qi_seq_processed@PLT
	test	eax, eax
	jne	.L10
.L6:
	cmp	QWORD PTR cold[rip], 0
	jne	.L7
	test	r12d, r12d
	je	.L3
.L7:
	xor	eax, eax
	call	cpu_spinwait@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	dmar_qi_seq_processed@PLT
	test	eax, eax
	je	.L6
.L10:
	sub	DWORD PTR [rbx], 1
	add	rsp, 8
	.cfi_remember_state
	.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
.L3:
	.cfi_restore_state
	mov	r8d, DWORD PTR hz[rip]
	xor	edx, edx
	mov	rsi, r13
	mov	rdi, rbx
	lea	rcx, .LC0[rip]
	call	msleep@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	dmar_qi_wait_for_seq, .-dmar_qi_wait_for_seq
	.comm	hz,4,4
	.comm	cold,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_intel_qi.c_dmar_qi_wait_for_seq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dmarse\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dmar_qi_wait_for_seq, %function
dmar_qi_wait_for_seq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	sub	sp, sp, #12
	mov	r6, r1
	mov	r5, r2
	bl	DMAR_ASSERT_LOCKED
	ldr	r3, [r4]
	ldr	r7, .L9
	add	r3, r3, #1
	ldr	r9, .L9+4
	ldr	r8, .L9+8
	str	r3, [r4]
.L2:
	mov	r1, r6
	mov	r0, r4
	bl	dmar_qi_seq_processed
	cmp	r0, #0
	bne	.L8
	ldr	r2, [r7]
	orrs	r2, r5, r2
	beq	.L3
	bl	cpu_spinwait
	b	.L2
.L3:
	ldr	r3, [r9]
	mov	r0, r4
	str	r3, [sp]
	add	r1, r4, #4
	mov	r3, r8
	bl	msleep
	b	.L2
.L8:
	ldr	r3, [r4]
	sub	r3, r3, #1
	str	r3, [r4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	.align	2
.L9:
	.word	cold
	.word	hz
	.word	.LC0
	.size	dmar_qi_wait_for_seq, .-dmar_qi_wait_for_seq
	.comm	hz,4,4
	.comm	cold,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
