	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_WM_VSCROLL
_handle_WM_VSCROLL:                     ## @handle_WM_VSCROLL
	.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
	movl	%edx, %r14d
	movl	%edx, %edi
	callq	_LOWORD
	movq	_SB_LINELEFT@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_g_yscroll@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leal	-1(%r15), %edi
	jmp	LBB0_6
LBB0_2:
	movq	_SB_LINERIGHT@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_g_yscroll@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leal	1(%r15), %edi
	movl	%edi, (%rax)
	movq	_g_height@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_wnd_cheight@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	jmp	LBB0_9
LBB0_4:
	movq	_SB_PAGELEFT@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_7
## %bb.5:
	movq	_g_yscroll@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_g_wnd_cheight@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movl	%r15d, %edi
	subl	%edx, %edi
LBB0_6:
	movl	%edi, (%rax)
	xorl	%esi, %esi
	callq	_UI_MAX
	jmp	LBB0_10
LBB0_7:
	movq	_SB_PAGERIGHT@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_13
## %bb.8:
	movq	_g_yscroll@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_g_wnd_cheight@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edi
	shrl	$31, %edi
	addl	%ecx, %edi
	sarl	%edi
	addl	%r15d, %edi
	movl	%edi, (%rax)
	movq	_g_height@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subl	%ecx, %esi
LBB0_9:
	callq	_UI_MIN
LBB0_10:
	movl	%eax, %edx
LBB0_11:
	movq	_g_yscroll@GOTPCREL(%rip), %rbx
	movl	%edx, (%rbx)
	movq	_g_Wnd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SB_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %ecx
	callq	_SetScrollPos
	subl	(%rbx), %r15d
	xorl	%edi, %edi
	movl	%r15d, %esi
	callq	_mi_scroll
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_SB_BOTTOM@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_15
## %bb.14:
	movq	_g_yscroll@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_g_height@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_g_wnd_cheight@GOTPCREL(%rip), %rax
	subl	(%rax), %edx
	jmp	LBB0_11
LBB0_15:
	movq	_SB_TOP@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_17
## %bb.16:
	movq	_g_yscroll@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_17:
	movq	_SB_THUMBPOSITION@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_12
## %bb.18:
	movq	_g_yscroll@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_HIWORD
	movswl	%ax, %edx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SB_LINELEFT,4,2                ## @SB_LINELEFT
	.comm	_g_yscroll,4,2                  ## @g_yscroll
	.comm	_g_Wnd,4,2                      ## @g_Wnd
	.comm	_SB_VERT,4,2                    ## @SB_VERT
	.comm	_SB_LINERIGHT,4,2               ## @SB_LINERIGHT
	.comm	_g_height,4,2                   ## @g_height
	.comm	_g_wnd_cheight,4,2              ## @g_wnd_cheight
	.comm	_SB_PAGELEFT,4,2                ## @SB_PAGELEFT
	.comm	_SB_PAGERIGHT,4,2               ## @SB_PAGERIGHT
	.comm	_SB_BOTTOM,4,2                  ## @SB_BOTTOM
	.comm	_SB_TOP,4,2                     ## @SB_TOP
	.comm	_SB_THUMBPOSITION,4,2           ## @SB_THUMBPOSITION
	.no_dead_strip	_handle_WM_VSCROLL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_WM_VSCROLL
_handle_WM_VSCROLL:                     ; @handle_WM_VSCROLL
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x0, x2
	bl	_LOWORD
Lloh0:
	adrp	x8, _SB_LINELEFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SB_LINELEFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _g_yscroll@GOTPAGE
Lloh4:
	ldr	x20, [x20, _g_yscroll@GOTPAGEOFF]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
	ldr	w21, [x20]
	sub	w0, w21, #1
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _SB_LINERIGHT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SB_LINERIGHT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_4
; %bb.3:
	ldr	w21, [x20]
	add	w0, w21, #1
Lloh8:
	adrp	x8, _g_height@GOTPAGE
