	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TRACKBAR_SetRange
_TRACKBAR_SetRange:                     ## @TRACKBAR_SetRange
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movl	%edx, %edi
	callq	_LOWORD
	movb	$1, %r12b
	cmpq	%rax, %r13
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %r12
	movl	%r15d, %edi
	callq	_HIWORD
	cmpq	%rax, %r12
	setne	%r12b
LBB0_2:
	movl	%r15d, %edi
	callq	_LOWORD
	movq	%rax, (%rbx)
	movl	%r15d, %edi
	callq	_HIWORD
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rcx
	movq	16(%rbx), %rdx
	cmpq	%rcx, %rdx
	cmovleq	%rcx, %rdx
	jl	LBB0_4
## %bb.3:
	cmpq	%rax, %rdx
	jle	LBB0_5
LBB0_4:
	cmpq	%rax, %rdx
	cmovgeq	%rax, %rdx
	movq	%rdx, 16(%rbx)
LBB0_5:
	subq	%rcx, %rax
	movabsq	$7378697629483820647, %rcx      ## imm = 0x6666666666666667
	imulq	%rcx
	movq	%rdx, %rax
	shrq	$63, %rax
	shrq	%rdx
	addl	%eax, %edx
	movl	$1, %eax
	cmovnel	%edx, %eax
	movl	%eax, 24(%rbx)
	testb	%r12b, %r12b
	je	LBB0_9
## %bb.6:
	movq	_TBS_AUTOTICKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 28(%rbx)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_TRACKBAR_RecalculateTics
LBB0_8:
	movq	_TB_THUMBPOSCHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
LBB0_9:
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_TRACKBAR_InvalidateAll
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TBS_AUTOTICKS,4,2              ## @TBS_AUTOTICKS
	.comm	_TB_THUMBPOSCHANGED,4,2         ## @TB_THUMBPOSCHANGED
	.no_dead_strip	_TRACKBAR_SetRange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TRACKBAR_SetRange
_TRACKBAR_SetRange:                     ; @TRACKBAR_SetRange
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
	mov	x0, x2
	bl	_LOWORD
	cmp	x22, x0
	b.ne	LBB0_2
; %bb.1:
	ldr	x22, [x19, #8]
	mov	x0, x21
	bl	_HIWORD
	cmp	x22, x0
	cset	w22, ne
	b	LBB0_3
LBB0_2:
	mov	w22, #1
LBB0_3:
	mov	x0, x21
	bl	_LOWORD
	str	x0, [x19]
	mov	x0, x21
	bl	_HIWORD
	str	x0, [x19, #8]
	ldr	x9, [x19, #16]
	ldr	x8, [x19]
	cmp	x9, x8
	csel	x9, x9, x8, gt
	ccmp	x9, x0, #0, ge
	b.le	LBB0_5
; %bb.4:
	cmp	x9, x0
	csel	x9, x9, x0, lt
	str	x9, [x19, #16]
LBB0_5:
	sub	x8, x0, x8
	mov	x9, #7378697629483820646
	movk	x9, #26215
	smulh	x8, x8, x9
	lsr	x9, x8, #63
	lsr	x8, x8, #1
	adds	w8, w8, w9
	csinc	w8, w8, wzr, ne
	str	w8, [x19, #24]
	cbz	w22, LBB0_9
; %bb.6:
	ldr	w8, [x19, #28]
Lloh0:
	adrp	x9, _TBS_AUTOTICKS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TBS_AUTOTICKS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_TRACKBAR_RecalculateTics
LBB0_8:
Lloh3:
	adrp	x8, _TB_THUMBPOSCHANGED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TB_THUMBPOSCHANGED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
LBB0_9:
	cbz	w20, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_TRACKBAR_InvalidateAll
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TBS_AUTOTICKS,4,2              ; @TBS_AUTOTICKS
	.comm	_TB_THUMBPOSCHANGED,4,2         ; @TB_THUMBPOSCHANGED
	.no_dead_strip	_TRACKBAR_SetRange
.subsections_via_symbols
