	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__stream_decoder_new       ## -- Begin function FLAC__stream_decoder_new
	.p2align	4, 0x90
_FLAC__stream_decoder_new:              ## @FLAC__stream_decoder_new
	.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	$1, %edi
	callq	_FLAC__ASSERT
	movl	$1, %edi
	movl	$104, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %r15
	movl	$1, %edi
	movl	$104, %esi
	callq	_calloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movl	$1, %edi
	movl	$104, %esi
	callq	_calloc
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	xorl	%eax, %eax
	callq	_FLAC__bitreader_new
	movq	40(%r15), %rdi
	movq	%rax, (%rdi)
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:
	movl	$16, 8(%rdi)
	movq	_FLAC__STREAM_METADATA_APPLICATION_ID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	7(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	addl	%edi, %edi
	andl	$-16, %edi
	callq	_malloc
	movq	40(%r15), %rcx
	movq	%rax, 96(%rcx)
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	_FLAC__MAX_CHANNELS@GOTPCREL(%rip), %r14
	movl	(%r14), %r8d
	testq	%r8, %r8
	je	LBB0_20
## %bb.6:
	movq	88(%rcx), %r10
	movq	72(%rcx), %r11
	movq	80(%rcx), %rdi
	cmpl	$4, %r8d
	jae	LBB0_21
## %bb.7:
	xorl	%eax, %eax
LBB0_8:
	movq	%rax, %rdx
	notq	%rdx
	testb	$1, %r8b
	je	LBB0_10
## %bb.9:
	movq	$0, (%r10,%rax,8)
	movq	$0, (%r11,%rax,8)
	movq	$0, (%rdi,%rax,8)
	orq	$1, %rax
LBB0_10:
	addq	%r8, %rdx
	je	LBB0_31
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, (%r10,%rax,8)
	movq	$0, (%r11,%rax,8)
	movq	$0, (%rdi,%rax,8)
	movq	$0, 8(%r10,%rax,8)
	movq	$0, 8(%r11,%rax,8)
	movq	$0, 8(%rdi,%rax,8)
	addq	$2, %rax
	cmpq	%rax, %r8
	jne	LBB0_11
	jmp	LBB0_31
LBB0_14:
	movq	(%rcx), %rdi
	callq	_FLAC__bitreader_delete
	movq	40(%r15), %rdi
LBB0_15:
	callq	_free
LBB0_16:
	movq	24(%r15), %rdi
	callq	_free
LBB0_17:
	movq	%r15, %rdi
	callq	_free
LBB0_18:
	xorl	%r15d, %r15d
LBB0_19:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	$0, 12(%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rcx)
	jmp	LBB0_33
LBB0_21:
	movq	%r11, %rdx
	subq	%r10, %rdx
	xorl	%eax, %eax
	cmpq	$32, %rdx
	jb	LBB0_8
## %bb.22:
	movq	%rdi, %rdx
	subq	%r10, %rdx
	cmpq	$32, %rdx
	jb	LBB0_8
## %bb.23:
	movq	%rdi, %rdx
	subq	%r11, %rdx
	cmpq	$32, %rdx
	jb	LBB0_8
## %bb.24:
	movl	%r8d, %eax
	andl	$-4, %eax
	leaq	-4(%rax), %rdx
	movq	%rdx, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_27
## %bb.25:
	movq	%r9, %rsi
	andq	$-2, %rsi
	xorl	%edx, %edx
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movups	%xmm0, (%r10,%rdx,8)
	movups	%xmm0, 16(%r10,%rdx,8)
	movups	%xmm0, (%r11,%rdx,8)
	movups	%xmm0, 16(%r11,%rdx,8)
	movups	%xmm0, (%rdi,%rdx,8)
	movups	%xmm0, 16(%rdi,%rdx,8)
	movups	%xmm0, 32(%r10,%rdx,8)
	movups	%xmm0, 48(%r10,%rdx,8)
	movups	%xmm0, 32(%r11,%rdx,8)
	movups	%xmm0, 48(%r11,%rdx,8)
	movups	%xmm0, 32(%rdi,%rdx,8)
	movups	%xmm0, 48(%rdi,%rdx,8)
	addq	$8, %rdx
	addq	$-2, %rsi
	jne	LBB0_26
	jmp	LBB0_28
LBB0_27:
	xorl	%edx, %edx
LBB0_28:
	testb	$1, %r9b
	je	LBB0_30
## %bb.29:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r10,%rdx,8)
	movups	%xmm0, 16(%r10,%rdx,8)
	movups	%xmm0, (%r11,%rdx,8)
	movups	%xmm0, 16(%r11,%rdx,8)
	movups	%xmm0, (%rdi,%rdx,8)
	movups	%xmm0, 16(%rdi,%rdx,8)
LBB0_30:
	cmpq	%r8, %rax
	jne	LBB0_8
LBB0_31:
	movl	$0, 12(%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rcx)
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%rcx), %rdi
	addq	%r12, %rdi
	callq	_FLAC__format_entropy_coding_method_partitioned_rice_contents_init
	incq	%rbx
	movl	(%r14), %eax
	movq	40(%r15), %rcx
	addq	$4, %r12
	cmpq	%rax, %rbx
	jb	LBB0_32
