	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rl_callback_read_char          ## -- Begin function rl_callback_read_char
	.p2align	4, 0x90
_rl_callback_read_char:                 ## @rl_callback_read_char
	.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
	movl	$0, -44(%rbp)
	movq	_e@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	leaq	-44(%rbp), %rsi
	callq	_el_gets
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	movl	-44(%rbp), %ecx
	leal	-1(%rcx), %eax
	movl	%eax, -44(%rbp)
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.2:
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movb	(%rbx), %cl
	movq	(%r15), %rdx
	movq	(%rdx), %rdx
	movq	_TS_IO@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	(%rdx,%rsi,8), %rdx
	movq	_C_EOF@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	xorl	%r12d, %r12d
	cmpb	(%rdx,%rsi), %cl
	sete	%r12b
LBB0_4:
	movl	%eax, %eax
	movb	(%rbx,%rax), %al
	cmpb	$13, %al
	je	LBB0_6
## %bb.5:
	cmpb	$10, %al
	jne	LBB0_7
LBB0_6:
	movl	$2, %r12d
LBB0_7:
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.8:
	movq	_rl_linefunc@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_14
## %bb.9:
	movq	(%r15), %rdi
	movq	_EL_UNBUFFERED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_el_set
	cmpl	$2, %r12d
	jne	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r14
	movslq	-44(%rbp), %rax
	movb	$0, (%r14,%rax)
	jmp	LBB0_13
LBB0_11:
	xorl	%r14d, %r14d
LBB0_13:
	movq	_EL_UNBUFFERED@GOTPCREL(%rip), %rbx
	movq	%r14, %rdi
	callq	*(%r13)
	movq	(%r15), %rdi
	movl	(%rbx), %esi
	movl	$1, %edx
	callq	_el_set
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e,8,3                          ## @e
	.comm	_TS_IO,8,3                      ## @TS_IO
	.comm	_C_EOF,8,3                      ## @C_EOF
	.comm	_rl_linefunc,8,3                ## @rl_linefunc
	.comm	_EL_UNBUFFERED,4,2              ## @EL_UNBUFFERED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rl_callback_read_char          ; -- Begin function rl_callback_read_char
	.p2align	2
_rl_callback_read_char:                 ; @rl_callback_read_char
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	str	wzr, [sp, #12]
Lloh0:
	adrp	x20, _e@GOTPAGE
Lloh1:
	ldr	x20, [x20, _e@GOTPAGEOFF]
	ldr	x0, [x20]
	add	x1, sp, #12
	bl	_el_gets
	cbz	x0, LBB0_14
; %bb.1:
	ldr	w8, [sp, #12]
	subs	w8, w8, #1
	str	w8, [sp, #12]
	b.lt	LBB0_14
; %bb.2:
	mov	x19, x0
	cbz	w8, LBB0_4
; %bb.3:
	mov	w23, #0
	b	LBB0_5
LBB0_4:
	ldr	x9, [x20]
Lloh2:
	adrp	x10, _TS_IO@GOTPAGE
Lloh3:
	ldr	x10, [x10, _TS_IO@GOTPAGEOFF]
	ldr	x9, [x9]
Lloh4:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
Lloh5:
	adrp	x10, _C_EOF@GOTPAGE
Lloh6:
	ldr	x10, [x10, _C_EOF@GOTPAGEOFF]
	ldrb	w11, [x19]
Lloh7:
	ldr	x10, [x10]
	ldrb	w9, [x9, x10]
	cmp	w11, w9
	cset	w23, eq
LBB0_5:
	ldrb	w8, [x19, w8, uxtw]
	cmp	w8, #13
	ccmp	w8, #10, #4, ne
	b.ne	LBB0_7
; %bb.6:
	mov	w23, #2
LBB0_7:
	cbz	w23, LBB0_14
; %bb.8:
Lloh8:
	adrp	x21, _rl_linefunc@GOTPAGE
Lloh9:
	ldr	x21, [x21, _rl_linefunc@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_14
; %bb.9:
	ldr	x0, [x20]
Lloh10:
	adrp	x22, _EL_UNBUFFERED@GOTPAGE
Lloh11:
	ldr	x22, [x22, _EL_UNBUFFERED@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_el_set
	cmp	w23, #2
	b.ne	LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_strdup
	cbz	x0, LBB0_13
; %bb.11:
	ldrsw	x8, [sp, #12]
	strb	wzr, [x0, x8]
	b	LBB0_13
LBB0_12:
	mov	x0, #0
LBB0_13:
	ldr	x8, [x21]
	blr	x8
	ldr	x0, [x20]
	ldr	w1, [x22]
	mov	w2, #1
	bl	_el_set
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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_e,8,3                          ; @e
	.comm	_TS_IO,8,3                      ; @TS_IO
	.comm	_C_EOF,8,3                      ; @C_EOF
	.comm	_rl_linefunc,8,3                ; @rl_linefunc
	.comm	_EL_UNBUFFERED,4,2              ; @EL_UNBUFFERED
.subsections_via_symbols
