	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function settunnel
_settunnel:                             ## @settunnel
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	cmpq	$0, (%rcx)
	je	LBB0_8
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %rbx
	leaq	-40(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_3:
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_5:
	movq	-40(%rbp), %rsi
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movq	-32(%rbp), %rdx
	movq	(%rdx), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	movq	-40(%rbp), %rsi
	movq	-32(%rbp), %rdx
LBB0_7:
	movl	%r14d, %edi
	callq	*(%r15)
	movq	-40(%rbp), %rdi
	callq	_freeaddrinfo
	movq	-32(%rbp), %rdi
	callq	_freeaddrinfo
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	8(%r15), %esi
	leaq	L_.str(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warn                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"address family %s does not support tunnel setup"

L_.str.1:                               ## @.str.1
	.asciz	"error in parsing address string: %s"

L_.str.2:                               ## @.str.2
	.asciz	"source and destination address families do not match"

	.no_dead_strip	_settunnel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function settunnel
_settunnel:                             ; @settunnel
	.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
	mov	x19, x3
	ldr	x8, [x3]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	add	x3, sp, #24
	mov	x1, #0
	mov	x2, #0
	bl	_getaddrinfo
	cbz	w0, LBB0_3
; %bb.2:
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, #0
	mov	x2, #0
	bl	_getaddrinfo
	cbz	w0, LBB0_5
; %bb.4:
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_5:
	ldp	x2, x1, [sp, #16]
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldr	x9, [x2]
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldp	x2, x1, [sp, #16]
LBB0_7:
	ldr	x8, [x19]
	mov	x0, x20
	blr	x8
	ldr	x0, [sp, #24]
	bl	_freeaddrinfo
	ldr	x0, [sp, #16]
	bl	_freeaddrinfo
	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
LBB0_8:
	ldr	w1, [x19, #8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_warn
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"address family %s does not support tunnel setup"

l_.str.1:                               ; @.str.1
	.asciz	"error in parsing address string: %s"

l_.str.2:                               ; @.str.2
	.asciz	"source and destination address families do not match"

	.no_dead_strip	_settunnel
.subsections_via_symbols
