	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setnetconfig                   ## -- Begin function setnetconfig
	.p2align	4, 0x90
_setnetconfig:                          ## @setnetconfig
	.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
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_ni@GOTPCREL(%rip), %r14
	incl	(%r14)
	movq	_nc_file@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jne	LBB0_3
## %bb.2:
	movq	_NETCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_NC_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movl	4(%r14), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_6
LBB0_4:
	decl	(%r14)
	movq	_NC_NONETCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_nc_error@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_free
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ni,8,2                         ## @ni
	.comm	_nc_file,8,3                    ## @nc_file
	.comm	_NETCONFIG,4,2                  ## @NETCONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_NC_VALID,4,2                   ## @NC_VALID
	.comm	_NC_NONETCONFIG,4,2             ## @NC_NONETCONFIG
	.comm	_nc_error,4,2                   ## @nc_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setnetconfig                   ; -- Begin function setnetconfig
	.p2align	2
_setnetconfig:                          ; @setnetconfig
	.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
	mov	w0, #24
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x20, _ni@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ni@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
Lloh2:
	adrp	x21, _nc_file@GOTPAGE
Lloh3:
	ldr	x21, [x21, _nc_file@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _NETCONFIG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NETCONFIG@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	str	x0, [x21]
	cbz	x0, LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _NC_VALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NC_VALID@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	str	xzr, [x19, #8]
	ldr	w8, [x20, #4]
	str	w8, [x19]
LBB0_4:
	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
	ret
LBB0_5:
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
Lloh12:
	adrp	x8, _NC_NONETCONFIG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NC_NONETCONFIG@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _nc_error@GOTPAGE
Lloh16:
	ldr	x9, [x9, _nc_error@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
	mov	x0, x19
	bl	_free
	mov	x19, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ni,8,2                         ; @ni
	.comm	_nc_file,8,3                    ; @nc_file
	.comm	_NETCONFIG,4,2                  ; @NETCONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_NC_VALID,4,2                   ; @NC_VALID
	.comm	_NC_NONETCONFIG,4,2             ; @NC_NONETCONFIG
	.comm	_nc_error,4,2                   ; @nc_error
.subsections_via_symbols
