	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_inv_iotlb_glob            ## -- Begin function dmar_inv_iotlb_glob
	.p2align	4, 0x90
_dmar_inv_iotlb_glob:                   ## @dmar_inv_iotlb_glob
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_DMAR_ASSERT_LOCKED
	xorl	%edi, %edi
	cmpl	$0, 4(%rbx)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movl	(%rbx), %edi
	callq	_DMAR_ECAP_IRO
	shll	$4, %eax
	movslq	%eax, %r14
	movq	_DMAR_IOTLB_REG_OFF@GOTPCREL(%rip), %r15
	movq	_DMAR_IOTLB_IVT@GOTPCREL(%rip), %rax
	movq	_DMAR_IOTLB_IIRG_GLB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	(%r15), %rsi
	movq	_DMAR_IOTLB_DR@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	addq	%r14, %rsi
	movq	_DMAR_IOTLB_DW@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_dmar_write8
	movq	(%r15), %rax
	leaq	(%rax,%r14), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_dmar_read4
	movq	_DMAR_IOTLB_IVT32@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	sete	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DMAR_WAIT_UNTIL                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QI enabled"

	.comm	_DMAR_IOTLB_REG_OFF,8,3         ## @DMAR_IOTLB_REG_OFF
	.comm	_DMAR_IOTLB_IVT,4,2             ## @DMAR_IOTLB_IVT
	.comm	_DMAR_IOTLB_IIRG_GLB,4,2        ## @DMAR_IOTLB_IIRG_GLB
	.comm	_DMAR_IOTLB_DR,4,2              ## @DMAR_IOTLB_DR
	.comm	_DMAR_IOTLB_DW,4,2              ## @DMAR_IOTLB_DW
	.comm	_DMAR_IOTLB_IVT32,4,2           ## @DMAR_IOTLB_IVT32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_inv_iotlb_glob            ; -- Begin function dmar_inv_iotlb_glob
	.p2align	2
_dmar_inv_iotlb_glob:                   ; @dmar_inv_iotlb_glob
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_DMAR_ASSERT_LOCKED
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	w0, [x19]
	bl	_DMAR_ECAP_IRO
	lsl	w8, w0, #4
Lloh2:
	adrp	x20, _DMAR_IOTLB_REG_OFF@GOTPAGE
Lloh3:
	ldr	x20, [x20, _DMAR_IOTLB_REG_OFF@GOTPAGEOFF]
	sxtw	x21, w8
	ldr	x8, [x20]
	add	x1, x8, x21
Lloh4:
	adrp	x8, _DMAR_IOTLB_IVT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DMAR_IOTLB_IVT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _DMAR_IOTLB_IIRG_GLB@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DMAR_IOTLB_IIRG_GLB@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _DMAR_IOTLB_DR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DMAR_IOTLB_DR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh13:
	adrp	x9, _DMAR_IOTLB_DW@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DMAR_IOTLB_DW@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_dmar_write8
	ldr	x8, [x20]
	add	x8, x8, x21
	add	x1, x8, #4
	mov	x0, x19
	bl	_dmar_read4
Lloh16:
	adrp	x8, _DMAR_IOTLB_IVT32@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DMAR_IOTLB_IVT32@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DMAR_WAIT_UNTIL
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QI enabled"

	.comm	_DMAR_IOTLB_REG_OFF,8,3         ; @DMAR_IOTLB_REG_OFF
	.comm	_DMAR_IOTLB_IVT,4,2             ; @DMAR_IOTLB_IVT
	.comm	_DMAR_IOTLB_IIRG_GLB,4,2        ; @DMAR_IOTLB_IIRG_GLB
	.comm	_DMAR_IOTLB_DR,4,2              ; @DMAR_IOTLB_DR
	.comm	_DMAR_IOTLB_DW,4,2              ; @DMAR_IOTLB_DW
	.comm	_DMAR_IOTLB_IVT32,4,2           ; @DMAR_IOTLB_IVT32
.subsections_via_symbols
