	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_line_from_reg_element_no   ## -- Begin function tui_line_from_reg_element_no
	.p2align	4, 0x90
_tui_line_from_reg_element_no:          ## @tui_line_from_reg_element_no
	.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), %rcx
	movl	$-1, %eax
	cmpl	%edi, (%rcx)
	jle	LBB0_3
## %bb.1:
	movl	4(%rcx), %ecx
	movl	$-1, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addl	%ecx, %edx
	incl	%eax
	cmpl	%edi, %edx
	jle	LBB0_2
LBB0_3:
	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_line_from_reg_element_no   ; -- Begin function tui_line_from_reg_element_no
	.p2align	2
_tui_line_from_reg_element_no:          ; @tui_line_from_reg_element_no
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _TUI_DATA_WIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TUI_DATA_WIN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
	cmp	w9, w0
	b.le	LBB0_4
; %bb.1:
	mov	w9, #0
	ldr	w10, [x8, #4]
	mov	w8, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w8, #1
	add	w9, w9, w10
	cmp	w9, w0
	b.le	LBB0_2
; %bb.3:
	mov	x0, x8
	ret
LBB0_4:
	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
