	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iommu_flush_iotlb_psi
_iommu_flush_iotlb_psi:                 ## @iommu_flush_iotlb_psi
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	testl	%r8d, %r8d
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movl	%ecx, %edi
	callq	___roundup_pow_of_two
	movl	%eax, %edi
	callq	_ilog2
	movq	_VTD_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdx
	movq	(%r14), %rcx
	movl	(%rdx,%rcx,4), %ebx
	xorl	%edi, %edi
	testl	%r13d, %r13d
	movl	%eax, %r13d
	sete	%dil
	callq	_BUG_ON
	movl	8(%r14), %edi
	callq	_cap_pgsel_inv
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	8(%r14), %edi
	callq	_cap_max_amask_val
	cmpl	%eax, %r13d
	jbe	LBB0_3
LBB0_2:
	movq	_DMA_TLB_DSI_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_4
LBB0_3:
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r15b
	shll	$6, %r15d
	orl	%r12d, %r15d
	movq	_DMA_TLB_PSI_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r13d, %ecx
LBB0_4:
	callq	*16(%r14)
	movl	8(%r14), %edi
	callq	_cap_caching_mode
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.5:
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r13d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iommu_flush_dev_iotlb          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VTD_PAGE_SHIFT,4,2             ## @VTD_PAGE_SHIFT
	.comm	_DMA_TLB_DSI_FLUSH,4,2          ## @DMA_TLB_DSI_FLUSH
	.comm	_DMA_TLB_PSI_FLUSH,4,2          ## @DMA_TLB_PSI_FLUSH
	.no_dead_strip	_iommu_flush_iotlb_psi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iommu_flush_iotlb_psi
_iommu_flush_iotlb_psi:                 ; @iommu_flush_iotlb_psi
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x25, x3
	mov	x23, x2
	mov	x19, x1
	mov	x22, x0
	cmp	w4, #0
	cset	w26, ne
	mov	x0, x3
	bl	___roundup_pow_of_two
	bl	_ilog2
	mov	x21, x0
Lloh0:
	adrp	x8, _VTD_PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VTD_PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w23, w23, w8
	ldr	x8, [x19]
	ldr	x9, [x22]
	ldr	w24, [x8, x9, lsl #2]
	cmp	w25, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w0, [x22, #8]
	bl	_cap_pgsel_inv
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x22, #8]
	bl	_cap_max_amask_val
	cmp	w21, w0
	b.ls	LBB0_3
LBB0_2:
	ldr	x8, [x22, #16]
Lloh3:
	adrp	x9, _DMA_TLB_DSI_FLUSH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMA_TLB_DSI_FLUSH@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x9]
	mov	x0, x22
	mov	x1, x24
	mov	w2, #0
	mov	w3, #0
	blr	x8
	b	LBB0_4
LBB0_3:
	lsl	w8, w26, #6
	ldr	x9, [x22, #16]
	orr	w2, w23, w8
Lloh6:
	adrp	x8, _DMA_TLB_PSI_FLUSH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_TLB_PSI_FLUSH@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x24
	mov	x3, x21
	blr	x9
LBB0_4:
	ldr	w0, [x22, #8]
	bl	_cap_caching_mode
	cbz	w20, LBB0_7
; %bb.5:
	cbz	w0, LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_iommu_flush_dev_iotlb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VTD_PAGE_SHIFT,4,2             ; @VTD_PAGE_SHIFT
	.comm	_DMA_TLB_DSI_FLUSH,4,2          ; @DMA_TLB_DSI_FLUSH
	.comm	_DMA_TLB_PSI_FLUSH,4,2          ; @DMA_TLB_PSI_FLUSH
	.no_dead_strip	_iommu_flush_iotlb_psi
.subsections_via_symbols
