	.file	"extr_epafdec.c_epaf_read_header.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"24-bit Paris PCM format"
	.text
	.p2align 4
	.type	epaf_read_header, @function
epaf_read_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	esi, 4
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR [rdi]
	call	avio_skip@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	avio_rl32@PLT
	test	eax, eax
	je	.L2
.L13:
	mov	r12d, DWORD PTR AVERROR_INVALIDDATA[rip]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	mov	r12d, eax
	call	avio_rl32@PLT
	mov	ebx, eax
	cmp	eax, 1
	ja	.L13
	mov	edi, DWORD PTR 0[rbp]
	test	eax, eax
	jne	.L19
	call	avio_rb32@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r15d, eax
	call	avio_rb32@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r14d, eax
	call	avio_rb32@PLT
	mov	r13d, eax
.L6:
	test	r13d, r13d
	jle	.L13
	cmp	DWORD PTR FF_SANE_NB_CHANNELS[rip], r13d
	jl	.L13
	test	r15d, r15d
	jle	.L13
	xor	esi, esi
	mov	rdi, rbp
	call	avformat_new_stream@PLT
	mov	r8, rax
	test	rax, rax
	je	.L20
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR AVMEDIA_TYPE_AUDIO[rip]
	mov	DWORD PTR 4[rdx], r15d
	mov	DWORD PTR 20[rdx], eax
	mov	DWORD PTR [rdx], r13d
	cmp	r14d, 1
	je	.L11
	cmp	r14d, 2
	je	.L12
	test	r14d, r14d
	jne	.L13
	mov	edi, DWORD PTR AV_CODEC_ID_PCM_S16LE[rip]
	test	ebx, ebx
	cmove	edi, DWORD PTR AV_CODEC_ID_PCM_S16BE[rip]
	mov	DWORD PTR 16[rdx], edi
.L16:
	mov	QWORD PTR 8[rsp], r8
	mov	QWORD PTR [rsp], rdx
	call	av_get_bits_per_sample@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR [rsp]
	mov	esi, 64
	mov	rcx, QWORD PTR [r8]
	mov	DWORD PTR 8[rdx], eax
	mov	rdi, r8
	mov	eax, DWORD PTR 8[rcx]
	imul	eax, DWORD PTR [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 4[rcx]
	call	avpriv_set_pts_info@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, 2024
	call	avio_skip@PLT
	test	rax, rax
	cmovs	r12d, DWORD PTR AVERROR_INVALIDDATA[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	call	avio_rl32@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r15d, eax
	call	avio_rl32@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r14d, eax
	call	avio_rl32@PLT
	mov	r13d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR AV_CODEC_ID_PCM_S8[rip]
	mov	DWORD PTR 16[rdx], edi
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	avpriv_request_sample@PLT
	jmp	.L13
.L20:
	mov	edi, DWORD PTR ENOMEM[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	AVERROR@PLT
	.cfi_endproc
.LFE0:
	.size	epaf_read_header, .-epaf_read_header
	.comm	FF_SANE_NB_CHANNELS,4,4
	.comm	ENOMEM,4,4
	.comm	AV_CODEC_ID_PCM_S8,4,4
	.comm	AV_CODEC_ID_PCM_S16LE,4,4
	.comm	AV_CODEC_ID_PCM_S16BE,4,4
	.comm	AVMEDIA_TYPE_AUDIO,4,4
	.comm	AVERROR_INVALIDDATA,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_epafdec.c_epaf_read_header.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"24-bit Paris PCM format\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	epaf_read_header, %function
epaf_read_header:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	mov	r1, #4
	ldr	r0, [r0]
	bl	avio_skip
	ldr	r0, [r4]
	bl	avio_rl32
	subs	r5, r0, #0
	beq	.L2
.L17:
	ldr	r3, .L21
	ldr	r5, [r3]
.L1:
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r0, [r4]
	bl	avio_rl32
	cmp	r0, #1
	mov	r6, r0
	bhi	.L17
	cmp	r0, #0
	ldr	r0, [r4]
	bne	.L19
	bl	avio_rb32
	mov	r8, r0
	ldr	r0, [r4]
	bl	avio_rb32
	mov	r9, r0
	ldr	r0, [r4]
	bl	avio_rb32
	mov	r7, r0
.L6:
	cmp	r7, #0
	ble	.L17
	ldr	r3, .L21+4
	ldr	r1, [r3]
	cmp	r1, r7
	cmpge	r8, #0
	movle	r1, #1
	movgt	r1, #0
	ble	.L17
	mov	r0, r4
	bl	avformat_new_stream
	subs	fp, r0, #0
	beq	.L20
	ldr	r3, .L21+8
	ldr	r10, [fp]
	ldr	r3, [r3]
	cmp	r9, #1
	stm	r10, {r7, r8}
	str	r3, [r10, #20]
	beq	.L10
	cmp	r9, #2
	beq	.L11
	cmp	r9, #0
	bne	.L17
	cmp	r6, #0
	ldrne	r3, .L21+12
	ldreq	r3, .L21+16
	ldr	r0, [r3]
	str	r0, [r10, #16]
.L15:
	bl	av_get_bits_per_sample
	ldr	r2, [fp]
	str	r0, [r10, #8]
	ldr	r1, [r2]
	ldr	r3, [r2, #8]
	mov	r0, fp
	mul	r3, r1, r3
	cmp	r3, #0
	add	r1, r3, #7
	movlt	r3, r1
	asr	r3, r3, #3
	str	r3, [r2, #12]
	mov	r1, #64
	ldr	r3, [r2, #4]
	mov	r2, #1
	bl	avpriv_set_pts_info
	ldr	r0, [r4]
	ldr	r1, .L21+20
	bl	avio_skip
	cmp	r0, #0
	bge	.L1
	b	.L17
.L19:
	bl	avio_rl32
	mov	r8, r0
	ldr	r0, [r4]
	bl	avio_rl32
	mov	r9, r0
	ldr	r0, [r4]
	bl	avio_rl32
	mov	r7, r0
	b	.L6
.L11:
	ldr	r3, .L21+24
	ldr	r0, [r3]
	str	r0, [r10, #16]
	b	.L15
.L10:
	mov	r0, r4
	ldr	r1, .L21+28
	bl	avpriv_request_sample
	b	.L17
.L20:
	ldr	r3, .L21+32
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	AVERROR
.L22:
	.align	2
.L21:
	.word	AVERROR_INVALIDDATA
	.word	FF_SANE_NB_CHANNELS
	.word	AVMEDIA_TYPE_AUDIO
	.word	AV_CODEC_ID_PCM_S16LE
	.word	AV_CODEC_ID_PCM_S16BE
	.word	2024
	.word	AV_CODEC_ID_PCM_S8
	.word	.LC0
	.word	ENOMEM
	.size	epaf_read_header, .-epaf_read_header
	.comm	FF_SANE_NB_CHANNELS,4,4
	.comm	ENOMEM,4,4
	.comm	AV_CODEC_ID_PCM_S8,4,4
	.comm	AV_CODEC_ID_PCM_S16LE,4,4
	.comm	AV_CODEC_ID_PCM_S16BE,4,4
	.comm	AVMEDIA_TYPE_AUDIO,4,4
	.comm	AVERROR_INVALIDDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
