	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setenv_route
_setenv_route:                          ## @setenv_route
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -40(%rbp)
	movq	_RT_DEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_setenv_route_addr
	movl	12(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_setenv_route_addr
	movl	8(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_setenv_route_addr
	movq	_RT_METRIC_DEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	leaq	-40(%rbp), %rsi
	movl	$256, %edi                      ## imm = 0x100
	callq	_alloc_buf_gc
	movl	%eax, -48(%rbp)
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_buf_printf
	movq	%r12, %rdi
	callq	_BSTR
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_setenv_int
LBB0_3:
	leaq	-40(%rbp), %rdi
	callq	_gc_free
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RT_DEFINED,4,2                 ## @RT_DEFINED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"network"

L_.str.1:                               ## @.str.1
	.asciz	"netmask"

L_.str.2:                               ## @.str.2
	.asciz	"gateway"

	.comm	_RT_METRIC_DEFINED,4,2          ## @RT_METRIC_DEFINED
L_.str.3:                               ## @.str.3
	.asciz	"route_metric_%d"

	.no_dead_strip	_setenv_route
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setenv_route
_setenv_route:                          ; @setenv_route
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_gc_new
	str	w0, [sp, #8]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _RT_DEFINED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RT_DEFINED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w2, [x20, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_setenv_route_addr
	ldr	w2, [x20, #12]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_setenv_route_addr
	ldr	w2, [x20, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_setenv_route_addr
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _RT_METRIC_DEFINED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RT_METRIC_DEFINED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	add	x1, sp, #8
	mov	w0, #256
	bl	_alloc_buf_gc
	str	w0, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, sp
	mov	x2, x21
	bl	_buf_printf
	mov	x0, sp
	bl	_BSTR
	mov	x1, x0
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_setenv_int
LBB0_3:
	add	x0, sp, #8
	bl	_gc_free
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RT_DEFINED,4,2                 ; @RT_DEFINED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"network"

l_.str.1:                               ; @.str.1
	.asciz	"netmask"

l_.str.2:                               ; @.str.2
	.asciz	"gateway"

	.comm	_RT_METRIC_DEFINED,4,2          ; @RT_METRIC_DEFINED
l_.str.3:                               ; @.str.3
	.asciz	"route_metric_%d"

	.no_dead_strip	_setenv_route
.subsections_via_symbols
