	.file	"extr_tak.c_ff_tak_parse_streaminfo.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ff_tak_parse_streaminfo
	.type	ff_tak_parse_streaminfo, @function
ff_tak_parse_streaminfo:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	mov	rbx, rsi
	mov	rdi, rbx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR TAK_ENCODER_CODEC_BITS[rip]
	call	get_bits@PLT
	mov	esi, DWORD PTR TAK_ENCODER_PROFILE_BITS[rip]
	mov	rdi, rbx
	mov	QWORD PTR 48[rbp], rax
	call	skip_bits@PLT
	mov	esi, DWORD PTR TAK_SIZE_FRAME_DURATION_BITS[rip]
	mov	rdi, rbx
	call	get_bits@PLT
	mov	esi, DWORD PTR TAK_SIZE_SAMPLES_NUM_BITS[rip]
	mov	rdi, rbx
	mov	r13, rax
	call	get_bits64@PLT
	mov	esi, DWORD PTR TAK_FORMAT_DATA_TYPE_BITS[rip]
	mov	rdi, rbx
	mov	DWORD PTR 40[rbp], eax
	call	get_bits@PLT
	mov	esi, DWORD PTR TAK_FORMAT_SAMPLE_RATE_BITS[rip]
	mov	rdi, rbx
	mov	QWORD PTR 32[rbp], rax
	call	get_bits@PLT
	add	rax, QWORD PTR TAK_SAMPLE_RATE_MIN[rip]
	mov	esi, DWORD PTR TAK_FORMAT_BPS_BITS[rip]
	mov	rdi, rbx
	mov	QWORD PTR 8[rbp], rax
	call	get_bits@PLT
	add	rax, QWORD PTR TAK_BPS_MIN[rip]
	mov	esi, DWORD PTR TAK_FORMAT_CHANNEL_BITS[rip]
	mov	rdi, rbx
	mov	QWORD PTR 24[rbp], rax
	call	get_bits@PLT
	movsx	rdx, DWORD PTR TAK_CHANNELS_MIN[rip]
	mov	rdi, rbx
	add	rax, rdx
	mov	DWORD PTR 0[rbp], eax
	call	get_bits1@PLT
	test	rax, rax
	jne	.L15
.L2:
	xor	r15d, r15d
.L5:
	mov	DWORD PTR 20[rbp], r15d
	mov	rdi, QWORD PTR 8[rbp]
	mov	esi, r13d
	call	tak_get_nb_samples@PLT
	mov	DWORD PTR 16[rbp], eax
	add	rsp, 8
	.cfi_remember_state
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR TAK_FORMAT_VALID_BITS[rip]
	mov	rdi, rbx
	call	skip_bits@PLT
	mov	rdi, rbx
	call	get_bits1@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jle	.L2
	xor	r14d, r14d
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR TAK_FORMAT_CH_LAYOUT_BITS[rip]
	mov	rdi, rbx
	call	get_bits@PLT
	mov	rdi, QWORD PTR tak_channel_layouts[rip]
	mov	r12, rax
	call	FF_ARRAY_ELEMS@PLT
	cmp	eax, r12d
	jle	.L3
	mov	rax, QWORD PTR tak_channel_layouts[rip]
	movsx	r12, r12d
	or	r15d, DWORD PTR [rax+r12*4]
