	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function net__route_v6_add_gw
_net__route_v6_add_gw:                  ## @net__route_v6_add_gw
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r13d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.2:
	movl	%ecx, %r15d
	movq	%rdi, %rbx
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	_AF_INET6@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_inet_pton
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.3:
	movl	(%r14), %edi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rsi
	callq	_inet_pton
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.4:
	movq	_iface@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_printf
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_6:
	movl	$10, %edi
	callq	_putchar
	movq	(%r13), %r8
	movl	%r15d, (%rsp)
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	xorl	%edi, %edi
	movl	%ebx, %edx
	xorl	%r9d, %r9d
	callq	_net_route_v6_add
	movl	%eax, %r13d
LBB0_7:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMD: ip -6 route add %s/%d dev %s via %s"

	.comm	_iface,8,3                      ## @iface
L_.str.1:                               ## @.str.1
	.asciz	" metric %d"

	.no_dead_strip	_net__route_v6_add_gw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function net__route_v6_add_gw
_net__route_v6_add_gw:                  ; @net__route_v6_add_gw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	mov	w0, #-1
	cbz	x21, LBB0_8
; %bb.1:
	mov	x22, x2
	cbz	x2, LBB0_8
; %bb.2:
	mov	x19, x3
	mov	x20, x1
Lloh0:
	adrp	x23, _AF_INET6@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AF_INET6@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x2, sp, #40
	mov	x1, x21
	bl	_inet_pton
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.3:
	ldr	w0, [x23]
	add	x2, sp, #32
	mov	x1, x22
	bl	_inet_pton
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.4:
Lloh2:
	adrp	x23, _iface@GOTPAGE
Lloh3:
	ldr	x23, [x23, _iface@GOTPAGEOFF]
	ldr	x8, [x23]
	stp	x8, x22, [sp, #16]
	stp	x21, x20, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.5:
	str	x19, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_6:
	mov	w0, #10
	bl	_putchar
	ldr	x4, [x23]
	add	x1, sp, #40
	add	x3, sp, #32
	mov	x0, #0
	mov	x2, x20
	mov	w5, #0
	mov	x6, x19
	bl	_net_route_v6_add
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMD: ip -6 route add %s/%d dev %s via %s"

	.comm	_iface,8,3                      ; @iface
l_.str.1:                               ; @.str.1
	.asciz	" metric %d"

	.no_dead_strip	_net__route_v6_add_gw
.subsections_via_symbols
