	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_runconfig                      ## -- Begin function runconfig
	.p2align	4, 0x90
_runconfig:                             ## @runconfig
	.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, -64(%rbp)
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %r12
	movq	_l4list@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.1:
	movq	_frequency@GOTPCREL(%rip), %r14
	movq	_AF_INET@GOTPCREL(%rip), %r15
	jmp	LBB0_2
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_connectl4
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, 8(%rbx)
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	addq	(%rbx), %rax
	cmpq	%r12, %rax
	jge	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, 8(%rbx)
	jne	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, (%rbx)
	movl	(%r15), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r13d
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_REUSEADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	leaq	-64(%rbp), %rcx
	movl	$4, %r8d
	callq	_setsockopt
	movq	_OPT_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_opts@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	36(%rbx), %edi
	callq	_inet_ntoa
	movq	%r14, %r15
	movq	%rax, %r14
	movl	32(%rbx), %edi
	callq	_ntohs
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%r15, %r14
	movq	_AF_INET@GOTPCREL(%rip), %r15
	movl	%eax, %ecx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	32(%rbx), %rsi
	movl	%r13d, %edi
	movl	$8, %edx
	callq	_connect
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_OPT_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_opts@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_15
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_OPT_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_opts@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movq	_EINPROGRESS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$-2, 12(%rbx)
	jmp	LBB0_16
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	movl	%r13d, %esi
	callq	_runconfig.cold.1
	movl	$-1, %r13d
	jmp	LBB0_16
LBB0_18:
	leaq	-60(%rbp), %rdi
	callq	_FD_ZERO
	leaq	-56(%rbp), %rdi
	callq	_FD_ZERO
	movq	_rtimeout@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ctimeout@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_MIN
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	_l4list@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_40
## %bb.19:
	movq	_opts@GOTPCREL(%rip), %r14
	movq	_OPT_VERBOSE@GOTPCREL(%rip), %r15
	movq	_stderr@GOTPCREL(%rip), %r13
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	8(%rbx), %edi
	leaq	-56(%rbp), %rsi
LBB0_34:                                ##   in Loop: Header=BB0_20 Depth=1
	callq	_FD_SET
	movl	8(%rbx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, %eax
	cmovgl	%eax, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
LBB0_39:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_40
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%rbx), %eax
	cmpl	$-2, %eax
	je	LBB0_35
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	$1, %eax
	je	LBB0_30
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	testl	%eax, %eax
	jne	LBB0_39
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r12, %rcx
	subq	(%rbx), %rcx
	movl	(%r15), %eax
	andl	(%r14), %eax
	movq	_rtimeout@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jle	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r13), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_closel4
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r12, %rax
	subq	(%rbx), %rax
	movq	_ctimeout@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_31
## %bb.36:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r15), %eax
	testl	%eax, (%r14)
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r13), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_38:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_closel4
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_20 Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_39
LBB0_31:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r15), %eax
	testl	%eax, (%r14)
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r13), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_33
LBB0_27:                                ##   in Loop: Header=BB0_20 Depth=1
	testl	%eax, %eax
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r13), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_29:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	8(%rbx), %edi
	leaq	-60(%rbp), %rsi
	jmp	LBB0_34
LBB0_40:
	movq	_opts@GOTPCREL(%rip), %rcx
	movq	_OPT_VERBOSE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rcx)
	je	LBB0_41
## %bb.42:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	incl	%ebx
	leaq	L_.str.9(%rip), %rsi
	movl	%ebx, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_43
