	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dv_extract_audio
_dv_extract_audio:                      ## @dv_extract_audio
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	_dv_audio_source@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_dv_extract_pack
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	16(%rax), %ebx
	movl	%ebx, %ecx
	andl	$7, %ecx
	movl	$-1, %r12d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	cmpl	$1, %ecx
	ja	LBB0_31
## %bb.3:
	movl	4(%rax), %r12d
	shrl	$3, %ebx
	andl	$7, %ebx
	movq	_dv_audio_frequency@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FF_ARRAY_ELEMS
	cmpl	%eax, %ebx
	jge	LBB0_4
## %bb.5:
	xorl	%ecx, %ecx
	cmpl	$720, 12(%r13)                  ## imm = 0x2D0
	jne	LBB0_7
## %bb.6:
	xorl	%ecx, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testb	$12, 4(%rax)
	sete	%cl
	addl	%ecx, %ecx
LBB0_7:
	movl	16(%r13), %eax
	movq	%rcx, %rsi
	addl	%eax, %ecx
	xorl	%edx, %edx
	cmpl	$1, -48(%rbp)                   ## 4-byte Folded Reload
	setne	%dl
	addl	%edx, %edx
	addl	$2, %edx
	cmpl	%edx, %ecx
	jle	LBB0_8
## %bb.32:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
LBB0_4:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_31
LBB0_1:
	xorl	%r12d, %r12d
LBB0_31:
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	andl	$63, %r12d
	movq	(%r13), %rcx
	addl	(%rcx,%rbx,4), %r12d
	shll	$2, %r12d
	testl	%eax, %eax
	jle	LBB0_31
## %bb.9:
	movl	8(%r13), %eax
	movl	%eax, %r8d
	shrl	$31, %r8d
	addl	%eax, %r8d
	sarl	%r8d
	movl	%r8d, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	movq	%rsi, %rbx
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	cmpl	16(%r13), %eax
	jge	LBB0_31
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##       Child Loop BB0_17 Depth 3
                                        ##         Child Loop BB0_18 Depth 4
	xorl	%edi, %edi
	cmpl	$4, %ebx
	setl	%dil
	callq	_av_assert0
	movslq	%ebx, %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_31
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	%ebx
	cmpl	$0, 8(%r13)
	jle	LBB0_30
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movslq	8(%r13), %rax
	movq	%rdx, %rcx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rdx
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	jge	LBB0_30
LBB0_13:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_17 Depth 3
                                        ##         Child Loop BB0_18 Depth 4
	addq	$1920, -56(%rbp)                ## 8-byte Folded Spill
                                        ## imm = 0x780
	cmpl	$1, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	-112(%rbp), %rax                ## 8-byte Folded Reload
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	xorl	%edi, %edi
	cmpl	$4, %ebx
	setl	%dil
	callq	_av_assert0
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movslq	%ebx, %rax
	incl	%ebx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_30
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	xorl	%r10d, %r10d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_17 Depth=3
	addq	$5120, -56(%rbp)                ## 8-byte Folded Spill
                                        ## imm = 0x1400
	incq	%r10
	cmpq	$9, %r10
	je	LBB0_29
LBB0_17:                                ##   Parent Loop BB0_10 Depth=1
                                        ##     Parent Loop BB0_13 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_18 Depth 4
	movl	$8, %ebx
	movq	%r10, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_18 Depth=4
	leal	2(%rbx), %eax
	cmpl	$78, %ebx
	movl	%eax, %ebx
	jge	LBB0_28
LBB0_18:                                ##   Parent Loop BB0_10 Depth=1
                                        ##     Parent Loop BB0_13 Depth=2
                                        ##       Parent Loop BB0_17 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=4
	movq	%r13, %r12
	movslq	%ebx, %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi,%rax,4), %ecx
	movl	4(%rsi,%rax,4), %edx
	shll	$4, %ecx
	movl	8(%rsi,%rax,4), %r13d
	movl	%r13d, %edi
	sarl	$4, %edi
	orl	%ecx, %edi
	shll	$4, %edx
	andl	$15, %r13d
	orl	%edx, %r13d
	xorl	%r15d, %r15d
	movl	$0, %r14d
	cmpl	$2048, %edi                     ## imm = 0x800
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=4
	callq	_dv_audio_12to16
	movq	-104(%rbp), %r10                ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r14d
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=4
	cmpl	$2048, %r13d                    ## imm = 0x800
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_18 Depth=4
	movl	%r13d, %edi
	callq	_dv_audio_12to16
	movq	-104(%rbp), %r10                ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r15d
