	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_line
_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movb	$0, (%rsi)
	callq	_fgetc
	movq	_EOF@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	je	LBB0_12
## %bb.1:
	movl	%eax, %ebx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	decq	%r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %r14
	jb	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$10, %ebx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$13, %ebx
	je	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %r13
	movq	%r15, %r12
	leaq	1(%r14), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movb	%bl, (%rax,%r14)
	movb	$0, 1(%rax,%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_fgetc
	movl	%eax, %ebx
	movq	%r15, %r14
	movq	%r12, %r15
	movq	%r13, %r12
	cmpl	(%r15), %eax
	jne	LBB0_2
LBB0_12:
	movl	$-1, %eax
	jmp	LBB0_13
LBB0_6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_fgetc
	cmpl	$10, %eax
	je	LBB0_10
## %bb.7:
	cmpl	(%r15), %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_ungetc
	cmpl	(%r15), %eax
	jne	LBB0_10
## %bb.9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_fatal
LBB0_10:
	movl	%r14d, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"input line too long."

L_.str.1:                               ## @.str.1
	.asciz	"unget: %s"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_get_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_line
_get_line:                              ; @get_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	strb	wzr, [x1]
	bl	_fgetc
Lloh0:
	adrp	x24, _EOF@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EOF@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.1:
	mov	x22, x0
	mov	x19, #0
	sub	x25, x23, #1
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x19, x25
	b.lo	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_fatal
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, #10
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, #13
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x19, #1
	add	x8, x21, x19
	strb	w22, [x8]
	strb	wzr, [x8, #1]
	mov	x0, x20
	bl	_fgetc
	mov	x22, x0
	ldr	w8, [x24]
	mov	x19, x26
	cmp	w0, w8
	b.ne	LBB0_2
LBB0_7:
	mov	w19, #-1
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	mov	x0, x20
	bl	_fgetc
	cmp	w0, #10
	b.eq	LBB0_8
; %bb.10:
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.11:
	mov	x1, x20
	bl	_ungetc
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.12:
Lloh4:
	adrp	x8, _errno@GOTPAGE
Lloh5:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"input line too long."

l_.str.1:                               ; @.str.1
	.asciz	"unget: %s"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_get_line
.subsections_via_symbols
