	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __iommu_flush_context
___iommu_flush_context:                 ## @__iommu_flush_context
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rdi, %r14
	cmpl	$128, %r8d
	je	LBB0_6
## %bb.1:
	cmpl	$130, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$129, %ebx
	jne	LBB0_5
## %bb.3:
	movl	%esi, %edi
	callq	_DMA_CCMD_DID
	movl	%eax, %ebx
	orl	$129, %ebx
	jmp	LBB0_6
LBB0_4:
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %edi
	callq	_DMA_CCMD_DID
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_DMA_CCMD_SID
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_DMA_CCMD_FM
	orl	%r13d, %ebx
	orl	%eax, %ebx
	orl	$130, %ebx
	jmp	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BUG
LBB0_6:
	movq	_DMA_CCMD_ICC@GOTPCREL(%rip), %r15
	orl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_raw_spin_lock_irqsave
	movq	_DMAR_CCMD_REG@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%r14), %rdi
	movl	%ebx, %esi
	callq	_dmar_writeq
	movq	(%r12), %rsi
	movq	_dmar_readq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	movl	(%r15), %eax
	andl	%ebx, %eax
	sete	%cl
	movq	%r14, %rdi
	movl	%ebx, %r8d
	callq	_IOMMU_WAIT_OP
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_raw_spin_unlock_irqrestore     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CCMD_ICC,4,2               ## @DMA_CCMD_ICC
	.comm	_DMAR_CCMD_REG,8,3              ## @DMAR_CCMD_REG
	.comm	_dmar_readq,4,2                 ## @dmar_readq
	.no_dead_strip	___iommu_flush_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __iommu_flush_context
___iommu_flush_context:                 ; @__iommu_flush_context
	.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
	cmp	w4, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w4, #130
	b.eq	LBB0_4
; %bb.2:
	cmp	w4, #129
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x1
	bl	_DMA_CCMD_DID
	mov	w8, #129
	orr	w4, w0, w8
	b	LBB0_6
LBB0_4:
	mov	x20, x3
	mov	x21, x2
	mov	x0, x1
	bl	_DMA_CCMD_DID
	mov	x22, x0
	mov	x0, x21
	bl	_DMA_CCMD_SID
	mov	x21, x0
	mov	x0, x20
	bl	_DMA_CCMD_FM
	orr	w8, w22, w21
	orr	w8, w8, w0
	mov	w9, #130
	orr	w4, w8, w9
	b	LBB0_6
LBB0_5:
	bl	_BUG
	mov	w4, #0
LBB0_6:
Lloh0:
	adrp	x21, _DMA_CCMD_ICC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DMA_CCMD_ICC@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w20, w8, w4
	mov	x0, x19
	bl	_raw_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x22, _DMAR_CCMD_REG@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DMAR_CCMD_REG@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	mov	x1, x20
	bl	_dmar_writeq
	ldr	x1, [x22]
Lloh4:
	adrp	x8, _dmar_readq@GOTPAGE
Lloh5:
	ldr	x8, [x8, _dmar_readq@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	ldr	w8, [x21]
	tst	w8, w20
	cset	w3, eq
	mov	x0, x19
	mov	x4, x20
	bl	_IOMMU_WAIT_OP
	mov	x0, x19
	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	_raw_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CCMD_ICC,4,2               ; @DMA_CCMD_ICC
	.comm	_DMAR_CCMD_REG,8,3              ; @DMAR_CCMD_REG
	.comm	_dmar_readq,4,2                 ; @dmar_readq
	.no_dead_strip	___iommu_flush_context
.subsections_via_symbols
