	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function TRACKBAR_ConvertPlaceToPosition
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_TRACKBAR_ConvertPlaceToPosition:       ## @TRACKBAR_ConvertPlaceToPosition
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movsd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero
	movsd	8(%rdi), %xmm5                  ## xmm5 = mem[0],zero
	movapd	%xmm0, %xmm1
	subsd	%xmm5, %xmm1
	movq	_TBS_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movl	56(%rdi), %eax
	subl	60(%rdi), %eax
	leaq	24(%rdi), %rcx
	addq	$32, %rdi
	jmp	LBB0_3
LBB0_2:
	movl	64(%rdi), %eax
	subl	68(%rdi), %eax
	leaq	40(%rdi), %rcx
	addq	$48, %rdi
LBB0_3:
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	cvtsi2sd	%edx, %xmm2
	movsd	(%rcx), %xmm3                   ## xmm3 = mem[0],zero
	movl	(%rdi), %eax
	cvtsi2sd	%eax, %xmm4
	subsd	%xmm4, %xmm3
	subl	%eax, %esi
	xorps	%xmm4, %xmm4
	cvtsi2sd	%esi, %xmm4
	subsd	%xmm2, %xmm4
	addsd	%xmm2, %xmm2
	subsd	%xmm2, %xmm3
	addsd	LCPI0_0(%rip), %xmm3
	mulsd	%xmm4, %xmm1
	divsd	%xmm3, %xmm1
	addsd	%xmm5, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	LBB0_6
## %bb.4:
	ucomisd	%xmm1, %xmm5
	movapd	%xmm1, %xmm0
	jbe	LBB0_6
## %bb.5:
	movapd	%xmm5, %xmm0
LBB0_6:
	movsd	%xmm0, -8(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movsd	-8(%rbp), %xmm0                 ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	LCPI0_1(%rip), %xmm0
	addq	$16, %rsp
	popq	%rbp
	jmp	_floor                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TBS_VERT,4,2                   ## @TBS_VERT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%.2f\n"

	.no_dead_strip	_TRACKBAR_ConvertPlaceToPosition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TRACKBAR_ConvertPlaceToPosition
_TRACKBAR_ConvertPlaceToPosition:       ; @TRACKBAR_ConvertPlaceToPosition
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-32]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset b8, -24
	.cfi_offset b9, -32
	ldp	d8, d0, [x0]
	fsub	d1, d8, d0
	ldr	w8, [x0, #16]
Lloh0:
	adrp	x9, _TBS_VERT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TBS_VERT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldp	w8, w9, [x0, #56]
	sub	w8, w8, w9
	add	x9, x0, #24
	add	x10, x0, #32
	b	LBB0_3
LBB0_2:
	ldp	w8, w9, [x0, #64]
	sub	w8, w8, w9
	add	x9, x0, #40
	add	x10, x0, #48
LBB0_3:
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	scvtf	d2, w8
	ldr	d3, [x9]
	ldr	w8, [x10]
	scvtf	d4, w8
	fsub	d3, d3, d4
	fmov	d4, #-2.00000000
	fmadd	d3, d2, d4, d3
	fmov	d4, #-1.00000000
	sub	w8, w1, w8
	scvtf	d5, w8
	fadd	d3, d3, d4
	fsub	d2, d5, d2
	fmul	d1, d1, d2
	fdiv	d1, d1, d3
	fadd	d1, d0, d1
	fcmp	d1, d8
	b.gt	LBB0_6
; %bb.4:
	fcmp	d1, d0
	fmov	d8, d1
	b.pl	LBB0_6
; %bb.5:
	fmov	d8, d0
LBB0_6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	fmov	d0, d8
	bl	_TRACE
	fmov	d0, #0.50000000
	fadd	d0, d8, d0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #32               ; 16-byte Folded Reload
	b	_floor
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TBS_VERT,4,2                   ; @TBS_VERT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%.2f\n"

	.no_dead_strip	_TRACKBAR_ConvertPlaceToPosition
.subsections_via_symbols
