	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function votrax_process
_votrax_process:                        ## @votrax_process
	.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
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r12
	leal	-1(%r15), %eax
	cvtsi2sd	%eax, %xmm0
	movq	_ratio@GOTPCREL(%rip), %r13
	mulsd	(%r13), %xmm0
	addsd	_votrax_process.startpos(%rip), %xmm0
	cvttsd2si	%xmm0, %r14d
	movl	_votrax_process.have(%rip), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.1:
	cmpl	$1, %edx
	je	LBB0_4
## %bb.2:
	cmpl	$2, %edx
	jne	LBB0_5
## %bb.3:
	movl	_votrax_process.last_sample(%rip), %eax
	movl	%eax, (%rbx)
	movl	_votrax_process.last_sample2(%rip), %eax
	movl	%eax, 4(%rbx)
	leaq	8(%rbx), %rsi
	xorl	%edi, %edi
	movl	%r14d, %edx
	jmp	LBB0_8
LBB0_4:
	movl	_votrax_process.last_sample(%rip), %eax
	movl	%eax, (%rbx)
	leaq	4(%rbx), %rsi
	leal	1(%r14), %edx
	xorl	%edi, %edi
	jmp	LBB0_8
LBB0_5:
	testl	%edx, %edx
	jns	LBB0_9
## %bb.6:
	negl	%edx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_Votrax_Update
LBB0_7:
	leal	2(%r14), %edx
	xorl	%edi, %edi
	movq	%rbx, %rsi
LBB0_8:
	callq	_Votrax_Update
LBB0_9:
	movsd	_votrax_process.startpos(%rip), %xmm0 ## xmm0 = mem[0],zero
	movsd	(%r13), %xmm1                   ## xmm1 = mem[0],zero
	testl	%r15d, %r15d
	jle	LBB0_12
## %bb.10:
	movl	%r15d, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorps	%xmm2, %xmm2
	cvtsi2sd	%ecx, %xmm2
	mulsd	%xmm1, %xmm2
	addsd	%xmm0, %xmm2
	cvttsd2si	%xmm2, %edx
	cvttpd2dq	%xmm2, %xmm3
	cvtdq2pd	%xmm3, %xmm3
	subsd	%xmm3, %xmm2
	movslq	%edx, %rdx
	movl	(%rbx,%rdx,4), %esi
	xorps	%xmm3, %xmm3
	cvtsi2sd	%esi, %xmm3
	movl	4(%rbx,%rdx,4), %edx
	subl	%esi, %edx
	xorps	%xmm4, %xmm4
	cvtsi2sd	%edx, %xmm4
	mulsd	%xmm2, %xmm4
	addsd	%xmm3, %xmm4
	cvttsd2si	%xmm4, %edx
	movl	%edx, (%r12,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_11
LBB0_12:
	xorps	%xmm2, %xmm2
	cvtsi2sd	%r15d, %xmm2
	mulsd	%xmm1, %xmm2
	addsd	%xmm0, %xmm2
	cvttsd2si	%xmm2, %eax
	cvttpd2dq	%xmm2, %xmm0
	cvtdq2pd	%xmm0, %xmm0
	subsd	%xmm0, %xmm2
	movsd	%xmm2, _votrax_process.startpos(%rip)
	movl	%eax, %ecx
	subl	%r14d, %ecx
	jne	LBB0_14
## %bb.13:
	movl	$2, _votrax_process.have(%rip)
	movslq	%r14d, %rax
	movl	(%rbx,%rax,4), %ecx
	movl	%ecx, _votrax_process.last_sample(%rip)
	movl	4(%rbx,%rax,4), %eax
	movl	%eax, _votrax_process.last_sample2(%rip)
	jmp	LBB0_17
LBB0_14:
	incl	%r14d
	cmpl	%eax, %r14d
	jne	LBB0_16
## %bb.15:
	movl	$1, _votrax_process.have(%rip)
	movslq	%r14d, %rax
	movl	(%rbx,%rax,4), %eax
	movl	%eax, _votrax_process.last_sample(%rip)
	jmp	LBB0_17
LBB0_16:
	addl	$-2, %ecx
	movl	%ecx, _votrax_process.have(%rip)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_votrax_process.last_sample,4,2 ## @votrax_process.last_sample
.zerofill __DATA,__bss,_votrax_process.last_sample2,4,2 ## @votrax_process.last_sample2
.zerofill __DATA,__bss,_votrax_process.startpos,8,3 ## @votrax_process.startpos
.zerofill __DATA,__bss,_votrax_process.have,4,2 ## @votrax_process.have
	.comm	_ratio,8,3                      ## @ratio
	.no_dead_strip	_votrax_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function votrax_process
_votrax_process:                        ; @votrax_process
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	adrp	x24, _votrax_process.startpos@PAGE
	ldr	d0, [x24, _votrax_process.startpos@PAGEOFF]
	sub	w8, w1, #1
	scvtf	d1, w8
Lloh0:
	adrp	x25, _ratio@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ratio@GOTPAGEOFF]
	ldr	d2, [x25]
	fmadd	d0, d1, d2, d0
	fcvtzs	w20, d0
	adrp	x23, _votrax_process.have@PAGE
	ldr	w8, [x23, _votrax_process.have@PAGEOFF]
	cbz	w8, LBB0_7
