	.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	$72, %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), %rax
	movq	8(%rax), %r15
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rax
	movq	(%rax), %r14
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%r14, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_av_frame_copy_props
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.3:
	xorl	%r12d, %r12d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r15), %rcx
	movl	(%rcx,%r12,4), %edx
	movq	%rax, %rsi
	callq	_memcpy
	movq	%rbx, -96(%rbp)
	movq	%r13, -104(%rbp)
	movl	%r12d, -112(%rbp)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_filter_slice@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	24(%r15), %rax
	movq	%r13, %rbx
	movl	(%rax,%r12,4), %r13d
	movq	%r14, %rdi
	callq	_ff_filter_get_nb_threads
	movl	%r13d, %edi
	movq	%rbx, %r13
	movl	%eax, %esi
	callq	_FFMIN
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	-112(%rbp), %rdx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	*-88(%rbp)                      ## 8-byte Folded Reload
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	16(%r15), %rdx
	movq	24(%r15), %rsi
	movslq	(%rsi,%r12,4), %rdi
	decq	%rdi
	movslq	(%rax,%r12,4), %rsi
	imulq	%rdi, %rsi
	shlq	$2, %rsi
	addq	(%rcx,%r12,8), %rsi
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movslq	(%rax,%r12,4), %rax
	movslq	%edi, %rdi
	imulq	%rax, %rdi
	shlq	$2, %rdi
	addq	(%rcx,%r12,8), %rdi
	movl	(%rdx,%r12,4), %edx
	callq	_memcpy
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movslq	(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	movq	8(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movq	8(%r15), %rcx
	cmpq	$0, (%rcx,%r12,8)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rcx
	movl	(%rcx,%r12,4), %esi
	movq	(%rbx), %rcx
	movl	(%rcx,%r12,4), %ecx
	movq	16(%r15), %rdx
	movq	24(%r15), %r9
	movl	(%rdx,%r12,4), %r8d
	movl	(%r9,%r12,4), %r9d
	movq	%rax, %rdx
	callq	_av_image_copy_plane
	jmp	LBB0_7
LBB0_8:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ff_filter_frame
	jmp	LBB0_9
LBB0_1:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_9:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_filter_slice,4,2               ## @filter_slice
	.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, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x1
	str	x1, [sp, #40]
	ldr	x21, [x0, #8]
	ldp	x25, x8, [x21, #8]
	ldr	x19, [x8]
	ldp	w2, w1, [x19]
	mov	x0, x19
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_8
; %bb.1:
	mov	x22, x0
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x1, x20
	bl	_av_frame_copy_props
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x26, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x25, #16]
	lsl	x19, x26, #2
	ldr	w2, [x9, x19]
	mov	x1, x8
	bl	_memcpy
	stp	x22, x20, [sp, #24]
	str	w26, [sp, #16]
	ldr	x8, [x21]
	ldr	x27, [x8]
Lloh0:
	adrp	x8, _filter_slice@GOTPAGE
Lloh1:
	ldr	x8, [x8, _filter_slice@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	x8, [x25, #24]
	ldr	w24, [x8, x19]
	mov	x0, x21
	bl	_ff_filter_get_nb_threads
	mov	x1, x0
	mov	x0, x24
	bl	_FFMIN
	mov	x4, x0
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, x23
	mov	x3, #0
	blr	x27
	ldp	x9, x8, [x20]
	ldr	x8, [x8, x28]
	ldp	x11, x10, [x25, #16]
	ldr	w10, [x10, x19]
	sub	w10, w10, #1
	ldr	w9, [x9, x19]
	mul	w9, w9, w10
	add	x1, x8, w9, sxtw #2
	ldp	x9, x8, [x22]
	ldr	x8, [x8, x28]
	ldr	w9, [x9, x19]
	mul	w9, w9, w10
	add	x0, x8, w9, sxtw #2
	ldr	w2, [x11, x19]
	bl	_memcpy
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x25]
	cmp	x26, x8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	lsl	x28, x26, #3
	ldr	x0, [x8, x28]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x28]
	ldr	x9, [x25, #8]
	ldr	x9, [x9, x28]
	cbnz	x9, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x22]
	lsl	x10, x26, #2
	ldr	w1, [x9, x10]
	ldr	x9, [x20]
	ldr	w3, [x9, x10]
	ldp	x9, x11, [x25, #16]
	ldr	w4, [x9, x10]
	ldr	w5, [x11, x10]
	mov	x2, x8
	bl	_av_image_copy_plane
	b	LBB0_4
LBB0_7:
	add	x0, sp, #40
	bl	_av_frame_free
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x22
	bl	_ff_filter_frame
	b	LBB0_9
LBB0_8:
	add	x0, sp, #40
	bl	_av_frame_free
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_9:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_filter_slice,4,2               ; @filter_slice
	.no_dead_strip	_filter_frame
.subsections_via_symbols
