	.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	$120, %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, -128(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movq	8(%rax), %rax
	movq	(%rax), %r14
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_av_frame_is_writable
	movq	%rbx, %r13
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%r14, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_av_frame_copy_props
LBB0_4:
	movq	%r14, -136(%rbp)                ## 8-byte Spill
	cmpl	$0, 4(%r12)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jle	LBB0_17
## %bb.5:
	movl	%edx, %eax
	negl	%eax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movslq	4(%r12), %rax
	cmpq	%rax, %r14
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	jge	LBB0_17
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
                                        ##       Child Loop BB0_14 Depth 3
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movl	(%rax,%r14,4), %r15d
	movl	(%rcx,%r14,4), %esi
	movq	8(%r13), %rax
	movq	(%rax,%r14,8), %rcx
	cmpq	%rbx, %r13
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx,%r14,8), %rdx
	movq	(%r13), %rcx
	movl	(%rcx,%r14,4), %esi
	movl	(%rax,%r14,4), %ecx
	movl	24(%r12), %r8d
	imull	%r15d, %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_av_image_copy_plane
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	28(%r12), %eax
	btl	%r14d, %eax
	jae	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%edx, %ebx
	cmpl	%r15d, %edx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	jge	LBB0_10
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	56(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	24(%r12), %rax
	movslq	%ebx, %rbx
	imulq	%rbx, %rax
	leaq	(%rcx,%rax,4), %r14
	movq	(%r13), %rax
	movq	%r13, %r15
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %r13d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_FFMIN
	movl	48(%r12), %ecx
	movl	44(%r12), %r8d
	movl	40(%r12), %r9d
	movl	32(%r12), %r10d
	movl	36(%r12), %r11d
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%r15, %r13
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movl	%eax, %edx
	pushq	%r10
	pushq	%r11
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$16, %rsp
	addl	%edx, %ebx
	cmpl	%r15d, %ebx
	jl	LBB0_21
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%edx, %esi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-144(%rbp), %rax                ## 8-byte Reload
	addl	%r15d, %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	addl	%edx, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	cmpl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	movq	%rcx, %r13
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jle	LBB0_16
LBB0_12:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_14 Depth 3
	movq	(%r13), %rax
	movl	(%rax,%r14,4), %ebx
	movl	%ebx, %eax
	imull	%edx, %eax
	cltq
	leaq	(%rcx,%rax,4), %r14
	movq	64(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	callq	_FFMIN
	movl	48(%r12), %ecx
	movl	44(%r12), %r8d
	movl	40(%r12), %r9d
	movl	32(%r12), %r10d
	movl	36(%r12), %r11d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	pushq	%r10
	pushq	%r11
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$16, %rsp
	cmpl	%r15d, %edx
	movq	%r13, %rcx
	jge	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	subl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	-92(%rbp), %r13d                ## 4-byte Reload
	movl	%edx, %r14d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	64(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	24(%r12), %rax
	movslq	%r14d, %r14
	imulq	%r14, %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	(%rax,%r15,4), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_FFMIN
	movl	48(%r12), %ecx
	movl	44(%r12), %r8d
	movl	40(%r12), %r9d
	movl	32(%r12), %ebx
	movl	36(%r12), %r10d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	-100(%rbp), %esi                ## 4-byte Reload
	movl	%eax, %edx
	pushq	%rbx
	pushq	%r10
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	addq	$16, %rsp
	movq	56(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	24(%r12), %rax
	imulq	%r14, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %r15d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	callq	_FFMIN
	movl	48(%r12), %ecx
	movl	44(%r12), %r8d
	movl	40(%r12), %r9d
	movl	32(%r12), %ebx
	movl	36(%r12), %r10d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movl	%eax, %edx
	pushq	%rbx
	pushq	%r10
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$16, %rsp
	addl	%edx, %r14d
	subl	%edx, %r13d
	cmpl	%r14d, %r15d
	jg	LBB0_14
	jmp	LBB0_15
LBB0_17:
	cmpq	%rbx, %r13
	je	LBB0_19
## %bb.18:
	leaq	-128(%rbp), %rdi
	callq	_av_frame_free
LBB0_19:
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ff_filter_frame
LBB0_20:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	-128(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x21, x1
	str	x1, [sp, #72]
	ldr	x8, [x0, #8]
	ldp	x20, x9, [x8]
	ldr	x19, [x9]
	ldr	w8, [x20]
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
	mov	x0, x1
	bl	_av_frame_is_writable
	mov	x22, x21
	cbnz	x0, LBB0_3
; %bb.1:
	ldp	w2, w1, [x19]
	mov	x0, x19
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_21
; %bb.2:
	mov	x22, x0
	mov	x1, x21
	bl	_av_frame_copy_props
LBB0_3:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w8, [x20, #4]
	cmp	w8, #1
	ldr	w10, [sp, #68]                  ; 4-byte Folded Reload
	b.lt	LBB0_17
; %bb.4:
	mov	x24, #0
	neg	w8, w10
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	str	x21, [sp, #24]                  ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x20, #4]
	cmp	x24, x8
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	b.ge	LBB0_17
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
                                        ;       Child Loop BB0_16 Depth 3
	lsl	x19, x24, #2
	ldp	x8, x9, [x20, #8]
	ldr	w28, [x8, x19]
	ldr	w25, [x9, x19]
	ldr	x8, [x22, #8]
	ldr	x23, [x8, x24, lsl #3]
	cmp	x22, x21
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x9, x8, [x21]
	ldr	x2, [x8, x24, lsl #3]
	ldr	x8, [x22]
	ldr	w1, [x8, x19]
	ldr	w3, [x9, x19]
	ldr	w8, [x20, #24]
	mul	w4, w8, w28
	mov	x0, x23
	mov	x5, x25
	bl	_av_image_copy_plane
	ldr	w10, [sp, #68]                  ; 4-byte Folded Reload
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x19, [sp, #48]                  ; 8-byte Folded Spill
	ldr	w8, [x20, #28]
	lsr	w8, w8, w24
	tbz	w8, #0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x19, x10
	cmp	w10, w28
	b.ge	LBB0_11
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x21, [x20, #56]
	ldr	w8, [x20, #24]
	mul	w8, w8, w19
	add	x26, x23, w8, sxtw #2
	ldr	x8, [x22]
	ldr	w27, [x8, x24, lsl #2]
	ldr	w0, [sp, #68]                   ; 4-byte Folded Reload
	mov	x1, x25
	bl	_FFMIN
	mov	x2, x0
	ldp	w4, w3, [x20, #44]
	ldp	w6, w5, [x20, #36]
	ldr	w7, [x20, #32]
	mov	x0, x26
	mov	x1, x27
	blr	x21
	ldr	w10, [sp, #68]                  ; 4-byte Folded Reload
	add	w19, w19, w10
	cmp	w19, w28
	b.lt	LBB0_10
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w25, w10
	b.le	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	add	w8, w8, w28
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	stp	w25, w10, [sp, #56]             ; 8-byte Folded Spill
	str	x24, [sp, #40]                  ; 8-byte Folded Spill
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	ldp	w25, w8, [sp, #56]              ; 8-byte Folded Reload
	add	w8, w8, w10
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	cmp	w25, w8
	mov	x22, x24
	ldr	x24, [sp, #40]                  ; 8-byte Folded Reload
	b.le	LBB0_5
LBB0_14:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_16 Depth 3
	ldr	x8, [x22]
	ldr	w26, [x8, x24, lsl #2]
	mul	w8, w26, w10
	add	x23, x23, w8, sxtw #2
	ldr	x19, [x20, #64]
	ldr	w0, [sp, #68]                   ; 4-byte Folded Reload
	mov	x1, x28
	bl	_FFMIN
	mov	x2, x0
	ldp	w4, w3, [x20, #44]
	ldp	w6, w5, [x20, #36]
	ldr	w7, [x20, #32]
	mov	x0, x23
	mov	x1, x26
	blr	x19
	ldr	w10, [sp, #68]                  ; 4-byte Folded Reload
	cmp	w10, w28
	mov	x24, x22
	ldr	x25, [sp, #48]                  ; 8-byte Folded Reload
	b.ge	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldp	w8, w9, [sp, #56]               ; 8-byte Folded Reload
	sub	w8, w8, w9
	str	w8, [sp, #64]                   ; 4-byte Folded Spill
	ldr	w27, [sp, #36]                  ; 4-byte Folded Reload
	mov	x21, x10
LBB0_16:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_14 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x22, [x20, #64]
	ldr	w8, [x20, #24]
	mul	w8, w8, w21
	mov	x26, x28
	add	x28, x23, w8, sxtw #2
	ldr	x8, [x24]
	ldr	w19, [x8, x25]
	ldr	w0, [sp, #68]                   ; 4-byte Folded Reload
	mov	x1, x27
	bl	_FFMIN
	mov	x2, x0
	ldp	w4, w3, [x20, #44]
	ldp	w6, w5, [x20, #36]
	ldr	w7, [x20, #32]
	mov	x0, x28
	mov	x1, x19
	blr	x22
	ldr	x22, [x20, #56]
	ldr	w8, [x20, #24]
	mul	w8, w8, w21
	add	x19, x23, w8, sxtw #2
	ldr	x8, [x24]
	ldr	w28, [x8, x25]
	ldp	w1, w0, [sp, #64]               ; 8-byte Folded Reload
	bl	_FFMIN
	mov	x2, x0
	ldp	w4, w3, [x20, #44]
	ldp	w6, w5, [x20, #36]
	ldr	w7, [x20, #32]
	mov	x0, x19
	mov	x1, x28
	mov	x28, x26
	blr	x22
	ldr	w10, [sp, #68]                  ; 4-byte Folded Reload
	sub	w27, w27, w10
	add	w21, w21, w10
	cmp	w26, w21
	b.gt	LBB0_16
	b	LBB0_13
LBB0_17:
	cmp	x22, x21
	b.eq	LBB0_19
; %bb.18:
	add	x0, sp, #72
	bl	_av_frame_free
LBB0_19:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x22
	bl	_ff_filter_frame
LBB0_20:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_21:
	add	x0, sp, #72
	bl	_av_frame_free
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
