	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oscilloscope_filter_frame
_oscilloscope_filter_frame:             ## @oscilloscope_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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %r14
	movq	(%rcx), %rax
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movd	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	%xmm0, -240(%rbp)
	movl	$0, (%r14)
	movl	112(%r14), %esi
	movl	108(%r14), %edx
	movl	104(%r14), %ecx
	movl	100(%r14), %r8d
	movl	(%rdi), %eax
	andl	$1, %eax
	movq	%r14, %rdi
	movq	%r15, %r9
	pushq	%rax
	pushq	64(%r14)
	callq	_draw_scope
	addq	$16, %rsp
	leaq	52(%r14), %r12
	leaq	96(%r14), %rsi
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movl	12(%r15), %r8d
	movl	8(%r15), %r9d
	movl	4(%r14), %eax
	movl	12(%r14), %edi
	leal	(%rdi,%rdi,4), %ebx
	shll	$2, %ebx
	addl	8(%r14), %ebx
	movq	%r12, %rdi
	pushq	%rbx
	pushq	%rax
	pushq	32(%r14)
	pushq	40(%r14)
	callq	_ff_blend_rectangle
	addq	$32, %rsp
	cmpq	$0, 88(%r14)
	je	LBB0_5
## %bb.1:
	movq	-224(%rbp), %rax                ## 8-byte Reload
	cmpl	$10, 4(%rax)
	jl	LBB0_5
## %bb.2:
	leaq	80(%r14), %r13
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	40(%r14), %r8
	movq	32(%r14), %r9
	movl	4(%r14), %eax
	decl	%eax
	movq	%r12, %rdi
	movq	%r13, %rsi
	pushq	$1
	pushq	%rax
	callq	_ff_fill_rectangle
	addq	$16, %rsp
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	40(%r14), %r8
	movl	4(%r14), %eax
	movl	8(%r14), %esi
	leal	-1(%rsi), %edi
	addl	$2, %esi
	testl	%edi, %edi
	cmovnsl	%edi, %esi
	sarl	$2, %esi
	movslq	%esi, %r9
	addq	32(%r14), %r9
	movq	%r12, %rdi
	movq	%r13, %rsi
	pushq	$1
	pushq	%rax
	callq	_ff_fill_rectangle
	addq	$16, %rsp
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	40(%r14), %r8
	movl	4(%r14), %eax
	movl	8(%r14), %esi
	leal	(%rsi,%rsi), %edi
	addl	$-2, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	addl	%esi, %esi
	testl	%edi, %edi
	cmovnsl	%edi, %esi
	sarl	$2, %esi
	movslq	%esi, %r9
	addq	32(%r14), %r9
	movq	%r12, %rdi
	movq	%r13, %rsi
	pushq	$1
	pushq	%rax
	callq	_ff_fill_rectangle
	addq	$16, %rsp
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	40(%r14), %r8
	movl	4(%r14), %eax
	movl	8(%r14), %esi
	leal	(%rsi,%rsi,2), %edi
	leal	(%rsi,%rsi,2), %esi
	addl	$-3, %esi
	testl	%esi, %esi
	cmovnsl	%esi, %edi
	sarl	$2, %edi
	movslq	%edi, %r9
	addq	32(%r14), %r9
	movq	%r12, %rdi
	movq	%r13, %rsi
	pushq	$1
	pushq	%rax
	callq	_ff_fill_rectangle
	addq	$16, %rsp
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	40(%r14), %r8
	movq	32(%r14), %rax
	movslq	8(%r14), %rsi
	leaq	-1(%rsi,%rax), %r9
	movl	4(%r14), %eax
	movq	%r12, %rdi
	movq	%r13, %rsi
	pushq	$1
	pushq	%rax
	callq	_ff_fill_rectangle
	addq	$16, %rsp
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movl	4(%r14), %eax
	movl	8(%r14), %r10d
	decl	%eax
	imull	%ebx, %eax
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rsi
	shrq	$63, %rsi
	sarq	$34, %rax
	addl	%esi, %eax
	movslq	%eax, %r8
	addq	40(%r14), %r8
	movq	32(%r14), %r9
	movq	%r12, %rdi
	movq	%r13, %rsi
	pushq	%r10
	pushq	$1
	callq	_ff_fill_rectangle
	addq	$16, %rsp
	incl	%ebx
	cmpl	$10, %ebx
	jne	LBB0_3
