	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function get_rating
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x3f317218                      ## float 0.693147182
LCPI0_3:
	.long	0x41200000                      ## float 10
LCPI0_4:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_2:
	.quad	0x3ff4cccccccccccd              ## double 1.3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_get_rating
	.p2align	4, 0x90
_get_rating:                            ## @get_rating
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ratings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movss	(%rax,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_0(%rip), %xmm0
	callq	_logf
	divss	LCPI0_1(%rip), %xmm0
	movq	_translit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cvtss2sd	%xmm0, %xmm0
	divsd	LCPI0_2(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
LBB0_2:
	movq	_diff@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	$-1, %edx
	je	LBB0_5
## %bb.3:
	movq	_len@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rdx,%rcx,2), %edx
	incl	%edx
	cvtsi2ss	%edx, %xmm1
	leal	(%rcx,%rcx,2), %edx
	leal	3(%rdx,%rdx), %edx
	cvtsi2ss	%edx, %xmm2
	mulss	%xmm1, %xmm0
	divss	%xmm2, %xmm0
	cmpl	$6, %ecx
	jg	LBB0_5
## %bb.4:
	movl	$7, %edx
	subl	%ecx, %edx
	xorps	%xmm1, %xmm1
	cvtsi2ss	%edx, %xmm1
	divss	%xmm1, %xmm0
LBB0_5:
	movq	_try@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_8
## %bb.6:
	divss	LCPI0_3(%rip), %xmm0
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	mulss	LCPI0_4(%rip), %xmm0
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ratings,8,3                    ## @ratings
	.comm	_translit,8,3                   ## @translit
	.comm	_diff,4,2                       ## @diff
	.comm	_len,4,2                        ## @len
	.comm	_try,8,3                        ## @try
	.comm	_A,4,2                          ## @A
	.comm	_B,4,2                          ## @B
	.comm	_prob,8,3                       ## @prob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_rating                     ; -- Begin function get_rating
	.p2align	2
_get_rating:                            ; @get_rating
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _ratings@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ratings@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	s0, [x8, w0, sxtw #2]
	fmov	s1, #1.00000000
	fadd	s0, s0, s1
	bl	_logf
	mov	w8, #29208
	movk	w8, #16177, lsl #16
	fmov	s1, w8
Lloh3:
	adrp	x8, _translit@GOTPAGE
Lloh4:
	ldr	x8, [x8, _translit@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	fdiv	s0, s0, s1
	cbz	x8, LBB0_2
; %bb.1:
	fcvt	d0, s0
	mov	x9, #-3689348814741910324
	movk	x9, #52429
	movk	x9, #16372, lsl #48
	fmov	d1, x9
	fdiv	d0, d0, d1
	fcvt	s0, d0
LBB0_2:
Lloh6:
	adrp	x9, _diff@GOTPAGE
Lloh7:
	ldr	x9, [x9, _diff@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x9]
	cmn	w10, #1
	b.eq	LBB0_5
; %bb.3:
Lloh9:
	adrp	x9, _len@GOTPAGE
Lloh10:
	ldr	x9, [x9, _len@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	add	w10, w10, w9, lsl #1
	add	w10, w10, #1
	scvtf	s1, w10
	fmul	s0, s0, s1
	mov	w10, #6
	orr	w11, wzr, #0x3
	madd	w10, w9, w10, w11
	scvtf	s1, w10
	fdiv	s0, s0, s1
	cmp	w9, #6
	b.gt	LBB0_5
; %bb.4:
	mov	w10, #7
	sub	w9, w10, w9
	scvtf	s1, w9
	fdiv	s0, s0, s1
LBB0_5:
Lloh12:
	adrp	x9, _try@GOTPAGE
Lloh13:
	ldr	x9, [x9, _try@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cbz	x9, LBB0_7
; %bb.6:
	fmov	s1, #10.00000000
	fdiv	s0, s0, s1
	fmov	s1, #0.50000000
	fmul	s1, s0, s1
	cmp	x8, #0
	fcsel	s0, s0, s1, eq
LBB0_7:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ratings,8,3                    ; @ratings
	.comm	_translit,8,3                   ; @translit
	.comm	_diff,4,2                       ; @diff
	.comm	_len,4,2                        ; @len
	.comm	_try,8,3                        ; @try
	.comm	_A,4,2                          ; @A
	.comm	_B,4,2                          ; @B
	.comm	_prob,8,3                       ; @prob
.subsections_via_symbols
