	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r13
	cmpb	$10, -1(%rbx,%rax)
	jne	LBB0_8
## %bb.5:
	decq	%r13
	movb	$0, (%rbx,%r13)
	jmp	LBB0_6
LBB0_1:
	movq	%r15, %rdi
	callq	_feof
	xorl	%r13d, %r13d
	testq	%rax, %rax
	sete	%r13b
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%rcx, (%r14)
LBB0_3:
	orl	$-2, %r13d
	movq	%r15, %rdi
	callq	_clearerr
	jmp	LBB0_15
LBB0_8:
	decq	%r12
	cmpq	%r12, %r13
	jne	LBB0_6
## %bb.9:
	movq	_EOF@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_getchar
	cmpl	$10, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	(%rbx), %eax
	jne	LBB0_10
LBB0_12:
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r14)
LBB0_14:
	movq	%r15, %rdi
	callq	_clearerr
	movl	$-3, %r13d
	jmp	LBB0_15
LBB0_6:
	testq	%r14, %r14
	je	LBB0_15
## %bb.7:
	movq	$0, (%r14)
LBB0_15:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nEOF received"

L_.str.1:                               ## @.str.1
	.asciz	"Error encountered"

	.comm	_EOF,4,2                        ## @EOF
L_.str.2:                               ## @.str.2
	.asciz	"Input line is too long"

.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x2
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x22
	bl	_strlen
	sub	x8, x0, #1
	ldrb	w9, [x22, x8]
	cmp	w9, #10
	b.ne	LBB0_6
; %bb.2:
	strb	wzr, [x22, x8]
	mov	x21, x8
	b	LBB0_13
LBB0_3:
	mov	x0, x20
	bl	_feof
	cmp	x0, #0
	mov	w8, #-2
	cinc	w21, w8, eq
	cbz	x19, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x8, x9, x8, eq
	str	x8, [x19]
LBB0_5:
	mov	x0, x20
	bl	_clearerr
	b	LBB0_15
LBB0_6:
	mov	x21, x0
	sub	x8, x23, #1
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.7:
Lloh4:
	adrp	x21, _EOF@GOTPAGE
Lloh5:
	ldr	x21, [x21, _EOF@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	bl	_getchar
	cmp	w0, #10
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_8
LBB0_10:
	cbz	x19, LBB0_12
; %bb.11:
Lloh6:
	adrp	x8, l_.str.2@PAGE
Lloh7:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x19]
LBB0_12:
	mov	x0, x20
	bl	_clearerr
	mov	w21, #-3
	b	LBB0_15
LBB0_13:
	cbz	x19, LBB0_15
; %bb.14:
	str	xzr, [x19]
LBB0_15:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nEOF received"

l_.str.1:                               ; @.str.1
	.asciz	"Error encountered"

	.comm	_EOF,4,2                        ; @EOF
l_.str.2:                               ; @.str.2
	.asciz	"Input line is too long"

.subsections_via_symbols
