	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_wv_parse_header             ## -- Begin function ff_wv_parse_header
	.p2align	4, 0x90
_ff_wv_parse_header:                    ## @ff_wv_parse_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	%r15, %rdi
	callq	_AV_RL32
	movq	%rax, %rbx
	movl	$119, %edi
	movl	$118, %esi
	movl	$112, %edx
	movl	$107, %ecx
	callq	_MKTAG
	cmpq	%rax, %rbx
	jne	LBB0_1
## %bb.2:
	leaq	16(%r15), %rdi
	callq	_AV_RL32
	movl	%eax, (%r14)
	cmpl	$24, %eax
	jl	LBB0_1
## %bb.3:
	movq	_WV_BLOCK_LIMIT@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jl	LBB0_1
## %bb.4:
	addl	$-24, %eax
	movl	%eax, (%r14)
	leaq	32(%r15), %rdi
	callq	_AV_RL16
	movl	%eax, 48(%r14)
	leaq	48(%r15), %rdi
	callq	_AV_RL32
	movq	%rax, 40(%r14)
	leaq	64(%r15), %rdi
	callq	_AV_RL32
	movq	%rax, 32(%r14)
	leaq	80(%r15), %rdi
	callq	_AV_RL32
	movq	%rax, 24(%r14)
	leaq	96(%r15), %rdi
	callq	_AV_RL32
	movl	%eax, 4(%r14)
	addq	$112, %r15
	movq	%r15, %rdi
	callq	_AV_RL32
	movq	%rax, 16(%r14)
	movl	4(%r14), %eax
	movq	_WV_FLAG_INITIAL_BLOCK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, 8(%r14)
	movq	_WV_FLAG_FINAL_BLOCK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 12(%r14)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_WV_BLOCK_LIMIT,4,2             ## @WV_BLOCK_LIMIT
	.comm	_WV_FLAG_INITIAL_BLOCK,4,2      ## @WV_FLAG_INITIAL_BLOCK
	.comm	_WV_FLAG_FINAL_BLOCK,4,2        ## @WV_FLAG_FINAL_BLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_wv_parse_header             ; -- Begin function ff_wv_parse_header
	.p2align	2
_ff_wv_parse_header:                    ; @ff_wv_parse_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	x20, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	mov	x0, x20
	bl	_AV_RL32
	mov	x21, x0
	mov	w0, #119
	mov	w1, #118
	mov	w2, #112
	mov	w3, #107
	bl	_MKTAG
	cmp	x21, x0
	b.ne	LBB0_4
; %bb.1:
	add	x0, x20, #16
	bl	_AV_RL32
	str	w0, [x19]
	subs	w8, w0, #24
	b.lt	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _WV_BLOCK_LIMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WV_BLOCK_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w0
	b.lt	LBB0_4
; %bb.3:
	str	w8, [x19]
	add	x0, x20, #32
	bl	_AV_RL16
	str	w0, [x19, #48]
	add	x0, x20, #48
	bl	_AV_RL32
	str	x0, [x19, #40]
	add	x0, x20, #64
	bl	_AV_RL32
	str	x0, [x19, #32]
	add	x0, x20, #80
	bl	_AV_RL32
	str	x0, [x19, #24]
	add	x0, x20, #96
	bl	_AV_RL32
	str	w0, [x19, #4]
	add	x0, x20, #112
	bl	_AV_RL32
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #16]
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _WV_FLAG_INITIAL_BLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WV_FLAG_INITIAL_BLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
Lloh6:
	adrp	x9, _WV_FLAG_FINAL_BLOCK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WV_FLAG_FINAL_BLOCK@GOTPAGEOFF]
	cset	w10, ne
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	stp	w10, w8, [x19, #8]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_WV_BLOCK_LIMIT,4,2             ; @WV_BLOCK_LIMIT
	.comm	_WV_FLAG_INITIAL_BLOCK,4,2      ; @WV_FLAG_INITIAL_BLOCK
	.comm	_WV_FLAG_FINAL_BLOCK,4,2        ; @WV_FLAG_FINAL_BLOCK
.subsections_via_symbols
