	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_vc
_send_vc:                               ## @send_vc
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movl	16(%rbp), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_get_nsaddr
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_get_salen
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	_errno@GOTPCREL(%rip), %r13
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, (%r12)
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rdx
	callq	_Perror
	movq	%r14, %rdi
	callq	_res_nclose
	movl	(%r12), %eax
	movq	_ECONNRESET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setne	%al
	movl	-92(%rbp), %ebx                 ## 4-byte Reload
	orb	%al, %bl
	movq	%r14, %rdi
	callq	_res_nclose
	testb	$1, %bl
	movb	$1, %al
	jne	LBB0_38
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##       Child Loop BB0_18 Depth 3
                                        ##       Child Loop BB0_24 Depth 3
                                        ##       Child Loop BB0_28 Depth 3
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	js	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_RES_F_VC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$4, -96(%rbp)
	leaq	-88(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	callq	__getpeername
	testq	%rax, %rax
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-88(%rbp), %rdi
	movq	%r15, %rsi
	callq	_sock_eq
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r14)
	jns	LBB0_8
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_res_nclose
	movq	_RES_F_VC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
	cmpq	$0, (%r14)
	js	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_RES_F_VC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_res_nclose
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	movq	_SOCK_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	xorl	%edx, %edx
	callq	__socket
	movq	%rax, (%r14)
	movq	_highestFD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_res_nclose
	movq	_ENOTSOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	(%r14), %rax
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	js	LBB0_42
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%r13)
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	__connect
	testq	%rax, %rax
	js	LBB0_45
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RES_F_VC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rbx
	movq	-128(%rbp), %r12                ## 8-byte Reload
	movl	%r12d, %edi
	leaq	-60(%rbp), %r13
	movq	%r13, %rsi
	callq	_ns_put16
	movq	_INT16SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_evConsIovec
	movl	%eax, -56(%rbp)
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_DE_CONST
	movl	%r12d, %esi
	callq	_evConsIovec
	movl	%eax, -52(%rbp)
	movq	(%r14), %rdi
	leaq	-56(%rbp), %rsi
	movl	$2, %edx
	callq	__writev
	movq	_INT16SZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	(%rdx,%r12), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_41
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, -80(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, %r12
LBB0_17:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_18 Depth 3
                                        ##       Child Loop BB0_24 Depth 3
                                        ##       Child Loop BB0_28 Depth 3
	movl	%edx, -60(%rbp)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_17 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r14), %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	__read
	testl	%eax, %eax
	jle	LBB0_1
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=3
	movl	%eax, %ecx
	leaq	(%rbx,%rcx,4), %rbx
	movl	-60(%rbp), %edx
	subl	%eax, %edx
	movl	%edx, -60(%rbp)
	jne	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ns_get16
	movl	%eax, %r13d
	movl	%eax, %edx
	cmpl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	_RES_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	12(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_Dprint
	movl	$1, -80(%rbp)                   ## 4-byte Folded Spill
	movl	-64(%rbp), %edx                 ## 4-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=2
	movl	%edx, -60(%rbp)
	movq	_HFIXEDSZ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	movq	_errno@GOTPCREL(%rip), %rbx
	jl	LBB0_46
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	testl	%edx, %edx
	je	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_17 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r14), %rdi
	movq	%r12, %rsi
	callq	__read
	testl	%eax, %eax
	jle	LBB0_35
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=3
	movl	%eax, %ecx
	leaq	(%r12,%rcx,4), %r12
	movl	-60(%rbp), %edx
	subl	%eax, %edx
	movl	%edx, -60(%rbp)
	jne	LBB0_24
LBB0_26:                                ##   in Loop: Header=BB0_17 Depth=2
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	%r13d, %eax
	subl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -60(%rbp)
	je	LBB0_31
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_17 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rsp, %r12
	movq	_PACKETSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	movq	(%r14), %rdi
	movslq	-60(%rbp), %rax
	cmpq	%rbx, %rax
	cmovbq	%rax, %rbx
	movl	%ebx, %edx
	callq	__read
	testl	%eax, %eax
	jle	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=3
	subl	%eax, -60(%rbp)
	movq	%r12, %rsp
	cmpl	$0, -60(%rbp)
	jne	LBB0_28
	jmp	LBB0_31
LBB0_30:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	%r12, %rsp
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	8(%rcx), %rax
	je	LBB0_39
## %bb.32:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	_RES_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movb	$1, %al
	testl	%ecx, 12(%r14)
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	_RES_PRF_REPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r14)
	setne	%al
