	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setpath
_setpath:                               ## @setpath
	.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
	movq	%rdi, %rbx
	movq	_miblen@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_getmib
LBB0_2:
	movq	%rbx, %rdi
	callq	_qstring
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movq	_mib@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r15), %r15
	movq	%r14, %rdi
	callq	_strlen
	leaq	1(%rax), %r9
	movl	%ebx, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_sysctl
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movq	_pathctl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_6:
	movq	_modpath@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_free
LBB0_8:
	movq	%r14, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_miblen,8,3                     ## @miblen
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"building path string"

	.comm	_mib,4,2                        ## @mib
L_.str.1:                               ## @.str.1
	.asciz	"setting path: sysctl(%s)"

	.comm	_pathctl,4,2                    ## @pathctl
	.comm	_modpath,8,3                    ## @modpath
	.no_dead_strip	_setpath
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setpath
_setpath:                               ; @setpath
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x21, _miblen@GOTPAGE
Lloh1:
	ldr	x21, [x21, _miblen@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_2
; %bb.1:
	bl	_getmib
LBB0_2:
	mov	x0, x19
	bl	_qstring
	mov	x19, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
Lloh10:
	adrp	x8, _mib@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mib@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	ldr	x21, [x21]
	mov	x0, x19
	bl	_strlen
	add	x5, x0, #1
	mov	x0, x20
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	mov	x4, x19
	bl	_sysctl
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _pathctl@GOTPAGE
Lloh14:
	ldr	x8, [x8, _pathctl@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
Lloh18:
	adrp	x20, _modpath@GOTPAGE
Lloh19:
	ldr	x20, [x20, _modpath@GOTPAGEOFF]
	ldr	x0, [x20]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_free
LBB0_8:
	str	x19, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_miblen,8,3                     ; @miblen
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"building path string"

	.comm	_mib,4,2                        ; @mib
l_.str.1:                               ; @.str.1
	.asciz	"setting path: sysctl(%s)"

	.comm	_pathctl,4,2                    ; @pathctl
	.comm	_modpath,8,3                    ; @modpath
	.no_dead_strip	_setpath
.subsections_via_symbols