Lloh9:
	ldr	x8, [x8, _g_height@GOTPAGEOFF]
	str	w0, [x20]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _g_wnd_cheight@GOTPAGE
Lloh12:
	ldr	x9, [x9, _g_wnd_cheight@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	sub	w1, w8, w9
	b	LBB0_9
LBB0_4:
Lloh14:
	adrp	x8, _SB_PAGELEFT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SB_PAGELEFT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_7
; %bb.5:
Lloh17:
	adrp	x8, _g_wnd_cheight@GOTPAGE
Lloh18:
	ldr	x8, [x8, _g_wnd_cheight@GOTPAGEOFF]
	ldr	w21, [x20]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w0, w21, w8, asr #1
LBB0_6:
	str	w0, [x20]
	mov	w1, #0
	bl	_UI_MAX
	b	LBB0_10
LBB0_7:
Lloh20:
	adrp	x8, _SB_PAGERIGHT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SB_PAGERIGHT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_13
; %bb.8:
	ldr	w21, [x20]
Lloh23:
	adrp	x8, _g_wnd_cheight@GOTPAGE
Lloh24:
	ldr	x8, [x8, _g_wnd_cheight@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w9, w8, lt
	add	w0, w21, w9, asr #1
	str	w0, [x20]
Lloh26:
	adrp	x9, _g_height@GOTPAGE
Lloh27:
	ldr	x9, [x9, _g_height@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	sub	w1, w9, w8
LBB0_9:
	bl	_UI_MIN
LBB0_10:
	mov	x2, x0
LBB0_11:
	str	w2, [x20]
Lloh29:
	adrp	x8, _g_Wnd@GOTPAGE
Lloh30:
	ldr	x8, [x8, _g_Wnd@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _SB_VERT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SB_VERT@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	w3, #1
	bl	_SetScrollPos
	ldr	w8, [x20]
	sub	w1, w21, w8
	mov	w0, #0
	bl	_mi_scroll
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh35:
	adrp	x8, _SB_BOTTOM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SB_BOTTOM@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_15
; %bb.14:
Lloh38:
	adrp	x8, _g_height@GOTPAGE
Lloh39:
	ldr	x8, [x8, _g_height@GOTPAGEOFF]
	ldr	w21, [x20]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _g_wnd_cheight@GOTPAGE
Lloh42:
	ldr	x9, [x9, _g_wnd_cheight@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	sub	w2, w8, w9
	b	LBB0_11
LBB0_15:
Lloh44:
	adrp	x8, _SB_TOP@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SB_TOP@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_17
; %bb.16:
	mov	w2, #0
	ldr	w21, [x20]
	b	LBB0_11
LBB0_17:
Lloh47:
	adrp	x8, _SB_THUMBPOSITION@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SB_THUMBPOSITION@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_12
; %bb.18:
	ldr	w21, [x20]
	mov	x0, x19
	bl	_HIWORD
	sxth	w2, w0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_SB_LINELEFT,4,2                ; @SB_LINELEFT
	.comm	_g_yscroll,4,2                  ; @g_yscroll
	.comm	_g_Wnd,4,2                      ; @g_Wnd
	.comm	_SB_VERT,4,2                    ; @SB_VERT
	.comm	_SB_LINERIGHT,4,2               ; @SB_LINERIGHT
	.comm	_g_height,4,2                   ; @g_height
	.comm	_g_wnd_cheight,4,2              ; @g_wnd_cheight
	.comm	_SB_PAGELEFT,4,2                ; @SB_PAGELEFT
	.comm	_SB_PAGERIGHT,4,2               ; @SB_PAGERIGHT
	.comm	_SB_BOTTOM,4,2                  ; @SB_BOTTOM
	.comm	_SB_TOP,4,2                     ; @SB_TOP
	.comm	_SB_THUMBPOSITION,4,2           ; @SB_THUMBPOSITION
	.no_dead_strip	_handle_WM_VSCROLL
.subsections_via_symbols