## %bb.4:
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	40(%r14), %rax
	movslq	4(%r14), %rsi
	leaq	(%rax,%rsi), %r8
	decq	%r8
	movq	32(%r14), %r9
	movl	8(%r14), %eax
	movq	%r12, %rdi
	movq	%r13, %rsi
	pushq	%rax
	pushq	$1
	callq	_ff_fill_rectangle
	addq	$16, %rsp
LBB0_5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*72(%r14)
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.10:
	movl	16(%r14), %ecx
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r14), %eax
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r13
	movslq	%eax, %rdx
	cmpq	%rdx, %r13
	jge	LBB0_7
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=2
	incq	%rbx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_16
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	20(%r14), %eax
	btl	%ebx, %eax
	jae	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	-80(%rbp,%rbx,4), %edi
	movq	24(%r14), %rax
	movq	64(%r14), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	(%rax,%rbx,8), %rax
	movq	(%rcx,%rax,8), %rsi
	callq	_FFMAX
	movl	%eax, -80(%rbp,%rbx,4)
	movl	-240(%rbp,%rbx,4), %edi
	movq	24(%r14), %rax
	movq	64(%r14), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	(%rax,%rbx,8), %rax
	movq	(%rcx,%rax,8), %rsi
	callq	_FFMIN
	movl	%eax, -240(%rbp,%rbx,4)
	movq	24(%r14), %rax
	movq	64(%r14), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	(%rax,%rbx,8), %rax
	xorps	%xmm0, %xmm0
	cvtsi2ssq	(%rcx,%rax,8), %xmm0
	addss	-64(%rbp,%rbx,4), %xmm0
	movss	%xmm0, -64(%rbp,%rbx,4)
	movl	16(%r14), %ecx
	jmp	LBB0_15
LBB0_6:
	movl	16(%r14), %ecx
LBB0_7:
	testl	%ecx, %ecx
	jle	LBB0_26
## %bb.8:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movl	%ecx, %eax
	cmpl	$4, %ecx
	jae	LBB0_18
## %bb.9:
	xorl	%ecx, %ecx
	jmp	LBB0_25
