	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_user_object_rating         ## -- Begin function add_user_object_rating
	.p2align	4, 0x90
_add_user_object_rating:                ## @add_user_object_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_LEV_HINTS_ADD_USER_OBJECT_RATING@GOTPCREL(%rip), %rax
	movl	(%rdi), %ebx
	movl	4(%rdi), %r12d
	subl	(%rax), %ebx
	leal	(,%rbx,4), %eax
	subl	%eax, %r12d
	movl	%r12d, %edi
	callq	_check_text_len
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movl	20(%r15), %edi
	callq	_conv_user_id
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_user_add_object
	movl	%eax, %r13d
	movq	_rating_num@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.3:
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.4:
	movl	16(%r15), %eax
	addl	%r12d, %eax
	incl	%eax
	cltq
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %r12d
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cvttss2si	(%rax,%rbx,4), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %r8d
	callq	_user_set_object_rating
	movl	%eax, %r13d
	andl	%r12d, %r13d
	incq	%rbx
	movq	_rating_num@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r14, %rbx
	jb	LBB0_5
LBB0_7:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LEV_HINTS_ADD_USER_OBJECT_RATING,4,2 ## @LEV_HINTS_ADD_USER_OBJECT_RATING
	.comm	_rating_num,4,2                 ## @rating_num
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_user_object_rating         ; -- Begin function add_user_object_rating
	.p2align	2
_add_user_object_rating:                ; @add_user_object_rating
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _LEV_HINTS_ADD_USER_OBJECT_RATING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEV_HINTS_ADD_USER_OBJECT_RATING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x0]
	sub	w24, w9, w8
	sub	w23, w10, w24, lsl #2
	mov	x0, x23
	bl	_check_text_len
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w0, [x19, #20]
	bl	_conv_user_id
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldp	w2, w1, [x19, #8]
	bl	_user_add_object
	mov	x21, x0
Lloh3:
	adrp	x25, _rating_num@GOTPAGE
Lloh4:
	ldr	x25, [x25, _rating_num@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	ccmp	w24, #1, #8, ge
	b.lt	LBB0_6
; %bb.3:
	mov	x22, #0
	ldr	w8, [x19, #16]
	add	w8, w23, w8
	add	w8, w8, #1
	sxtw	x23, w8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x19, #8]
	ldr	s0, [x23, x22, lsl #2]
	fcvtzs	w3, s0
	mov	x0, x20
	mov	x4, x22
	bl	_user_set_object_rating
	and	w21, w0, w21
	add	x22, x22, #1
	ldrsw	x8, [x25]
	cmp	x22, x8
	ccmp	x22, x24, #2, lt
	b.lo	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LEV_HINTS_ADD_USER_OBJECT_RATING,4,2 ; @LEV_HINTS_ADD_USER_OBJECT_RATING
	.comm	_rating_num,4,2                 ; @rating_num
.subsections_via_symbols
