	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_first_data_item_displayed  ## -- Begin function tui_first_data_item_displayed
	.p2align	4, 0x90
_tui_first_data_item_displayed:         ## @tui_first_data_item_displayed
	.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_DATA_WIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	8(%rax), %rdx
	movl	$-1, %eax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rdi
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%rdi)
	cmovnel	%esi, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	%rcx, %rsi
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	js	LBB0_3
LBB0_7:
	popq	%rbp
	retq
LBB0_1:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TUI_DATA_WIN,8,3               ## @TUI_DATA_WIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_first_data_item_displayed  ; -- Begin function tui_first_data_item_displayed
	.p2align	2
_tui_first_data_item_displayed:         ; @tui_first_data_item_displayed
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _TUI_DATA_WIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TUI_DATA_WIN@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	w8, [x10]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x9, #0
	ldr	x10, [x10, #8]
	mov	w0, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	ldr	x12, [x11, #8]
	cbz	x12, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x11, [x11]
	cmp	x11, #0
	csel	w0, w0, w9, eq
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w0, #31, LBB0_2
LBB0_6:
	ret
LBB0_7:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TUI_DATA_WIN,8,3               ; @TUI_DATA_WIN
.subsections_via_symbols
