	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	16(%rdi), %r14
	movq	(%rax), %r15
	movq	$0, -56(%rbp)
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_FF_FILTER_FORWARD_STATUS_BACK_ALL
	cmpq	$0, 8(%r14)
	je	LBB0_2
## %bb.1:
	movq	8(%r12), %rax
	movq	8(%rax), %rdi
	movq	%r12, %rsi
	callq	_FF_FILTER_FORWARD_STATUS_BACK_ALL
LBB0_2:
	cmpl	$0, (%r14)
	je	LBB0_13
LBB0_3:
	cmpq	$0, 32(%r14)
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_convert_coeffs
	testl	%eax, %eax
	js	LBB0_22
LBB0_5:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_ff_inlink_queued_samples
	movl	%eax, %esi
	movl	4(%r14), %edi
	cltd
	idivl	%edi
	subl	%edx, %esi
	callq	_FFMAX
	movq	(%r12), %rcx
	movq	(%rcx), %rdi
	leaq	-56(%rbp), %rcx
	movl	%eax, %esi
	movl	%eax, %edx
	callq	_ff_inlink_consume_samples
	testl	%eax, %eax
	jle	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_fir_frame
LBB0_7:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_36
## %bb.8:
	cmpq	$0, 8(%r14)
	je	LBB0_16
## %bb.9:
	cmpq	$0, 32(%r14)
	je	LBB0_16
## %bb.10:
	movq	16(%r14), %rax
	movq	(%rax), %r15
	movl	24(%r14), %edi
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	8(%rcx), %rax
	movl	(%rax), %edx
	callq	_av_rescale_q
	movq	%rax, %rbx
	movq	8(%r12), %rax
	movq	8(%rax), %rdi
	callq	_ff_outlink_frame_wanted
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	cmpq	%rbx, %r15
	jge	LBB0_16
## %bb.12:
	movq	16(%r14), %rdi
	movq	%rbx, (%rdi)
	movq	8(%r12), %rax
	movq	8(%rax), %rbx
	callq	_av_frame_clone
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ff_filter_frame
	movl	%eax, %ebx
	jmp	LBB0_36
LBB0_13:
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	xorl	%esi, %esi
	callq	_check_ir
	testl	%eax, %eax
	js	LBB0_22
## %bb.14:
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	callq	_ff_outlink_get_status
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_29
## %bb.15:
	movl	$1, (%r14)
	jmp	LBB0_3
LBB0_16:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_ff_inlink_queued_samples
	cmpl	4(%r14), %eax
	jge	LBB0_21
## %bb.17:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	leaq	-36(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_ff_inlink_acknowledge_status
	testq	%rax, %rax
	je	LBB0_23
## %bb.18:
	movl	-36(%rbp), %esi
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_23
## %bb.19:
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rdx
	callq	_ff_outlink_set_status
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r14)
	je	LBB0_36
## %bb.20:
	movq	8(%r12), %rax
	movq	8(%rax), %rdi
	movl	-36(%rbp), %esi
	movq	-48(%rbp), %rdx
	callq	_ff_outlink_set_status
	jmp	LBB0_36
LBB0_22:
	movl	%eax, %ebx
	jmp	LBB0_36
LBB0_21:
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_ff_filter_set_ready
	jmp	LBB0_35
LBB0_23:
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	callq	_ff_outlink_frame_wanted
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_ff_outlink_get_status
	testl	%eax, %eax
	je	LBB0_33
LBB0_25:
	cmpq	$0, 8(%r14)
	je	LBB0_28
## %bb.26:
	movq	8(%r12), %rax
	movq	8(%rax), %rdi
	callq	_ff_outlink_frame_wanted
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_ff_outlink_get_status
	testl	%eax, %eax
	je	LBB0_33
LBB0_28:
	movq	_FFERROR_NOT_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_36
LBB0_29:
	cmpl	$0, (%r14)
	jne	LBB0_3
## %bb.30:
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	callq	_ff_outlink_frame_wanted
	testq	%rax, %rax
	je	LBB0_37
## %bb.31:
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	jmp	LBB0_34
LBB0_33:
	movq	(%r12), %rax
	movq	(%rax), %rdi
LBB0_34:
	callq	_ff_inlink_request_frame
LBB0_35:
	xorl	%ebx, %ebx
LBB0_36:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r14)
	je	LBB0_36
## %bb.38:
	movq	8(%r12), %rax
	movq	8(%rax), %rdi
	callq	_ff_outlink_frame_wanted
	testq	%rax, %rax
	je	LBB0_36
