	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_qi_invalidate_iec         ## -- Begin function dmar_qi_invalidate_iec
	.p2align	4, 0x90
_dmar_qi_invalidate_iec:                ## @dmar_qi_invalidate_iec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_DMAR_ASSERT_LOCKED
	movq	(%r14), %rax
	cmpq	%r13, %rax
	setg	%cl
	testq	%r15, %r15
	setg	%dl
	andb	%cl, %dl
	leaq	(%r15,%r13), %rcx
	cmpq	%rax, %rcx
	setle	%al
	andb	%dl, %al
	movzbl	%al, %edi
	movq	%r15, %rsi
	callq	_KASSERT
	testq	%r15, %r15
	jle	LBB0_3
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	orq	%r15, %rdi
	callq	_ffs
	leaq	-1(%rax), %r12
	movl	$1, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	cltq
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_dmar_qi_ensure
	movq	_DMAR_IQ_DESCR_IEC_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_DMAR_IQ_DESCR_IEC_INV@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_DMAR_IQ_DESCR_IEC_IIDX
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_DMAR_IQ_DESCR_IEC_IM
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_dmar_qi_emit
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r13
	subq	%rax, %r15
	jg	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_dmar_qi_ensure
	leaq	-64(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_dmar_qi_emit_wait_seq
	movq	%r14, %rdi
	callq	_dmar_qi_advance_tail
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_dmar_qi_wait_for_seq
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAR_IQ_DESCR_IEC_INV,4,2      ## @DMAR_IQ_DESCR_IEC_INV
	.comm	_DMAR_IQ_DESCR_IEC_IDX,4,2      ## @DMAR_IQ_DESCR_IEC_IDX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_qi_invalidate_iec         ; -- Begin function dmar_qi_invalidate_iec
	.p2align	2
_dmar_qi_invalidate_iec:                ; @dmar_qi_invalidate_iec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_DMAR_ASSERT_LOCKED
	ldr	x8, [x19]
	cmp	x20, #0
	ccmp	x8, x21, #4, gt
	add	x9, x20, x21
	ccmp	x9, x8, #0, gt
	cset	w0, le
	mov	x1, x20
	bl	_KASSERT
	cmp	x20, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w23, #1
Lloh0:
	adrp	x24, _DMAR_IQ_DESCR_IEC_INV@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DMAR_IQ_DESCR_IEC_INV@GOTPAGEOFF]
Lloh2:
	adrp	x25, _DMAR_IQ_DESCR_IEC_IDX@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DMAR_IQ_DESCR_IEC_IDX@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	orr	x0, x21, x20
	bl	_ffs
	sub	x22, x0, #1
	lsl	w8, w23, w22
	sxtw	x26, w8
	mov	x0, x19
	mov	w1, #1
	bl	_dmar_qi_ensure
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w27, w9, w8
	mov	x0, x21
	bl	_DMAR_IQ_DESCR_IEC_IIDX
	orr	w27, w27, w0
	mov	x0, x22
	bl	_DMAR_IQ_DESCR_IEC_IM
	orr	w1, w27, w0
	mov	x0, x19
	mov	w2, #0
	bl	_dmar_qi_emit
	sub	x20, x20, x26
	add	x21, x21, x26
	cmp	x20, #0
	b.gt	LBB0_2
LBB0_3:
	mov	x0, x19
	mov	w1, #1
	bl	_dmar_qi_ensure
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_dmar_qi_emit_wait_seq
	mov	x0, x19
	bl	_dmar_qi_advance_tail
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_dmar_qi_wait_for_seq
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAR_IQ_DESCR_IEC_INV,4,2      ; @DMAR_IQ_DESCR_IEC_INV
	.comm	_DMAR_IQ_DESCR_IEC_IDX,4,2      ; @DMAR_IQ_DESCR_IEC_IDX
.subsections_via_symbols
