	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdb_setup_readline             ## -- Begin function gdb_setup_readline
	.p2align	4, 0x90
_gdb_setup_readline:                    ## @gdb_setup_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_event_loop_p@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_stdio_fileopen
	movq	_gdb_stdout@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_stdio_fileopen
	movq	_gdb_stderr@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_gdb_stdlog@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_gdb_stdtarg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_instream@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_ISATTY
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	_async_command_editing_p@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	jne	LBB0_2
## %bb.3:
	movq	_gdb_readline2@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_rl_callback_read_char_wrapper@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movq	_call_readline@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_command_line_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_input_handler@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%rbx), %edi
	movq	_rl_instream@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	callq	_fileno
	movq	_input_fd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_stdin_event_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_add_file_handler               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_event_loop_p,8,3               ## @event_loop_p
	.comm	_stdout,4,2                     ## @stdout
	.comm	_gdb_stdout,8,3                 ## @gdb_stdout
	.comm	_stderr,4,2                     ## @stderr
	.comm	_gdb_stderr,8,3                 ## @gdb_stderr
	.comm	_gdb_stdlog,8,3                 ## @gdb_stdlog
	.comm	_gdb_stdtarg,8,3                ## @gdb_stdtarg
	.comm	_instream,4,2                   ## @instream
	.comm	_async_command_editing_p,4,2    ## @async_command_editing_p
	.comm	_rl_callback_read_char_wrapper,4,2 ## @rl_callback_read_char_wrapper
	.comm	_call_readline,4,2              ## @call_readline
	.comm	_gdb_readline2,4,2              ## @gdb_readline2
	.comm	_command_line_handler,4,2       ## @command_line_handler
	.comm	_input_handler,4,2              ## @input_handler
	.comm	_rl_instream,4,2                ## @rl_instream
	.comm	_input_fd,4,2                   ## @input_fd
	.comm	_stdin_event_handler,4,2        ## @stdin_event_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdb_setup_readline             ; -- Begin function gdb_setup_readline
	.p2align	2
_gdb_setup_readline:                    ; @gdb_setup_readline
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _event_loop_p@GOTPAGE
Lloh1:
	ldr	x8, [x8, _event_loop_p@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _stdout@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_stdio_fileopen
Lloh6:
	adrp	x8, _gdb_stdout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _gdb_stdout@GOTPAGEOFF]
Lloh8:
	str	x0, [x8]
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_stdio_fileopen
Lloh12:
	adrp	x8, _gdb_stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _gdb_stderr@GOTPAGEOFF]
Lloh14:
	str	x0, [x8]
Lloh15:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh16:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh17:
	str	x0, [x8]
Lloh18:
	adrp	x8, _gdb_stdtarg@GOTPAGE
Lloh19:
	ldr	x8, [x8, _gdb_stdtarg@GOTPAGEOFF]
Lloh20:
	str	x0, [x8]
Lloh21:
	adrp	x19, _instream@GOTPAGE
Lloh22:
	ldr	x19, [x19, _instream@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_ISATTY
Lloh23:
	adrp	x8, _gdb_readline2@GOTPAGE
Lloh24:
	ldr	x8, [x8, _gdb_readline2@GOTPAGEOFF]
Lloh25:
	adrp	x9, _rl_callback_read_char_wrapper@GOTPAGE
Lloh26:
	ldr	x9, [x9, _rl_callback_read_char_wrapper@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	cset	w9, ne
Lloh27:
	adrp	x10, _async_command_editing_p@GOTPAGE
Lloh28:
	ldr	x10, [x10, _async_command_editing_p@GOTPAGEOFF]
Lloh29:
	str	w9, [x10]
Lloh30:
	adrp	x9, _call_readline@GOTPAGE
Lloh31:
	ldr	x9, [x9, _call_readline@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh32:
	str	w8, [x9]
Lloh33:
	adrp	x8, _command_line_handler@GOTPAGE
Lloh34:
	ldr	x8, [x8, _command_line_handler@GOTPAGEOFF]
Lloh35:
	adrp	x9, _input_handler@GOTPAGE
Lloh36:
	ldr	x9, [x9, _input_handler@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	str	w8, [x9]
	ldr	w0, [x19]
Lloh39:
	adrp	x8, _rl_instream@GOTPAGE
Lloh40:
	ldr	x8, [x8, _rl_instream@GOTPAGEOFF]
Lloh41:
	str	w0, [x8]
	bl	_fileno
Lloh42:
	adrp	x8, _input_fd@GOTPAGE
Lloh43:
	ldr	x8, [x8, _input_fd@GOTPAGEOFF]
Lloh44:
	str	w0, [x8]
Lloh45:
	adrp	x8, _stdin_event_handler@GOTPAGE
Lloh46:
	ldr	x8, [x8, _stdin_event_handler@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_add_file_handler
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_event_loop_p,8,3               ; @event_loop_p
	.comm	_stdout,4,2                     ; @stdout
	.comm	_gdb_stdout,8,3                 ; @gdb_stdout
	.comm	_stderr,4,2                     ; @stderr
	.comm	_gdb_stderr,8,3                 ; @gdb_stderr
	.comm	_gdb_stdlog,8,3                 ; @gdb_stdlog
	.comm	_gdb_stdtarg,8,3                ; @gdb_stdtarg
	.comm	_instream,4,2                   ; @instream
	.comm	_async_command_editing_p,4,2    ; @async_command_editing_p
	.comm	_rl_callback_read_char_wrapper,4,2 ; @rl_callback_read_char_wrapper
	.comm	_call_readline,4,2              ; @call_readline
	.comm	_gdb_readline2,4,2              ; @gdb_readline2
	.comm	_command_line_handler,4,2       ; @command_line_handler
	.comm	_input_handler,4,2              ; @input_handler
	.comm	_rl_instream,4,2                ; @rl_instream
	.comm	_input_fd,4,2                   ; @input_fd
	.comm	_stdin_event_handler,4,2        ; @stdin_event_handler
.subsections_via_symbols
