	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_or_regenerate_marks
_check_or_regenerate_marks:             ## @check_or_regenerate_marks
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	%eax, -32(%rbp)
	testl	%edi, %edi
	jle	LBB0_9
## %bb.1:
	movl	%edi, %r14d
	movq	_notes_ref@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_init_notes
	movq	_marksfilename@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movl	%r14d, %edx
	callq	_strbuf_addf
	leaq	-32(%rbp), %r14
	movq	_EOF@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strbuf_getline_lf
	cmpq	(%r15), %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-32(%rbp), %edi
	movl	-40(%rbp), %esi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rbx, %rdi
	callq	_fclose
	jmp	LBB0_8
LBB0_2:
	xorl	%eax, %eax
	callq	_regenerate_marks
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_xfopen
	movq	%rax, %rdi
	callq	_fclose
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_fclose
	xorl	%eax, %eax
	callq	_regenerate_marks
LBB0_8:
	xorl	%edi, %edi
	callq	_free_notes
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_notes_ref,4,2                  ## @notes_ref
	.comm	_marksfilename,4,2              ## @marksfilename
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	":%d "

	.comm	_EOF,8,3                        ## @EOF
	.no_dead_strip	_check_or_regenerate_marks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_or_regenerate_marks
_check_or_regenerate_marks:             ; @check_or_regenerate_marks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	w8, [sp]
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _notes_ref@GOTPAGE
Lloh4:
	ldr	x8, [x8, _notes_ref@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, #0
	mov	x2, #0
	mov	w3, #0
	bl	_init_notes
Lloh6:
	adrp	x21, _marksfilename@GOTPAGE
Lloh7:
	ldr	x21, [x21, _marksfilename@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	x2, x20
	bl	_strbuf_addf
Lloh12:
	adrp	x20, _EOF@GOTPAGE
Lloh13:
	ldr	x20, [x20, _EOF@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	mov	x1, x19
	bl	_strbuf_getline_lf
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp]
	ldr	w1, [sp, #8]
	bl	_starts_with
	cbz	x0, LBB0_3
; %bb.5:
	mov	x0, x19
	bl	_fclose
	b	LBB0_8
LBB0_6:
	bl	_regenerate_marks
	ldr	w0, [x21]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_xfopen
	bl	_fclose
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_fclose
	bl	_regenerate_marks
LBB0_8:
	mov	x0, #0
	bl	_free_notes
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, sp
	bl	_strbuf_release
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_notes_ref,4,2                  ; @notes_ref
	.comm	_marksfilename,4,2              ; @marksfilename
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	":%d "

	.comm	_EOF,8,3                        ; @EOF
	.no_dead_strip	_check_or_regenerate_marks
.subsections_via_symbols
