	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_free_l1
_pmap_free_l1:                          ## @pmap_free_l1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_l1_lru_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	(%rbx), %rax
	movq	_PMAP_DOMAINS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	movq	_l1_lru@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_l1_lru_list@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	(%rbx), %rax
LBB0_2:
	movl	16(%rbx), %ecx
	movq	8(%rbx), %rdx
	movslq	(%r14), %rsi
	movl	%ecx, -4(%rdx,%rsi,4)
	movl	(%r14), %ecx
	decl	%ecx
	movl	%ecx, 16(%rbx)
	decq	%rax
	movq	%rax, (%rbx)
	movq	_l1_lru@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_l1_lru_list@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	je	LBB0_3
## %bb.4:
	callq	_TAILQ_INSERT_TAIL
	jmp	LBB0_5
LBB0_3:
	callq	_TAILQ_INSERT_HEAD
LBB0_5:
	movq	_l1_lru_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_l1_lru_lock,4,2                ## @l1_lru_lock
	.comm	_PMAP_DOMAINS,8,3               ## @PMAP_DOMAINS
	.comm	_l1_lru_list,4,2                ## @l1_lru_list
	.comm	_l1_lru,4,2                     ## @l1_lru
	.no_dead_strip	_pmap_free_l1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_free_l1
_pmap_free_l1:                          ; @pmap_free_l1
	.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, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x0, _l1_lru_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _l1_lru_lock@GOTPAGEOFF]
	bl	_mtx_lock
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _PMAP_DOMAINS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PMAP_DOMAINS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x21, _l1_lru@GOTPAGE
Lloh6:
	ldr	x21, [x21, _l1_lru@GOTPAGEOFF]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	ldr	w2, [x21]
Lloh7:
	adrp	x0, _l1_lru_list@GOTPAGE
Lloh8:
	ldr	x0, [x0, _l1_lru_list@GOTPAGEOFF]
	mov	x1, x19
	bl	_TAILQ_REMOVE
	ldr	x8, [x19]
LBB0_2:
	ldr	w9, [x19, #16]
	ldr	x10, [x19, #8]
	ldrsw	x11, [x20]
	add	x10, x10, x11, lsl #2
	stur	w9, [x10, #-4]
	ldr	w9, [x20]
	sub	w9, w9, #1
	str	w9, [x19, #16]
	ldr	w2, [x21]
	subs	x8, x8, #1
	str	x8, [x19]
Lloh9:
	adrp	x0, _l1_lru_list@GOTPAGE
Lloh10:
	ldr	x0, [x0, _l1_lru_list@GOTPAGEOFF]
	mov	x1, x19
	b.eq	LBB0_4
; %bb.3:
	bl	_TAILQ_INSERT_TAIL
	b	LBB0_5
LBB0_4:
	bl	_TAILQ_INSERT_HEAD
LBB0_5:
Lloh11:
	adrp	x0, _l1_lru_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _l1_lru_lock@GOTPAGEOFF]
	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	_mtx_unlock
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_l1_lru_lock,4,2                ; @l1_lru_lock
	.comm	_PMAP_DOMAINS,8,3               ; @PMAP_DOMAINS
	.comm	_l1_lru_list,4,2                ; @l1_lru_list
	.comm	_l1_lru,4,2                     ; @l1_lru
	.no_dead_strip	_pmap_free_l1
.subsections_via_symbols
