	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __iommu_unmap
___iommu_unmap:                         ## @__iommu_unmap
	.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
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, (%r13)
	sete	%dil
	jmp	LBB0_3
LBB0_2:
	movl	$1, %edi
LBB0_3:
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	___IOMMU_DOMAIN_PAGING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	8(%r13), %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	xorl	%ebx, %ebx
LBB0_16:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r13), %rdi
	callq	___ffs
	movl	$1, %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	movq	%r15, %rdi
	orq	%r14, %rdi
	movl	%ebx, %esi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_pr_debug
	testq	%r15, %r15
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.9:
	xorl	%ebx, %ebx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdx
	subq	%rbx, %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iommu_pgsize
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	movq	%r12, %r13
	movq	%r12, %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	movq	%r15, %r12
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_pr_debug
	addq	%r15, %r14
	addq	%r15, %rbx
	cmpq	%r12, %rbx
	movq	%r12, %r15
	movq	%r13, %r12
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jb	LBB0_10
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_pr_err
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_14:
	movq	%r12, %r15
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_trace_unmap
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	___IOMMU_DOMAIN_PAGING,4,2      ## @__IOMMU_DOMAIN_PAGING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unaligned: iova 0x%lx size 0x%zx min_pagesz 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"unmap this: iova 0x%lx size 0x%zx\n"

L_.str.2:                               ## @.str.2
	.asciz	"unmapped: iova 0x%lx size 0x%zx\n"

	.no_dead_strip	___iommu_unmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __iommu_unmap
___iommu_unmap:                         ; @__iommu_unmap
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x27, [x0, #16]
	ldr	x8, [x27]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_4
	b	LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_4
LBB0_3:
	ldr	w8, [x22, #8]
Lloh0:
	adrp	x9, ___IOMMU_DOMAIN_PAGING@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___IOMMU_DOMAIN_PAGING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
LBB0_4:
	mov	x23, #0
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x0, [x22]
	bl	___ffs
	mov	w8, #1
	lsl	w23, w8, w0
	orr	x0, x19, x20
	mov	x1, x23
	bl	_IS_ALIGNED
	cbz	w0, LBB0_12
; %bb.7:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_pr_debug
	mov	x23, #0
	cbz	x19, LBB0_11
; %bb.8:
Lloh5:
	adrp	x24, l_.str.2@PAGE
Lloh6:
	add	x24, x24, l_.str.2@PAGEOFF
	mov	x25, x20
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sub	x2, x19, x23
	mov	x0, x22
	mov	x1, x25
	bl	_iommu_pgsize
	mov	x2, x0
	ldr	x8, [x27]
	mov	x0, x22
	mov	x1, x25
	mov	x3, x21
	blr	x8
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x26, x0
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	bl	_pr_debug
	add	x25, x26, x25
	add	x23, x26, x23
	cmp	x23, x19
	b.lo	LBB0_9
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_trace_unmap
	b	LBB0_5
LBB0_12:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	bl	_pr_err
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	___IOMMU_DOMAIN_PAGING,4,2      ; @__IOMMU_DOMAIN_PAGING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unaligned: iova 0x%lx size 0x%zx min_pagesz 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"unmap this: iova 0x%lx size 0x%zx\n"

l_.str.2:                               ; @.str.2
	.asciz	"unmapped: iova 0x%lx size 0x%zx\n"

	.no_dead_strip	___iommu_unmap
.subsections_via_symbols
