	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)
	movq	8(%rdi), %rbx
	cmpl	$0, (%rbx)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, %r12d
	jle	LBB0_13
## %bb.1:
	movq	16(%rbx), %r14
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	(%rbx), %rax
	cmpq	%rax, %r15
	jge	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rbx
	movq	(%r14), %rax
	movslq	(%rax,%r15,4), %r13
	movq	%rbx, %rdi
	callq	_ff_outlink_get_status
	testq	%rax, %rax
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r12
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r14, %r13
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_av_frame_copy_props
	cmpq	$0, 24(%r13)
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	movq	8(%r14), %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %edx
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r9d
	movl	4(%rbx), %r8d
	movl	16(%r13), %eax
	movl	20(%r13), %r10d
	subq	$8, %rsp
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	pushq	%r10
	callq	_extract_from_packed
	addq	$32, %rsp
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	(%rax,%r8,4), %edx
	movq	(%r14), %rax
	movl	(%rax,%r8,4), %ecx
	movq	8(%r13), %rax
	movl	(%rax,%r8,4), %r8d
	movl	(%rbx), %r9d
	callq	_av_image_copy_plane
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %r14
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ff_filter_frame
	movl	%eax, %r12d
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%r12d, %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jns	LBB0_3
	jmp	LBB0_13
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:
	leaq	-80(%rbp), %rdi
	callq	_av_frame_free
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %r12d
	movl	$0, %eax
	cmovnel	%r12d, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	(%rbx), %edx
	cmovel	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.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, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x1, [sp, #8]
	ldr	x22, [x0, #8]
	ldr	w8, [x22]
Lloh0:
	adrp	x23, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AVERROR_EOF@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x1
	mov	x25, #0
	mov	w24, #0
	mov	w21, #0
	ldr	x26, [x22, #16]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x22]
	cmp	x25, x8
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x20, [x8, x25, lsl #3]
	ldr	x8, [x26]
	ldrsw	x27, [x8, x25, lsl #2]
	mov	x0, x20
	bl	_ff_outlink_get_status
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w2, w1, [x20]
	mov	x0, x20
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	mov	x1, x19
	bl	_av_frame_copy_props
	ldr	x9, [x26, #24]
	ldp	x10, x8, [x21]
	ldr	w0, [x8]
	ldr	w1, [x10]
	ldr	x8, [x19, #8]
	cbz	x9, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x8]
	ldr	x8, [x19]
	ldr	w3, [x8]
	ldp	w5, w4, [x20]
	ldp	w7, w6, [x26, #16]
	str	w27, [sp]
	bl	_extract_from_packed
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	x9, x27, #2
	ldr	w2, [x8, x9]
	ldr	x8, [x19]
	ldr	w3, [x8, x9]
	ldr	x8, [x26, #8]
	ldr	w4, [x8, x9]
	ldr	w5, [x20]
	bl	_av_image_copy_plane
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ff_filter_frame
	mov	x21, x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	tbz	w21, #31, LBB0_3
	b	LBB0_13
LBB0_11:
	mov	w24, #0
	mov	w21, #0
	b	LBB0_13
LBB0_12:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
LBB0_13:
	add	x0, sp, #8
	bl	_av_frame_free
	ldr	w8, [x22]
	ldr	w9, [x23]
	cmp	w21, w9
	csel	w10, wzr, w21, eq
	cmp	w24, w8
	csel	w0, w9, w10, eq
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_filter_frame
.subsections_via_symbols
