	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function socket_connect
_socket_connect:                        ## @socket_connect
	.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	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -48(%rbp)
	movq	_M_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_print_sockaddr
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_msg
	movl	(%r14), %edi
	leaq	8(%r15), %rbx
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	callq	_openvpn_connect
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_get_signal
	cmpq	$0, 8(%r15)
	jne	LBB0_4
## %bb.1:
	movq	_M_INFO@GOTPCREL(%rip), %rax
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	movq	_D_LINK_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_print_sockaddr
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_msg
	movl	(%r14), %edi
	callq	_openvpn_close_socket
	movq	_SOCKET_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_SIGUSR1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	_SIG_SOURCE_CONNECTION_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_4
LBB0_3:
	movl	(%rax), %ebx
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_print_sockaddr
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_msg
LBB0_4:
	leaq	-48(%rbp), %rdi
	callq	_gc_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_INFO,4,2                     ## @M_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempting to establish TCP connection with %s"

	.comm	_D_LINK_ERRORS,4,2              ## @D_LINK_ERRORS
L_.str.1:                               ## @.str.1
	.asciz	"TCP: connect to %s failed: %s"

	.comm	_SOCKET_UNDEFINED,4,2           ## @SOCKET_UNDEFINED
	.comm	_SIGUSR1,8,3                    ## @SIGUSR1
	.comm	_SIG_SOURCE_CONNECTION_FAILED,4,2 ## @SIG_SOURCE_CONNECTION_FAILED
L_.str.2:                               ## @.str.2
	.asciz	"TCP connection established with %s"

	.comm	_OPENVPN_STATE_TCP_CONNECT,4,2  ## @OPENVPN_STATE_TCP_CONNECT
	.comm	_management,8,3                 ## @management
	.no_dead_strip	_socket_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socket_connect
_socket_connect:                        ; @socket_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	bl	_gc_new
	str	w0, [sp, #8]
Lloh0:
	adrp	x24, _M_INFO@GOTPAGE
Lloh1:
	ldr	x24, [x24, _M_INFO@GOTPAGEOFF]
	ldr	w23, [x24]
	add	x1, sp, #8
	mov	x0, x21
	bl	_print_sockaddr
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_msg
	ldr	w0, [x20]
	add	x23, x19, #8
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_openvpn_connect
	mov	x22, x0
	mov	x0, x23
	bl	_get_signal
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_4
; %bb.1:
	cbz	w22, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _D_LINK_ERRORS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _D_LINK_ERRORS@GOTPAGEOFF]
Lloh6:
	ldr	w23, [x8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_print_sockaddr
	mov	x21, x0
	mov	x0, x22
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x21
	bl	_msg
	ldr	w0, [x20]
	bl	_openvpn_close_socket
Lloh9:
	adrp	x8, _SOCKET_UNDEFINED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCKET_UNDEFINED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh12:
	adrp	x8, _SIGUSR1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIGUSR1@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh15:
	adrp	x8, _SIG_SOURCE_CONNECTION_FAILED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIG_SOURCE_CONNECTION_FAILED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
	ldr	w19, [x24]
	add	x1, sp, #8
	mov	x0, x21
	bl	_print_sockaddr
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_msg
LBB0_4:
	add	x0, sp, #8
	bl	_gc_free
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_M_INFO,4,2                     ; @M_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempting to establish TCP connection with %s"

	.comm	_D_LINK_ERRORS,4,2              ; @D_LINK_ERRORS
l_.str.1:                               ; @.str.1
	.asciz	"TCP: connect to %s failed: %s"

	.comm	_SOCKET_UNDEFINED,4,2           ; @SOCKET_UNDEFINED
	.comm	_SIGUSR1,8,3                    ; @SIGUSR1
	.comm	_SIG_SOURCE_CONNECTION_FAILED,4,2 ; @SIG_SOURCE_CONNECTION_FAILED
l_.str.2:                               ; @.str.2
	.asciz	"TCP connection established with %s"

	.comm	_OPENVPN_STATE_TCP_CONNECT,4,2  ; @OPENVPN_STATE_TCP_CONNECT
	.comm	_management,8,3                 ; @management
	.no_dead_strip	_socket_connect
.subsections_via_symbols
