	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vtd_iotlb_global_invalidate
_vtd_iotlb_global_invalidate:           ## @vtd_iotlb_global_invalidate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_vtd_wbflush
	movl	(%rbx), %edi
	callq	_VTD_ECAP_IRO
	cltq
	movq	_VTD_IIR_IVT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_VTD_IIR_IIRG_GLOBAL@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	shlq	$4, %rax
	movq	_VTD_IIR_DRAIN_READS@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movq	_VTD_IIR_DRAIN_WRITES@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movl	%edx, 8(%rbx,%rax)
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx,%rax), %edx
	movl	%edx, -12(%rbp)
	movl	-12(%rbp), %edx
	andl	(%rcx), %edx
	jne	LBB0_1
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VTD_IIR_IVT,4,2                ## @VTD_IIR_IVT
	.comm	_VTD_IIR_IIRG_GLOBAL,4,2        ## @VTD_IIR_IIRG_GLOBAL
	.comm	_VTD_IIR_DRAIN_READS,4,2        ## @VTD_IIR_DRAIN_READS
	.comm	_VTD_IIR_DRAIN_WRITES,4,2       ## @VTD_IIR_DRAIN_WRITES
	.no_dead_strip	_vtd_iotlb_global_invalidate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vtd_iotlb_global_invalidate
_vtd_iotlb_global_invalidate:           ; @vtd_iotlb_global_invalidate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_vtd_wbflush
	ldr	w0, [x19], #8
	bl	_VTD_ECAP_IRO
                                        ; kill: def $w0 killed $w0 def $x0
	sbfiz	x8, x0, #4, #32
Lloh0:
	adrp	x9, _VTD_IIR_IVT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VTD_IIR_IVT@GOTPAGEOFF]
	ldr	w10, [x9]
Lloh2:
	adrp	x11, _VTD_IIR_IIRG_GLOBAL@GOTPAGE
Lloh3:
	ldr	x11, [x11, _VTD_IIR_IIRG_GLOBAL@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh5:
	adrp	x11, _VTD_IIR_DRAIN_READS@GOTPAGE
Lloh6:
	ldr	x11, [x11, _VTD_IIR_DRAIN_READS@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh8:
	adrp	x11, _VTD_IIR_DRAIN_WRITES@GOTPAGE
Lloh9:
	ldr	x11, [x11, _VTD_IIR_DRAIN_WRITES@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x19, x8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8, x19]
	str	w10, [sp, #12]
	ldr	w10, [sp, #12]
	ldr	w11, [x9]
	tst	w11, w10
	b.ne	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VTD_IIR_IVT,4,2                ; @VTD_IIR_IVT
	.comm	_VTD_IIR_IIRG_GLOBAL,4,2        ; @VTD_IIR_IIRG_GLOBAL
	.comm	_VTD_IIR_DRAIN_READS,4,2        ; @VTD_IIR_DRAIN_READS
	.comm	_VTD_IIR_DRAIN_WRITES,4,2       ; @VTD_IIR_DRAIN_WRITES
	.no_dead_strip	_vtd_iotlb_global_invalidate
.subsections_via_symbols
