	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_map_io_transient          ## -- Begin function pmap_map_io_transient
	.p2align	4, 0x90
_pmap_map_io_transient:                 ## @pmap_map_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edx, %eax
	testl	%edx, %edx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jle	LBB0_6
## %bb.1:
	leaq	(,%rax,4), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_PHYS_TO_DMAP
	movl	%eax, (%rbx,%r14)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %r14
	cmpq	%r14, %r15
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%r14), %edi
	callq	_VM_PAGE_TO_PHYS
	movq	%rax, %r12
	xorl	%edi, %edi
	movq	_DMAP_MAX_PHYSADDR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	setge	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_kernel_arena@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_BESTFIT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	leaq	(%rbx,%r14), %rcx
	callq	_vmem_alloc
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	movslq	%eax, %rsi
	callq	_KASSERT
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
LBB0_6:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.8:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_sched_pin
LBB0_10:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_16
## %bb.11:
	xorl	%ebx, %ebx
	movq	_DMAP_MAX_PHYSADDR@GOTPCREL(%rip), %r14
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %edi
	callq	_VM_PAGE_TO_PHYS
	cmpq	(%r14), %rax
	jl	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r12, %rdi
	callq	_panic
	jmp	LBB0_14
LBB0_15:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_16
LBB0_7:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_DMAP_MAX_PHYSADDR,8,3          ## @DMAP_MAX_PHYSADDR
	.comm	_kernel_arena,4,2               ## @kernel_arena
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_M_BESTFIT,4,2                  ## @M_BESTFIT
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"pmap_map_io_transient: TODO: Map out of DMAP data"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_map_io_transient          ; -- Begin function pmap_map_io_transient
	.p2align	2
_pmap_map_io_transient:                 ; @pmap_map_io_transient
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x27, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	w28, w2
Lloh3:
	adrp	x26, _DMAP_MAX_PHYSADDR@GOTPAGE
Lloh4:
	ldr	x26, [x26, _DMAP_MAX_PHYSADDR@GOTPAGEOFF]
	cmp	w2, #1
	stp	w3, w2, [sp, #8]                ; 8-byte Folded Spill
	b.lt	LBB0_6
; %bb.1:
	mov	x23, x1
Lloh5:
	adrp	x21, _M_WAITOK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _M_WAITOK@GOTPAGEOFF]
	mov	x25, x28
	mov	x19, x27
Lloh7:
	adrp	x22, _TRUE@GOTPAGE
Lloh8:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_PHYS_TO_DMAP
	str	w0, [x23]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #4
	add	x19, x19, #4
	subs	x25, x25, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_VM_PAGE_TO_PHYS
	mov	x24, x0
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w0, ge
	bl	___predict_false
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x8, _kernel_arena@GOTPAGE
Lloh10:
	ldr	x8, [x8, _kernel_arena@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _M_BESTFIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _M_BESTFIT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w2, w9, w8
	mov	x3, x23
	bl	_vmem_alloc
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #0
	cset	w8, eq
	sxtw	x1, w0
	mov	x0, x8
	bl	_KASSERT
	ldr	w20, [x22]
	b	LBB0_3
LBB0_6:
	cbz	w20, LBB0_14
; %bb.7:
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cbnz	w8, LBB0_9
; %bb.8:
	bl	_sched_pin
LBB0_9:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.10:
Lloh18:
	adrp	x21, l_.str.1@PAGE
Lloh19:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x27, x27, #4
	subs	x28, x28, #1
	b.eq	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	bl	_VM_PAGE_TO_PHYS
	ldr	x8, [x26]
	cmp	x0, x8
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	_panic
	b	LBB0_11
LBB0_14:
Lloh20:
	adrp	x8, _FALSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_DMAP_MAX_PHYSADDR,8,3          ; @DMAP_MAX_PHYSADDR
	.comm	_kernel_arena,4,2               ; @kernel_arena
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_M_BESTFIT,4,2                  ; @M_BESTFIT
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"pmap_map_io_transient: TODO: Map out of DMAP data"

.subsections_via_symbols
