	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connecthostport                ## -- Begin function connecthostport
	.p2align	4, 0x90
_connecthostport:                       ## @connecthostport
	.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
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	-120(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-56(%rbp), %rdi
	movl	$8, %esi
	movl	%r12d, %ecx
	callq	_snprintf
	cmpb	$91, (%rbx)
	jne	LBB0_9
## %bb.1:
	movq	%r13, %r12
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	$1, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	incl	%r13d
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r13d, %rdi
	movzbl	(%rbx,%rdi), %eax
	testb	%al, %al
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$93, %al
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r12), %rcx
	cmpq	%rcx, %r14
	jge	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rbx, %rdi
	movb	%al, (%r15,%r14)
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$2, %r13d
	jmp	LBB0_7
LBB0_9:
	movl	(%r13), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strncpy
	jmp	LBB0_10
LBB0_8:
	movb	$0, (%r15,%r14)
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	movq	%r12, %r13
LBB0_10:
	movslq	(%r13), %rax
	movb	$0, (%r15,%rax)
	leaq	-56(%rbp), %rsi
	leaq	-120(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	callq	_getaddrinfo_retro
	testl	%eax, %eax
	je	LBB0_11
## %bb.13:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_25:
	movl	$-1, %eax
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_28
## %bb.27:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-64(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.14:
	xorl	%r15d, %r15d
	movq	_AF_INET6@GOTPCREL(%rip), %r13
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	32(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_24
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %edi
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	callq	_socket
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_23
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%rbx), %rsi
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%r13), %rax
	cmpq	%rax, (%rsi)
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r14d, (%rsi)
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	(%rbx), %edx
	movl	%r12d, %edi
	callq	_connect
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r12d, %edi
	callq	_closesocket
	jmp	LBB0_23
LBB0_24:
	movq	-64(%rbp), %rdi
	callq	_freeaddrinfo
	testl	%r12d, %r12d
	jns	LBB0_21
	jmp	LBB0_25
LBB0_12:
	xorl	%edi, %edi
	callq	_freeaddrinfo
	jmp	LBB0_25
LBB0_20:
	movq	-64(%rbp), %rdi
	callq	_freeaddrinfo
LBB0_21:
	testl	%r15d, %r15d
	movl	$-1, %eax
	cmovnsl	%r12d, %eax
	jmp	LBB0_26
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ## @MAXHOSTNAMELEN
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%hu"

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

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"getaddrinfo() error : %s\n"

	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_AI_NUMERICSERV,4,2             ## @AI_NUMERICSERV
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ## @SO_ERROR
	.comm	_SO_RCVTIMEO,4,2                ## @SO_RCVTIMEO
	.comm	_SO_SNDTIMEO,4,2                ## @SO_SNDTIMEO
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connecthostport                ; -- Begin function connecthostport
	.p2align	2
_connecthostport:                       ; @connecthostport
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #80
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x23, _MAXHOSTNAMELEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAXHOSTNAMELEN@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, #1
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	sub	x0, x29, #136
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh7:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _AF_UNSPEC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AF_UNSPEC@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w8, w9, [x29, #-116]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	sub	x0, x29, #80
	mov	w1, #8
	mov	x3, x22
	bl	_snprintf
	ldrb	w8, [x21]
	cmp	w8, #91
	b.ne	LBB0_6
; %bb.1:
	mov	x24, #0
	mov	w25, #1
Lloh15:
	adrp	x22, l_.str.1@PAGE
Lloh16:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x21, w25, sxtw
	ldrb	w8, [x0]
	cbz	w8, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #93
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x9, [x23]
	cmp	x24, x9
	b.ge	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	w8, [x20, x24]
	mov	x1, x22
	mov	w2, #3
	bl	_memcmp
	add	w8, w25, #2
	cmp	x0, #0
	csel	w8, w8, w25, eq
	add	x24, x24, #1
	add	w25, w8, #1
	b	LBB0_2
LBB0_6:
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_strncpy
	b	LBB0_8
LBB0_7:
	strb	wzr, [x20, x24]
LBB0_8:
	ldrsw	x8, [x23]
	strb	wzr, [x20, x8]
	sub	x1, x29, #80
	sub	x2, x29, #136
	sub	x3, x29, #88
	mov	x0, x20
	bl	_getaddrinfo_retro
	cbz	w0, LBB0_13
; %bb.9:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
	bl	_gai_strerror
	str	x0, [sp, #-16]!
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	add	sp, sp, #16
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldur	x8, [x29, #-72]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.12:
	sub	sp, x29, #64
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldur	x22, [x29, #-88]
	cbz	x22, LBB0_23
; %bb.14:
	mov	w21, #0
Lloh25:
	adrp	x23, _AF_INET6@GOTPAGE
Lloh26:
	ldr	x23, [x23, _AF_INET6@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x22, [x22, #32]
	cbz	x22, LBB0_22
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x22, #20]
	ldr	w2, [x22, #16]
	bl	_socket
	mov	x20, x0
	tbnz	w0, #31, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x1, [x22, #8]
	cbz	w19, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x1]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	str	w19, [x1]
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w2, [x22]
	mov	x0, x20
	bl	_connect
	mov	x21, x0
	tbz	w0, #31, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x20
	bl	_closesocket
	b	LBB0_15
LBB0_22:
	ldur	x0, [x29, #-88]
	bl	_freeaddrinfo
	tbz	w20, #31, LBB0_25
	b	LBB0_10
LBB0_23:
	mov	x0, #0
	bl	_freeaddrinfo
	b	LBB0_10
LBB0_24:
	ldur	x0, [x29, #-88]
	bl	_freeaddrinfo
LBB0_25:
	cmp	w21, #0
	csinv	w0, w20, wzr, ge
	b	LBB0_11
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ; @MAXHOSTNAMELEN
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%hu"

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

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"getaddrinfo() error : %s\n"

	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_AI_NUMERICSERV,4,2             ; @AI_NUMERICSERV
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ; @SO_ERROR
	.comm	_SO_RCVTIMEO,4,2                ; @SO_RCVTIMEO
	.comm	_SO_SNDTIMEO,4,2                ; @SO_SNDTIMEO
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
