	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function user_do_change
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_user_do_change
	.p2align	4, 0x90
_user_do_change:                        ## @user_do_change
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	(%rsi), %r15d
	cmpl	$0, 4(%rsi)
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r14
	js	LBB0_14
## %bb.2:
	cmpl	$256, %r15d                     ## imm = 0x100
	jl	LBB0_20
## %bb.3:
	leal	-256(%r15), %r12d
	movl	20(%r14), %ebx
	cmpl	$256, %r15d                     ## imm = 0x100
	setne	%al
	cmpl	$512, %r15d                     ## imm = 0x200
	setb	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	leal	-1(%rbx), %eax
	xorl	%edi, %edi
	cmpl	$255, %eax
	setb	%dil
	callq	_assert
	movl	4(%r14), %edx
	movq	%r13, %rdi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %esi
	callq	_user_get_object_local_id
	movl	%eax, %r12d
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_5:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_user_has_local_object
	testq	%rax, %rax
	je	LBB0_54
## %bb.6:
	movq	$0, -64(%rbp)
	movq	$0, -96(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -100(%rbp)
	movl	%ebx, -104(%rbp)
	movq	24(%r14), %rax
	movq	%rax, -80(%rbp)
	movl	32(%r14), %eax
	movl	%eax, -72(%rbp)
	leaq	-104(%rbp), %rsi
	movq	%r13, %rdi
	callq	_user_do_change
	movl	4(%r14), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_user_get_object_local_id
	testl	%eax, %eax
	je	LBB0_54
## %bb.7:
	movl	%eax, %r14d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_rating_num@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%r12d, %r15d
	movq	%rax, %r12
	callq	_user_get_object_rating
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_user_get_object_rating
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rax)
	movq	%r12, %rax
	movl	%r15d, %r12d
	incl	%ebx
	cmpl	(%rax), %ebx
	jl	LBB0_9
LBB0_10:
	movl	$256, %eax                      ## imm = 0x100
	subl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -104(%rbp)
	leaq	-104(%rbp), %rsi
	movq	%r13, %rdi
	callq	_user_do_change
	jmp	LBB0_54
LBB0_11:
	testl	%r15d, %r15d
	je	LBB0_26
## %bb.12:
	decl	%r15d
	cmpl	$1, %r15d
	ja	LBB0_32
## %bb.13:
	movl	48(%r13), %edi
	movl	%r15d, %esi
	callq	_SET_USER_RATING_STATE
	movl	%eax, 48(%r13)
	jmp	LBB0_54
LBB0_14:
	movl	48(%r13), %edi
	callq	_GET_USER_RATING_STATE
	testq	%rax, %rax
	je	LBB0_54
## %bb.15:
	leal	255(%r15), %r12d
	testl	%r15d, %r15d
	cmovnsl	%r15d, %r12d
	xorl	%ebx, %ebx
	subl	4(%r14), %ebx
	movl	%r12d, %eax
	andl	$-256, %eax
	subl	%eax, %r15d
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_user_has_object
	movq	_verbosity@GOTPCREL(%rip), %rcx
	cmpl	$2, (%rcx)
	jl	LBB0_17
## %bb.16:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %ebx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_fprintf
	movl	%ebx, %eax
LBB0_17:
	testl	%eax, %eax
	je	LBB0_54
## %bb.18:
	sarl	$8, %r12d
	movq	_MAX_RATING_NUM@GOTPCREL(%rip), %rbx
	movl	%r12d, %edx
	subl	(%rbx), %edx
	jge	LBB0_37
## %bb.19:
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_user_get_object_rating
	movl	20(%r14), %esi
	movq	24(%r14), %rdx
	movq	%rax, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rating_incr                    ## TAILCALL
LBB0_20:
	movl	%r15d, %ebx
	negl	%ebx
	cmovsl	%r15d, %ebx
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	sete	%dil
	callq	_assert
	movl	4(%r14), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	testl	%r15d, %r15d
	js	LBB0_33
