	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_endnetpath                     ## -- Begin function endnetpath
	.p2align	4, 0x90
_endnetpath:                            ## @endnetpath
	.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_2
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_NP_VALID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_endnetconfig
LBB0_5:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_free
LBB0_7:
	movq	24(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %edi
	callq	_freenetconfigent
	movq	16(%rbx), %r15
	movq	%rbx, %rdi
	callq	_free
	movq	%r15, %rbx
	testq	%r15, %r15
	jne	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NP_VALID,8,3                   ## @NP_VALID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_endnetpath                     ; -- Begin function endnetpath
	.p2align	2
_endnetpath:                            ; @endnetpath
	.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_9
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NP_VALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NP_VALID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_endnetconfig
LBB0_4:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_free
LBB0_6:
	ldr	x20, [x19, #24]
	cbz	x20, LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #8]
	bl	_freenetconfigent
	ldr	x21, [x20, #16]
	mov	x0, x20
	bl	_free
	mov	x20, x21
	cbnz	x21, LBB0_7
LBB0_8:
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	mov	w0, #-1
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NP_VALID,8,3                   ; @NP_VALID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
