	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ess_calc_best_speed
_ess_calc_best_speed:                   ## @ess_calc_best_speed
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	(%r9), %eax
	movl	%eax, -44(%rbp)
	movl	%eax, -56(%rbp)
	leaq	-44(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	callq	_ess_calc_div
	movl	%eax, %r15d
	leaq	-56(%rbp), %r14
	leaq	-48(%rbp), %rcx
	movl	%ebx, %edi
	movl	%r13d, %esi
	movq	%r14, %rdx
	callq	_ess_calc_div
	movl	-52(%rbp), %ecx
	orl	$128, %eax
	xorl	%edx, %edx
	cmpl	-48(%rbp), %ecx
	cmovll	%r15d, %eax
	setl	%dl
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	leaq	-44(%rbp), %rax
	cmovlq	%rax, %r14
	movl	$2, %eax
	subl	%edx, %eax
	movl	(%r14), %ecx
	movl	%ecx, (%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ess_calc_best_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ess_calc_best_speed
_ess_calc_best_speed:                   ; @ess_calc_best_speed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	ldr	w8, [x5]
	stp	w8, w8, [sp, #8]
	add	x24, sp, #12
	add	x2, sp, #12
	add	x3, sp, #4
	bl	_ess_calc_div
	mov	x23, x0
	add	x25, sp, #8
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x22
	mov	x1, x21
	bl	_ess_calc_div
	ldp	w9, w8, [sp]
	orr	w10, w0, #0x80
	cmp	w8, w9
	csel	w8, w23, w10, lt
	mov	w9, #1
	cinc	w0, w9, ge
	str	w8, [x20]
	csel	x8, x24, x25, lt
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ess_calc_best_speed
.subsections_via_symbols
