	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function domain_context_clear_one
_domain_context_clear_one:              ## @domain_context_clear_one
	.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
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	16(%rdi), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_iommu_context_addr
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_context_domain_id
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_context_clear_entry
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	___iommu_flush_cache
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	shll	$8, %r14d
	orl	%r15d, %r14d
	movq	_DMA_CCMD_MASK_NOBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DMA_CCMD_DEVICE_INVL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	*8(%rbx)
	movq	(%rbx), %rax
	movq	_DMA_TLB_DSI_FLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CCMD_MASK_NOBIT,4,2        ## @DMA_CCMD_MASK_NOBIT
	.comm	_DMA_CCMD_DEVICE_INVL,4,2       ## @DMA_CCMD_DEVICE_INVL
	.comm	_DMA_TLB_DSI_FLUSH,4,2          ## @DMA_TLB_DSI_FLUSH
	.no_dead_strip	_domain_context_clear_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function domain_context_clear_one
_domain_context_clear_one:              ; @domain_context_clear_one
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x22, x0, #16
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	bl	_iommu_context_addr
	cbz	x0, LBB0_4
; %bb.2:
	mov	x23, x0
	bl	_context_domain_id
	mov	x24, x0
	mov	x0, x23
	bl	_context_clear_entry
	mov	x0, x19
	mov	x1, x23
	mov	w2, #4
	bl	___iommu_flush_cache
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #8]
	orr	w2, w20, w21, lsl #8
Lloh0:
	adrp	x9, _DMA_CCMD_MASK_NOBIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMA_CCMD_MASK_NOBIT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
Lloh3:
	adrp	x9, _DMA_CCMD_DEVICE_INVL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMA_CCMD_DEVICE_INVL@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x9]
	mov	x0, x19
	mov	x1, x24
	blr	x8
	ldr	x5, [x19]
Lloh6:
	adrp	x8, _DMA_TLB_DSI_FLUSH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_TLB_DSI_FLUSH@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x24
	mov	w2, #0
	mov	w3, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x5
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CCMD_MASK_NOBIT,4,2        ; @DMA_CCMD_MASK_NOBIT
	.comm	_DMA_CCMD_DEVICE_INVL,4,2       ; @DMA_CCMD_DEVICE_INVL
	.comm	_DMA_TLB_DSI_FLUSH,4,2          ; @DMA_TLB_DSI_FLUSH
	.no_dead_strip	_domain_context_clear_one
.subsections_via_symbols
