	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AT91F_ReadLine                 ## -- Begin function AT91F_ReadLine
	.p2align	4, 0x90
_AT91F_ReadLine:                        ## @AT91F_ReadLine
	.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	%rsi, %r15
	movq	%rdi, %rbx
	callq	_strlen
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_printf
LBB0_2:
	movq	_AT91C_CB_SIZE@GOTPCREL(%rip), %r13
	leaq	LJTI0_0(%rip), %r12
	xorl	%eax, %eax
	movq	%r15, %rcx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%eax, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_getc
	movsbl	%al, %ebx
	leal	-3(%rbx), %eax
	cmpl	$10, %eax
	ja	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movslq	(%r12,%rax,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$127, %ebx
	je	LBB0_6
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r13), %eax
	addl	$-2, %eax
	cmpl	%eax, %r14d
	jl	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$7, %edi
	callq	_putc
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	decq	%r15
	movq	_erase_seq@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_printf
	decl	%r14d
	movl	%r14d, %eax
	jmp	LBB0_3
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_putc
	movb	%bl, (%r15)
	incq	%r15
	incl	%r14d
	movl	%r14d, %eax
	jmp	LBB0_3
LBB0_13:
	movb	$0, (%r15)
	leaq	L_.str(%rip), %rdi
	callq	_puts
	subl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	jmp	LBB0_14
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	$0, (%rax)
	movl	$-1, %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_erase_seq,8,3                  ## @erase_seq
	.comm	_AT91C_CB_SIZE,4,2              ## @AT91C_CB_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AT91F_ReadLine                 ; -- Begin function AT91F_ReadLine
	.p2align	2
_AT91F_ReadLine:                        ; @AT91F_ReadLine
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	bl	_strlen
	cbz	x20, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_printf
LBB0_2:
	mov	w8, #0
Lloh0:
	adrp	x22, _erase_seq@GOTPAGE
Lloh1:
	ldr	x22, [x22, _erase_seq@GOTPAGEOFF]
Lloh2:
	adrp	x23, _AT91C_CB_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AT91C_CB_SIZE@GOTPAGEOFF]
	mov	x21, x19
Lloh4:
	adrp	x24, lJTI0_0@PAGE
Lloh5:
	add	x24, x24, lJTI0_0@PAGEOFF
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x25, x8
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_getc
	mov	x20, x0
	sub	w8, w0, #3
	cmp	w8, #10
	b.hi	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	adr	x9, LBB0_7
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=2
	cmp	w20, #127
	b.eq	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x23]
	sub	w8, w8, #2
	cmp	w25, w8
	b.lt	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	w0, #7
	bl	_putc
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
	cbz	w25, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	x21, x21, #1
	ldr	x0, [x22]
	bl	_printf
	mov	w8, #-1
	add	w8, w25, w8
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_putc
	strb	w20, [x21], #1
	mov	w8, #1
	add	w8, w25, w8
	b	LBB0_3
LBB0_12:
	strb	wzr, [x21]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_puts
	sub	w0, w21, w19
	b	LBB0_14
LBB0_13:
	strb	wzr, [x19]
	mov	w0, #-1
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_erase_seq,8,3                  ; @erase_seq
	.comm	_AT91C_CB_SIZE,4,2              ; @AT91C_CB_SIZE
.subsections_via_symbols
