	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function return_audio_frame
_return_audio_frame:                    ## @return_audio_frame
	.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
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %r13
	movq	%r13, -56(%rbp)
	testq	%r13, %r13
	je	LBB0_3
## %bb.6:
	leaq	8(%rbx), %r12
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.10:
	movq	(%r13), %rax
	cmpq	(%r14), %rax
	jge	LBB0_12
## %bb.11:
	movl	8(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_20:
	movl	(%r14), %esi
	movq	%r14, %rdi
	callq	_ff_get_audio_buffer
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_16
## %bb.21:
	movq	$0, (%rax)
	movl	12(%r13), %ecx
	movl	%ecx, 12(%rax)
	movq	(%r14), %rcx
	movl	%ecx, (%rbx)
	movslq	%ecx, %rdx
	xorl	%esi, %esi
	cmpq	%rdx, %rsi
	jl	LBB0_23
	jmp	LBB0_34
LBB0_1:
	movq	$0, -56(%rbp)
LBB0_3:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	8(%rbx), %r12
LBB0_7:
	movl	8(%r14), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_8:
	movl	(%rbx), %ecx
	movslq	%ecx, %rdx
	cmpq	%rdx, (%r14)
	jne	LBB0_37
## %bb.9:
	movq	(%rax), %rsi
	cmpq	%rdx, %rsi
	jl	LBB0_23
LBB0_34:
	movq	$0, (%r12)
	movq	%rax, %r13
LBB0_35:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ff_filter_frame
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_buffer_offset
LBB0_33:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	cmpq	%rcx, (%rax)
	jge	LBB0_34
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_30
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_ff_request_frame
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	testl	%eax, %eax
	js	LBB0_36
## %bb.27:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	(%rbx), %ecx
	movq	8(%rbx), %rax
LBB0_30:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	(%rdx), %rdx
	movq	%rdx, -56(%rbp)
	movslq	%ecx, %rdi
	subq	(%rax), %rdi
	movq	(%rdx), %rsi
	callq	_FFMIN
	movl	%eax, %r13d
	movq	(%r12), %rax
	movl	8(%rax), %edi
	movq	-56(%rbp), %rcx
	movl	8(%rcx), %esi
	movq	(%rax), %rdx
	movl	12(%r14), %eax
	movl	%eax, (%rsp)
	xorl	%ecx, %ecx
	movl	%r13d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_av_samples_copy
	movslq	%r13d, %rax
	movq	(%r12), %rcx
	addq	%rax, (%rcx)
	movq	-56(%rbp), %rsi
	cmpq	%rax, (%rsi)
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_23 Depth=1
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	%rbx, %rdi
	callq	_queue_pop
	jmp	LBB0_33
LBB0_37:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_36:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r13, %rdi
	callq	_calc_ptr_alignment
	cmpl	$32, %eax
	jl	LBB0_19
## %bb.13:
	movq	(%r13), %rax
	cmpq	(%r14), %rax
	jne	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_queue_pop
	jmp	LBB0_35
LBB0_19:
	movq	(%r12), %rax
	movl	8(%r14), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_20
LBB0_25:
	movq	8(%rbx), %rax
	movl	8(%rax), %edi
	movq	(%rax), %rsi
	movslq	(%rbx), %rdx
	subq	%rsi, %rdx
	movl	12(%r14), %r8d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_av_samples_set_silence
	movslq	(%rbx), %rcx
	movq	8(%rbx), %rax
	movq	%rcx, (%rax)
	jmp	LBB0_34
LBB0_28:
	xorl	%eax, %eax
	jmp	LBB0_36
LBB0_15:
	movq	%r13, %rdi
	callq	_av_frame_clone
	testq	%rax, %rax
	je	LBB0_16
## %bb.18:
	movq	%rax, %rbx
	movq	(%r14), %rdx
	movq	%rdx, (%rax)
	movq	%r14, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_buffer_offset
	movq	%rbx, %r13
	jmp	LBB0_35
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request_samples changed before the buffer was returned.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_return_audio_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function return_audio_frame
_return_audio_frame:                    ; @return_audio_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x0
	ldp	x20, x8, [x0, #8]
	ldr	x19, [x8]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x23, [x8]
	str	x23, [sp, #8]
	cbz	x23, LBB0_8
; %bb.2:
	mov	x24, x20
	ldr	x0, [x24, #8]!
	cbnz	x0, LBB0_9
; %bb.3:
	ldr	x8, [x23]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_25
; %bb.4:
	ldr	w22, [x19, #8]
LBB0_5:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_ff_get_audio_buffer
	str	x0, [x24]
	cbz	x0, LBB0_36
; %bb.6:
	mov	x9, #0
	str	xzr, [x0]
	ldr	w8, [x23, #12]
	str	w8, [x0, #12]
	ldr	x8, [x19]
	str	w8, [x20]
	sxtw	x10, w8
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	cmp	x9, x10
	b.ge	LBB0_30
	b	LBB0_12
LBB0_7:
	str	xzr, [sp, #8]
LBB0_8:
	mov	x24, x20
	ldr	x0, [x24, #8]!
	cbz	x0, LBB0_24
LBB0_9:
	ldr	w22, [x19, #8]
LBB0_10:
	ldr	x9, [x19]
	ldr	w8, [x20]
	sxtw	x10, w8
	cmp	x9, x10
	b.ne	LBB0_22
; %bb.11:
	ldr	x9, [x0]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	cmp	x9, x10
	b.ge	LBB0_30
LBB0_12:
Lloh0:
	adrp	x25, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AVERROR_EOF@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x19
	mov	x2, x23
	bl	_buffer_offset
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x0, [x20, #8]
	ldr	x9, [x0]
	ldrsw	x10, [x20]
	mov	x8, x10
	cmp	x9, x10
	b.ge	LBB0_30
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	cbnz	x9, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_ff_request_frame
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_29
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	tbnz	w0, #31, LBB0_32
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_33
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x20]
	ldr	x0, [x20, #8]
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x9, [x9]
	str	x9, [sp, #8]
	sxtw	x8, w8
	ldr	x10, [x0]
	sub	x0, x8, x10
	ldr	x1, [x9]
	bl	_FFMIN
	mov	x23, x0
	ldr	x8, [x24]
	ldr	w0, [x8, #8]
	ldr	x9, [sp, #8]
	ldr	w1, [x9, #8]
	ldr	x2, [x8]
	ldr	w6, [x19, #12]
	mov	w3, #0
	mov	x4, x23
	mov	x5, x22
	bl	_av_samples_copy
	sxtw	x8, w23
	ldr	x9, [x24]
	ldr	x10, [x9]
	add	x10, x10, x8
	str	x10, [x9]
	ldr	x1, [sp, #8]
	ldr	x9, [x1]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x0, x20
	bl	_queue_pop
	b	LBB0_14
LBB0_22:
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_AVERROR
LBB0_24:
Lloh9:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_32
LBB0_25:
	mov	x0, x23
	bl	_calc_ptr_alignment
	cmp	w0, #32
	b.lt	LBB0_28
; %bb.26:
	ldr	x8, [x23]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_34
; %bb.27:
	mov	x0, x20
	bl	_queue_pop
	b	LBB0_31
LBB0_28:
	ldr	x0, [x24]
	ldr	w22, [x19, #8]
	cbnz	x0, LBB0_10
	b	LBB0_5
LBB0_29:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	ldr	x1, [x8]
	ldrsw	x8, [x20]
	sub	x2, x8, x1
	ldr	w4, [x19, #12]
	mov	x3, x22
	bl	_av_samples_set_silence
	ldrsw	x8, [x20]
	ldr	x0, [x20, #8]
	str	x8, [x0]
LBB0_30:
	str	xzr, [x24]
	mov	x23, x0
LBB0_31:
	mov	x0, x19
	mov	x1, x23
	bl	_ff_filter_frame
LBB0_32:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_33:
	mov	w0, #0
	b	LBB0_32
LBB0_34:
	mov	x0, x23
	bl	_av_frame_clone
	cbz	x0, LBB0_36
; %bb.35:
	mov	x20, x0
	ldr	x2, [x19]
	str	x2, [x0]
	mov	x0, x19
	mov	x1, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_buffer_offset
	mov	x23, x20
	b	LBB0_31
LBB0_36:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_23
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request_samples changed before the buffer was returned.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_return_audio_frame
.subsections_via_symbols
