	.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, %r14
	movq	%rsi, -104(%rbp)
	movq	8(%rdi), %rcx
	movq	(%rcx), %rax
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	8(%rcx), %rbx
	movq	(%rax), %r15
	movq	(%rbx), %rax
	movq	_MODE_COLORMIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_av_frame_is_writable
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%rbx)
	jg	LBB0_7
	jmp	LBB0_14
LBB0_3:
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	%r15, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_av_frame_copy_props
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, 8(%rbx)
	jle	LBB0_14
LBB0_7:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movslq	8(%rbx), %rax
	addq	$32, %r12
	cmpq	%rax, %r13
	jge	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rax
	movl	(%rax,%r12), %r14d
	movl	4(%rax,%r12), %r15d
	movl	12(%rbx), %ecx
	btl	%r13d, %ecx
	jae	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rax,%r12), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	16(%rax,%r12), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	24(%rax,%r12), %rbx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	(%rcx,%r13,4), %r9d
	movl	(%rax,%r13,4), %eax
	subq	$8, %rsp
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %esi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	movl	%r14d, %r8d
	pushq	%rax
	callq	_gaussian_blur
	addq	$16, %rsp
	movl	%r14d, %edi
	movl	%r15d, %esi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movl	%r14d, %r9d
	pushq	%r14
	pushq	%rbx
	callq	_sobel
	addq	$16, %rsp
	movl	%r15d, %edx
	imull	%r14d, %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	%r14d, %edi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movl	%r14d, %r9d
	pushq	%r14
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	callq	_non_maximum_suppression
	addq	$16, %rsp
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %esi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %edi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	(%rcx,%r13,4), %r8d
	movl	(%rax,%r13,4), %r9d
	movl	%r14d, %edx
	movl	%r15d, %ecx
	pushq	%r14
	pushq	%rbx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	callq	_double_threshold
	addq	$16, %rsp
	movq	(%rbx), %rax
	movq	_MODE_COLORMIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	(%rcx,%r13,4), %edx
	movl	(%rax,%r13,4), %ecx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rax
	movq	8(%rsi), %rsi
	movl	(%rsi,%r13,4), %r8d
	movl	(%rax,%r13,4), %r9d
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_color_mix
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	(%rcx,%r13,4), %edi
	movl	(%rax,%r13,4), %esi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	(%rcx,%r13,4), %edx
	movl	(%rax,%r13,4), %ecx
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	callq	_av_image_copy_plane
	jmp	LBB0_13
LBB0_14:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_16
## %bb.15:
	leaq	-104(%rbp), %rdi
	callq	_av_frame_free
LBB0_16:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ff_filter_frame
	jmp	LBB0_17
LBB0_4:
	leaq	-104(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_17:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_COLORMIX,8,3              ## @MODE_COLORMIX
	.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, #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	x8, [x0, #8]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldp	x8, x28, [x8]
	ldr	x19, [x8]
	ldr	x8, [x28]
Lloh0:
	adrp	x9, _MODE_COLORMIX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MODE_COLORMIX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	str	x1, [sp, #32]                   ; 8-byte Folded Spill
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_av_frame_is_writable
	cbz	x0, LBB0_3
; %bb.2:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
	mov	x22, x20
	b	LBB0_5
LBB0_3:
	ldp	w2, w1, [x19]
	mov	x0, x19
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_16
; %bb.4:
	mov	x22, x0
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x1, x20
	bl	_av_frame_copy_props
	mov	w8, #1
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
LBB0_5:
	ldr	w8, [x28, #8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.6:
	mov	x19, #0
	mov	x21, #0
	mov	x20, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x28, #8]
	add	x21, x21, #4
	add	x19, x19, #32
	cmp	x20, x8
	b.ge	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28, #24]
	add	x9, x8, x19
	ldp	w23, w24, [x9]
	ldr	w9, [x28, #12]
	lsr	w9, w9, w20
	tbz	w9, #0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, x21, lsl #3
	ldp	x25, x26, [x8, #8]
	ldr	x27, [x8, #24]
	ldp	x0, x9, [sp, #24]               ; 16-byte Folded Reload
	ldp	x9, x8, [x9]
	ldr	w5, [x8, x21]
	ldr	w6, [x9, x21]
	mov	x1, x23
	mov	x2, x24
	mov	x3, x27
	mov	x4, x23
	bl	_gaussian_blur
	mov	x0, x23
	mov	x1, x24
	mov	x2, x26
	mov	x3, x23
	mov	x4, x25
	mov	x5, x23
	mov	x6, x27
	mov	x7, x23
	bl	_sobel
	mul	w2, w24, w23
	mov	x0, x27
	mov	w1, #0
	bl	_memset
	mov	x0, x23
	mov	x1, x24
	mov	x2, x27
	mov	x3, x23
	mov	x4, x25
	mov	x5, x23
	mov	x6, x26
	mov	x7, x23
	bl	_non_maximum_suppression
	ldp	w1, w0, [x28, #16]
	ldp	x9, x8, [x22]
	ldr	w4, [x8, x21]
	ldr	w5, [x9, x21]
	mov	x2, x23
	mov	x3, x24
	mov	x6, x27
	mov	x7, x23
	bl	_double_threshold
	ldr	x8, [x28]
Lloh3:
	adrp	x9, _MODE_COLORMIX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MODE_COLORMIX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldp	x9, x8, [x22]
	ldr	w2, [x8, x21]
	ldr	w3, [x9, x21]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	ldp	x9, x8, [x9]
	ldr	w4, [x8, x21]
	ldr	w5, [x9, x21]
	mov	x0, x23
	mov	x1, x24
	bl	_color_mix
	b	LBB0_7
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldp	x9, x8, [x22]
	ldr	w0, [x8, x21]
	ldr	w1, [x9, x21]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	ldp	x9, x8, [x9]
	ldr	w2, [x8, x21]
	ldr	w3, [x9, x21]
	mov	x4, x23
	mov	x5, x24
	bl	_av_image_copy_plane
	b	LBB0_7
LBB0_13:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_15
; %bb.14:
	add	x0, sp, #40
	bl	_av_frame_free
LBB0_15:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x22
	bl	_ff_filter_frame
	b	LBB0_17
LBB0_16:
	add	x0, sp, #40
	bl	_av_frame_free
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_17:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_COLORMIX,8,3              ; @MODE_COLORMIX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
