	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function user_ldt_derefl
_user_ldt_derefl:                       ## @user_ldt_derefl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	decq	(%rdi)
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	_max_ldt_segment@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	movslq	%eax, %r15
	leaq	(%r14,%r15), %rsi
	movq	%r14, %rdi
	callq	_pmap_pti_remove_kva
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_kmem_free
	movq	_M_SUBPROC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_max_ldt_segment,4,2            ## @max_ldt_segment
	.comm	_M_SUBPROC,4,2                  ## @M_SUBPROC
	.no_dead_strip	_user_ldt_derefl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function user_ldt_derefl
_user_ldt_derefl:                       ; @user_ldt_derefl
	.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
	ldr	x8, [x0]
	subs	x8, x8, #1
	str	x8, [x0]
	b.eq	LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _max_ldt_segment@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max_ldt_segment@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w21, w8, #2
	add	x1, x20, w21, sxtw
	mov	x0, x20
	bl	_pmap_pti_remove_kva
	mov	x0, x20
	mov	x1, x21
	bl	_kmem_free
Lloh3:
	adrp	x8, _M_SUBPROC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_SUBPROC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, 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
	b	_free
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_max_ldt_segment,4,2            ; @max_ldt_segment
	.comm	_M_SUBPROC,4,2                  ; @M_SUBPROC
	.no_dead_strip	_user_ldt_derefl
.subsections_via_symbols
