	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dv_init_mux
_dv_init_mux:                           ## @dv_init_mux
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ecx
	cmpl	$3, %ecx
	jle	LBB0_2
LBB0_83:
	xorl	%r14d, %r14d
	jmp	LBB0_84
LBB0_2:
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movl	$0, (%r15)
	movq	16(%r15), %rax
	movq	$0, 8(%rax)
	movq	16(%r15), %rax
	movq	$0, (%rax)
	xorl	%r14d, %r14d
	testl	%ecx, %ecx
	jle	LBB0_84
## %bb.3:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movl	(%rdx), %edx
	cmpl	$128, %edx
	je	LBB0_6
## %bb.4:
	cmpl	$129, %edx
	jne	LBB0_84
## %bb.5:
	movq	16(%r15), %rdx
	movl	$1, (%r15)
	movq	%rax, (%rdx)
	movl	$1, %r14d
	xorl	%eax, %eax
LBB0_6:
	cmpl	$1, %ecx
	je	LBB0_14
## %bb.7:
	movq	8(%rbx), %rdx
	movq	8(%rdx), %rdx
	movq	(%rdx), %rsi
	movl	(%rsi), %esi
	cmpl	$128, %esi
	je	LBB0_10
## %bb.8:
	cmpl	$129, %esi
	jne	LBB0_83
## %bb.9:
	movq	16(%r15), %r8
	movl	%r14d, %edi
	leal	1(%r14), %esi
	movl	%esi, (%r15)
	movq	%rdx, (%r8,%rdi,8)
	movl	%esi, %r14d
	movq	%rax, %rdx
	jmp	LBB0_12
LBB0_10:
	testq	%rax, %rax
	jne	LBB0_83
LBB0_12:
	cmpl	$2, %ecx
	jne	LBB0_38
LBB0_13:
	movq	%rdx, %rax
LBB0_14:
	testq	%rax, %rax
	je	LBB0_83
## %bb.15:
	movq	(%rax), %rcx
	movq	8(%rcx), %rdx
	movq	_AV_CODEC_ID_DVVIDEO@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_83
## %bb.16:
	testl	%r14d, %r14d
	jle	LBB0_24
## %bb.17:
	movq	16(%r15), %rsi
	movq	_AV_CODEC_ID_PCM_S16LE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.18:
	movq	(%rdi), %rdi
	cmpq	%rdx, 8(%rdi)
	jne	LBB0_83
## %bb.19:
	cmpl	$2, 16(%rdi)
	jne	LBB0_83
## %bb.20:
	movl	20(%rdi), %edi
	cmpl	$32000, %edi                    ## imm = 0x7D00
	je	LBB0_23
## %bb.21:
	cmpl	$48000, %edi                    ## imm = 0xBB80
	je	LBB0_23
## %bb.22:
	cmpl	$44100, %edi                    ## imm = 0xAC44
	jne	LBB0_83
LBB0_23:
	cmpl	$1, %r14d
	jne	LBB0_57
LBB0_24:
	movl	32(%rcx), %edi
	movl	24(%rcx), %edx
	movl	28(%rcx), %esi
	movl	8(%rax), %ecx
	callq	_av_dv_codec_profile2
	movq	%rax, 56(%r15)
	testq	%rax, %rax
	je	LBB0_83
## %bb.25:
	movl	4(%rax), %ecx
	cmpl	$50, %ecx
	je	LBB0_27
## %bb.26:
	cmpl	$25, %ecx
	jne	LBB0_28
LBB0_27:
	cmpl	$1, 8(%rax)
	je	LBB0_32
LBB0_28:
	movq	16(%r15), %rcx
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_30
## %bb.29:
	movq	(%rdx), %rdx
	cmpl	$48000, 20(%rdx)                ## imm = 0xBB80
	jne	LBB0_83
LBB0_30:
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_32
## %bb.31:
	movq	(%rcx), %rcx
	cmpl	$48000, 20(%rcx)                ## imm = 0xBB80
	jne	LBB0_83
LBB0_32:
	cmpl	$2, (%r15)
	jl	LBB0_47
## %bb.33:
	cmpl	$2, (%rax)
	jl	LBB0_83
