	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_line                       ## -- Begin function get_line
	.p2align	4, 0x90
_get_line:                              ## @get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rsi), %rcx
	movq	_MAX_LINE@GOTPCREL(%rip), %r8
	movl	$-1, %eax
	cmpq	(%r8), %rcx
	ja	LBB0_13
## %bb.1:
	xorl	%r9d, %r9d
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	xorl	%ecx, %ecx
	movq	_linebuf@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rcx), %edx
	movq	(%r10), %rbx
	movb	%dl, (%rbx,%rcx)
	movzbl	(%rdi,%rcx), %edx
	testb	%dl, %dl
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$10, %dl
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rcx
	movq	(%rsi), %rdx
	cmpq	%rdx, %rcx
	jb	LBB0_4
## %bb.8:
	cmpq	%rdx, %rcx
	je	LBB0_9
	jmp	LBB0_10
LBB0_2:
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_6:
	movq	(%rsi), %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_10
LBB0_9:
	movq	_linebuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	$0, (%rax)
	movq	_linelen@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	cmpq	(%r8), %rdx
	adcl	$-1, %r9d
	movl	%r9d, %eax
	jmp	LBB0_13
LBB0_10:
	leaq	1(%rcx), %rax
	movq	_linelen@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	(%r10), %rax
	movb	$0, 1(%rax,%rcx)
	movq	(%rsi), %rdx
	subq	(%rbx), %rdx
	movq	%rdx, (%rsi)
	je	LBB0_12
## %bb.11:
	movq	(%rbx), %rsi
	addq	%rdi, %rsi
	callq	_memmove
LBB0_12:
	movl	(%rbx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_LINE,8,3                   ## @MAX_LINE
	.comm	_linebuf,8,3                    ## @linebuf
	.comm	_linelen,8,3                    ## @linelen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_line                       ; -- Begin function get_line
	.p2align	2
_get_line:                              ; @get_line
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x10, [x1]
Lloh0:
	adrp	x8, _MAX_LINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_LINE@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x10, x9
	b.ls	LBB0_2
LBB0_1:
	mov	w0, #-1
	b	LBB0_14
LBB0_2:
Lloh2:
	adrp	x9, _linebuf@GOTPAGE
Lloh3:
	ldr	x9, [x9, _linebuf@GOTPAGEOFF]
	cbz	x10, LBB0_8
; %bb.3:
	mov	x10, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x0, x10]
	ldr	x12, [x9]
	strb	w11, [x12, x10]
	ldrb	w11, [x0, x10]
	cbz	w11, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w11, #10
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #1
	ldr	x11, [x1]
	cmp	x10, x11
	b.lo	LBB0_4
; %bb.7:
	cmp	x10, x11
	b.eq	LBB0_10
	b	LBB0_11
LBB0_8:
	mov	x11, #0
	b	LBB0_10
LBB0_9:
	ldr	x11, [x1]
	cmp	x10, x11
	b.ne	LBB0_11
LBB0_10:
	ldr	x9, [x9]
	strb	wzr, [x9]
Lloh4:
	adrp	x9, _linelen@GOTPAGE
Lloh5:
	ldr	x9, [x9, _linelen@GOTPAGEOFF]
Lloh6:
	str	xzr, [x9]
	ldr	x8, [x8]
	cmp	x11, x8
	csetm	w0, hs
	b	LBB0_14
LBB0_11:
	add	x8, x10, #1
Lloh7:
	adrp	x19, _linelen@GOTPAGE
Lloh8:
	ldr	x19, [x19, _linelen@GOTPAGEOFF]
	str	x8, [x19]
	ldr	x9, [x9]
	strb	wzr, [x9, x8]
	ldr	x8, [x19]
	ldr	x9, [x1]
	subs	x2, x9, x8
	str	x2, [x1]
	b.eq	LBB0_13
; %bb.12:
	ldr	x8, [x19]
	add	x1, x0, x8
	bl	_memmove
LBB0_13:
	ldr	w0, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_LINE,8,3                   ; @MAX_LINE
	.comm	_linebuf,8,3                    ; @linebuf
	.comm	_linelen,8,3                    ; @linelen
.subsections_via_symbols
