	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcpConnect
_tcpConnect:                            ## @tcpConnect
	.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	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	32(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$3, %edi
	callq	_debug_called
	movl	(%r13), %eax
	movq	_SESS_RECONNECT@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	_SESS_REDIRECT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	testl	%eax, %edx
	je	LBB0_5
## %bb.1:
	movq	_LOG_INFO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	testl	%eax, %ecx
	leaq	L_.str.2(%rip), %r12
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %rdx
	cmoveq	%r12, %rdx
	leaq	L_.str(%rip), %r14
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_syslog
	movl	(%r15), %eax
	andl	(%r13), %eax
	cmoveq	%r12, %rbx
	movl	$1, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_debug
	movl	4(%r13), %edi
	movq	_SHUT_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_shutdown
	movl	$-1, 4(%r13)
	movq	_SESS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%r13), %eax
	movl	%eax, (%r13)
	movq	_SESS_REDIRECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	incl	44(%r13)
	orl	(%r15), %eax
	movl	%eax, (%r13)
	jmp	LBB0_4
LBB0_3:
	movl	$2, %edi
	callq	_sleep
LBB0_4:
	incl	40(%r13)
LBB0_5:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %ecx
	leaq	L_.str.3(%rip), %rdx
	leaq	-58(%rbp), %r14
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_snprintf
	leaq	-120(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_debug
	movq	8(%rbx), %rdi
	leaq	-72(%rbp), %rcx
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getaddrinfo
	movl	%eax, -64(%rbp)
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movq	8(%rbx), %r14
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.5(%rip), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_7:
	movq	_SESS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r13)
	movq	-72(%rbp), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.9:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	_SOL_SOCKET@GOTPCREL(%rip), %r13
	movq	_errno@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movl	%ebx, %edi
	callq	_connect
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r12), %r14d
	movl	%ebx, %edi
	callq	_close
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	24(%r15), %r15
	testq	%r15, %r15
	je	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r15), %edi
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	callq	_socket
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %ebx
	movl	$1, -64(%rbp)
	movl	(%r13), %esi
	movq	_SO_REUSEADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	leaq	-64(%rbp), %rcx
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jns	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %r13
	movl	(%r12), %r12d
	movl	%r12d, %edi
	callq	_strerror
	movl	%r14d, %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%r12d, %edx
	movq	%r13, %r12
	movq	_SOL_SOCKET@GOTPCREL(%rip), %r13
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_13
LBB0_21:
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	%ebx, 4(%r14)
	movq	32(%r14), %rax
	movl	16(%rax), %eax
	testl	%eax, %eax
	je	LBB0_25
## %bb.22:
	shll	$10, %eax
	movl	%eax, -64(%rbp)
	movl	(%r13), %esi
	movq	_SO_SNDBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movl	%ebx, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	js	LBB0_24
## %bb.23:
	movl	4(%r14), %edi
	movl	(%r13), %esi
	movq	_SO_RCVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	js	LBB0_24
LBB0_25:
	movq	_SESS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_27:
	movq	_T1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_28
LBB0_24:
	movq	%r12, %rax
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movl	-64(%rbp), %r14d
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_strerror
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r12d, %edi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_fprintf
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	-72(%rbp), %rdi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_8:
	xorl	%edi, %edi
	xorl	%r14d, %r14d
LBB0_17:
	callq	_freeaddrinfo
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	leaq	L_.str.9(%rip), %rdi
	callq	_perror
	andl	$-4, %r14d
	cmpl	$128, %r14d
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	$0, %ebx
	jne	LBB0_28
## %bb.18:
	movq	_SESS_REDIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_19
LBB0_26:
	movl	$5, %edi
	callq	_sleep
	jmp	LBB0_27
LBB0_19:
	movq	8(%r14), %rdi
	movq	16(%r13), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_26
