	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function paint_scrollbar
_paint_scrollbar:                       ## @paint_scrollbar
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	_GWL_STYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongW
	movl	%eax, %r14d
	movq	_SBS_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r13, %rdi
	callq	_IsWindowEnabled
	movl	%eax, %r12d
	leaq	-200(%rbp), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_GetWindowRect
	xorl	%edx, %edx
	xorl	%esi, %esi
	subq	-200(%rbp), %rsi
	subq	-192(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_OffsetRect
	leaq	-164(%rbp), %rsi
	movq	%r13, %rdi
	callq	_BeginPaint
	movl	%eax, %ebx
	movq	_SBS_SIZEBOX@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_SBS_SIZEGRIP@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
LBB0_2:
	movq	_SBS_SIZEBOXTOPLEFTALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	jne	LBB0_3
## %bb.4:
	movq	_SZB_RIGHTALIGN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_SZB_TOPLEFTALIGN@GOTPCREL(%rip), %rax
LBB0_5:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	(%rax), %ecx
	movq	_SBP_SIZEBOX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-200(%rbp), %r8
	movl	%ebx, %esi
LBB0_63:
	xorl	%r9d, %r9d
	callq	_DrawThemeBackground
LBB0_64:
	leaq	-164(%rbp), %rsi
	movq	%r13, %rdi
	callq	_EndPaint
LBB0_65:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$4, -160(%rbp)
	movq	_OBJID_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-160(%rbp), %rdx
	movq	%r13, %rdi
	callq	_GetScrollBarInfo
	movl	$8, -144(%rbp)
	movq	_SIF_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -140(%rbp)
	movq	_SB_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-144(%rbp), %rdx
	movq	%r13, %rdi
	callq	_GetScrollInfo
	testl	%r12d, %r12d
	je	LBB0_21
## %bb.7:
	movq	_SCRBS_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_tracking_win@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_18
## %bb.8:
	movq	_tracking_hot_part@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_SCROLL_TOP_RECT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.9:
	movq	_SCRBS_HOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edi, %esi
	jmp	LBB0_15
LBB0_21:
	movq	_SCRBS_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%r14d, %r15d
	movl	%ecx, -120(%rbp)                ## 4-byte Spill
	je	LBB0_41
## %bb.22:
	movq	_ABS_DOWNDISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_ABS_UPDISABLED@GOTPCREL(%rip), %rax
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_26
LBB0_18:
	testl	%r14d, %r15d
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_19
## %bb.20:
	movq	_ABS_DOWNNORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_ABS_UPNORMAL@GOTPCREL(%rip), %rax
	movl	%edi, -120(%rbp)                ## 4-byte Spill
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_26
LBB0_10:
	movq	_SCROLL_BOTTOM_RECT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.11:
	movq	_SCRBS_HOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%edi, %edx
	jmp	LBB0_15
LBB0_41:
	movq	_ABS_RIGHTDISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_ABS_LEFTDISABLED@GOTPCREL(%rip), %rax
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_47
LBB0_19:
	movq	_ABS_RIGHTNORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_ABS_LEFTNORMAL@GOTPCREL(%rip), %rax
	movl	%edi, -120(%rbp)                ## 4-byte Spill
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_47
LBB0_12:
	movq	_SCROLL_THUMB@GOTPCREL(%rip), %rsi
	movl	%edi, %r8d
	cmpq	(%rsi), %rcx
	jne	LBB0_14
## %bb.13:
	movq	_SCRBS_HOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
LBB0_14:
	movl	%edi, %edx
	movl	%edi, %esi
	movl	%r8d, %edi
LBB0_15:
	testl	%r14d, %r15d
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -120(%rbp)                ## 4-byte Spill
	je	LBB0_42
## %bb.16:
	movq	_ABS_DOWNNORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	(%rax), %rax
	movq	_SCROLL_TOP_ARROW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.17:
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	_ABS_UPHOT@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_42:
	movq	_ABS_RIGHTNORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	(%rax), %rax
	movq	_SCROLL_TOP_ARROW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_44
## %bb.43:
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movq	_ABS_LEFTHOT@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_23:
	movq	_SCROLL_BOTTOM_ARROW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.24:
	movq	_ABS_DOWNHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_25:
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	_ABS_UPNORMAL@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %r15d
	movq	_SBP_ARROWBTN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TS_DRAW@GOTPCREL(%rip), %r14
	movl	(%r14), %r9d
	leaq	-136(%rbp), %rax
	movq	%rax, (%rsp)
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_GetThemePartSize
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	jmp	LBB0_65
LBB0_28:
	movq	_SBP_ARROWBTN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %r9d
	leaq	-128(%rbp), %rax
	movq	%rax, (%rsp)
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	callq	_GetThemePartSize
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	jmp	LBB0_65
LBB0_30:
	movq	_SBP_ARROWBTN@GOTPCREL(%rip), %rdi
	movq	-184(%rbp), %rcx
	subq	-192(%rbp), %rcx
	movl	-136(%rbp), %eax
	movl	-128(%rbp), %edx
	addq	%rax, %rdx
	movq	%rcx, %rsi
	subq	%rdx, %rsi
	movq	_SCROLL_MIN_RECT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rsi
	jge	LBB0_32
## %bb.31:
	subq	%rdx, %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	movl	%eax, -128(%rbp)
	movl	%eax, -136(%rbp)
	movl	%eax, %eax
LBB0_32:
	movups	-200(%rbp), %xmm0
	movups	-184(%rbp), %xmm1
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm1, -96(%rbp)
	addq	-104(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	%rdi, %r14
	movl	(%rdi), %edx
	leaq	-112(%rbp), %r8
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%r15d, %ecx
	xorl	%r9d, %r9d
	callq	_DrawThemeBackground
	movq	-96(%rbp), %r15
	movq	-184(%rbp), %rax
	movq	%rax, -96(%rbp)
	movl	-128(%rbp), %ecx
	subq	%rcx, %rax
	movq	%rax, -104(%rbp)
	movl	(%r14), %edx
	movl	%r12d, %r14d
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	leaq	-112(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_DrawThemeBackground
	movq	-104(%rbp), %r12
	movq	%r12, %rdi
	subq	%r15, %rdi
	leaq	-144(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_calc_thumb_dimensions
	movl	-64(%rbp), %eax
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	movq	%r15, -104(%rbp)
	addq	%r15, %rax
	movq	%rax, -96(%rbp)
	movq	_SBP_UPPERTRACKVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %r8
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	-120(%rbp), %ecx                ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_DrawThemeBackground
LBB0_34:
	movl	-60(%rbp), %eax
	testq	%rax, %rax
	je	LBB0_39
## %bb.35:
	movl	-64(%rbp), %ecx
	addq	%r15, %rcx
	movq	%rcx, -104(%rbp)
	addq	%rax, %rcx
	movq	%rcx, -96(%rbp)
	movq	_SBP_THUMBBTNVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %r8
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movl	%ebx, %esi
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	xorl	%r9d, %r9d
	callq	_DrawThemeBackground
	movq	_SBP_GRIPPERVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TS_DRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-152(%rbp), %rax
	movq	%rax, (%rsp)
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%r12d, %ecx
	movq	-120(%rbp), %r12                ## 8-byte Reload
	xorl	%r8d, %r8d
	callq	_GetThemePartSize
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_39
## %bb.36:
	movq	_SBP_THUMBBTNVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TMT_CONTENTMARGINS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-216(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-112(%rbp), %r9
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_GetThemeMargins
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_39
## %bb.37:
	movl	-216(%rbp), %eax
	addl	-212(%rbp), %eax
	movl	-60(%rbp), %ecx
	subl	%eax, %ecx
	cmpl	%ecx, -152(%rbp)
	ja	LBB0_39
## %bb.38:
	movq	_SBP_GRIPPERVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %r8
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_DrawThemeBackground
LBB0_39:
	movl	-64(%rbp), %eax
	movl	-60(%rbp), %ecx
	leal	(%rcx,%rax), %edx
	cmpq	%rdx, -56(%rbp)                 ## 8-byte Folded Reload
	jle	LBB0_64
## %bb.40:
	movq	%r12, -96(%rbp)
	addq	%rax, %r15
	addq	%rcx, %r15
	movq	%r15, -104(%rbp)
	movq	_SBP_LOWERTRACKVERT@GOTPCREL(%rip), %rax
	jmp	LBB0_62
LBB0_44:
	movq	_SCROLL_BOTTOM_ARROW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_46
## %bb.45:
	movq	_ABS_RIGHTHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_46:
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movq	_ABS_LEFTNORMAL@GOTPCREL(%rip), %rax
LBB0_47:
	movl	(%rax), %r15d
	movq	_SBP_ARROWBTN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TS_DRAW@GOTPCREL(%rip), %r14
	movl	(%r14), %r9d
	leaq	-136(%rbp), %rax
	movq	%rax, (%rsp)
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_GetThemePartSize
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_49
## %bb.48:
	leaq	L_.str.2(%rip), %rdi
	callq	_WARN
	jmp	LBB0_65
LBB0_49:
	movq	_SBP_ARROWBTN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %r9d
	leaq	-128(%rbp), %rax
	movq	%rax, (%rsp)
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	callq	_GetThemePartSize
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_51
## %bb.50:
	leaq	L_.str.3(%rip), %rdi
	callq	_WARN
	jmp	LBB0_65
LBB0_51:
	movq	_SBP_ARROWBTN@GOTPCREL(%rip), %rdi
	movq	-176(%rbp), %rcx
	subq	-200(%rbp), %rcx
	movl	-132(%rbp), %eax
	movl	-124(%rbp), %edx
	addq	%rax, %rdx
	movq	%rcx, %rsi
	subq	%rdx, %rsi
	movq	_SCROLL_MIN_RECT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rsi
	jge	LBB0_53
## %bb.52:
	subq	%rdx, %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	movl	%eax, -124(%rbp)
	movl	%eax, -132(%rbp)
	movl	%eax, %eax
LBB0_53:
	movups	-200(%rbp), %xmm0
	movups	-184(%rbp), %xmm1
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm1, -96(%rbp)
	addq	-112(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	%rdi, %r14
	movl	(%rdi), %edx
	leaq	-112(%rbp), %r8
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%r15d, %ecx
	xorl	%r9d, %r9d
	callq	_DrawThemeBackground
	movq	-88(%rbp), %r15
	movq	-176(%rbp), %rax
	movq	%rax, -88(%rbp)
	movl	-124(%rbp), %ecx
	subq	%rcx, %rax
	movq	%rax, -112(%rbp)
	movl	(%r14), %edx
	movl	%r12d, %r14d
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	leaq	-112(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_DrawThemeBackground
	movq	-112(%rbp), %r12
	movq	%r12, %rdi
	subq	%r15, %rdi
	leaq	-144(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_calc_thumb_dimensions
	movl	-64(%rbp), %eax
	testq	%rax, %rax
	je	LBB0_55
## %bb.54:
	movq	%r15, -112(%rbp)
	addq	%r15, %rax
	movq	%rax, -88(%rbp)
	movq	_SBP_UPPERTRACKHORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %r8
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	-120(%rbp), %ecx                ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_DrawThemeBackground
LBB0_55:
	movl	-60(%rbp), %eax
	testq	%rax, %rax
	je	LBB0_60
## %bb.56:
	movl	-64(%rbp), %ecx
	addq	%r15, %rcx
	movq	%rcx, -112(%rbp)
	addq	%rax, %rcx
	movq	%rcx, -88(%rbp)
	movq	_SBP_THUMBBTNHORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %r8
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movl	%ebx, %esi
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	xorl	%r9d, %r9d
	callq	_DrawThemeBackground
	movq	_SBP_GRIPPERHORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TS_DRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-152(%rbp), %rax
	movq	%rax, (%rsp)
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%r12d, %ecx
	movq	-120(%rbp), %r12                ## 8-byte Reload
	xorl	%r8d, %r8d
	callq	_GetThemePartSize
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_60
## %bb.57:
	movq	_SBP_THUMBBTNHORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TMT_CONTENTMARGINS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-216(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-112(%rbp), %r9
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_GetThemeMargins
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_60
## %bb.58:
	movl	-208(%rbp), %eax
	addl	-204(%rbp), %eax
	movl	-60(%rbp), %ecx
	subl	%eax, %ecx
	cmpl	%ecx, -148(%rbp)
	ja	LBB0_60
## %bb.59:
	movq	_SBP_GRIPPERHORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %r8
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_DrawThemeBackground
LBB0_60:
	movl	-64(%rbp), %eax
	movl	-60(%rbp), %ecx
	leal	(%rcx,%rax), %edx
	cmpq	%rdx, -56(%rbp)                 ## 8-byte Folded Reload
	jle	LBB0_64
## %bb.61:
	movq	%r12, -88(%rbp)
	addq	%rax, %r15
	addq	%rcx, %r15
	movq	%r15, -112(%rbp)
	movq	_SBP_LOWERTRACKHORZ@GOTPCREL(%rip), %rax
LBB0_62:
	movl	(%rax), %edx
	leaq	-112(%rbp), %r8
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_63
	.cfi_endproc
                                        ## -- End function
	.comm	_GWL_STYLE,4,2                  ## @GWL_STYLE
	.comm	_SBS_VERT,4,2                   ## @SBS_VERT
	.comm	_SBS_SIZEBOX,4,2                ## @SBS_SIZEBOX
	.comm	_SBS_SIZEGRIP,4,2               ## @SBS_SIZEGRIP
	.comm	_SBS_SIZEBOXTOPLEFTALIGN,4,2    ## @SBS_SIZEBOXTOPLEFTALIGN
	.comm	_SZB_TOPLEFTALIGN,4,2           ## @SZB_TOPLEFTALIGN
	.comm	_SZB_RIGHTALIGN,4,2             ## @SZB_RIGHTALIGN
	.comm	_SBP_SIZEBOX,4,2                ## @SBP_SIZEBOX
	.comm	_OBJID_CLIENT,4,2               ## @OBJID_CLIENT
	.comm	_SIF_ALL,4,2                    ## @SIF_ALL
	.comm	_SB_CTL,4,2                     ## @SB_CTL
	.comm	_SCRBS_DISABLED,4,2             ## @SCRBS_DISABLED
	.comm	_SCRBS_NORMAL,4,2               ## @SCRBS_NORMAL
	.comm	_tracking_win,8,3               ## @tracking_win
	.comm	_tracking_hot_part,8,3          ## @tracking_hot_part
	.comm	_SCROLL_TOP_RECT,8,3            ## @SCROLL_TOP_RECT
	.comm	_SCRBS_HOT,4,2                  ## @SCRBS_HOT
	.comm	_SCROLL_BOTTOM_RECT,8,3         ## @SCROLL_BOTTOM_RECT
	.comm	_SCROLL_THUMB,8,3               ## @SCROLL_THUMB
	.comm	_ABS_UPDISABLED,4,2             ## @ABS_UPDISABLED
	.comm	_ABS_DOWNDISABLED,4,2           ## @ABS_DOWNDISABLED
	.comm	_ABS_UPNORMAL,4,2               ## @ABS_UPNORMAL
	.comm	_ABS_DOWNNORMAL,4,2             ## @ABS_DOWNNORMAL
	.comm	_SCROLL_TOP_ARROW,8,3           ## @SCROLL_TOP_ARROW
	.comm	_ABS_UPHOT,4,2                  ## @ABS_UPHOT
	.comm	_SCROLL_BOTTOM_ARROW,8,3        ## @SCROLL_BOTTOM_ARROW
	.comm	_ABS_DOWNHOT,4,2                ## @ABS_DOWNHOT
	.comm	_SBP_ARROWBTN,4,2               ## @SBP_ARROWBTN
	.comm	_TS_DRAW,4,2                    ## @TS_DRAW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not get up arrow size.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not get down arrow size.\n"

	.comm	_SCROLL_MIN_RECT,8,3            ## @SCROLL_MIN_RECT
	.comm	_SBP_UPPERTRACKVERT,4,2         ## @SBP_UPPERTRACKVERT
	.comm	_SBP_THUMBBTNVERT,4,2           ## @SBP_THUMBBTNVERT
	.comm	_SBP_GRIPPERVERT,4,2            ## @SBP_GRIPPERVERT
	.comm	_TMT_CONTENTMARGINS,4,2         ## @TMT_CONTENTMARGINS
	.comm	_SBP_LOWERTRACKVERT,4,2         ## @SBP_LOWERTRACKVERT
	.comm	_ABS_LEFTDISABLED,4,2           ## @ABS_LEFTDISABLED
	.comm	_ABS_RIGHTDISABLED,4,2          ## @ABS_RIGHTDISABLED
	.comm	_ABS_LEFTNORMAL,4,2             ## @ABS_LEFTNORMAL
	.comm	_ABS_RIGHTNORMAL,4,2            ## @ABS_RIGHTNORMAL
	.comm	_ABS_LEFTHOT,4,2                ## @ABS_LEFTHOT
	.comm	_ABS_RIGHTHOT,4,2               ## @ABS_RIGHTHOT
L_.str.2:                               ## @.str.2
	.asciz	"Could not get left arrow size.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Could not get right arrow size.\n"

	.comm	_SBP_UPPERTRACKHORZ,4,2         ## @SBP_UPPERTRACKHORZ
	.comm	_SBP_THUMBBTNHORZ,4,2           ## @SBP_THUMBBTNHORZ
	.comm	_SBP_GRIPPERHORZ,4,2            ## @SBP_GRIPPERHORZ
	.comm	_SBP_LOWERTRACKHORZ,4,2         ## @SBP_LOWERTRACKHORZ
	.no_dead_strip	_paint_scrollbar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function paint_scrollbar
_paint_scrollbar:                       ; @paint_scrollbar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GWL_STYLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GWL_STYLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetWindowLongW
	mov	x23, x0
Lloh3:
	adrp	x8, _SBS_VERT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SBS_VERT@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_IsWindowEnabled
	mov	x22, x0
	add	x1, sp, #104
	mov	x0, x19
	bl	_GetWindowRect
	ldp	x8, x9, [sp, #104]
	neg	x1, x8
	neg	x2, x9
	add	x0, sp, #104
	bl	_OffsetRect
	sub	x1, x29, #84
	mov	x0, x19
	bl	_BeginPaint
	mov	x21, x0
Lloh6:
	adrp	x8, _SBS_SIZEBOX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SBS_SIZEBOX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w23
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _SBS_SIZEGRIP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SBS_SIZEGRIP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_6
LBB0_2:
Lloh12:
	adrp	x8, _SBS_SIZEBOXTOPLEFTALIGN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SBS_SIZEBOXTOPLEFTALIGN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _SZB_RIGHTALIGN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SZB_RIGHTALIGN@GOTPAGEOFF]
Lloh17:
	adrp	x10, _SZB_TOPLEFTALIGN@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SZB_TOPLEFTALIGN@GOTPAGEOFF]
	tst	w8, w23
	csel	x8, x9, x10, eq
	ldr	w3, [x8]
Lloh19:
	adrp	x8, _SBP_SIZEBOX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SBP_SIZEBOX@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	add	x4, sp, #104
	mov	x0, x20
	mov	x1, x21
LBB0_3:
	mov	x5, #0
	bl	_DrawThemeBackground
LBB0_4:
	sub	x1, x29, #84
	mov	x0, x19
	bl	_EndPaint
LBB0_5:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_6:
	and	w25, w24, w23
	mov	w8, #4
	str	w8, [sp, #96]
Lloh22:
	adrp	x8, _OBJID_CLIENT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OBJID_CLIENT@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x2, sp, #96
	mov	x0, x19
	bl	_GetScrollBarInfo
	mov	w8, #8
Lloh25:
	adrp	x9, _SIF_ALL@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SIF_ALL@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #88]
Lloh28:
	adrp	x8, _SB_CTL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SB_CTL@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	add	x2, sp, #88
	mov	x0, x19
	bl	_GetScrollInfo
	cbz	w22, LBB0_12
; %bb.7:
Lloh31:
	adrp	x8, _SCRBS_NORMAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SCRBS_NORMAL@GOTPAGEOFF]
Lloh33:
	ldr	w24, [x8]
Lloh34:
	adrp	x8, _tracking_win@GOTPAGE
Lloh35:
	ldr	x8, [x8, _tracking_win@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_14
; %bb.8:
Lloh37:
	adrp	x8, _tracking_hot_part@GOTPAGE
Lloh38:
	ldr	x8, [x8, _tracking_hot_part@GOTPAGEOFF]
	ldr	x10, [x8]
Lloh39:
	adrp	x9, _SCROLL_TOP_RECT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _SCROLL_TOP_RECT@GOTPAGEOFF]
Lloh41:
	ldr	x11, [x9]
Lloh42:
	adrp	x9, _SCRBS_HOT@GOTPAGE
Lloh43:
	ldr	x9, [x9, _SCRBS_HOT@GOTPAGEOFF]
	cmp	x10, x11
	b.ne	LBB0_21
; %bb.9:
	mov	x23, x24
	mov	x22, x24
	ldr	w24, [x9]
	cbz	w25, LBB0_23
LBB0_10:
Lloh44:
	adrp	x9, _ABS_DOWNNORMAL@GOTPAGE
Lloh45:
	ldr	x9, [x9, _ABS_DOWNNORMAL@GOTPAGEOFF]
Lloh46:
	ldr	w25, [x9]
	ldr	x8, [x8]
Lloh47:
	adrp	x9, _SCROLL_TOP_ARROW@GOTPAGE
Lloh48:
	ldr	x9, [x9, _SCROLL_TOP_ARROW@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.11:
Lloh50:
	adrp	x8, _ABS_UPHOT@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ABS_UPHOT@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
Lloh52:
	adrp	x8, _SCRBS_DISABLED@GOTPAGE
Lloh53:
	ldr	x8, [x8, _SCRBS_DISABLED@GOTPAGEOFF]
Lloh54:
	ldr	w24, [x8]
	cbz	w25, LBB0_25
; %bb.13:
Lloh55:
	adrp	x8, _ABS_DOWNDISABLED@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ABS_DOWNDISABLED@GOTPAGEOFF]
Lloh57:
	ldr	w25, [x8]
Lloh58:
	adrp	x8, _ABS_UPDISABLED@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ABS_UPDISABLED@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
	cbz	w25, LBB0_26
; %bb.15:
Lloh60:
	adrp	x8, _ABS_DOWNNORMAL@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ABS_DOWNNORMAL@GOTPAGEOFF]
Lloh62:
	ldr	w25, [x8]
Lloh63:
	adrp	x8, _ABS_UPNORMAL@GOTPAGE
Lloh64:
	ldr	x8, [x8, _ABS_UPNORMAL@GOTPAGEOFF]
LBB0_16:
	mov	x22, x24
	mov	x23, x24
LBB0_17:
	ldr	w26, [x8]
Lloh65:
	adrp	x28, _SBP_ARROWBTN@GOTPAGE
Lloh66:
	ldr	x28, [x28, _SBP_ARROWBTN@GOTPAGEOFF]
	ldr	w2, [x28]
Lloh67:
	adrp	x27, _TS_DRAW@GOTPAGE
Lloh68:
	ldr	x27, [x27, _TS_DRAW@GOTPAGEOFF]
	ldr	w5, [x27]
	add	x6, sp, #32
	mov	x0, x20
	mov	x1, x21
	mov	x3, x26
	mov	x4, #0
	bl	_GetThemePartSize
	bl	_FAILED
	cbz	x0, LBB0_19
; %bb.18:
Lloh69:
	adrp	x0, l_.str@PAGE
Lloh70:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	b	LBB0_5
LBB0_19:
	ldr	w2, [x28]
	ldr	w5, [x27]
	add	x6, sp, #24
	mov	x0, x20
	mov	x1, x21
	mov	x3, x25
	mov	x4, #0
	bl	_GetThemePartSize
	bl	_FAILED
	cbz	x0, LBB0_33
; %bb.20:
Lloh71:
	adrp	x0, l_.str.1@PAGE
Lloh72:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
	b	LBB0_5
LBB0_21:
Lloh73:
	adrp	x11, _SCROLL_BOTTOM_RECT@GOTPAGE
Lloh74:
	ldr	x11, [x11, _SCROLL_BOTTOM_RECT@GOTPAGEOFF]
Lloh75:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_44
; %bb.22:
	ldr	w22, [x9]
	mov	x23, x24
	cbnz	w25, LBB0_10
LBB0_23:
Lloh76:
	adrp	x9, _ABS_RIGHTNORMAL@GOTPAGE
Lloh77:
	ldr	x9, [x9, _ABS_RIGHTNORMAL@GOTPAGEOFF]
Lloh78:
	ldr	w25, [x9]
	ldr	x8, [x8]
Lloh79:
	adrp	x9, _SCROLL_TOP_ARROW@GOTPAGE
Lloh80:
	ldr	x9, [x9, _SCROLL_TOP_ARROW@GOTPAGEOFF]
Lloh81:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_45
; %bb.24:
Lloh82:
	adrp	x8, _ABS_LEFTHOT@GOTPAGE
Lloh83:
	ldr	x8, [x8, _ABS_LEFTHOT@GOTPAGEOFF]
	b	LBB0_28
LBB0_25:
Lloh84:
	adrp	x8, _ABS_RIGHTDISABLED@GOTPAGE
Lloh85:
	ldr	x8, [x8, _ABS_RIGHTDISABLED@GOTPAGEOFF]
Lloh86:
	ldr	w25, [x8]
Lloh87:
	adrp	x8, _ABS_LEFTDISABLED@GOTPAGE
Lloh88:
	ldr	x8, [x8, _ABS_LEFTDISABLED@GOTPAGEOFF]
	b	LBB0_27
LBB0_26:
Lloh89:
	adrp	x8, _ABS_RIGHTNORMAL@GOTPAGE
Lloh90:
	ldr	x8, [x8, _ABS_RIGHTNORMAL@GOTPAGEOFF]
Lloh91:
	ldr	w25, [x8]
Lloh92:
	adrp	x8, _ABS_LEFTNORMAL@GOTPAGE
Lloh93:
	ldr	x8, [x8, _ABS_LEFTNORMAL@GOTPAGEOFF]
LBB0_27:
	mov	x22, x24
	mov	x23, x24
LBB0_28:
	ldr	w26, [x8]
Lloh94:
	adrp	x28, _SBP_ARROWBTN@GOTPAGE
Lloh95:
	ldr	x28, [x28, _SBP_ARROWBTN@GOTPAGEOFF]
	ldr	w2, [x28]
Lloh96:
	adrp	x27, _TS_DRAW@GOTPAGE
Lloh97:
	ldr	x27, [x27, _TS_DRAW@GOTPAGEOFF]
	ldr	w5, [x27]
	add	x6, sp, #32
	mov	x0, x20
	mov	x1, x21
	mov	x3, x26
	mov	x4, #0
	bl	_GetThemePartSize
	bl	_FAILED
	cbz	x0, LBB0_30
; %bb.29:
Lloh98:
	adrp	x0, l_.str.2@PAGE
Lloh99:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_WARN
	b	LBB0_5
LBB0_30:
	ldr	w2, [x28]
	ldr	w5, [x27]
	add	x6, sp, #24
	mov	x0, x20
	mov	x1, x21
	mov	x3, x25
	mov	x4, #0
	bl	_GetThemePartSize
	bl	_FAILED
	cbz	x0, LBB0_46
; %bb.31:
Lloh100:
	adrp	x0, l_.str.3@PAGE
Lloh101:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_WARN
	b	LBB0_5
LBB0_32:
Lloh102:
	adrp	x9, _SCROLL_BOTTOM_ARROW@GOTPAGE
Lloh103:
	ldr	x9, [x9, _SCROLL_BOTTOM_ARROW@GOTPAGEOFF]
Lloh104:
	adrp	x10, _ABS_DOWNHOT@GOTPAGE
Lloh105:
	ldr	x10, [x10, _ABS_DOWNHOT@GOTPAGEOFF]
Lloh106:
	ldr	x9, [x9]
Lloh107:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w25, w10, w25, eq
Lloh108:
	adrp	x8, _ABS_UPNORMAL@GOTPAGE
Lloh109:
	ldr	x8, [x8, _ABS_UPNORMAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_33:
	ldp	x9, x8, [sp, #112]
	sub	x9, x8, x9
	ldr	w8, [sp, #32]
	ldr	w10, [sp, #24]
	add	x10, x8, x10
	sub	x11, x9, x10
Lloh110:
	adrp	x10, _SCROLL_MIN_RECT@GOTPAGE
Lloh111:
	ldr	x10, [x10, _SCROLL_MIN_RECT@GOTPAGEOFF]
Lloh112:
	ldr	x10, [x10]
	cmp	x11, x10
	b.ge	LBB0_35
; %bb.34:
	sub	x8, x9, x10
	cmp	x8, #0
	cinc	x8, x8, lt
	asr	x8, x8, #1
	str	w8, [sp, #24]
	str	w8, [sp, #32]
	and	x8, x8, #0xffffffff
LBB0_35:
	ldur	q0, [sp, #104]
	ldur	q1, [sp, #120]
	stp	q0, q1, [sp, #48]
	ldr	x9, [sp, #56]
	add	x8, x9, x8
	str	x8, [sp, #64]
	ldr	w2, [x28]
	add	x4, sp, #48
	mov	x0, x20
	mov	x1, x21
	mov	x3, x26
	mov	x5, #0
	bl	_DrawThemeBackground
	ldr	x26, [sp, #64]
	ldr	x8, [sp, #120]
	ldr	w9, [sp, #24]
	sub	x9, x8, x9
	stp	x9, x8, [sp, #56]
	ldr	w2, [x28]
	add	x4, sp, #48
	mov	x0, x20
	mov	x1, x21
	mov	x3, x25
	mov	x5, #0
	bl	_DrawThemeBackground
	ldr	x28, [sp, #56]
	sub	x25, x28, x26
	add	x1, sp, #88
	add	x2, sp, #84
	add	x3, sp, #80
	mov	x0, x25
	bl	_calc_thumb_dimensions
	ldr	w8, [sp, #84]
	cbz	w8, LBB0_37
; %bb.36:
	add	x8, x26, x8
	stp	x26, x8, [sp, #56]
Lloh113:
	adrp	x8, _SBP_UPPERTRACKVERT@GOTPAGE
Lloh114:
	ldr	x8, [x8, _SBP_UPPERTRACKVERT@GOTPAGEOFF]
Lloh115:
	ldr	w2, [x8]
	add	x4, sp, #48
	mov	x0, x20
	mov	x1, x21
	mov	x3, x24
	mov	x5, #0
	bl	_DrawThemeBackground
LBB0_37:
	ldr	w8, [sp, #80]
	cbz	w8, LBB0_42
; %bb.38:
	ldr	w9, [sp, #84]
	add	x9, x26, x9
	add	x8, x9, x8
	stp	x9, x8, [sp, #56]
Lloh116:
	adrp	x24, _SBP_THUMBBTNVERT@GOTPAGE
Lloh117:
	ldr	x24, [x24, _SBP_THUMBBTNVERT@GOTPAGEOFF]
	ldr	w2, [x24]
	add	x4, sp, #48
	mov	x0, x20
	mov	x1, x21
	mov	x3, x23
	mov	x5, #0
	bl	_DrawThemeBackground
Lloh118:
	adrp	x8, _SBP_GRIPPERVERT@GOTPAGE
Lloh119:
	ldr	x8, [x8, _SBP_GRIPPERVERT@GOTPAGEOFF]
Lloh120:
	ldr	w2, [x8]
	ldr	w5, [x27]
	add	x6, sp, #40
	mov	x0, x20
	mov	x1, x21
	mov	x3, x23
	mov	x4, #0
	bl	_GetThemePartSize
	bl	_SUCCEEDED
	cbz	x0, LBB0_42
; %bb.39:
	ldr	w2, [x24]
Lloh121:
	adrp	x8, _TMT_CONTENTMARGINS@GOTPAGE
Lloh122:
	ldr	x8, [x8, _TMT_CONTENTMARGINS@GOTPAGEOFF]
Lloh123:
	ldr	w4, [x8]
	add	x5, sp, #48
	add	x6, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x3, x23
	bl	_GetThemeMargins
	bl	_SUCCEEDED
	cbz	x0, LBB0_42
; %bb.40:
	ldr	w8, [sp, #40]
	ldr	w9, [sp, #80]
	ldp	w10, w11, [sp, #8]
	add	w10, w10, w11
	sub	w9, w9, w10
	cmp	w8, w9
	b.hi	LBB0_42
; %bb.41:
Lloh124:
	adrp	x8, _SBP_GRIPPERVERT@GOTPAGE
Lloh125:
	ldr	x8, [x8, _SBP_GRIPPERVERT@GOTPAGEOFF]
Lloh126:
	ldr	w2, [x8]
	add	x4, sp, #48
	mov	x0, x20
	mov	x1, x21
	mov	x3, x23
	mov	x5, #0
	bl	_DrawThemeBackground
LBB0_42:
	ldp	w9, w8, [sp, #80]
	add	w10, w9, w8
	cmp	x25, x10
	b.le	LBB0_4
; %bb.43:
	add	x8, x26, x8
	add	x8, x8, x9
	stp	x8, x28, [sp, #56]
Lloh127:
	adrp	x8, _SBP_LOWERTRACKVERT@GOTPAGE
Lloh128:
	ldr	x8, [x8, _SBP_LOWERTRACKVERT@GOTPAGEOFF]
	b	LBB0_57
LBB0_44:
Lloh129:
	adrp	x11, _SCROLL_THUMB@GOTPAGE
Lloh130:
	ldr	x11, [x11, _SCROLL_THUMB@GOTPAGEOFF]
Lloh131:
	ldr	x11, [x11]
	ldr	w9, [x9]
	cmp	x10, x11
	csel	w23, w9, w24, eq
	mov	x22, x24
	cbnz	w25, LBB0_10
	b	LBB0_23
LBB0_45:
Lloh132:
	adrp	x9, _SCROLL_BOTTOM_ARROW@GOTPAGE
Lloh133:
	ldr	x9, [x9, _SCROLL_BOTTOM_ARROW@GOTPAGEOFF]
Lloh134:
	adrp	x10, _ABS_RIGHTHOT@GOTPAGE
Lloh135:
	ldr	x10, [x10, _ABS_RIGHTHOT@GOTPAGEOFF]
Lloh136:
	ldr	x9, [x9]
Lloh137:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w25, w10, w25, eq
Lloh138:
	adrp	x8, _ABS_LEFTNORMAL@GOTPAGE
Lloh139:
	ldr	x8, [x8, _ABS_LEFTNORMAL@GOTPAGEOFF]
	b	LBB0_28
LBB0_46:
	ldr	x8, [sp, #128]
	ldr	x9, [sp, #104]
	sub	x9, x8, x9
	ldr	w8, [sp, #36]
	ldr	w10, [sp, #28]
	add	x10, x8, x10
	sub	x11, x9, x10
Lloh140:
	adrp	x10, _SCROLL_MIN_RECT@GOTPAGE
Lloh141:
	ldr	x10, [x10, _SCROLL_MIN_RECT@GOTPAGEOFF]
Lloh142:
	ldr	x10, [x10]
	cmp	x11, x10
	b.ge	LBB0_48
; %bb.47:
	sub	x8, x9, x10
	cmp	x8, #0
	cinc	x8, x8, lt
	asr	x8, x8, #1
	str	w8, [sp, #28]
	str	w8, [sp, #36]
	and	x8, x8, #0xffffffff
LBB0_48:
	ldur	q0, [sp, #104]
	ldur	q1, [sp, #120]
	stp	q0, q1, [sp, #48]
	ldr	x9, [sp, #48]
	add	x8, x9, x8
	str	x8, [sp, #72]
	ldr	w2, [x28]
	add	x4, sp, #48
	mov	x0, x20
	mov	x1, x21
	mov	x3, x26
	mov	x5, #0
	bl	_DrawThemeBackground
	ldr	x26, [sp, #72]
	ldr	x8, [sp, #128]
	ldr	w9, [sp, #28]
	sub	x9, x8, x9
	str	x8, [sp, #72]
	str	x9, [sp, #48]
	ldr	w2, [x28]
	add	x4, sp, #48
	mov	x0, x20
	mov	x1, x21
	mov	x3, x25
	mov	x5, #0
	bl	_DrawThemeBackground
	ldr	x28, [sp, #48]
	sub	x25, x28, x26
	add	x1, sp, #88
	add	x2, sp, #84
	add	x3, sp, #80
	mov	x0, x25
	bl	_calc_thumb_dimensions
	ldr	w8, [sp, #84]
	cbz	w8, LBB0_50
; %bb.49:
	add	x8, x26, x8
	str	x26, [sp, #48]
	str	x8, [sp, #72]
Lloh143:
	adrp	x8, _SBP_UPPERTRACKHORZ@GOTPAGE
Lloh144:
	ldr	x8, [x8, _SBP_UPPERTRACKHORZ@GOTPAGEOFF]
Lloh145:
	ldr	w2, [x8]
	add	x4, sp, #48
	mov	x0, x20
	mov	x1, x21
	mov	x3, x24
	mov	x5, #0
	bl	_DrawThemeBackground
LBB0_50:
	ldr	w8, [sp, #80]
	cbz	w8, LBB0_55
; %bb.51:
	ldr	w9, [sp, #84]
	add	x9, x26, x9
	add	x8, x9, x8
	str	x9, [sp, #48]
	str	x8, [sp, #72]
Lloh146:
	adrp	x24, _SBP_THUMBBTNHORZ@GOTPAGE
Lloh147:
	ldr	x24, [x24, _SBP_THUMBBTNHORZ@GOTPAGEOFF]
	ldr	w2, [x24]
	add	x4, sp, #48
	mov	x0, x20
	mov	x1, x21
	mov	x3, x23
	mov	x5, #0
	bl	_DrawThemeBackground
Lloh148:
	adrp	x8, _SBP_GRIPPERHORZ@GOTPAGE
Lloh149:
	ldr	x8, [x8, _SBP_GRIPPERHORZ@GOTPAGEOFF]
Lloh150:
	ldr	w2, [x8]
	ldr	w5, [x27]
	add	x6, sp, #40
	mov	x0, x20
	mov	x1, x21
	mov	x3, x23
	mov	x4, #0
	bl	_GetThemePartSize
	bl	_SUCCEEDED
	cbz	x0, LBB0_55
; %bb.52:
	ldr	w2, [x24]
Lloh151:
	adrp	x8, _TMT_CONTENTMARGINS@GOTPAGE
Lloh152:
	ldr	x8, [x8, _TMT_CONTENTMARGINS@GOTPAGEOFF]
Lloh153:
	ldr	w4, [x8]
	add	x5, sp, #48
	add	x6, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x3, x23
	bl	_GetThemeMargins
	bl	_SUCCEEDED
	cbz	x0, LBB0_55
; %bb.53:
	ldr	w8, [sp, #44]
	ldr	w9, [sp, #80]
	ldp	w10, w11, [sp, #16]
	add	w10, w10, w11
	sub	w9, w9, w10
	cmp	w8, w9
	b.hi	LBB0_55
; %bb.54:
Lloh154:
	adrp	x8, _SBP_GRIPPERHORZ@GOTPAGE
Lloh155:
	ldr	x8, [x8, _SBP_GRIPPERHORZ@GOTPAGEOFF]
Lloh156:
	ldr	w2, [x8]
	add	x4, sp, #48
	mov	x0, x20
	mov	x1, x21
	mov	x3, x23
	mov	x5, #0
	bl	_DrawThemeBackground
LBB0_55:
	ldp	w9, w8, [sp, #80]
	add	w10, w9, w8
	cmp	x25, x10
	b.le	LBB0_4
; %bb.56:
	add	x8, x26, x8
	add	x8, x8, x9
	str	x28, [sp, #72]
	str	x8, [sp, #48]
Lloh157:
	adrp	x8, _SBP_LOWERTRACKHORZ@GOTPAGE
Lloh158:
	ldr	x8, [x8, _SBP_LOWERTRACKHORZ@GOTPAGEOFF]
LBB0_57:
	ldr	w2, [x8]
	add	x4, sp, #48
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGot	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh106
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGot	Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGot	Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGot	Lloh138, Lloh139
	.loh AdrpLdrGotLdr	Lloh134, Lloh135, Lloh137
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh136
	.loh AdrpLdrGotLdr	Lloh140, Lloh141, Lloh142
	.loh AdrpLdrGotLdr	Lloh143, Lloh144, Lloh145
	.loh AdrpLdrGotLdr	Lloh148, Lloh149, Lloh150
	.loh AdrpLdrGot	Lloh146, Lloh147
	.loh AdrpLdrGotLdr	Lloh151, Lloh152, Lloh153
	.loh AdrpLdrGotLdr	Lloh154, Lloh155, Lloh156
	.loh AdrpLdrGot	Lloh157, Lloh158
	.cfi_endproc
                                        ; -- End function
	.comm	_GWL_STYLE,4,2                  ; @GWL_STYLE
	.comm	_SBS_VERT,4,2                   ; @SBS_VERT
	.comm	_SBS_SIZEBOX,4,2                ; @SBS_SIZEBOX
	.comm	_SBS_SIZEGRIP,4,2               ; @SBS_SIZEGRIP
	.comm	_SBS_SIZEBOXTOPLEFTALIGN,4,2    ; @SBS_SIZEBOXTOPLEFTALIGN
	.comm	_SZB_TOPLEFTALIGN,4,2           ; @SZB_TOPLEFTALIGN
	.comm	_SZB_RIGHTALIGN,4,2             ; @SZB_RIGHTALIGN
	.comm	_SBP_SIZEBOX,4,2                ; @SBP_SIZEBOX
	.comm	_OBJID_CLIENT,4,2               ; @OBJID_CLIENT
	.comm	_SIF_ALL,4,2                    ; @SIF_ALL
	.comm	_SB_CTL,4,2                     ; @SB_CTL
	.comm	_SCRBS_DISABLED,4,2             ; @SCRBS_DISABLED
	.comm	_SCRBS_NORMAL,4,2               ; @SCRBS_NORMAL
	.comm	_tracking_win,8,3               ; @tracking_win
	.comm	_tracking_hot_part,8,3          ; @tracking_hot_part
	.comm	_SCROLL_TOP_RECT,8,3            ; @SCROLL_TOP_RECT
	.comm	_SCRBS_HOT,4,2                  ; @SCRBS_HOT
	.comm	_SCROLL_BOTTOM_RECT,8,3         ; @SCROLL_BOTTOM_RECT
	.comm	_SCROLL_THUMB,8,3               ; @SCROLL_THUMB
	.comm	_ABS_UPDISABLED,4,2             ; @ABS_UPDISABLED
	.comm	_ABS_DOWNDISABLED,4,2           ; @ABS_DOWNDISABLED
	.comm	_ABS_UPNORMAL,4,2               ; @ABS_UPNORMAL
	.comm	_ABS_DOWNNORMAL,4,2             ; @ABS_DOWNNORMAL
	.comm	_SCROLL_TOP_ARROW,8,3           ; @SCROLL_TOP_ARROW
	.comm	_ABS_UPHOT,4,2                  ; @ABS_UPHOT
	.comm	_SCROLL_BOTTOM_ARROW,8,3        ; @SCROLL_BOTTOM_ARROW
	.comm	_ABS_DOWNHOT,4,2                ; @ABS_DOWNHOT
	.comm	_SBP_ARROWBTN,4,2               ; @SBP_ARROWBTN
	.comm	_TS_DRAW,4,2                    ; @TS_DRAW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not get up arrow size.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not get down arrow size.\n"

	.comm	_SCROLL_MIN_RECT,8,3            ; @SCROLL_MIN_RECT
	.comm	_SBP_UPPERTRACKVERT,4,2         ; @SBP_UPPERTRACKVERT
	.comm	_SBP_THUMBBTNVERT,4,2           ; @SBP_THUMBBTNVERT
	.comm	_SBP_GRIPPERVERT,4,2            ; @SBP_GRIPPERVERT
	.comm	_TMT_CONTENTMARGINS,4,2         ; @TMT_CONTENTMARGINS
	.comm	_SBP_LOWERTRACKVERT,4,2         ; @SBP_LOWERTRACKVERT
	.comm	_ABS_LEFTDISABLED,4,2           ; @ABS_LEFTDISABLED
	.comm	_ABS_RIGHTDISABLED,4,2          ; @ABS_RIGHTDISABLED
	.comm	_ABS_LEFTNORMAL,4,2             ; @ABS_LEFTNORMAL
	.comm	_ABS_RIGHTNORMAL,4,2            ; @ABS_RIGHTNORMAL
	.comm	_ABS_LEFTHOT,4,2                ; @ABS_LEFTHOT
	.comm	_ABS_RIGHTHOT,4,2               ; @ABS_RIGHTHOT
l_.str.2:                               ; @.str.2
	.asciz	"Could not get left arrow size.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Could not get right arrow size.\n"

	.comm	_SBP_UPPERTRACKHORZ,4,2         ; @SBP_UPPERTRACKHORZ
	.comm	_SBP_THUMBBTNHORZ,4,2           ; @SBP_THUMBBTNHORZ
	.comm	_SBP_GRIPPERHORZ,4,2            ; @SBP_GRIPPERHORZ
	.comm	_SBP_LOWERTRACKHORZ,4,2         ; @SBP_LOWERTRACKHORZ
	.no_dead_strip	_paint_scrollbar
.subsections_via_symbols
