	.file	"extr_cbs_vp9.c_cbs_vp9_read_le.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Invalid le value at %s: bitstream ended.\n"
	.text
	.p2align 4
	.type	cbs_vp9_read_le, @function
cbs_vp9_read_le:
.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
	mov	r13, rdi
	xor	edi, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 8[rsp], rcx
	mov	QWORD PTR 16[rsp], r8
	mov	QWORD PTR [rsp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	and	edx, 7
	sete	dil
	call	av_assert0@PLT
	cmp	QWORD PTR 0[r13], 0
	jne	.L20
	mov	rdi, rbx
	call	get_bits_left@PLT
	cmp	eax, r12d
	jl	.L3
.L23:
	test	r12d, r12d
	jle	.L21
	lea	eax, -1[r12]
	xor	r15d, r15d
	xor	r14d, r14d
	mov	ebp, eax
	mov	DWORD PTR 24[rsp], eax
	and	ebp, -8
	add	ebp, 8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, 8
	mov	rdi, rbx
	call	get_bits@PLT
	mov	ecx, r15d
	add	r15d, 8
	sal	eax, cl
	or	r14d, eax
	cmp	r15d, ebp
	jne	.L7
	cmp	QWORD PTR 0[r13], 0
	je	.L8
	lea	r8, 32[rsp]
	lea	rsi, 40[rsp]
	xor	r10d, r10d
	mov	r11, r8
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, r10d
	mov	rdx, r11
	sub	edi, r11d
	.p2align 4,,10
	.p2align 3
.L9:
	lea	ecx, [rdi+rdx]
	mov	eax, r14d
	add	rdx, 1
	sar	eax, cl
	and	eax, 1
	add	eax, 48
	mov	BYTE PTR -1[rdx], al
	cmp	rdx, rsi
	jne	.L9
	add	r10d, 8
	add	r11, 8
	lea	rsi, 8[rdx]
	cmp	r12d, r10d
	jg	.L10
	mov	eax, DWORD PTR 24[rsp]
	shr	eax, 3
	lea	eax, 8[0+rax*8]
.L11:
	mov	rcx, QWORD PTR 16[rsp]
	mov	rdx, QWORD PTR 8[rsp]
	cdqe
	mov	r9d, r14d
	mov	esi, DWORD PTR 28[rsp]
	mov	rdi, r13
	mov	BYTE PTR 32[rsp+rax], 0
	call	ff_cbs_trace_syntax_element@PLT
.L8:
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR [rax], r14d
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 72[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 88
	.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
.L20:
	.cfi_restore_state
	mov	rdi, rbx
	call	get_bits_count@PLT
	mov	rdi, rbx
	mov	DWORD PTR 28[rsp], eax
	call	get_bits_left@PLT
	cmp	eax, r12d
	jge	.L23
.L3:
	mov	edi, DWORD PTR 8[r13]
	mov	rcx, QWORD PTR 8[rsp]
	lea	rdx, .LC0[rip]
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	call	av_log@PLT
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
	jmp	.L1
.L21:
	xor	r14d, r14d
	cmp	QWORD PTR 0[r13], 0
	je	.L8
	xor	eax, eax
	lea	r8, 32[rsp]
	jmp	.L11
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cbs_vp9_read_le, .-cbs_vp9_read_le
	.comm	AV_LOG_ERROR,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_cbs_vp9.c_cbs_vp9_read_le.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid le value at %s: bitstream ended.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cbs_vp9_read_le, %function
cbs_vp9_read_le:
	@ args = 8, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	mov	r10, r3
	ldr	r3, .L30
	sub	sp, sp, #68
	tst	r2, #7
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	ldr	r3, [sp, #104]
	moveq	r0, #1
	movne	r0, #0
	str	r3, [sp, #12]
	mov	r7, r2
	mov	r5, r1
	ldr	fp, [sp, #108]
	bl	av_assert0
	ldr	r3, [r8]
	cmp	r3, #0
	bne	.L26
	mov	r0, r5
	bl	get_bits_left
	cmp	r0, r7
	blt	.L3
.L29:
	cmp	r7, #0
	ble	.L27
	mov	r9, #0
	mov	r4, r9
	sub	r3, r7, #1
	bic	r6, r3, #7
	str	r3, [sp, #16]
	add	r6, r6, #8
.L7:
	mov	r1, #8
	mov	r0, r5
	bl	get_bits
	orr	r4, r4, r0, lsl r9
	add	r9, r9, #8
	cmp	r9, r6
	bne	.L7
	ldr	r3, [r8]
	cmp	r3, #0
	beq	.L8
	mov	r0, #8
	mov	ip, #0
.L10:
	mov	r2, ip
	add	r3, sp, #23
	add	r1, r3, ip
.L9:
	asr	r3, r4, r2
	and	r3, r3, #1
	add	r2, r2, #1
	add	r3, r3, #48
	cmp	r2, r0
	strb	r3, [r1, #1]!
	bne	.L9
	add	ip, ip, #8
	cmp	r7, ip
	add	r0, r2, #8
	bgt	.L10
	ldr	r3, [sp, #16]
	bic	ip, r3, #7
	add	ip, ip, #8
.L11:
	mov	lr, #0
	add	r3, sp, #64
	add	ip, r3, ip
	add	r5, sp, #24
	str	r4, [sp, #4]
	str	r5, [sp]
	mov	r2, r10
	mov	r0, r8
	ldr	r3, [sp, #12]
	ldr	r1, [sp, #20]
	strb	lr, [ip, #-40]
	bl	ff_cbs_trace_syntax_element
.L8:
	mov	r0, #0
	str	r4, [fp]
.L1:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	mov	r0, r5
	bl	get_bits_count
	str	r0, [sp, #20]
	mov	r0, r5
	bl	get_bits_left
	cmp	r0, r7
	bge	.L29
.L3:
	ldr	r2, .L30+4
	mov	r3, r10
	ldr	r1, [r2]
	ldr	r0, [r8, #4]
	ldr	r2, .L30+8
	bl	av_log
	ldr	r3, .L30+12
	ldr	r0, [r3]
	b	.L1
.L27:
	ldr	r4, [r8]
	cmp	r4, #0
	movne	r4, #0
	movne	ip, r4
	bne	.L11
	b	.L8
.L28:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	.LC1
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	AVERROR_INVALIDDATA
	.size	cbs_vp9_read_le, .-cbs_vp9_read_le
	.comm	AV_LOG_ERROR,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
