	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function my_readline
_my_readline:                           ## @my_readline
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	$0, -8(%rbp)
	movq	$0, -16(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-8(%rbp), %rdi
	leaq	-16(%rbp), %rsi
	callq	_getline
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	je	LBB0_5
## %bb.3:
	movq	-8(%rbp), %rcx
	decl	%eax
	cmpb	$10, (%rcx,%rax)
	jne	LBB0_5
## %bb.4:
	movb	$0, (%rcx,%rax)
LBB0_5:
	movq	-8(%rbp), %rax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(pdb) "

	.comm	_stdout,4,2                     ## @stdout
	.comm	_stdin,4,2                      ## @stdin
	.no_dead_strip	_my_readline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function my_readline
_my_readline:                           ; @my_readline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh2:
	adrp	x8, _stdout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_fflush
Lloh5:
	adrp	x8, _stdin@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, sp
	bl	_getline
	tbnz	w0, #31, LBB0_5
; %bb.1:
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x8, [sp, #8]
	sub	w9, w0, #1
	ldrb	w10, [x8, x9]
	cmp	w10, #10
	b.ne	LBB0_4
; %bb.3:
	strb	wzr, [x8, x9]
LBB0_4:
	ldr	x0, [sp, #8]
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(pdb) "

	.comm	_stdout,4,2                     ; @stdout
	.comm	_stdin,4,2                      ; @stdin
	.no_dead_strip	_my_readline
.subsections_via_symbols
