	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tui_set_focus
_tui_set_focus:                         ## @tui_set_focus
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	%rdi, %r15
	callq	_xstrdup
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r15,%rbx), %edi
	callq	_toupper
	movb	%al, (%r14,%rbx)
	incq	%rbx
	movq	%r14, %rdi
	callq	_strlen
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_subset_compare
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_tui_win_with_focus
	movq	%rax, %rdi
	callq	_tui_next_win
	jmp	LBB0_9
LBB0_17:
	movq	_FOCUS_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warning                        ## TAILCALL
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_subset_compare
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_tui_win_with_focus
	movq	%rax, %rdi
	callq	_tui_prev_win
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	callq	_tui_partial_win_by_name
LBB0_9:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	cmpl	$0, 4(%rbx)
	je	LBB0_11
## %bb.12:
	movq	%rbx, %rdi
	callq	_tui_set_win_focus_to
	movq	_TUI_CMD_WIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	cmpq	%rax, %rbx
	setne	%sil
	callq	_keypad
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_warning
LBB0_13:
	movq	_TUI_DATA_WIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	callq	_tui_refresh_data_win
LBB0_16:
	movq	%r14, %rdi
	callq	_xfree
	xorl	%eax, %eax
	callq	_tui_win_with_focus
	movq	%rax, %rdi
	callq	_tui_win_name
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf_filtered                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NEXT"

L_.str.1:                               ## @.str.1
	.asciz	"PREV"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid window specified. \nThe window name specified must be valid and visible.\n"

	.comm	_TUI_CMD_WIN,8,3                ## @TUI_CMD_WIN
	.comm	_TUI_DATA_WIN,8,3               ## @TUI_DATA_WIN
L_.str.3:                               ## @.str.3
	.asciz	"Focus set to %s window.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Incorrect Number of Arguments.\n%s"

	.comm	_FOCUS_USAGE,4,2                ## @FOCUS_USAGE
	.no_dead_strip	_tui_set_focus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tui_set_focus
_tui_set_focus:                         ; @tui_set_focus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	bl	_xstrdup
	mov	x19, x0
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20, x21]
	bl	_toupper
	strb	w0, [x19, x21]
	add	x21, x21, #1
	mov	x0, x19
	bl	_strlen
	cmp	x21, w0, sxtw
	b.lt	LBB0_3
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_subset_compare
	cbz	x0, LBB0_7
; %bb.5:
	bl	_tui_win_with_focus
	bl	_tui_next_win
	mov	x20, x0
	cbnz	x0, LBB0_10
	b	LBB0_12
LBB0_6:
Lloh2:
	adrp	x8, _FOCUS_USAGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FOCUS_USAGE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.4@PAGE
Lloh6:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warning
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_subset_compare
	cbz	x0, LBB0_9
; %bb.8:
	bl	_tui_win_with_focus
	bl	_tui_prev_win
	mov	x20, x0
	cbnz	x0, LBB0_10
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_tui_partial_win_by_name
	mov	x20, x0
	cbz	x0, LBB0_12
LBB0_10:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_tui_set_win_focus_to
Lloh9:
	adrp	x8, _TUI_CMD_WIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TUI_CMD_WIN@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w0, [x8]
	cmp	x20, x8
	cset	w1, ne
	bl	_keypad
	b	LBB0_13
LBB0_12:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warning
LBB0_13:
Lloh14:
	adrp	x8, _TUI_DATA_WIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TUI_DATA_WIN@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.14:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.15:
	bl	_tui_refresh_data_win
LBB0_16:
	mov	x0, x19
	bl	_xfree
	bl	_tui_win_with_focus
	bl	_tui_win_name
	mov	x1, x0
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_printf_filtered
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NEXT"

l_.str.1:                               ; @.str.1
	.asciz	"PREV"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid window specified. \nThe window name specified must be valid and visible.\n"

	.comm	_TUI_CMD_WIN,8,3                ; @TUI_CMD_WIN
	.comm	_TUI_DATA_WIN,8,3               ; @TUI_DATA_WIN
l_.str.3:                               ; @.str.3
	.asciz	"Focus set to %s window.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Incorrect Number of Arguments.\n%s"

	.comm	_FOCUS_USAGE,4,2                ; @FOCUS_USAGE
	.no_dead_strip	_tui_set_focus
.subsections_via_symbols
