	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wv_read_header
_wv_read_header:                        ## @wv_read_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	16(%rdi), %r12
	movq	$0, 32(%r12)
	movq	%r15, %rsi
	callq	_wv_read_block_header
	testl	%eax, %eax
	js	LBB0_4
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 12(%r12)
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r12), %esi
	movq	%r15, %rdi
	callq	_avio_skip
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wv_read_block_header
	testl	%eax, %eax
	jns	LBB0_1
LBB0_4:
	movl	%eax, %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	%rax, %rbx
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rdx
	movl	%eax, 20(%rdx)
	movq	_AV_CODEC_ID_WAVPACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdx)
	movl	16(%r12), %ecx
	movdqu	16(%r12), %xmm0
	pshufd	$225, %xmm0, %xmm0              ## xmm0 = xmm0[1,0,2,3]
	movdqu	%xmm0, (%rdx)
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	movq	$0, 8(%rbx)
	movl	4(%r12), %eax
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, (%rbx)
LBB0_8:
	movq	(%r14), %rdi
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_13
## %bb.9:
	callq	_avio_tell
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_ff_ape_parse_tag
	movl	%eax, (%r12)
	movl	8(%r14), %edi
	movq	_AV_DICT_IGNORE_SUFFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_av_dict_get
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_ff_id3v1_read
LBB0_11:
	movq	(%r14), %rdi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	callq	_avio_seek
	jmp	LBB0_14
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_WAVPACK,4,2        ## @AV_CODEC_ID_WAVPACK
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ## @AVIO_SEEKABLE_NORMAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ## @AV_DICT_IGNORE_SUFFIX
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_wv_read_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_header
_wv_read_header:                        ; @wv_read_header
	.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
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x21, [x0, #16]
	str	xzr, [x21, #32]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x20
	bl	_wv_read_block_header
	tbnz	w0, #31, LBB0_12
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x21, #12]
	cbnz	w8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x21, #8]
	mov	x0, x20
	bl	_avio_skip
	mov	x0, x19
	b	LBB0_1
LBB0_4:
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_13
; %bb.5:
	mov	x20, x0
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AV_CODEC_ID_WAVPACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_ID_WAVPACK@GOTPAGEOFF]
	ldr	x10, [x0, #16]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x10, #16]
	ldr	q0, [x21, #16]
	mov.16b	v1, v0
	mov.s	v1[0], v0[1]
	mov.s	v1[1], v0[0]
	str	q1, [x10]
	fmov	w3, s0
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	str	xzr, [x20, #8]
	ldr	w8, [x21, #4]
	cmn	w8, #1
	b.eq	LBB0_7
; %bb.6:
	str	w8, [x20]
LBB0_7:
	ldr	x0, [x19]
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _AVIO_SEEKABLE_NORMAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AVIO_SEEKABLE_NORMAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.8:
	bl	_avio_tell
	mov	x20, x0
	mov	x0, x19
	bl	_ff_ape_parse_tag
	str	w0, [x21]
	ldr	w0, [x19, #8]
Lloh9:
	adrp	x8, _AV_DICT_IGNORE_SUFFIX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_DICT_IGNORE_SUFFIX@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_av_dict_get
	cbnz	w0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_ff_id3v1_read
LBB0_10:
	ldr	x0, [x19]
Lloh14:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_avio_seek
LBB0_11:
	mov	w0, #0
LBB0_12:
	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_13:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_WAVPACK,4,2        ; @AV_CODEC_ID_WAVPACK
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ; @AVIO_SEEKABLE_NORMAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_AV_DICT_IGNORE_SUFFIX,4,2      ; @AV_DICT_IGNORE_SUFFIX
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_wv_read_header
.subsections_via_symbols
