	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %r15d
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_BUFFER_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	cmpl	$2, %r15d
	jg	LBB0_2
## %bb.1:
	movq	(%r12), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %ebx
	jmp	LBB0_26
LBB0_2:
	movq	8(%r12), %rdi
	movq	16(%r12), %rsi
	movq	_VC_CONTAINER_NET_OPEN_FLAG_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-68(%rbp), %rcx
	callq	_vc_container_net_open
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	_VC_CONTAINER_NET_CONTROL_SET_READ_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_YIELD_PERIOD_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_local_net_control
	movl	$1, %edi
	callq	_nb_set_nonblocking_input
	decq	-80(%rbp)                       ## 8-byte Folded Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	%r15b, %r15b
	jne	LBB0_25
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_nb_char_available
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_nb_get_char
	cmpb	$26, %al
	je	LBB0_25
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	-52(%rbp), %r13                 ## 4-byte Folded Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movb	%al, (%r15,%r13)
	incq	%r13
	cmpb	$10, %al
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$13, %al
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$10, %edi
	callq	_nb_put_char
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addl	$2, %eax
	movb	$10, (%r15,%r13)
	movl	%eax, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r13d, %rax
	cmpq	%rax, -80(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r13d, %r13d
	je	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%ebx, %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_vc_container_net_write
	testl	%eax, %eax
	je	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	addl	%eax, %ebx
	subl	%eax, %r13d
	jne	LBB0_12
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_vc_container_net_status
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movb	$1, %r15b
	jmp	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r15d, %r15d
	movl	%r13d, %eax
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_vc_container_net_read
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r14,%rbx), %edi
	callq	_nb_put_char
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_20
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_vc_container_net_status
	movq	_VC_CONTAINER_NET_ERROR_TIMED_OUT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_VC_CONTAINER_NET_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_21
## %bb.24:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_25:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_nb_set_nonblocking_input
	movq	%r12, %rdi
	callq	_vc_container_net_close
	jmp	LBB0_26
