	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size ## -- Begin function FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size
	.p2align	4, 0x90
_FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size: ## @FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size
	.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, %r14d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_FLAC__ASSERT
	movl	$1, %r15d
	cmpl	$0, (%rbx)
	movl	$1, %edi
	jne	LBB0_3
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	sete	%dil
LBB0_3:
	callq	_FLAC__ASSERT
	cmpl	%r14d, (%rbx)
	jae	LBB0_7
## %bb.4:
	movq	8(%rbx), %rdi
	movl	$4, %r12d
	movl	%r14d, %ecx
	shll	%cl, %r12d
	movl	%r12d, %esi
	callq	_safe_realloc_
	movq	%rax, 8(%rbx)
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	16(%rbx), %rdi
	movl	%r12d, %esi
	callq	_safe_realloc_
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movl	%r14d, (%rbx)
	movl	$1, %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size ; -- Begin function FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size
	.p2align	2
_FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size: ; @FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size
	.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	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_FLAC__ASSERT
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_5
LBB0_2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20, #16]
	cmp	x8, #0
	cset	w0, eq
LBB0_5:
	bl	_FLAC__ASSERT
	ldr	w8, [x20]
	cmp	w8, w19
	b.hs	LBB0_9
; %bb.6:
	ldr	x0, [x20, #8]
	mov	w8, #4
	lsl	w21, w8, w19
	mov	x1, x21
	bl	_safe_realloc_
	str	x0, [x20, #8]
	cbz	x0, LBB0_10
; %bb.7:
	ldr	x0, [x20, #16]
	mov	x1, x21
	bl	_safe_realloc_
	str	x0, [x20, #16]
	cbz	x0, LBB0_10
; %bb.8:
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	str	w19, [x20]
LBB0_9:
	mov	w0, #1
LBB0_10:
	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
.subsections_via_symbols