LBB0_25:                                ##   in Loop: Header=BB0_18 Depth=4
	movq	%r12, %r13
	movq	24(%r12), %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%r8d
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%rcx,%rdx,8), %rax
	movslq	(%rax,%r10,4), %rdi
	leal	-8(%rbx), %eax
	cltq
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rsi
	shrq	$63, %rsi
	shrq	$32, %rax
	addl	%esi, %eax
	movslq	32(%r12), %rsi
	cltq
	imulq	%rax, %rsi
	addq	%rdi, %rsi
	addq	%rsi, %rsi
	movl	-84(%rbp), %r12d                ## 4-byte Reload
	cmpl	%r12d, %esi
	jge	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_18 Depth=4
	incl	%ebx
	movzbl	%r14b, %edi
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	movl	%edi, (%r9,%rsi,4)
	sarl	$8, %r14d
	orl	$1, %esi
	movslq	%esi, %rsi
	movl	%r14d, (%r9,%rsi,4)
	addl	%r8d, %edx
	movslq	%edx, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movslq	(%rcx,%r10,4), %rcx
	movslq	32(%r13), %rdx
	imulq	%rax, %rdx
	addq	%rcx, %rdx
	movzbl	%r15b, %eax
	movl	%eax, (%r9,%rdx,8)
	addq	%rdx, %rdx
	sarl	$8, %r15d
	orl	$1, %edx
	movslq	%edx, %rax
	movl	%r15d, (%r9,%rax,4)
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_18 Depth=4
	movq	24(%r13), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movslq	(%rax,%r10,4), %rcx
	leal	-8(%rbx), %eax
	shrl	$31, %eax
	addl	%ebx, %eax
	addl	$-8, %eax
	sarl	%eax
	movslq	32(%r13), %rdx
	cltq
	imulq	%rdx, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	cmpl	%r12d, %eax
	jge	LBB0_27
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=4
	movslq	%ebx, %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	4(%rsi,%rcx,4), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%edx, (%rdi,%rax,4)
	movl	(%rsi,%rcx,4), %ecx
	orl	$1, %eax
	cltq
	movl	%ecx, %esi
	xorl	$128, %esi
	orl	%edx, %esi
	movl	$0, %edx
	cmovel	%edx, %ecx
	movl	%ecx, (%rdi,%rax,4)
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_dv_audio_source,4,2            ## @dv_audio_source
	.comm	_dv_audio_frequency,4,2         ## @dv_audio_frequency
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many dv pcm frames\n"

	.no_dead_strip	_dv_extract_audio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dv_extract_audio
