	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_FindStringPos
_LISTBOX_FindStringPos:                 ## @LISTBOX_FindStringPos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LBS_SORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %r12d
	movl	$0, %r14d
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.3:
	movq	%rsi, %r15
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	movl	%ebx, %r14d
	cmpl	%r12d, %r14d
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r14), %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movq	%r13, %rdi
	callq	_HAS_STRINGS
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%r13), %edi
	movq	16(%r13), %rax
	movslq	%ebx, %rcx
	movl	4(%rax,%rcx,8), %edx
	movq	%r15, %rsi
	callq	_LISTBOX_lstrcmpiW
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	24(%r13), %edi
	movq	_GWLP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongPtrW
	movq	_ODT_LISTBOX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movl	%eax, -60(%rbp)
	movl	24(%r13), %ecx
	movl	%ecx, -64(%rbp)
	movl	$-1, -88(%rbp)
	movq	%r15, -72(%rbp)
	movl	%ebx, -84(%rbp)
	movq	16(%r13), %rcx
	movslq	%ebx, %rdx
	movl	(%rcx,%rdx,8), %ecx
	movl	%ecx, -76(%rbp)
	movl	12(%r13), %ecx
	movl	%ecx, -80(%rbp)
	movl	8(%r13), %edi
	movq	_WM_COMPAREITEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	leaq	-88(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SendMessageW
	testl	%eax, %eax
	je	LBB0_13
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	jns	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %r12d
	cmpl	%r12d, %r14d
	jne	LBB0_4
LBB0_12:
	negq	-48(%rbp)                       ## 8-byte Folded Spill
	movl	$0, %ebx
	sbbl	%ebx, %ebx
	orl	%r14d, %ebx
	jmp	LBB0_13
LBB0_1:
	movl	$-1, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBS_SORT,4,2                   ## @LBS_SORT
	.comm	_GWLP_ID,4,2                    ## @GWLP_ID
	.comm	_ODT_LISTBOX,4,2                ## @ODT_LISTBOX
	.comm	_WM_COMPAREITEM,4,2             ## @WM_COMPAREITEM
	.no_dead_strip	_LISTBOX_FindStringPos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_FindStringPos
_LISTBOX_FindStringPos:                 ; @LISTBOX_FindStringPos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _LBS_SORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LBS_SORT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x2
	mov	x21, x0
	ldr	w24, [x0, #4]
	cbz	w24, LBB0_8
; %bb.2:
	mov	x20, x1
	mov	w23, #0
Lloh3:
	adrp	x25, _GWLP_ID@GOTPAGE
Lloh4:
	ldr	x25, [x25, _GWLP_ID@GOTPAGEOFF]
Lloh5:
	adrp	x26, _ODT_LISTBOX@GOTPAGE
Lloh6:
	ldr	x26, [x26, _ODT_LISTBOX@GOTPAGEOFF]
	mov	w27, #-1
Lloh7:
	adrp	x28, _WM_COMPAREITEM@GOTPAGE
Lloh8:
	ldr	x28, [x28, _WM_COMPAREITEM@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w24, w23
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w22, w8, #1
	mov	x0, x21
	bl	_HAS_STRINGS
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #12]
	ldr	x8, [x21, #16]
	add	x8, x8, w22, sxtw #3
	ldr	w2, [x8, #4]
	mov	x1, x20
	bl	_LISTBOX_lstrcmpiW
	cbnz	w0, LBB0_6
	b	LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #24]
	ldr	w1, [x25]
	bl	_GetWindowLongPtrW
	mov	x2, x0
	ldr	w8, [x26]
	stp	w0, w8, [sp, #36]
	ldr	w8, [x21, #24]
	str	w8, [sp, #32]
	str	x20, [sp, #24]
	stp	w27, w22, [sp, #8]
	ldr	x8, [x21, #16]
	sbfiz	x9, x22, #3, #32
	ldr	w8, [x8, x9]
	ldp	w0, w9, [x21, #8]
	stp	w9, w8, [sp, #16]
	ldr	w1, [x28]
	add	x3, sp, #8
	bl	_SendMessageW
	cbz	w0, LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #0
	csel	w24, w22, w24, lt
	csinc	w23, w23, w22, lt
	cmp	w23, w24
	b.ne	LBB0_3
	b	LBB0_9
LBB0_7:
	mov	w22, #-1
	b	LBB0_10
LBB0_8:
	mov	w23, #0
LBB0_9:
	cmp	x19, #0
	csinv	w22, w23, wzr, eq
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LBS_SORT,4,2                   ; @LBS_SORT
	.comm	_GWLP_ID,4,2                    ; @GWLP_ID
	.comm	_ODT_LISTBOX,4,2                ; @ODT_LISTBOX
	.comm	_WM_COMPAREITEM,4,2             ; @WM_COMPAREITEM
	.no_dead_strip	_LISTBOX_FindStringPos
.subsections_via_symbols
