	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_endnetconfig                   ## -- Begin function endnetconfig
	.p2align	4, 0x90
_endnetconfig:                          ## @endnetconfig
	.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
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_NC_VALID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_NC_STORAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
LBB0_3:
	movq	_NC_NOTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_nc_error@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	jmp	LBB0_10
LBB0_4:
	movq	_NC_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r14)
	movq	_ni_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_ni@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	-1(%rcx), %rdx
	movq	%rdx, (%rax)
	cmpq	$2, %rcx
	jl	LBB0_6
## %bb.5:
	movq	_ni_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_9
LBB0_6:
	movq	24(%rax), %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movups	%xmm0, 16(%rax)
	movq	_ni_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	testq	%rbx, %rbx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	32(%rbx), %r15
	movq	24(%rax), %rdi
	callq	_free
	movq	16(%rbx), %rdi
	callq	_free
	movq	8(%rbx), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	movq	%r15, %rbx
	testq	%r15, %r15
	jne	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_free
	movq	_nc_file_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_nc_file@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_fclose
	movq	$0, (%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NC_VALID,8,3                   ## @NC_VALID
	.comm	_NC_STORAGE,8,3                 ## @NC_STORAGE
	.comm	_NC_NOTINIT,4,2                 ## @NC_NOTINIT
	.comm	_nc_error,4,2                   ## @nc_error
	.comm	_NC_INVALID,8,3                 ## @NC_INVALID
	.comm	_ni_lock,4,2                    ## @ni_lock
	.comm	_ni,32,3                        ## @ni
	.comm	_nc_file_lock,4,2               ## @nc_file_lock
	.comm	_nc_file,8,3                    ## @nc_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_endnetconfig                   ; -- Begin function endnetconfig
	.p2align	2
_endnetconfig:                          ; @endnetconfig
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NC_VALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NC_VALID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _NC_STORAGE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NC_STORAGE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _NC_INVALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NC_INVALID@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19]
	stp	xzr, xzr, [x19, #40]
Lloh9:
	adrp	x0, _ni_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _ni_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh11:
	adrp	x8, _ni@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ni@GOTPAGEOFF]
	ldr	x9, [x8]
	sub	x10, x9, #1
	str	x10, [x8]
	cmp	x9, #2
	b.lt	LBB0_5
; %bb.3:
Lloh13:
	adrp	x0, _ni_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _ni_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	bl	_free
	b	LBB0_8
LBB0_4:
Lloh15:
	adrp	x8, _NC_NOTINIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NC_NOTINIT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _nc_error@GOTPAGE
Lloh19:
	ldr	x9, [x9, _nc_error@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
	mov	w0, #-1
	b	LBB0_9
LBB0_5:
	ldr	x20, [x8, #24]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8]
Lloh21:
	adrp	x0, _ni_lock@GOTPAGE
Lloh22:
	ldr	x0, [x0, _ni_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	cbz	x20, LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x20, #32]
	ldr	x8, [x20, #16]
	ldr	x0, [x8, #24]
	bl	_free
	ldr	x0, [x20, #16]
	bl	_free
	ldr	x0, [x20, #8]
	bl	_free
	mov	x0, x20
	bl	_free
	mov	x20, x21
	cbnz	x21, LBB0_6
LBB0_7:
	mov	x0, x19
	bl	_free
Lloh23:
	adrp	x19, _nc_file_lock@GOTPAGE
Lloh24:
	ldr	x19, [x19, _nc_file_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
Lloh25:
	adrp	x20, _nc_file@GOTPAGE
Lloh26:
	ldr	x20, [x20, _nc_file@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_fclose
	str	xzr, [x20]
	mov	x0, x19
	bl	_mutex_unlock
LBB0_8:
	mov	w0, #0
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_NC_VALID,8,3                   ; @NC_VALID
	.comm	_NC_STORAGE,8,3                 ; @NC_STORAGE
	.comm	_NC_NOTINIT,4,2                 ; @NC_NOTINIT
	.comm	_nc_error,4,2                   ; @nc_error
	.comm	_NC_INVALID,8,3                 ; @NC_INVALID
	.comm	_ni_lock,4,2                    ; @ni_lock
	.comm	_ni,32,3                        ; @ni
	.comm	_nc_file_lock,4,2               ; @nc_file_lock
	.comm	_nc_file,8,3                    ; @nc_file
.subsections_via_symbols
