	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OnVScroll
_OnVScroll:                             ## @OnVScroll
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	addl	$-128, %esi
	movl	%r14d, %eax
	cmpl	$4, %esi
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	_YCELLS@GOTPCREL(%rip), %rax
	movl	%r14d, %edx
	subl	(%rax), %edx
	jmp	LBB0_6
LBB0_5:
	movq	_YCELLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%r14d, %edx
	jmp	LBB0_6
LBB0_2:
	leal	-1(%r14), %edx
	jmp	LBB0_6
LBB0_3:
	leal	1(%r14), %edx
LBB0_6:
	movl	%edx, (%rbx)
	movl	%edx, %eax
LBB0_7:
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_max
	movl	%eax, (%rbx)
	movl	24(%rbx), %esi
	movl	%eax, %edi
	callq	_min
	movl	%eax, (%rbx)
	subl	%eax, %r14d
	je	LBB0_15
## %bb.8:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	movq	_SW_HIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ShowWindow
	movl	(%rbx), %eax
LBB0_10:
	movl	16(%rbx), %edi
	movq	_SB_VERT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TRUE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	%eax, %edx
	callq	_SetScrollPos
	movl	%r14d, %edi
	callq	_abs
	movq	_YCELLS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_12
## %bb.11:
	movl	16(%rbx), %edi
	leaq	-32(%rbp), %r15
	movq	%r15, %rsi
	callq	_GetClientRect
	addl	$2, -32(%rbp)
	addl	$-2, -28(%rbp)
	movl	16(%rbx), %edi
	imull	20(%rbx), %r14d
	movq	_SW_INVALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	movl	%r14d, %edx
	movq	%r15, %rcx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_ScrollWindowEx
	addq	$16, %rsp
	jmp	LBB0_13
LBB0_12:
	movl	16(%rbx), %edi
	movl	(%r15), %edx
	xorl	%esi, %esi
	callq	_InvalidateRect
LBB0_13:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	movq	_SW_SHOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ShowWindow
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_YCELLS,8,3                     ## @YCELLS
	.comm	_SW_HIDE,4,2                    ## @SW_HIDE
	.comm	_SB_VERT,4,2                    ## @SB_VERT
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_SW_INVALIDATE,4,2              ## @SW_INVALIDATE
	.comm	_SW_SHOW,4,2                    ## @SW_SHOW
	.no_dead_strip	_OnVScroll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function OnVScroll
lCPI0_0:
	.long	2                               ; 0x2
	.long	4294967294                      ; 0xfffffffe
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_OnVScroll:                             ; @OnVScroll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w20, [x0]
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _YCELLS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _YCELLS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sub	w2, w20, w8
	b	LBB0_7
LBB0_3:
	mov	x2, x20
	b	LBB0_8
LBB0_4:
Lloh5:
	adrp	x8, _YCELLS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _YCELLS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w2, w20, w8
	b	LBB0_7
LBB0_5:
	sub	w2, w20, #1
	b	LBB0_7
LBB0_6:
	add	w2, w20, #1
LBB0_7:
	str	w2, [x19]
LBB0_8:
	mov	w0, #0
	mov	x1, x2
	bl	_max
	str	w0, [x19]
	ldr	w1, [x19, #24]
	bl	_min
	str	w0, [x19]
	subs	w20, w20, w0
	b.eq	LBB0_15
; %bb.9:
	mov	x2, x0
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.10:
Lloh8:
	adrp	x8, _SW_HIDE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SW_HIDE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_ShowWindow
	ldr	w2, [x19]
LBB0_11:
	ldr	w0, [x19, #16]
Lloh11:
	adrp	x8, _SB_VERT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SB_VERT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x21, _TRUE@GOTPAGE
Lloh15:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
	ldr	w3, [x21]
	bl	_SetScrollPos
	mov	x0, x20
	bl	_abs
Lloh16:
	adrp	x8, _YCELLS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _YCELLS@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_13
; %bb.12:
	ldr	w0, [x19, #16]
	add	x1, sp, #8
	bl	_GetClientRect
	ldr	d0, [sp, #8]
Lloh19:
	adrp	x8, lCPI0_0@PAGE
Lloh20:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	add.2s	v0, v0, v1
	str	d0, [sp, #8]
	ldp	w0, w8, [x19, #16]
	mul	w2, w8, w20
Lloh21:
	adrp	x8, _SW_INVALIDATE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SW_INVALIDATE@GOTPAGEOFF]
Lloh23:
	ldr	w7, [x8]
	add	x3, sp, #8
	add	x4, sp, #8
	mov	w1, #0
	mov	x5, #0
	mov	x6, #0
	bl	_ScrollWindowEx
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_14
	b	LBB0_15
LBB0_13:
	ldr	w0, [x19, #16]
	ldr	w2, [x21]
	mov	x1, #0
	bl	_InvalidateRect
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_15
LBB0_14:
Lloh24:
	adrp	x8, _SW_SHOW@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SW_SHOW@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_ShowWindow
LBB0_15:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_YCELLS,8,3                     ; @YCELLS
	.comm	_SW_HIDE,4,2                    ; @SW_HIDE
	.comm	_SB_VERT,4,2                    ; @SB_VERT
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_SW_INVALIDATE,4,2              ; @SW_INVALIDATE
	.comm	_SW_SHOW,4,2                    ; @SW_SHOW
	.no_dead_strip	_OnVScroll
.subsections_via_symbols
