	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_socket_do_accept               ## -- Begin function socket_do_accept
	.p2align	4, 0x90
_socket_do_accept:                      ## @socket_do_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movl	(%rsi), %edi
	callq	_af_addr_size
	movl	%eax, %r15d
	movl	$4, -44(%rbp)
	movq	_SOCKET_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%rbx), %edi
	callq	_CLEAR
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.1:
	movq	_M_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_msg
	jmp	LBB0_3
LBB0_2:
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_accept
	movl	%eax, %r12d
LBB0_3:
	movl	%r12d, %edi
	callq	_socket_defined
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.6:
	movl	-44(%rbp), %edx
	cmpl	%r15d, %edx
	jne	LBB0_7
LBB0_8:
	movl	%r14d, %edi
	callq	_set_cloexec
	jmp	LBB0_9
LBB0_4:
	movq	_D_LINK_ERRORS@GOTPCREL(%rip), %rax
	movq	_M_ERRNO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_msg
	jmp	LBB0_9
LBB0_7:
	movq	_D_LINK_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_msg
	movl	%r12d, %edi
	callq	_openvpn_close_socket
	movq	_SOCKET_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCKET_UNDEFINED,4,2           ## @SOCKET_UNDEFINED
	.comm	_M_WARN,4,2                     ## @M_WARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TCP: this OS does not provide the getpeername() function"

	.comm	_D_LINK_ERRORS,4,2              ## @D_LINK_ERRORS
	.comm	_M_ERRNO,4,2                    ## @M_ERRNO
L_.str.1:                               ## @.str.1
	.asciz	"TCP: accept(%d) failed"

L_.str.2:                               ## @.str.2
	.asciz	"TCP: Received strange incoming connection with unknown address length=%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_socket_do_accept               ; -- Begin function socket_do_accept
	.p2align	2
_socket_do_accept:                      ; @socket_do_accept
	.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	x23, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w0, [x1]
	bl	_af_addr_size
	mov	x21, x0
	mov	w8, #4
	str	w8, [sp, #12]
Lloh0:
	adrp	x24, _SOCKET_UNDEFINED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SOCKET_UNDEFINED@GOTPAGEOFF]
	ldr	w19, [x24]
	ldr	w0, [x22]
	bl	_CLEAR
	cbz	w23, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _M_WARN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_WARN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_msg
	b	LBB0_3
LBB0_2:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x22
	bl	_accept
	mov	x19, x0
LBB0_3:
	mov	x0, x19
	bl	_socket_defined
	cbz	w0, LBB0_7
; %bb.4:
	cbz	w21, LBB0_6
; %bb.5:
	ldr	w8, [sp, #12]
	cmp	w8, w21
	b.ne	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_set_cloexec
	b	LBB0_9
LBB0_7:
Lloh7:
	adrp	x8, _D_LINK_ERRORS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _D_LINK_ERRORS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _M_ERRNO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _M_ERRNO@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w0, w9, w8
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msg
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x9, _D_LINK_ERRORS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _D_LINK_ERRORS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_msg
	mov	x0, x19
	bl	_openvpn_close_socket
	ldr	w19, [x24]
LBB0_9:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCKET_UNDEFINED,4,2           ; @SOCKET_UNDEFINED
	.comm	_M_WARN,4,2                     ; @M_WARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TCP: this OS does not provide the getpeername() function"

	.comm	_D_LINK_ERRORS,4,2              ; @D_LINK_ERRORS
	.comm	_M_ERRNO,4,2                    ; @M_ERRNO
l_.str.1:                               ; @.str.1
	.asciz	"TCP: accept(%d) failed"

l_.str.2:                               ; @.str.2
	.asciz	"TCP: Received strange incoming connection with unknown address length=%d"

.subsections_via_symbols