## %bb.21:
	callq	_user_get_object_local_id
	movl	%eax, %r15d
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_23
## %bb.22:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_23:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_user_has_local_object
	testq	%rax, %rax
	jne	LBB0_54
## %bb.24:
	testl	%r15d, %r15d
	je	LBB0_39
LBB0_25:
	movq	%r13, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_user_upd_object_size           ## TAILCALL
LBB0_26:
	movl	40(%r13), %r14d
	addl	(%r13), %r14d
	cmpl	$2, %r14d
	jl	LBB0_54
## %bb.27:
	movq	_rating_num@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	cmpl	$3, %r12d
	jl	LBB0_54
LBB0_29:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	movl	%r14d, %r12d
	leal	-1(%r12), %r14d
	testl	%eax, %eax
	jle	LBB0_28
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_user_get_object_rating
	movl	$0, (%rax)
	incl	%ebx
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	jl	LBB0_31
	jmp	LBB0_28
LBB0_32:
	xorl	%edi, %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
LBB0_33:
	callq	_user_has_object
	movl	%eax, %r15d
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_35
## %bb.34:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_35:
	testl	%r15d, %r15d
	je	LBB0_54
## %bb.36:
	addq	$36, %r13
	leal	(%r15,%r15), %esi
	incl	%esi
	movq	%r13, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chg_del                        ## TAILCALL
LBB0_37:
	movq	_fading@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_50
## %bb.38:
	movq	24(%r14), %rdx
	movq	_ratingT@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rdx
	cvtsi2ss	%rdx, %xmm0
	movl	16(%r14), %r14d
	movq	_RATING_NORM@GOTPCREL(%rip), %rcx
	divss	(%rcx), %xmm0
	movl	%eax, %r15d
	callq	_expf
	imull	%r14d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	subl	(%rbx), %r12d
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_user_get_object_rating
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_53
LBB0_39:
	movl	(%r13), %eax
	movl	40(%r13), %ecx
	addl	%ecx, %eax
	incl	%eax
	movq	_MAX_CNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_max_cnt_type@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movl	%ebx, %edi
	xorl	%edx, %edx
	cmpl	%ecx, (%rsi,%rdi,4)
	jge	LBB0_41
## %bb.40:
	movslq	%ecx, %rdx
	imulq	$-1717986919, %rdx, %rdx        ## imm = 0x99999999
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$34, %rdx
	addl	%esi, %edx
LBB0_41:
	addl	%ecx, %edx
	cmpl	%edx, %eax
	jge	LBB0_54
## %bb.42:
	leaq	40(%r13), %r15
	movl	4(%r14), %esi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_TYPE_ID
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ltbl_add
	movl	%eax, %r12d
	addl	(%r13), %r12d
	movq	%r13, %rdi
	callq	_user_upd_object_size
	movq	_fading@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_46
## %bb.43:
	movq	_rating_num@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_46
## %bb.44:
	xorl	%ebx, %ebx
LBB0_45:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movq	%rax, %r15
	callq	_user_get_object_rating
	movq	24(%r14), %rdx
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_rating_incr
	movq	%r15, %rax
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_45
LBB0_46:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	$10, %edx
	jne	LBB0_48
## %bb.47:
	movq	_friend_changes@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_48:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_25
