	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Scroll_Slider_ThumbFunc
_Scroll_Slider_ThumbFunc:               ## @Scroll_Slider_ThumbFunc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_2
## %bb.1:
	movl	8(%rax), %ecx
	movl	12(%rax), %edx
	addl	%edx, %ecx
	addl	$8, %ecx
	cvtsi2ss	%ecx, %xmm0
	jmp	LBB0_3
LBB0_2:
	movss	4(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
LBB0_3:
	movq	24(%rax), %rdx
	movq	_DC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movss	(%rcx), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	ucomiss	%xmm3, %xmm0
	movq	_SLIDER_WIDTH@GOTPCREL(%rip), %rsi
	movss	(%rsi), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm2
	ja	LBB0_6
## %bb.4:
	movaps	%xmm0, %xmm4
	addss	%xmm1, %xmm4
	ucomiss	%xmm4, %xmm3
	movaps	%xmm3, %xmm2
	jbe	LBB0_6
## %bb.5:
	movaps	%xmm4, %xmm2
LBB0_6:
	subss	%xmm0, %xmm2
	divss	%xmm1, %xmm2
	movss	(%rdx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	4(%rdx), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	mulss	%xmm2, %xmm0
	addss	%xmm1, %xmm0
	movq	8(%rcx), %r14
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_va
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DC,8,3                         ## @DC
	.comm	_SLIDER_WIDTH,4,2               ## @SLIDER_WIDTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%f"

	.no_dead_strip	_Scroll_Slider_ThumbFunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Scroll_Slider_ThumbFunc
_Scroll_Slider_ThumbFunc:               ; @Scroll_Slider_ThumbFunc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0]
	ldp	x10, x9, [x8, #16]
	cbz	x10, LBB0_2
; %bb.1:
	ldp	w10, w11, [x8, #8]
	add	w10, w10, w11
	add	w10, w10, #8
	scvtf	s0, w10
	b	LBB0_3
LBB0_2:
	ldr	s0, [x8, #4]
LBB0_3:
Lloh0:
	adrp	x10, _DC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DC@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	s2, [x10]
Lloh3:
	adrp	x11, _SLIDER_WIDTH@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SLIDER_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	s1, [x11]
	fcmp	s2, s0
	fmov	s3, s0
	b.mi	LBB0_6
; %bb.4:
	fadd	s4, s0, s1
	fcmp	s2, s4
	fmov	s3, s2
	b.le	LBB0_6
; %bb.5:
	fmov	s3, s4
LBB0_6:
	fsub	s0, s3, s0
	fdiv	s0, s0, s1
	ldp	s1, s2, [x9]
	fsub	s1, s1, s2
	fmul	s0, s0, s1
	fadd	s0, s2, s0
	ldr	x0, [x10, #8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w19, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_va
	mov	x1, x0
	mov	x0, x19
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	br	x2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DC,8,3                         ; @DC
	.comm	_SLIDER_WIDTH,4,2               ; @SLIDER_WIDTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%f"

	.no_dead_strip	_Scroll_Slider_ThumbFunc
.subsections_via_symbols
