	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__bitreader_read_rice_signed_block ## -- Begin function FLAC__bitreader_read_rice_signed_block
	.p2align	4, 0x90
_FLAC__bitreader_read_rice_signed_block: ## @FLAC__bitreader_read_rice_signed_block
	.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
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_FLAC__ASSERT
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setne	%dil
	callq	_FLAC__ASSERT
	movq	_FLAC__BITS_PER_WORD@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$32, (%rax)
	setge	%dil
	callq	_FLAC__ASSERT
	xorl	%edi, %edi
	cmpl	$32, %ebx
	setb	%dil
	callq	_FLAC__ASSERT
	movl	%r14d, %eax
	leaq	(%r12,%rax,4), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movl	$1, %edi
	callq	_FLAC__ASSERT
	movl	8(%r15), %ebx
	movl	12(%r15), %edx
	cmpl	%edx, %ebx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jae	LBB0_7
## %bb.2:
	movq	_FLAC__BITS_PER_WORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %ecx
	subl	%ecx, %esi
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	jmp	LBB0_9
LBB0_3:
	movl	$1, %ebx
	testl	%r14d, %r14d
	je	LBB0_36
## %bb.4:
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_FLAC__bitreader_read_unary_unsigned
	testl	%eax, %eax
	je	LBB0_35
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	shrl	%ecx
	andl	$1, %eax
	negl	%eax
	xorl	%ecx, %eax
	movl	%eax, (%r12)
	addq	$4, %r12
	cmpq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	jb	LBB0_5
	jmp	LBB0_36
LBB0_7:
	xorl	%r13d, %r13d
	jmp	LBB0_29
LBB0_9:
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	cmpq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	jb	LBB0_15
## %bb.10:
	movl	%ebx, %r8d
LBB0_11:
	testl	%esi, %esi
	je	LBB0_25
## %bb.12:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%r15d, %ecx
	shll	%cl, %edi
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, -56(%rbp)
	movl	%r15d, %ecx
	shll	%cl, %r13d
	orl	%ebx, %r13d
	movl	%r13d, %eax
	shrl	%eax
	andl	$1, %r13d
	negl	%r13d
	xorl	%eax, %r13d
	movl	%r13d, (%r12)
	addq	$4, %r12
	movl	%r8d, %ebx
	cmpq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	jae	LBB0_11
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movl	%edi, %r14d
	callq	_COUNT_ZERO_MSBS2
	movl	%eax, %r13d
	movq	_FLAC__BITS_PER_WORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%esi, %r13d
	jne	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	leal	1(%rbx), %r15d
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	leal	1(%rdx), %r14d
	movl	%edx, %ecx
	movl	(%rax,%rcx,4), %esi
	movq	%r12, %rdi
	movq	%rdx, %rbx
	callq	_crc16_update_word_
	cmpl	-52(%rbp), %r14d                ## 4-byte Folded Reload
	jae	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movl	%r14d, %ecx
	movq	(%r12), %rax
	movl	(%rax,%r15,4), %r14d
	movl	%r14d, %edi
	movl	%ecx, %ebx
	callq	_COUNT_ZERO_MSBS2
	addl	%eax, %r13d
	movq	_FLAC__BITS_PER_WORD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	incq	%r15
	movl	%ebx, %edx
	cmpl	%esi, %eax
	je	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %r8d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %r8d
	movl	%r13d, %eax
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%eax, %ecx
	movl	%r14d, %edi
	shll	%cl, %edi
	addl	%edi, %edi
	movl	%r13d, %ecx
	notl	%ecx
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	addl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%r13d, -44(%rbp)
	subl	%r15d, %esi
	movl	%edi, %ebx
	movl	%esi, %ecx
	shrl	%cl, %ebx
	movl	%edx, %esi
	subl	%r15d, %esi
	jae	LBB0_13
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%edx, %r13d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movl	%r8d, %ecx
	incl	%r8d
	movl	(%rax,%rcx,4), %esi
	movq	%r15, %rdi
	movl	%r8d, %r14d
	callq	_crc16_update_word_
	movl	%r14d, %r8d
	cmpl	-52(%rbp), %r14d                ## 4-byte Folded Reload
	jae	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%r15), %rax
	movl	%r8d, %ecx
	movl	(%rax,%rcx,4), %edi
	movq	_FLAC__BITS_PER_WORD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	subl	%r15d, %esi
	addl	%r13d, %esi
	movl	%edi, %edx
	movl	%esi, %ecx
	shrl	%cl, %edx
	orl	%edx, %ebx
	subl	%esi, %eax
	movl	%eax, %ecx
	shll	%cl, %edi
	movl	-44(%rbp), %r13d
	jmp	LBB0_14
