	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_file                        ## -- Begin function do_file
	.p2align	4, 0x90
_do_file:                               ## @do_file
	.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	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_STR_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fatal
LBB0_2:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
                                        ##       Child Loop BB0_17 Depth 3
                                        ##       Child Loop BB0_28 Depth 3
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	incl	%r15d
	movzbl	(%rbx), %r14d
	cmpb	$35, %r14b
	jne	LBB0_9
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_33
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movb	$0, (%rax)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %r12
	movabsq	$4294967809, %rbx               ## imm = 0x100000201
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=2
	incq	%r12
	movq	%r12, %r13
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=2
	movb	(%r13), %r14b
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_17 Depth 3
                                        ##       Child Loop BB0_28 Depth 3
	cmpb	$39, %r14b
	ja	LBB0_27
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movzbl	%r14b, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	movb	1(%r12), %al
	incq	%r12
	cmpb	%r14b, %al
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r12, %rdi
	jmp	LBB0_24
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r12, %r13
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=3
	movq	%rcx, %r13
	movzbl	(%rcx), %eax
	cmpb	%r14b, %al
	je	LBB0_23
LBB0_17:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testb	%al, %al
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=3
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_fatal
	movzbl	(%r13), %eax
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=3
	leaq	1(%r13), %rcx
	cmpb	$92, %al
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=3
	cmpb	$0, 1(%r13)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=3
	addq	$2, %r13
	movq	%r13, %rcx
	jmp	LBB0_22
LBB0_27:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r12, %r13
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=3
	movzbl	1(%r13), %r14d
	incq	%r13
LBB0_28:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpb	$32, %r14b
	ja	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=3
	movzbl	%r14b, %eax
	btq	%rax, %rbx
	jae	LBB0_30
LBB0_23:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r12, %rdi
	movq	%r13, %r12
	testb	%r14b, %r14b
	je	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_12 Depth=2
	movb	$0, (%r12)
	incq	%r12
	movq	%r12, %r13
LBB0_25:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_12 Depth=2
	callq	_chat_send
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_12 Depth=2
	callq	_chat_expect
LBB0_32:                                ##   in Loop: Header=BB0_12 Depth=2
	xorl	%eax, %eax
	testl	%ebx, %ebx
	sete	%al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %r12
	movabsq	$4294967809, %rbx               ## imm = 0x100000201
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_STR_LEN@GOTPCREL(%rip), %r12
	jmp	LBB0_4
LBB0_33:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_fclose
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.34:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_10
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_10
	.long	L0_0_set_27
	.long	L0_0_set_14
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_STR_LEN,4,2                    ## @STR_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"%s -- open failed: %m"

L_.str.2:                               ## @.str.2
	.asciz	"unterminated quote (line %d)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_file                        ; -- Begin function do_file
	.p2align	2
_do_file:                               ; @do_file
	.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	x21, x0
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	x19, _STR_LEN@GOTPAGE
Lloh4:
	ldr	x19, [x19, _STR_LEN@GOTPAGEOFF]
	ldr	w8, [x19]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x27, x9, x8
	mov	sp, x27
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
	str	x21, [sp, #-16]!
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_fatal
	add	sp, sp, #16
LBB0_2:
	mov	w24, #0
	mov	w23, #0
	mov	w25, #1
	mov	x26, #513
	movk	x26, #1, lsl #32
Lloh11:
	adrp	x28, lJTI0_0@PAGE
Lloh12:
	add	x28, x28, lJTI0_0@PAGEOFF
Lloh13:
	adrp	x21, l_.str.2@PAGE
Lloh14:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	ldrb	w22, [x27]
	cmp	w22, #35
	b.ne	LBB0_7
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_16 Depth 3
                                        ;       Child Loop BB0_23 Depth 3
	ldr	w1, [x19]
	mov	x0, x27
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_32
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [x0]
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	stur	x20, [x29, #-96]                ; 8-byte Folded Spill
	mov	x20, x27
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x19, x20, #1
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldrb	w22, [x19]
	mov	x20, x19
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_16 Depth 3
                                        ;       Child Loop BB0_23 Depth 3
	cmp	w22, #39
	b.hi	LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	w8, w22
	adr	x9, LBB0_8
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=2
	ldrb	w8, [x20, #1]!
	cmp	w8, w22
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x20
	b	LBB0_26
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	x25, x27
	mov	x27, x28
	mov	x28, x20
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=3
	ldrb	w8, [x19]
	mov	x28, x19
	cmp	w8, w22
	b.eq	LBB0_20
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cbnz	w8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=3
	str	x23, [sp, #-16]!
	mov	w0, #1
	mov	x1, x21
	bl	_fatal
	add	sp, sp, #16
	ldrb	w8, [x28]
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=3
	add	x19, x28, #1
	cmp	w8, #92
	b.ne	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=3
	ldrb	w8, [x28, #1]
	add	x9, x28, #2
	cmp	w8, #0
	csel	x19, x19, x9, eq
	b	LBB0_15
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	x28, x27
	mov	x27, x25
	mov	w25, #1
	b	LBB0_25
LBB0_21:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	x19, x20
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=3
	ldrb	w22, [x19, #1]!
LBB0_23:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	w22, #32
	b.hi	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=3
	mov	w8, w22
	lsl	x8, x25, x8
	tst	x8, x26
	b.eq	LBB0_22
LBB0_25:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x20
	mov	x20, x19
	cbz	w22, LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_10 Depth=2
	strb	wzr, [x20], #1
	mov	x19, x20
LBB0_27:                                ;   in Loop: Header=BB0_10 Depth=2
	cbz	w24, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_10 Depth=2
	bl	_chat_send
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_10 Depth=2
	bl	_chat_expect
LBB0_30:                                ;   in Loop: Header=BB0_10 Depth=2
	cmp	w24, #0
	cset	w24, eq
	b	LBB0_9
LBB0_31:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x19, _STR_LEN@GOTPAGE
Lloh16:
	ldr	x19, [x19, _STR_LEN@GOTPAGEOFF]
	ldur	x20, [x29, #-96]                ; 8-byte Folded Reload
	b	LBB0_4
LBB0_32:
	mov	x0, x20
	bl	_fclose
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.33:
	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_34:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_31-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
                                        ; -- End function
	.comm	_STR_LEN,4,2                    ; @STR_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"%s -- open failed: %m"

l_.str.2:                               ; @.str.2
	.asciz	"unterminated quote (line %d)"

.subsections_via_symbols