LBB0_47:
	leaq	24(%r15), %rsi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r15)
	movq	$0, 48(%r15)
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_ff_parse_creation_time_metadata
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_71
## %bb.48:
	movl	$8, %r12d
	movl	$4, %r14d
	xorl	%ebx, %ebx
	movq	_MAX_AUDIO_FRAME_SIZE@GOTPCREL(%rip), %r13
	jmp	LBB0_51
LBB0_49:                                ##   in Loop: Header=BB0_51 Depth=1
	movl	(%r15), %eax
LBB0_50:                                ##   in Loop: Header=BB0_51 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$-4, %r12
	addq	$-4, %r14
	cmpq	%rcx, %rbx
	jge	LBB0_71
LBB0_51:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rcx
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_50
## %bb.52:                              ##   in Loop: Header=BB0_51 Depth=1
	movl	(%r13), %esi
	movl	$100, %edi
	callq	_av_fifo_alloc_array
	movq	8(%r15), %rdi
	movl	%eax, (%rdi,%rbx,4)
	testl	%eax, %eax
	jne	LBB0_49
## %bb.53:
	testl	%ebx, %ebx
	je	LBB0_83
## %bb.54:
	subq	%r14, %rdi
	callq	_av_fifo_freep
	cmpq	$2, %rbx
	jb	LBB0_83
## %bb.55:
	negq	%r12
	xorl	%r14d, %r14d
LBB0_56:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	%r12, %rdi
	callq	_av_fifo_freep
	addq	$-4, %r12
	decq	%rbx
	cmpq	$1, %rbx
	jg	LBB0_56
	jmp	LBB0_84
LBB0_38:
	movq	8(%rbx), %rax
	movq	16(%rax), %rax
	movq	(%rax), %rcx
	movl	(%rcx), %ecx
	cmpl	$128, %ecx
	je	LBB0_44
## %bb.39:
	cmpl	$129, %ecx
	jne	LBB0_83
## %bb.40:
	cmpl	$1, %r14d
	jg	LBB0_83
## %bb.73:
	movq	16(%r15), %rcx
	movl	%r14d, %esi
	leal	1(%r14), %edi
	movl	%edi, (%r15)
	movq	%rax, (%rcx,%rsi,8)
	movl	%edi, %r14d
	jmp	LBB0_13
LBB0_44:
	testq	%rdx, %rdx
	jne	LBB0_83
	jmp	LBB0_14
