	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connect_to_any_host
_connect_to_any_host:                   ## @connect_to_any_host
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	movq	%rbx, %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rdi
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%edi, %edi
LBB0_4:
	movl	$12, %esi
	callq	_calloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_8:
	movl	$180, %r13d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
LBB0_5:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_err
	testq	%rbx, %rbx
	jne	LBB0_8
LBB0_7:
	xorl	%r15d, %r15d
LBB0_35:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_36:
	movl	$-1, %r14d
	jmp	LBB0_37
LBB0_43:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_34
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##       Child Loop BB0_20 Depth 3
	movl	24(%rbx), %edx
	movl	28(%rbx), %edi
	movq	_SOCK_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rbx), %esi
	callq	_socket
	testl	%eax, %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	js	LBB0_33
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %r14d
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	movl	%eax, %edi
	callq	_connect
	testq	%rax, %rax
	jns	LBB0_37
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%r15,%r15,2), %rax
	movl	%r14d, (%r12,%rax,4)
	movq	_POLLHUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_POLLERR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_POLLIN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_POLLOUT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 4(%r12,%rax,4)
	incq	-48(%rbp)                       ## 8-byte Folded Spill
	incq	%r15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%r14d, %edi
	callq	_close
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_43
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%r13d, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_INFTIM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_20 Depth 3
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_poll
	testl	%eax, %eax
	je	LBB0_30
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	js	LBB0_36
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	testq	%r15, %r15
	je	LBB0_26
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	%r15, %r13
	jmp	LBB0_20
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=3
	movl	%r14d, %edi
	callq	_close
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	movq	%rax, (%r12)
	decq	-48(%rbp)                       ## 8-byte Folded Spill
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=3
	addq	$12, %r12
	decq	%r13
	je	LBB0_26
LBB0_20:                                ##   Parent Loop BB0_9 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r12), %r14d
	cmpl	$-1, %r14d
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=3
	cmpl	$0, 4(%r12)
	je	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=3
	movl	8(%r12), %eax
	testl	%eax, %eax
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=3
	movq	_POLLOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_POLLIN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, %edx
	notl	%edx
	testl	%edx, %eax
	jne	LBB0_24
## %bb.28:                              ##   in Loop: Header=BB0_20 Depth=3
	testl	%eax, %ecx
	je	LBB0_25
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	_INFTIM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_27
## %bb.31:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_16
	jmp	LBB0_32
LBB0_30:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$3, %ebx
	setge	%cl
	sarl	%cl, %ebx
LBB0_32:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %r13d
	jmp	LBB0_33
LBB0_27:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %r13d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_29:
	movl	$-1, (%r12)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_37:
	testq	%r15, %r15
	je	LBB0_42
## %bb.38:
	movq	%r12, %rbx
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_39 Depth=1
	addq	$12, %rbx
	decq	%r15
	je	LBB0_42
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=1
	callq	_close
	jmp	LBB0_41
LBB0_42:
	movq	%r12, %rdi
	callq	_free
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movl	$-1, %r14d
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_37
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"calloc()"

	.comm	_SOCK_NONBLOCK,4,2              ## @SOCK_NONBLOCK
	.comm	_errno,8,3                      ## @errno
	.comm	_EINPROGRESS,8,3                ## @EINPROGRESS
	.comm	_POLLERR,4,2                    ## @POLLERR
	.comm	_POLLHUP,4,2                    ## @POLLHUP
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_INFTIM,4,2                     ## @INFTIM
	.comm	_ETIMEDOUT,8,3                  ## @ETIMEDOUT
	.no_dead_strip	_connect_to_any_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connect_to_any_host
_connect_to_any_host:                   ; @connect_to_any_host
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x21, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, #0
	mov	x8, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x0, #1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_2
LBB0_3:
	mov	w1, #12
	bl	_calloc
	mov	x26, x0
	cbz	x0, LBB0_6
; %bb.4:
	cbz	x21, LBB0_7
LBB0_5:
	mov	x25, #0
	mov	x24, #0
	mov	w22, #180
Lloh0:
	adrp	x28, _POLLIN@GOTPAGE
Lloh1:
	ldr	x28, [x28, _POLLIN@GOTPAGEOFF]
