	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parsefile
_parsefile:                             ## @parsefile
	.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, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_EX_NOINPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_err
LBB0_2:
	leaq	-1(%r15), %r13
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_27
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movl	$39, %esi
	callq	_strchr
	movq	%rax, %r12
	movq	%r15, %rdi
	movl	$34, %esi
	callq	_strchr
	movq	%rax, %r14
	movq	%r15, %rdi
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$35, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	testq	%r12, %r12
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpq	%r12, %rax
	ja	LBB0_8
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=2
	testq	%r14, %r14
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpq	%r14, %rax
	ja	LBB0_16
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=2
	cmpq	%r15, %rax
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpb	$92, -1(%rax)
	jne	LBB0_18
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=2
	incq	%rax
	movq	%rax, %rdi
	jmp	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	%r12, %rdi
	movl	$39, %esi
	jmp	LBB0_9
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	%r14, %rdi
	movl	$34, %esi
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_10
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, (%rax)
	jmp	LBB0_10
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rax
	movb	$0, (%r15)
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_strlen
	movslq	%eax, %rbx
	addq	%r13, %rbx
	cmpq	%r15, %rbx
	jb	LBB0_23
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%rbx), %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_23
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movb	$0, (%rbx)
	decq	%rbx
	cmpq	%r15, %rbx
	jae	LBB0_12
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	incl	%r14d
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	1(%rbx), %edi
	incq	%rbx
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$0, (%rbx)
	je	LBB0_3
## %bb.26:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_parse
	addl	%eax, -52(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_3
LBB0_27:
	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_29
## %bb.28:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_EX_NOINPUT,4,2                 ## @EX_NOINPUT
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.no_dead_strip	_parsefile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parsefile
_parsefile:                             ; @parsefile
	.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
	sub	sp, sp, #16
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _EX_NOINPUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EX_NOINPUT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_err
LBB0_2:
	mov	w22, #0
	mov	w23, #0
	sub	x26, x20, #1
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_fgets
	cbz	x0, LBB0_25
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	w1, #39
	bl	_strchr
	mov	x24, x0
	mov	x0, x20
	mov	w1, #34
	bl	_strchr
	mov	x25, x0
	mov	x0, x20
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w1, #35
	bl	_strchr
	cbz	x0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cbz	x24, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	x0, x24
	b.hi	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=2
	cbz	x25, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	x0, x25
	b.hi	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	x0, x20
	b.eq	LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=2
	ldurb	w8, [x0, #-1]
	cmp	w8, #92
	b.ne	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=2
	add	x0, x0, #1
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x24, #1
	mov	w1, #39
	bl	_strchr
	cbnz	x0, LBB0_15
	b	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x25, #1
	mov	w1, #34
	bl	_strchr
	cbz	x0, LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x0, #1
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	wzr, [x0]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	strb	wzr, [x20]
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_strlen
	add	x24, x26, w0, sxtw
	cmp	x24, x20
	b.lo	LBB0_21
LBB0_19:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x24]
	bl	_isspace
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	strb	wzr, [x24], #-1
	cmp	x24, x20
	b.hs	LBB0_19
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	mov	x24, x26
LBB0_22:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x24, #1]!
	bl	_isspace
	cbnz	x0, LBB0_22
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x24]
	cbz	w8, LBB0_3
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_parse
	add	w22, w22, w0
	b	LBB0_3
LBB0_25:
	mov	x0, x21
	bl	_fclose
	ldur	x8, [x29, #-72]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	mov	x0, x22
	sub	sp, x29, #64
	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:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_EX_NOINPUT,4,2                 ; @EX_NOINPUT
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.no_dead_strip	_parsefile
.subsections_via_symbols
