	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_GetItemFromPoint
_LISTBOX_GetItemFromPoint:              ## @LISTBOX_GetItemFromPoint
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	4(%rdi), %r8d
	movl	$-1, %eax
	testl	%r8d, %r8d
	je	LBB0_24
## %bb.1:
	movl	(%rdi), %r11d
	movl	8(%rdi), %r9d
	movq	_LBS_OWNERDRAWVARIABLE@GOTPCREL(%rip), %rcx
	testl	%r9d, (%rcx)
	je	LBB0_13
## %bb.2:
	testl	%edx, %edx
	js	LBB0_8
## %bb.3:
	cmpl	%r8d, %r11d
	jge	LBB0_22
## %bb.4:
	movslq	%r11d, %rax
	shlq	$2, %rax
	addq	24(%rdi), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addl	(%rax), %esi
	cmpl	%edx, %esi
	jg	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%r11d
	addq	$4, %rax
	cmpl	%r11d, %r8d
	jne	LBB0_5
## %bb.7:
	movl	%r8d, %r11d
	testl	%r11d, %r11d
	jns	LBB0_12
	jmp	LBB0_23
LBB0_13:
	movq	_LBS_MULTICOLUMN@GOTPCREL(%rip), %rcx
	movl	12(%rdi), %r10d
	testl	%r9d, (%rcx)
	je	LBB0_20
## %bb.14:
	movl	16(%rdi), %r9d
	movl	%r9d, %ecx
	imull	%r10d, %ecx
	cmpl	%edx, %ecx
	jle	LBB0_24
## %bb.15:
	testl	%edx, %edx
	js	LBB0_17
## %bb.16:
	movl	%edx, %eax
	cltd
	idivl	%r10d
	addl	%r11d, %eax
	movl	%eax, %r11d
LBB0_17:
	testl	%esi, %esi
	js	LBB0_19
## %bb.18:
	movl	%esi, %eax
	cltd
	idivl	20(%rdi)
	imull	%r9d, %eax
	jmp	LBB0_21
LBB0_8:
	testl	%r11d, %r11d
	jle	LBB0_22
## %bb.9:
	movq	24(%rdi), %rax
	xorl	%esi, %esi
	movq	%r11, %rdi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	-1(%rdi), %r11
	subl	-4(%rax,%rdi,4), %esi
	cmpl	%edx, %esi
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$1, %rdi
	movq	%r11, %rdi
	ja	LBB0_10
	jmp	LBB0_12
LBB0_20:
	movl	%edx, %eax
	cltd
	idivl	%r10d
LBB0_21:
	addl	%r11d, %eax
	movl	%eax, %r11d
LBB0_22:
	testl	%r11d, %r11d
	js	LBB0_23
LBB0_12:
	cmpl	%r8d, %r11d
	movl	$-1, %eax
	cmovll	%r11d, %eax
	popq	%rbp
	retq
LBB0_19:
	incl	%esi
	movl	%esi, %eax
	cltd
	idivl	20(%rdi)
	decl	%eax
	imull	%r9d, %eax
	subl	%eax, %r11d
	testl	%r11d, %r11d
	jns	LBB0_12
LBB0_23:
	xorl	%eax, %eax
LBB0_24:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBS_OWNERDRAWVARIABLE,4,2      ## @LBS_OWNERDRAWVARIABLE
	.comm	_LBS_MULTICOLUMN,4,2            ## @LBS_MULTICOLUMN
	.no_dead_strip	_LISTBOX_GetItemFromPoint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_GetItemFromPoint
_LISTBOX_GetItemFromPoint:              ; @LISTBOX_GetItemFromPoint
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_12
; %bb.1:
	ldr	w9, [x0]
	ldr	w10, [x0, #8]
Lloh0:
	adrp	x11, _LBS_OWNERDRAWVARIABLE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _LBS_OWNERDRAWVARIABLE@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_8
; %bb.2:
	tbnz	w2, #31, LBB0_13
; %bb.3:
	cmp	w9, w8
	b.ge	LBB0_17
; %bb.4:
	mov	w10, #0
	mov	x11, x9
	sxtw	x11, w11
	ldr	x12, [x0, #24]
	add	x11, x12, x11, lsl #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	add	w10, w12, w10
	cmp	w10, w2
	b.gt	LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w9, #1
	add	x11, x11, #4
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.7:
	mov	x9, x8
	tbz	w9, #31, LBB0_18
	b	LBB0_20
LBB0_8:
Lloh3:
	adrp	x11, _LBS_MULTICOLUMN@GOTPAGE
Lloh4:
	ldr	x11, [x11, _LBS_MULTICOLUMN@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x11]
	ldr	w11, [x0, #12]
	tst	w12, w10
	b.eq	LBB0_16
; %bb.9:
	ldr	w10, [x0, #16]
	mul	w12, w10, w11
	cmp	w12, w2
	b.le	LBB0_12
; %bb.10:
	sdiv	w11, w2, w11
	add	w11, w11, w9
	tst	w2, #0x80000000
	csel	w9, w9, w11, ne
	tbnz	w1, #31, LBB0_19
; %bb.11:
	ldr	w11, [x0, #20]
	sdiv	w11, w1, w11
	madd	w9, w11, w10, w9
	tbz	w9, #31, LBB0_18
	b	LBB0_20
LBB0_12:
	mov	w0, #-1
	ret
LBB0_13:
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.14:
	mov	w10, #0
	ldr	x11, [x0, #24]
	sub	x11, x11, #4
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x9, lsl #2]
	sub	w10, w10, w12
	cmp	w10, w2
	ccmp	x9, #1, #0, gt
	sub	x9, x9, #1
	b.hi	LBB0_15
	b	LBB0_18
LBB0_16:
	sdiv	w10, w2, w11
	add	w9, w10, w9
LBB0_17:
	tbnz	w9, #31, LBB0_20
LBB0_18:
	cmp	w9, w8
	csinv	w0, w9, wzr, lt
	ret
LBB0_19:
	add	w11, w1, #1
	ldr	w12, [x0, #20]
	sdiv	w11, w11, w12
	sub	w11, w11, #1
	msub	w9, w11, w10, w9
	tbz	w9, #31, LBB0_18
LBB0_20:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LBS_OWNERDRAWVARIABLE,4,2      ; @LBS_OWNERDRAWVARIABLE
	.comm	_LBS_MULTICOLUMN,4,2            ; @LBS_MULTICOLUMN
	.no_dead_strip	_LISTBOX_GetItemFromPoint
.subsections_via_symbols
