	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_disable                    ## -- Begin function tui_disable
	.p2align	4, 0x90
_tui_disable:                           ## @tui_disable
	.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	_tui_active@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	_tui_readline_standard_keymap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rl_set_keymap
	xorl	%eax, %eax
	callq	_tui_remove_hooks
	movq	_rl_startup_hook@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_rl_already_prompted@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_endwin
	xorl	%edi, %edi
	callq	_tui_setup_io
	xorl	%eax, %eax
	callq	_target_terminal_save_ours
	movq	$0, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_tui_update_gdb_sizes           ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tui_active,8,3                 ## @tui_active
	.comm	_tui_readline_standard_keymap,4,2 ## @tui_readline_standard_keymap
	.comm	_rl_startup_hook,8,3            ## @rl_startup_hook
	.comm	_rl_already_prompted,8,3        ## @rl_already_prompted
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_disable                    ; -- Begin function tui_disable
	.p2align	2
_tui_disable:                           ; @tui_disable
	.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	x19, _tui_active@GOTPAGE
Lloh1:
	ldr	x19, [x19, _tui_active@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _tui_readline_standard_keymap@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tui_readline_standard_keymap@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_rl_set_keymap
	bl	_tui_remove_hooks
Lloh5:
	adrp	x8, _rl_startup_hook@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rl_startup_hook@GOTPAGEOFF]
Lloh7:
	str	xzr, [x8]
Lloh8:
	adrp	x8, _rl_already_prompted@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rl_already_prompted@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
	bl	_endwin
	mov	w0, #0
	bl	_tui_setup_io
	bl	_target_terminal_save_ours
	str	xzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tui_update_gdb_sizes
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_tui_active,8,3                 ; @tui_active
	.comm	_tui_readline_standard_keymap,4,2 ; @tui_readline_standard_keymap
	.comm	_rl_startup_hook,8,3            ; @rl_startup_hook
	.comm	_rl_already_prompted,8,3        ; @rl_already_prompted
.subsections_via_symbols
