	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_qi_invalidate_locked      ## -- Begin function dmar_qi_invalidate_locked
	.p2align	4, 0x90
_dmar_qi_invalidate_locked:             ## @dmar_qi_invalidate_locked
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_DMAR_ASSERT_LOCKED
	testl	%r13d, %r13d
	jle	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	leaq	-48(%rbp), %rcx
	callq	_calc_am
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_dmar_qi_ensure
	movq	_DMAR_IQ_DESCR_IOTLB_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_DMAR_IQ_DESCR_IOTLB_INV@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_DMAR_IQ_DESCR_IOTLB_DW@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_DMAR_IQ_DESCR_IOTLB_DR@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_DMAR_IQ_DESCR_IOTLB_DID
	orl	%eax, %r14d
	orl	%ebx, %r15d
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_dmar_qi_emit
	movl	-48(%rbp), %eax
	addl	%eax, %ebx
	subl	%eax, %r13d
	jg	LBB0_1
LBB0_2:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_dmar_qi_emit_wait_seq
	movq	%r12, %rdi
	callq	_dmar_qi_advance_tail
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAR_IQ_DESCR_IOTLB_INV,4,2    ## @DMAR_IQ_DESCR_IOTLB_INV
	.comm	_DMAR_IQ_DESCR_IOTLB_PAGE,4,2   ## @DMAR_IQ_DESCR_IOTLB_PAGE
	.comm	_DMAR_IQ_DESCR_IOTLB_DW,4,2     ## @DMAR_IQ_DESCR_IOTLB_DW
	.comm	_DMAR_IQ_DESCR_IOTLB_DR,4,2     ## @DMAR_IQ_DESCR_IOTLB_DR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_qi_invalidate_locked      ; -- Begin function dmar_qi_invalidate_locked
	.p2align	2
_dmar_qi_invalidate_locked:             ; @dmar_qi_invalidate_locked
	.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
	str	w4, [sp, #8]                    ; 4-byte Folded Spill
	str	x3, [sp]                        ; 8-byte Folded Spill
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_DMAR_ASSERT_LOCKED
	cmp	w22, #1
	b.lt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x26, _DMAR_IQ_DESCR_IOTLB_INV@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DMAR_IQ_DESCR_IOTLB_INV@GOTPAGEOFF]
Lloh2:
	adrp	x27, _DMAR_IQ_DESCR_IOTLB_PAGE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _DMAR_IQ_DESCR_IOTLB_PAGE@GOTPAGEOFF]
Lloh4:
	adrp	x28, _DMAR_IQ_DESCR_IOTLB_DW@GOTPAGE
Lloh5:
	ldr	x28, [x28, _DMAR_IQ_DESCR_IOTLB_DW@GOTPAGEOFF]
Lloh6:
	adrp	x19, _DMAR_IQ_DESCR_IOTLB_DR@GOTPAGE
Lloh7:
	ldr	x19, [x19, _DMAR_IQ_DESCR_IOTLB_DR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_calc_am
	mov	x25, x0
	mov	x0, x20
	mov	w1, #1
	bl	_dmar_qi_ensure
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x28]
	orr	w8, w8, w9
	ldr	w9, [x19]
	orr	w21, w8, w9
	ldr	w0, [x24]
	bl	_DMAR_IQ_DESCR_IOTLB_DID
	orr	w1, w21, w0
	orr	w2, w25, w23
	mov	x0, x20
	bl	_dmar_qi_emit
	ldr	w8, [sp, #12]
	add	w23, w8, w23
	sub	w22, w22, w8
	cmp	w22, #0
	b.gt	LBB0_2
LBB0_3:
	mov	x0, x20
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	bl	_dmar_qi_emit_wait_seq
	mov	x0, x20
	bl	_dmar_qi_advance_tail
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAR_IQ_DESCR_IOTLB_INV,4,2    ; @DMAR_IQ_DESCR_IOTLB_INV
	.comm	_DMAR_IQ_DESCR_IOTLB_PAGE,4,2   ; @DMAR_IQ_DESCR_IOTLB_PAGE
	.comm	_DMAR_IQ_DESCR_IOTLB_DW,4,2     ; @DMAR_IQ_DESCR_IOTLB_DW
	.comm	_DMAR_IQ_DESCR_IOTLB_DR,4,2     ; @DMAR_IQ_DESCR_IOTLB_DR
.subsections_via_symbols
