	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wavpack_decode_frame
_wavpack_decode_frame:                  ## @wavpack_decode_frame
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %ebx
	movq	_WV_HEADER_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_22
## %bb.1:
	movq	%rcx, %r14
	movq	%rdi, %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %r12
	movq	24(%rdi), %r13
	movq	$0, 16(%r13)
	movq	$0, (%r13)
	leaq	80(%r12), %rdi
	callq	_AV_RL32
	movl	%eax, 8(%r13)
	leaq	96(%r12), %rdi
	callq	_AV_RL32
                                        ## kill: def $eax killed $eax def $rax
	movslq	8(%r13), %rcx
	testq	%rcx, %rcx
	jle	LBB0_7
## %bb.2:
	movq	_WV_MAX_SAMPLES@GOTPCREL(%rip), %rdx
	cmpq	%rcx, (%rdx)
	jl	LBB0_7
## %bb.3:
	movq	%r13, %rsi
	testb	$-128, %al
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_8
## %bb.4:
	andl	$3, %eax
	cmpl	$1, %eax
	ja	LBB0_10
## %bb.5:
	movq	_AV_SAMPLE_FMT_S16P@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_22
LBB0_8:
	movq	_AV_SAMPLE_FMT_FLTP@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	testl	%ebx, %ebx
	jg	LBB0_11
	jmp	LBB0_18
LBB0_10:
	movq	_AV_SAMPLE_FMT_S32P@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r15)
	leal	8(,%rax,8), %eax
	movl	%eax, (%r15)
	testl	%ebx, %ebx
	jle	LBB0_18
LBB0_11:
	movq	_WV_HEADER_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_18
## %bb.12:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %r14
	leaq	16(%r12), %rdi
	callq	_AV_RL32
                                        ## kill: def $eax killed $eax def $rax
	leal	-12(%rax), %r13d
	addl	$-20, %ebx
	cmpl	$13, %eax
	jl	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	%r13d, %ebx
	jl	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	addq	$80, %r12
	movq	16(%r14), %rsi
	movq	%r15, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movl	%r13d, %r8d
	callq	_wavpack_decode_block
	testl	%eax, %eax
	js	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	16(%r14)
	subl	%r13d, %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %rsi
	jle	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%r13d, %eax
	leaq	(%r12,%rax,4), %r12
	movq	_WV_HEADER_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_13
LBB0_18:
	movq	(%rsi), %rax
	cmpq	8(%r15), %rax
	jne	LBB0_20
## %bb.19:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_20:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_22
LBB0_21:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r14), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%r13d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_av_log
	movq	%r15, %rdi
	callq	_wavpack_decode_flush
LBB0_22:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %r15d
LBB0_24:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	%eax, %r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_wavpack_decode_flush
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_WV_HEADER_SIZE,4,2             ## @WV_HEADER_SIZE
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_WV_MAX_SAMPLES,8,3             ## @WV_MAX_SAMPLES
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid number of samples: %d\n"

	.comm	_AV_SAMPLE_FMT_FLTP,4,2         ## @AV_SAMPLE_FMT_FLTP
	.comm	_AV_SAMPLE_FMT_S16P,4,2         ## @AV_SAMPLE_FMT_S16P
	.comm	_AV_SAMPLE_FMT_S32P,4,2         ## @AV_SAMPLE_FMT_S32P
L_.str.1:                               ## @.str.1
	.asciz	"Block %d has invalid size (size %d vs. %d bytes left)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Not enough channels coded in a packet.\n"

	.no_dead_strip	_wavpack_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wavpack_decode_frame
_wavpack_decode_frame:                  ; @wavpack_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	w24, [x3]
Lloh0:
	adrp	x26, _WV_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _WV_HEADER_SIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w24, w8
	b.le	LBB0_18
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x25, [x3, #8]
	ldr	x27, [x0, #24]
	str	xzr, [x27, #16]
	str	xzr, [x27]
	add	x0, x25, #80
	bl	_AV_RL32
	str	w0, [x27, #8]
	add	x0, x25, #96
	bl	_AV_RL32
	ldr	w8, [x27, #8]
	sxtw	x9, w8
Lloh2:
	adrp	x10, _WV_MAX_SAMPLES@GOTPAGE
Lloh3:
	ldr	x10, [x10, _WV_MAX_SAMPLES@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	w8, #1
	ccmp	x10, x9, #8, ge
	b.ge	LBB0_3
; %bb.2:
Lloh5:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_17
LBB0_3:
	tbnz	w0, #7, LBB0_6
; %bb.4:
	and	w8, w0, #0x3
	cmp	w8, #1
	b.hi	LBB0_8
; %bb.5:
Lloh10:
	adrp	x8, _AV_SAMPLE_FMT_S16P@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_SAMPLE_FMT_S16P@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _AV_SAMPLE_FMT_FLTP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_SAMPLE_FMT_FLTP@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	cmp	w24, #1
	b.ge	LBB0_9
	b	LBB0_14
LBB0_8:
Lloh14:
	adrp	x9, _AV_SAMPLE_FMT_S32P@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AV_SAMPLE_FMT_S32P@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	str	w9, [x19, #16]
	lsl	w8, w8, #3
	add	w8, w8, #8
	str	w8, [x19]
	cmp	w24, #1
	b.lt	LBB0_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	cmp	w24, w8
	b.le	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, x25, #16
	bl	_AV_RL32
	sub	w23, w0, #12
	sub	w28, w24, #20
	cmp	w0, #13
	ccmp	w28, w23, #8, ge
	b.lt	LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #80
	ldr	x1, [x27, #16]
	mov	x0, x19
	mov	x2, x22
	mov	x3, x25
	mov	x4, x23
	bl	_wavpack_decode_block
	tbnz	w0, #31, LBB0_21
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x27, #16]
	add	x8, x8, #1
	str	x8, [x27, #16]
	sub	w24, w28, w23
	cmp	w24, #1
	b.lt	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, w23, uxtw #2
	b	LBB0_9
LBB0_14:
	ldr	x8, [x27]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	mov	w8, #1
	str	w8, [x21]
	ldr	w24, [x20]
	b	LBB0_19
LBB0_16:
Lloh17:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_av_log
LBB0_18:
Lloh22:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh24:
	ldr	w24, [x8]
LBB0_19:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_20:
Lloh25:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	x8, [x27, #16]
	stp	x23, x28, [sp, #8]
	str	x8, [sp]
Lloh28:
	adrp	x2, l_.str.1@PAGE
Lloh29:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	x0, x19
	bl	_wavpack_decode_flush
	b	LBB0_18
LBB0_21:
	mov	x24, x0
	mov	x0, x19
	bl	_wavpack_decode_flush
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_WV_HEADER_SIZE,4,2             ; @WV_HEADER_SIZE
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_WV_MAX_SAMPLES,8,3             ; @WV_MAX_SAMPLES
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid number of samples: %d\n"

	.comm	_AV_SAMPLE_FMT_FLTP,4,2         ; @AV_SAMPLE_FMT_FLTP
	.comm	_AV_SAMPLE_FMT_S16P,4,2         ; @AV_SAMPLE_FMT_S16P
	.comm	_AV_SAMPLE_FMT_S32P,4,2         ; @AV_SAMPLE_FMT_S32P
l_.str.1:                               ; @.str.1
	.asciz	"Block %d has invalid size (size %d vs. %d bytes left)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Not enough channels coded in a packet.\n"

	.no_dead_strip	_wavpack_decode_frame
.subsections_via_symbols
