	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wv_unpack_mono
_wv_unpack_mono:                        ## @wv_unpack_mono
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movl	(%rdi), %r12d
	movl	60(%rdi), %ecx
	movl	56(%rdi), %eax
	movl	%eax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rdi)
	movq	$0, 48(%rdi)
	xorl	%r13d, %r13d
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	xorl	%edx, %edx
	leaq	-52(%rbp), %rcx
	callq	_wv_get_value
	cmpl	$0, -52(%rbp)
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 8(%r15)
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r14d
	movq	24(%r15), %rax
	movslq	%r12d, %r8
	addq	$20, %rax
	xorl	%edx, %edx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	%ebx, %ecx
	movl	%r14d, (%rsi,%rcx,4)
	incq	%rdx
	movslq	8(%r15), %rcx
	addq	$24, %rax
	cmpq	%rcx, %rdx
	jge	LBB0_16
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %r9d
	movl	-20(%rax), %ebx
	cmpl	$9, %ebx
	jl	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	-12(%rax), %rsi
	movl	(%rsi), %edi
	testb	$1, %bl
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	leal	(%rdi,%rdi,2), %ecx
	subl	4(%rsi), %ecx
	sarl	%ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-12(%rax), %rsi
	movl	(%rsi,%r8,4), %ecx
	addl	%r12d, %ebx
	andl	$7, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	leal	(%rdi,%rdi), %ecx
	subl	4(%rsi), %ecx
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	%edi, 4(%rsi)
	xorl	%ebx, %ebx
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	-4(%rax), %edi
	movl	%edi, %r14d
	imull	%ecx, %r14d
	addl	$512, %r14d                     ## imm = 0x200
	sarl	$10, %r14d
	addl	%r9d, %r14d
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=2
	testl	%r9d, %r9d
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=2
	xorl	%r9d, %ecx
	shrl	$31, %ecx
	addl	%ecx, %ecx
	decl	%ecx
	imull	(%rax), %ecx
	subl	%ecx, %edi
	movl	%edi, -4(%rax)
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_AV_SAMPLE_FMT_FLTP@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edx
	callq	_wv_get_value_float
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movss	%xmm0, (%rax)
	addq	$4, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_AV_SAMPLE_FMT_S32P@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edx
	callq	_wv_get_value_integer
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	addq	$4, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	addq	$4, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rax,2), %eax
	addl	%eax, %r14d
	incl	%r13d
	cmpl	$0, -52(%rbp)
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	%r12d
	andl	$7, %r12d
	movl	%r14d, %ecx
	cmpl	4(%r15), %r13d
	jl	LBB0_1
	jmp	LBB0_23
LBB0_2:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r14d
LBB0_23:
	movq	%r15, %rdi
	callq	_wv_reset_saved_context
	cmpl	$0, -52(%rbp)
	je	LBB0_26
## %bb.24:
	cmpl	4(%r15), %r13d
	jge	LBB0_26
## %bb.25:
	movl	%ebx, %edi
	callq	_av_get_bytes_per_sample
	movl	4(%r15), %edx
	subl	%r13d, %edx
	imull	%eax, %edx
	imull	%r13d, %eax
	cltq
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	xorl	%esi, %esi
	callq	_memset
LBB0_26:
	movq	16(%r15), %rcx
	movq	_AV_EF_CRCCHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%rcx)
	je	LBB0_30
## %bb.27:
	movl	-48(%rbp), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_wv_check_crc
	testl	%eax, %eax
	jns	LBB0_29
## %bb.28:
	movq	16(%r15), %rcx
	movq	_AV_EF_EXPLODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	jne	LBB0_30
LBB0_29:
	xorl	%eax, %eax
