	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_samples_from_audio_fifo
_read_samples_from_audio_fifo:          ## @read_samples_from_audio_fifo
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	16(%rdi), %esi
	movl	%edx, %edi
	callq	_FFMIN
	movl	%eax, %r12d
	movl	12(%rbx), %edi
	callq	_av_sample_fmt_is_planar
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	imull	(%rbx), %r12d
LBB0_2:
	movl	4(%rbx), %edi
	movl	$8, %esi
	callq	_av_malloc_array
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_ERROR
LBB0_4:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_free_data_planes
LBB0_6:
	movq	%r13, (%r15)
	cmpl	$0, 4(%rbx)
	jle	LBB0_12
## %bb.7:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	leaq	L_.str(%rip), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	movslq	4(%rbx), %rax
	cmpq	%rax, %r15
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %esi
	movl	%r12d, %edi
	callq	_av_malloc_array
	movq	%rax, (%r13,%r15,8)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	callq	_ERROR
	jmp	LBB0_10
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_12:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_audio_fifo_read             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate memory!"

	.no_dead_strip	_read_samples_from_audio_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_samples_from_audio_fifo
_read_samples_from_audio_fifo:          ; @read_samples_from_audio_fifo
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w1, [x0, #16]
	mov	x0, x2
	bl	_FFMIN
	mov	x22, x0
	ldr	w0, [x20, #12]
	bl	_av_sample_fmt_is_planar
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	mul	w22, w8, w22
LBB0_2:
	ldr	w0, [x20, #4]
	mov	w1, #8
	bl	_av_malloc_array
	mov	x23, x0
	cbz	x0, LBB0_12
; %bb.3:
	ldr	x1, [x21]
	cbz	x1, LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_free_data_planes
LBB0_5:
	str	x23, [x21]
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.6:
	mov	x25, #0
Lloh0:
	adrp	x24, l_.str@PAGE
Lloh1:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x20, #4]
	cmp	x25, x8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #8]
	mov	x0, x22
	bl	_av_malloc_array
	str	x0, [x23, x25, lsl #3]
	cbnz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	bl	_ERROR
	b	LBB0_7
LBB0_10:
	ldr	x23, [x21]
LBB0_11:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_av_audio_fifo_read
LBB0_12:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERROR
	ldr	x1, [x21]
	cbnz	x1, LBB0_4
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate memory!"

	.no_dead_strip	_read_samples_from_audio_fifo
.subsections_via_symbols
