	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rating_incr                    ## -- Begin function rating_incr
	.p2align	4, 0x90
_rating_incr:                           ## @rating_incr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_fading@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_ratingT@GOTPCREL(%rip), %rax
	subl	(%rax), %edx
	movq	_RATING_NORM@GOTPCREL(%rip), %rcx
	movl	%edx, %eax
	cltd
	idivl	(%rcx)
	movl	%eax, %edi
	callq	_expf
	imull	%r14d, %eax
	addl	(%rbx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	(%rbx), %eax
	leal	(%r14,%rax), %ecx
	addl	$-128, %ecx
	movl	%ecx, (%rbx)
	movq	_MAX_RATING@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	cmpl	%eax, %ecx
	cmovgl	%ecx, %eax
	movl	%eax, (%rbx)
	movl	(%rdx), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
LBB0_3:
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fading,8,3                     ## @fading
	.comm	_ratingT,4,2                    ## @ratingT
	.comm	_RATING_NORM,4,2                ## @RATING_NORM
	.comm	_MAX_RATING,4,2                 ## @MAX_RATING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rating_incr                    ; -- Begin function rating_incr
	.p2align	2
_rating_incr:                           ; @rating_incr
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _fading@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fading@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ratingT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ratingT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w8, w2, w8
Lloh6:
	adrp	x9, _RATING_NORM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RATING_NORM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sdiv	w0, w8, w9
	bl	_expf
	ldr	w8, [x19]
	madd	w8, w0, w20, w8
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19]
	add	w8, w20, w8
	sub	w8, w8, #128
	str	w8, [x19]
Lloh9:
	adrp	x9, _MAX_RATING@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAX_RATING@GOTPAGEOFF]
	ldr	w10, [x9]
	neg	w11, w10
	cmp	w8, w11
	csneg	w8, w8, w10, gt
	str	w8, [x19]
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lt
LBB0_3:
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_fading,8,3                     ; @fading
	.comm	_ratingT,4,2                    ; @ratingT
	.comm	_RATING_NORM,4,2                ; @RATING_NORM
	.comm	_MAX_RATING,4,2                 ; @MAX_RATING
.subsections_via_symbols
