	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function activate
_activate:                              ## @activate
	.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	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r12
	movq	(%rdi), %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	movq	$0, -64(%rbp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_FF_FILTER_FORWARD_STATUS_BACK
	cmpl	$0, (%r14)
	je	LBB0_1
LBB0_19:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	56(%r14), %r13
	movq	_RingbufCount@GOTPCREL(%rip), %rbx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r13, %rdi
	callq	_ff_framequeue_take
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_filter_frame
	testl	%eax, %eax
	js	LBB0_29
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
	movq	%r13, %rdi
	callq	_ff_framequeue_queued_frames
	testl	%eax, %eax
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	$0, (%rbx)
	jle	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	64(%r14), %rax
	movl	(%rax,%r15,4), %edi
	movl	$4, %esi
	callq	_av_fifo_drain
	incq	%r15
	movslq	(%rbx), %rax
	cmpq	%rax, %r15
	jl	LBB0_23
	jmp	LBB0_24
LBB0_1:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ff_inlink_consume_frame
	testl	%eax, %eax
	js	LBB0_29
## %bb.2:
	je	LBB0_14
## %bb.3:
	movq	-64(%rbp), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.5:
	cmpl	$0, 72(%r14)
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_deshake_opencl_init
	testl	%eax, %eax
	js	LBB0_29
LBB0_7:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	64(%r14), %rax
	movq	_RingbufX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_av_fifo_space
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movq	_RingbufCount@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	64(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movl	$4, %esi
	callq	_av_fifo_drain
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:
	movq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_queue_frame
	testl	%eax, %eax
	js	LBB0_29
## %bb.12:
	leaq	56(%r14), %r15
	movq	%r15, %rdi
	callq	_ff_framequeue_queued_frames
	movl	4(%r14), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	cmpl	%edx, %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_13
LBB0_14:
	cmpl	$0, (%r14)
	jne	LBB0_19
## %bb.15:
	leaq	-80(%rbp), %rsi
	leaq	-92(%rbp), %rdx
	movq	%r12, %rdi
	callq	_ff_inlink_acknowledge_status
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movl	-80(%rbp), %eax
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_18
## %bb.17:
	movl	$1, (%r14)
	jmp	LBB0_19
LBB0_25:
	cmpq	$0, 48(%r14)
	je	LBB0_27
## %bb.26:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	12(%r14), %esi
	movl	44(%r14), %edi
	callq	_averaged_event_time_ms
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	12(%r14), %esi
	movl	40(%r14), %edi
	callq	_averaged_event_time_ms
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	12(%r14), %esi
	movl	36(%r14), %edi
	callq	_averaged_event_time_ms
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	12(%r14), %esi
	movl	32(%r14), %edi
	callq	_averaged_event_time_ms
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	12(%r14), %esi
	movl	28(%r14), %edi
	callq	_averaged_event_time_ms
	movl	%eax, %ebx
	movl	12(%r14), %esi
	movl	24(%r14), %edi
	callq	_averaged_event_time_ms
	movl	%eax, %r12d
	movl	12(%r14), %esi
	movl	20(%r14), %edi
	callq	_averaged_event_time_ms
	movl	%eax, %r13d
	movl	12(%r14), %esi
	movl	16(%r14), %edi
	callq	_averaged_event_time_ms
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movl	-72(%rbp), %r8d                 ## 4-byte Reload
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	callq	_av_log
	addq	$48, %rsp
LBB0_27:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_outlink_set_status
	xorl	%eax, %eax
LBB0_29:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_29
LBB0_18:
	cmpl	$0, (%r14)
	jne	LBB0_19
## %bb.28:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_FF_FILTER_FORWARD_WANTED
	movq	_FFERROR_NOT_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_29
LBB0_13:
	movq	%r15, %rdi
	callq	_ff_framequeue_take
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_filter_frame
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RingbufX,8,3                   ## @RingbufX
	.comm	_RingbufCount,4,2               ## @RingbufCount
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Average kernel execution times:\n\t        grayscale: %0.3f ms\n\t  harris_response: %0.3f ms\n\t  refine_features: %0.3f ms\n\tbrief_descriptors: %0.3f ms\n\tmatch_descriptors: %0.3f ms\n\t        transform: %0.3f ms\n\t     crop_upscale: %0.3f ms\nAverage buffer read times:\n\t     features buf: %0.3f ms\n"

	.comm	_FFERROR_NOT_READY,4,2          ## @FFERROR_NOT_READY
	.no_dead_strip	_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function activate
_activate:                              ; @activate
	.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	x20, x0
	ldr	x8, [x0, #16]
	ldr	x21, [x8]
	ldp	x23, x8, [x0]
	ldr	x19, [x8]
	str	xzr, [sp, #24]
	mov	x0, x19
	mov	x1, x21
	bl	_FF_FILTER_FORWARD_STATUS_BACK
	ldr	w8, [x23]
	cbz	w8, LBB0_7
LBB0_1:
	add	x22, x23, #56
Lloh0:
	adrp	x24, _RingbufCount@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RingbufCount@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_ff_framequeue_take
	mov	x1, x0
	mov	x0, x21
	bl	_filter_frame
	tbnz	w0, #31, LBB0_24
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x22
	bl	_ff_framequeue_queued_frames
	cbz	w0, LBB0_21
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23, #64]
	ldr	w0, [x8, x25, lsl #2]
	mov	w1, #4
	bl	_av_fifo_drain
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.lt	LBB0_6
	b	LBB0_2
LBB0_7:
	add	x1, sp, #24
	mov	x0, x21
	bl	_ff_inlink_consume_frame
	tbnz	w0, #31, LBB0_24
; %bb.8:
	cbz	w0, LBB0_17
; %bb.9:
	ldr	x8, [sp, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_25
; %bb.10:
	ldr	w8, [x23, #72]
	cbnz	w8, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_deshake_opencl_init
	tbnz	w0, #31, LBB0_24
LBB0_12:
	ldr	x8, [x23, #64]
Lloh2:
	adrp	x9, _RingbufX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RingbufX@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_av_fifo_space
Lloh5:
	adrp	x22, _RingbufCount@GOTPAGE
Lloh6:
	ldr	x22, [x22, _RingbufCount@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	x0, #0
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_15
; %bb.13:
	mov	x24, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #64]
	ldr	w0, [x8, x24, lsl #2]
	mov	w1, #4
	bl	_av_fifo_drain
	add	x24, x24, #1
	ldrsw	x8, [x22]
	cmp	x24, x8
	b.lt	LBB0_14
LBB0_15:
	ldr	x1, [sp, #24]
	mov	x0, x21
	bl	_queue_frame
	tbnz	w0, #31, LBB0_24
; %bb.16:
	add	x22, x23, #56
	mov	x0, x22
	bl	_ff_framequeue_queued_frames
	ldr	w8, [x23, #4]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w0, w8, asr #1
	b.ge	LBB0_28
LBB0_17:
	ldr	w8, [x23]
	cbnz	w8, LBB0_1
; %bb.18:
	add	x1, sp, #20
	add	x2, sp, #16
	mov	x0, x21
	bl	_ff_inlink_acknowledge_status
	cbz	x0, LBB0_26
; %bb.19:
	ldr	w8, [sp, #20]
Lloh7:
	adrp	x9, _AVERROR_EOF@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AVERROR_EOF@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_26
; %bb.20:
	mov	w8, #1
	str	w8, [x23]
	b	LBB0_1
LBB0_21:
	ldr	x8, [x23, #48]
	cbz	x8, LBB0_23
; %bb.22:
Lloh10:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w0, [x23, #44]
	ldr	w1, [x23, #12]
	bl	_averaged_event_time_ms
	mov	x22, x0
	ldr	w0, [x23, #40]
	ldr	w1, [x23, #12]
	bl	_averaged_event_time_ms
	mov	x21, x0
	ldr	w0, [x23, #36]
	ldr	w1, [x23, #12]
	bl	_averaged_event_time_ms
	mov	x24, x0
	ldr	w0, [x23, #32]
	ldr	w1, [x23, #12]
	bl	_averaged_event_time_ms
	mov	x25, x0
	ldr	w0, [x23, #28]
	ldr	w1, [x23, #12]
	bl	_averaged_event_time_ms
	mov	x26, x0
	ldr	w0, [x23, #24]
	ldr	w1, [x23, #12]
	bl	_averaged_event_time_ms
	mov	x27, x0
	ldr	w0, [x23, #20]
	ldr	w1, [x23, #12]
	bl	_averaged_event_time_ms
	mov	x28, x0
	ldp	w1, w0, [x23, #12]
	bl	_averaged_event_time_ms
	stp	w28, w0, [sp, #4]
	str	w27, [sp]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	x3, x22
	mov	x4, x21
	mov	x5, x24
	mov	x6, x25
	mov	x7, x26
	bl	_av_log
LBB0_23:
Lloh15:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x23, #8]
	mov	x0, x19
	bl	_ff_outlink_set_status
	mov	w0, #0
LBB0_24:
	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_25:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_24
LBB0_26:
	ldr	w8, [x23]
	cbnz	w8, LBB0_1
; %bb.27:
	mov	x0, x19
	mov	x1, x21
	bl	_FF_FILTER_FORWARD_WANTED
Lloh21:
	adrp	x8, _FFERROR_NOT_READY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FFERROR_NOT_READY@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	b	LBB0_24
LBB0_28:
	mov	x0, x22
	bl	_ff_framequeue_take
	mov	x1, x0
	mov	x0, x21
	bl	_filter_frame
	b	LBB0_24
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RingbufX,8,3                   ; @RingbufX
	.comm	_RingbufCount,4,2               ; @RingbufCount
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Average kernel execution times:\n\t        grayscale: %0.3f ms\n\t  harris_response: %0.3f ms\n\t  refine_features: %0.3f ms\n\tbrief_descriptors: %0.3f ms\n\tmatch_descriptors: %0.3f ms\n\t        transform: %0.3f ms\n\t     crop_upscale: %0.3f ms\nAverage buffer read times:\n\t     features buf: %0.3f ms\n"

	.comm	_FFERROR_NOT_READY,4,2          ; @FFERROR_NOT_READY
	.no_dead_strip	_activate
.subsections_via_symbols