_dv_extract_audio:                      ; @dv_extract_audio
	.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	x19, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _dv_audio_source@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dv_audio_source@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	bl	_dv_extract_pack
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x0, #16]
	and	w9, w8, #0x7
	str	w9, [sp, #44]                   ; 4-byte Folded Spill
	cmp	w9, #1
	b.ls	LBB0_4
; %bb.2:
	mov	w27, #-1
	b	LBB0_11
LBB0_3:
	mov	w27, #0
	b	LBB0_11
LBB0_4:
	ldr	w20, [x0, #4]
	ubfx	x22, x8, #3, #3
Lloh3:
	adrp	x8, _dv_audio_frequency@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dv_audio_frequency@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_FF_ARRAY_ELEMS
	cmp	w22, w0
	b.ge	LBB0_10
; %bb.5:
	ldp	w8, w9, [x19, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w9, #720
	b.ne	LBB0_7
; %bb.6:
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldrb	w9, [x9, #4]
	tst	w9, #0xc
	cset	w9, eq
	lsl	w23, w9, #1
	b	LBB0_8
LBB0_7:
	mov	w23, #0
LBB0_8:
	ldr	w9, [x19, #16]
	mov	w10, #4
	mov	w11, #2
	ldr	w12, [sp, #44]                  ; 4-byte Folded Reload
	cmp	w12, #1
	csel	w10, w11, w10, eq
	add	w11, w9, w23
	cmp	w11, w10
	b.le	LBB0_12
; %bb.9:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_av_log
LBB0_10:
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w27, [x8]
LBB0_11:
	mov	x0, x27
	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
LBB0_12:
	ldr	x10, [x19]
	and	w11, w20, #0x3f
	ldr	w10, [x10, x22, lsl #2]
	add	w10, w10, w11
	lsl	w27, w10, #2
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.13:
	mov	w22, #0
	asr	w8, w8, #1
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x23, x20
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w22, [sp, #4]                   ; 4-byte Folded Reload
	add	w22, w22, #1
	ldr	w8, [x19, #16]
	cmp	w22, w8
	b.ge	LBB0_11
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
                                        ;       Child Loop BB0_26 Depth 3
                                        ;         Child Loop BB0_28 Depth 4
	cmp	w23, #4
	cset	w0, lt
	bl	_av_assert0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x26, [x8, w23, sxtw #3]
	cbz	x26, LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	w20, w23, #1
	ldr	w8, [x19, #8]
	cmp	w8, #1
	str	w22, [sp, #4]                   ; 4-byte Folded Spill
	b.lt	LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x28, #0
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=2
	add	x28, x28, #1
	ldrsw	x8, [x19, #8]
	ldr	w23, [sp, #20]                  ; 4-byte Folded Reload
	mov	x20, x23
	cmp	x28, x8
	b.ge	LBB0_15
LBB0_20:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_26 Depth 3
                                        ;         Child Loop BB0_28 Depth 4
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x8, #1920
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.ne	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x28, x8
	b.ne	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=2
	cmp	w20, #4
	cset	w0, lt
	bl	_av_assert0
	add	w23, w20, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x26, [x8, w20, sxtw #3]
	cbnz	x26, LBB0_24
	b	LBB0_15
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=2
	mov	x23, x20
LBB0_24:                                ;   in Loop: Header=BB0_20 Depth=2
	str	w23, [sp, #20]                  ; 4-byte Folded Spill
	mov	x20, #0
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=3
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	mov	w9, #5120
	add	x8, x8, x9
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	add	x20, x20, #1
	cmp	x20, #9
	b.eq	LBB0_19
LBB0_26:                                ;   Parent Loop BB0_16 Depth=1
                                        ;     Parent Loop BB0_20 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_28 Depth 4
	mov	w25, #8
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=4
	add	w8, w25, #2
	cmp	w25, #78
	mov	x25, x8
	b.ge	LBB0_25
LBB0_28:                                ;   Parent Loop BB0_16 Depth=1
                                        ;     Parent Loop BB0_20 Depth=2
                                        ;       Parent Loop BB0_26 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=4
	sxtw	x8, w25
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	add	x9, x11, w25, sxtw #2
	ldr	w10, [x9]
	ldr	w24, [x9, #8]
	asr	w9, w24, #4
	orr	w0, w9, w10, lsl #4
	add	x22, x8, #1
	ldr	w21, [x11, x22, lsl #2]
	cmp	w0, #2048
	b.ne	LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=4
	mov	w23, #0
	b	LBB0_34
LBB0_31:                                ;   in Loop: Header=BB0_28 Depth=4
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x28, lsl #3]
	ldr	w8, [x8, x20, lsl #2]
	sub	w9, w25, #8
	sub	w10, w25, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #1
	ldr	w10, [x19, #32]
	madd	w8, w10, w9, w8
	sbfiz	x8, x8, #1, #32
	cmp	w8, w27
	b.ge	LBB0_27
; %bb.32:                               ;   in Loop: Header=BB0_28 Depth=4
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x9, x9, w25, sxtw #2
	ldr	w10, [x9, #4]
	str	w10, [x26, w8, sxtw #2]
	ldr	w9, [x9]
	lsl	x8, x8, #2
	orr	x8, x8, #0x4
	cmp	w10, #0
	mov	w10, #128
	ccmp	w9, w10, #0, eq
	csel	w9, wzr, w9, eq
	str	w9, [x26, x8]
	b	LBB0_27
LBB0_33:                                ;   in Loop: Header=BB0_28 Depth=4
	bl	_dv_audio_12to16
	mov	x23, x0
LBB0_34:                                ;   in Loop: Header=BB0_28 Depth=4
	bfi	w24, w21, #4, #28
	cmp	w24, #2048
	b.ne	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_28 Depth=4
	mov	w0, #0
	b	LBB0_37
LBB0_36:                                ;   in Loop: Header=BB0_28 Depth=4
	mov	x0, x24
	bl	_dv_audio_12to16
LBB0_37:                                ;   in Loop: Header=BB0_28 Depth=4
	ldr	x8, [x19, #24]
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	sdiv	w9, w28, w10
	msub	w9, w9, w10, w28
	ldr	x10, [x8, w9, uxtw #3]
	ldr	w11, [x10, x20, lsl #2]
	sub	w10, w25, #8
	mov	w12, #21846
	movk	w12, #21845, lsl #16
	smull	x10, w10, w12
	lsr	x12, x10, #63
	lsr	x10, x10, #32
	add	w10, w10, w12
	ldr	w12, [x19, #32]
	madd	w11, w12, w10, w11
	sbfiz	x11, x11, #1, #32
	cmp	w11, w27
	b.ge	LBB0_27
; %bb.38:                               ;   in Loop: Header=BB0_28 Depth=4
	and	w12, w23, #0xff
	str	w12, [x26, w11, sxtw #2]
	asr	w12, w23, #8
	lsl	x11, x11, #2
	orr	x11, x11, #0x4
	str	w12, [x26, x11]
	ldr	x11, [sp, #32]                  ; 8-byte Folded Reload
	add	w9, w9, w11
	ldr	x8, [x8, w9, sxtw #3]
	ldr	w8, [x8, x20, lsl #2]
	ldr	w9, [x19, #32]
	madd	w8, w9, w10, w8
	and	w9, w0, #0xff
	lsl	w10, w8, #1
	str	w9, [x26, w10, sxtw #2]
	asr	w9, w0, #8
	add	x8, x26, w8, sxtw #3
	str	w9, [x8, #4]
	mov	x25, x22
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_dv_audio_source,4,2            ; @dv_audio_source
	.comm	_dv_audio_frequency,4,2         ; @dv_audio_frequency
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many dv pcm frames\n"

	.no_dead_strip	_dv_extract_audio
.subsections_via_symbols