## %bb.20:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movq	8(%r14), %rdi
	callq	_free
	movq	16(%r13), %rax
	movq	%rax, 8(%r14)
	movl	24(%r13), %eax
	movl	%eax, (%r14)
	movl	28(%r13), %eax
	movl	%eax, 20(%r14)
	jmp	LBB0_27
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SESS_RECONNECT,4,2             ## @SESS_RECONNECT
	.comm	_SESS_REDIRECT,4,2              ## @SESS_REDIRECT
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

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

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

	.comm	_SHUT_RDWR,4,2                  ## @SHUT_RDWR
	.comm	_SESS_CONNECTED,4,2             ## @SESS_CONNECTED
L_.str.3:                               ## @.str.3
	.asciz	"%d"

	.comm	_PF_UNSPEC,4,2                  ## @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.4:                               ## @.str.4
	.asciz	"targetAddress=%s port=%d"

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

	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
L_.str.6:                               ## @.str.6
	.asciz	"Cannot set socket SO_REUSEADDR %d: %s\n\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_SO_SNDBUF,4,2                  ## @SO_SNDBUF
	.comm	_SO_RCVBUF,4,2                  ## @SO_RCVBUF
L_.str.7:                               ## @.str.7
	.asciz	"Cannot set socket sndbuf & rcvbuf to %d err=%d %s\n"

	.comm	_T1,4,2                         ## @T1
L_.str.8:                               ## @.str.8
	.asciz	"errno=%d\n"

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

L_.str.10:                              ## @.str.10
	.asciz	"reconnecting to original target address"

	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_LOG_CRIT,4,2                   ## @LOG_CRIT
	.comm	_SO_RCVTIMEO,4,2                ## @SO_RCVTIMEO
	.comm	_SO_SNDTIMEO,4,2                ## @SO_SNDTIMEO
	.comm	_TCP_KEEPALIVE,4,2              ## @TCP_KEEPALIVE
	.comm	_TCP_NODELAY,4,2                ## @TCP_NODELAY
	.no_dead_strip	_tcpConnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcpConnect
_tcpConnect:                            ; @tcpConnect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	ldr	x24, [x0, #32]
	mov	w0, #3
	bl	_debug_called
	ldr	w8, [x19]
Lloh3:
	adrp	x21, _SESS_RECONNECT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SESS_RECONNECT@GOTPAGEOFF]
Lloh5:
	adrp	x27, _SESS_REDIRECT@GOTPAGE
Lloh6:
	ldr	x27, [x27, _SESS_REDIRECT@GOTPAGEOFF]
	ldr	w9, [x21]
	ldr	w10, [x27]
	orr	w10, w10, w9
Lloh7:
	adrp	x25, _SESS_CONNECTED@GOTPAGE
Lloh8:
	ldr	x25, [x25, _SESS_CONNECTED@GOTPAGEOFF]
	tst	w10, w8
	b.eq	LBB0_5
; %bb.1:
Lloh9:
	adrp	x10, _LOG_INFO@GOTPAGE
Lloh10:
	ldr	x10, [x10, _LOG_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x10]
Lloh12:
	adrp	x22, l_.str.1@PAGE
Lloh13:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh14:
	adrp	x23, l_.str.2@PAGE
Lloh15:
	add	x23, x23, l_.str.2@PAGEOFF
	tst	w9, w8
	csel	x8, x23, x22, eq
	str	x8, [sp]
Lloh16:
	adrp	x20, l_.str@PAGE
