	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__memory_alloc_aligned_unsigned_array ## -- Begin function FLAC__memory_alloc_aligned_unsigned_array
	.p2align	4, 0x90
_FLAC__memory_alloc_aligned_unsigned_array: ## @FLAC__memory_alloc_aligned_unsigned_array
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_FLAC__ASSERT
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_FLAC__ASSERT
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_FLAC__ASSERT
	xorl	%edi, %edi
	cmpq	%r14, %r15
	setne	%dil
	callq	_FLAC__ASSERT
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shrq	$2, %rax
	xorl	%r12d, %r12d
	cmpq	%rbx, %rax
	jb	LBB0_5
## %bb.1:
	shll	$2, %ebx
	leaq	-40(%rbp), %rsi
	movl	%ebx, %edi
	callq	_FLAC__memory_alloc_aligned
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_free
LBB0_4:
	movq	%rbx, (%r15)
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
	movl	$1, %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_MAX,4,2                   ## @SIZE_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__memory_alloc_aligned_unsigned_array ; -- Begin function FLAC__memory_alloc_aligned_unsigned_array
	.p2align	2
_FLAC__memory_alloc_aligned_unsigned_array: ; @FLAC__memory_alloc_aligned_unsigned_array
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_FLAC__ASSERT
	cmp	x20, #0
	cset	w0, ne
	bl	_FLAC__ASSERT
	cmp	x19, #0
	cset	w0, ne
	bl	_FLAC__ASSERT
	cmp	x20, x19
	cset	w0, ne
	bl	_FLAC__ASSERT
Lloh0:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	cmp	x21, x8, lsr #2
	b.ls	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	lsl	w0, w21, #2
	add	x1, sp, #8
	bl	_FLAC__memory_alloc_aligned
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	ldr	x0, [x20]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_free
LBB0_5:
	str	x21, [x20]
	ldr	x8, [sp, #8]
	str	x8, [x19]
	mov	w0, #1
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_MAX,4,2                   ; @SIZE_MAX
.subsections_via_symbols
