	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function buffer_line
_buffer_line:                           ## @buffer_line
	.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
	leaq	L_.str(%rip), %rbx
	cmpl	$0, (%rdi)
	je	LBB0_2
LBB0_22:
	movq	%rbx, %rax
	jmp	LBB0_23
LBB0_2:
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rcx
	movq	_last_open_file_info@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	cmpq	%rcx, %rax
	je	LBB0_9
LBB0_4:
	movq	_last_open_file@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_ftell
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r15), %rdi
	callq	_fclose
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_6:
	movq	%rcx, (%r14)
	movl	16(%rcx), %edi
	movq	_FOPEN_RT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, %r14
	callq	_fopen
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_21
## %bb.7:
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_fseek
LBB0_9:
	movq	_last_open_file@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_fgetc
	decl	%r12d
	movq	_EOF@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	$2, %ebx
	cmpl	$10, %eax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.10:
	cmpl	%ecx, %eax
	je	LBB0_16
## %bb.11:
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %ecx
	cmpl	%r12d, %ecx
	jae	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movb	%al, (%r13)
	incq	%r13
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r14), %rdi
	callq	_fgetc
	movl	(%r15), %ecx
	incl	%ebx
	cmpl	$10, %eax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	%ecx, %eax
	jne	LBB0_12
LBB0_16:
	cmpl	%ecx, %eax
	jne	LBB0_19
## %bb.17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	cmpl	%r12d, %ebx
	jae	LBB0_20
## %bb.18:
	movw	$11822, (%r13)                  ## imm = 0x2E2E
	movb	$46, 2(%r13)
	addq	$3, %r13
	jmp	LBB0_20
LBB0_19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_20:
	incl	4(%rax)
	movb	$0, (%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	$1, (%r14)
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_last_open_file_info,8,3        ## @last_open_file_info
	.comm	_last_open_file,8,3             ## @last_open_file
	.comm	_FOPEN_RT,4,2                   ## @FOPEN_RT
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_EOF,4,2                        ## @EOF
	.no_dead_strip	_buffer_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function buffer_line
_buffer_line:                           ; @buffer_line
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x19, l_.str@PAGE
Lloh1:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_17
LBB0_2:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh2:
	adrp	x23, _last_open_file_info@GOTPAGE
Lloh3:
	ldr	x23, [x23, _last_open_file_info@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, #0
	ccmp	x8, x0, #0, ne
Lloh4:
	adrp	x22, _last_open_file@GOTPAGE
Lloh5:
	ldr	x22, [x22, _last_open_file@GOTPAGEOFF]
	b.eq	LBB0_8
; %bb.3:
	ldr	x0, [x22]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_ftell
	ldr	x8, [x23]
	str	x0, [x8, #8]
	ldr	x0, [x22]
	bl	_fclose
LBB0_5:
	str	x20, [x23]
	ldr	w0, [x20, #16]
Lloh6:
	adrp	x8, _FOPEN_RT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FOPEN_RT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_fopen
	str	x0, [x22]
	cbz	x0, LBB0_18
; %bb.6:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_fseek
LBB0_8:
	ldr	x0, [x22]
	bl	_fgetc
	sub	w23, w21, #1
Lloh12:
	adrp	x25, _EOF@GOTPAGE
Lloh13:
	ldr	x25, [x25, _EOF@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, #10
	mov	w24, #2
	mov	x21, x19
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x22]
	bl	_fgetc
	ldr	w8, [x25]
	add	w24, w24, #1
	cmp	w0, #10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ccmp	w0, w8, #4, ne
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	sub	w8, w24, #2
	cmp	w8, w23
	b.hs	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	strb	w0, [x21], #1
	b	LBB0_9
LBB0_13:
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.14:
	mov	w8, #1
	str	w8, [x20]
	cmp	w24, w23
	b.hs	LBB0_16
; %bb.15:
	mov	w8, #11822
	strh	w8, [x21]
	mov	w8, #46
	strb	w8, [x21, #2]
	add	x21, x21, #3
LBB0_16:
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	strb	wzr, [x21]
LBB0_17:
	mov	x0, x19
	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_18:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_last_open_file_info,8,3        ; @last_open_file_info
	.comm	_last_open_file,8,3             ; @last_open_file
	.comm	_FOPEN_RT,4,2                   ; @FOPEN_RT
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_EOF,4,2                        ; @EOF
	.no_dead_strip	_buffer_line
.subsections_via_symbols
