	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scroll_event
_scroll_event:                          ## @scroll_event
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_GWL_STYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongW
	movq	_SBS_SIZEGRIP@GOTPCREL(%rip), %rcx
	movq	_SBS_SIZEBOX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	jne	LBB0_19
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_hit_test
	movl	%eax, %r12d
	cmpl	$129, %r15d
	je	LBB0_4
## %bb.2:
	cmpl	$128, %r15d
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_hit_test
	movl	%eax, %r12d
	movq	_tracking_win@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	jmp	LBB0_6
LBB0_4:
	movq	_tracking_win@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_SCROLL_NOWHERE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_6:
	movl	$16, -56(%rbp)
	movq	_TME_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_TrackMouseEvent
	movq	_TME_LEAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -52(%rbp)
	je	LBB0_8
## %bb.7:
	cmpq	%rbx, -48(%rbp)
	je	LBB0_9
LBB0_8:
	movl	%eax, -52(%rbp)
	movq	%rbx, -48(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_TrackMouseEvent
LBB0_9:
	movq	_tracking_win@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpl	$129, %r15d
	jne	LBB0_12
## %bb.10:
	cmpq	%rbx, %rcx
	je	LBB0_12
## %bb.11:
	movq	_SCROLL_NOWHERE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_18:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_redraw_part
	jmp	LBB0_19
LBB0_12:
	cmpq	%rbx, %rcx
	jne	LBB0_19
## %bb.13:
	movq	_tracking_hot_part@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	cmpl	%r15d, %r12d
	je	LBB0_19
## %bb.14:
	movl	%r12d, (%rcx)
	movq	_SCROLL_NOWHERE@GOTPCREL(%rip), %r13
	cmpl	(%r13), %r12d
	jne	LBB0_15
## %bb.16:
	movq	$0, (%rax)
	jmp	LBB0_17
LBB0_15:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_redraw_part
	movl	(%r13), %r12d
LBB0_17:
	cmpl	%r12d, %r15d
	jne	LBB0_18
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GWL_STYLE,4,2                  ## @GWL_STYLE
	.comm	_SBS_SIZEGRIP,4,2               ## @SBS_SIZEGRIP
	.comm	_SBS_SIZEBOX,4,2                ## @SBS_SIZEBOX
	.comm	_tracking_win,8,3               ## @tracking_win
	.comm	_SCROLL_NOWHERE,4,2             ## @SCROLL_NOWHERE
	.comm	_TME_QUERY,4,2                  ## @TME_QUERY
	.comm	_TME_LEAVE,4,2                  ## @TME_LEAVE
	.comm	_tracking_hot_part,4,2          ## @tracking_hot_part
	.no_dead_strip	_scroll_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scroll_event
_scroll_event:                          ; @scroll_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GWL_STYLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GWL_STYLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetWindowLongW
Lloh3:
	adrp	x8, _SBS_SIZEGRIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SBS_SIZEGRIP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SBS_SIZEBOX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SBS_SIZEBOX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.ne	LBB0_17
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_hit_test
	mov	x21, x0
Lloh9:
	adrp	x24, _tracking_win@GOTPAGE
Lloh10:
	ldr	x24, [x24, _tracking_win@GOTPAGEOFF]
	cmp	w22, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w22, #128
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_hit_test
	mov	x21, x0
	str	x20, [x24]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x24]
Lloh11:
	adrp	x9, _SCROLL_NOWHERE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SCROLL_NOWHERE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	x8, x20
	csel	w21, w9, w21, eq
LBB0_5:
	mov	w8, #16
Lloh14:
	adrp	x9, _TME_QUERY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TME_QUERY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w8, w9, [sp]
	mov	x0, sp
	bl	_TrackMouseEvent
Lloh17:
	adrp	x8, _TME_LEAVE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TME_LEAVE@GOTPAGEOFF]
	ldr	w9, [sp, #4]
Lloh19:
	ldr	w8, [x8]
	and	w9, w8, w9
	ldr	x10, [sp, #8]
	cmp	w9, #0
	ccmp	x10, x20, #0, ne
	b.eq	LBB0_7
; %bb.6:
	str	w8, [sp, #4]
	str	x20, [sp, #8]
	mov	x0, sp
	bl	_TrackMouseEvent
LBB0_7:
	ldr	x8, [x24]
	cmp	w22, #129
	b.ne	LBB0_11
; %bb.8:
	cmp	x8, x20
	b.eq	LBB0_11
; %bb.9:
Lloh20:
	adrp	x8, _SCROLL_NOWHERE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SCROLL_NOWHERE@GOTPAGEOFF]
Lloh22:
	ldr	w22, [x8]
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_redraw_part
	b	LBB0_17
LBB0_11:
	cmp	x8, x20
	b.ne	LBB0_17
; %bb.12:
Lloh23:
	adrp	x8, _tracking_hot_part@GOTPAGE
Lloh24:
	ldr	x8, [x8, _tracking_hot_part@GOTPAGEOFF]
	ldr	w22, [x8]
	cmp	w21, w22
	b.eq	LBB0_17
; %bb.13:
	str	w21, [x8]
Lloh25:
	adrp	x23, _SCROLL_NOWHERE@GOTPAGE
Lloh26:
	ldr	x23, [x23, _SCROLL_NOWHERE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w21, w8
	b.ne	LBB0_15
; %bb.14:
	str	xzr, [x24]
	b	LBB0_16
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_redraw_part
	ldr	w21, [x23]
LBB0_16:
	cmp	w22, w21
	b.ne	LBB0_10
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GWL_STYLE,4,2                  ; @GWL_STYLE
	.comm	_SBS_SIZEGRIP,4,2               ; @SBS_SIZEGRIP
	.comm	_SBS_SIZEBOX,4,2                ; @SBS_SIZEBOX
	.comm	_tracking_win,8,3               ; @tracking_win
	.comm	_SCROLL_NOWHERE,4,2             ; @SCROLL_NOWHERE
	.comm	_TME_QUERY,4,2                  ; @TME_QUERY
	.comm	_TME_LEAVE,4,2                  ; @TME_LEAVE
	.comm	_tracking_hot_part,4,2          ; @tracking_hot_part
	.no_dead_strip	_scroll_event
.subsections_via_symbols
