	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdb_readline2                  ## -- Begin function gdb_readline2
	.p2align	4, 0x90
_gdb_readline2:                         ## @gdb_readline2
	.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
	cmpb	$0, _gdb_readline2.done_once(%rip)
	jne	LBB0_3
## %bb.1:
	movq	_instream@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ISATTY
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_setbuf
	movb	$1, _gdb_readline2.done_once(%rip)
LBB0_3:
	movl	$80, %r15d
	movl	$80, %edi
	callq	_xmalloc
	movq	%rax, %r14
	xorl	%r12d, %r12d
	movq	_EOF@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	_instream@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_fgetc
	movl	%eax, %ebx
	cmpl	(%r13), %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r12, %r12
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_xfree
	xorl	%edi, %edi
	callq	_input_handler
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$10, %ebx
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movb	%bl, (%r14,%r12)
	incq	%r12
	cmpl	%r12d, %r15d
	jg	LBB0_4
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_xrealloc
	movq	%rax, %r14
	cmpl	%r12d, %r15d
	jg	LBB0_4
	jmp	LBB0_12
LBB0_13:
	movl	%r12d, %eax
	movb	$0, (%r14,%rax)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_handler                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_gdb_readline2.done_once,1,2 ## @gdb_readline2.done_once
	.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_readline2                  ; -- Begin function gdb_readline2
	.p2align	2
_gdb_readline2:                         ; @gdb_readline2
	.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
	adrp	x19, _gdb_readline2.done_once@PAGE
	ldrb	w8, [x19, _gdb_readline2.done_once@PAGEOFF]
Lloh0:
	adrp	x22, _instream@GOTPAGE
Lloh1:
	ldr	x22, [x22, _instream@GOTPAGEOFF]
	tbnz	w8, #0, LBB0_3
; %bb.1:
	ldr	x0, [x22]
	bl	_ISATTY
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x0, [x22]
	mov	x1, #0
	bl	_setbuf
	mov	w8, #1
	strb	w8, [x19, _gdb_readline2.done_once@PAGEOFF]
LBB0_3:
	mov	w19, #80
	mov	w0, #80
	bl	_xmalloc
	mov	x20, x0
	mov	x25, #0
Lloh2:
	adrp	x23, _stdin@GOTPAGE
Lloh3:
	ldr	x23, [x23, _stdin@GOTPAGEOFF]
Lloh4:
	adrp	x24, _EOF@GOTPAGE
Lloh5:
	ldr	x24, [x24, _EOF@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	mov	x26, x25
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, #0
	csel	x0, x9, x8, eq
	bl	_fgetc
	mov	x21, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cbnz	x26, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x20
	bl	_xfree
	mov	x0, #0
	bl	_input_handler
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=2
	cmp	w21, #10
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x25, x26, #1
	strb	w21, [x20, x26]
	mov	x26, x25
	cmp	w19, w25
	b.gt	LBB0_5
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	w19, w19, #1
	mov	x0, x20
	mov	x1, x19
	bl	_xrealloc
	mov	x20, x0
	cmp	w19, w25
	b.le	LBB0_10
	b	LBB0_4
LBB0_11:
	strb	wzr, [x20, w26, uxtw]
	mov	x0, x20
	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
	b	_input_handler
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_gdb_readline2.done_once,1,2 ; @gdb_readline2.done_once
	.comm	_instream,8,3                   ; @instream
	.comm	_stdin,8,3                      ; @stdin
	.comm	_EOF,4,2                        ; @EOF
.subsections_via_symbols
