	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_residual_partitioned_rice_ ## -- Begin function read_residual_partitioned_rice_
	.p2align	4, 0x90
_read_residual_partitioned_rice_:       ## @read_residual_partitioned_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	4(%rax), %edx
	movl	%edx, %eax
	movl	%ebx, %ecx
	shrl	%cl, %eax
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	subl	%esi, %edx
	testl	%ebx, %ebx
	cmovnel	%eax, %edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	testl	%r9d, %r9d
	movq	_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_PARAMETER_LEN@GOTPCREL(%rip), %rcx
	cmoveq	_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAMETER@GOTPCREL(%rip), %rcx
	cmoveq	_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	cmpl	%esi, %eax
	setae	%dil
	callq	_FLAC__ASSERT
	movl	$6, %edi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_MAX
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	movl	%r15d, %eax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	testl	%eax, %eax
	jne	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_FLAC__bitreader_read_raw_uint32
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax
	movq	(%r13), %rcx
	movl	%r15d, %ebx
	movl	%eax, (%rcx,%rbx,4)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -44(%rbp)
	jae	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdx
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmovnel	%r14d, %eax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	movq	8(%r13), %rcx
	movl	$0, (%rcx,%rbx,4)
	cmovel	%esi, %eax
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	subl	%eax, %r13d
	movq	%rdx, %rbx
	movq	(%rdx), %rax
	movl	(%rax), %edi
	movl	%r12d, %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movl	-44(%rbp), %ecx
	movl	%r13d, %edx
	callq	_FLAC__bitreader_read_rice_signed_block
	testl	%eax, %eax
	je	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%r13d, %r12d
	movq	%rbx, %r14
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rsi
	callq	_FLAC__bitreader_read_raw_uint32
	testl	%eax, %eax
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r15d, %r15d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	$0, %ecx
	cmovnel	%ecx, %eax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	movl	-44(%rbp), %ecx
	movq	8(%r13), %rdx
	movl	%ecx, (%rdx,%rbx,4)
	cmovel	%esi, %eax
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %eax
	jae	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	subl	%eax, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %edx
	leaq	-68(%rbp), %rsi
	callq	_FLAC__bitreader_read_raw_int32
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	-68(%rbp), %eax
	movl	%r12d, %ecx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	incl	%r12d
	decl	%ebx
	jne	LBB0_10
	jmp	LBB0_2
LBB0_12:
	movq	_FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
LBB0_16:
	xorl	%r14d, %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	$1, %r14d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_PARAMETER_LEN,4,2 ## @FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_PARAMETER_LEN
	.comm	_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN,4,2 ## @FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN
	.comm	_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAMETER,4,2 ## @FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAMETER
	.comm	_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETER,4,2 ## @FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETER
	.comm	_FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR,4,2 ## @FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR
	.comm	_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LEN,4,2 ## @FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_residual_partitioned_rice_ ; -- Begin function read_residual_partitioned_rice_
	.p2align	2
_read_residual_partitioned_rice_:       ; @read_residual_partitioned_rice_
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w8, [x8, #4]
	lsr	w9, w8, w2
	sub	w8, w8, w1
Lloh0:
	adrp	x10, _FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_PARAMETER_LEN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_PARAMETER_LEN@GOTPAGEOFF]
Lloh2:
	adrp	x11, _FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN@GOTPAGE
Lloh3:
	ldr	x11, [x11, _FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN@GOTPAGEOFF]
	cmp	w2, #0
	csel	w26, w8, w9, eq
	cmp	w5, #0
	csel	x8, x11, x10, eq
	ldr	w24, [x8]
Lloh4:
	adrp	x8, _FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAMETER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAMETER@GOTPAGEOFF]
Lloh6:
	adrp	x10, _FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETER@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETER@GOTPAGEOFF]
	csel	x8, x10, x8, eq
	ldr	w8, [x8]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	cmp	w9, w1
	cset	w0, hs
	bl	_FLAC__ASSERT
	mov	w0, #6
	mov	x1, x22
	bl	_MAX
	mov	x1, x0
	mov	x0, x21
	bl	_FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size
	cbz	w0, LBB0_12
; %bb.1:
	mov	w28, #0
	mov	w27, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w28, w28, #1
	lsr	w8, w28, w22
	cbnz	w8, LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x20]
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	x2, x24
	bl	_FLAC__bitreader_read_raw_uint32
	cbz	w0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #12]
	ldr	x9, [x21]
	mov	w25, w28
	str	w8, [x9, w28, uxtw #2]
	ldr	w8, [sp, #12]
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w8, w9
	b.hs	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w28, #0
	ccmp	w22, #0, #4, eq
	ldr	x8, [x21, #8]
	str	wzr, [x8, x25, lsl #2]
	csel	w8, wzr, w23, eq
	sub	w25, w26, w8
	ldr	x8, [x20]
	ldr	w0, [x8]
	add	x1, x19, w27, uxtw #2
	ldr	w3, [sp, #12]
	mov	x2, x25
	bl	_FLAC__bitreader_read_rice_signed_block
	cbz	w0, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w27, w25, w27
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x1, sp, #12
	bl	_FLAC__bitreader_read_raw_uint32
	cbz	w0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w28, #0
	ccmp	w22, #0, #4, eq
	ldr	w8, [sp, #12]
	ldr	x9, [x21, #8]
	str	w8, [x9, x25, lsl #2]
	csel	w8, wzr, w23, eq
	cmp	w8, w26
	b.hs	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w25, w26, w8
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w2, [sp, #12]
	add	x1, sp, #8
	bl	_FLAC__bitreader_read_raw_int32
	cbz	w0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [sp, #8]
	str	w8, [x19, w27, uxtw #2]
	add	w27, w27, #1
	subs	w25, w25, #1
	b.ne	LBB0_10
	b	LBB0_2
LBB0_12:
Lloh11:
	adrp	x8, _FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x9, [x20, #8]
	str	w8, [x9]
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	mov	w0, #1
	b	LBB0_13
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_PARAMETER_LEN,4,2 ; @FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_PARAMETER_LEN
	.comm	_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN,4,2 ; @FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN
	.comm	_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAMETER,4,2 ; @FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAMETER
	.comm	_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETER,4,2 ; @FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETER
	.comm	_FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR,4,2 ; @FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR
	.comm	_FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LEN,4,2 ; @FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LEN
.subsections_via_symbols
