	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_rice
_decode_rice:                           ## @decode_rice
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_get_bits_left
	subl	%ebx, %eax
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_get_unary
	movl	%eax, %r14d
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.3:
	movq	%r12, %rdi
	callq	_get_bits1
	movl	%eax, %r15d
	cmpl	$1, %ebx
	je	LBB0_2
## %bb.4:
	decl	%ebx
	movl	%ebx, %ecx
	shll	%cl, %r14d
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_get_bits_long
	addl	%r14d, %eax
	movl	%eax, %r14d
	jmp	LBB0_5
LBB0_1:
	movl	%r14d, %r15d
	notl	%r15d
	andl	$1, %r15d
LBB0_2:
	testl	%ebx, %ebx
	sete	%cl
	shrl	%cl, %r14d
LBB0_5:
	xorl	%eax, %eax
	cmpl	$1, %r15d
	sbbl	%eax, %eax
	xorl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decode_rice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_rice
_decode_rice:                           ; @decode_rice
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_get_bits_left
	sub	w2, w0, w19
	mov	x0, x21
	mov	w1, #0
	bl	_get_unary
	mov	x22, x0
	cbz	w19, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_get_bits1
	mov	x20, x0
	subs	w1, w19, #1
	b.eq	LBB0_4
; %bb.2:
	lsl	w19, w22, w1
	mov	x0, x21
	bl	_get_bits_long
	add	w8, w19, w0
	b	LBB0_5
LBB0_3:
	mvn	w8, w22
	and	w20, w8, #0x1
LBB0_4:
	cmp	w19, #0
	cset	w8, eq
	lsr	w8, w22, w8
LBB0_5:
	cmp	w20, #0
	cinv	w0, w8, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decode_rice
.subsections_via_symbols