## %bb.49:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_25
LBB0_50:
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_user_get_object_rating
	cvtsi2ssl	16(%r14), %xmm1
	movss	%xmm1, (%rax)
	movq	_MAX_RATING@GOTPCREL(%rip), %rcx
	movss	(%rcx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movaps	LCPI0_0(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm0, %xmm2
	ucomiss	%xmm1, %xmm2
	jbe	LBB0_52
## %bb.51:
	movss	%xmm2, (%rax)
	movss	(%rcx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm1
LBB0_52:
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_54
LBB0_53:
	movss	%xmm0, (%rax)
LBB0_54:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rating_num,4,2                 ## @rating_num
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Incrementing object of type %d, object_id = %d, local_id = %d\n"

	.comm	_MAX_RATING_NUM,4,2             ## @MAX_RATING_NUM
	.comm	_fading,8,3                     ## @fading
	.comm	_ratingT,8,3                    ## @ratingT
	.comm	_RATING_NORM,4,2                ## @RATING_NORM
	.comm	_MAX_RATING,4,2                 ## @MAX_RATING
L_.str.1:                               ## @.str.1
	.asciz	"Changing type of object with type %d, object_id = %d, local_id = %d to type %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Deleting object of type %d, object_id = %d, local_id = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Adding object of type %d, object_id = %d, local_id = %d\n"

	.comm	_MAX_CNT,4,2                    ## @MAX_CNT
	.comm	_max_cnt_type,8,3               ## @max_cnt_type
	.comm	_friend_changes,4,2             ## @friend_changes
	.comm	_MEM_FLAG,4,2                   ## @MEM_FLAG
	.comm	_add_on_increment,8,3           ## @add_on_increment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_do_change                 ; -- Begin function user_do_change
	.p2align	2
_user_do_change:                        ; @user_do_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	mov	x19, x0
	ldp	w24, w8, [x1]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x20, x1
	tbnz	w8, #31, LBB0_14
; %bb.2:
	subs	w23, w24, #256
	b.lt	LBB0_20
; %bb.3:
	ldr	w22, [x20, #20]
	mov	w8, #512
	ccmp	w24, w8, #2, ne
	cset	w0, lo
	bl	_assert
	sub	w8, w22, #1
	cmp	w8, #255
	cset	w0, lo
	bl	_assert
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	x1, x23
	bl	_user_get_object_local_id
	mov	x21, x0
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w3, [x20, #4]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x22, [sp]
	mov	x2, x23
	mov	x4, x21
	bl	_fprintf
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_user_has_local_object
	cbz	x0, LBB0_52
; %bb.6:
	str	xzr, [sp, #56]
	ldr	w8, [x20, #4]
	stp	w22, w8, [sp, #16]
	ldr	x8, [x20, #24]
	str	xzr, [sp, #24]
	str	x8, [sp, #40]
	ldr	w8, [x20, #32]
	str	w8, [sp, #48]
	add	x1, sp, #16
	mov	x0, x19
	bl	_user_do_change
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	x1, x22
	bl	_user_get_object_local_id
	cbz	w0, LBB0_52
; %bb.7:
Lloh8:
	adrp	x23, _rating_num@GOTPAGE
Lloh9:
	ldr	x23, [x23, _rating_num@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x20, x0
	mov	w22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_user_get_object_rating
	ldr	s8, [x0]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_user_get_object_rating
	str	s8, [x0]
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.lt	LBB0_9
LBB0_10:
	mov	w8, #256
	sub	w8, w8, w24
	str	w8, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_user_do_change
	b	LBB0_52
LBB0_11:
	cbz	w24, LBB0_26
; %bb.12:
	sub	w1, w24, #1
	cmp	w1, #1
	b.hi	LBB0_32
; %bb.13:
	ldr	w0, [x19, #48]
	bl	_SET_USER_RATING_STATE
	str	w0, [x19, #48]
	b	LBB0_52
LBB0_14:
	ldr	w0, [x19, #48]
	bl	_GET_USER_RATING_STATE
	cbz	x0, LBB0_52
; %bb.15:
	add	w8, w24, #255
	cmp	w24, #0
	csel	w25, w8, w24, lt
	ldr	w8, [x20, #4]
	neg	w22, w8
	and	w8, w25, #0xffffff00
	sub	w23, w24, w8
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_user_has_object
	mov	x21, x0
Lloh10:
	adrp	x8, _verbosity@GOTPAGE
Lloh11:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_17
; %bb.16:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_fprintf
LBB0_17:
	cbz	w21, LBB0_52
; %bb.18:
	asr	w22, w25, #8
Lloh18:
	adrp	x23, _MAX_RATING_NUM@GOTPAGE
Lloh19:
	ldr	x23, [x23, _MAX_RATING_NUM@GOTPAGEOFF]
	ldr	w8, [x23]
	subs	w2, w22, w8
	b.ge	LBB0_37
; %bb.19:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_user_get_object_rating
	ldr	w1, [x20, #20]
	ldr	x2, [x20, #24]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_rating_incr
LBB0_20:
	cmp	w24, #0
	cneg	w21, w24, mi
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	x1, x21
	tbnz	w24, #31, LBB0_33
; %bb.21:
	bl	_user_get_object_local_id
	mov	x22, x0
Lloh20:
	adrp	x24, _verbosity@GOTPAGE
Lloh21:
	ldr	x24, [x24, _verbosity@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_23
; %bb.22:
Lloh22:
	adrp	x8, _stderr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w3, [x20, #4]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	mov	x4, x22
	bl	_fprintf
LBB0_23:
	mov	x0, x19
	mov	x1, x22
	bl	_user_has_local_object
	cbnz	x0, LBB0_52
; %bb.24:
	cbz	w22, LBB0_39
LBB0_25:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_user_upd_object_size
LBB0_26:
	ldr	w8, [x19]
	ldr	w9, [x19, #40]
	add	w20, w9, w8
	cmp	w20, #2
	b.lt	LBB0_52
; %bb.27:
Lloh27:
	adrp	x22, _rating_num@GOTPAGE
Lloh28:
	ldr	x22, [x22, _rating_num@GOTPAGEOFF]
	ldr	w8, [x22]
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	cmp	w23, #3
	b.lt	LBB0_52
LBB0_29:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_31 Depth 2
	mov	x23, x20
	sub	w20, w20, #1
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	w21, #0
LBB0_31:                                ;   Parent Loop BB0_29 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_user_get_object_rating
	str	wzr, [x0]
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.lt	LBB0_31
	b	LBB0_28
LBB0_32:
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_assert
LBB0_33:
	bl	_user_has_object
	mov	x22, x0
Lloh29:
	adrp	x8, _verbosity@GOTPAGE
Lloh30:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_35
; %bb.34:
Lloh32:
	adrp	x8, _stderr@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldr	w3, [x20, #4]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	mov	x4, x22
	bl	_fprintf
LBB0_35:
	cbz	w22, LBB0_52
; %bb.36:
	add	x0, x19, #36
	mov	w1, #1
	bfi	w1, w22, #1, #31
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_chg_del
LBB0_37:
Lloh37:
	adrp	x8, _fading@GOTPAGE
Lloh38:
	ldr	x8, [x8, _fading@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	cbz	x8, LBB0_48
; %bb.38:
	ldr	w24, [x20, #16]
	ldr	x8, [x20, #24]
Lloh40:
	adrp	x9, _ratingT@GOTPAGE
Lloh41:
	ldr	x9, [x9, _ratingT@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	sub	x8, x8, x9
	scvtf	s0, x8
Lloh43:
	adrp	x8, _RATING_NORM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _RATING_NORM@GOTPAGEOFF]
Lloh45:
	ldr	s1, [x8]
	fdiv	s0, s0, s1
	bl	_expf
	mul	w8, w0, w24
	scvtf	s8, w8
	ldr	w8, [x23]
	sub	w2, w22, w8
	mov	x0, x19
	mov	x1, x21
	bl	_user_get_object_rating
	str	s8, [x0]
	b	LBB0_52
LBB0_39:
	ldr	w8, [x19]
	mov	x22, x19
	ldr	w9, [x22, #40]!
	add	w8, w8, w9
	add	w8, w8, #1
Lloh46:
	adrp	x9, _MAX_CNT@GOTPAGE
Lloh47:
	ldr	x9, [x9, _MAX_CNT@GOTPAGEOFF]
Lloh48:
	ldrsw	x9, [x9]
Lloh49:
	adrp	x10, _max_cnt_type@GOTPAGE
Lloh50:
	ldr	x10, [x10, _max_cnt_type@GOTPAGEOFF]
Lloh51:
	ldr	x10, [x10]
	ldr	w10, [x10, w21, uxtw #2]
	mov	x11, #-26215
	movk	x11, #39321, lsl #16
	mul	x11, x9, x11
	lsr	x12, x11, #63
	asr	x11, x11, #34
	add	w11, w11, w12
	cmp	w10, w9
	csel	w10, w11, wzr, lt
	add	w9, w10, w9
	cmp	w8, w9
	b.ge	LBB0_52
; %bb.40:
	ldr	w1, [x20, #4]
	mov	x0, x21
	bl	_TYPE_ID
	mov	x1, x0
	mov	x0, x22
	bl	_ltbl_add
	ldr	w8, [x19]
	add	w22, w8, w0
	mov	x0, x19
	bl	_user_upd_object_size
Lloh52:
	adrp	x8, _fading@GOTPAGE
Lloh53:
	ldr	x8, [x8, _fading@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	cbz	x8, LBB0_44
; %bb.41:
Lloh55:
	adrp	x25, _rating_num@GOTPAGE
Lloh56:
	ldr	x25, [x25, _rating_num@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_44
; %bb.42:
	mov	w23, #0
LBB0_43:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_user_get_object_rating
	ldr	x2, [x20, #24]
	mov	w1, #1
	bl	_rating_incr
	add	w23, w23, #1
	ldr	w8, [x25]
	cmp	w23, w8
	b.lt	LBB0_43
LBB0_44:
	cmp	w21, #10
	b.ne	LBB0_46
; %bb.45:
Lloh57:
	adrp	x8, _friend_changes@GOTPAGE
Lloh58:
	ldr	x8, [x8, _friend_changes@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_46:
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_25
; %bb.47:
Lloh59:
	adrp	x8, _stderr@GOTPAGE
Lloh60:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	ldr	w3, [x20, #4]
Lloh62:
	adrp	x1, l_.str.3@PAGE
Lloh63:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	mov	x4, x22
	bl	_fprintf
	b	LBB0_25
LBB0_48:
	mov	x0, x19
	mov	x1, x21
	bl	_user_get_object_rating
	ldr	s0, [x20, #16]
	scvtf	s1, s0
	str	s1, [x0]
Lloh64:
	adrp	x8, _MAX_RATING@GOTPAGE
Lloh65:
	ldr	x8, [x8, _MAX_RATING@GOTPAGEOFF]
	ldr	s0, [x8]
	fneg	s2, s0
	fcmp	s1, s2
	b.pl	LBB0_50
; %bb.49:
	str	s2, [x0]
	ldr	s0, [x8]
	fmov	s1, s2
LBB0_50:
	fcmp	s1, s0
	b.le	LBB0_52
; %bb.51:
	str	s0, [x0]
LBB0_52:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.comm	_rating_num,4,2                 ; @rating_num
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Incrementing object of type %d, object_id = %d, local_id = %d\n"

	.comm	_MAX_RATING_NUM,4,2             ; @MAX_RATING_NUM
	.comm	_fading,8,3                     ; @fading
	.comm	_ratingT,8,3                    ; @ratingT
	.comm	_RATING_NORM,4,2                ; @RATING_NORM
	.comm	_MAX_RATING,4,2                 ; @MAX_RATING
l_.str.1:                               ; @.str.1
	.asciz	"Changing type of object with type %d, object_id = %d, local_id = %d to type %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Deleting object of type %d, object_id = %d, local_id = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Adding object of type %d, object_id = %d, local_id = %d\n"

	.comm	_MAX_CNT,4,2                    ; @MAX_CNT
	.comm	_max_cnt_type,8,3               ; @max_cnt_type
	.comm	_friend_changes,4,2             ; @friend_changes
	.comm	_MEM_FLAG,4,2                   ; @MEM_FLAG
	.comm	_add_on_increment,8,3           ; @add_on_increment
.subsections_via_symbols
