	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_telnet_probe            ## -- Begin function server_telnet_probe
	.p2align	4, 0x90
_server_telnet_probe:                   ## @server_telnet_probe
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_util_socket_and_bind
	movl	%eax, %r14d
	movq	32(%r13), %rbx
	leaq	28(%r13), %rdi
	callq	_ATOMIC_INC
	movq	(%r13), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %r12
	cmpl	$-1, %r14d
	je	LBB0_4
LBB0_7:
	movl	8(%r13), %eax
	addl	%eax, %eax
	cmpl	%eax, %r14d
	jge	LBB0_8
## %bb.10:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rbx
	leaq	16(%rbx), %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	%r13, 8(%rbx)
	movl	%r14d, (%rbx)
	movq	%rbx, %rdi
	callq	_connection_open
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	4(%r15), %eax
	movl	%eax, -60(%rbp)
	movl	(%r15), %eax
	movl	%eax, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movl	%r14d, %edi
	movl	$12, %edx
	callq	_connect
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.11:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_13:
	movl	%r14d, -44(%rbp)
	movq	_EPOLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %edi
	movq	_EPOLL_CTL_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movl	%r14d, %edx
	callq	_epoll_ctl
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r12d
	cmpl	$-1, %r14d
	jne	LBB0_7
LBB0_4:
	xorl	%edi, %edi
	callq	_time
	imull	$-858993459, %eax, %eax         ## imm = 0xCCCCCCCD
	addl	$429496728, %eax                ## imm = 0x19999998
	rorl	%eax
	cmpl	$429496728, %eax                ## imm = 0x19999998
	ja	LBB0_6
## %bb.5:
	leaq	L_str.6(%rip), %rdi
	callq	_puts
LBB0_6:
	addq	$24, %r13
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ATOMIC_DEC                     ## TAILCALL
LBB0_8:
	callq	_server_telnet_probe.cold.1
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function server_telnet_probe.cold.1
_server_telnet_probe.cold.1:            ## @server_telnet_probe.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_str.5(%rip), %rdi
	callq	_puts
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_errno,8,3                      ## @errno
	.comm	_EINPROGRESS,8,3                ## @EINPROGRESS
	.comm	_EPOLLOUT,4,2                   ## @EPOLLOUT
	.comm	_EPOLL_CTL_ADD,4,2              ## @EPOLL_CTL_ADD
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"got connect error"

L_str.5:                                ## @str.5
	.asciz	"fd too big"

L_str.6:                                ## @str.6
	.asciz	"Failed to open and bind socket"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_telnet_probe            ; -- Begin function server_telnet_probe
	.p2align	2
_server_telnet_probe:                   ; @server_telnet_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x20, x0
	bl	_util_socket_and_bind
	mov	x19, x0
	ldr	x23, [x20, #32]
	add	x0, x20, #28
	bl	_ATOMIC_INC
	cmn	w19, #1
	b.eq	LBB0_6
; %bb.1:
	ldr	w8, [x20, #8]
	cmp	w19, w8, lsl #1
	b.ge	LBB0_9
; %bb.2:
	ldr	x8, [x20]
	udiv	x9, x0, x8
	msub	x24, x9, x8, x0
	ldr	x8, [x20, #16]
	ldr	x22, [x8, w19, sxtw #3]
	add	x0, x22, #16
	mov	x1, x21
	mov	w2, #8
	bl	_memcpy
	str	x20, [x22, #8]
	str	w19, [x22]
	mov	x0, x22
	bl	_connection_open
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	d0, [x21]
	str	d0, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #12
	bl	_connect
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _EINPROGRESS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EINPROGRESS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
Lloh9:
	adrp	x0, l_str@PAGE
Lloh10:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_5:
Lloh11:
	adrp	x8, _EPOLLOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPOLLOUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	w8, w19, [sp, #8]
	ldr	w0, [x23, x24, lsl #2]
Lloh14:
	adrp	x8, _EPOLL_CTL_ADD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPOLL_CTL_ADD@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x2, x19
	bl	_epoll_ctl
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	mov	x0, #0
	bl	_time
	mov	w8, #52429
	movk	w8, #52428, lsl #16
	mov	w9, #39320
	movk	w9, #6553, lsl #16
	madd	w8, w0, w8, w9
	ror	w8, w8, #1
	cmp	w8, w9
	b.hi	LBB0_8
; %bb.7:
Lloh17:
	adrp	x0, l_str.6@PAGE
Lloh18:
	add	x0, x0, l_str.6@PAGEOFF
	bl	_puts
LBB0_8:
	add	x0, x20, #24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ATOMIC_DEC
LBB0_9:
	bl	_server_telnet_probe.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function server_telnet_probe.cold.1
_server_telnet_probe.cold.1:            ; @server_telnet_probe.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh19:
	adrp	x0, l_str.5@PAGE
Lloh20:
	add	x0, x0, l_str.5@PAGEOFF
	bl	_puts
	brk	#0x1
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_errno,8,3                      ; @errno
	.comm	_EINPROGRESS,8,3                ; @EINPROGRESS
	.comm	_EPOLLOUT,4,2                   ; @EPOLLOUT
	.comm	_EPOLL_CTL_ADD,4,2              ; @EPOLL_CTL_ADD
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"got connect error"

l_str.5:                                ; @str.5
	.asciz	"fd too big"

l_str.6:                                ; @str.6
	.asciz	"Failed to open and bind socket"

.subsections_via_symbols
