	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TRACKBAR_InitializeThumb
_TRACKBAR_InitializeThumb:              ## @TRACKBAR_InitializeThumb
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_TBS_ENABLESELRANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%rdi), %eax
	setne	%cl
	leal	(%rcx,%rcx), %r15d
	addl	$21, %r15d
	movl	12(%rdi), %edi
	leaq	-40(%rbp), %r14
	movq	%r14, %rsi
	callq	_GetClientRect
	movq	_TBS_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	leaq	-32(%rbp), %rax
	leaq	-28(%rbp), %rcx
	leaq	-36(%rbp), %rdx
	cmovneq	%r14, %rax
	cmoveq	%rcx, %rdx
	movl	(%rax), %eax
	subl	(%rdx), %eax
	leal	-6(%rax), %ecx
	cmpl	$10, %eax
	movl	$4, %edx
	cmovgel	%ecx, %edx
	cmpl	%r15d, %eax
	cmovgel	%r15d, %edx
	movl	%edx, 4(%rbx)
	movq	%rbx, %rdi
	callq	_TRACKBAR_CalcChannel
	movq	%rbx, %rdi
	callq	_TRACKBAR_UpdateThumb
	movq	_TB_SELECTIONCHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TBS_ENABLESELRANGE,4,2         ## @TBS_ENABLESELRANGE
	.comm	_TBS_VERT,4,2                   ## @TBS_VERT
	.comm	_TB_SELECTIONCHANGED,4,2        ## @TB_SELECTIONCHANGED
	.no_dead_strip	_TRACKBAR_InitializeThumb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TRACKBAR_InitializeThumb
_TRACKBAR_InitializeThumb:              ; @TRACKBAR_InitializeThumb
	.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	w8, [x0]
Lloh0:
	adrp	x9, _TBS_ENABLESELRANGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TBS_ENABLESELRANGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #23
	mov	w9, #21
	csel	w20, w9, w8, eq
	ldr	w0, [x0, #12]
	mov	x21, sp
	mov	x1, sp
	bl	_GetClientRect
Lloh3:
	adrp	x8, _TBS_VERT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TBS_VERT@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh5:
	ldr	w8, [x8]
	add	x10, x21, #8
	add	x11, x21, #12
	orr	x12, x21, #0x4
	tst	w8, w9
	csel	x8, x10, x21, eq
	ldr	w8, [x8]
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	sub	w8, w8, w9
	sub	w9, w8, #6
	mov	w10, #4
	cmp	w8, #9
	csel	w9, w9, w10, gt
	cmp	w8, w20
	csel	w8, w9, w20, lt
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_TRACKBAR_CalcChannel
	mov	x0, x19
	bl	_TRACKBAR_UpdateThumb
Lloh6:
	adrp	x8, _TB_SELECTIONCHANGED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TB_SELECTIONCHANGED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TBS_ENABLESELRANGE,4,2         ; @TBS_ENABLESELRANGE
	.comm	_TBS_VERT,4,2                   ; @TBS_VERT
	.comm	_TB_SELECTIONCHANGED,4,2        ; @TB_SELECTIONCHANGED
	.no_dead_strip	_TRACKBAR_InitializeThumb
.subsections_via_symbols
