	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ExtractLine
_ExtractLine:                           ## @ExtractLine
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_currentFileLine@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%rdi, %r14
	movq	_lineParseOffset@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_token@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	movq	_lineBuffer@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	$0, (%rdi)
	movb	(%r14), %al
	testb	%al, %al
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	testb	%al, %al
	je	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$10, %al
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	1(%r14,%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_4
LBB0_6:
	movq	_MAX_LINE_LENGTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
## %bb.8:
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	(%r15), %rax
	movq	$0, (%rax,%rbx,8)
	xorl	%eax, %eax
	cmpb	$10, (%r14,%rbx)
	sete	%al
	addq	%r14, %rax
	addq	%rbx, %rax
	movq	%rax, %r14
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_CodeError
LBB0_9:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_currentFileLine,4,2            ## @currentFileLine
	.comm	_lineParseOffset,8,3            ## @lineParseOffset
	.comm	_token,8,3                      ## @token
	.comm	_lineBuffer,8,3                 ## @lineBuffer
	.comm	_MAX_LINE_LENGTH,4,2            ## @MAX_LINE_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAX_LINE_LENGTH"

	.no_dead_strip	_ExtractLine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ExtractLine
_ExtractLine:                           ; @ExtractLine
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _currentFileLine@GOTPAGE
Lloh1:
	ldr	x8, [x8, _currentFileLine@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh2:
	adrp	x8, _lineParseOffset@GOTPAGE
Lloh3:
	ldr	x8, [x8, _lineParseOffset@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
Lloh5:
	adrp	x8, _token@GOTPAGE
Lloh6:
	ldr	x8, [x8, _token@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	xzr, [x8]
Lloh8:
	adrp	x21, _lineBuffer@GOTPAGE
Lloh9:
	ldr	x21, [x21, _lineBuffer@GOTPAGEOFF]
	ldr	x0, [x21]
	str	xzr, [x0]
	ldrb	w8, [x19]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, #0
	cbz	w8, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #10
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x19, x20
	ldrb	w8, [x8, #1]
	add	x20, x20, #1
	cbnz	w8, LBB0_2
LBB0_4:
Lloh10:
	adrp	x8, _MAX_LINE_LENGTH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_LINE_LENGTH@GOTPAGEOFF]
Lloh12:
	ldrsw	x8, [x8]
	cmp	x20, x8
	b.ge	LBB0_7
; %bb.5:
	mov	x1, x19
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x21]
	str	xzr, [x8, x20, lsl #3]
	ldrb	w8, [x19, x20]
	cmp	w8, #10
	cinc	x8, x19, eq
	add	x19, x8, x20
	b	LBB0_8
LBB0_6:
	mov	x19, #0
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CodeError
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_currentFileLine,4,2            ; @currentFileLine
	.comm	_lineParseOffset,8,3            ; @lineParseOffset
	.comm	_token,8,3                      ; @token
	.comm	_lineBuffer,8,3                 ; @lineBuffer
	.comm	_MAX_LINE_LENGTH,4,2            ; @MAX_LINE_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAX_LINE_LENGTH"

	.no_dead_strip	_ExtractLine
.subsections_via_symbols
