	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_alloc_l1
_pmap_alloc_l1:                         ## @pmap_alloc_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_l1_lru_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_l1_lru_list@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	movq	_l1_lru@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_TAILQ_REMOVE
	movq	(%rbx), %r15
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movq	%rax, (%rbx)
	movq	16(%rbx), %rax
	incq	%rax
	movq	%rax, 16(%rbx)
	movq	_PMAP_DOMAINS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	movl	(%r12), %edx
	movq	_l1_lru_list@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
LBB0_2:
	movq	_l1_lru_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	%rbx, 8(%r14)
	incq	%r15
	movq	%r15, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_l1_lru_lock,4,2                ## @l1_lru_lock
	.comm	_l1_lru_list,4,2                ## @l1_lru_list
	.comm	_l1_lru,4,2                     ## @l1_lru
	.comm	_PMAP_DOMAINS,8,3               ## @PMAP_DOMAINS
	.no_dead_strip	_pmap_alloc_l1
.subsections_via_symbols

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