	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlm_free_svid
_nlm_free_svid:                         ## @nlm_free_svid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_nlm_svid_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	decl	16(%rbx)
	je	LBB0_1
## %bb.4:
	movq	_nlm_svid_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
LBB0_1:
	xorl	%edi, %edi
	cmpl	$0, 12(%rbx)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_ns_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	movq	_nlm_svid_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	_nlm_svid_allocator@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_free_unr
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_crfree
LBB0_3:
	movq	_M_NLM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nlm_svid_lock,4,2              ## @nlm_svid_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Freeing active SVID"

	.comm	_ns_link,4,2                    ## @ns_link
	.comm	_nlm_svid_allocator,4,2         ## @nlm_svid_allocator
	.comm	_M_NLM,4,2                      ## @M_NLM
	.no_dead_strip	_nlm_free_svid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlm_free_svid
_nlm_free_svid:                         ; @nlm_free_svid
	.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
Lloh0:
	adrp	x0, _nlm_svid_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _nlm_svid_lock@GOTPAGEOFF]
	bl	_mtx_lock
	ldr	w8, [x19, #16]
	subs	w8, w8, #1
	str	w8, [x19, #16]
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, _nlm_svid_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _nlm_svid_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mtx_unlock
LBB0_2:
	ldr	w8, [x19, #12]
	cmp	w8, #0
	cset	w0, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh6:
	adrp	x8, _ns_link@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ns_link@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LIST_REMOVE
Lloh9:
	adrp	x0, _nlm_svid_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _nlm_svid_lock@GOTPAGEOFF]
	bl	_mtx_unlock
Lloh11:
	adrp	x8, _nlm_svid_allocator@GOTPAGE
Lloh12:
	ldr	x8, [x8, _nlm_svid_allocator@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_free_unr
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_crfree
LBB0_4:
Lloh14:
	adrp	x8, _M_NLM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _M_NLM@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_nlm_svid_lock,4,2              ; @nlm_svid_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Freeing active SVID"

	.comm	_ns_link,4,2                    ; @ns_link
	.comm	_nlm_svid_allocator,4,2         ; @nlm_svid_allocator
	.comm	_M_NLM,4,2                      ; @M_NLM
	.no_dead_strip	_nlm_free_svid
.subsections_via_symbols
