	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_locked_segment
_free_locked_segment:                   ## @free_locked_segment
	.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
	callq	_local_irq_save
	movq	_SUN4C_REAL_PGDIR_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %r14
	movq	%r14, %rdi
	callq	_sun4c_get_segmap
	movq	_mmu_entry_pool@GOTPCREL(%rip), %rcx
	movzbl	%al, %ebx
	shlq	$2, %rbx
	addq	(%rcx), %rbx
	xorl	%eax, %eax
	callq	_flush_user_windows
	movq	%r14, %rdi
	callq	_sun4c_flush_segment
	movq	%rbx, %rdi
	callq	_sun4c_kernel_unmap
	movq	_sun4c_ufree_ring@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_add_ring
	movq	_max_user_taken_entries@GOTPCREL(%rip), %rax
	incl	(%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_local_irq_restore              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SUN4C_REAL_PGDIR_MASK,8,3      ## @SUN4C_REAL_PGDIR_MASK
	.comm	_mmu_entry_pool,8,3             ## @mmu_entry_pool
	.comm	_sun4c_ufree_ring,4,2           ## @sun4c_ufree_ring
	.comm	_max_user_taken_entries,4,2     ## @max_user_taken_entries
	.no_dead_strip	_free_locked_segment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_locked_segment
_free_locked_segment:                   ; @free_locked_segment
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_local_irq_save
Lloh0:
	adrp	x8, _SUN4C_REAL_PGDIR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUN4C_REAL_PGDIR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	x19, x8, x19
	mov	x0, x19
	bl	_sun4c_get_segmap
Lloh3:
	adrp	x8, _mmu_entry_pool@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmu_entry_pool@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x20, x8, w0, uxtw #2
	bl	_flush_user_windows
	mov	x0, x19
	bl	_sun4c_flush_segment
	mov	x0, x20
	bl	_sun4c_kernel_unmap
Lloh6:
	adrp	x0, _sun4c_ufree_ring@GOTPAGE
Lloh7:
	ldr	x0, [x0, _sun4c_ufree_ring@GOTPAGEOFF]
	mov	x1, x20
	bl	_add_ring
Lloh8:
	adrp	x8, _max_user_taken_entries@GOTPAGE
Lloh9:
	ldr	x8, [x8, _max_user_taken_entries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_local_irq_restore
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SUN4C_REAL_PGDIR_MASK,8,3      ; @SUN4C_REAL_PGDIR_MASK
	.comm	_mmu_entry_pool,8,3             ; @mmu_entry_pool
	.comm	_sun4c_ufree_ring,4,2           ; @sun4c_ufree_ring
	.comm	_max_user_taken_entries,4,2     ; @max_user_taken_entries
	.no_dead_strip	_free_locked_segment
.subsections_via_symbols
