	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_large_map_wb              ## -- Begin function pmap_large_map_wb
	.p2align	4, 0x90
_pmap_large_map_wb:                     ## @pmap_large_map_wb
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	(%rdi,%rsi), %r15
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_pmap_large_map_wb_fence
	movq	_DMAP_MIN_ADDRESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, %rax
	jg	LBB0_3
## %bb.1:
	movq	_dmaplimit@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	cmpq	%rax, %r15
	jle	LBB0_2
LBB0_3:
	movq	_LARGEMAP_MIN_ADDRESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, %rax
	jg	LBB0_5
## %bb.4:
	movq	_lm_ents@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	_NBPML4@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	imulq	%rcx, %rdx
	addq	%rdx, %rax
	xorl	%r12d, %r12d
	cmpq	%rax, %r15
	setle	%r12b
LBB0_5:
	movl	%r12d, %edi
	movq	%r14, %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pmap_large_map_wb_large
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_pmap_large_map_flush_range
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmap_large_map_wb_fence        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAP_MIN_ADDRESS,8,3           ## @DMAP_MIN_ADDRESS
	.comm	_dmaplimit,8,3                  ## @dmaplimit
	.comm	_LARGEMAP_MIN_ADDRESS,8,3       ## @LARGEMAP_MIN_ADDRESS
	.comm	_lm_ents,4,2                    ## @lm_ents
	.comm	_NBPML4,4,2                     ## @NBPML4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_large_map_wb              ; -- Begin function pmap_large_map_wb
	.p2align	2
_pmap_large_map_wb:                     ; @pmap_large_map_wb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	add	x21, x0, x1
	bl	_pmap_large_map_wb_fence
Lloh0:
	adrp	x8, _DMAP_MIN_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMAP_MIN_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _dmaplimit@GOTPAGE
Lloh4:
	ldr	x9, [x9, _dmaplimit@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x8, x9, x8
	cmp	x21, x8
	b.le	LBB0_6
LBB0_2:
Lloh6:
	adrp	x8, _LARGEMAP_MIN_ADDRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LARGEMAP_MIN_ADDRESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x19
	b.le	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x9, _lm_ents@GOTPAGE
Lloh10:
	ldr	x9, [x9, _lm_ents@GOTPAGEOFF]
Lloh11:
	ldrsw	x9, [x9]
Lloh12:
	adrp	x10, _NBPML4@GOTPAGE
Lloh13:
	ldr	x10, [x10, _NBPML4@GOTPAGEOFF]
Lloh14:
	ldrsw	x10, [x10]
	madd	x8, x10, x9, x8
	cmp	x21, x8
	cset	w0, le
LBB0_5:
	mov	x1, x20
	bl	_KASSERT
	mov	x0, x19
	mov	x1, x21
	bl	_pmap_large_map_wb_large
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_pmap_large_map_flush_range
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pmap_large_map_wb_fence
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAP_MIN_ADDRESS,8,3           ; @DMAP_MIN_ADDRESS
	.comm	_dmaplimit,8,3                  ; @dmaplimit
	.comm	_LARGEMAP_MIN_ADDRESS,8,3       ; @LARGEMAP_MIN_ADDRESS
	.comm	_lm_ents,4,2                    ; @lm_ents
	.comm	_NBPML4,4,2                     ; @NBPML4
.subsections_via_symbols