LBB0_34:                                ##   in Loop: Header=BB0_17 Depth=2
	movzbl	%al, %edi
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %r13d
	cmovgel	%eax, %r13d
	leaq	L_.str.7(%rip), %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_DprintQ
	movq	_INT16SZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	-120(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_17
LBB0_35:
	movl	(%rbx), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str.6(%rip), %rdx
LBB0_36:
	movq	%r14, %rdi
	callq	_Perror
LBB0_37:
	movq	%r14, %rdi
	callq	_res_nclose
LBB0_38:
	xorl	%r13d, %r13d
LBB0_39:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_48
## %bb.40:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rcx), %ecx
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_36
LBB0_42:
	movl	(%r13), %ecx
	leal	-128(%rcx), %eax
	cmpl	$2, %eax
	ja	LBB0_47
## %bb.43:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_Perror
	jmp	LBB0_38
LBB0_45:
	movl	(%r13), %eax
	movl	%eax, (%r12)
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %r8
	movl	-76(%rbp), %r9d                 ## 4-byte Reload
	callq	_Aerror
	jmp	LBB0_37
LBB0_46:
	movq	_RES_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	12(%r14), %edi
	movl	%edx, %esi
	callq	_Dprint
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	jmp	LBB0_37
LBB0_47:
	movl	%ecx, (%r12)
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_Perror
	movl	$-1, %r13d
	jmp	LBB0_39
LBB0_48:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_F_VC,4,2                   ## @RES_F_VC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_SOCK_CLOEXEC,4,2               ## @SOCK_CLOEXEC
	.comm	_highestFD,8,3                  ## @highestFD
	.comm	_ENOTSOCK,4,2                   ## @ENOTSOCK
	.comm	_errno,4,2                      ## @errno
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket(vc)"

L_.str.1:                               ## @.str.1
	.asciz	"connect/vc"

	.comm	_INT16SZ,8,3                    ## @INT16SZ
L_.str.2:                               ## @.str.2
	.asciz	"write failed"

L_.str.3:                               ## @.str.3
	.asciz	"read failed"

	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_RES_DEBUG,4,2                  ## @RES_DEBUG
	.comm	_stdout,4,2                     ## @stdout
L_.str.4:                               ## @.str.4
	.asciz	";; response truncated\n"

	.comm	_HFIXEDSZ,4,2                   ## @HFIXEDSZ
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
L_.str.6:                               ## @.str.6
	.asciz	"read(vc)"

	.comm	_PACKETSZ,4,2                   ## @PACKETSZ
	.comm	_RES_PRF_REPLY,4,2              ## @RES_PRF_REPLY
L_.str.7:                               ## @.str.7
	.asciz	";; old answer (unexpected):\n"

	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_NOSIGPIPE,4,2               ## @SO_NOSIGPIPE
	.no_dead_strip	_send_vc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_vc
_send_vc:                               ; @send_vc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	stp	x5, x1, [x29, #-128]            ; 16-byte Folded Spill
	stur	w4, [x29, #-112]                ; 4-byte Folded Spill
	mov	x27, x3
	mov	x24, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	x1, x6
	bl	_get_nsaddr
	mov	x20, x0
	bl	_get_salen
	stur	w0, [x29, #-140]                ; 4-byte Folded Spill
	mov	w26, #0
Lloh3:
	adrp	x22, _RES_F_VC@GOTPAGE
Lloh4:
	ldr	x22, [x22, _RES_F_VC@GOTPAGEOFF]
	sxtw	x8, w24
	stur	x8, [x29, #-136]                ; 8-byte Folded Spill
Lloh5:
	adrp	x28, _errno@GOTPAGE
Lloh6:
	ldr	x28, [x28, _errno@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x28]
	ldur	x20, [x29, #-128]               ; 8-byte Folded Reload
	str	w8, [x20]
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w3, [x28]
	mov	x0, x19
Lloh10:
	adrp	x2, l_.str.3@PAGE
Lloh11:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_Perror
	mov	x0, x19
	bl	_res_nclose
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _ECONNRESET@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ECONNRESET@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w8, ne
	orr	w23, w26, w8
	mov	x0, x19
	bl	_res_nclose
	mov	w26, #1
	mov	x20, x21
	tbnz	w23, #0, LBB0_39
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
                                        ;       Child Loop BB0_24 Depth 3
                                        ;       Child Loop BB0_28 Depth 3
	ldr	x0, [x19]
	tbnz	x0, #63, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #8]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #4
	stur	w8, [x29, #-108]
	sub	x1, x29, #104
	sub	x2, x29, #108
	bl	__getpeername
	tbnz	x0, #63, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x0, x29, #104
	mov	x1, x20
	bl	_sock_eq
	cbz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	tbz	x8, #63, LBB0_8
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_res_nclose
	ldr	w8, [x22]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #8]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_res_nclose
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20]
Lloh15:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _SOCK_CLOEXEC@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SOCK_CLOEXEC@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #0
	bl	__socket
	str	x0, [x19]
Lloh21:
	adrp	x8, _highestFD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _highestFD@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_res_nclose
Lloh24:
	adrp	x8, _ENOTSOCK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOTSOCK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x28]
	ldr	x0, [x19]
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	x0, #63, LBB0_43
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [x28]
	mov	x1, x20
	ldur	w2, [x29, #-140]                ; 4-byte Folded Reload
	bl	__connect
	tbnz	x0, #63, LBB0_45
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #100
	mov	x0, x24
	bl	_ns_put16
Lloh27:
	adrp	x21, _INT16SZ@GOTPAGE
Lloh28:
	ldr	x21, [x21, _INT16SZ@GOTPAGEOFF]
	ldr	w1, [x21]
	sub	x0, x29, #100
	bl	_evConsIovec
	stur	w0, [x29, #-96]
	ldur	x0, [x29, #-120]                ; 8-byte Folded Reload
	bl	_DE_CONST
	mov	x1, x24
	bl	_evConsIovec
	stur	w0, [x29, #-92]
	ldr	x0, [x19]
	sub	x1, x29, #96
	mov	w2, #2
	bl	__writev
	ldr	x2, [x21]
	ldur	x8, [x29, #-136]                ; 8-byte Folded Reload
	add	x8, x2, x8
	cmp	x0, x8
	b.ne	LBB0_42
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x20
	mov	w25, #0
LBB0_17:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
                                        ;       Child Loop BB0_24 Depth 3
                                        ;       Child Loop BB0_28 Depth 3
	stur	w2, [x29, #-100]
	mov	x23, x27
LBB0_18:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x0, [x19]
	mov	x1, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	__read
	cmp	w0, #1
	b.lt	LBB0_1
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=3
	add	x23, x23, w0, uxtw #2
	ldur	w8, [x29, #-100]
	subs	w2, w8, w0
	stur	w2, [x29, #-100]
	b.ne	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	x20, x28
	mov	x0, x27
	bl	_ns_get16
	mov	x28, x0
	mov	x2, x0
	ldur	w8, [x29, #-112]                ; 4-byte Folded Reload
	cmp	w0, w8
	b.le	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	w8, [x19, #12]
Lloh29:
	adrp	x9, _RES_DEBUG@GOTPAGE
Lloh30:
	ldr	x9, [x9, _RES_DEBUG@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	and	w0, w9, w8
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_Dprint
	mov	w25, #1
	ldur	w2, [x29, #-112]                ; 4-byte Folded Reload
LBB0_22:                                ;   in Loop: Header=BB0_17 Depth=2
	stur	w2, [x29, #-100]
Lloh34:
	adrp	x8, _HFIXEDSZ@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HFIXEDSZ@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w2, w8
	b.lt	LBB0_46
; %bb.23:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	x23, x27
	cbz	w2, LBB0_26
LBB0_24:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x0, [x19]
	mov	x1, x23
	bl	__read
	cmp	w0, #1
	b.lt	LBB0_36
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=3
	add	x23, x23, w0, uxtw #2
	ldur	w8, [x29, #-100]
	subs	w2, w8, w0
	stur	w2, [x29, #-100]
	b.ne	LBB0_24
LBB0_26:                                ;   in Loop: Header=BB0_17 Depth=2
	cbz	w25, LBB0_31
; %bb.27:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	w8, #1
	str	w8, [x27]
	ldur	w8, [x29, #-112]                ; 4-byte Folded Reload
	subs	w8, w28, w8
	stur	w8, [x29, #-100]
	b.eq	LBB0_31
LBB0_28:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x23, sp
Lloh37:
	adrp	x8, _PACKETSZ@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PACKETSZ@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	mov	x9, x8
Lloh40:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh41:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x1, x9, x10
	mov	sp, x1
	ldr	x0, [x19]
	ldursw	x9, [x29, #-100]
	cmp	x9, x8
	csel	x2, x9, x8, lo
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	__read
	cmp	w0, #0
	b.le	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=3
	ldur	w8, [x29, #-100]
	sub	w8, w8, w0
	stur	w8, [x29, #-100]
	mov	sp, x23
	mov	w8, w8
	cbnz	w8, LBB0_28
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_17 Depth=2
	mov	sp, x23
LBB0_31:                                ;   in Loop: Header=BB0_17 Depth=2
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x9, [x27, #8]
	cmp	x8, x9
	b.eq	LBB0_40
; %bb.32:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	w8, [x19, #12]
Lloh42:
	adrp	x9, _RES_DEBUG@GOTPAGE
Lloh43:
	ldr	x9, [x9, _RES_DEBUG@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	w0, #1
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	w8, [x19, #16]
Lloh45:
	adrp	x9, _RES_PRF_REPLY@GOTPAGE
Lloh46:
	ldr	x9, [x9, _RES_PRF_REPLY@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
LBB0_35:                                ;   in Loop: Header=BB0_17 Depth=2
	ldur	w8, [x29, #-112]                ; 4-byte Folded Reload
	cmp	w28, w8
	csel	w3, w28, w8, lt
Lloh48:
	adrp	x1, l_.str.7@PAGE
Lloh49:
	add	x1, x1, l_.str.7@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x27
	bl	_DprintQ
Lloh50:
	adrp	x8, _INT16SZ@GOTPAGE
Lloh51:
	ldr	x8, [x8, _INT16SZ@GOTPAGEOFF]
Lloh52:
	ldr	x2, [x8]
	mov	x28, x20
	b	LBB0_17
LBB0_36:
	ldr	w8, [x20]
	ldur	x9, [x29, #-128]                ; 8-byte Folded Reload
	str	w8, [x9]
Lloh53:
	adrp	x8, _stderr@GOTPAGE
Lloh54:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	ldr	w3, [x20]
Lloh56:
	adrp	x2, l_.str.6@PAGE
Lloh57:
	add	x2, x2, l_.str.6@PAGEOFF
LBB0_37:
	mov	x0, x19
	bl	_Perror
LBB0_38:
	mov	x0, x19
	bl	_res_nclose
LBB0_39:
	mov	w28, #0
LBB0_40:
	ldur	x8, [x29, #-88]
Lloh58:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh59:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_48
; %bb.41:
	mov	x0, x28
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_42:
	ldr	w8, [x28]
	ldur	x9, [x29, #-128]                ; 8-byte Folded Reload
	str	w8, [x9]
Lloh61:
	adrp	x8, _stderr@GOTPAGE
Lloh62:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	ldr	w3, [x28]
Lloh64:
	adrp	x2, l_.str.2@PAGE
Lloh65:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_37
LBB0_43:
	ldr	w3, [x28]
	sub	w8, w3, #128
	cmp	w8, #2
	b.hi	LBB0_47
; %bb.44:
Lloh66:
	adrp	x8, _stderr@GOTPAGE
Lloh67:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
Lloh69:
	adrp	x2, l_.str@PAGE
Lloh70:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_Perror
	b	LBB0_39
LBB0_45:
	ldr	w8, [x28]
	ldur	x9, [x29, #-128]                ; 8-byte Folded Reload
	str	w8, [x9]
Lloh71:
	adrp	x8, _stderr@GOTPAGE
Lloh72:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	ldr	w3, [x28]
Lloh74:
	adrp	x2, l_.str.1@PAGE
Lloh75:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	ldur	w5, [x29, #-140]                ; 4-byte Folded Reload
	bl	_Aerror
	b	LBB0_38
LBB0_46:
	ldr	w8, [x19, #12]
Lloh76:
	adrp	x9, _RES_DEBUG@GOTPAGE
Lloh77:
	ldr	x9, [x9, _RES_DEBUG@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	and	w0, w9, w8
	mov	x1, x2
	bl	_Dprint
Lloh79:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh80:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh81:
	ldr	w8, [x8]
	ldur	x9, [x29, #-128]                ; 8-byte Folded Reload
	str	w8, [x9]
	b	LBB0_38
LBB0_47:
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	str	w3, [x8]
Lloh82:
	adrp	x8, _stderr@GOTPAGE
Lloh83:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh84:
	ldr	w1, [x8]
	ldr	w3, [x28]
Lloh85:
	adrp	x2, l_.str@PAGE
Lloh86:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_Perror
	mov	w28, #-1
	b	LBB0_40
LBB0_48:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_F_VC,4,2                   ; @RES_F_VC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_SOCK_CLOEXEC,4,2               ; @SOCK_CLOEXEC
	.comm	_highestFD,8,3                  ; @highestFD
	.comm	_ENOTSOCK,4,2                   ; @ENOTSOCK
	.comm	_errno,4,2                      ; @errno
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket(vc)"

l_.str.1:                               ; @.str.1
	.asciz	"connect/vc"

	.comm	_INT16SZ,8,3                    ; @INT16SZ
l_.str.2:                               ; @.str.2
	.asciz	"write failed"

l_.str.3:                               ; @.str.3
	.asciz	"read failed"

	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_RES_DEBUG,4,2                  ; @RES_DEBUG
	.comm	_stdout,4,2                     ; @stdout
l_.str.4:                               ; @.str.4
	.asciz	";; response truncated\n"

	.comm	_HFIXEDSZ,4,2                   ; @HFIXEDSZ
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
l_.str.6:                               ; @.str.6
	.asciz	"read(vc)"

	.comm	_PACKETSZ,4,2                   ; @PACKETSZ
	.comm	_RES_PRF_REPLY,4,2              ; @RES_PRF_REPLY
l_.str.7:                               ; @.str.7
	.asciz	";; old answer (unexpected):\n"

	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_NOSIGPIPE,4,2               ; @SO_NOSIGPIPE
	.no_dead_strip	_send_vc
.subsections_via_symbols
