	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_frame
_filter_frame:                          ## @filter_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, -56(%rbp)
	movq	8(%rdi), %r13
	movq	8(%r13), %rax
	movq	24(%r13), %r12
	movq	(%rax), %r15
	movq	%rsi, %rdi
	callq	_av_frame_is_writable
	movq	%rbx, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_ff_get_audio_buffer
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_av_frame_copy_props
LBB0_4:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)
	movq	16(%r13), %rax
	movl	24(%r12), %esi
	movl	(%r15), %r8d
	leaq	-80(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	*(%rax)
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:
	movq	16(%r12), %rcx
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	$0, (%rcx,%rbx,8)
	incq	%rbx
	movslq	%eax, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %r8
	testq	%r8, %r8
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_av_log
	movq	16(%r12), %rcx
	movl	(%r15), %eax
	jmp	LBB0_8
LBB0_9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_11
## %bb.10:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
LBB0_11:
	cmpq	$0, 8(%r12)
	je	LBB0_14
## %bb.12:
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movq	8(%rcx), %r14
	movq	(%r12), %rcx
	movq	(%rcx), %rbx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	callq	_av_rescale_q
	cmpq	%rbx, %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_14
## %bb.13:
	movq	(%r12), %rdi
	movq	%rax, (%rdi)
	callq	_av_frame_clone
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ff_filter_frame
	testl	%eax, %eax
	js	LBB0_15
LBB0_14:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ff_filter_frame
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Channel %d clipping %d times. Please reduce gain.\n"

	.no_dead_strip	_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_frame
_filter_frame:                          ; @filter_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x1
	str	x1, [sp, #24]
	ldr	x21, [x0, #8]
	ldr	x25, [x21, #24]
	ldr	x8, [x21, #8]
	ldr	x19, [x8]
	mov	x0, x1
	bl	_av_frame_is_writable
	mov	x20, x22
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w1, [x22, #4]
	mov	x0, x19
	bl	_ff_get_audio_buffer
	cbz	x0, LBB0_15
; %bb.2:
	mov	x20, x0
	mov	x1, x22
	bl	_av_frame_copy_props
LBB0_3:
	stp	x20, x22, [sp, #8]
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	ldr	w1, [x25, #24]
	ldr	w4, [x19]
	add	x2, sp, #8
	mov	x0, x21
	mov	x3, #0
	blr	x8
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x23, #0
	ldr	x9, [x25, #16]
Lloh0:
	adrp	x26, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	adrp	x24, l_.str@PAGE
Lloh3:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x9, x23, lsl #3]
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x4, [x9, x23, lsl #3]
	cmp	x4, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x26]
	mov	x0, x21
	mov	x2, x24
	mov	x3, x23
	bl	_av_log
	ldr	x9, [x25, #16]
	ldr	w8, [x19]
	b	LBB0_5
LBB0_8:
	cmp	x20, x22
	b.eq	LBB0_10
; %bb.9:
	add	x0, sp, #24
	bl	_av_frame_free
LBB0_10:
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_13
; %bb.11:
	ldp	x9, x8, [x21]
	ldr	x21, [x8, #8]
	ldr	x8, [x25]
	ldr	x22, [x8]
	ldr	w0, [x20]
	ldr	x8, [x9]
	ldr	w1, [x8]
	ldr	w2, [x21, #4]
	bl	_av_rescale_q
	cmp	x0, x22
	b.le	LBB0_13
; %bb.12:
	ldr	x8, [x25]
	str	x0, [x8]
	mov	x0, x8
	bl	_av_frame_clone
	mov	x1, x0
	mov	x0, x21
	bl	_ff_filter_frame
	tbnz	w0, #31, LBB0_14
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_ff_filter_frame
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	add	x0, sp, #24
	bl	_av_frame_free
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_14
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Channel %d clipping %d times. Please reduce gain.\n"

	.no_dead_strip	_filter_frame
.subsections_via_symbols
