	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcpme
_tcpme:                                 ## @tcpme
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$404, (%rsi)                    ## imm = 0x194
	cmpb	$58, 6(%rdi)
	jne	LBB0_5
## %bb.1:
	xorl	%edi, %edi
	callq	_r_socket_new
	movq	%rax, %r12
	addq	$7, %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_r_socket_listen
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	callq	_r_socket_accept
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_r_socket_slurp
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_r_socket_free
	movq	%r12, %rdi
	callq	_r_socket_free
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.4:
	movl	$200, (%r15)
	jmp	LBB0_16
LBB0_5:
	addq	$6, %rbx
	movq	%rbx, %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%rax, %rbx
	incq	%rbx
	movb	$0, (%rax)
	xorl	%edi, %edi
	callq	_r_socket_new
	movq	%rax, %r13
	movq	_R_SOCKET_PROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	callq	_r_socket_connect
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_r_socket_slurp
	movq	%rax, %rbx
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.11:
	movl	$200, (%r15)
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_eprintf
	movq	%r12, %rdi
	callq	_r_socket_free
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	callq	_eprintf
	jmp	LBB0_14
LBB0_10:
	movq	%r13, %rdi
	callq	_r_socket_free
LBB0_14:
	movq	%r12, %rdi
	callq	_free
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	callq	_R_FREE
LBB0_12:
	movq	%r13, %rdi
	callq	_r_socket_free
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot listen\n"

	.comm	_R_SOCKET_PROTO_TCP,4,2         ## @R_SOCKET_PROTO_TCP
L_.str.1:                               ## @.str.1
	.asciz	"Missing port.\n"

	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.no_dead_strip	_tcpme
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcpme
_tcpme:                                 ; @tcpme
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	w8, #404
	str	w8, [x1]
	ldrb	w8, [x0, #6]!
	cmp	w8, #58
	b.ne	LBB0_4
; %bb.1:
	mov	w0, #0
	bl	_r_socket_new
	mov	x21, x0
	add	x1, x22, #7
	mov	x2, #0
	bl	_r_socket_listen
	cbz	w0, LBB0_9
; %bb.2:
	mov	x0, x21
	bl	_r_socket_accept
	mov	x23, x0
	mov	x1, x20
	bl	_r_socket_slurp
	mov	x22, x0
	mov	x0, x23
	bl	_r_socket_free
	mov	x0, x21
	bl	_r_socket_free
	cbz	x22, LBB0_14
; %bb.3:
	mov	w8, #200
	str	w8, [x19]
	b	LBB0_14
LBB0_4:
	bl	_strdup
	cbz	x0, LBB0_13
; %bb.5:
	mov	x21, x0
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_10
; %bb.6:
	mov	x22, x0
	strb	wzr, [x22], #1
	mov	w0, #0
	bl	_r_socket_new
	mov	x23, x0
Lloh0:
	adrp	x8, _R_SOCKET_PROTO_TCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_SOCKET_PROTO_TCP@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x21
	mov	x2, x22
	mov	w4, #0
	bl	_r_socket_connect
	cbz	x0, LBB0_11
; %bb.7:
	mov	x0, x23
	mov	x1, x20
	bl	_r_socket_slurp
	mov	x22, x0
	ldr	w8, [x20]
	cmp	w8, #0
	b.le	LBB0_15
; %bb.8:
	mov	w8, #200
	str	w8, [x19]
	b	LBB0_16
LBB0_9:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
	mov	x0, x21
	bl	_r_socket_free
	b	LBB0_13
LBB0_10:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintf
	b	LBB0_12
LBB0_11:
	mov	x0, x23
	bl	_r_socket_free
LBB0_12:
	mov	x0, x21
	bl	_free
LBB0_13:
	mov	x22, #0
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x0, x22
	bl	_R_FREE
LBB0_16:
	mov	x0, x23
	bl	_r_socket_free
	mov	x0, x21
	bl	_free
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot listen\n"

	.comm	_R_SOCKET_PROTO_TCP,4,2         ; @R_SOCKET_PROTO_TCP
l_.str.1:                               ; @.str.1
	.asciz	"Missing port.\n"

	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.no_dead_strip	_tcpme
.subsections_via_symbols
