	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_flush_for_ctx_entry
_dmar_flush_for_ctx_entry:              ## @dmar_flush_for_ctx_entry
	.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	_DMAR_CAP_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	xorl	%r14d, %r14d
	orl	%esi, %eax
	je	LBB0_6
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_dmar_qi_invalidate_ctx_glob_locked
	movq	_DMAR_ECAP_DI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rbx), %eax
	orl	%r15d, %eax
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_dmar_qi_invalidate_iotlb_glob_locked
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_dmar_inv_ctx_glob
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_DMAR_ECAP_DI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rbx), %eax
	orl	%r15d, %eax
	movl	$0, %r14d
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmar_inv_iotlb_glob            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAR_CAP_CM,4,2                ## @DMAR_CAP_CM
	.comm	_DMAR_ECAP_DI,4,2               ## @DMAR_ECAP_DI
	.no_dead_strip	_dmar_flush_for_ctx_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_flush_for_ctx_entry
_dmar_flush_for_ctx_entry:              ; @dmar_flush_for_ctx_entry
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DMAR_CAP_CM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMAR_CAP_CM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	orr	w8, w8, w1
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_dmar_qi_invalidate_ctx_glob_locked
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _DMAR_ECAP_DI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMAR_ECAP_DI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	orr	w8, w8, w20
	cbz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_dmar_qi_invalidate_iotlb_glob_locked
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	bl	_dmar_inv_ctx_glob
	cbnz	w0, LBB0_5
; %bb.7:
	ldr	w8, [x19, #4]
Lloh6:
	adrp	x9, _DMAR_ECAP_DI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DMAR_ECAP_DI@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
	orr	w8, w8, w20
	cbz	w8, LBB0_4
; %bb.8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dmar_inv_iotlb_glob
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAR_CAP_CM,4,2                ; @DMAR_CAP_CM
	.comm	_DMAR_ECAP_DI,4,2               ; @DMAR_ECAP_DI
	.no_dead_strip	_dmar_flush_for_ctx_entry
.subsections_via_symbols
