	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_unmap_io_transient        ## -- Begin function pmap_unmap_io_transient
	.p2align	4, 0x90
_pmap_unmap_io_transient:               ## @pmap_unmap_io_transient
	.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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	testl	%r12d, %r12d
	jg	LBB0_3
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	callq	_sched_unpin
	testl	%r12d, %r12d
	jle	LBB0_9
LBB0_3:
	movl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	_dmaplimit@GOTPCREL(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_kernel_arena@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15,%rbx,4), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_vmem_free
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %edi
	callq	_VM_PAGE_TO_PHYS
	cmpq	(%r14), %rax
	jl	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15,%rbx,4), %edi
	movl	$1, %esi
	callq	_pmap_qremove
	jmp	LBB0_7
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dmaplimit,8,3                  ## @dmaplimit
	.comm	_kernel_arena,4,2               ## @kernel_arena
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_unmap_io_transient        ; -- Begin function pmap_unmap_io_transient
	.p2align	2
_pmap_unmap_io_transient:               ; @pmap_unmap_io_transient
	.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	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	cbz	x3, LBB0_2
; %bb.1:
	cmp	w22, #1
	b.ge	LBB0_3
	b	LBB0_9
LBB0_2:
	bl	_sched_unpin
	cmp	w22, #1
	b.lt	LBB0_9
LBB0_3:
	mov	w22, w22
Lloh0:
	adrp	x23, _dmaplimit@GOTPAGE
Lloh1:
	ldr	x23, [x23, _dmaplimit@GOTPAGEOFF]
Lloh2:
	adrp	x24, _kernel_arena@GOTPAGE
Lloh3:
	ldr	x24, [x24, _kernel_arena@GOTPAGEOFF]
Lloh4:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x24]
	ldr	w1, [x20]
	ldr	w2, [x25]
	bl	_vmem_free
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #4
	add	x21, x21, #4
	subs	x22, x22, #1
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_VM_PAGE_TO_PHYS
	ldr	x8, [x23]
	cmp	x0, x8
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x19, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20]
	mov	w1, #1
	bl	_pmap_qremove
	b	LBB0_4
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dmaplimit,8,3                  ; @dmaplimit
	.comm	_kernel_arena,4,2               ; @kernel_arena
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
.subsections_via_symbols