Lloh17:
	add	x20, x20, l_.str@PAGEOFF
	mov	x1, x20
	bl	_syslog
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	csel	x2, x23, x22, eq
	mov	w0, #1
	mov	x1, x20
	bl	_debug
	ldr	w0, [x19, #4]
Lloh18:
	adrp	x8, _SHUT_RDWR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SHUT_RDWR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_shutdown
	mov	w9, #-1
	ldr	w8, [x25]
	ldr	w10, [x19]
	bic	w8, w10, w8
	stp	w8, w9, [x19]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w9, [x19, #44]
	add	w9, w9, #1
	str	w9, [x19, #44]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
	mov	w0, #2
	bl	_sleep
LBB0_4:
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
LBB0_5:
	ldr	w3, [x24]
Lloh21:
	adrp	x2, l_.str.3@PAGE
Lloh22:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #78
	mov	w1, #10
	bl	_snprintf
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh23:
	adrp	x8, _PF_UNSPEC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PF_UNSPEC@GOTPAGEOFF]
Lloh25:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #44]
	ldr	x2, [x24, #8]
	ldr	w8, [x24]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_debug
	ldr	x0, [x24, #8]
	add	x1, sp, #78
	add	x2, sp, #32
	add	x3, sp, #64
	bl	_getaddrinfo
	str	w0, [sp, #72]
	cbz	w0, LBB0_8
; %bb.6:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w19, [x8]
	ldr	x20, [x24, #8]
	bl	_gai_strerror
	stp	x20, x0, [sp]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_fprintf
	mov	w0, #0
	b	LBB0_21
LBB0_8:
	ldr	w8, [x25]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	ldr	x26, [sp, #64]
	cbz	x26, LBB0_25
; %bb.9:
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	mov	w22, #0
	mov	w27, #1
Lloh36:
	adrp	x25, _SOL_SOCKET@GOTPAGE
Lloh37:
	ldr	x25, [x25, _SOL_SOCKET@GOTPAGEOFF]
Lloh38:
	adrp	x24, _SO_REUSEADDR@GOTPAGE
Lloh39:
	ldr	x24, [x24, _SO_REUSEADDR@GOTPAGEOFF]
Lloh40:
	adrp	x28, _errno@GOTPAGE
Lloh41:
	ldr	x28, [x28, _errno@GOTPAGEOFF]
Lloh42:
	adrp	x20, l_.str.6@PAGE
Lloh43:
	add	x20, x20, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=1
	ldp	w2, w1, [x26]
	mov	x0, x21
	bl	_connect
	cbz	x0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w22, [x28]
	mov	x0, x21
	bl	_close
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x26, [x26, #24]
	cbz	x26, LBB0_24
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x26, #12]
	ldr	w2, [x26, #8]
	bl	_socket
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x21, x0
	str	w27, [sp, #72]
	ldr	w1, [x25]
	ldr	w2, [x24]
	add	x3, sp, #72
	mov	w4, #4
	bl	_setsockopt
	tbz	x0, #63, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
Lloh44:
	adrp	x8, _stderr@GOTPAGE
Lloh45:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh46:
	ldr	w22, [x8]
	ldr	w23, [x28]
	mov	x0, x23
	bl	_strerror
	stp	x23, x0, [sp]
	mov	x0, x22
	mov	x1, x20
	bl	_fprintf
	b	LBB0_10
LBB0_16:
	ldr	x0, [sp, #64]
	bl	_freeaddrinfo
	str	w21, [x19, #4]
	ldr	x8, [x19, #32]
	ldr	w8, [x8, #16]
	cbz	w8, LBB0_19
; %bb.17:
	lsl	w8, w8, #10
	str	w8, [sp, #72]
	ldr	w1, [x25]
Lloh47:
	adrp	x8, _SO_SNDBUF@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SO_SNDBUF@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	add	x3, sp, #72
	mov	x0, x21
	mov	w4, #4
	bl	_setsockopt
	tbnz	x0, #63, LBB0_23
; %bb.18:
	ldr	w0, [x19, #4]
	ldr	w1, [x25]
Lloh50:
	adrp	x8, _SO_RCVBUF@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SO_RCVBUF@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
	add	x3, sp, #72
	mov	w4, #4
	bl	_setsockopt
	tbnz	x0, #63, LBB0_23
LBB0_19:
Lloh53:
	adrp	x8, _SESS_CONNECTED@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SESS_CONNECTED@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_20:
Lloh56:
	adrp	x8, _T1@GOTPAGE
Lloh57:
	ldr	x8, [x8, _T1@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
LBB0_21:
	ldr	x8, [sp, #88]
Lloh59:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh60:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.22:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_23:
Lloh62:
	adrp	x8, _stderr@GOTPAGE
Lloh63:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh64:
	ldr	w19, [x8]
	ldr	w20, [x28]
	ldr	w21, [sp, #72]
	mov	x0, x20
	bl	_strerror
	stp	x20, x0, [sp, #8]
	str	x21, [sp]
Lloh65:
	adrp	x1, l_.str.7@PAGE
Lloh66:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_7
LBB0_24:
	ldr	x0, [sp, #64]
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
Lloh67:
	adrp	x27, _SESS_REDIRECT@GOTPAGE
Lloh68:
	ldr	x27, [x27, _SESS_REDIRECT@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:
	mov	x0, #0
	mov	w22, #0
LBB0_26:
	bl	_freeaddrinfo
Lloh69:
	adrp	x8, _stderr@GOTPAGE
Lloh70:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh72:
	adrp	x1, l_.str.8@PAGE
Lloh73:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
Lloh74:
	adrp	x0, l_.str.9@PAGE
Lloh75:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_perror
	and	w8, w22, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_29
; %bb.27:
	ldr	w8, [x19]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_30
LBB0_28:
	mov	w0, #5
	bl	_sleep
	b	LBB0_20
LBB0_29:
	mov	w0, #0
	b	LBB0_21
LBB0_30:
	ldr	x0, [x24, #8]
	ldr	x1, [x19, #16]
	bl	_strcmp
	cbz	w0, LBB0_28
; %bb.31:
Lloh76:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh77:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh78:
	ldr	w0, [x8]
Lloh79:
	adrp	x1, l_.str.10@PAGE
Lloh80:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_syslog
	ldr	x0, [x24, #8]
	bl	_free
	ldr	x8, [x19, #16]
	str	x8, [x24, #8]
	ldr	w8, [x19, #24]
	str	w8, [x24]
	ldr	w8, [x19, #28]
	str	w8, [x24, #20]
	b	LBB0_20
LBB0_32:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.cfi_endproc
                                        ; -- End function
	.comm	_SESS_RECONNECT,4,2             ; @SESS_RECONNECT
	.comm	_SESS_REDIRECT,4,2              ; @SESS_REDIRECT
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

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

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

	.comm	_SHUT_RDWR,4,2                  ; @SHUT_RDWR
	.comm	_SESS_CONNECTED,4,2             ; @SESS_CONNECTED
l_.str.3:                               ; @.str.3
	.asciz	"%d"

	.comm	_PF_UNSPEC,4,2                  ; @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.4:                               ; @.str.4
	.asciz	"targetAddress=%s port=%d"

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

	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
l_.str.6:                               ; @.str.6
	.asciz	"Cannot set socket SO_REUSEADDR %d: %s\n\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_SO_SNDBUF,4,2                  ; @SO_SNDBUF
	.comm	_SO_RCVBUF,4,2                  ; @SO_RCVBUF
l_.str.7:                               ; @.str.7
	.asciz	"Cannot set socket sndbuf & rcvbuf to %d err=%d %s\n"

	.comm	_T1,4,2                         ; @T1
l_.str.8:                               ; @.str.8
	.asciz	"errno=%d\n"

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

l_.str.10:                              ; @.str.10
	.asciz	"reconnecting to original target address"

	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_LOG_CRIT,4,2                   ; @LOG_CRIT
	.comm	_SO_RCVTIMEO,4,2                ; @SO_RCVTIMEO
	.comm	_SO_SNDTIMEO,4,2                ; @SO_SNDTIMEO
	.comm	_TCP_KEEPALIVE,4,2              ; @TCP_KEEPALIVE
	.comm	_TCP_NODELAY,4,2                ; @TCP_NODELAY
	.no_dead_strip	_tcpConnect
.subsections_via_symbols
