	.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	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, -64(%rbp)
	movq	8(%rdi), %r14
	movq	8(%r14), %r15
	cmpq	$0, 16(%r15)
	je	LBB0_1
## %bb.8:
	cmpq	$0, 32(%r15)
	jne	LBB0_9
	jmp	LBB0_13
LBB0_1:
	movq	(%r14), %rax
	movq	(%rax), %r12
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	%r12, %rdi
	callq	_ff_get_video_buffer
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_av_frame_copy_props
	movl	4(%r12), %r10d
	movq	16(%r15), %rdx
	movl	%r10d, 12(%rdx)
	movl	(%r12), %eax
	movl	%eax, 8(%rdx)
	cmpq	$0, 64(%r15)
	jne	LBB0_6
## %bb.4:
	cmpq	$0, 56(%r15)
	jne	LBB0_6
## %bb.5:
	cmpq	$0, 40(%r15)
	je	LBB0_7
LBB0_6:
	leaq	24(%r15), %rdi
	leaq	48(%r15), %rsi
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_ff_fill_rectangle
	addq	$16, %rsp
LBB0_7:
	movq	$0, 40(%r15)
	cmpq	$0, 32(%r15)
	je	LBB0_13
LBB0_9:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	movl	%eax, %ebx
	subl	4(%r15), %ebx
	cmpl	%eax, %ebx
	jae	LBB0_12
## %bb.10:
	leaq	24(%r15), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	movl	%ebx, %ecx
	callq	_get_tile_pos
	movl	4(%r15), %ecx
	subl	(%r15), %ecx
	addl	%ebx, %ecx
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_get_tile_pos
	movq	16(%r15), %rax
	movq	32(%r15), %rcx
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movl	(%rcx), %r8d
	movl	4(%rcx), %ecx
	movl	-48(%rbp), %r9d
	movl	-44(%rbp), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %r11d
	movl	-52(%rbp), %eax
	movq	%r14, %r12
	movl	(%r13), %r14d
	movq	%r15, %r10
	movl	4(%r13), %r15d
	subq	$8, %rsp
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	pushq	%r14
	movq	%r12, %r14
	pushq	%r15
	movq	%r10, %r15
	pushq	%rax
	pushq	%r11
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	callq	_ff_copy_rectangle2
	addq	$48, %rsp
	incl	%ebx
	cmpl	(%r15), %ebx
	jb	LBB0_11
LBB0_12:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:
	movl	8(%r15), %ecx
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_get_tile_pos
	leaq	24(%r15), %rdi
	movq	16(%r15), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	movl	-48(%rbp), %r9d
	movl	-44(%rbp), %r10d
	movl	(%r13), %ebx
	movl	4(%r13), %eax
	subq	$8, %rsp
	pushq	%rbx
	pushq	%rax
	pushq	$0
	pushq	$0
	pushq	%r10
	callq	_ff_copy_rectangle2
	addq	$48, %rsp
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	movl	8(%r15), %ecx
	incl	%ecx
	movl	%ecx, 8(%r15)
	xorl	%eax, %eax
	cmpl	(%r15), %ecx
	jne	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_end_last_frame
	jmp	LBB0_15
LBB0_2:
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x1
	mov	x20, x0
	str	x1, [sp, #40]
	ldr	x19, [x0, #8]
	ldr	x24, [x19, #8]
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x24, #32]
	cbnz	x8, LBB0_8
	b	LBB0_11
LBB0_2:
	ldr	x8, [x19]
	ldr	x22, [x8]
	ldp	w2, w1, [x22]
	mov	x0, x22
	bl	_ff_get_video_buffer
	str	x0, [x24, #16]
	cbz	x0, LBB0_13
; %bb.3:
	mov	x1, x21
	bl	_av_frame_copy_props
	ldr	w6, [x22, #4]
	ldr	x8, [x24, #16]
	str	w6, [x8, #12]
	ldr	w7, [x22]
	str	w7, [x8, #8]
	ldr	x9, [x24, #64]
	cbnz	x9, LBB0_6
; %bb.4:
	ldr	x9, [x24, #56]
	cbnz	x9, LBB0_6
; %bb.5:
	ldr	x9, [x24, #40]
	cbz	x9, LBB0_7
LBB0_6:
	add	x0, x24, #24
	add	x1, x24, #48
	ldp	w3, w2, [x8]
	mov	w4, #0
	mov	w5, #0
	bl	_ff_fill_rectangle
LBB0_7:
	str	xzr, [x24, #40]
	ldr	x8, [x24, #32]
	cbz	x8, LBB0_11
LBB0_8:
	ldp	w8, w9, [x24]
	sub	w22, w8, w9
	cmp	w22, w8
	b.hs	LBB0_11
; %bb.9:
	add	x23, x24, #24
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #28
	add	x2, sp, #24
	mov	x0, x19
	mov	x3, x22
	bl	_get_tile_pos
	ldp	w8, w9, [x24]
	sub	w8, w9, w8
	add	w3, w22, w8
	add	x1, sp, #36
	add	x2, sp, #32
	mov	x0, x19
	bl	_get_tile_pos
	ldr	x8, [x24, #16]
	ldp	w2, w1, [x8]
	ldr	x8, [x24, #32]
	ldp	w4, w3, [x8]
	ldp	w6, w5, [sp, #32]
	ldp	w8, w7, [sp, #24]
	ldp	w10, w9, [x20]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	mov	x0, x23
	bl	_ff_copy_rectangle2
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w22, w8
	b.lo	LBB0_10
LBB0_11:
	ldr	w3, [x24, #8]
	add	x1, sp, #36
	add	x2, sp, #32
	mov	x0, x19
	bl	_get_tile_pos
	add	x0, x24, #24
	ldr	x8, [x24, #16]
	ldp	w2, w1, [x8]
	ldp	w4, w3, [x21]
	ldp	w6, w5, [sp, #32]
	ldp	w9, w8, [x20]
	stp	w8, w9, [sp, #4]
	str	wzr, [sp]
	mov	w7, #0
	bl	_ff_copy_rectangle2
	add	x0, sp, #40
	bl	_av_frame_free
	mov	w0, #0
	ldr	w8, [x24, #8]
	add	w8, w8, #1
	str	w8, [x24, #8]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_end_last_frame
	b	LBB0_14
LBB0_13:
	add	x0, sp, #40
	bl	_av_frame_free
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_14:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
