	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_multiline
_read_multiline:                        ## @read_multiline
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	%rsi, %rax
	movq	%rdi, %rbx
	subq	$1, %rax
	movb	$0, (%rdi,%rax)
	jae	LBB0_2
LBB0_1:
	xorl	%eax, %eax
	cmpq	%r12, %rbx
	setne	%al
	jmp	LBB0_24
LBB0_2:
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%r12, %rdi
	callq	_fgets
	xorl	%r14d, %r14d
	movq	%r12, %rbx
	testq	%rax, %rax
	je	LBB0_20
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rbx, %rdi
	callq	_strlen
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incl	(%rcx)
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=2
	incl	%r14d
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=2
	incq	%rcx
	cmpq	%rcx, %rax
	je	LBB0_12
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx,%rcx), %edx
	cmpb	$40, %dl
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpb	$41, %dl
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpb	$59, %dl
	jne	LBB0_6
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	testl	%r14d, %r14d
	je	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	decl	%r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	je	LBB0_27
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, -1(%rax,%rbx)
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	je	LBB0_27
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	$59, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	$59, %esi
	callq	_strchr
	movq	$0, (%rax)
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	subq	%rax, %r13
	cmpq	$2, %r13
	jbe	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movw	$32, (%rbx,%rax)
	addq	%rax, %rbx
	incq	%rbx
	decq	%r13
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	jne	LBB0_3
LBB0_20:
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.21:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_23
LBB0_22:
	leaq	L_.str(%rip), %rdi
LBB0_23:
	callq	_log_err
	movl	$-1, %eax
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movl	$1, %eax
	jmp	LBB0_24
LBB0_25:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mismatch: too many ')'"

L_.str.1:                               ## @.str.1
	.asciz	"line too long"

L_.str.2:                               ## @.str.2
	.asciz	"mismatch: too many '('"

	.no_dead_strip	_read_multiline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_multiline
_read_multiline:                        ; @read_multiline
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	add	x8, x1, x0
	sturb	wzr, [x8, #-1]
	mov	x23, x0
	cbz	x1, LBB0_25
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x0, x19
	bl	_fgets
	mov	w24, #0
	cbz	x0, LBB0_24
; %bb.2:
	mov	w25, #32
	mov	x23, x19
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x23
	bl	_strlen
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	cbz	x0, LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x23
	mov	x9, x0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w24, w24, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x8, x8, #1
	subs	x9, x9, #1
	b.eq	LBB0_12
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w10, [x8]
	cmp	w10, #40
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w10, #41
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w10, #59
	b.ne	LBB0_6
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	cbz	w24, LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	sub	w24, w24, #1
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w24, LBB0_27
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x0, x23
	sturb	wzr, [x8, #-1]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w24, LBB0_27
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	w1, #59
	bl	_strchr
	cbz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	w1, #59
	bl	_strchr
	str	xzr, [x0]
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_strlen
	sub	x8, x22, x0
	cmp	x8, #2
	b.ls	LBB0_28
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, x0
	strh	w25, [x23], #1
	sub	x22, x8, #1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_fgets
	cbnz	x0, LBB0_3
; %bb.20:
	cbz	w24, LBB0_25
LBB0_21:
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_23
LBB0_22:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_23:
	bl	_log_err
	mov	w0, #-1
	b	LBB0_26
LBB0_24:
	mov	x23, x19
	cbnz	w24, LBB0_21
LBB0_25:
	cmp	x23, x19
	cset	w0, ne
LBB0_26:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_27:
	mov	w0, #1
	b	LBB0_26
LBB0_28:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_23
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mismatch: too many ')'"

l_.str.1:                               ; @.str.1
	.asciz	"line too long"

l_.str.2:                               ; @.str.2
	.asciz	"mismatch: too many '('"

	.no_dead_strip	_read_multiline
.subsections_via_symbols
