	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tui_rl_switch_mode
_tui_rl_switch_mode:                    ## @tui_rl_switch_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_tui_active@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_tui_disable
	xorl	%edi, %edi
	callq	_rl_prep_terminal
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_rl_deprep_terminal
	xorl	%eax, %eax
	callq	_tui_enable
LBB0_3:
	movq	_rl_end@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	callq	_rl_kill_text
LBB0_5:
	movl	$1, %edi
	movl	$10, %esi
	callq	_rl_newline
	xorl	%eax, %eax
	callq	_dont_repeat
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tui_active,8,3                 ## @tui_active
	.comm	_rl_end,8,3                     ## @rl_end
	.no_dead_strip	_tui_rl_switch_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tui_rl_switch_mode
_tui_rl_switch_mode:                    ; @tui_rl_switch_mode
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _tui_active@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tui_active@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_tui_disable
	mov	w0, #0
	bl	_rl_prep_terminal
	b	LBB0_3
LBB0_2:
	bl	_rl_deprep_terminal
	bl	_tui_enable
LBB0_3:
Lloh3:
	adrp	x8, _rl_end@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rl_end@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	cbz	x1, LBB0_5
; %bb.4:
	mov	w0, #0
	bl	_rl_kill_text
LBB0_5:
	mov	w0, #1
	mov	w1, #10
	bl	_rl_newline
	bl	_dont_repeat
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_tui_active,8,3                 ; @tui_active
	.comm	_rl_end,8,3                     ; @rl_end
	.no_dead_strip	_tui_rl_switch_mode
.subsections_via_symbols
