	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcpconnect_client
_tcpconnect_client:                     ## @tcpconnect_client
	.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
	movq	%rsi, %r14
	movl	%edi, %r13d
	leal	-6(%r13), %eax
	cmpl	$-4, %eax
	ja	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_usage
LBB0_2:
	xorl	%ebx, %ebx
	movl	$0, %r12d
	cmpl	$4, %r13d
	jl	LBB0_5
## %bb.3:
	movslq	%r13d, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$3, %r15d
	xorl	%r12d, %r12d
	movl	$1, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r15,8), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	cmovel	%r13d, %r12d
	movq	(%r14,%r15,8), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	cmovel	%r13d, %ebx
	incq	%r15
	cmpq	%r15, -80(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_4
LBB0_5:
	movl	%ebx, -44(%rbp)
	leaq	-72(%rbp), %rdi
	movl	$16, %esi
	callq	_bzero
	movl	$16, -72(%rbp)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	(%r14), %rdi
	leaq	-64(%rbp), %rsi
	callq	_inet_aton
	testq	%rax, %rax
	movq	%r14, %rbx
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_7:
	movq	8(%rbx), %rdi
	leaq	-56(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, %r14
	addq	$-65536, %rax                   ## imm = 0xFFFF0000
	cmpq	$-65535, %rax                   ## imm = 0xFFFF0001
	jb	LBB0_9
## %bb.8:
	movq	-56(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	callq	_usage
LBB0_10:
	movq	%r14, %rdi
	callq	_htons
	movl	%eax, -68(%rbp)
	movq	16(%rbx), %rdi
	leaq	-56(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, %rbx
	addq	$-100001, %rax                  ## imm = 0xFFFE795F
	cmpq	$-100000, %rax                  ## imm = 0xFFFE7960
	jae	LBB0_11
## %bb.13:
	xorl	%eax, %eax
	callq	_usage
	testq	%rbx, %rbx
	jg	LBB0_14
LBB0_31:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-56(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_14
## %bb.12:
	xorl	%eax, %eax
	callq	_usage
LBB0_14:
	leaq	-44(%rbp), %r15
	leaq	-72(%rbp), %r14
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	$-1, %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_err
LBB0_30:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%r13d, %edi
	callq	_close
	decq	%rbx
	je	LBB0_31
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r13d
	cmpl	$-1, %eax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	$-1, %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_err
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TCP_MD5SIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movq	%r15, %rcx
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	je	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOPROTOOPT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$0, -44(%rbp)
	jle	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	$-1, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_err
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpq	%rcx, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	_warn
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_15 Depth=1
	testl	%r12d, %r12d
	je	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	callq	_fcntl
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	$-1, %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_err
LBB0_26:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%r13d, %edi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_connect
	cmpl	$-1, %eax
	jne	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%r13d, %edi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_connect
	cmpl	$-1, %eax
	jne	LBB0_30
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nonblock"

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

	.comm	_AF_INET,4,2                    ## @AF_INET
L_.str.2:                               ## @.str.2
	.asciz	"listen"

	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.3:                               ## @.str.3
	.asciz	"socket"

	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_TCP_MD5SIG,4,2                 ## @TCP_MD5SIG
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOPROTOOPT,8,3                ## @ENOPROTOOPT
L_.str.4:                               ## @.str.4
	.asciz	"setsockopt(TCP_MD5SIG)"

	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
L_.str.5:                               ## @.str.5
	.asciz	"fcntl(F_SETFL)"

	.comm	_EINPROGRESS,8,3                ## @EINPROGRESS
L_.str.6:                               ## @.str.6
	.asciz	"connect"

	.no_dead_strip	_tcpconnect_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcpconnect_client
_tcpconnect_client:                     ; @tcpconnect_client
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	mov	x20, x0
	sub	w8, w0, #6
	cmn	w8, #4
	b.hi	LBB0_2
; %bb.1:
	bl	_usage
LBB0_2:
	cmp	w20, #4
	b.lt	LBB0_5
; %bb.3:
	mov	w25, #0
	mov	w22, #0
	sxtw	x8, w20
	sub	x23, x8, #3
	add	x24, x19, #24
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	mov	x1, x20
	bl	_strcmp
	cmp	x0, #0
	csinc	w25, w25, wzr, ne
	ldr	x0, [x24], #8
	mov	x1, x21
	bl	_strcmp
	cmp	x0, #0
	csinc	w22, w22, wzr, ne
	subs	x23, x23, #1
	b.ne	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	w22, #0
	mov	w25, #0
LBB0_6:
	str	w22, [sp, #4]
	add	x20, sp, #16
	mov	w21, #16
	add	x0, sp, #16
	mov	w1, #16
	bl	_bzero
Lloh4:
	adrp	x8, _AF_INET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w21, [sp, #16]
	str	w8, [sp, #28]
	ldr	x0, [x19]
	add	x1, x20, #8
	bl	_inet_aton
	cbnz	x0, LBB0_8
; %bb.7:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_8:
	ldr	x0, [x19, #8]
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtoul
	mov	x20, x0
	sub	x8, x0, #16, lsl #12            ; =65536
	mov	x9, #-65535
	cmp	x8, x9
	b.lo	LBB0_10
; %bb.9:
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_11
LBB0_10:
	bl	_usage
LBB0_11:
	mov	x0, x20
	bl	_htons
	str	w0, [sp, #20]
	ldr	x0, [x19, #16]
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtoul
	mov	x19, x0
	mov	x8, #-34465
	movk	x8, #65534, lsl #16
	add	x9, x8, #1
	add	x8, x0, x8
	cmp	x8, x9
	b.hs	LBB0_14
; %bb.12:
	bl	_usage
	cmp	x19, #1
	b.ge	LBB0_16
LBB0_13:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_14:
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_16
; %bb.15:
	bl	_usage
LBB0_16:
Lloh9:
	adrp	x26, _PF_INET@GOTPAGE
Lloh10:
	ldr	x26, [x26, _PF_INET@GOTPAGEOFF]
Lloh11:
	adrp	x27, _SOCK_STREAM@GOTPAGE
Lloh12:
	ldr	x27, [x27, _SOCK_STREAM@GOTPAGEOFF]
Lloh13:
	adrp	x28, _IPPROTO_TCP@GOTPAGE
Lloh14:
	ldr	x28, [x28, _IPPROTO_TCP@GOTPAGEOFF]
Lloh15:
	adrp	x21, _TCP_MD5SIG@GOTPAGE
Lloh16:
	ldr	x21, [x21, _TCP_MD5SIG@GOTPAGEOFF]
Lloh17:
	adrp	x22, _O_NONBLOCK@GOTPAGE
Lloh18:
	ldr	x22, [x22, _O_NONBLOCK@GOTPAGEOFF]
Lloh19:
	adrp	x23, _errno@GOTPAGE
Lloh20:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh21:
	adrp	x20, _ENOPROTOOPT@GOTPAGE
Lloh22:
	ldr	x20, [x20, _ENOPROTOOPT@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	w0, #-1
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_err
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x24
	bl	_close
	subs	x19, x19, #1
	b.eq	LBB0_13
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	ldr	w1, [x27]
	mov	w2, #0
	bl	_socket
	mov	x24, x0
	cmn	w0, #1
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w1, [x28]
	ldr	w2, [x21]
	add	x3, sp, #4
	mov	x0, x24
	mov	w4, #4
	bl	_setsockopt
	cbz	x0, LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x20]
	ldr	w10, [sp, #4]
	cmp	x8, x9
	ccmp	w10, #1, #8, eq
	b.ge	LBB0_30
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	x8, x9
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warn
LBB0_25:                                ;   in Loop: Header=BB0_19 Depth=1
	cbz	w25, LBB0_31
LBB0_26:                                ;   in Loop: Header=BB0_19 Depth=1
Lloh29:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x24
	bl	_fcntl
	cbz	x0, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	w0, #-1
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_err
LBB0_28:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x1, sp, #16
	mov	x0, x24
	mov	w2, #16
	bl	_connect
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.29:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x23]
Lloh34:
	adrp	x9, _EINPROGRESS@GOTPAGE
Lloh35:
	ldr	x9, [x9, _EINPROGRESS@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
	b	LBB0_18
LBB0_30:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	w0, #-1
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
	cbnz	w25, LBB0_26
LBB0_31:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x1, sp, #16
	mov	x0, x24
	mov	w2, #16
	bl	_connect
	cmn	w0, #1
	b.ne	LBB0_18
	b	LBB0_17
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nonblock"

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

	.comm	_AF_INET,4,2                    ; @AF_INET
l_.str.2:                               ; @.str.2
	.asciz	"listen"

	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.3:                               ; @.str.3
	.asciz	"socket"

	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_TCP_MD5SIG,4,2                 ; @TCP_MD5SIG
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOPROTOOPT,8,3                ; @ENOPROTOOPT
l_.str.4:                               ; @.str.4
	.asciz	"setsockopt(TCP_MD5SIG)"

	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
l_.str.5:                               ; @.str.5
	.asciz	"fcntl(F_SETFL)"

	.comm	_EINPROGRESS,8,3                ; @EINPROGRESS
l_.str.6:                               ; @.str.6
	.asciz	"connect"

	.no_dead_strip	_tcpconnect_client
.subsections_via_symbols
