	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_GetIndexFromSelection
_UI_GetIndexFromSelection:              ## @UI_GetIndexFromSelection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_uiInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.1:
	movq	8(%rax), %rdx
	movl	%edi, %esi
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	cmpq	%rdi, %rcx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rdi,8)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdi, %rsi
	jne	LBB0_4
## %bb.7:
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uiInfo,16,3                    ## @uiInfo
	.no_dead_strip	_UI_GetIndexFromSelection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_GetIndexFromSelection
_UI_GetIndexFromSelection:              ; @UI_GetIndexFromSelection
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x10, _uiInfo@GOTPAGE
Lloh1:
	ldr	x10, [x10, _uiInfo@GOTPAGEOFF]
	ldr	w9, [x10]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	ldr	x10, [x10, #8]
	mov	w8, w8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w0, w0, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x8, #1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cbz	x11, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x8, LBB0_2
; %bb.6:
	ret
LBB0_7:
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_uiInfo,16,3                    ; @uiInfo
	.no_dead_strip	_UI_GetIndexFromSelection
.subsections_via_symbols