.L3:
	add	r14d, 1
	cmp	DWORD PTR 0[rbp], r14d
	jg	.L4
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ff_tak_parse_streaminfo, .-ff_tak_parse_streaminfo
	.comm	tak_channel_layouts,8,8
	.comm	TAK_SIZE_SAMPLES_NUM_BITS,4,4
	.comm	TAK_SIZE_FRAME_DURATION_BITS,4,4
	.comm	TAK_SAMPLE_RATE_MIN,8,8
	.comm	TAK_FORMAT_VALID_BITS,4,4
	.comm	TAK_FORMAT_SAMPLE_RATE_BITS,4,4
	.comm	TAK_FORMAT_DATA_TYPE_BITS,4,4
	.comm	TAK_FORMAT_CH_LAYOUT_BITS,4,4
	.comm	TAK_FORMAT_CHANNEL_BITS,4,4
	.comm	TAK_FORMAT_BPS_BITS,4,4
	.comm	TAK_ENCODER_PROFILE_BITS,4,4
	.comm	TAK_ENCODER_CODEC_BITS,4,4
	.comm	TAK_CHANNELS_MIN,4,4
	.comm	TAK_BPS_MIN,8,8
	.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_tak.c_ff_tak_parse_streaminfo.c"
	.text
	.align	2
	.global	ff_tak_parse_streaminfo
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_tak_parse_streaminfo, %function
ff_tak_parse_streaminfo:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L16
	mov	r4, r1
	mov	r5, r0
	mov	r0, r1
	ldr	r1, [r3]
	bl	get_bits
	ldr	r3, .L16+4
	str	r0, [r5, #28]
	ldr	r1, [r3]
	mov	r0, r4
	bl	skip_bits
	ldr	r3, .L16+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	get_bits
	ldr	r3, .L16+12
	mov	r8, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	get_bits64
	ldr	r3, .L16+16
	str	r0, [r5, #24]
	ldr	r1, [r3]
	mov	r0, r4
	bl	get_bits
	ldr	r3, .L16+20
	str	r0, [r5, #20]
	ldr	r1, [r3]
	mov	r0, r4
	bl	get_bits
	ldr	r3, .L16+24
	ldr	r2, .L16+28
	ldr	r3, [r3]
	ldr	r1, [r2]
	add	r0, r0, r3
	str	r0, [r5, #4]
	mov	r0, r4
	bl	get_bits
	ldr	r3, .L16+32
	ldr	r2, .L16+36
	ldr	r3, [r3]
	ldr	r1, [r2]
	add	r0, r0, r3
	str	r0, [r5, #16]
	mov	r0, r4
	bl	get_bits
	mov	r3, r0
	ldr	r2, .L16+40
	mov	r0, r4
	ldr	r2, [r2]
	add	r3, r3, r2
	str	r3, [r5]
	bl	get_bits1
	cmp	r0, #0
	bne	.L15
.L2:
	mov	fp, #0
.L5:
	mov	r1, r8
	ldr	r0, [r5, #4]
	str	fp, [r5, #12]
	bl	tak_get_nb_samples
	str	r0, [r5, #8]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r3, .L16+44
	mov	r0, r4
	ldr	r1, [r3]
	bl	skip_bits
	mov	r0, r4
	bl	get_bits1
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L2
	mov	r7, #0
	mov	fp, r7
	ldr	r10, .L16+48
	ldr	r9, .L16+52
.L4:
	ldr	r1, [r10]
	mov	r0, r4
	bl	get_bits
	mov	r6, r0
	ldr	r0, [r9]
	bl	FF_ARRAY_ELEMS
	cmp	r6, r0
	ldrlt	r3, [r9]
	add	r7, r7, #1
	ldrlt	r3, [r3, r6, lsl #2]
	orrlt	fp, fp, r3
	ldr	r3, [r5]
	cmp	r3, r7
	bgt	.L4
	b	.L5
.L17:
	.align	2
.L16:
	.word	TAK_ENCODER_CODEC_BITS
	.word	TAK_ENCODER_PROFILE_BITS
	.word	TAK_SIZE_FRAME_DURATION_BITS
	.word	TAK_SIZE_SAMPLES_NUM_BITS
	.word	TAK_FORMAT_DATA_TYPE_BITS
	.word	TAK_FORMAT_SAMPLE_RATE_BITS
	.word	TAK_SAMPLE_RATE_MIN
	.word	TAK_FORMAT_BPS_BITS
	.word	TAK_BPS_MIN
	.word	TAK_FORMAT_CHANNEL_BITS
	.word	TAK_CHANNELS_MIN
	.word	TAK_FORMAT_VALID_BITS
	.word	TAK_FORMAT_CH_LAYOUT_BITS
	.word	tak_channel_layouts
	.size	ff_tak_parse_streaminfo, .-ff_tak_parse_streaminfo
	.comm	tak_channel_layouts,4,4
	.comm	TAK_SIZE_SAMPLES_NUM_BITS,4,4
	.comm	TAK_SIZE_FRAME_DURATION_BITS,4,4
	.comm	TAK_SAMPLE_RATE_MIN,4,4
	.comm	TAK_FORMAT_VALID_BITS,4,4
	.comm	TAK_FORMAT_SAMPLE_RATE_BITS,4,4
	.comm	TAK_FORMAT_DATA_TYPE_BITS,4,4
	.comm	TAK_FORMAT_CH_LAYOUT_BITS,4,4
	.comm	TAK_FORMAT_CHANNEL_BITS,4,4
	.comm	TAK_FORMAT_BPS_BITS,4,4
	.comm	TAK_ENCODER_PROFILE_BITS,4,4
	.comm	TAK_ENCODER_CODEC_BITS,4,4
	.comm	TAK_CHANNELS_MIN,4,4
	.comm	TAK_BPS_MIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
