	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_HandleMouseWheel
_LISTBOX_HandleMouseWheel:              ## @LISTBOX_HandleMouseWheel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$1077936128, -20(%rbp)          ## imm = 0x40400000
	movq	_SPI_GETWHEELSCROLLLINES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-20(%rbp), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_SystemParametersInfoW
	testq	%rbx, %rbx
	js	LBB0_1
## %bb.2:
	je	LBB0_5
## %bb.3:
	movq	(%r14), %rax
	testq	%rax, %rax
	jle	LBB0_5
LBB0_4:
	addq	%rax, %rbx
LBB0_5:
	movq	%rbx, (%r14)
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.6:
	movss	-20(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	ucomiss	%xmm0, %xmm1
	jne	LBB0_7
	jnp	LBB0_8
LBB0_7:
	xorps	%xmm0, %xmm0
	cvtsi2ssq	16(%r14), %xmm0
	callq	_min
	movss	%xmm0, -20(%rbp)
	xorps	%xmm1, %xmm1
	cvtsi2ssq	(%r14), %xmm1
	cvttps2dq	%xmm0, %xmm2
	mulss	%xmm1, %xmm0
	movq	_WHEEL_DELTA@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	divss	%xmm3, %xmm0
	cvttss2si	%xmm0, %eax
	cvttps2dq	%xmm0, %xmm0
	cvtdq2ps	%xmm0, %xmm0
	mulss	%xmm3, %xmm0
	cvtdq2ps	%xmm2, %xmm2
	divss	%xmm2, %xmm0
	subss	%xmm0, %xmm1
	cvttss2si	%xmm1, %rcx
	movq	%rcx, (%r14)
	movq	8(%r14), %rsi
	cltq
	subq	%rax, %rsi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_LISTBOX_SetTopItem
LBB0_8:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	(%r14), %rax
	testq	%rax, %rax
	jns	LBB0_5
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_GETWHEELSCROLLLINES,4,2    ## @SPI_GETWHEELSCROLLLINES
	.comm	_WHEEL_DELTA,4,2                ## @WHEEL_DELTA
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_LISTBOX_HandleMouseWheel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_HandleMouseWheel
_LISTBOX_HandleMouseWheel:              ; @LISTBOX_HandleMouseWheel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	w8, #1077936128
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _SPI_GETWHEELSCROLLLINES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPI_GETWHEELSCROLLLINES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #12
	mov	w1, #0
	mov	w3, #0
	bl	_SystemParametersInfoW
	tbnz	x20, #63, LBB0_8
; %bb.1:
	cbz	x20, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_4
LBB0_3:
	add	x20, x8, x20
LBB0_4:
	str	x20, [x19]
	cbz	x20, LBB0_7
; %bb.5:
	ldr	s1, [sp, #12]
	fcmp	s1, #0.0
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x19, #16]
	scvtf	s0, x8
	bl	_min
	ldp	x8, x9, [x19]
	scvtf	s1, x8
	fmul	s2, s0, s1
Lloh3:
	adrp	x8, _WHEEL_DELTA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WHEEL_DELTA@GOTPAGEOFF]
Lloh5:
	ldr	s3, [x8]
	fdiv	s2, s2, s3
	fcvtzs	s4, s2
	scvtf	s4, s4
	fmul	s3, s3, s4
	str	s0, [sp, #12]
	fcvtzs	s0, s0
	scvtf	s0, s0
	fdiv	s0, s3, s0
	fsub	s0, s1, s0
	fcvtzs	x8, s0
	str	x8, [x19]
	fcvtzs	w8, s2
	sub	x1, x9, w8, sxtw
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_LISTBOX_SetTopItem
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	ldr	x8, [x19]
	tbz	x8, #63, LBB0_4
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_GETWHEELSCROLLLINES,4,2    ; @SPI_GETWHEELSCROLLLINES
	.comm	_WHEEL_DELTA,4,2                ; @WHEEL_DELTA
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_LISTBOX_HandleMouseWheel
.subsections_via_symbols
