	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function net__route_v4_add
_net__route_v4_add:                     ## @net__route_v4_add
	.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	$-1, %r12d
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_inet_pton
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.2:
	movl	-36(%rbp), %edi
	callq	_ntohl
	movl	%eax, -36(%rbp)
	movq	_iface@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_printf
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_4:
	movl	$10, %edi
	callq	_putchar
	movq	(%r12), %r8
	movl	%r15d, (%rsp)
	leaq	-36(%rbp), %rsi
	xorl	%edi, %edi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_net_route_v4_add
	movl	%eax, %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMD: ip route add %s/%d dev %s"

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

	.no_dead_strip	_net__route_v4_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function net__route_v4_add
_net__route_v4_add:                     ; @net__route_v4_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #28
	mov	x1, x21
	bl	_inet_pton
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [sp, #28]
	bl	_ntohl
	str	w0, [sp, #28]
Lloh3:
	adrp	x22, _iface@GOTPAGE
Lloh4:
	ldr	x22, [x22, _iface@GOTPAGEOFF]
	ldr	x8, [x22]
	stp	x20, x8, [sp, #8]
	str	x21, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	cmp	w19, #1
	b.lt	LBB0_4
; %bb.3:
	str	x19, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_4:
	mov	w0, #10
	bl	_putchar
	ldr	x4, [x22]
	add	x1, sp, #28
	mov	x0, #0
	mov	x2, x20
	mov	x3, #0
	mov	w5, #0
	mov	x6, x19
	bl	_net_route_v4_add
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMD: ip route add %s/%d dev %s"

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

	.no_dead_strip	_net__route_v4_add
.subsections_via_symbols