LBB0_33:
	movq	$0, 32(%rcx)
	movq	%r15, %rdi
	callq	_set_defaults_
	movq	_FLAC__STREAM_DECODER_UNINITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%r15), %rcx
	movl	%eax, 16(%rcx)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC__STREAM_METADATA_APPLICATION_ID_LEN,4,2 ## @FLAC__STREAM_METADATA_APPLICATION_ID_LEN
	.comm	_FLAC__MAX_CHANNELS,4,2         ## @FLAC__MAX_CHANNELS
	.comm	_FLAC__STREAM_DECODER_UNINITIALIZED,4,2 ## @FLAC__STREAM_DECODER_UNINITIALIZED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__stream_decoder_new       ; -- Begin function FLAC__stream_decoder_new
	.p2align	2
_FLAC__stream_decoder_new:              ; @FLAC__stream_decoder_new
	.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	w0, #1
	bl	_FLAC__ASSERT
	mov	w0, #1
	mov	w1, #104
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.1:
	mov	w0, #1
	mov	w1, #104
	bl	_calloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_11
; %bb.2:
	mov	w0, #1
	mov	w1, #104
	bl	_calloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_10
; %bb.3:
	bl	_FLAC__bitreader_new
	mov	x8, x0
	ldr	x0, [x19, #40]
	str	x8, [x0]
	cbz	x8, LBB0_9
; %bb.4:
	mov	w8, #16
	str	w8, [x0, #8]
Lloh0:
	adrp	x8, _FLAC__STREAM_METADATA_APPLICATION_ID_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAC__STREAM_METADATA_APPLICATION_ID_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	lsl	w8, w8, #1
	and	w0, w8, #0xfffffff0
	bl	_malloc
	ldr	x8, [x19, #40]
	str	x0, [x8, #96]
	cbz	x0, LBB0_8
; %bb.5:
Lloh3:
	adrp	x20, _FLAC__MAX_CHANNELS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _FLAC__MAX_CHANNELS@GOTPAGEOFF]
	ldr	w9, [x20]
	cbz	w9, LBB0_13
; %bb.6:
	ldp	x10, x12, [x8, #80]
	ldr	x11, [x8, #72]
	cmp	w9, #8
	b.hs	LBB0_14
; %bb.7:
	mov	x13, #0
	b	LBB0_20
LBB0_8:
	ldr	x0, [x8]
	bl	_FLAC__bitreader_delete
	ldr	x0, [x19, #40]
LBB0_9:
	bl	_free
LBB0_10:
	ldr	x0, [x19, #24]
	bl	_free
LBB0_11:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	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
LBB0_13:
	str	wzr, [x8, #12]
	stp	xzr, xzr, [x8, #56]
	b	LBB0_24
LBB0_14:
	mov	x13, #0
	sub	x14, x11, x12
	cmp	x14, #64
	b.lo	LBB0_20
; %bb.15:
	sub	x14, x10, x12
	cmp	x14, #64
	b.lo	LBB0_20
; %bb.16:
	sub	x14, x10, x11
	cmp	x14, #64
	b.lo	LBB0_20
; %bb.17:
	and	x13, x9, #0xfffffff8
	add	x14, x10, #32
	add	x15, x12, #32
	add	x16, x11, #32
	movi.2d	v0, #0000000000000000
	mov	x17, x13
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x15, #-32]
	stp	q0, q0, [x15], #64
	stp	q0, q0, [x16, #-32]
	stp	q0, q0, [x16], #64
	stp	q0, q0, [x14, #-32]
	stp	q0, q0, [x14], #64
	subs	x17, x17, #8
	b.ne	LBB0_18
; %bb.19:
	cmp	x13, x9
	b.eq	LBB0_22
LBB0_20:
	lsl	x14, x13, #3
	add	x12, x12, x14
	add	x11, x11, x14
	add	x10, x10, x14
	sub	x9, x9, x13
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [x12], #8
	str	xzr, [x11], #8
	str	xzr, [x10], #8
	subs	x9, x9, #1
	b.ne	LBB0_21
LBB0_22:
	mov	x21, #0
	mov	x22, #0
	str	wzr, [x8, #12]
	stp	xzr, xzr, [x8, #56]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #48]
	add	x0, x8, x21
	bl	_FLAC__format_entropy_coding_method_partitioned_rice_contents_init
	add	x22, x22, #1
	ldr	w9, [x20]
	ldr	x8, [x19, #40]
	add	x21, x21, #4
	cmp	x22, x9
	b.lo	LBB0_23
LBB0_24:
	str	xzr, [x8, #32]
	mov	x0, x19
	bl	_set_defaults_
Lloh5:
	adrp	x8, _FLAC__STREAM_DECODER_UNINITIALIZED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FLAC__STREAM_DECODER_UNINITIALIZED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x19, #24]
	str	w8, [x9, #16]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC__STREAM_METADATA_APPLICATION_ID_LEN,4,2 ; @FLAC__STREAM_METADATA_APPLICATION_ID_LEN
	.comm	_FLAC__MAX_CHANNELS,4,2         ; @FLAC__MAX_CHANNELS
	.comm	_FLAC__STREAM_DECODER_UNINITIALIZED,4,2 ; @FLAC__STREAM_DECODER_UNINITIALIZED
.subsections_via_symbols
