	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_prev_win                   ## -- Begin function tui_prev_win
	.p2align	4, 0x90
_tui_prev_win:                          ## @tui_prev_win
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r9d
	movq	_SRC_WIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leal	-1(%r9), %edi
	cmpl	%r8d, %r9d
	movq	_CMD_WIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	cmovel	%r10d, %edi
	cmpl	%r9d, %edi
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_tui_win_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %ecx
	movl	%edi, %eax
	movq	(%rdx,%rax,8), %rax
	leal	-1(%rcx), %edi
	cmpl	%r8d, %ecx
	cmovel	%r10d, %edi
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	cmovnel	%ecx, %edi
	cmoveq	%rsi, %rax
	cmpl	%r9d, %edi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SRC_WIN,4,2                    ## @SRC_WIN
	.comm	_CMD_WIN,4,2                    ## @CMD_WIN
	.comm	_tui_win_list,8,3               ## @tui_win_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_prev_win                   ; -- Begin function tui_prev_win
	.p2align	2
_tui_prev_win:                          ; @tui_prev_win
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SRC_WIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SRC_WIN@GOTPAGEOFF]
Lloh2:
	adrp	x10, _CMD_WIN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CMD_WIN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	sub	w11, w8, #1
	cmp	w8, w9
	csel	w11, w10, w11, eq
	cmp	w11, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, #0
	ret
LBB0_2:
Lloh6:
	adrp	x12, _tui_win_list@GOTPAGE
Lloh7:
	ldr	x12, [x12, _tui_win_list@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12, w11, uxtw #3]
	ldr	x14, [x13, #8]
	sub	w15, w11, #1
	cmp	w11, w9
	csel	w15, w10, w15, eq
	cmp	x14, #0
	csel	x0, xzr, x13, eq
	csel	w11, w15, w11, eq
	cmp	w11, w8
	ccmp	x0, #0, #0, ne
	b.eq	LBB0_3
; %bb.4:
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SRC_WIN,4,2                    ; @SRC_WIN
	.comm	_CMD_WIN,4,2                    ; @CMD_WIN
	.comm	_tui_win_list,8,3               ; @tui_win_list
.subsections_via_symbols
