	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TRACKBAR_GetTicPos
_TRACKBAR_GetTicPos:                    ## @TRACKBAR_GetTicPos
	.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
	movl	$-1, %eax
	testq	%rsi, %rsi
	js	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	cmpq	%rsi, (%rdi)
	jle	LBB0_4
## %bb.2:
	cmpl	$0, 32(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_TRACKBAR_GetTic
	movl	8(%rbx), %ecx
	subl	12(%rbx), %ecx
	cmpl	$2, %ecx
	movl	$1, %r8d
	cmovgel	%ecx, %r8d
	movl	16(%rbx), %ecx
	movl	24(%rbx), %edx
	subl	28(%rbx), %edx
	movl	%edx, %edi
	shrl	$31, %edi
	addl	%edx, %edi
	movl	%edi, %esi
	sarl	%esi
	movl	20(%rbx), %edx
	subl	%edx, %ecx
	andl	$-2, %edi
	subl	%edi, %ecx
	addl	%edx, %esi
	imull	%ecx, %eax
	cltd
	idivl	%r8d
	addl	%esi, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_TRACKBAR_GetTicPos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TRACKBAR_GetTicPos
_TRACKBAR_GetTicPos:                    ; @TRACKBAR_GetTicPos
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [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 w19, -24
	.cfi_offset w20, -32
	tbnz	x1, #63, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, x1
	b.le	LBB0_4
; %bb.2:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_TRACKBAR_GetTic
	ldp	w8, w9, [x19, #8]
	sub	w8, w8, w9
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	ldp	w9, w10, [x19, #24]
	sub	w9, w9, w10
	cmp	w9, #0
	cinc	w9, w9, lt
	ldp	w10, w11, [x19, #16]
	and	w12, w9, #0xfffffffe
	sub	w10, w10, w11
	sub	w10, w10, w12
	add	w9, w11, w9, asr #1
	mul	w10, w10, w0
	sdiv	w8, w10, w8
	add	w0, w9, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_TRACKBAR_GetTicPos
.subsections_via_symbols
