	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function evaluate_rating
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x3e112e0be826d695              ## double 1.0000000000000001E-9
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_evaluate_rating:                       ## @evaluate_rating
	.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	_word_title_weight_word_text_weight@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	movq	_sqr_word_title_weight@GOTPCREL(%rip), %rax
	mulsd	8(%rdi), %xmm1
	movsd	(%rax), %xmm2                   ## xmm2 = mem[0],zero
	mulsd	(%rdi), %xmm2
	addsd	%xmm1, %xmm2
	movq	_sqr_word_text_weight@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	16(%rdi), %xmm1
	addsd	%xmm2, %xmm1
	movsd	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero
	ucomisd	%xmm1, %xmm2
	jbe	LBB0_2
## %bb.1:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	jmp	LBB0_6
LBB0_2:
	sqrtsd	%xmm1, %xmm1
	movq	_QRW@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	divsd	%xmm1, %xmm0
	mulsd	(%rax), %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movq	_query_rate_weights@GOTPCREL(%rip), %r15
	cmpl	$2, (%r15)
	jl	LBB0_5
## %bb.3:
	movq	%rdi, %r12
	movl	$1, %r13d
	movl	$16, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rbx), %rsi
	movq	%r12, %rdi
	callq	*8(%rax,%rbx)
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movq	(%r14), %rax
	mulsd	(%rax,%rbx), %xmm0
	subsd	%xmm0, %xmm1
	incq	%r13
	movslq	(%r15), %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r13
	jl	LBB0_4
LBB0_5:
	xorpd	%xmm0, %xmm0
	maxsd	%xmm1, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	minsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sqr_word_title_weight,8,3      ## @sqr_word_title_weight
	.comm	_word_title_weight_word_text_weight,8,3 ## @word_title_weight_word_text_weight
	.comm	_sqr_word_text_weight,8,3       ## @sqr_word_text_weight
	.comm	_QRW,8,3                        ## @QRW
	.comm	_query_rate_weights,4,2         ## @query_rate_weights
	.no_dead_strip	_evaluate_rating
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evaluate_rating
_evaluate_rating:                       ; @evaluate_rating
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
Lloh0:
	adrp	x8, _sqr_word_title_weight@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sqr_word_title_weight@GOTPAGEOFF]
Lloh2:
	ldr	d1, [x8]
Lloh3:
	adrp	x8, _word_title_weight_word_text_weight@GOTPAGE
Lloh4:
	ldr	x8, [x8, _word_title_weight_word_text_weight@GOTPAGEOFF]
Lloh5:
	ldr	d2, [x8]
	ldp	d3, d4, [x0]
	fmul	d2, d2, d4
	fmadd	d1, d1, d3, d2
Lloh6:
	adrp	x8, _sqr_word_text_weight@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sqr_word_text_weight@GOTPAGEOFF]
Lloh8:
	ldr	d2, [x8]
	ldr	d3, [x0, #16]
	fmadd	d2, d2, d3, d1
	fmov	d1, #1.00000000
	mov	x8, #54933
	movk	x8, #59430, lsl #16
	movk	x8, #11787, lsl #32
	movk	x8, #15889, lsl #48
	fmov	d3, x8
	fcmp	d2, d3
	b.mi	LBB0_5
; %bb.1:
	fsqrt	d1, d2
Lloh9:
	adrp	x20, _QRW@GOTPAGE
Lloh10:
	ldr	x20, [x20, _QRW@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	d2, [x8]
	fneg	d0, d0
	fdiv	d0, d0, d1
	fmov	d8, #1.00000000
	fmadd	d9, d0, d2, d8
Lloh11:
	adrp	x21, _query_rate_weights@GOTPAGE
Lloh12:
	ldr	x21, [x21, _query_rate_weights@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w9, #2
	b.lt	LBB0_4
; %bb.2:
	mov	x19, x0
	mov	x22, #0
	mov	w23, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x22
	add	x1, x8, #16
	ldr	x8, [x8, #24]
	mov	x0, x19
	blr	x8
	ldr	x8, [x20]
	add	x9, x8, x22
	ldr	d1, [x9, #16]
	fmsub	d9, d0, d1, d9
	add	x23, x23, #1
	ldrsw	x9, [x21]
	add	x22, x22, #16
	cmp	x23, x9
	b.lt	LBB0_3
LBB0_4:
	movi	d0, #0000000000000000
	fmax	d0, d9, d0
	fmin	d1, d0, d8
LBB0_5:
	fmov	d0, d1
	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	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_sqr_word_title_weight,8,3      ; @sqr_word_title_weight
	.comm	_word_title_weight_word_text_weight,8,3 ; @word_title_weight_word_text_weight
	.comm	_sqr_word_text_weight,8,3       ; @sqr_word_text_weight
	.comm	_QRW,8,3                        ; @QRW
	.comm	_query_rate_weights,4,2         ; @query_rate_weights
	.no_dead_strip	_evaluate_rating
.subsections_via_symbols
