	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_find_index                 ## -- Begin function dlg_find_index
	.p2align	4, 0x90
_dlg_find_index:                        ## @dlg_find_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	js	LBB0_9
## %bb.1:
	movl	%esi, %eax
	movl	%esi, %ecx
	incl	%eax
	xorl	%esi, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%rdi,%rsi,4)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rsi, %rcx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	jbe	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%edx, 4(%rdi,%rsi,4)
	jle	LBB0_2
LBB0_7:
	movl	%esi, %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_find_index                 ; -- Begin function dlg_find_index
	.p2align	2
_dlg_find_index:                        ; @dlg_find_index
	.cfi_startproc
; %bb.0:
	tbnz	w1, #31, LBB0_8
; %bb.1:
	mov	x8, x0
	mov	x9, #0
	mov	w10, w1
	add	w0, w1, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x0, x9
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8, x9, lsl #2]
	cmp	w11, w2
	ccmp	x10, x9, #4, ne
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x9, x10
	b.hs	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x8, x9, lsl #2
	ldr	w11, [x11, #4]
	cmp	w11, w2
	b.le	LBB0_2
LBB0_6:
	mov	x0, x9
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_8:
	mov	w0, #0
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
