	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setnetpath                     ## -- Begin function setnetpath
	.p2align	4, 0x90
_setnetpath:                            ## @setnetpath
	.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
	movl	$40, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_setnetconfig
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	_NP_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	_NETPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r14
	movq	16(%rbx), %rdi
	callq	_endnetconfig
	movq	$0, 16(%rbx)
	movq	%r14, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	movq	(%rbx), %rax
	jmp	LBB0_8
LBB0_7:
	movq	$0, (%rbx)
	xorl	%eax, %eax
LBB0_8:
	movq	%rax, 8(%rbx)
	jmp	LBB0_11
LBB0_9:
	movq	%rbx, %rdi
	callq	_free
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NP_VALID,4,2                   ## @NP_VALID
	.comm	_NETPATH,4,2                    ## @NETPATH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setnetpath                     ; -- Begin function setnetpath
	.p2align	2
_setnetpath:                            ; @setnetpath
	.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	w0, #40
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	bl	_setnetconfig
	str	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _NP_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NP_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	str	xzr, [x19, #24]
Lloh3:
	adrp	x8, _NETPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETPATH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_getenv
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	ldr	x0, [x19, #16]
	bl	_endnetconfig
	str	xzr, [x19, #16]
	mov	x0, x20
	bl	_strlen
	add	w0, w0, #1
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.4:
	mov	x1, x20
	bl	_strcpy
	ldr	x8, [x19]
	b	LBB0_6
LBB0_5:
	mov	x8, #0
	str	xzr, [x19]
LBB0_6:
	str	x8, [x19, #8]
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_free
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NP_VALID,4,2                   ; @NP_VALID
	.comm	_NETPATH,4,2                    ; @NETPATH
.subsections_via_symbols
