	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_allocate_output_               ## -- Begin function allocate_output_
	.p2align	4, 0x90
_allocate_output_:                      ## @allocate_output_
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	(%rdi), %rcx
	cmpl	%esi, (%rcx)
	jb	LBB0_2
## %bb.1:
	movl	$1, %eax
	cmpl	%r14d, 4(%rcx)
	jae	LBB0_17
LBB0_2:
	movq	_FLAC__MAX_CHANNELS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	je	LBB0_9
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jae	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rcx), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$-16, %rdi
	callq	_free
	movq	(%r12), %rax
	movq	24(%rax), %rax
	movq	$0, (%rax,%rbx,8)
	movq	(%r12), %rcx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rcx), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_free
	movq	(%r12), %rax
	movq	16(%rax), %rax
	movq	$0, (%rax,%rbx,8)
	movq	(%r12), %rcx
	movq	8(%rcx), %rax
	movq	$0, (%rax,%rbx,8)
	jmp	LBB0_8
LBB0_9:
	testl	%r14d, %r14d
	je	LBB0_16
## %bb.10:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %r13d
	shlq	$3, %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	$4, %edi
	movl	%r15d, %esi
	movl	$4, %edx
	callq	_safe_malloc_muladd2_
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	addq	$16, %rbx
	movq	(%r12), %rax
	movq	24(%rax), %rax
	movq	%rbx, (%rax,%r14)
	movq	(%r12), %rax
	movq	8(%rax), %rsi
	addq	%r14, %rsi
	movq	16(%rax), %rdx
	addq	%r14, %rdx
	movl	%r15d, %edi
	callq	_FLAC__memory_alloc_aligned_int32_array
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	addq	$8, %r14
	cmpq	%r14, %r13
	jne	LBB0_13
## %bb.15:
	movq	(%r12), %rcx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_16:
	movl	%r15d, (%rcx)
	movl	%r14d, 4(%rcx)
	movl	$1, %eax
	jmp	LBB0_17
LBB0_14:
	movq	_FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC__MAX_CHANNELS,4,2         ## @FLAC__MAX_CHANNELS
	.comm	_FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR,8,3 ## @FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_allocate_output_               ; -- Begin function allocate_output_
	.p2align	2
_allocate_output_:                      ; @allocate_output_
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w9, [x8]
	cmp	w9, w1
	b.lo	LBB0_2
; %bb.1:
	ldr	w9, [x8, #4]
	cmp	w9, w19
	b.hs	LBB0_16
LBB0_2:
Lloh0:
	adrp	x22, _FLAC__MAX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FLAC__MAX_CHANNELS@GOTPAGEOFF]
	ldr	w9, [x22]
	cbz	w9, LBB0_9
; %bb.3:
	mov	x23, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldr	w9, [x22]
	cmp	x23, x9
	b.hs	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #24]
	ldr	x9, [x9, x23, lsl #3]
	cbz	x9, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x0, x9, #16
	bl	_free
	ldr	x8, [x20]
	ldr	x8, [x8, #24]
	str	xzr, [x8, x23, lsl #3]
	ldr	x8, [x20]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x8, #8]
	ldr	x0, [x9, x23, lsl #3]
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_free
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	lsl	x9, x23, #3
	str	xzr, [x8, x9]
	ldr	x8, [x20]
	ldr	x10, [x8, #8]
	str	xzr, [x10, x9]
	b	LBB0_4
LBB0_9:
	cbz	w19, LBB0_15
; %bb.10:
	mov	x23, #0
	mov	w8, w19
	lsl	x24, x8, #3
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #4
	mov	x1, x21
	mov	w2, #4
	bl	_safe_malloc_muladd2_
	cbz	x0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x22, x0
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x8, x22, #16
	ldr	x9, [x20]
	ldr	x9, [x9, #24]
	str	x8, [x9, x23]
	ldr	x8, [x20]
	ldp	x9, x8, [x8, #8]
	add	x1, x9, x23
	add	x2, x8, x23
	mov	x0, x21
	bl	_FLAC__memory_alloc_aligned_int32_array
	cbz	w0, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #8
	cmp	x24, x23
	b.ne	LBB0_11
; %bb.14:
	ldr	x8, [x20]
LBB0_15:
	stp	w21, w19, [x8]
LBB0_16:
	mov	w0, #1
	b	LBB0_18
LBB0_17:
Lloh2:
	adrp	x8, _FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	str	x8, [x9]
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC__MAX_CHANNELS,4,2         ; @FLAC__MAX_CHANNELS
	.comm	_FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR,8,3 ; @FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR
.subsections_via_symbols
