	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OnMouseScroll                  ## -- Begin function OnMouseScroll
	.p2align	4, 0x90
_OnMouseScroll:                         ## @OnMouseScroll
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rsi, %rbx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	(%r8), %r14
	movl	%edx, %edi
	callq	_GET_WHEEL_DELTA_WPARAM
	movq	_WM_MOUSEWHEEL@GOTPCREL(%rip), %r15
	cmpq	%rbx, (%r15)
	sete	%cl
	movq	_WM_MOUSEHWHEEL@GOTPCREL(%rip), %rdx
	cmpq	%rbx, (%rdx)
	movq	%rax, %r13
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	cmpq	%rbx, (%r15)
	jne	LBB0_4
## %bb.1:
	movq	_SB_VERT@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	8(%r12), %rcx
	addq	16(%r12), %r13
	movq	_WHEEL_DELTA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.2:
	movq	%r13, %rax
	cqto
	idivq	%rsi
	jmp	LBB0_3
LBB0_4:
	movq	_SB_HORZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	24(%r12), %rcx
	addq	32(%r12), %r13
	movq	_WHEEL_DELTA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.5:
	movq	%r13, %rax
	cqto
	idivq	%rsi
	jmp	LBB0_8
LBB0_6:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	movq	%rdx, 16(%r12)
	cmpq	%rcx, %r14
	jle	LBB0_9
	jmp	LBB0_10
LBB0_7:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_8:
	movq	%rdx, 32(%r12)
	cmpq	%rcx, %r14
	jg	LBB0_10
LBB0_9:
	movq	%r14, %rcx
	testq	%r14, %r14
	je	LBB0_17
LBB0_10:
	movq	%r13, %rax
	negq	%rax
	cmovsq	%r13, %rax
	testq	%r13, %r13
	jle	LBB0_12
## %bb.11:
	movq	_SB_LINEUP@GOTPCREL(%rip), %rdx
	jmp	LBB0_13
LBB0_12:
	movq	_SB_LINEDOWN@GOTPCREL(%rip), %rdx
LBB0_13:
	movl	(%rdx), %edi
	imulq	%rax, %rcx
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_15
## %bb.14:
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	movq	%rax, %rbx
	jmp	LBB0_16
LBB0_15:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %ebx
LBB0_16:
	xorl	%esi, %esi
	callq	_MAKELONG
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movl	%eax, %edx
	movq	%rbx, %rcx
	movq	%r12, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OnScroll                       ## TAILCALL
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM_MOUSEWHEEL,8,3              ## @WM_MOUSEWHEEL
	.comm	_WM_MOUSEHWHEEL,8,3             ## @WM_MOUSEHWHEEL
	.comm	_SB_VERT,8,3                    ## @SB_VERT
	.comm	_WHEEL_DELTA,8,3                ## @WHEEL_DELTA
	.comm	_SB_HORZ,8,3                    ## @SB_HORZ
	.comm	_SB_LINEUP,4,2                  ## @SB_LINEUP
	.comm	_SB_LINEDOWN,4,2                ## @SB_LINEDOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OnMouseScroll                  ; -- Begin function OnMouseScroll
	.p2align	2
_OnMouseScroll:                         ; @OnMouseScroll
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
	mov	x21, x1
	mov	x20, x0
	ldr	x23, [x4]
	mov	x0, x2
	bl	_GET_WHEEL_DELTA_WPARAM
	mov	x22, x0
Lloh0:
	adrp	x24, _WM_MOUSEWHEEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _WM_MOUSEWHEEL@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, x21
Lloh2:
	adrp	x8, _WM_MOUSEHWHEEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM_MOUSEHWHEEL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ccmp	x8, x21, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	x8, [x24]
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _SB_VERT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SB_VERT@GOTPAGEOFF]
Lloh7:
	ldr	x21, [x8]
	ldp	x8, x9, [x19, #8]
	add	x9, x9, x22
Lloh8:
	adrp	x10, _WHEEL_DELTA@GOTPAGE
Lloh9:
	ldr	x10, [x10, _WHEEL_DELTA@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	sdiv	x11, x9, x10
	msub	x11, x11, x10, x9
	str	x11, [x19, #16]
	cmp	x23, x8
	b.le	LBB0_3
	b	LBB0_4
LBB0_2:
Lloh11:
	adrp	x8, _SB_HORZ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SB_HORZ@GOTPAGEOFF]
Lloh13:
	ldr	x21, [x8]
	ldp	x8, x9, [x19, #24]
	add	x9, x9, x22
Lloh14:
	adrp	x10, _WHEEL_DELTA@GOTPAGE
Lloh15:
	ldr	x10, [x10, _WHEEL_DELTA@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	sdiv	x11, x9, x10
	msub	x11, x11, x10, x9
	str	x11, [x19, #32]
	cmp	x23, x8
	b.gt	LBB0_4
LBB0_3:
	mov	x8, x23
	cbz	x23, LBB0_5
LBB0_4:
Lloh17:
	adrp	x11, _SB_LINEUP@GOTPAGE
Lloh18:
	ldr	x11, [x11, _SB_LINEUP@GOTPAGEOFF]
Lloh19:
	adrp	x12, _SB_LINEDOWN@GOTPAGE
Lloh20:
	ldr	x12, [x12, _SB_LINEDOWN@GOTPAGEOFF]
	cmp	x9, #0
	csel	x11, x11, x12, gt
	cneg	x9, x9, mi
	ldr	w0, [x11]
	mul	x8, x8, x9
	sdiv	x22, x8, x10
	mov	w1, #0
	bl	_MAKELONG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	mov	x4, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_OnScroll
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_WM_MOUSEWHEEL,8,3              ; @WM_MOUSEWHEEL
	.comm	_WM_MOUSEHWHEEL,8,3             ; @WM_MOUSEHWHEEL
	.comm	_SB_VERT,8,3                    ; @SB_VERT
	.comm	_WHEEL_DELTA,8,3                ; @WHEEL_DELTA
	.comm	_SB_HORZ,8,3                    ; @SB_HORZ
	.comm	_SB_LINEUP,4,2                  ; @SB_LINEUP
	.comm	_SB_LINEDOWN,4,2                ; @SB_LINEDOWN
.subsections_via_symbols