## %bb.39:
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	callq	_ff_inlink_request_frame
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.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, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldp	x8, x20, [x0, #8]
	ldr	x21, [x8]
	str	xzr, [sp, #16]
	ldr	x0, [x8]
	mov	x1, x19
	bl	_FF_FILTER_FORWARD_STATUS_BACK_ALL
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	mov	x1, x19
	bl	_FF_FILTER_FORWARD_STATUS_BACK_ALL
LBB0_2:
	ldr	w8, [x20]
	cbz	w8, LBB0_13
LBB0_3:
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_convert_coeffs
	tbnz	w0, #31, LBB0_34
LBB0_5:
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_ff_inlink_queued_samples
	ldr	w8, [x20, #4]
	sdiv	w9, w0, w8
	mul	w1, w9, w8
	mov	x0, x8
	bl	_FFMAX
	mov	x1, x0
	ldr	x8, [x19]
	ldr	x0, [x8]
	add	x3, sp, #16
	mov	x2, x1
	bl	_ff_inlink_consume_samples
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.6:
	ldr	x1, [sp, #16]
	mov	x0, x20
	mov	x2, x21
	bl	_fir_frame
LBB0_7:
	tbnz	w0, #31, LBB0_34
; %bb.8:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_16
; %bb.9:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_16
; %bb.10:
	ldr	x8, [x20, #16]
	ldr	x22, [x8]
	ldr	w0, [x20, #24]
	ldp	x8, x9, [x19]
	ldr	x8, [x8]
	ldr	w1, [x8]
	ldr	x8, [x9, #8]
	ldr	w2, [x8]
	bl	_av_rescale_q
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	bl	_ff_outlink_frame_wanted
	cbz	x0, LBB0_16
; %bb.11:
	cmp	x22, x21
	b.ge	LBB0_16
; %bb.12:
	ldr	x0, [x20, #16]
	str	x21, [x0]
	ldr	x8, [x19, #8]
	ldr	x19, [x8, #8]
	bl	_av_frame_clone
	mov	x1, x0
	mov	x0, x19
	bl	_ff_filter_frame
	b	LBB0_34
LBB0_13:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	mov	x1, #0
	bl	_check_ir
	tbnz	w0, #31, LBB0_34
; %bb.14:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_ff_outlink_get_status
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_28
; %bb.15:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_3
LBB0_16:
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_ff_inlink_queued_samples
	ldr	w8, [x20, #4]
	cmp	w0, w8
	b.ge	LBB0_21
; %bb.17:
	ldr	x8, [x19]
	ldr	x0, [x8]
	add	x1, sp, #28
	add	x2, sp, #8
	bl	_ff_inlink_acknowledge_status
	cbz	x0, LBB0_22
; %bb.18:
	ldr	w1, [sp, #28]
Lloh3:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_22
; %bb.19:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	ldr	x2, [sp, #8]
	bl	_ff_outlink_set_status
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_33
; %bb.20:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	ldr	w1, [sp, #28]
	ldr	x2, [sp, #8]
	bl	_ff_outlink_set_status
	b	LBB0_33
LBB0_21:
	mov	x0, x19
	mov	w1, #10
	bl	_ff_filter_set_ready
	b	LBB0_33
LBB0_22:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_ff_outlink_frame_wanted
	cbz	x0, LBB0_24
; %bb.23:
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_ff_outlink_get_status
	cbz	w0, LBB0_31
LBB0_24:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_27
; %bb.25:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	bl	_ff_outlink_frame_wanted
	cbz	x0, LBB0_27
; %bb.26:
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_ff_outlink_get_status
	cbz	w0, LBB0_31
LBB0_27:
Lloh6:
	adrp	x8, _FFERROR_NOT_READY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FFERROR_NOT_READY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_34
LBB0_28:
	ldr	w8, [x20]
	cbnz	w8, LBB0_3
; %bb.29:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_ff_outlink_frame_wanted
	cbz	x0, LBB0_35
LBB0_30:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	b	LBB0_32
LBB0_31:
	ldr	x8, [x19]
	ldr	x0, [x8]
LBB0_32:
	bl	_ff_inlink_request_frame
LBB0_33:
	mov	w0, #0
LBB0_34:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_35:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_33
; %bb.36:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	bl	_ff_outlink_frame_wanted
	cbnz	x0, LBB0_30
	b	LBB0_34
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_FFERROR_NOT_READY,4,2          ; @FFERROR_NOT_READY
	.no_dead_strip	_activate
.subsections_via_symbols
