	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_line
_check_line:                            ## @check_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	$1016, %rsp                     ## imm = 0x3F8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_getc
	movb	(%rbx), %cl
	testb	%cl, %cl
	je	LBB0_5
## %bb.1:
	incq	%rbx
	leaq	L_.str.2(%rip), %r12
	leaq	-1056(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_getc
	movzbl	(%rbx), %ecx
	incq	%rbx
	testb	%cl, %cl
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%cl, %ecx
	cmpl	%ecx, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	movq	%r12, %rdx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_snprintf
	movl	%r14d, %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_fatal_error
	jmp	LBB0_4
LBB0_5:
	cmpl	$10, %eax
	je	LBB0_7
## %bb.6:
	movsbl	%al, %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-1056(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	xorl	%eax, %eax
	callq	_snprintf
	movl	%r14d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_fatal_error
LBB0_7:
	movq	%r15, %rdi
	callq	_getc
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
## %bb.8:
	movsbl	%al, %ecx
	leaq	L_.str.1(%rip), %rdx
	leaq	-1056(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	xorl	%eax, %eax
	callq	_snprintf
	movl	%r14d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_fatal_error
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$1016, %rsp                     ## imm = 0x3F8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"got '%c' when expecting newline"

	.comm	_EOF,4,2                        ## @EOF
L_.str.1:                               ## @.str.1
	.asciz	"got '%c' when expecting EOF"

L_.str.2:                               ## @.str.2
	.asciz	"expected '%c', got '%c'"

	.no_dead_strip	_check_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_line
_check_line:                            ; @check_line
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1024
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	x0, x1
	bl	_getc
                                        ; kill: def $w0 killed $w0 def $x0
	ldrb	w8, [x21]
	cbz	w8, LBB0_5
; %bb.1:
	add	x22, x21, #1
Lloh3:
	adrp	x21, l_.str.2@PAGE
Lloh4:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_getc
                                        ; kill: def $w0 killed $w0 def $x0
	ldrb	w8, [x22], #1
	cbz	w8, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w0, w8, sxtb
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x0, [sp]
	sxtb	w3, w8
	add	x0, sp, #16
	mov	w1, #1000
	mov	x2, x21
	bl	_snprintf
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #0
	bl	_fatal_error
	b	LBB0_2
LBB0_5:
	cmp	w0, #10
	b.eq	LBB0_7
; %bb.6:
	sxtb	w3, w0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #16
	mov	w1, #1000
	bl	_snprintf
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #0
	bl	_fatal_error
LBB0_7:
	mov	x0, x20
	bl	_getc
Lloh7:
	adrp	x8, _EOF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.8:
	sxtb	w3, w0
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #16
	mov	w1, #1000
	bl	_snprintf
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #0
	bl	_fatal_error
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	add	sp, sp, #1024
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"got '%c' when expecting newline"

	.comm	_EOF,4,2                        ; @EOF
l_.str.1:                               ; @.str.1
	.asciz	"got '%c' when expecting EOF"

l_.str.2:                               ; @.str.2
	.asciz	"expected '%c', got '%c'"

	.no_dead_strip	_check_line
.subsections_via_symbols
