	.file	"extr_gui_w32.c__OnMouseWheel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_OnMouseWheel, @function
_OnMouseWheel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rdx, QWORD PTR curwin[rip]
	mov	rax, QWORD PTR SBAR_RIGHT[rip]
	mov	rcx, QWORD PTR 8[rdx]
	sal	rax, 4
	mov	r12, QWORD PTR [rcx+rax]
	test	r12, r12
	jne	.L2
	mov	rax, QWORD PTR SBAR_LEFT[rip]
	sal	rax, 4
	mov	r12, QWORD PTR [rcx+rax]
	test	r12, r12
	je	.L1
.L2:
	mov	ebx, DWORD PTR mouse_scroll_lines[rip]
	mov	r15d, DWORD PTR [rdx]
	test	ebx, ebx
	je	.L15
.L4:
	test	ebx, ebx
	jle	.L5
	cmp	r15d, 3
	mov	eax, 3
	cmovl	r15d, eax
	sub	r15d, 2
	cmp	r15d, ebx
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	test	r13w, r13w
	mov	edx, DWORD PTR SB_LINEUP[rip]
	mov	rsi, r12
	mov	rdi, rbp
	cmovs	edx, DWORD PTR SB_LINEDOWN[rip]
	xor	ecx, ecx
	call	_OnScroll@PLT
	sub	ebx, 1
	jne	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	test	r14w, r14w
	mov	edx, DWORD PTR SB_PAGEUP[rip]
	mov	rsi, r12
	mov	rdi, rbp
	cmovs	edx, DWORD PTR SB_PAGEDOWN[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	ecx, ecx
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	_OnScroll@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	xor	eax, eax
	call	init_mouse_wheel@PLT
	mov	ebx, DWORD PTR mouse_scroll_lines[rip]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	_OnMouseWheel, .-_OnMouseWheel
	.comm	mouse_scroll_lines,4,4
	.comm	curwin,8,8
	.comm	SB_PAGEUP,4,4
	.comm	SB_PAGEDOWN,4,4
	.comm	SB_LINEUP,4,4
	.comm	SB_LINEDOWN,4,4
	.comm	SBAR_RIGHT,8,8
	.comm	SBAR_LEFT,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_gui_w32.c__OnMouseWheel.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_OnMouseWheel, %function
_OnMouseWheel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L17
	ldr	r2, .L17+4
	ldr	r3, [r3]
	ldr	ip, [r2]
	ldr	r2, [r3, #4]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, [r2, ip, lsl #3]
	mov	r5, r0
	cmp	r7, #0
	mov	r6, r1
	bne	.L2
	ldr	r1, .L17+8
	ldr	r1, [r1]
	ldr	r7, [r2, r1, lsl #3]
	cmp	r7, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r9, .L17+12
	ldr	r8, [r3]
	ldr	r4, [r9]
	cmp	r4, #0
	beq	.L16
.L4:
	cmp	r4, #0
	ble	.L5
	cmp	r8, #3
	movlt	r8, #3
	sub	r8, r8, #2
	cmp	r8, r4
	ble	.L5
	ldr	r9, .L17+16
	ldr	r8, .L17+20
.L8:
	cmp	r6, #0
	ldrge	r2, [r8]
	ldrlt	r2, [r9]
	mov	r3, #0
	mov	r1, r7
	mov	r0, r5
	bl	_OnScroll
	subs	r4, r4, #1
	bne	.L8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	cmp	r6, #0
	ldrge	r3, .L17+24
	ldrlt	r3, .L17+28
	mov	r1, r7
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r2, [r3]
	mov	r3, #0
	b	_OnScroll
.L16:
	bl	init_mouse_wheel
	ldr	r4, [r9]
	b	.L4
.L18:
	.align	2
.L17:
	.word	curwin
	.word	SBAR_RIGHT
	.word	SBAR_LEFT
	.word	mouse_scroll_lines
	.word	SB_LINEDOWN
	.word	SB_LINEUP
	.word	SB_PAGEUP
	.word	SB_PAGEDOWN
	.size	_OnMouseWheel, .-_OnMouseWheel
	.comm	mouse_scroll_lines,4,4
	.comm	curwin,4,4
	.comm	SB_PAGEUP,4,4
	.comm	SB_PAGEDOWN,4,4
	.comm	SB_LINEUP,4,4
	.comm	SB_LINEDOWN,4,4
	.comm	SBAR_RIGHT,4,4
	.comm	SBAR_LEFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