LBB0_24:
	movl	$0, 16(%r12)
	incl	%ebx
	movl	%ebx, 8(%r12)
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_25:
	xorl	%esi, %esi
	cmpl	-52(%rbp), %r8d                 ## 4-byte Folded Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jae	LBB0_27
## %bb.26:
	movq	(%rbx), %rax
	movl	%r8d, %ecx
	incl	%r8d
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	movl	%r8d, %r14d
	callq	_crc16_update_word_
	movl	%r14d, %r8d
	movq	_FLAC__BITS_PER_WORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_27:
	movq	_FLAC__BITS_PER_WORD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%esi, %eax
	movl	%eax, 16(%rbx)
	movl	%r8d, 8(%rbx)
	movl	$1, %ebx
	jmp	LBB0_36
LBB0_28:
	movl	$0, 16(%r15)
	movl	%r8d, 8(%r15)
	jmp	LBB0_31
LBB0_29:
	leaq	-44(%rbp), %rsi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_FLAC__bitreader_read_unary_unsigned
	testl	%eax, %eax
	je	LBB0_35
## %bb.30:
	addl	%r13d, -44(%rbp)
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
LBB0_31:
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	subl	%r13d, %edx
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_FLAC__bitreader_read_raw_uint32
	testl	%eax, %eax
	je	LBB0_35
## %bb.32:
	orl	-56(%rbp), %ebx
	movl	-44(%rbp), %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	movl	%ebx, -56(%rbp)
	orl	%ebx, %eax
	movl	%eax, %ecx
	shrl	%ecx
	andl	$1, %eax
	negl	%eax
	xorl	%ecx, %eax
	movl	%eax, (%r12)
	addq	$4, %r12
	movl	8(%r15), %ebx
	movl	12(%r15), %edx
	movq	_FLAC__BITS_PER_WORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %ecx
	subl	%ecx, %esi
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	cmpl	%edx, %ebx
	jb	LBB0_9
## %bb.33:
	movl	$0, %r13d
	cmpq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	jb	LBB0_29
	jmp	LBB0_9
LBB0_35:
	xorl	%ebx, %ebx
LBB0_36:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC__BITS_PER_WORD,4,2        ## @FLAC__BITS_PER_WORD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__bitreader_read_rice_signed_block ; -- Begin function FLAC__bitreader_read_rice_signed_block
	.p2align	2
_FLAC__bitreader_read_rice_signed_block: ; @FLAC__bitreader_read_rice_signed_block
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_FLAC__ASSERT
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	bl	_FLAC__ASSERT
Lloh0:
	adrp	x24, _FLAC__BITS_PER_WORD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FLAC__BITS_PER_WORD@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #31
	cset	w0, gt
	bl	_FLAC__ASSERT
	cmp	w21, #32
	cset	w0, lo
	bl	_FLAC__ASSERT
	add	x8, x20, w22, uxtw #2
	str	x8, [sp]                        ; 8-byte Folded Spill
	cbz	w21, LBB0_3