LBB0_18:
	movl	%eax, %ecx
	andl	$-4, %ecx
	movaps	%xmm0, %xmm1
	shufps	$0, %xmm0, %xmm1                ## xmm1 = xmm1[0,0],xmm0[0,0]
	leaq	-4(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$2, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.20:
	movq	%rdx, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movaps	-64(%rbp,%rsi,4), %xmm2
	movaps	-48(%rbp,%rsi,4), %xmm3
	divps	%xmm1, %xmm2
	movaps	%xmm2, -64(%rbp,%rsi,4)
	divps	%xmm1, %xmm3
	movaps	%xmm3, -48(%rbp,%rsi,4)
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_21
## %bb.22:
	testb	$1, %dl
	je	LBB0_24
LBB0_23:
	movaps	-64(%rbp,%rsi,4), %xmm2
	divps	%xmm1, %xmm2
	movaps	%xmm2, -64(%rbp,%rsi,4)
LBB0_24:
	cmpq	%rax, %rcx
	je	LBB0_26
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movss	-64(%rbp,%rcx,4), %xmm1         ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	movss	%xmm1, -64(%rbp,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_25
LBB0_26:
	cmpl	$0, 12(%r14)
	je	LBB0_36
## %bb.27:
	cmpl	$11, 8(%r14)
	jl	LBB0_36
## %bb.28:
	movl	4(%r14), %ebx
	movl	20(%r14), %edi
	callq	_av_popcount
	imull	$280, %eax, %eax                ## imm = 0x118
	cmpl	%eax, %ebx
	jle	LBB0_36
## %bb.29:
	movl	16(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_36
## %bb.30:
	leaq	48(%r14), %rcx
	movq	%rcx, -248(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	$0, -212(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_31 Depth=1
	movsbl	(%rax,%r13), %ecx
	movd	-64(%rbp,%r13,4), %xmm0         ## xmm0 = mem[0],zero,zero,zero
	movl	-240(%rbp,%r13,4), %r8d
	movl	-80(%rbp,%r13,4), %r9d
	leaq	-208(%rbp), %r12
	movq	%r12, %rdi
	movl	$128, %esi
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	movl	-212(%rbp), %edx                ## 4-byte Reload
	imull	$280, %edx, %eax                ## imm = 0x118
	orl	$2, %eax
	movslq	%eax, %rcx
	addq	40(%r14), %rcx
	incl	%edx
	movl	%edx, -212(%rbp)                ## 4-byte Spill
	movq	32(%r14), %rax
	movslq	8(%r14), %rdx
	leaq	(%rax,%rdx), %r8
	addq	$4, %r8
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%rbx, %r15
	movq	%rbx, %rsi
	movq	-248(%rbp), %rdx                ## 8-byte Reload
	movq	%r12, %r9
	movq	%rdi, %r12
	pushq	$0
	callq	_draw_text
	addq	$16, %rsp
	movl	16(%r14), %eax
LBB0_35:                                ##   in Loop: Header=BB0_31 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_36
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movl	20(%r14), %ecx
	btl	%r13d, %ecx
	jae	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	%r15, %rbx
	movq	%r12, %r15
	cmpq	$0, 56(%r14)
	leaq	L___const.oscilloscope_filter_frame.yuva(%rip), %rax
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=1
	leaq	L___const.oscilloscope_filter_frame.rgba(%rip), %rax
	jmp	LBB0_34
LBB0_36:
	movq	-224(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ff_filter_frame
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_38
## %bb.37:
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	xorl	%esi, %esi
	testb	$1, %dl
	jne	LBB0_23
	jmp	LBB0_24
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.section	__TEXT,__literal4,4byte_literals
L___const.oscilloscope_filter_frame.rgba: ## @__const.oscilloscope_filter_frame.rgba
	.ascii	"RGBA"

L___const.oscilloscope_filter_frame.yuva: ## @__const.oscilloscope_filter_frame.yuva
	.ascii	"YUVA"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%c avg:%.1f min:%d max:%d\n"

	.no_dead_strip	_oscilloscope_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oscilloscope_filter_frame
_oscilloscope_filter_frame:             ; @oscilloscope_filter_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #224]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #240]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x8, [x0, #8]
	ldp	x8, x20, [x8]
	ldr	x22, [x8]
	stp	xzr, xzr, [x29, #-112]
Lloh3:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
	stp	xzr, xzr, [x29, #-128]
	ld1r.4s	{ v0 }, [x8]
	str	q0, [sp, #32]
	str	wzr, [x20]
	ldp	w2, w1, [x20, #108]
	ldp	w4, w3, [x20, #100]
	ldr	x6, [x20, #64]
	ldr	w8, [x0]
	and	w7, w8, #0x1
	mov	x0, x20
	mov	x5, x19
	bl	_draw_scope
	add	x25, x20, #52
	add	x1, x20, #96
	ldp	w3, w2, [x19]
	ldp	w5, w4, [x19, #8]
	ldp	x7, x6, [x20, #32]
	ldp	w8, w9, [x20, #4]
	ldr	w10, [x20, #12]
	mov	w11, #20
	madd	w9, w10, w11, w9
	stp	w8, w9, [sp]
	mov	x0, x25
	bl	_ff_blend_rectangle
	ldr	x8, [x20, #88]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w8, [x22, #4]
	cmp	w8, #10
	b.lt	LBB0_5
; %bb.2:
	add	x23, x20, #80
	ldp	w3, w2, [x19]
	ldp	x5, x4, [x20, #32]
	ldr	w8, [x20, #4]
	sub	w6, w8, #1
	mov	w21, #1
	mov	x0, x25
	mov	x1, x23
	mov	w7, #1
	bl	_ff_fill_rectangle
	ldp	w3, w2, [x19]
	ldp	x8, x4, [x20, #32]
	ldp	w6, w9, [x20, #4]
	sub	w10, w9, #1
	add	w9, w9, #2
	cmp	w10, #0
	csel	w9, w9, w10, lt
	asr	w9, w9, #2
	add	x5, x8, w9, sxtw
	mov	x0, x25
	mov	x1, x23
	mov	w7, #1
	bl	_ff_fill_rectangle
	ldp	w3, w2, [x19]
	ldp	x8, x4, [x20, #32]
	ldp	w6, w9, [x20, #4]
	lsl	w10, w9, #1
	sub	w10, w10, #2
	bfi	w21, w9, #1, #31
	cmp	w10, #0
	csel	w9, w21, w10, lt
	asr	w9, w9, #2
	add	x5, x8, w9, sxtw
	mov	x0, x25
	mov	x1, x23
	mov	w7, #1
	bl	_ff_fill_rectangle
	ldp	w3, w2, [x19]
	ldp	x8, x4, [x20, #32]
	ldp	w6, w9, [x20, #4]
	add	w9, w9, w9, lsl #1
	sub	w10, w9, #3
	cmp	w10, #0
	csel	w9, w9, w10, lt
	asr	w9, w9, #2
	add	x5, x8, w9, sxtw
	mov	x0, x25
	mov	x1, x23
	mov	w7, #1
	bl	_ff_fill_rectangle
	ldp	w3, w2, [x19]
	ldp	x8, x4, [x20, #32]
	ldp	w6, w9, [x20, #4]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x8, x9, x8
	sub	x5, x8, #1
	mov	x0, x25
	mov	x1, x23
	mov	w7, #1
	bl	_ff_fill_rectangle
	mov	w21, #0
	mov	w24, #26215
	movk	w24, #26214, lsl #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w3, w2, [x19]
	ldp	w8, w7, [x20, #4]
	sub	w8, w8, #1
	mul	w8, w8, w21
	smull	x8, w8, w24
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #2
	ldp	x5, x9, [x20, #32]
	add	x4, x9, w8, sxtw
	mov	x0, x25
	mov	x1, x23
	mov	w6, #1
	bl	_ff_fill_rectangle
	add	w21, w21, #1
	cmp	w21, #10
	b.ne	LBB0_3
; %bb.4:
	ldp	w3, w2, [x19]
	ldp	x5, x8, [x20, #32]
	ldp	w9, w7, [x20, #4]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x8, x8, x9
	sub	x4, x8, #1
	mov	x0, x25
	mov	x1, x23
	mov	w6, #1
	bl	_ff_fill_rectangle
LBB0_5:
	str	x25, [sp, #24]                  ; 8-byte Folded Spill
	ldr	x8, [x20, #72]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	ldr	w9, [x20]
	cmp	w9, #0
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	b.le	LBB0_14
; %bb.6:
	mov	x23, #0
	ldr	w8, [x20, #16]
	sub	x24, x29, #128
	add	x25, sp, #32
	sub	x26, x29, #112
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x20]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	cmp	x23, w9, sxtw
	b.ge	LBB0_15
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x21, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_7
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x20, #20]
	lsr	w9, w9, w21
	tbz	w9, #0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	lsl	x27, x21, #2
	ldr	w0, [x24, x27]
	ldr	x8, [x20, #64]
	lsl	x28, x23, #3
	ldr	x8, [x8, x28]
	ldr	x9, [x20, #24]
	lsl	x22, x21, #3
	ldr	x9, [x9, x22]
	ldr	x1, [x8, x9, lsl #3]
	bl	_FFMAX
	str	w0, [x24, x27]
	ldr	w0, [x25, x27]
	ldr	x8, [x20, #64]
	ldr	x8, [x8, x28]
	ldr	x9, [x20, #24]
	ldr	x9, [x9, x22]
	ldr	x1, [x8, x9, lsl #3]
	bl	_FFMIN
	str	w0, [x25, x27]
	ldr	x8, [x20, #64]
	ldr	x8, [x8, x28]
	ldr	x9, [x20, #24]
	ldr	x9, [x9, x22]
	ldr	x8, [x8, x9, lsl #3]
	scvtf	s0, x8
	ldr	s1, [x26, x27]
	fadd	s0, s1, s0
	str	s0, [x26, x27]
	ldr	w8, [x20, #16]
	b	LBB0_11
LBB0_14:
	ldr	w8, [x20, #16]
LBB0_15:
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.16:
	scvtf	s0, w9
	mov	w9, w8
	cmp	w8, #16
	b.hs	LBB0_18
; %bb.17:
	mov	x8, #0
	b	LBB0_21
LBB0_18:
	and	x8, x9, #0xfffffff0
	dup.4s	v1, v0[0]
	sub	x10, x29, #112
	add	x10, x10, #32
	mov	x11, x8
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x10, #-32]
	ldp	q4, q5, [x10]
	fdiv.4s	v2, v2, v1
	fdiv.4s	v3, v3, v1
	fdiv.4s	v4, v4, v1
	fdiv.4s	v5, v5, v1
	stp	q2, q3, [x10, #-32]
	stp	q4, q5, [x10], #64
	subs	x11, x11, #16
	b.ne	LBB0_19
; %bb.20:
	cmp	x8, x9
	b.eq	LBB0_23
LBB0_21:
	sub	x10, x29, #112
	add	x10, x10, x8, lsl #2
	sub	x8, x9, x8
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x10]
	fdiv	s1, s1, s0
	str	s1, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_22
LBB0_23:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_31
; %bb.24:
	ldr	w8, [x20, #8]
	cmp	w8, #11
	b.lt	LBB0_31
; %bb.25:
	ldr	w21, [x20, #4]
	ldr	w0, [x20, #20]
	bl	_av_popcount
	mov	w8, #280
	mul	w8, w0, w8
	cmp	w21, w8
	b.le	LBB0_31
; %bb.26:
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.27:
	mov	x25, #0
	mov	w28, #0
	add	x23, x20, #48
	add	x21, sp, #32
	sub	x26, x29, #128
	mov	w27, #280
Lloh5:
	adrp	x24, l_.str@PAGE
Lloh6:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_31
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20, #20]
	lsr	w9, w9, w25
	tbz	w9, #0, LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x20, #56]
	cmp	x8, #0
Lloh7:
	adrp	x8, l___const.oscilloscope_filter_frame.rgba@PAGE
Lloh8:
	add	x8, x8, l___const.oscilloscope_filter_frame.rgba@PAGEOFF
Lloh9:
	adrp	x9, l___const.oscilloscope_filter_frame.yuva@PAGE
Lloh10:
	add	x9, x9, l___const.oscilloscope_filter_frame.yuva@PAGEOFF
	csel	x8, x9, x8, eq
	ldrsb	w3, [x8, x25]
	lsl	x8, x25, #2
	sub	x9, x29, #112
	ldr	s0, [x9, x8]
	ldr	w4, [x21, x8]
	ldr	w5, [x26, x8]
	add	x0, sp, #48
	mov	w1, #128
	mov	x2, x24
	bl	_snprintf
	add	w22, w28, #1
	mul	w8, w28, w27
	orr	w8, w8, #0x2
	ldp	x10, x9, [x20, #32]
	add	x3, x9, w8, sxtw
	ldrsw	x8, [x20, #8]
	add	x8, x10, x8
	add	x4, x8, #4
	add	x5, sp, #48
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x19
	mov	x2, x23
	mov	w6, #0
	bl	_draw_text
	ldr	w8, [x20, #16]
	mov	x28, x22
	b	LBB0_28
LBB0_31:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x19
	bl	_ff_filter_frame
	ldur	x8, [x29, #-96]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.32:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.section	__TEXT,__literal4,4byte_literals
l___const.oscilloscope_filter_frame.rgba: ; @__const.oscilloscope_filter_frame.rgba
	.ascii	"RGBA"

l___const.oscilloscope_filter_frame.yuva: ; @__const.oscilloscope_filter_frame.yuva
	.ascii	"YUVA"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%c avg:%.1f min:%d max:%d\n"

	.no_dead_strip	_oscilloscope_filter_frame
.subsections_via_symbols
