	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_link_socket_connection_initiated ## -- Begin function link_socket_connection_initiated
	.p2align	4, 0x90
_link_socket_connection_initiated:      ## @link_socket_connection_initiated
	.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	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -56(%rbp)
	movq	24(%r12), %rax
	movl	(%rbx), %ecx
	movl	%ecx, (%rax)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_setenv_trusted
	movl	$1, (%r12)
	leaq	-56(%rbp), %rsi
	movl	$256, %edi                      ## imm = 0x100
	callq	_alloc_buf_gc
	movl	%eax, -48(%rbp)
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r15, %rdx
	callq	_buf_printf
LBB0_2:
	movq	24(%r12), %rdi
	leaq	-56(%rbp), %rsi
	callq	_print_link_socket_actual
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_buf_printf
	movq	_M_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_BSTR
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_msg
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_setenv_str
	movl	16(%r12), %edi
	movq	_OPENVPN_PLUGIN_IPCHANGE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_plugin_defined
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	callq	_argv_new
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rbx
	leaq	-56(%rbp), %rcx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_ipchange_fmt
	movl	16(%r12), %edi
	movl	(%r15), %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_plugin_call
	movq	_OPENVPN_PLUGIN_FUNC_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_M_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_msg
LBB0_5:
	leaq	-48(%rbp), %rdi
	callq	_argv_reset
LBB0_6:
	cmpq	$0, 8(%r12)
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_argv_new
	movl	%eax, -48(%rbp)
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	callq	_setenv_str
	leaq	-48(%rbp), %rbx
	leaq	-56(%rbp), %rcx
	movl	$1, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_ipchange_fmt
	leaq	L_.str.7(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_openvpn_run_script
	movq	%rbx, %rdi
	callq	_argv_reset
LBB0_8:
	leaq	-56(%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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%s] "

L_.str.1:                               ## @.str.1
	.asciz	"Peer Connection Initiated with %s"

	.comm	_M_INFO,4,2                     ## @M_INFO
L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"common_name"

	.comm	_OPENVPN_PLUGIN_IPCHANGE,4,2    ## @OPENVPN_PLUGIN_IPCHANGE
	.comm	_OPENVPN_PLUGIN_FUNC_SUCCESS,8,3 ## @OPENVPN_PLUGIN_FUNC_SUCCESS
	.comm	_M_WARN,4,2                     ## @M_WARN
L_.str.4:                               ## @.str.4
	.asciz	"WARNING: ipchange plugin call failed"

L_.str.5:                               ## @.str.5
	.asciz	"script_type"

L_.str.6:                               ## @.str.6
	.asciz	"ipchange"

L_.str.7:                               ## @.str.7
	.asciz	"--ipchange"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_link_socket_connection_initiated ; -- Begin function link_socket_connection_initiated
	.p2align	2
_link_socket_connection_initiated:      ; @link_socket_connection_initiated
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	bl	_gc_new
	str	w0, [sp, #24]
	ldr	x8, [x20, #24]
	ldr	w9, [x22]
	str	w9, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_setenv_trusted
	mov	w8, #1
	str	w8, [x20]
	add	x1, sp, #24
	mov	w0, #256
	bl	_alloc_buf_gc
	str	w0, [sp, #16]
	cbz	x21, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #16
	mov	x2, x21
	bl	_buf_printf
LBB0_2:
	ldr	x0, [x20, #24]
	add	x1, sp, #24
	bl	_print_link_socket_actual
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #16
	bl	_buf_printf
Lloh4:
	adrp	x8, _M_INFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_INFO@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
	add	x0, sp, #16
	bl	_BSTR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_msg
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_setenv_str
	ldr	w0, [x20, #16]
Lloh11:
	adrp	x21, _OPENVPN_PLUGIN_IPCHANGE@GOTPAGE
Lloh12:
	ldr	x21, [x21, _OPENVPN_PLUGIN_IPCHANGE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_plugin_defined
	cbz	x0, LBB0_6
; %bb.3:
	bl	_argv_new
	str	w0, [sp, #16]
	add	x1, sp, #16
	add	x3, sp, #24
	mov	w0, #0
	mov	x2, x20
	bl	_ipchange_fmt
	ldr	w0, [x20, #16]
	ldr	w1, [x21]
	add	x2, sp, #16
	mov	x3, #0
	mov	x4, x19
	bl	_plugin_call
Lloh13:
	adrp	x8, _OPENVPN_PLUGIN_FUNC_SUCCESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OPENVPN_PLUGIN_FUNC_SUCCESS@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
Lloh16:
	adrp	x8, _M_WARN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _M_WARN@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_msg
LBB0_5:
	add	x0, sp, #16
	bl	_argv_reset
LBB0_6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.7:
	bl	_argv_new
	str	w0, [sp, #16]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
Lloh23:
	adrp	x2, l_.str.6@PAGE
Lloh24:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_setenv_str
	add	x1, sp, #16
	add	x3, sp, #24
	mov	w0, #1
	mov	x2, x20
	bl	_ipchange_fmt
Lloh25:
	adrp	x3, l_.str.7@PAGE
Lloh26:
	add	x3, x3, l_.str.7@PAGEOFF
	add	x0, sp, #16
	mov	x1, x19
	mov	w2, #0
	bl	_openvpn_run_script
	add	x0, sp, #16
	bl	_argv_reset
LBB0_8:
	add	x0, sp, #24
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%s] "

l_.str.1:                               ; @.str.1
	.asciz	"Peer Connection Initiated with %s"

	.comm	_M_INFO,4,2                     ; @M_INFO
l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"common_name"

	.comm	_OPENVPN_PLUGIN_IPCHANGE,4,2    ; @OPENVPN_PLUGIN_IPCHANGE
	.comm	_OPENVPN_PLUGIN_FUNC_SUCCESS,8,3 ; @OPENVPN_PLUGIN_FUNC_SUCCESS
	.comm	_M_WARN,4,2                     ; @M_WARN
l_.str.4:                               ; @.str.4
	.asciz	"WARNING: ipchange plugin call failed"

l_.str.5:                               ; @.str.5
	.asciz	"script_type"

l_.str.6:                               ; @.str.6
	.asciz	"ipchange"

l_.str.7:                               ; @.str.7
	.asciz	"--ipchange"

.subsections_via_symbols