; %bb.1:
	mov	w0, #1
	bl	_FLAC__ASSERT
	ldp	w27, w26, [x19, #8]
	cmp	w27, w26
	b.hs	LBB0_6
; %bb.2:
	ldr	w8, [x24]
	ldr	w9, [x19, #16]
	sub	w28, w8, w9
	ldr	x8, [x19]
	ldr	w8, [x8, x27, lsl #2]
	lsl	w22, w8, w9
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	b	LBB0_9
LBB0_3:
	cbz	w22, LBB0_25
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_FLAC__bitreader_read_unary_unsigned
	cbz	w0, LBB0_26
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #8]
	and	w9, w8, #0x1
	neg	w9, w9
	eor	w8, w9, w8, lsr #1
	str	w8, [x20], #4
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x20, x8
	b.lo	LBB0_4
	b	LBB0_25
LBB0_6:
	mov	w23, #0
	b	LBB0_27
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	lsl	w22, w9, w21
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	str	w25, [sp, #12]
	lsl	w8, w23, w21
	orr	w8, w8, w25
	and	w9, w8, #0x1
	neg	w9, w9
	eor	w8, w9, w8, lsr #1
	str	w8, [x20], #4
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x20, x8
	b.hs	LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_COUNT_ZERO_MSBS2
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w8, w27, #1
	lsl	x25, x8, #2
	mov	x23, x28
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19]
	ldr	w1, [x9, w27, uxtw #2]
	add	w27, w27, #1
	mov	x0, x19
	bl	_crc16_update_word_
	cmp	w27, w26
	b.hs	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x19]
	ldr	w22, [x8, x25]
	mov	x0, x22
	bl	_COUNT_ZERO_MSBS2
	add	w23, w0, w23
	ldr	w8, [x24]
	add	x25, x25, #4
	cmp	w0, w8
	b.eq	LBB0_12
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x23, x0
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	lsl	w9, w22, w0
	lsl	w9, w9, #1
	mvn	w10, w23
	add	w10, w28, w10
	udiv	w11, w10, w8
	msub	w22, w11, w8, w10
	str	w23, [sp, #8]
	sub	w8, w8, w21
	lsr	w25, w9, w8
	subs	w28, w22, w21
	b.hs	LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x23, x21
	ldr	x8, [x19]
	add	w21, w27, #1
	ldr	w1, [x8, w27, uxtw #2]
	mov	x0, x19
	bl	_crc16_update_word_
	cmp	w21, w26
	b.hs	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19]
	ldr	w8, [x8, w21, uxtw #2]
	ldr	w9, [x24]
	mov	x11, x23
	sub	w10, w9, w23
	add	w28, w10, w22
	lsr	w10, w8, w28
	orr	w25, w10, w25
	sub	w9, w9, w28
	lsl	w22, w8, w9
	ldr	w23, [sp, #8]
	mov	x27, x21
	mov	x21, x11
	b	LBB0_8
LBB0_18:
	str	wzr, [x19, #16]
	str	w27, [x19, #8]
	b	LBB0_27
LBB0_19:
	cbnz	w28, LBB0_24
; %bb.20:
	cmp	w27, w26
	b.hs	LBB0_23
; %bb.21:
	ldr	x8, [x19]
	add	w20, w27, #1
	ldr	w1, [x8, w27, uxtw #2]
	mov	x0, x19
	bl	_crc16_update_word_
	ldr	w28, [x24]
	mov	x27, x20
	b	LBB0_24
LBB0_22:
	str	wzr, [x19, #16]
	str	w21, [x19, #8]
	mov	x21, x23
	b	LBB0_29
LBB0_23:
	mov	w28, #0
LBB0_24:
	ldr	w8, [x24]
	sub	w8, w8, w28
	str	w8, [x19, #16]
	str	w27, [x19, #8]
LBB0_25:
	mov	w0, #1
LBB0_26:
	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_27:
	add	x1, sp, #8
	mov	x0, x19
	bl	_FLAC__bitreader_read_unary_unsigned
	cbz	w0, LBB0_26
; %bb.28:
	mov	w25, #0
	mov	w22, #0
	ldr	w8, [sp, #8]
	add	w8, w8, w23
	str	w8, [sp, #8]
LBB0_29:
	sub	w2, w21, w22
	add	x1, sp, #12
	mov	x0, x19
	bl	_FLAC__bitreader_read_raw_uint32
	cbz	w0, LBB0_26
; %bb.30:
	ldp	w9, w8, [sp, #8]
	orr	w8, w8, w25
	str	w8, [sp, #12]
	lsl	w9, w9, w21
	orr	w8, w9, w8
	and	w9, w8, #0x1
	neg	w9, w9
	eor	w8, w9, w8, lsr #1
	str	w8, [x20], #4
	ldp	w27, w26, [x19, #8]
	ldr	w8, [x24]
	ldr	w9, [x19, #16]
	sub	w28, w8, w9
	ldr	x8, [x19]
	ldr	w8, [x8, x27, lsl #2]
	lsl	w22, w8, w9
	cmp	w27, w26
	b.lo	LBB0_9
; %bb.31:
	mov	w23, #0
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x20, x8
	b.lo	LBB0_27
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC__BITS_PER_WORD,4,2        ; @FLAC__BITS_PER_WORD
.subsections_via_symbols