; %bb.1:
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _votrax_process.last_sample@PAGE
Lloh3:
	ldr	w8, [x8, _votrax_process.last_sample@PAGEOFF]
	str	w8, [x19]
Lloh4:
	adrp	x8, _votrax_process.last_sample2@PAGE
Lloh5:
	ldr	w8, [x8, _votrax_process.last_sample2@PAGEOFF]
	str	w8, [x19, #4]
	add	x1, x19, #8
	mov	w0, #0
	mov	x2, x20
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _votrax_process.last_sample@PAGE
Lloh7:
	ldr	w8, [x8, _votrax_process.last_sample@PAGEOFF]
	mov	x1, x19
	str	w8, [x1], #4
	add	w2, w20, #1
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	tbz	w8, #31, LBB0_9
; %bb.6:
	neg	w2, w8
	mov	w0, #0
	mov	x1, x19
	bl	_Votrax_Update
LBB0_7:
	add	w2, w20, #2
	mov	w0, #0
	mov	x1, x19
LBB0_8:
	bl	_Votrax_Update
LBB0_9:
	ldr	d0, [x24, _votrax_process.startpos@PAGEOFF]
	ldr	d1, [x25]
	cmp	w21, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x8, #0
	mov	w9, w21
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	scvtf	d2, w8
	fmadd	d2, d2, d1, d0
	fcvtzs	w10, d2
	add	x11, x19, w10, sxtw #2
	scvtf	d3, w10
	fsub	d2, d2, d3
	ldp	w10, w11, [x11]
	scvtf	d3, w10
	sub	w10, w11, w10
	scvtf	d4, w10
	fmadd	d2, d2, d4, d3
	fcvtzs	w10, d2
	str	w10, [x22, x8, lsl #2]
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_11
LBB0_12:
	scvtf	d2, w21
	fmadd	d0, d2, d1, d0
	fcvtzs	w8, d0
	scvtf	d1, w8
	fsub	d0, d0, d1
	str	d0, [x24, _votrax_process.startpos@PAGEOFF]
	subs	w9, w8, w20
	b.ne	LBB0_14
; %bb.13:
	mov	w8, #2
	str	w8, [x23, _votrax_process.have@PAGEOFF]
	add	x8, x19, w20, sxtw #2
	ldr	w9, [x8]
	adrp	x10, _votrax_process.last_sample@PAGE
	str	w9, [x10, _votrax_process.last_sample@PAGEOFF]
	ldr	w8, [x8, #4]
	adrp	x9, _votrax_process.last_sample2@PAGE
	str	w8, [x9, _votrax_process.last_sample2@PAGEOFF]
	b	LBB0_17
LBB0_14:
	sxtw	x10, w20
	add	x10, x10, #1
	cmp	w10, w8
	b.ne	LBB0_16
; %bb.15:
	mov	w8, #1
	str	w8, [x23, _votrax_process.have@PAGEOFF]
	ldr	w8, [x19, x10, lsl #2]
	adrp	x9, _votrax_process.last_sample@PAGE
	str	w8, [x9, _votrax_process.last_sample@PAGEOFF]
	b	LBB0_17
LBB0_16:
	sub	w8, w9, #2
	str	w8, [x23, _votrax_process.have@PAGEOFF]
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdr	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_votrax_process.last_sample,4,2 ; @votrax_process.last_sample
.zerofill __DATA,__bss,_votrax_process.last_sample2,4,2 ; @votrax_process.last_sample2
.zerofill __DATA,__bss,_votrax_process.startpos,8,3 ; @votrax_process.startpos
.zerofill __DATA,__bss,_votrax_process.have,4,2 ; @votrax_process.have
	.comm	_ratio,8,3                      ; @ratio
	.no_dead_strip	_votrax_process
.subsections_via_symbols
