	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unmap_page
_unmap_page:                            ## @unmap_page
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_cnt_unmap_single@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_INC_STATS_COUNTER
	movq	%rbx, %rdi
	callq	_check_device
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_get_device_resources
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	-40(%rbp), %rdi
	callq	_dma_ops_domain
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	-40(%rbp), %rdi
	callq	_spin_lock_irqsave
	movq	-48(%rbp), %rdi
	movq	-40(%rbp), %rax
	movl	4(%rax), %esi
	movl	%r12d, %edx
	movq	%r15, %rcx
	movl	%r14d, %r8d
	callq	___unmap_single
	movq	-48(%rbp), %rdi
	callq	_iommu_completion_wait
	movq	-40(%rbp), %rdi
	callq	_spin_unlock_irqrestore
LBB0_4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cnt_unmap_single,4,2           ## @cnt_unmap_single
	.no_dead_strip	_unmap_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unmap_page
_unmap_page:                            ; @unmap_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _cnt_unmap_single@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cnt_unmap_single@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_INC_STATS_COUNTER
	mov	x0, x22
	bl	_check_device
	cbz	w0, LBB0_4
; %bb.1:
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #12
	mov	x0, x22
	bl	_get_device_resources
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x0, [sp, #16]
	bl	_dma_ops_domain
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x0, [sp, #16]
	bl	_spin_lock_irqsave
	ldp	x8, x0, [sp, #16]
	ldr	w1, [x8, #4]
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	___unmap_single
	ldr	x0, [sp, #24]
	bl	_iommu_completion_wait
	ldr	x0, [sp, #16]
	bl	_spin_unlock_irqrestore
LBB0_4:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cnt_unmap_single,4,2           ; @cnt_unmap_single
	.no_dead_strip	_unmap_page
.subsections_via_symbols
