	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wv_read_block_header
_wv_read_block_header:                  ## @wv_read_block_header
	.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, %r12
	movq	%rdi, %r14
	movq	(%rdi), %r13
	movq	%rsi, %rdi
	callq	_avio_tell
	movq	%rax, (%r13)
	movq	8(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	cmpq	%rcx, %rax
	jge	LBB0_8
LBB0_3:
	movl	84(%r13), %esi
	movq	_WV_HEADER_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_avio_read
	cmpl	(%rbx), %eax
	jne	LBB0_7
## %bb.4:
	leaq	40(%r13), %rbx
	movl	84(%r13), %esi
	movq	%rbx, %rdi
	callq	_ff_wv_parse_header
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movl	(%rbx), %esi
	movq	_WV_DSD@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_12
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_10
LBB0_8:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_10
LBB0_12:
	movl	44(%r13), %edx
	leal	-1041(%rdx), %eax
	cmpl	$-16, %eax
	ja	LBB0_14
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_14:
	xorl	%r15d, %r15d
	cmpl	$0, 72(%r13)
	je	LBB0_10
## %bb.15:
	movq	_wv_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rsi, %rcx
	shrq	$21, %rcx
	andl	$60, %ecx
	movl	(%rax,%rcx), %r10d
	cmpq	$0, 64(%r13)
	je	LBB0_18
## %bb.16:
	movq	_WV_MONO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	movl	(%rax), %eax
	andl	%esi, %eax
	sete	%al
	jne	LBB0_19
## %bb.17:
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_18:
	leaq	16(%r13), %rdx
	movl	$1, 16(%r13)
	jmp	LBB0_22
LBB0_19:
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rcx
LBB0_20:
	movl	(%rcx), %edi
	leaq	16(%r13), %rdx
	xorl	%ecx, %ecx
	cmpq	$0, 56(%r13)
	sete	%cl
	movl	%ecx, 16(%r13)
	je	LBB0_22
## %bb.21:
	movb	%al, %bl
	incl	%ebx
	jmp	LBB0_23
LBB0_22:
	movl	20(%r13), %ebx
	movl	24(%r13), %edi
LBB0_23:
	cmpl	$-1, %r10d
	je	LBB0_25
## %bb.24:
	testl	%ebx, %ebx
	jne	LBB0_26
LBB0_25:
	cmpl	$0, 80(%r13)
	je	LBB0_40
LBB0_26:
	movl	%esi, %eax
	andl	$3, %eax
	leal	8(,%rax,8), %ecx
	movl	28(%r13), %r8d
	testl	%r8d, %r8d
	jne	LBB0_28
## %bb.27:
	movl	%ecx, 28(%r13)
	movl	%ecx, %r8d
LBB0_28:
	movl	20(%r13), %r9d
	testl	%r9d, %r9d
	jne	LBB0_30
## %bb.29:
	movl	%ebx, 20(%r13)
	movl	%ebx, %r9d
LBB0_30:
	cmpl	$0, 24(%r13)
	jne	LBB0_32
## %bb.31:
	movl	%edi, 24(%r13)
LBB0_32:
	movl	32(%r13), %eax
	testl	%eax, %eax
	jne	LBB0_34
## %bb.33:
	movl	%r10d, 32(%r13)
	movl	%r10d, %eax
LBB0_34:
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.35:
	cmpl	%r8d, %ecx
	jne	LBB0_39
## %bb.36:
	cmpl	$0, (%rdx)
	jne	LBB0_64
## %bb.37:
	cmpl	%r9d, %ebx
	je	LBB0_64
## %bb.38:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	movl	%r9d, %r8d
	jmp	LBB0_67
LBB0_39:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	%r14, %rdi
	jmp	LBB0_67
LBB0_40:
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%r10d, -52(%rbp)                ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_avio_tell
	movq	%rax, %rbx
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_71
## %bb.41:
	addq	48(%r13), %rbx
	movq	%r12, %rdi
	callq	_avio_tell
	cmpq	%rbx, %rax
	jge	LBB0_69
## %bb.42:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_44
LBB0_43:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	%r12, %rdi
	callq	_avio_tell
	cmpq	%rbx, %rax
	jge	LBB0_69
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_avio_feof
	testl	%eax, %eax
	jne	LBB0_69
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=1
	movq	%r12, %rdi
	callq	_avio_r8
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	testb	$-128, %al
	jne	LBB0_47
## %bb.46:                              ##   in Loop: Header=BB0_44 Depth=1
	callq	_avio_r8
	jmp	LBB0_48
LBB0_47:                                ##   in Loop: Header=BB0_44 Depth=1
	callq	_avio_rl24
LBB0_48:                                ##   in Loop: Header=BB0_44 Depth=1
	movl	%eax, %ebx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	andl	$63, %eax
	cmpl	$39, %eax
	je	LBB0_54
## %bb.49:                              ##   in Loop: Header=BB0_44 Depth=1
	addl	%ebx, %ebx
	andl	$64, %ecx
	shrl	$6, %ecx
	subl	%ecx, %ebx
	cmpl	$13, %eax
	jne	LBB0_55
## %bb.50:                              ##   in Loop: Header=BB0_44 Depth=1
	cmpl	$1, %ebx
	jle	LBB0_74
## %bb.51:                              ##   in Loop: Header=BB0_44 Depth=1
	movq	%r12, %rdi
	callq	_avio_r8
	leal	-2(%rbx), %ecx
	cmpl	$5, %ecx
	ja	LBB0_75
## %bb.52:                              ##   in Loop: Header=BB0_44 Depth=1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_53:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	%r12, %rdi
	callq	_avio_r8
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_62
LBB0_54:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	%r12, %rdi
	callq	_avio_rl24
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_62
LBB0_55:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_avio_skip
	jmp	LBB0_62
LBB0_56:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	%r12, %rdi
	callq	_avio_rl16
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_62
LBB0_57:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	%r12, %rdi
	callq	_avio_rl24
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_62
LBB0_58:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	%r12, %rdi
	callq	_avio_rl32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_62
LBB0_59:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_avio_skip
	movq	%r12, %rdi
	callq	_avio_r8
	movl	%eax, %ebx
	andl	$15, %ebx
	shll	$8, %ebx
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	incl	%ebx
	movq	%r12, %rdi
	callq	_avio_rl24
	jmp	LBB0_61
LBB0_60:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_avio_skip
	movq	%r12, %rdi
	callq	_avio_r8
	movl	%eax, %ebx
	andl	$15, %ebx
	shll	$8, %ebx
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	incl	%ebx
	movq	%r12, %rdi
	callq	_avio_rl32
LBB0_61:                                ##   in Loop: Header=BB0_44 Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
LBB0_62:                                ##   in Loop: Header=BB0_44 Depth=1
	testb	$64, -56(%rbp)                  ## 1-byte Folded Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_43
## %bb.63:                              ##   in Loop: Header=BB0_44 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_avio_skip
	jmp	LBB0_43
LBB0_64:
	cmpl	$-1, %r10d
	je	LBB0_10
## %bb.65:
	cmpl	%eax, %r10d
	je	LBB0_10
## %bb.66:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.9(%rip), %rdx
	movq	%r14, %rdi
	movl	%r10d, %ecx
	movl	%eax, %r8d
LBB0_67:
	xorl	%eax, %eax
	callq	_av_log
LBB0_68:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_69:
	cmpl	$-1, -52(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_72
## %bb.70:
	subq	48(%r13), %rbx
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_avio_seek
	movl	-52(%rbp), %r10d                ## 4-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_26
LBB0_71:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_73
LBB0_72:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
LBB0_73:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_68
LBB0_74:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_73
LBB0_75:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_68
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_53, LBB0_53-LJTI0_0
.set L0_0_set_56, LBB0_56-LJTI0_0
.set L0_0_set_57, LBB0_57-LJTI0_0
.set L0_0_set_58, LBB0_58-LJTI0_0
.set L0_0_set_59, LBB0_59-LJTI0_0
.set L0_0_set_60, LBB0_60-LJTI0_0
LJTI0_0:
	.long	L0_0_set_53
	.long	L0_0_set_56
	.long	L0_0_set_57
	.long	L0_0_set_58
	.long	L0_0_set_59
	.long	L0_0_set_60
	.end_data_region
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_WV_HEADER_SIZE,4,2             ## @WV_HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid block header.\n"

	.comm	_WV_DSD,4,2                     ## @WV_DSD
L_.str.1:                               ## @.str.1
	.asciz	"WV DSD"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
L_.str.2:                               ## @.str.2
	.asciz	"WV version 0x%03X"

	.comm	_WV_MONO,4,2                    ## @WV_MONO
	.comm	_AV_CH_LAYOUT_MONO,4,2          ## @AV_CH_LAYOUT_MONO
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ## @AV_CH_LAYOUT_STEREO
	.comm	_wv_rates,8,3                   ## @wv_rates
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ## @AVIO_SEEKABLE_NORMAL
L_.str.3:                               ## @.str.3
	.asciz	"Cannot determine additional parameters\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.4:                               ## @.str.4
	.asciz	"Insufficient channel information\n"

L_.str.5:                               ## @.str.5
	.asciz	"Invalid channel info size %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Cannot determine custom sampling rate\n"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.7:                               ## @.str.7
	.asciz	"Bits per sample differ, this block: %i, header block: %i\n"

L_.str.8:                               ## @.str.8
	.asciz	"Channels differ, this block: %i, header block: %i\n"

L_.str.9:                               ## @.str.9
	.asciz	"Sampling rate differ, this block: %i, header block: %i\n"

	.no_dead_strip	_wv_read_block_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wv_read_block_header
_wv_read_block_header:                  ; @wv_read_block_header
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x26, [x0]
	mov	x0, x1
	bl	_avio_tell
	str	x0, [x26]
	ldr	x8, [x26, #8]
	cmp	x8, #0
	ccmp	x0, x8, #8, ne
	b.ge	LBB0_5
; %bb.1:
	ldr	w1, [x26, #84]
Lloh0:
	adrp	x20, _WV_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _WV_HEADER_SIZE@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x21
	bl	_avio_read
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.2:
	add	x20, x26, #40
	ldr	w1, [x26, #84]
	mov	x0, x20
	bl	_ff_wv_parse_header
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w27, [x20]
Lloh2:
	adrp	x8, _WV_DSD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WV_DSD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w27
	b.eq	LBB0_8
; %bb.4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_5:
Lloh7:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
Lloh9:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w22, w0, w8, lt
	b	LBB0_12
LBB0_7:
	mov	x22, x0
Lloh12:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_12
LBB0_8:
	ldr	w8, [x26, #44]
	sub	w9, w8, #1041
	cmn	w9, #16
	b.hi	LBB0_13
; %bb.9:
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_avpriv_report_missing_feature
Lloh19:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
LBB0_11:
	ldr	w22, [x8]
LBB0_12:
	mov	x0, x22
	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_13:
	ldr	w8, [x26, #72]
	cbz	w8, LBB0_33
; %bb.14:
Lloh21:
	adrp	x8, _wv_rates@GOTPAGE
Lloh22:
	ldr	x8, [x8, _wv_rates@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ubfx	x9, x27, #23, #4
	ldr	w20, [x8, x9, lsl #2]
	ldr	x8, [x26, #64]
	cbz	x8, LBB0_16
; %bb.15:
Lloh24:
	adrp	x8, _WV_MONO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WV_MONO@GOTPAGEOFF]
Lloh26:
	adrp	x9, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
Lloh28:
	adrp	x10, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh29:
	ldr	x10, [x10, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w27
	csel	x8, x9, x10, eq
	ldr	w23, [x8]
	mov	w8, #1
	cinc	w22, w8, eq
	ldr	x8, [x26, #56]
	cmp	x8, #0
	cset	w9, eq
	mov	x28, x26
	str	w9, [x28, #16]!
	cbnz	x8, LBB0_18
	b	LBB0_17
LBB0_16:
	mov	w8, #1
	mov	x28, x26
	str	w8, [x28, #16]!
LBB0_17:
	ldp	w22, w23, [x26, #20]
LBB0_18:
	cmn	w20, #1
	ccmp	w22, #0, #4, ne
	b.ne	LBB0_20
; %bb.19:
	ldr	w8, [x26, #80]
	cbz	w8, LBB0_35
LBB0_20:
	ubfiz	w8, w27, #3, #2
	add	w8, w8, #8
	ldr	w9, [x26, #28]
	cbz	w9, LBB0_29
; %bb.21:
	ldr	w10, [x26, #20]
	cbz	w10, LBB0_30
LBB0_22:
	ldr	w11, [x26, #24]
	cbz	w11, LBB0_31
LBB0_23:
	ldr	w11, [x26, #32]
	cbz	w11, LBB0_32
LBB0_24:
	cbz	w27, LBB0_33
LBB0_25:
	cmp	w8, w9
	b.ne	LBB0_34
; %bb.26:
	ldr	w8, [x28]
	cbnz	w8, LBB0_60
; %bb.27:
	cmp	w22, w10
	b.eq	LBB0_60
; %bb.28:
Lloh31:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	stp	x22, x10, [sp]
Lloh34:
	adrp	x2, l_.str.8@PAGE
Lloh35:
	add	x2, x2, l_.str.8@PAGEOFF
	b	LBB0_65
LBB0_29:
	str	w8, [x26, #28]
	mov	x9, x8
	ldr	w10, [x26, #20]
	cbnz	w10, LBB0_22
LBB0_30:
	str	w22, [x26, #20]
	mov	x10, x22
	ldr	w11, [x26, #24]
	cbnz	w11, LBB0_23
LBB0_31:
	str	w23, [x26, #24]
	ldr	w11, [x26, #32]
	cbnz	w11, LBB0_24
LBB0_32:
	str	w20, [x26, #32]
	mov	x11, x20
	cbnz	w27, LBB0_25
LBB0_33:
	mov	w22, #0
	b	LBB0_12
LBB0_34:
Lloh36:
	adrp	x10, _AV_LOG_ERROR@GOTPAGE
Lloh37:
	ldr	x10, [x10, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x10]
	stp	x8, x9, [sp]
Lloh39:
	adrp	x2, l_.str.7@PAGE
Lloh40:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_65
LBB0_35:
	mov	x0, x21
	bl	_avio_tell
	ldr	w8, [x21]
Lloh41:
	adrp	x9, _AVIO_SEEKABLE_NORMAL@GOTPAGE
Lloh42:
	ldr	x9, [x9, _AVIO_SEEKABLE_NORMAL@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_63
; %bb.36:
	ldr	x8, [x26, #48]
	add	x24, x8, x0
	mov	x0, x21
	bl	_avio_tell
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	cmp	x0, x24
	b.lt	LBB0_40
LBB0_37:
	cmn	w20, #1
	b.eq	LBB0_64
; %bb.38:
	ldr	x8, [x26, #48]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	sub	x1, x9, x8
Lloh44:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_avio_seek
	b	LBB0_20
LBB0_39:                                ;   in Loop: Header=BB0_40 Depth=1
	mov	x0, x21
	bl	_avio_tell
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x0, x8
	b.ge	LBB0_37
LBB0_40:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_avio_feof
	cbnz	w0, LBB0_37
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=1
	mov	x0, x21
	bl	_avio_r8
	mov	x24, x0
	tbnz	w0, #7, LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_40 Depth=1
	mov	x0, x21
	bl	_avio_r8
	b	LBB0_44
LBB0_43:                                ;   in Loop: Header=BB0_40 Depth=1
	mov	x0, x21
	bl	_avio_rl24
LBB0_44:                                ;   in Loop: Header=BB0_40 Depth=1
	and	w8, w24, #0x3f
	cmp	w8, #39
	b.eq	LBB0_50
; %bb.45:                               ;   in Loop: Header=BB0_40 Depth=1
	lsl	w9, w0, #1
	and	w10, w24, #0x40
	sub	w25, w9, w10, lsr #6
	cmp	w8, #13
	b.ne	LBB0_51
; %bb.46:                               ;   in Loop: Header=BB0_40 Depth=1
	cmp	w25, #1
	b.le	LBB0_66
; %bb.47:                               ;   in Loop: Header=BB0_40 Depth=1
	mov	x0, x21
	bl	_avio_r8
	sub	w8, w25, #2
	cmp	w8, #5
	b.hi	LBB0_67
; %bb.48:                               ;   in Loop: Header=BB0_40 Depth=1
	mov	x22, x0
Lloh47:
	adrp	x11, lJTI0_0@PAGE
Lloh48:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_49
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_49:                                ;   in Loop: Header=BB0_40 Depth=1
	mov	x0, x21
	bl	_avio_r8
	b	LBB0_57
LBB0_50:                                ;   in Loop: Header=BB0_40 Depth=1
	mov	x0, x21
	bl	_avio_rl24
	mov	x20, x0
	b	LBB0_58
LBB0_51:                                ;   in Loop: Header=BB0_40 Depth=1
	mov	x0, x21
	mov	x1, x25
	bl	_avio_skip
	b	LBB0_58
LBB0_52:                                ;   in Loop: Header=BB0_40 Depth=1
	mov	x0, x21
	bl	_avio_rl16
	b	LBB0_57
LBB0_53:                                ;   in Loop: Header=BB0_40 Depth=1
	mov	x0, x21
	mov	w1, #1
	bl	_avio_skip
	mov	x0, x21
	bl	_avio_r8
	ubfiz	w8, w0, #8, #4
	orr	w8, w8, w22
	add	w22, w8, #1
LBB0_54:                                ;   in Loop: Header=BB0_40 Depth=1
	mov	x0, x21
	bl	_avio_rl24
	b	LBB0_57
LBB0_55:                                ;   in Loop: Header=BB0_40 Depth=1
	mov	x0, x21
	mov	w1, #1
	bl	_avio_skip
	mov	x0, x21
	bl	_avio_r8
	ubfiz	w8, w0, #8, #4
	orr	w8, w8, w22
	add	w22, w8, #1
LBB0_56:                                ;   in Loop: Header=BB0_40 Depth=1
	mov	x0, x21
	bl	_avio_rl32
LBB0_57:                                ;   in Loop: Header=BB0_40 Depth=1
	mov	x23, x0
LBB0_58:                                ;   in Loop: Header=BB0_40 Depth=1
	tbz	w24, #6, LBB0_39
; %bb.59:                               ;   in Loop: Header=BB0_40 Depth=1
	mov	x0, x21
	mov	w1, #1
	bl	_avio_skip
	b	LBB0_39
LBB0_60:
	mov	w22, #0
	cmn	w20, #1
	b.eq	LBB0_12
; %bb.61:
	cmp	w20, w11
	b.eq	LBB0_12
; %bb.62:
Lloh49:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh50:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	stp	x20, x11, [sp]
Lloh52:
	adrp	x2, l_.str.9@PAGE
Lloh53:
	add	x2, x2, l_.str.9@PAGEOFF
	b	LBB0_65
LBB0_63:
Lloh54:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh55:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	adrp	x2, l_.str.3@PAGE
Lloh58:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_65
LBB0_64:
Lloh59:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh60:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
Lloh62:
	adrp	x2, l_.str.6@PAGE
Lloh63:
	add	x2, x2, l_.str.6@PAGEOFF
LBB0_65:
	mov	x0, x19
	bl	_av_log
Lloh64:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh65:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_11
LBB0_66:
Lloh66:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh67:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
Lloh69:
	adrp	x2, l_.str.4@PAGE
Lloh70:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_65
LBB0_67:
Lloh71:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh72:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	str	x25, [sp]
Lloh74:
	adrp	x2, l_.str.5@PAGE
Lloh75:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_65
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_49-LBB0_49)>>2
	.byte	(LBB0_52-LBB0_49)>>2
	.byte	(LBB0_54-LBB0_49)>>2
	.byte	(LBB0_56-LBB0_49)>>2
	.byte	(LBB0_53-LBB0_49)>>2
	.byte	(LBB0_55-LBB0_49)>>2
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_WV_HEADER_SIZE,4,2             ; @WV_HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid block header.\n"

	.comm	_WV_DSD,4,2                     ; @WV_DSD
l_.str.1:                               ; @.str.1
	.asciz	"WV DSD"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
l_.str.2:                               ; @.str.2
	.asciz	"WV version 0x%03X"

	.comm	_WV_MONO,4,2                    ; @WV_MONO
	.comm	_AV_CH_LAYOUT_MONO,4,2          ; @AV_CH_LAYOUT_MONO
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ; @AV_CH_LAYOUT_STEREO
	.comm	_wv_rates,8,3                   ; @wv_rates
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ; @AVIO_SEEKABLE_NORMAL
l_.str.3:                               ; @.str.3
	.asciz	"Cannot determine additional parameters\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.4:                               ; @.str.4
	.asciz	"Insufficient channel information\n"

l_.str.5:                               ; @.str.5
	.asciz	"Invalid channel info size %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Cannot determine custom sampling rate\n"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.7:                               ; @.str.7
	.asciz	"Bits per sample differ, this block: %i, header block: %i\n"

l_.str.8:                               ; @.str.8
	.asciz	"Channels differ, this block: %i, header block: %i\n"

l_.str.9:                               ; @.str.9
	.asciz	"Sampling rate differ, this block: %i, header block: %i\n"

	.no_dead_strip	_wv_read_block_header
.subsections_via_symbols