LBB0_57:
	movq	8(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_63
## %bb.58:
	movq	(%rdi), %rdi
	cmpq	%rdx, 8(%rdi)
	jne	LBB0_83
## %bb.59:
	cmpl	$2, 16(%rdi)
	jne	LBB0_83
## %bb.60:
	movl	20(%rdi), %edi
	cmpl	$32000, %edi                    ## imm = 0x7D00
	je	LBB0_63
## %bb.61:
	cmpl	$48000, %edi                    ## imm = 0xBB80
	je	LBB0_63
## %bb.62:
	cmpl	$44100, %edi                    ## imm = 0xAC44
	jne	LBB0_83
LBB0_63:
	cmpl	$2, %r14d
	je	LBB0_24
## %bb.64:
	movq	16(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.65:
	movq	(%rsi), %rsi
	cmpq	%rdx, 8(%rsi)
	jne	LBB0_83
## %bb.66:
	cmpl	$2, 16(%rsi)
	jne	LBB0_83
## %bb.67:
	movl	20(%rsi), %edx
	cmpl	$32000, %edx                    ## imm = 0x7D00
	je	LBB0_24
## %bb.68:
	cmpl	$48000, %edx                    ## imm = 0xBB80
	je	LBB0_24
## %bb.69:
	cmpl	$44100, %edx                    ## imm = 0xAC44
	je	LBB0_24
	jmp	LBB0_83
LBB0_71:
	movq	%r15, %r14
LBB0_84:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_DVVIDEO,8,3        ## @AV_CODEC_ID_DVVIDEO
	.comm	_AV_CODEC_ID_PCM_S16LE,8,3      ## @AV_CODEC_ID_PCM_S16LE
	.comm	_MAX_AUDIO_FRAME_SIZE,4,2       ## @MAX_AUDIO_FRAME_SIZE
	.no_dead_strip	_dv_init_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dv_init_mux
_dv_init_mux:                           ; @dv_init_mux
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w10, [x0]
	cmp	w10, #3
	b.gt	LBB0_52
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #16]
	str	wzr, [x20]
	ldr	x8, [x20, #16]
	str	xzr, [x8, #8]
	ldr	x8, [x20, #16]
	str	xzr, [x8]
	cmp	w10, #1
	b.lt	LBB0_52
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x8]
	ldr	w9, [x9]
	cmp	w9, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w9, #129
	b.ne	LBB0_52
; %bb.4:
	ldr	x11, [x20, #16]
	mov	w9, #1
	str	w9, [x20]
	str	x8, [x11]
	mov	x8, #0
	cmp	w10, #1
	b.ne	LBB0_6
	b	LBB0_12
LBB0_5:
	mov	w9, #0
	cmp	w10, #1
	b.eq	LBB0_12
LBB0_6:
	ldr	x11, [x19, #8]
	ldr	x11, [x11, #8]
	ldr	x12, [x11]
	ldr	w12, [x12]
	cmp	w12, #128
	b.eq	LBB0_9
; %bb.7:
	cmp	w12, #129
	b.ne	LBB0_52
; %bb.8:
	ldr	x12, [x20, #16]
	str	x11, [x12, w9, uxtw #3]
	add	w9, w9, #1
	str	w9, [x20]
	mov	x11, x8
	b	LBB0_10
LBB0_9:
	cbnz	x8, LBB0_52
LBB0_10:
	cmp	w10, #2
	b.ne	LBB0_38
LBB0_11:
	mov	x8, x11
LBB0_12:
	cbz	x8, LBB0_52
; %bb.13:
	ldr	x10, [x8]
	ldr	x11, [x10, #8]
Lloh0:
	adrp	x12, _AV_CODEC_ID_DVVIDEO@GOTPAGE
Lloh1:
	ldr	x12, [x12, _AV_CODEC_ID_DVVIDEO@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_52
; %bb.14:
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.15:
	ldr	x12, [x20, #16]
Lloh3:
	adrp	x11, _AV_CODEC_ID_PCM_S16LE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _AV_CODEC_ID_PCM_S16LE@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	ldr	x13, [x12]
	cbz	x13, LBB0_19
; %bb.16:
	ldr	x13, [x13]
	ldr	x14, [x13, #8]
	cmp	x14, x11
	b.ne	LBB0_52
; %bb.17:
	ldr	w14, [x13, #16]
	cmp	w14, #2
	b.ne	LBB0_52
; %bb.18:
	ldr	w13, [x13, #20]
	mov	w14, #32000
	cmp	w13, w14
	mov	w14, #48000
	ccmp	w13, w14, #4, ne
	mov	w14, #44100
	ccmp	w13, w14, #4, ne
	b.ne	LBB0_52
LBB0_19:
	cmp	w9, #1
	b.ne	LBB0_43
LBB0_20:
	ldp	w1, w0, [x10, #28]
	ldr	w2, [x10, #24]
	ldr	w3, [x8, #8]
	bl	_av_dv_codec_profile2
	str	x0, [x20, #56]
	cbz	x0, LBB0_53
; %bb.21:
	ldr	w8, [x0, #4]
	cmp	w8, #50
	ccmp	w8, #25, #4, ne
	b.ne	LBB0_23
; %bb.22:
	ldr	w8, [x0, #8]
	cmp	w8, #1
	b.eq	LBB0_27
LBB0_23:
	ldr	x8, [x20, #16]
	ldr	x9, [x8]
	cbz	x9, LBB0_25
; %bb.24:
	ldr	x9, [x9]
	ldr	w9, [x9, #20]
	mov	w10, #48000
	cmp	w9, w10
	b.ne	LBB0_52
LBB0_25:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_27
; %bb.26:
	ldr	x8, [x8]
	ldr	w8, [x8, #20]
	mov	w9, #48000
	cmp	w8, w9
	b.ne	LBB0_52
LBB0_27:
	ldr	w8, [x20]
	cmp	w8, #1
	b.le	LBB0_29
; %bb.28:
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_52
LBB0_29:
	add	x1, x20, #24
	stp	xzr, xzr, [x20, #32]
	str	xzr, [x20, #48]
	mov	x0, x19
	mov	w2, #1
	bl	_ff_parse_creation_time_metadata
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_54
; %bb.30:
	mov	x19, #0
	mov	x21, #-8
Lloh6:
	adrp	x22, _MAX_AUDIO_FRAME_SIZE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MAX_AUDIO_FRAME_SIZE@GOTPAGEOFF]
	b	LBB0_33
LBB0_31:                                ;   in Loop: Header=BB0_33 Depth=1
	ldr	w8, [x20]
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	add	x19, x19, #1
	add	x21, x21, #4
	cmp	x19, w8, sxtw
	b.ge	LBB0_54
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	ldr	x9, [x9, x19, lsl #3]
	cbz	x9, LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	w1, [x22]
	mov	w0, #100
	bl	_av_fifo_alloc_array
	ldr	x8, [x20, #8]
	str	w0, [x8, x19, lsl #2]
	cbnz	w0, LBB0_31
; %bb.35:
	cbz	w19, LBB0_52
; %bb.36:
	add	x8, x8, x21
	add	x0, x8, #4
	bl	_av_fifo_freep
	cmp	x19, #2
	b.lo	LBB0_52
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x21
	bl	_av_fifo_freep
	mov	x0, #0
	sub	x21, x21, #4
	sub	x19, x19, #1
	cmp	x19, #1
	b.gt	LBB0_37
	b	LBB0_53
LBB0_38:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	ldr	x10, [x8]
	ldr	w10, [x10]
	cmp	w10, #128
	b.eq	LBB0_42
; %bb.39:
	cmp	w10, #129
	b.ne	LBB0_52
; %bb.40:
	cmp	w9, #1
	b.gt	LBB0_52
; %bb.41:
	ldr	x10, [x20, #16]
	str	x8, [x10, w9, uxtw #3]
	add	w9, w9, #1
	str	w9, [x20]
	b	LBB0_11
LBB0_42:
	cbnz	x11, LBB0_52
	b	LBB0_12
LBB0_43:
	ldr	x13, [x12, #8]
	cbz	x13, LBB0_47
; %bb.44:
	ldr	x13, [x13]
	ldr	x14, [x13, #8]
	cmp	x14, x11
	b.ne	LBB0_52
; %bb.45:
	ldr	w14, [x13, #16]
	cmp	w14, #2
	b.ne	LBB0_52
; %bb.46:
	ldr	w13, [x13, #20]
	mov	w14, #32000
	cmp	w13, w14
	mov	w14, #48000
	ccmp	w13, w14, #4, ne
	mov	w14, #44100
	ccmp	w13, w14, #4, ne
	b.ne	LBB0_52
LBB0_47:
	cmp	w9, #2
	b.eq	LBB0_20
; %bb.48:
	ldr	x9, [x12, #16]
	cbz	x9, LBB0_20
; %bb.49:
	ldr	x9, [x9]
	ldr	x12, [x9, #8]
	cmp	x12, x11
	b.ne	LBB0_52
; %bb.50:
	ldr	w11, [x9, #16]
	cmp	w11, #2
	b.ne	LBB0_52
; %bb.51:
	ldr	w9, [x9, #20]
	mov	w11, #32000
	cmp	w9, w11
	mov	w11, #48000
	ccmp	w9, w11, #4, ne
	mov	w11, #44100
	ccmp	w9, w11, #4, ne
	b.eq	LBB0_20
LBB0_52:
	mov	x0, #0
LBB0_53:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_54:
	mov	x0, x20
	b	LBB0_53
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_DVVIDEO,8,3        ; @AV_CODEC_ID_DVVIDEO
	.comm	_AV_CODEC_ID_PCM_S16LE,8,3      ; @AV_CODEC_ID_PCM_S16LE
	.comm	_MAX_AUDIO_FRAME_SIZE,4,2       ; @MAX_AUDIO_FRAME_SIZE
	.no_dead_strip	_dv_init_mux
.subsections_via_symbols
