	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_free_l2_bucket
_pmap_free_l2_bucket:                   ## @pmap_free_l2_bucket
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	subq	%rdx, (%rsi)
	jg	LBB0_5
## %bb.1:
	movq	%rdi, %r12
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_5
## %bb.2:
	movq	8(%rsi), %r14
	movq	16(%rsi), %r15
	movq	$0, 16(%rsi)
	movq	16(%r12), %rax
	movq	_L1_TYPE_MASK@GOTPCREL(%rip), %rcx
	movq	_L1_C_DOM_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	(%rax), %r13
	andl	(%r13,%r14,4), %ebx
	movl	8(%r12), %edi
	callq	_L1_C_DOM
	movq	_L1_TYPE_C@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	cmpl	%eax, %ebx
	jne	LBB0_4
## %bb.3:
	leaq	(,%r14,4), %rdi
	addq	%r13, %rdi
	movl	$0, (%rdi)
	callq	_PTE_SYNC
LBB0_4:
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_pmap_free_l2_ptp
	movq	(%r12), %rbx
	movq	%r14, %rdi
	callq	_L2_IDX
	movq	(%rbx,%rax,8), %rbx
	movq	(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	cmpq	$1, %rax
	jle	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r12), %r15
	movq	%r14, %rdi
	callq	_L2_IDX
	movq	$0, (%r15,%rax,8)
	movq	_l2table_zone@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uma_zfree                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_pmap,8,3                ## @kernel_pmap
	.comm	_L1_TYPE_MASK,4,2               ## @L1_TYPE_MASK
	.comm	_L1_C_DOM_MASK,4,2              ## @L1_C_DOM_MASK
	.comm	_L1_TYPE_C,4,2                  ## @L1_TYPE_C
	.comm	_l2table_zone,4,2               ## @l2table_zone
	.no_dead_strip	_pmap_free_l2_bucket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_free_l2_bucket
_pmap_free_l2_bucket:                   ; @pmap_free_l2_bucket
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x1]
	sub	x8, x8, x2
	str	x8, [x1]
Lloh0:
	adrp	x9, _kernel_pmap@GOTPAGE
Lloh1:
	ldr	x9, [x9, _kernel_pmap@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, x0, #4, le
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
	ldp	x20, x21, [x1, #8]
	str	xzr, [x1, #16]
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	add	x22, x8, x20, lsl #2
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _L1_TYPE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _L1_TYPE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _L1_C_DOM_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _L1_C_DOM_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w23, w9, w8
	ldr	w0, [x0, #8]
	bl	_L1_C_DOM
Lloh9:
	adrp	x8, _L1_TYPE_C@GOTPAGE
Lloh10:
	ldr	x8, [x8, _L1_TYPE_C@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w8, w0
	cmp	w23, w8
	b.ne	LBB0_3
; %bb.2:
	str	wzr, [x22]
	mov	x0, x22
	bl	_PTE_SYNC
LBB0_3:
	mov	x0, x21
	bl	_pmap_free_l2_ptp
	ldr	x21, [x19]
	mov	x0, x20
	bl	_L2_IDX
	ldr	x21, [x21, x0, lsl #3]
	ldr	x8, [x21]
	subs	x8, x8, #1
	str	x8, [x21]
	b.le	LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x19, [x19]
	mov	x0, x20
	bl	_L2_IDX
	str	xzr, [x19, x0, lsl #3]
Lloh12:
	adrp	x8, _l2table_zone@GOTPAGE
Lloh13:
	ldr	x8, [x8, _l2table_zone@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_uma_zfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_pmap,8,3                ; @kernel_pmap
	.comm	_L1_TYPE_MASK,4,2               ; @L1_TYPE_MASK
	.comm	_L1_C_DOM_MASK,4,2              ; @L1_C_DOM_MASK
	.comm	_L1_TYPE_C,4,2                  ; @L1_TYPE_C
	.comm	_l2table_zone,4,2               ; @l2table_zone
	.no_dead_strip	_pmap_free_l2_bucket
.subsections_via_symbols
