	.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	$424, %rsp                      ## imm = 0x1A8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -384(%rbp)
	movq	8(%rdi), %r12
	movq	8(%r12), %rax
	movq	16(%r12), %r14
	movq	(%rax), %r15
	movq	$0, -440(%rbp)
	movl	(%r15), %esi
	movl	4(%r15), %edx
	movq	%r15, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	8(%rbx), %eax
	movl	%eax, 8(%r13)
	leaq	28(%r14), %rax
	leaq	48(%r14), %rsi
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	movl	(%r15), %r10d
	movl	4(%r15), %r11d
	xorl	%edi, %edi
	movq	%rdi, -328(%rbp)                ## 8-byte Spill
	movq	%rax, -376(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r11
	pushq	%r10
	callq	_ff_fill_rectangle
	movq	%r14, %rcx
	addq	$16, %rsp
	cmpq	$0, 40(%r14)
	movl	$0, %eax
	movq	%r13, -368(%rbp)                ## 8-byte Spill
	je	LBB0_10
## %bb.3:
	movq	%rbx, -408(%rbp)                ## 8-byte Spill
	movq	%r12, -416(%rbp)                ## 8-byte Spill
	movl	(%rcx), %edi
	movl	4(%rcx), %esi
	movq	%rcx, -312(%rbp)                ## 8-byte Spill
	callq	_FFMAX
	movl	%eax, %ecx
	movq	-312(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %edi
	movl	(%r15), %esi
	movl	4(%r15), %eax
	movq	%rcx, -392(%rbp)                ## 8-byte Spill
	leal	(,%rcx,4), %ecx
	leal	(%rcx,%rcx,2), %ecx
	movl	%ecx, -356(%rbp)                ## 4-byte Spill
	cltd
	idivl	%ecx
	movl	%eax, %ecx
	movq	%rdi, -400(%rbp)                ## 8-byte Spill
	leal	(%rdi,%rdi), %eax
	leal	(%rax,%rax,4), %r13d
	movl	%esi, %eax
	cltd
	idivl	%r13d
	movl	%eax, %r12d
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -224(%rbp)
	movaps	%xmm0, -240(%rbp)
	movaps	%xmm0, -256(%rbp)
	movaps	%xmm0, -272(%rbp)
	movaps	%xmm0, -288(%rbp)
	movaps	%xmm0, -304(%rbp)
	movq	-312(%rbp), %rax                ## 8-byte Reload
	addl	12(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %r14d
	movq	-312(%rbp), %rax                ## 8-byte Reload
	addl	16(%rax), %r12d
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %ecx
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_strlen
	movl	-356(%rbp), %esi                ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %edx
	movl	(%r15), %ecx
	movq	%r15, -424(%rbp)                ## 8-byte Spill
	movl	4(%r15), %eax
	movq	%rdx, -328(%rbp)                ## 8-byte Spill
	subl	%edx, %eax
	cltd
	idivl	%esi
	movl	%eax, %edi
	movq	%r14, -352(%rbp)                ## 8-byte Spill
	subl	%r14d, %ecx
	movl	%ecx, %eax
	movq	-312(%rbp), %rcx                ## 8-byte Reload
	cltd
	movl	%r13d, -360(%rbp)               ## 4-byte Spill
	idivl	%r13d
	movl	%eax, -316(%rbp)                ## 4-byte Spill
	testl	%edi, %edi
	movq	-368(%rbp), %r12                ## 8-byte Reload
	jle	LBB0_6
## %bb.4:
	leaq	32(%rcx), %rax
	movq	%rax, -336(%rbp)                ## 8-byte Spill
	leaq	24(%rcx), %rax
	movq	%rax, -432(%rbp)                ## 8-byte Spill
	movq	-392(%rbp), %rax                ## 8-byte Reload
	leal	1(%rax), %r15d
	imull	%eax, %r15d
	addl	-328(%rbp), %r15d               ## 4-byte Folded Reload
	xorl	%ebx, %ebx
	movl	%edi, -344(%rbp)                ## 4-byte Spill
	movq	-376(%rbp), %r14                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-312(%rbp), %rax                ## 8-byte Reload
	movl	12(%rax), %ecx
	addl	%ebx, %ecx
	leaq	-304(%rbp), %rdi
	movl	%esi, %r13d
	movl	$256, %esi                      ## imm = 0x100
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	movl	(%r12), %ecx
	movl	4(%r12), %edx
	leal	-2(%r15), %r9d
	movq	%r14, %rdi
	movq	-336(%rbp), %rsi                ## 8-byte Reload
	xorl	%r8d, %r8d
	pushq	$10
	pushq	-352(%rbp)                      ## 8-byte Folded Reload
	callq	_ff_fill_rectangle
	addq	$8, %rsp
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-432(%rbp), %rdx                ## 8-byte Reload
	movl	$2, %ecx
	movl	%r15d, %r8d
	leaq	-304(%rbp), %r9
	pushq	$0
	callq	_draw_text
	movl	-344(%rbp), %edi                ## 4-byte Reload
	movl	%r13d, %esi
	movq	-312(%rbp), %rcx                ## 8-byte Reload
	addq	$16, %rsp
	incl	%ebx
	addl	%r13d, %r15d
	cmpl	%ebx, %edi
	jne	LBB0_5
LBB0_6:
	cmpl	$0, -316(%rbp)                  ## 4-byte Folded Reload
	movl	-360(%rbp), %r14d               ## 4-byte Reload
	movq	%r12, %r13
	jle	LBB0_9
## %bb.7:
	leaq	32(%rcx), %rax
	movq	%rax, -344(%rbp)                ## 8-byte Spill
	movq	-352(%rbp), %rax                ## 8-byte Reload
	movq	-400(%rbp), %rdx                ## 8-byte Reload
	leal	(%rax,%rdx,2), %ebx
	leaq	24(%rcx), %rax
	movq	%rax, -336(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	-376(%rbp), %r12                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-312(%rbp), %rax                ## 8-byte Reload
	movl	16(%rax), %ecx
	addl	%r15d, %ecx
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	leal	-2(%rbx), %r8d
	movq	%r12, %rdi
	movq	-344(%rbp), %rsi                ## 8-byte Reload
	xorl	%r9d, %r9d
	pushq	-328(%rbp)                      ## 8-byte Folded Reload
	pushq	$10
	callq	_ff_fill_rectangle
	addq	$8, %rsp
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-336(%rbp), %rdx                ## 8-byte Reload
	movl	%ebx, %ecx
	movl	$2, %r8d
	leaq	-304(%rbp), %r9
	pushq	$1
	callq	_draw_text
	movq	-312(%rbp), %rcx                ## 8-byte Reload
	addq	$16, %rsp
	incl	%r15d
	addl	%r14d, %ebx
	cmpl	%r15d, -316(%rbp)               ## 4-byte Folded Reload
	jne	LBB0_8
LBB0_9:
	movq	-424(%rbp), %r15                ## 8-byte Reload
	movq	-416(%rbp), %r12                ## 8-byte Reload
	movq	-408(%rbp), %rbx                ## 8-byte Reload
	movq	-352(%rbp), %rax                ## 8-byte Reload
LBB0_10:
	movq	%rbx, -448(%rbp)
	movq	%r13, -456(%rbp)
	movq	-328(%rbp), %rdx                ## 8-byte Reload
	movl	%edx, -464(%rbp)
	movl	%eax, -460(%rbp)
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	%rax, -312(%rbp)                ## 8-byte Spill
	movl	20(%rcx), %r14d
	movq	%r12, %rdi
	callq	_ff_filter_get_nb_threads
	movl	%eax, %ebx
	movslq	(%r15), %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$35, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	callq	_FFMAX
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FFMIN
	leaq	-464(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	*-312(%rbp)                     ## 8-byte Folded Reload
	leaq	-384(%rbp), %rdi
	callq	_av_frame_free
	movq	%r15, %rdi
	movq	-368(%rbp), %rsi                ## 8-byte Reload
	callq	_ff_filter_frame
	jmp	LBB0_11
LBB0_1:
	leaq	-384(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$424, %rsp                      ## imm = 0x1A8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.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, #480
	.cfi_def_cfa_offset 480
	stp	x28, x27, [sp, #384]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #400]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #416]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #432]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #448]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #464]            ; 16-byte Folded Spill
	add	x29, sp, #464
	.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, #-104]
	str	x1, [sp, #88]
	ldr	x24, [x0, #8]
	ldp	x8, x20, [x24, #8]
	ldr	x27, [x8]
	str	xzr, [sp, #80]
	ldp	w1, w2, [x27]
	mov	x0, x27
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	ldr	w8, [x19, #8]
	str	w8, [x0, #8]
	add	x23, x20, #28
	add	x1, x20, #48
	ldp	w3, w2, [x0]
	ldp	w6, w7, [x27]
	mov	x0, x23
	mov	w4, #0
	mov	w5, #0
	bl	_ff_fill_rectangle
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_10
; %bb.2:
	stp	x19, x24, [sp, #16]             ; 16-byte Folded Spill
	add	x19, sp, #96
	ldp	w0, w1, [x20]
	bl	_FFMAX
	mov	x26, x0
	ldr	w10, [x20, #8]
	add	w8, w0, w0, lsl #1
	lsl	w24, w8, #2
	ldp	w9, w8, [x27]
	sdiv	w8, w8, w24
	str	w10, [sp, #8]                   ; 4-byte Folded Spill
	add	w10, w10, w10, lsl #2
	lsl	w28, w10, #1
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #224]
	stp	q0, q0, [x19, #192]
	stp	q0, q0, [x19, #160]
	stp	q0, q0, [x19, #128]
	stp	q0, q0, [x19, #96]
	stp	q0, q0, [sp, #160]
	stp	q0, q0, [sp, #128]
	stp	q0, q0, [sp, #96]
	ldr	w10, [x20, #12]
	add	w3, w10, w8
	sdiv	w19, w9, w28
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
	add	x0, sp, #96
	mov	w1, #256
	mov	x2, x22
	bl	_snprintf
	add	x0, sp, #96
	bl	_strlen
	add	w8, w0, w0, lsl #2
	lsl	w25, w8, #1
	ldr	w8, [x20, #16]
	add	w3, w8, w19
	add	x0, sp, #96
	mov	w1, #256
	mov	x2, x22
	bl	_snprintf
	add	x0, sp, #96
	bl	_strlen
	add	w8, w0, w0, lsl #2
	lsl	w10, w8, #1
	ldp	w9, w8, [x27]
	str	x27, [sp, #32]                  ; 8-byte Folded Spill
	str	w10, [sp, #44]                  ; 4-byte Folded Spill
	sub	w8, w8, w10
	sdiv	w22, w8, w24
	sub	w8, w9, w25
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
	sdiv	w8, w8, w28
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w19, #0
	add	x27, x20, #32
	add	x28, x20, #24
	madd	w8, w26, w26, w26
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	add	w26, w8, w9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #12]
	add	w3, w19, w8
	add	x0, sp, #96
	mov	w1, #256
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
	ldp	w3, w2, [x21]
	sub	w5, w26, #2
	mov	x0, x23
	mov	x1, x27
	mov	w4, #0
	mov	x6, x25
	mov	w7, #10
	bl	_ff_fill_rectangle
	add	x5, sp, #96
	mov	x0, x23
	mov	x1, x21
	mov	x2, x28
	mov	w3, #2
	mov	x4, x26
	mov	w6, #0
	bl	_draw_text
	add	w19, w19, #1
	add	w26, w26, w24
	cmp	w22, w19
	b.ne	LBB0_4
LBB0_5:
	str	w25, [sp, #48]                  ; 4-byte Folded Spill
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	cmp	w8, #1
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
	ldr	w22, [sp, #44]                  ; 4-byte Folded Reload
	b.lt	LBB0_8
; %bb.6:
	mov	w19, #0
	add	x26, x20, #32
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	add	w27, w8, w9, lsl #1
	add	x28, x20, #24
Lloh7:
	adrp	x25, l_.str@PAGE
Lloh8:
	add	x25, x25, l_.str@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #16]
	add	w3, w19, w8
	add	x0, sp, #96
	mov	w1, #256
	mov	x2, x25
	bl	_snprintf
	ldp	w3, w2, [x21]
	sub	w4, w27, #2
	mov	x0, x23
	mov	x1, x26
	mov	w5, #0
	mov	w6, #10
	mov	x7, x22
	bl	_ff_fill_rectangle
	add	x5, sp, #96
	mov	x0, x23
	mov	x1, x21
	mov	x2, x28
	mov	x3, x27
	mov	w4, #2
	mov	w6, #1
	bl	_draw_text
	add	w19, w19, #1
	add	w27, w27, w24
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	cmp	w8, w19
	b.ne	LBB0_7
LBB0_8:
	ldp	x24, x27, [sp, #24]             ; 16-byte Folded Reload
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w25, [sp, #48]                  ; 4-byte Folded Reload
	b	LBB0_11
LBB0_9:
	add	x0, sp, #88
	bl	_av_frame_free
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_12
LBB0_10:
	mov	w22, #0
	mov	w25, #0
LBB0_11:
	stp	x21, x19, [sp, #64]
	stp	w22, w25, [sp, #56]
	ldr	x8, [x24]
	ldr	x19, [x8]
	ldr	w22, [x20, #20]
	mov	x0, x24
	bl	_ff_filter_get_nb_threads
	mov	x23, x0
	ldrsw	x8, [x27]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w0, w8, w9
	mov	w1, #1
	bl	_FFMAX
	mov	x1, x0
	mov	x0, x23
	bl	_FFMIN
	mov	x4, x0
	add	x2, sp, #56
	mov	x0, x24
	mov	x1, x22
	mov	x3, #0
	blr	x19
	add	x0, sp, #88
	bl	_av_frame_free
	mov	x0, x27
	mov	x1, x21
	bl	_ff_filter_frame
LBB0_12:
	ldur	x8, [x29, #-104]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #464]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #448]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #432]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #416]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #400]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #384]            ; 16-byte Folded Reload
	add	sp, sp, #480
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.no_dead_strip	_filter_frame
.subsections_via_symbols