LBB0_3:
	movl	-68(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$2, %ebx
LBB0_26:
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BUFFER_LEN,4,2             ## @MAX_BUFFER_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage:\n%s <address> <port>\n"

	.comm	_VC_CONTAINER_NET_OPEN_FLAG_STREAM,4,2 ## @VC_CONTAINER_NET_OPEN_FLAG_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"vc_container_net_open failed: %d\n"

	.comm	_VC_CONTAINER_NET_CONTROL_SET_READ_TIMEOUT_MS,4,2 ## @VC_CONTAINER_NET_CONTROL_SET_READ_TIMEOUT_MS
	.comm	_YIELD_PERIOD_MS,4,2            ## @YIELD_PERIOD_MS
L_.str.2:                               ## @.str.2
	.asciz	"vc_container_net_write failed: %d\n"

	.comm	_VC_CONTAINER_NET_ERROR_TIMED_OUT,4,2 ## @VC_CONTAINER_NET_ERROR_TIMED_OUT
	.comm	_VC_CONTAINER_NET_SUCCESS,4,2   ## @VC_CONTAINER_NET_SUCCESS
L_.str.3:                               ## @.str.3
	.asciz	"vc_container_net_read failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_BUFFER_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_BUFFER_LEN@GOTPAGEOFF]
	ldr	w21, [x8]
	mov	x9, x21
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x21, #15
	and	x10, x10, #0x1fffffff0
	sub	x25, x9, x10
	mov	sp, x25
	ldr	w22, [x8]
	mov	x9, x22
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x28, x8, x9
	mov	sp, x28
	cmp	w0, #2
	b.gt	LBB0_2
; %bb.1:
	ldr	x8, [x1]
	str	x8, [sp, #-16]!
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	mov	w0, #1
	b	LBB0_26
LBB0_2:
	ldp	x0, x1, [x1, #8]
Lloh11:
	adrp	x8, _VC_CONTAINER_NET_OPEN_FLAG_STREAM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VC_CONTAINER_NET_OPEN_FLAG_STREAM@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	sub	x3, x29, #92
	bl	_vc_container_net_open
	cbz	x0, LBB0_23
; %bb.3:
	mov	x20, x0
Lloh14:
	adrp	x8, _VC_CONTAINER_NET_CONTROL_SET_READ_TIMEOUT_MS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VC_CONTAINER_NET_CONTROL_SET_READ_TIMEOUT_MS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _YIELD_PERIOD_MS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _YIELD_PERIOD_MS@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	bl	_local_net_control
	mov	w0, #1
	bl	_nb_set_nonblocking_input
	mov	w27, #0
	sub	x26, x21, #1
	sub	w21, w22, #1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_vc_container_net_status
                                        ; kill: def $w0 killed $w0 def $x0
Lloh20:
	adrp	x8, _VC_CONTAINER_NET_ERROR_TIMED_OUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VC_CONTAINER_NET_ERROR_TIMED_OUT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _VC_CONTAINER_NET_SUCCESS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _VC_CONTAINER_NET_SUCCESS@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_24
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w22, LBB0_25
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
	bl	_nb_char_available
	cbz	x0, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_nb_get_char
	cmp	w0, #26
	b.eq	LBB0_25
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	sxtw	x8, w27
	add	x23, x8, #1
	strb	w0, [x25, x8]
	cmp	w0, #10
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	and	w8, w0, #0xff
	cmp	w8, #13
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #10
	bl	_nb_put_char
	mov	w8, #10
	strb	w8, [x25, x23]
	add	w8, w27, #2
	mov	x23, x8
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x26, w23, sxtw
	b.ne	LBB0_22
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w23, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w22, #0
LBB0_14:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, x25, w22, sxtw
	mov	x0, x20
	mov	x2, x23
	bl	_vc_container_net_write
	cbz	w0, LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	add	w22, w0, w22
	subs	w23, w23, w0
	b.ne	LBB0_14
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w27, #0
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w22, #0
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x28
	mov	x2, x21
	bl	_vc_container_net_read
	cbz	x0, LBB0_4
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x0
	mov	x19, x28
LBB0_20:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x23, x23, #1
	ldrsb	w0, [x19], #1
	bl	_nb_put_char
	cbnz	x23, LBB0_20
	b	LBB0_5
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_vc_container_net_status
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	mov	w27, #0
	mov	w22, #1
	b	LBB0_18
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w22, #0
	mov	x27, x23
	b	LBB0_18
LBB0_23:
	ldur	w8, [x29, #-92]
	str	x8, [sp, #-16]!
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	mov	w0, #2
	b	LBB0_26
LBB0_24:
	str	x0, [sp, #-16]!
Lloh30:
	adrp	x0, l_.str.3@PAGE
Lloh31:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	add	sp, sp, #16
LBB0_25:
	mov	w0, #0
	bl	_nb_set_nonblocking_input
	mov	x0, x20
	bl	_vc_container_net_close
	mov	w0, #0
LBB0_26:
	mov	sp, x24
	ldur	x8, [x29, #-88]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BUFFER_LEN,4,2             ; @MAX_BUFFER_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage:\n%s <address> <port>\n"

	.comm	_VC_CONTAINER_NET_OPEN_FLAG_STREAM,4,2 ; @VC_CONTAINER_NET_OPEN_FLAG_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"vc_container_net_open failed: %d\n"

	.comm	_VC_CONTAINER_NET_CONTROL_SET_READ_TIMEOUT_MS,4,2 ; @VC_CONTAINER_NET_CONTROL_SET_READ_TIMEOUT_MS
	.comm	_YIELD_PERIOD_MS,4,2            ; @YIELD_PERIOD_MS
l_.str.2:                               ; @.str.2
	.asciz	"vc_container_net_write failed: %d\n"

	.comm	_VC_CONTAINER_NET_ERROR_TIMED_OUT,4,2 ; @VC_CONTAINER_NET_ERROR_TIMED_OUT
	.comm	_VC_CONTAINER_NET_SUCCESS,4,2   ; @VC_CONTAINER_NET_SUCCESS
l_.str.3:                               ; @.str.3
	.asciz	"vc_container_net_read failed: %d\n"

.subsections_via_symbols
