	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function command_loop
_command_loop:                          ## @command_loop
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXCOMMAND@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leal	-1(%r14), %esi
	movq	_stdin@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_fgets
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	decl	%esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_fgets
	testl	%eax, %eax
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rbx, %rdi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	-1(%rbx,%r13), %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movb	$0, -1(%rbx,%r13)
	decq	%r13
	jne	LBB0_4
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$8, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.6(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_die
	jmp	LBB0_17
LBB0_8:
	movl	(%r14), %edi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_10
LBB0_14:
	movl	$10, %edi
	callq	_putchar
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_bidirectional_transfer_loop
	testq	%rax, %rax
	je	LBB0_11
## %bb.15:
	leaq	L_.str.5(%rip), %rdi
LBB0_10:
	xorl	%eax, %eax
	callq	_die
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXCOMMAND,4,2                 ## @MAXCOMMAND
	.comm	_stdin,4,2                      ## @stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Input error"

L_.str.1:                               ## @.str.1
	.asciz	"capabilities"

	.comm	_stdout,4,2                     ## @stdout
L_.str.3:                               ## @.str.3
	.asciz	"connect "

L_.str.5:                               ## @.str.5
	.asciz	"Copying data between file descriptors failed"

L_.str.6:                               ## @.str.6
	.asciz	"Bad command: %s"

L_str:                                  ## @str
	.asciz	"*connect\n"

	.no_dead_strip	_command_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function command_loop
_command_loop:                          ; @command_loop
	.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
	stp	w0, w1, [x29, #-96]             ; 8-byte Folded Spill
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	x27, _MAXCOMMAND@GOTPAGE
Lloh4:
	ldr	x27, [x27, _MAXCOMMAND@GOTPAGEOFF]
	ldr	w8, [x27]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x21, x9, x10
	mov	sp, x21
	sub	w1, w8, #1
Lloh7:
	adrp	x28, _stdin@GOTPAGE
Lloh8:
	ldr	x28, [x28, _stdin@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	x0, x21
	bl	_fgets
	cbz	w0, LBB0_11
; %bb.1:
	sub	x20, x21, #1
Lloh9:
	adrp	x22, l_.str.1@PAGE
Lloh10:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh11:
	adrp	x23, l_str@PAGE
Lloh12:
	add	x23, x23, l_str@PAGEOFF
Lloh13:
	adrp	x19, _stdout@GOTPAGE
Lloh14:
	ldr	x19, [x19, _stdout@GOTPAGEOFF]
Lloh15:
	adrp	x24, l_.str.3@PAGE
Lloh16:
	add	x24, x24, l_.str.3@PAGEOFF
Lloh17:
	adrp	x25, l_.str.6@PAGE
Lloh18:
	add	x25, x25, l_.str.6@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_puts
	ldr	w0, [x19]
	bl	_fflush
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
	sub	w1, w8, #1
	ldr	w2, [x28]
	mov	x0, x21
	bl	_fgets
	cbz	w0, LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x21
	bl	_strlen
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x20, x26]
	bl	_isspace
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	strb	wzr, [x20, x26]
	sub	x8, x26, #1
	mov	x26, x8
	cbnz	x8, LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_strcmp
	cbz	w0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x24
	mov	w2, #8
	bl	_strncmp
	cbz	w0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x21, [sp, #-16]!
	mov	x0, x25
	bl	_die
	add	sp, sp, #16
	b	LBB0_3
LBB0_11:
	ldr	w0, [x28]
	bl	_ferror
	cbz	x0, LBB0_16
; %bb.12:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_15
LBB0_13:
	mov	w0, #10
	bl	_putchar
	ldr	w0, [x19]
	bl	_fflush
	ldp	w0, w1, [x29, #-96]             ; 8-byte Folded Reload
	bl	_bidirectional_transfer_loop
	cbz	x0, LBB0_16
; %bb.14:
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_15:
	bl	_die
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	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_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXCOMMAND,4,2                 ; @MAXCOMMAND
	.comm	_stdin,4,2                      ; @stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Input error"

l_.str.1:                               ; @.str.1
	.asciz	"capabilities"

	.comm	_stdout,4,2                     ; @stdout
l_.str.3:                               ; @.str.3
	.asciz	"connect "

l_.str.5:                               ; @.str.5
	.asciz	"Copying data between file descriptors failed"

l_.str.6:                               ; @.str.6
	.asciz	"Bad command: %s"

l_str:                                  ; @str
	.asciz	"*connect\n"

	.no_dead_strip	_command_loop
.subsections_via_symbols
