	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_readline                       ## -- Begin function readline
	.p2align	4, 0x90
_readline:                              ## @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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_stdout@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_fflush
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_read
	testq	%rax, %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_17
## %bb.1:
	decl	%r15d
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_ch_kill@GOTPCREL(%rip), %r15
	movq	_ch_erase@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	testb	%r14b, %r14b
	jle	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdi
	callq	_fputs
	decq	%rbx
	decb	%r14b
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %edi
	callq	_fflush
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_read
	testq	%rax, %rax
	jle	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$10, %al
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$13, %al
	je	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	(%r15), %al
	je	LBB0_23
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	(%r12), %al
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %ecx
	movq	%r15, %r12
	movq	%r13, %r15
	movsbl	%cl, %ecx
	cmpl	%ecx, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movsbl	%al, %r13d
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %edi
	callq	_isprint
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %edi
	callq	_putchar
	incq	%rbx
	incb	%r14b
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movzbl	%cl, %ecx
	movzbl	%r14b, %eax
	cmpb	%cl, %al
	cmovgl	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$7, %edi
	callq	_putchar
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %r13
	movq	%r12, %r15
	movq	_ch_erase@GOTPCREL(%rip), %r12
	jmp	LBB0_4
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$7, %edi
	callq	_putchar
	jmp	LBB0_4
LBB0_17:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_18:
	movb	$0, (%rbx)
	movq	_overstrike@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movzbl	%r14b, %ebx
	movzbl	-44(%rbp), %eax                 ## 1-byte Folded Reload
	cmovel	%ebx, %eax
	movq	_msglen@GOTPCREL(%rip), %rcx
	addb	%al, (%rcx)
	movl	$13, %edi
	callq	_putchar
	testb	%bl, %bl
	je	LBB0_26
## %bb.19:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.20:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atoi                           ## TAILCALL
LBB0_22:
	movsbl	%r14b, %eax
	jmp	LBB0_27
LBB0_23:
	movq	_overstrike@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_25
## %bb.24:
	movq	_msglen@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addb	%cl, (%rax)
LBB0_25:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movb	$0, (%rax)
	movl	$13, %edi
	callq	_putchar
LBB0_26:
	movl	$-1, %eax
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.comm	_ch_kill,1,0                    ## @ch_kill
	.comm	_overstrike,8,3                 ## @overstrike
	.comm	_msglen,1,0                     ## @msglen
	.comm	_ch_erase,1,0                   ## @ch_erase
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\b \b"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_readline                       ; -- Begin function readline
	.p2align	2
_readline:                              ; @readline
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _stdout@GOTPAGE
Lloh1:
	ldr	x26, [x26, _stdout@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_fflush
	mov	w0, #0
	mov	x1, x19
	mov	w2, #1
	bl	_read
	cmp	x0, #1
	b.lt	LBB0_14
; %bb.1:
	mov	w25, #0
	mov	w24, #0
Lloh2:
	adrp	x27, _ch_kill@GOTPAGE
Lloh3:
	ldr	x27, [x27, _ch_kill@GOTPAGEOFF]
	sub	w28, w21, #1
Lloh4:
	adrp	x22, _ch_erase@GOTPAGE
Lloh5:
	ldr	x22, [x22, _ch_erase@GOTPAGEOFF]
	mov	x21, x19
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #7
	bl	_putchar
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	bl	_fflush
	mov	w0, #0
	mov	x1, x21
	mov	w2, #1
	bl	_read
	cmp	x0, #0
	b.le	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	cmp	w8, #10
	ccmp	w8, #13, #4, ne
	b.eq	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w9, [x27]
	cmp	w8, w9
	b.eq	LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtb	w8, w24
	cmp	w8, #0
	b.le	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fputs
	sub	x21, x21, #1
	sub	w24, w24, #1
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, w24, sxtb
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	sxtb	w23, w8
	cbz	w20, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_isdigit
	cbz	w0, LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_isprint
	cbz	w0, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_putchar
	add	x21, x21, #1
	add	w24, w24, #1
	sxtb	w8, w24
	sxtb	w9, w25
	cmp	w8, w9
	csel	w25, w8, w9, gt
	b	LBB0_3
LBB0_14:
	mov	w24, #0
	mov	w25, #0
	mov	x21, x19
LBB0_15:
	strb	wzr, [x21]
Lloh8:
	adrp	x8, _overstrike@GOTPAGE
Lloh9:
	ldr	x8, [x8, _overstrike@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	w8, w24, w25, eq
	and	w21, w24, #0xff
Lloh11:
	adrp	x9, _msglen@GOTPAGE
Lloh12:
	ldr	x9, [x9, _msglen@GOTPAGEOFF]
	ldrb	w10, [x9]
	add	w8, w8, w10
	strb	w8, [x9]
	mov	w0, #13
	bl	_putchar
	cbz	w21, LBB0_22
; %bb.16:
	cbz	w20, LBB0_18
; %bb.17:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_atoi
LBB0_18:
	sxtb	w0, w24
	b	LBB0_23
LBB0_19:
Lloh13:
	adrp	x8, _overstrike@GOTPAGE
Lloh14:
	ldr	x8, [x8, _overstrike@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_21
; %bb.20:
Lloh16:
	adrp	x8, _msglen@GOTPAGE
Lloh17:
	ldr	x8, [x8, _msglen@GOTPAGEOFF]
	ldrb	w9, [x8]
	add	w9, w9, w25
	strb	w9, [x8]
LBB0_21:
	strb	wzr, [x19]
	mov	w0, #13
	bl	_putchar
LBB0_22:
	mov	w0, #-1
LBB0_23:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.comm	_ch_kill,1,0                    ; @ch_kill
	.comm	_overstrike,8,3                 ; @overstrike
	.comm	_msglen,1,0                     ; @msglen
	.comm	_ch_erase,1,0                   ; @ch_erase
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\b \b"

.subsections_via_symbols