LBB0_41:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	incl	%ebx
LBB0_43:
	xorl	%r13d, %r13d
	leaq	-60(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-80(%rbp), %r8
	movl	%ebx, %edi
	xorl	%ecx, %ecx
	callq	_select
	cmpl	$-1, %eax
	je	LBB0_44
## %bb.45:
	movl	%eax, %r14d
	xorl	%edi, %edi
	callq	_time
	testl	%r14d, %r14d
	jle	LBB0_60
## %bb.46:
	movq	_l4list@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_60
## %bb.47:
	leaq	-60(%rbp), %r15
	.p2align	4, 0x90
LBB0_48:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %edi
	testl	%edi, %edi
	js	LBB0_58
## %bb.49:                              ##   in Loop: Header=BB0_48 Depth=1
	movq	%r15, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_53
## %bb.50:                              ##   in Loop: Header=BB0_48 Depth=1
	movl	(%r12), %eax
	movq	_opts@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_48 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_52:                                ##   in Loop: Header=BB0_48 Depth=1
	movq	%rbx, %rdi
	callq	_readfd
	decl	%r14d
LBB0_53:                                ##   in Loop: Header=BB0_48 Depth=1
	movl	8(%rbx), %edi
	testl	%edi, %edi
	js	LBB0_58
## %bb.54:                              ##   in Loop: Header=BB0_48 Depth=1
	leaq	-56(%rbp), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_58
## %bb.55:                              ##   in Loop: Header=BB0_48 Depth=1
	movl	(%r12), %eax
	movq	_opts@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_57
## %bb.56:                              ##   in Loop: Header=BB0_48 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_57:                                ##   in Loop: Header=BB0_48 Depth=1
	movq	%rbx, %rdi
	callq	_writefd
	decl	%r14d
LBB0_58:                                ##   in Loop: Header=BB0_48 Depth=1
	xorl	%r13d, %r13d
	testl	%r14d, %r14d
	jle	LBB0_60
## %bb.59:                              ##   in Loop: Header=BB0_48 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_48
	jmp	LBB0_60
LBB0_44:
	leaq	L_.str.10(%rip), %rdi
	callq	_perror
	movl	$-1, %r13d
LBB0_60:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function runconfig.cold.1
_runconfig.cold.1:                      ## @runconfig.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	testb	$1, %dil
	jne	LBB1_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB1_2:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	movl	%ebx, %edi
	callq	_close
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_l4list,8,3                     ## @l4list
	.comm	_frequency,8,3                  ## @frequency
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.comm	_opts,4,2                       ## @opts
	.comm	_OPT_VERBOSE,4,2                ## @OPT_VERBOSE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Connecting to %s,%d (fd %d)..."

	.comm	_errno,8,3                      ## @errno
	.comm	_EINPROGRESS,8,3                ## @EINPROGRESS
L_.str.1:                               ## @.str.1
	.asciz	"failed\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"waiting\n"

L_.str.4:                               ## @.str.4
	.asciz	"connected\n"

	.comm	_rtimeout,8,3                   ## @rtimeout
	.comm	_ctimeout,8,3                   ## @ctimeout
L_.str.5:                               ## @.str.5
	.asciz	"%d: Read timeout\n"

L_.str.6:                               ## @.str.6
	.asciz	"Wait for read on fd %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"%d: connect timeout\n"

L_.str.8:                               ## @.str.8
	.asciz	"Wait for write on fd %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"Select: max fd %d wait %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"select"

L_.str.11:                              ## @.str.11
	.asciz	"Ready to read on fd %d\n"

L_.str.12:                              ## @.str.12
	.asciz	"Ready to write on fd %d\n"

	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_runconfig                      ; -- Begin function runconfig
	.p2align	2
_runconfig:                             ; @runconfig
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	w8, #1
	str	w8, [sp, #60]
	mov	x0, #0
	bl	_time
	mov	x19, x0
Lloh0:
	adrp	x8, _l4list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _l4list@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x27, _opts@GOTPAGE
Lloh4:
	ldr	x27, [x27, _opts@GOTPAGEOFF]
Lloh5:
	adrp	x28, _OPT_VERBOSE@GOTPAGE
Lloh6:
	ldr	x28, [x28, _OPT_VERBOSE@GOTPAGEOFF]
Lloh7:
	adrp	x23, _stderr@GOTPAGE
Lloh8:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
	cbz	x20, LBB0_18
; %bb.1:
Lloh9:
	adrp	x22, _frequency@GOTPAGE
Lloh10:
	ldr	x22, [x22, _frequency@GOTPAGEOFF]
Lloh11:
	adrp	x25, _AF_INET@GOTPAGE
Lloh12:
	ldr	x25, [x25, _AF_INET@GOTPAGEOFF]
Lloh13:
	adrp	x21, _SOCK_STREAM@GOTPAGE
Lloh14:
	ldr	x21, [x21, _SOCK_STREAM@GOTPAGEOFF]
Lloh15:
	adrp	x26, _SOL_SOCKET@GOTPAGE
Lloh16:
	ldr	x26, [x26, _SOL_SOCKET@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_connectl4
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w24, [x20, #8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_18
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x8, x9, x8
	cmp	x8, x19
	b.ge	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #8]
	cmn	w8, #1
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x19, [x20]
	ldr	w0, [x25]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_socket
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	ldr	w1, [x26]
Lloh17:
	adrp	x8, _SO_REUSEADDR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SO_REUSEADDR@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x3, sp, #60
	mov	w4, #4
	bl	_setsockopt
	ldr	w8, [x27]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, x27
	mov	x27, x21
	mov	x21, x25
	ldr	w25, [x23]
	ldr	w0, [x20, #36]
	bl	_inet_ntoa
	mov	x22, x26
	mov	x26, x0
	ldr	w0, [x20, #32]
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x24, [sp, #8]
	str	x26, [sp]
	mov	x26, x22
	mov	x0, x25
	mov	x25, x21
	mov	x21, x27
	mov	x27, x28
Lloh20:
	adrp	x28, _OPT_VERBOSE@GOTPAGE
Lloh21:
	ldr	x28, [x28, _OPT_VERBOSE@GOTPAGEOFF]
Lloh22:
	adrp	x22, _frequency@GOTPAGE
Lloh23:
	ldr	x22, [x22, _frequency@GOTPAGEOFF]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x20, #32
	mov	x0, x24
	mov	w2, #8
	bl	_connect
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh28:
	adrp	x8, _errno@GOTPAGE
Lloh29:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x8]
Lloh31:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh33:
	ldr	x10, [x8]
	ldr	w8, [x27]
	ldr	w11, [x28]
	and	w8, w11, w8
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #-2
	str	w8, [x20, #12]
	b	LBB0_3
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #0
	cset	w0, eq
	mov	x1, x24
	bl	_runconfig.cold.1
	mov	w24, #-1
	b	LBB0_3
LBB0_18:
	add	x0, sp, #36
	bl	_FD_ZERO
	add	x0, sp, #32
	bl	_FD_ZERO
Lloh36:
	adrp	x22, _rtimeout@GOTPAGE
Lloh37:
	ldr	x22, [x22, _rtimeout@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh38:
	adrp	x24, _ctimeout@GOTPAGE
Lloh39:
	ldr	x24, [x24, _ctimeout@GOTPAGEOFF]
	ldr	x1, [x24]
	bl	_MIN
	mov	x20, x0
	str	w0, [sp, #40]
	str	xzr, [sp, #48]
Lloh40:
	adrp	x8, _l4list@GOTPAGE
Lloh41:
	ldr	x8, [x8, _l4list@GOTPAGEOFF]
Lloh42:
	ldr	x21, [x8]
	cbz	x21, LBB0_40
; %bb.19:
	mov	w25, #0
Lloh43:
	adrp	x26, l_.str.8@PAGE
Lloh44:
	add	x26, x26, l_.str.8@PAGEOFF
	b	LBB0_23
LBB0_20:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	w8, #1
	str	x8, [sp]
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x21
	bl	_closel4
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_41
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #12]
	cmn	w8, #2
	b.eq	LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w8, #1
	b.eq	LBB0_32
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	cbnz	w8, LBB0_22
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x9, [x21]
	ldr	x10, [x22]
	ldr	w8, [x27]
	ldr	w11, [x28]
	and	w8, w11, w8
	sub	x9, x19, x9
	cmp	x9, x10
	b.le	LBB0_36
; %bb.27:                               ;   in Loop: Header=BB0_23 Depth=1
	cbz	w8, LBB0_20
; %bb.28:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x23]
	ldr	w8, [x21, #8]
	str	x8, [sp]
Lloh45:
	adrp	x1, l_.str.5@PAGE
Lloh46:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	b	LBB0_20
LBB0_29:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x24]
	sub	x8, x19, x8
	cmp	x8, x9
	b.le	LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.31:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x23]
	ldr	w8, [x21, #8]
	str	x8, [sp]
Lloh47:
	adrp	x1, l_.str.7@PAGE
Lloh48:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
	b	LBB0_21
LBB0_32:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_22
LBB0_33:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x23]
	ldr	w8, [x21, #8]
	str	x8, [sp]
	mov	x1, x26
	bl	_fprintf
LBB0_35:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x21, #8]
	add	x1, sp, #32
	b	LBB0_39
LBB0_36:                                ;   in Loop: Header=BB0_23 Depth=1
	cbz	w8, LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x23]
	ldr	w8, [x21, #8]
	str	x8, [sp]
Lloh49:
	adrp	x1, l_.str.6@PAGE
Lloh50:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
LBB0_38:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x21, #8]
	add	x1, sp, #36
LBB0_39:                                ;   in Loop: Header=BB0_23 Depth=1
	bl	_FD_SET
	ldr	w8, [x21, #8]
	cmp	w8, w25
	csel	w25, w8, w25, gt
	b	LBB0_22
LBB0_40:
	mov	w25, #0
LBB0_41:
	ldr	w8, [x27]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_43
; %bb.42:
	ldr	w0, [x23]
	add	w19, w25, #1
	stp	x19, x20, [sp]
Lloh51:
	adrp	x1, l_.str.9@PAGE
Lloh52:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_fprintf
	b	LBB0_44
LBB0_43:
	add	w19, w25, #1
LBB0_44:
	add	x1, sp, #36
	add	x2, sp, #32
	add	x4, sp, #40
	mov	x0, x19
	mov	x3, #0
	bl	_select
	cmn	w0, #1
	b.eq	LBB0_60
; %bb.45:
	mov	x19, x0
	mov	x0, #0
	bl	_time
	mov	w0, #0
	cmp	w19, #1
	b.lt	LBB0_61
; %bb.46:
Lloh53:
	adrp	x8, _l4list@GOTPAGE
Lloh54:
	ldr	x8, [x8, _l4list@GOTPAGEOFF]
Lloh55:
	ldr	x20, [x8]
	cbz	x20, LBB0_61
; %bb.47:
Lloh56:
	adrp	x21, l_.str.12@PAGE
Lloh57:
	add	x21, x21, l_.str.12@PAGEOFF
Lloh58:
	adrp	x22, l_.str.11@PAGE
Lloh59:
	add	x22, x22, l_.str.11@PAGEOFF
LBB0_48:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #8]
	tbnz	w0, #31, LBB0_58
; %bb.49:                               ;   in Loop: Header=BB0_48 Depth=1
	add	x1, sp, #36
	bl	_FD_ISSET
	cbz	x0, LBB0_53
; %bb.50:                               ;   in Loop: Header=BB0_48 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_52
; %bb.51:                               ;   in Loop: Header=BB0_48 Depth=1
	ldr	w0, [x23]
	ldr	w8, [x20, #8]
	str	x8, [sp]
	mov	x1, x22
	bl	_fprintf
LBB0_52:                                ;   in Loop: Header=BB0_48 Depth=1
	mov	x0, x20
	bl	_readfd
	sub	w19, w19, #1
LBB0_53:                                ;   in Loop: Header=BB0_48 Depth=1
	ldr	w0, [x20, #8]
	tbnz	w0, #31, LBB0_58
; %bb.54:                               ;   in Loop: Header=BB0_48 Depth=1
	add	x1, sp, #32
	bl	_FD_ISSET
	cbz	x0, LBB0_58
; %bb.55:                               ;   in Loop: Header=BB0_48 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_57
; %bb.56:                               ;   in Loop: Header=BB0_48 Depth=1
	ldr	w0, [x23]
	ldr	w8, [x20, #8]
	str	x8, [sp]
	mov	x1, x21
	bl	_fprintf
LBB0_57:                                ;   in Loop: Header=BB0_48 Depth=1
	mov	x0, x20
	bl	_writefd
	sub	w19, w19, #1
LBB0_58:                                ;   in Loop: Header=BB0_48 Depth=1
	mov	w0, #0
	cmp	w19, #1
	b.lt	LBB0_61
; %bb.59:                               ;   in Loop: Header=BB0_48 Depth=1
	ldr	x20, [x20, #16]
	cbnz	x20, LBB0_48
	b	LBB0_61
LBB0_60:
Lloh60:
	adrp	x0, l_.str.10@PAGE
Lloh61:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_perror
	mov	w0, #-1
LBB0_61:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function runconfig.cold.1
_runconfig.cold.1:                      ; @runconfig.cold.1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	tbnz	w0, #0, LBB1_2
; %bb.1:
Lloh62:
	adrp	x8, _stderr@GOTPAGE
Lloh63:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x8]
Lloh65:
	adrp	x1, l_.str.1@PAGE
Lloh66:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB1_2:
Lloh67:
	adrp	x0, l_.str.2@PAGE
Lloh68:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	mov	x0, x19
	bl	_close
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_l4list,8,3                     ; @l4list
	.comm	_frequency,8,3                  ; @frequency
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.comm	_opts,4,2                       ; @opts
	.comm	_OPT_VERBOSE,4,2                ; @OPT_VERBOSE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Connecting to %s,%d (fd %d)..."

	.comm	_errno,8,3                      ; @errno
	.comm	_EINPROGRESS,8,3                ; @EINPROGRESS
l_.str.1:                               ; @.str.1
	.asciz	"failed\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"waiting\n"

l_.str.4:                               ; @.str.4
	.asciz	"connected\n"

	.comm	_rtimeout,8,3                   ; @rtimeout
	.comm	_ctimeout,8,3                   ; @ctimeout
l_.str.5:                               ; @.str.5
	.asciz	"%d: Read timeout\n"

l_.str.6:                               ; @.str.6
	.asciz	"Wait for read on fd %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"%d: connect timeout\n"

l_.str.8:                               ; @.str.8
	.asciz	"Wait for write on fd %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"Select: max fd %d wait %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"select"

l_.str.11:                              ; @.str.11
	.asciz	"Ready to read on fd %d\n"

l_.str.12:                              ; @.str.12
	.asciz	"Ready to write on fd %d\n"

	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
.subsections_via_symbols
