	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdb_readline                   ## -- Begin function gdb_readline
	.p2align	4, 0x90
_gdb_readline:                          ## @gdb_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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_gdb_stdout@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_fputs_unfiltered
	movl	(%rbx), %edi
	callq	_gdb_flush
LBB0_2:
	movl	$80, %edi
	callq	_xmalloc
	movq	%rax, %r14
	movq	_instream@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.3:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_4:
	callq	_fgetc
	movq	_EOF@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_5
LBB0_13:
	movq	%r14, %rdi
	callq	_xfree
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_5:
	movl	$80, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	_fgetc
	cmpl	(%r12), %eax
	je	LBB0_12
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	cmpl	$10, %eax
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movb	%al, (%r14,%r13)
	incq	%r13
	cmpl	%r13d, %ebx
	jg	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_xrealloc
	movq	%rax, %r14
	cmpl	%r13d, %ebx
	jle	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_11
LBB0_12:
	testl	%r13d, %r13d
	je	LBB0_13
LBB0_15:
	movl	%r13d, %eax
	movb	$0, (%r14,%rax)
LBB0_16:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gdb_stdout,4,2                 ## @gdb_stdout
	.comm	_instream,8,3                   ## @instream
	.comm	_stdin,8,3                      ## @stdin
	.comm	_EOF,4,2                        ## @EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdb_readline                   ; -- Begin function gdb_readline
	.p2align	2
_gdb_readline:                          ; @gdb_readline
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x19, _gdb_stdout@GOTPAGE
Lloh1:
	ldr	x19, [x19, _gdb_stdout@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_fputs_unfiltered
	ldr	w0, [x19]
	bl	_gdb_flush
LBB0_2:
	mov	w0, #80
	bl	_xmalloc
	mov	x19, x0
Lloh2:
	adrp	x21, _instream@GOTPAGE
Lloh3:
	ldr	x21, [x21, _instream@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh4:
	adrp	x22, _stdin@GOTPAGE
Lloh5:
	ldr	x22, [x22, _stdin@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, #0
	csel	x0, x9, x8, eq
	bl	_fgetc
Lloh6:
	adrp	x24, _EOF@GOTPAGE
Lloh7:
	ldr	x24, [x24, _EOF@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_xfree
	mov	x19, #0
	b	LBB0_12
LBB0_4:
	mov	x23, #0
	mov	w20, #80
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, #0
	csel	x0, x9, x8, eq
	bl	_fgetc
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x8, x23
	cmp	w0, #10
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x8, #1
	strb	w0, [x19, x8]
	cmp	w20, w23
	b.gt	LBB0_5
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	w20, w20, #1
	mov	x0, x19
	mov	x1, x20
	bl	_xrealloc
	mov	x19, x0
	cmp	w20, w23
	b.le	LBB0_8
	b	LBB0_5
LBB0_9:
	cbnz	w23, LBB0_11
	b	LBB0_3
LBB0_10:
	mov	x23, x8
LBB0_11:
	strb	wzr, [x19, w23, uxtw]
LBB0_12:
	mov	x0, x19
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_gdb_stdout,4,2                 ; @gdb_stdout
	.comm	_instream,8,3                   ; @instream
	.comm	_stdin,8,3                      ; @stdin
	.comm	_EOF,4,2                        ; @EOF
.subsections_via_symbols
