	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_default_win_height         ## -- Begin function tui_default_win_height
	.p2align	4, 0x90
_tui_default_win_height:                ## @tui_default_win_height
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_tui_win_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %ecx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_2:
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_3
## %bb.4:
	movl	$11, %eax
	movq	_TUI_CMD_WIN@GOTPCREL(%rip), %r14
	btl	%esi, %eax
	jae	LBB0_5
## %bb.7:
	movq	(%r14), %rbx
	xorl	%eax, %eax
	callq	_tui_term_height
	movl	%eax, %ecx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.9:
	movq	(%r14), %rax
	subl	(%rax), %ecx
	jmp	LBB0_10
LBB0_5:
	movq	(%r14), %rbx
	xorl	%eax, %eax
	callq	_tui_term_height
	movl	%eax, %ecx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.6:
	movq	(%r14), %rax
	subl	(%rax), %ecx
	movl	%ecx, %eax
	jmp	LBB0_11
LBB0_10:
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	jmp	LBB0_11
LBB0_8:
	movslq	%ecx, %rax
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	jmp	LBB0_11
LBB0_3:
	xorl	%eax, %eax
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tui_win_list,8,3               ## @tui_win_list
	.comm	_TUI_CMD_WIN,8,3                ## @TUI_CMD_WIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_default_win_height         ; -- Begin function tui_default_win_height
	.p2align	2
_tui_default_win_height:                ; @tui_default_win_height
	.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	x8, _tui_win_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tui_win_list@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, uxtw #3]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_2:
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.3:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #11
Lloh3:
	adrp	x19, _TUI_CMD_WIN@GOTPAGE
Lloh4:
	ldr	x19, [x19, _TUI_CMD_WIN@GOTPAGEOFF]
	tst	w8, w9
	b.eq	LBB0_6
; %bb.4:
	ldr	x20, [x19]
	bl	_tui_term_height
	cbz	x20, LBB0_8
; %bb.5:
	ldr	x8, [x19]
	ldr	w8, [x8]
	sub	w8, w0, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	b	LBB0_11
LBB0_6:
	ldr	x20, [x19]
	bl	_tui_term_height
	cbz	x20, LBB0_10
; %bb.7:
	ldr	x8, [x19]
	ldr	w8, [x8]
	sub	w0, w0, w8
	b	LBB0_12
LBB0_8:
	mov	w8, #21846
	movk	w8, #21845, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w0, w8, w9
	b	LBB0_12
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
	cmp	w0, #0
	cinc	w8, w0, lt
LBB0_11:
	asr	w0, w8, #1
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_tui_win_list,8,3               ; @tui_win_list
	.comm	_TUI_CMD_WIN,8,3                ; @TUI_CMD_WIN
.subsections_via_symbols