LBB0_30:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_SAMPLE_FMT_S16P,4,2         ## @AV_SAMPLE_FMT_S16P
	.comm	_AV_SAMPLE_FMT_FLTP,4,2         ## @AV_SAMPLE_FMT_FLTP
	.comm	_AV_SAMPLE_FMT_S32P,4,2         ## @AV_SAMPLE_FMT_S32P
	.comm	_AV_EF_CRCCHECK,4,2             ## @AV_EF_CRCCHECK
	.comm	_AV_EF_EXPLODE,4,2              ## @AV_EF_EXPLODE
	.no_dead_strip	_wv_unpack_mono
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wv_unpack_mono
_wv_unpack_mono:                        ; @wv_unpack_mono
	.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	x22, x3
	mov	x23, x1
	mov	x19, x0
	mov	w25, #0
	ldr	w26, [x0]
	ldp	w8, w20, [x0, #56]
	str	w8, [sp, #40]
	stp	xzr, xzr, [x0, #40]
	str	xzr, [x0, #32]
Lloh0:
	adrp	x27, _AV_SAMPLE_FMT_FLTP@GOTPAGE
Lloh1:
	ldr	x27, [x27, _AV_SAMPLE_FMT_FLTP@GOTPAGEOFF]
	orr	w28, wzr, #0x200
	stp	x2, x2, [sp, #16]               ; 16-byte Folded Spill
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x21, x2
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	x3, sp, #44
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_wv_get_value
	ldr	w8, [sp, #44]
	cbnz	w8, LBB0_22
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x24, x0
	mov	x8, #0
	ldr	x10, [x19, #24]
	sxtw	x9, w26
	add	x10, x10, #16
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	madd	w12, w14, w12, w28
	add	w24, w24, w12, asr #10
	str	w24, [x11, w13, uxtw #2]
	add	x8, x8, #1
	ldrsw	x11, [x19, #8]
	add	x10, x10, #24
	cmp	x8, x11
	b.ge	LBB0_14
LBB0_5:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w13, [x10, #-16]
	cmp	w13, #9
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldur	x11, [x10, #-8]
	ldr	w14, [x11]
	tbnz	w13, #0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w12, w14, w14, lsl #1
	ldr	w13, [x11, #4]
	sub	w12, w12, w13
	asr	w12, w12, #1
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldur	x11, [x10, #-8]
	ldr	w12, [x11, x9, lsl #2]
	add	w13, w13, w26
	and	w13, w13, #0x7
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	lsl	w12, w14, #1
	ldr	w13, [x11, #4]
	sub	w12, w12, w13
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w13, #0
	str	w14, [x11, #4]
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w14, [x10]
	cmp	w12, #0
	ccmp	w24, #0, #4, ne
	b.eq	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=2
	eor	w15, w12, w24
	lsr	w15, w15, #30
	and	w15, w15, #0x2
	sub	w15, w15, #1
	ldr	w16, [x10, #4]
	msub	w15, w16, w15, w14
	str	w15, [x10]
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w24, #0
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x27]
	cmp	w8, w22
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_1 Depth=1
	add	x1, sp, #40
	mov	x0, x19
	mov	x2, x24
	bl	_wv_get_value_float
	scvtf	s0, w0
	str	s0, [x21], #4
	b	LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
	str	w20, [sp, #36]                  ; 4-byte Folded Spill
	mov	x20, x21
	mov	x21, x23
	mov	x23, x27
Lloh2:
	adrp	x8, _AV_SAMPLE_FMT_S32P@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_SAMPLE_FMT_S32P@GOTPAGEOFF]
Lloh4:
	ldr	w27, [x8]
	add	x1, sp, #40
	mov	x0, x19
	mov	x2, x24
	bl	_wv_get_value_integer
	mov	x9, x22
	cmp	w27, w22
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	w0, [x8], #4
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	w0, [x8], #4
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
LBB0_19:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x27, x23
	mov	x23, x21
	mov	x21, x20
	mov	x22, x9
	ldr	w20, [sp, #36]                  ; 4-byte Folded Reload
LBB0_20:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w20, w20, lsl #1
	add	w20, w24, w8
	add	w25, w25, #1
	ldr	w8, [sp, #44]
	cbnz	w8, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w26, #1
	and	w26, w8, #0x7
	ldr	w8, [x19, #4]
	cmp	w25, w8
	b.lt	LBB0_1
LBB0_22:
	mov	x0, x19
	bl	_wv_reset_saved_context
	ldr	w8, [sp, #44]
	cbz	w8, LBB0_25
; %bb.23:
	ldr	w8, [x19, #4]
	cmp	w25, w8
	b.ge	LBB0_25
; %bb.24:
	mov	x0, x22
	bl	_av_get_bytes_per_sample
	mul	w8, w0, w25
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x9, w8, sxtw #2
	ldr	w9, [x19, #4]
	sub	w9, w9, w25
	mul	w2, w9, w0
	mov	x0, x8
	mov	w1, #0
	bl	_memset
LBB0_25:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AV_EF_CRCCHECK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_EF_CRCCHECK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.26:
	ldr	w2, [sp, #40]
	mov	x0, x19
	mov	x1, x20
	bl	_wv_check_crc
	tbz	w0, #31, LBB0_28
; %bb.27:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _AV_EF_EXPLODE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AV_EF_EXPLODE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_29
LBB0_28:
	mov	w0, #0
LBB0_29:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_SAMPLE_FMT_S16P,4,2         ; @AV_SAMPLE_FMT_S16P
	.comm	_AV_SAMPLE_FMT_FLTP,4,2         ; @AV_SAMPLE_FMT_FLTP
	.comm	_AV_SAMPLE_FMT_S32P,4,2         ; @AV_SAMPLE_FMT_S32P
	.comm	_AV_EF_CRCCHECK,4,2             ; @AV_EF_CRCCHECK
	.comm	_AV_EF_EXPLODE,4,2              ; @AV_EF_EXPLODE
	.no_dead_strip	_wv_unpack_mono
.subsections_via_symbols
