	.file	"extr_wvedec.c_wve_read_header.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wve_read_header, @function
wve_read_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	avformat_new_stream@PLT
	test	rax, rax
	je	.L5
	mov	edi, DWORD PTR [rbx]
	mov	esi, 18
	mov	rbp, rax
	call	avio_skip@PLT
	mov	edi, DWORD PTR [rbx]
	call	avio_rb32@PLT
	mov	r12, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR AV_CODEC_ID_PCM_ALAW[rip]
	mov	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR AVMEDIA_TYPE_AUDIO[rip]
	mov	DWORD PTR 16[r12], edi
	mov	DWORD PTR 20[r12], eax
	movabs	rax, 4294975296
	mov	QWORD PTR [r12], rax
	call	av_get_bits_per_sample@PLT
	mov	rcx, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	esi, 64
	mov	DWORD PTR 8[r12], eax
	mov	eax, DWORD PTR 8[rcx]
	imul	eax, DWORD PTR 4[rcx]
	mov	edx, eax
	lea	eax, 7[rax]
	test	edx, edx
	cmovns	eax, edx
	mov	edx, 1
	sar	eax, 3
	mov	DWORD PTR 12[rcx], eax
	mov	ecx, DWORD PTR [rcx]
	call	avpriv_set_pts_info@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, 10
	call	avio_skip@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	AVERROR@PLT
	.cfi_endproc
.LFE0:
	.size	wve_read_header, .-wve_read_header
	.comm	ENOMEM,4,4
	.comm	AV_CODEC_ID_PCM_ALAW,4,4
	.comm	AVMEDIA_TYPE_AUDIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_wvedec.c_wve_read_header.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wve_read_header, %function
wve_read_header:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	mov	r5, r0
	bl	avformat_new_stream
	subs	r4, r0, #0
	beq	.L5
	mov	r1, #18
	ldr	r0, [r5]
	bl	avio_skip
	ldr	r0, [r5]
	bl	avio_rb32
	mov	r7, #1
	mov	r2, #8000
	ldr	r1, .L6
	ldr	r3, .L6+4
	ldr	r6, [r4]
	ldr	r3, [r3]
	ldr	r1, [r1]
	str	r0, [r4, #4]
	stm	r6, {r2, r7}
	str	r1, [r6, #20]
	str	r3, [r6, #16]
	mov	r0, r3
	bl	av_get_bits_per_sample
	ldr	r1, [r4]
	str	r0, [r6, #8]
	ldmib	r1, {r0, r3}
	mul	r3, r0, r3
	cmp	r3, #0
	add	r0, r3, #7
	movlt	r3, r0
	asr	r3, r3, #3
	mov	r2, r7
	str	r3, [r1, #12]
	mov	r0, r4
	ldr	r3, [r1]
	mov	r1, #64
	bl	avpriv_set_pts_info
	mov	r1, #10
	ldr	r0, [r5]
	bl	avio_skip
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, .L6+8
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r3]
	b	AVERROR
.L7:
	.align	2
.L6:
	.word	AVMEDIA_TYPE_AUDIO
	.word	AV_CODEC_ID_PCM_ALAW
	.word	ENOMEM
	.size	wve_read_header, .-wve_read_header
	.comm	ENOMEM,4,4
	.comm	AV_CODEC_ID_PCM_ALAW,4,4
	.comm	AVMEDIA_TYPE_AUDIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
