	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UPDOWN_MouseWheel
_UPDOWN_MouseWheel:                     ## @UPDOWN_MouseWheel
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_GET_WHEEL_DELTA_WPARAM
	movq	_WHEEL_DELTA@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %r12d
	movq	_MK_SHIFT@GOTPCREL(%rip), %rax
	movq	_MK_CONTROL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%r15d, %r15d
	testl	%ebx, %ecx
	jne	LBB0_6
## %bb.1:
	movl	$1, %r15d
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.2:
	movq	%r14, %rdi
	callq	_UPDOWN_GetBuddyInt
	movl	%r12d, %esi
	negl	%esi
	cmovsl	%r12d, %esi
	testl	%r12d, %r12d
	jle	LBB0_3
## %bb.4:
	movq	_FLAG_INCR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_FLAG_DECR@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_UPDOWN_DoAction
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WHEEL_DELTA,4,2                ## @WHEEL_DELTA
	.comm	_MK_SHIFT,4,2                   ## @MK_SHIFT
	.comm	_MK_CONTROL,4,2                 ## @MK_CONTROL
	.comm	_FLAG_INCR,4,2                  ## @FLAG_INCR
	.comm	_FLAG_DECR,4,2                  ## @FLAG_DECR
	.no_dead_strip	_UPDOWN_MouseWheel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UPDOWN_MouseWheel
_UPDOWN_MouseWheel:                     ; @UPDOWN_MouseWheel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	x0, x1
	bl	_GET_WHEEL_DELTA_WPARAM
Lloh0:
	adrp	x8, _MK_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MK_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MK_CONTROL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MK_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _WHEEL_DELTA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WHEEL_DELTA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	sdiv	w20, w0, w8
	cbz	w20, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_UPDOWN_GetBuddyInt
	cmp	w20, #0
	cneg	w1, w20, mi
Lloh9:
	adrp	x8, _FLAG_INCR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FLAG_INCR@GOTPAGEOFF]
Lloh11:
	adrp	x9, _FLAG_DECR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FLAG_DECR@GOTPAGEOFF]
	csel	x8, x8, x9, gt
	ldr	w2, [x8]
	mov	x0, x19
	bl	_UPDOWN_DoAction
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WHEEL_DELTA,4,2                ; @WHEEL_DELTA
	.comm	_MK_SHIFT,4,2                   ; @MK_SHIFT
	.comm	_MK_CONTROL,4,2                 ; @MK_CONTROL
	.comm	_FLAG_INCR,4,2                  ; @FLAG_INCR
	.comm	_FLAG_DECR,4,2                  ; @FLAG_DECR
	.no_dead_strip	_UPDOWN_MouseWheel
.subsections_via_symbols
