	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_Slider_ThumbPosition      ## -- Begin function Item_Slider_ThumbPosition
	.p2align	4, 0x90
_Item_Slider_ThumbPosition:             ## @Item_Slider_ThumbPosition
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	32(%rdi), %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	movl	12(%rdi), %eax
	movl	16(%rdi), %ecx
	addl	%ecx, %eax
	addl	$8, %eax
	cvtsi2ss	%eax, %xmm0
	jmp	LBB0_3
LBB0_2:
	movss	8(%rdi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
LBB0_3:
	movq	(%rdi), %rdi
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movss	%xmm0, -12(%rbp)                ## 4-byte Spill
LBB0_7:
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	callq	*(%rax)
	movss	(%rbx), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	movss	4(%rbx), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm2
	movaps	%xmm2, %xmm3
	ja	LBB0_10
## %bb.8:
	ucomiss	%xmm1, %xmm0
	movaps	%xmm0, %xmm3
	jbe	LBB0_10
## %bb.9:
	movaps	%xmm1, %xmm3
LBB0_10:
	subss	%xmm2, %xmm1
	subss	%xmm2, %xmm3
	divss	%xmm1, %xmm3
	movq	_SLIDER_WIDTH@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm3
	movss	-12(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm3, %xmm0
	jmp	LBB0_11
LBB0_5:
	testq	%rdi, %rdi
	je	LBB0_6
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movss	%xmm0, -12(%rbp)                ## 4-byte Spill
	xorl	%edi, %edi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_DC,8,3                         ## @DC
	.comm	_SLIDER_WIDTH,4,2               ## @SLIDER_WIDTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_Slider_ThumbPosition      ; -- Begin function Item_Slider_ThumbPosition
	.p2align	2
_Item_Slider_ThumbPosition:             ; @Item_Slider_ThumbPosition
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	ldp	x8, x19, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	w8, w9, [x0, #12]
	add	w8, w8, w9
	add	w8, w8, #8
	scvtf	s8, w8
	ldr	x0, [x0]
	cbnz	x19, LBB0_4
	b	LBB0_3
LBB0_2:
	ldr	s8, [x0, #8]
	ldr	x0, [x0]
	cbnz	x19, LBB0_4
LBB0_3:
	cbnz	x0, LBB0_8
LBB0_4:
Lloh0:
	adrp	x8, _DC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	blr	x8
	ldp	s1, s2, [x19]
	fcmp	s0, s1
	fmov	s3, s1
	b.mi	LBB0_7
; %bb.5:
	fcmp	s0, s2
	fmov	s3, s0
	b.le	LBB0_7
; %bb.6:
	fmov	s3, s2
LBB0_7:
	fsub	s0, s2, s1
	fsub	s1, s3, s1
	fdiv	s0, s1, s0
Lloh3:
	adrp	x8, _SLIDER_WIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SLIDER_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	s1, [x8]
	fmul	s0, s1, s0
	fadd	s8, s8, s0
LBB0_8:
	fmov	s0, s8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DC,8,3                         ; @DC
	.comm	_SLIDER_WIDTH,4,2               ; @SLIDER_WIDTH
.subsections_via_symbols
