	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __unmap_single
___unmap_single:                        ## @__unmap_single
	.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	%esi, %r12d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	%esi, %edi
	movq	%rdx, %rsi
	movq	%rax, %rdx
	callq	_iommu_num_pages
	movq	_PAGE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r12d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %r13
	movq	(%r14), %rdx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_iommu_unmap_page
	movq	(%r14), %rdx
	addl	%edx, %ebx
	decl	%r15d
	jne	LBB0_2
LBB0_3:
	movq	_amd_iommu_unmap_flush@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_domain_flush_tlb
	movq	%rbx, %rdi
	callq	_domain_flush_complete
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_ops_free_iova              ## TAILCALL
LBB0_5:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	___roundup_pow_of_two
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_iova                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_amd_iommu_unmap_flush,8,3      ## @amd_iommu_unmap_flush
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	___unmap_single
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __unmap_single
___unmap_single:                        ; @__unmap_single
	.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	x8, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x2, [x24]
	mov	x0, x1
	mov	x1, x8
	bl	_iommu_num_pages
	mov	x21, x0
Lloh2:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w20, w8, w20
	cbz	w0, LBB0_3
; %bb.1:
	add	x22, x19, #4
	ldr	x2, [x24]
	mov	x25, x21
	mov	x23, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_iommu_unmap_page
	ldr	x2, [x24]
	add	w23, w23, w2
	subs	w25, w25, #1
	b.ne	LBB0_2
LBB0_3:
Lloh5:
	adrp	x8, _amd_iommu_unmap_flush@GOTPAGE
Lloh6:
	ldr	x8, [x8, _amd_iommu_unmap_flush@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	add	x22, x19, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x22
	bl	_domain_flush_tlb
	mov	x0, x22
	bl	_domain_flush_complete
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x20
	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	_dma_ops_free_iova
LBB0_5:
	mov	x0, x21
	bl	___roundup_pow_of_two
	mov	x2, x0
Lloh8:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsr	w1, w20, w8
	mov	x0, x19
	mov	w3, #0
	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	_queue_iova
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_amd_iommu_unmap_flush,8,3      ; @amd_iommu_unmap_flush
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	___unmap_single
.subsections_via_symbols
