	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movq	16(%rdi), %rax
	movq	(%rax), %rdi
	movq	$0, -56(%rbp)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_FF_FILTER_FORWARD_STATUS_BACK_ALL
	cmpl	$0, (%r13)
	jle	LBB0_20
## %bb.1:
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%r15,8), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ff_inlink_consume_frame
	testl	%eax, %eax
	jle	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r15, %r15
	jne	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax
	movl	16(%rax), %edi
	movl	(%rbx), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	callq	_av_rescale_q
	movq	16(%r13), %rdi
	movq	-56(%rbp), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	callq	_frame_list_add_frame
	testl	%eax, %eax
	js	LBB0_5
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r13), %rax
	movl	(%rax,%r15,4), %edi
	movq	-56(%rbp), %rax
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	callq	_av_audio_fifo_write
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_av_frame_free
	testl	%ebx, %ebx
	js	LBB0_30
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_output_frame
	testl	%eax, %eax
	jns	LBB0_16
	jmp	LBB0_29
LBB0_6:
	testl	%eax, %eax
	jle	LBB0_20
## %bb.7:
	xorl	%ebx, %ebx
	leaq	-60(%rbp), %r12
	leaq	-64(%rbp), %r15
	jmp	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r13), %rax
	movl	$0, (%rax)
	cmpl	$1, (%r13)
	je	LBB0_12
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_20
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_ff_inlink_acknowledge_status
	testq	%rax, %rax
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-60(%rbp), %eax
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_INPUT_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r13), %rcx
	orl	%eax, (%rcx,%rbx,4)
	movq	32(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_av_audio_fifo_size
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r13), %rax
	movl	$0, (%rax,%rbx,4)
	jmp	LBB0_19
LBB0_20:
	movq	%r13, %rdi
	callq	_calc_active_inputs
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r13), %edx
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_outlink_set_status
	xorl	%ebx, %ebx
	jmp	LBB0_30
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_outlink_frame_wanted
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_30
## %bb.23:
	movq	8(%r13), %rax
	movq	_INPUT_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_24
## %bb.25:
	movq	16(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_26
## %bb.27:
	setg	%al
	movzbl	%al, %edi
	callq	_av_assert0
	movq	16(%r13), %rdi
	callq	_frame_list_next_frame_size
	movq	%r14, %rdi
	movl	%eax, %esi
	jmp	LBB0_28
LBB0_5:
	movl	%eax, %ebx
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	jmp	LBB0_30
LBB0_24:
	movq	%r14, %rdi
	movl	$1, %esi
LBB0_28:
	callq	_request_samples
LBB0_29:
	movl	%eax, %ebx
LBB0_30:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_ff_inlink_request_frame
	jmp	LBB0_30
LBB0_12:
	movl	-60(%rbp), %esi
	movl	-64(%rbp), %edx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_INPUT_EOF,4,2                  ## @INPUT_EOF
	.comm	_INPUT_ON,4,2                   ## @INPUT_ON
	.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	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldp	x20, x8, [x0, #8]
	ldr	x21, [x8]
	str	xzr, [sp, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_FF_FILTER_FORWARD_STATUS_BACK_ALL
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20]
	cmp	x23, x8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x22, [x8, x23, lsl #3]
	add	x1, sp, #8
	mov	x0, x22
	bl	_ff_inlink_consume_frame
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x23, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #16]
	ldr	w1, [x22]
	ldr	w2, [x21]
	bl	_av_rescale_q
	mov	x2, x0
	ldr	x0, [x20, #16]
	ldr	x8, [sp, #8]
	ldr	w1, [x8]
	bl	_frame_list_add_frame
	tbnz	w0, #31, LBB0_25
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #32]
	ldr	w0, [x8, x23, lsl #2]
	ldr	x8, [sp, #8]
	ldr	x1, [x8, #8]
	ldr	w2, [x8]
	bl	_av_audio_fifo_write
	mov	x22, x0
	add	x0, sp, #8
	bl	_av_frame_free
	tbnz	w22, #31, LBB0_29
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_output_frame
	tbz	w0, #31, LBB0_2
	b	LBB0_28
LBB0_8:
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.9:
	mov	x22, #0
Lloh0:
	adrp	x23, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AVERROR_EOF@GOTPAGEOFF]
Lloh2:
	adrp	x24, _INPUT_EOF@GOTPAGE
Lloh3:
	ldr	x24, [x24, _INPUT_EOF@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20, #8]
	str	wzr, [x8]
	ldr	w8, [x20]
	cmp	w8, #1
	b.eq	LBB0_31
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.ge	LBB0_17
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x22, lsl #3]
	mov	x1, sp
	add	x2, sp, #4
	bl	_ff_inlink_acknowledge_status
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [sp]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	cbz	x22, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x24]
	ldr	x9, [x20, #8]
	lsl	x10, x22, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	ldr	x8, [x20, #32]
	ldr	w0, [x8, x10]
	bl	_av_audio_fifo_size
	cbnz	x0, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20, #8]
	str	wzr, [x8, x22, lsl #2]
	b	LBB0_11
LBB0_17:
	mov	x0, x20
	bl	_calc_active_inputs
	cbz	x0, LBB0_20
; %bb.18:
Lloh4:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w2, [x20, #24]
LBB0_19:
	mov	x0, x21
	bl	_ff_outlink_set_status
	mov	w22, #0
	b	LBB0_29
LBB0_20:
	mov	x0, x21
	bl	_ff_outlink_frame_wanted
	cbz	x0, LBB0_24
; %bb.21:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _INPUT_ON@GOTPAGE
Lloh8:
	ldr	x9, [x9, _INPUT_ON@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.22:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_30
; %bb.23:
	cmp	x8, #0
	cset	w0, gt
	bl	_av_assert0
	ldr	x0, [x20, #16]
	bl	_frame_list_next_frame_size
	mov	x1, x0
	mov	x0, x19
	b	LBB0_27
LBB0_24:
	mov	w22, #0
	b	LBB0_29
LBB0_25:
	mov	x22, x0
	add	x0, sp, #8
	bl	_av_frame_free
	b	LBB0_29
LBB0_26:
	mov	x0, x19
	mov	w1, #1
LBB0_27:
	bl	_request_samples
LBB0_28:
	mov	x22, x0
LBB0_29:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_30:
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_ff_inlink_request_frame
	mov	w22, #0
	b	LBB0_29
LBB0_31:
	ldp	w1, w2, [sp]
	b	LBB0_19
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_INPUT_EOF,4,2                  ; @INPUT_EOF
	.comm	_INPUT_ON,4,2                   ; @INPUT_ON
	.no_dead_strip	_activate
.subsections_via_symbols
