	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function socket_listen_accept
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_socket_listen_accept:                  ## @socket_listen_accept
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r13d
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -48(%rbp)
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movl	%edi, -56(%rbp)
	callq	_CLEAR
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movl	$1, %ecx
	callq	_socket_do_listen
	leaq	1(%r14), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	-100(%rbp), %r12
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_M_ERRNO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_D_LINK_ERRORS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_msg
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_management_sleep
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_FD_ZERO
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_openvpn_fd_set
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -128(%rbp)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-128(%rbp), %r8
	callq	_select
	movl	%eax, %ebx
	movq	16(%rbp), %r13
	movq	%r13, %rdi
	callq	_get_signal
	cmpl	$0, (%r13)
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_socket_do_accept
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_socket_defined
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, -72(%rbp)
	testq	%r15, %r15
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-56(%rbp), %r9d
	leaq	-72(%rbp), %rax
	movq	%rax, (%rsp)
	xorl	%edi, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_openvpn_getaddrinfo
	movq	-72(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-56(%rbp), %rdi
	callq	_addrlist_match
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_M_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	-48(%rbp), %rsi
	callq	_print_link_socket_actual
	movl	%r13d, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_msg
	movq	%rbx, %rdi
	callq	_openvpn_close_socket
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_msg
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_2:
	leaq	-48(%rbp), %rdi
	callq	_gc_free
	movq	%r14, %rbx
	jmp	LBB0_20
LBB0_14:
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_freeaddrinfo
LBB0_16:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_19
## %bb.17:
	movq	%r14, %rdi
	callq	_openvpn_close_socket
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_msg
LBB0_19:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_tcp_connection_established
	leaq	-48(%rbp), %rdi
	callq	_gc_free
LBB0_20:
	movq	%rbx, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCKET_UNDEFINED,8,3           ## @SOCKET_UNDEFINED
	.comm	_D_LINK_ERRORS,4,2              ## @D_LINK_ERRORS
	.comm	_M_ERRNO,4,2                    ## @M_ERRNO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TCP: select() failed"

	.comm	_M_WARN,4,2                     ## @M_WARN
L_.str.1:                               ## @.str.1
	.asciz	"TCP NOTE: Rejected connection attempt from %s due to --remote setting"

	.comm	_M_ERR,4,2                      ## @M_ERR
L_.str.2:                               ## @.str.2
	.asciz	"TCP: close socket failed (new_sd)"

L_.str.3:                               ## @.str.3
	.asciz	"TCP: close socket failed (sd)"

	.no_dead_strip	_socket_listen_accept
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socket_listen_accept
_socket_listen_accept:                  ; @socket_listen_accept
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x22, x6
	mov	x21, x5
	mov	x24, x4
	mov	x25, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	bl	_gc_new
	str	w0, [sp, #56]
	ldr	w0, [x19]
	str	w0, [sp, #48]
	bl	_CLEAR
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	mov	w3, #1
	bl	_socket_do_listen
	add	x24, x20, #1
Lloh0:
	adrp	x26, _M_ERRNO@GOTPAGE
Lloh1:
	ldr	x26, [x26, _M_ERRNO@GOTPAGEOFF]
Lloh2:
	adrp	x25, l_.str@PAGE
Lloh3:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh4:
	adrp	x8, _D_LINK_ERRORS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _D_LINK_ERRORS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w0, w9, w8
	mov	x1, x25
	bl	_msg
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_management_sleep
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #44
	bl	_FD_ZERO
	add	x1, sp, #44
	mov	x0, x20
	bl	_openvpn_fd_set
	stp	xzr, xzr, [sp, #24]
	add	x1, sp, #44
	add	x4, sp, #24
	mov	x0, x24
	mov	x2, #0
	mov	x3, #0
	bl	_select
	mov	x28, x0
	mov	x0, x22
	bl	_get_signal
	ldr	w8, [x22]
	cbnz	w8, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w28, #31, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w28, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_socket_do_accept
	mov	x28, x0
	bl	_socket_defined
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [sp, #16]
	cbz	x23, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w5, [sp, #48]
	add	x6, sp, #16
	mov	w0, #0
	mov	x1, x23
	mov	x2, #0
	mov	w3, #1
	mov	x4, #0
	bl	_openvpn_getaddrinfo
	ldr	x1, [sp, #16]
	cbz	x1, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #48
	bl	_addrlist_match
	cbnz	w0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh7:
	adrp	x8, _M_WARN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _M_WARN@GOTPAGEOFF]
Lloh9:
	ldr	w27, [x8]
	add	x1, sp, #56
	mov	x0, x19
	bl	_print_link_socket_actual
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x27
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msg
	mov	x0, x28
	bl	_openvpn_close_socket
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh12:
	adrp	x8, _M_ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_msg
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #16]
	bl	_freeaddrinfo
	b	LBB0_2
LBB0_13:
	add	x0, sp, #56
	bl	_gc_free
	mov	x28, x20
	b	LBB0_20
LBB0_14:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_freeaddrinfo
LBB0_16:
	cbnz	w21, LBB0_19
; %bb.17:
	mov	x0, x20
	bl	_openvpn_close_socket
	cbz	x0, LBB0_19
; %bb.18:
Lloh17:
	adrp	x8, _M_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_msg
LBB0_19:
	mov	x0, x19
	bl	_tcp_connection_established
	add	x0, sp, #56
	bl	_gc_free
LBB0_20:
	mov	x0, x28
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCKET_UNDEFINED,8,3           ; @SOCKET_UNDEFINED
	.comm	_D_LINK_ERRORS,4,2              ; @D_LINK_ERRORS
	.comm	_M_ERRNO,4,2                    ; @M_ERRNO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TCP: select() failed"

	.comm	_M_WARN,4,2                     ; @M_WARN
l_.str.1:                               ; @.str.1
	.asciz	"TCP NOTE: Rejected connection attempt from %s due to --remote setting"

	.comm	_M_ERR,4,2                      ; @M_ERR
l_.str.2:                               ; @.str.2
	.asciz	"TCP: close socket failed (new_sd)"

l_.str.3:                               ; @.str.3
	.asciz	"TCP: close socket failed (sd)"

	.no_dead_strip	_socket_listen_accept
.subsections_via_symbols
