	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tui_rl_next_keymap
_tui_rl_next_keymap:                    ## @tui_rl_next_keymap
	.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
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_tui_rl_switch_mode
LBB0_2:
	movq	_tui_current_key_mode@GOTPCREL(%rip), %rax
	movq	_TUI_COMMAND_MODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	cmpq	%rdi, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_TUI_SINGLE_KEY_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_4:
	callq	_tui_set_key_mode
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tui_active,4,2                 ## @tui_active
	.comm	_tui_current_key_mode,8,3       ## @tui_current_key_mode
	.comm	_TUI_COMMAND_MODE,8,3           ## @TUI_COMMAND_MODE
	.comm	_TUI_SINGLE_KEY_MODE,8,3        ## @TUI_SINGLE_KEY_MODE
	.no_dead_strip	_tui_rl_next_keymap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tui_rl_next_keymap
_tui_rl_next_keymap:                    ; @tui_rl_next_keymap
	.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	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	mov	w1, #0
	bl	_tui_rl_switch_mode
LBB0_2:
Lloh3:
	adrp	x8, _tui_current_key_mode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tui_current_key_mode@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _TUI_COMMAND_MODE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TUI_COMMAND_MODE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _TUI_SINGLE_KEY_MODE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TUI_SINGLE_KEY_MODE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x0, x10, x9, eq
	bl	_tui_set_key_mode
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_tui_active,4,2                 ; @tui_active
	.comm	_tui_current_key_mode,8,3       ; @tui_current_key_mode
	.comm	_TUI_COMMAND_MODE,8,3           ; @TUI_COMMAND_MODE
	.comm	_TUI_SINGLE_KEY_MODE,8,3        ; @TUI_SINGLE_KEY_MODE
	.no_dead_strip	_tui_rl_next_keymap
.subsections_via_symbols
