	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_rice
_update_rice:                           ## @update_rice
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movl	4(%rdi), %r8d
	leal	4(%rax), %ecx
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	testl	%eax, %eax
	cmovel	%eax, %edx
	incl	%esi
	shrl	%esi
	leal	16(%r8), %ecx
	shrl	$5, %ecx
	subl	%ecx, %esi
	addl	%r8d, %esi
	movl	%esi, 4(%rdi)
	movl	$-1, %ecx
	cmpl	%edx, %esi
	jb	LBB0_3
## %bb.1:
	leal	5(%rax), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.2:
	movl	$1, %ecx
	cmpl	$23, %eax
	jg	LBB0_4
LBB0_3:
	addl	%ecx, %eax
	movl	%eax, (%rdi)
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_update_rice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_rice
_update_rice:                           ; @update_rice
	.cfi_startproc
; %bb.0:
	ldp	w8, w9, [x0]
	add	w10, w8, #4
	mov	w11, #1
	lsl	w10, w11, w10
	cmp	w8, #0
	csel	w10, wzr, w10, eq
	add	w11, w1, #1
	lsr	w11, w11, #1
	add	w12, w9, #16
	sub	w11, w11, w12, lsr #5
	add	w9, w11, w9
	cmp	w9, w10
	str	w9, [x0, #4]
	b.hs	LBB0_2
; %bb.1:
	mov	w9, #-1
	b	LBB0_4
LBB0_2:
	add	w10, w8, #5
	lsr	w9, w9, w10
	cmp	w9, #0
	ccmp	w8, #23, #0, ne
	b.gt	LBB0_5
; %bb.3:
	mov	w9, #1
LBB0_4:
	add	w8, w8, w9
	str	w8, [x0]
LBB0_5:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_update_rice
.subsections_via_symbols
