	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function contact_server
_contact_server:                        ## @contact_server
	.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, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testq	%rdi, %rdi
	jne	LBB0_11
## %bb.1:
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rax), %rbx
	jmp	LBB0_4
LBB0_3:
	cmpq	$0, 8(%r12)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rbx
	cmoveq	%rax, %rbx
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_11
LBB0_10:
	leaq	L_.str.1(%rip), %rbx
	jmp	LBB0_11
LBB0_5:
	leaq	L_.str(%rip), %rbx
LBB0_11:
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	leaq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_extstrtoaddr
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_16
LBB0_14:
	movl	(%r12), %esi
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_ipstrtoaddr
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	leaq	L_.str.8(%rip), %rdi
LBB0_16:
	movq	%rbx, %rsi
	callq	_fatal_exit
LBB0_17:
	movq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdi
	callq	_addr_is_ip6
	testq	%rax, %rax
	jne	LBB0_18
## %bb.19:
	movq	_PF_INET@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_18:
	movq	_PF_INET6@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_socket
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_22
## %bb.21:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.9(%rip), %rdi
	movq	%rax, %rsi
	callq	_fatal_exit
LBB0_22:
	movq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rsi
	movl	%ebx, %edi
	callq	_connect
	testq	%rax, %rax
	js	LBB0_23
## %bb.26:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strerror
	movq	-48(%rbp), %rcx
	leaq	L_.str.11(%rip), %rdi
	leaq	-40(%rbp), %rdx
	movq	%rax, %rsi
	callq	_log_err_addr
	testl	%r14d, %r14d
	je	LBB0_25
## %bb.24:
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_25
## %bb.27:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$3, %edi
	callq	_exit
LBB0_25:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"127.0.0.1"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"::0"

L_.str.4:                               ## @.str.4
	.asciz	"0::0"

L_.str.5:                               ## @.str.5
	.asciz	"0::"

L_.str.6:                               ## @.str.6
	.asciz	"::"

L_.str.7:                               ## @.str.7
	.asciz	"could not parse IP@port: %s"

L_.str.8:                               ## @.str.8
	.asciz	"could not parse IP: %s"

	.comm	_PF_INET6,4,2                   ## @PF_INET6
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.9:                               ## @.str.9
	.asciz	"socket: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.11:                              ## @.str.11
	.asciz	"connect"

	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.comm	_AF_LOCAL,8,3                   ## @AF_LOCAL
	.comm	_WSAECONNREFUSED,4,2            ## @WSAECONNREFUSED
L_str:                                  ## @str
	.asciz	"unbound is stopped"

	.no_dead_strip	_contact_server
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function contact_server
_contact_server:                        ; @contact_server
	.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, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cbnz	x0, LBB0_11
; %bb.1:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x21, [x8]
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	ldr	x9, [x22, #8]
Lloh5:
	adrp	x10, l_.str.1@PAGE
Lloh6:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x9, #0
	csel	x21, x10, x8, eq
LBB0_4:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.5:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.6:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.7:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.8:
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbnz	x0, LBB0_11
LBB0_9:
Lloh17:
	adrp	x21, l_.str.1@PAGE
Lloh18:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh19:
	adrp	x21, l_.str@PAGE
Lloh20:
	add	x21, x21, l_.str@PAGEOFF
LBB0_11:
	mov	x0, x21
	mov	w1, #64
	bl	_strchr
	cbz	x0, LBB0_14
; %bb.12:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x21
	bl	_extstrtoaddr
	cbnz	w0, LBB0_17
; %bb.13:
Lloh21:
	adrp	x0, l_.str.7@PAGE
Lloh22:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_16
LBB0_14:
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x21
	bl	_ipstrtoaddr
	cbnz	w0, LBB0_17
; %bb.15:
Lloh23:
	adrp	x0, l_.str.8@PAGE
Lloh24:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_16:
	mov	x1, x21
	bl	_fatal_exit
LBB0_17:
	ldr	x1, [sp]
	add	x0, sp, #8
	bl	_addr_is_ip6
Lloh25:
	adrp	x8, _PF_INET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh27:
	adrp	x9, _PF_INET6@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PF_INET6@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_socket
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_19
; %bb.18:
Lloh32:
	adrp	x8, _errno@GOTPAGE
Lloh33:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh35:
	adrp	x0, l_.str.9@PAGE
Lloh36:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_fatal_exit
LBB0_19:
	ldr	x2, [sp]
	add	x1, sp, #8
	mov	x0, x20
	bl	_connect
	tbnz	x0, #63, LBB0_21
; %bb.20:
	mov	x0, 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
LBB0_21:
Lloh37:
	adrp	x8, _errno@GOTPAGE
Lloh38:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh39:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_strerror
	mov	x1, x0
	ldr	x3, [sp]
Lloh40:
	adrp	x0, l_.str.11@PAGE
Lloh41:
	add	x0, x0, l_.str.11@PAGEOFF
	add	x2, sp, #8
	bl	_log_err_addr
	cbz	w19, LBB0_24
; %bb.22:
Lloh42:
	adrp	x8, _ECONNREFUSED@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ECONNREFUSED@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_24
; %bb.23:
Lloh45:
	adrp	x0, l_str@PAGE
Lloh46:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #3
	bl	_exit
LBB0_24:
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"127.0.0.1"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"::0"

l_.str.4:                               ; @.str.4
	.asciz	"0::0"

l_.str.5:                               ; @.str.5
	.asciz	"0::"

l_.str.6:                               ; @.str.6
	.asciz	"::"

l_.str.7:                               ; @.str.7
	.asciz	"could not parse IP@port: %s"

l_.str.8:                               ; @.str.8
	.asciz	"could not parse IP: %s"

	.comm	_PF_INET6,4,2                   ; @PF_INET6
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.9:                               ; @.str.9
	.asciz	"socket: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.11:                              ; @.str.11
	.asciz	"connect"

	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.comm	_AF_LOCAL,8,3                   ; @AF_LOCAL
	.comm	_WSAECONNREFUSED,4,2            ; @WSAECONNREFUSED
l_str:                                  ; @str
	.asciz	"unbound is stopped"

	.no_dead_strip	_contact_server
.subsections_via_symbols