Lloh2:
	adrp	x27, _POLLOUT@GOTPAGE
Lloh3:
	ldr	x27, [x27, _POLLOUT@GOTPAGEOFF]
	movi	d8, #0x000000ffffffff
	b	LBB0_12
LBB0_6:
Lloh4:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
	cbnz	x21, LBB0_5
LBB0_7:
	mov	x24, #0
LBB0_8:
Lloh9:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _errno@GOTPAGE
Lloh13:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh14:
	str	x8, [x9]
LBB0_9:
	mov	w23, #-1
	b	LBB0_31
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w22, #2
	cset	w8, gt
	asr	w22, w22, w8
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_37
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;       Child Loop BB0_25 Depth 3
	ldr	w8, [x21]
Lloh15:
	adrp	x9, _SOCK_NONBLOCK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SOCK_NONBLOCK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldp	w2, w0, [x21, #24]
	bl	_socket
	tbnz	w0, #31, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x23, x0
	ldp	w2, w1, [x21, #16]
	bl	_connect
	tbz	x0, #63, LBB0_31
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _EINPROGRESS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EINPROGRESS@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w8, #12
	madd	x8, x24, x8, x26
	str	w23, [x8]
Lloh24:
	adrp	x9, _POLLERR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _POLLERR@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _POLLHUP@GOTPAGE
Lloh28:
	ldr	x10, [x10, _POLLHUP@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x28]
	orr	w9, w9, w10
	ldr	w10, [x27]
	orr	w9, w9, w10
	str	w9, [x8, #4]
	add	x25, x25, #1
	add	x24, x24, #1
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	bl	_close
	cbz	x25, LBB0_11
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x21, #8]
Lloh30:
	adrp	x9, _INFTIM@GOTPAGE
Lloh31:
	ldr	x9, [x9, _INFTIM@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w22, w9, w22, eq
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
Lloh33:
	adrp	x8, _INFTIM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _INFTIM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w22, w8
	ccmp	x25, #0, #4, eq
	b.eq	LBB0_11
LBB0_19:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_25 Depth 3
	mov	x0, x26
	mov	x1, x24
	mov	x2, x22
	bl	_poll
	cbz	w0, LBB0_10
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	tbnz	w0, #31, LBB0_9
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=2
	cbz	x24, LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x19, x26
	mov	x20, x24
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=3
	mov	x0, x23
	bl	_close
	str	d8, [x19]
	sub	x25, x25, #1
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=3
	add	x19, x19, #12
	subs	x20, x20, #1
	b.eq	LBB0_18
LBB0_25:                                ;   Parent Loop BB0_12 Depth=1
                                        ;     Parent Loop BB0_19 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w23, [x19]
	cmn	w23, #1
	b.eq	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=3
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=3
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_24
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=3
	ldr	w9, [x28]
	ldr	w10, [x27]
	orr	w9, w10, w9
	bics	wzr, w8, w9
	b.ne	LBB0_23
; %bb.29:                               ;   in Loop: Header=BB0_25 Depth=3
	tst	w9, w8
	b.eq	LBB0_24
; %bb.30:
	mov	w8, #-1
	str	w8, [x19]
LBB0_31:
	cbz	x24, LBB0_36
; %bb.32:
	mov	x19, x26
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=1
	add	x19, x19, #12
	subs	x24, x24, #1
	b.eq	LBB0_36
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_33
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	bl	_close
	b	LBB0_33
LBB0_36:
	mov	x0, x26
	bl	_free
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_37:
	cbnz	x25, LBB0_9
	b	LBB0_8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"calloc()"

	.comm	_SOCK_NONBLOCK,4,2              ; @SOCK_NONBLOCK
	.comm	_errno,8,3                      ; @errno
	.comm	_EINPROGRESS,8,3                ; @EINPROGRESS
	.comm	_POLLERR,4,2                    ; @POLLERR
	.comm	_POLLHUP,4,2                    ; @POLLHUP
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_INFTIM,4,2                     ; @INFTIM
	.comm	_ETIMEDOUT,8,3                  ; @ETIMEDOUT
	.no_dead_strip	_connect_to_any_host
.subsections_via_symbols
