	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_large_map_wb_large
_pmap_large_map_wb_large:               ## @pmap_large_map_wb_large
	.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, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rsi, %rdi
	jge	LBB0_16
## %bb.1:
	movq	%rdi, %r12
	movq	_X86_PG_AVAIL1@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_pmap_large_map_flush_range
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_atomic_clear_long
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_maybe_yield
	addq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	jge	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	_AMDID_PAGE1GB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_amd_feature@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_pmap_large_map_pdpe
	movq	%rax, %r13
	movl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movq	_X86_PG_PS@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NBPDP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_pmap_large_map_pde
	movq	%rax, %r13
	movl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movq	_X86_PG_PS@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NBPDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_pmap_large_map_pte
	movq	%rax, %r13
	movl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=2
	xorl	%eax, %eax
	callq	_cpu_spinwait
	movl	(%r13), %edx
	movl	%edx, -44(%rbp)
	movb	$1, %r15b
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %eax
	testl	%edx, %eax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	_X86_PG_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%edx, %ecx
	sete	%sil
	movl	%r15d, %ebx
	xorb	$1, %bl
	testb	%bl, %sil
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	notl	%ecx
	andl	%ecx, %edx
	orl	%eax, %edx
	movq	%r13, %rdi
	leaq	-44(%rbp), %rsi
	callq	_atomic_fcmpset_long
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	-44(%rbp), %edx
	jmp	LBB0_9
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amd_feature,4,2                ## @amd_feature
	.comm	_AMDID_PAGE1GB,4,2              ## @AMDID_PAGE1GB
	.comm	_X86_PG_PS,4,2                  ## @X86_PG_PS
	.comm	_NBPDP,8,3                      ## @NBPDP
	.comm	_NBPDR,8,3                      ## @NBPDR
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_X86_PG_AVAIL1,4,2              ## @X86_PG_AVAIL1
	.comm	_X86_PG_M,4,2                   ## @X86_PG_M
	.no_dead_strip	_pmap_large_map_wb_large
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_large_map_wb_large
_pmap_large_map_wb_large:               ; @pmap_large_map_wb_large
	.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
	cmp	x0, x1
	b.ge	LBB0_15
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _amd_feature@GOTPAGE
Lloh1:
	ldr	x23, [x23, _amd_feature@GOTPAGEOFF]
Lloh2:
	adrp	x24, _AMDID_PAGE1GB@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AMDID_PAGE1GB@GOTPAGEOFF]
Lloh4:
	adrp	x25, _X86_PG_PS@GOTPAGE
Lloh5:
	ldr	x25, [x25, _X86_PG_PS@GOTPAGEOFF]
Lloh6:
	adrp	x28, _X86_PG_AVAIL1@GOTPAGE
Lloh7:
	ldr	x28, [x28, _X86_PG_AVAIL1@GOTPAGEOFF]
Lloh8:
	adrp	x27, _X86_PG_M@GOTPAGE
Lloh9:
	ldr	x27, [x27, _X86_PG_M@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_pmap_large_map_flush_range
	ldr	w1, [x28]
	mov	x0, x21
	bl	_atomic_clear_long
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_maybe_yield
	add	x20, x22, x20
	cmp	x20, x19
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w8, [x23]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_pmap_large_map_pdpe
	ldr	w8, [x0]
	str	w8, [sp, #12]
	ldr	w9, [x25]
	and	w9, w9, w8
Lloh10:
	adrp	x10, _NBPDP@GOTPAGE
Lloh11:
	ldr	x10, [x10, _NBPDP@GOTPAGEOFF]
Lloh12:
	ldr	x22, [x10]
	cmp	w9, #0
	ccmp	x22, #0, #4, ne
	b.ne	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_pmap_large_map_pde
	ldr	w8, [x0]
	str	w8, [sp, #12]
	ldr	w9, [x25]
	and	w9, w9, w8
Lloh13:
	adrp	x10, _NBPDR@GOTPAGE
Lloh14:
	ldr	x10, [x10, _NBPDR@GOTPAGEOFF]
Lloh15:
	ldr	x22, [x10]
	cmp	w9, #0
	ccmp	x22, #0, #4, ne
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_pmap_large_map_pte
	mov	x21, x0
	ldr	w8, [x0]
	str	w8, [sp, #12]
Lloh16:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	x22, [x9]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	bl	_cpu_spinwait
	ldr	w8, [x21]
	str	w8, [sp, #12]
	mov	w26, #1
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w10, [x27]
	tst	w10, w8
	cset	w11, eq
	eor	w12, w26, #0x1
	and	w11, w11, w12
	tbnz	w11, #0, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	bic	w8, w8, w10
	orr	w2, w8, w9
	add	x1, sp, #12
	mov	x0, x21
	bl	_atomic_fcmpset_long
	cbnz	w0, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w8, [sp, #12]
	b	LBB0_11
LBB0_15:
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_amd_feature,4,2                ; @amd_feature
	.comm	_AMDID_PAGE1GB,4,2              ; @AMDID_PAGE1GB
	.comm	_X86_PG_PS,4,2                  ; @X86_PG_PS
	.comm	_NBPDP,8,3                      ; @NBPDP
	.comm	_NBPDR,8,3                      ; @NBPDR
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_X86_PG_AVAIL1,4,2              ; @X86_PG_AVAIL1
	.comm	_X86_PG_M,4,2                   ; @X86_PG_M
	.no_dead_strip	_pmap_large_map_wb_large
.subsections_via_symbols
