	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	16(%rdi), %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %r12
	movq	(%rax), %rdi
	movl	(%rdi), %edx
	movl	4(%rdi), %esi
	callq	_ff_get_video_buffer
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_av_frame_copy_props
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.2:
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rax,%r14,4), %edi
	movl	(%rcx,%r14,4), %esi
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movl	(%rcx,%r14,4), %edx
	movl	(%rax,%r14,4), %ecx
	movq	8(%r12), %rax
	movq	32(%r12), %rbx
	movl	(%rbx,%r14,4), %r8d
	movl	(%rax,%r14,4), %r9d
	callq	_av_image_copy_plane
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	(%r12), %rax
	cmpq	%rax, %r14
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	40(%r12), %edi
	movq	8(%r12), %rax
	movl	(%rax,%r14,4), %eax
	cltd
	idivl	16(%r12)
	movl	%eax, %esi
	callq	_FFMIN
	movl	$1, %edi
	movl	%eax, %esi
	callq	_FFMAX
	movl	%eax, %r15d
	movl	20(%r12), %eax
	btl	%r14d, %eax
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, -64(%rbp)
	movq	(%r13), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, -68(%rbp)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, -72(%rbp)
	movq	(%rcx), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, -76(%rbp)
	movl	%r14d, -80(%rbp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movq	_filter_slice@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-80(%rbp), %rdx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	*(%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rax,%r14,4), %esi
	movl	(%rcx,%r14,4), %edx
	movq	%r12, %rdi
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	*24(%r12)
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.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, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldp	x8, x23, [x0, #16]
	ldr	x0, [x8]
	ldp	w2, w1, [x0]
	bl	_ff_get_video_buffer
	str	x0, [x21]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x1, x20
	bl	_av_frame_copy_props
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x24, #0
Lloh0:
	adrp	x26, _filter_slice@GOTPAGE
Lloh1:
	ldr	x26, [x26, _filter_slice@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	ldp	x8, x9, [x8]
	ldr	w0, [x9, x27]
	ldr	w1, [x8, x27]
	ldp	x9, x8, [x20]
	ldr	w2, [x8, x27]
	ldr	w3, [x9, x27]
	ldr	x8, [x23, #32]
	ldr	w4, [x8, x27]
	ldr	x8, [x23, #8]
	ldr	w5, [x8, x27]
	bl	_av_image_copy_plane
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, #40]
	ldr	x8, [x23, #8]
	ldr	w8, [x8, x24, lsl #2]
	ldr	w9, [x23, #16]
	sdiv	w1, w8, w9
	bl	_FFMIN
	mov	x1, x0
	mov	w0, #1
	bl	_FFMAX
	ldr	w8, [x23, #20]
	lsr	w8, w8, w24
	lsl	x27, x24, #2
	tbz	w8, #0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
	ldp	x9, x8, [x20]
	ldr	w8, [x8, x27]
	str	w8, [sp, #24]
	ldr	w8, [x9, x27]
	str	w8, [sp, #20]
	ldp	x9, x8, [x19]
	ldr	w8, [x8, x27]
	str	w8, [sp, #16]
	ldr	w8, [x9, x27]
	stp	w24, w8, [sp, #8]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w1, [x26]
	add	x2, sp, #8
	mov	x0, x22
	mov	x3, #0
	mov	x4, x25
	blr	x8
	ldr	x8, [x23, #24]
	ldr	x9, [x21]
	ldp	x9, x10, [x9]
	ldr	w1, [x10, x27]
	ldr	w2, [x9, x27]
	mov	x0, x23
	mov	x3, x24
	mov	x4, x25
	blr	x8
	b	LBB0_4
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_filter_slice,4,2               ; @filter_slice
	.no_dead_strip	_filter_frame
.subsections_via_symbols
