	.file	"extr_rtjpeg.c_get_block.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_block, @function
get_block:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	mov	esi, 8
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	get_bits@PLT
	cmp	eax, 255
	je	.L14
	mov	esi, 6
	mov	rdi, rbp
	mov	r12d, eax
	call	get_bits@PLT
	mov	rdi, rbp
	mov	ebx, eax
	call	get_bits_left@PLT
	mov	r8d, eax
	lea	eax, [rbx+rbx]
	cmp	r8d, eax
	jge	.L3
.L9:
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	xor	esi, esi
	mov	edx, 256
	mov	rdi, r13
	call	memset@PLT
	test	ebx, ebx
	jne	.L6
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	call	PUT_COEFF@PLT
.L6:
	mov	rdi, rbp
	mov	esi, 2
	call	get_sbits@PLT
	mov	edi, eax
	cmp	eax, -2
	jne	.L21
	mov	edi, 4
	call	ALIGN@PLT
	mov	rdi, rbp
	call	get_bits_left@PLT
	mov	r8d, eax
	lea	eax, 0[0+rbx*4]
	cmp	r8d, eax
	jge	.L7
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	call	PUT_COEFF@PLT
.L7:
	mov	rdi, rbp
	mov	esi, 4
	call	get_sbits@PLT
	mov	edi, eax
	cmp	eax, -8
	jne	.L22
	mov	edi, 8
	sal	ebx, 3
	call	ALIGN@PLT
	mov	rdi, rbp
	call	get_bits_left@PLT
	cmp	eax, ebx
	jl	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, rbp
	mov	esi, 8
	call	get_sbits@PLT
	mov	edi, eax
	call	PUT_COEFF@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L14:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	mov	edi, 4
	call	ALIGN@PLT
	mov	rdi, rbp
	call	get_bits_left@PLT
	test	eax, eax
	js	.L9
	mov	edi, 8
	call	ALIGN@PLT
	mov	rdi, rbp
	call	get_bits_left@PLT
	test	eax, eax
	js	.L9
	mov	edi, r12d
	call	PUT_COEFF@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_block, .-get_block
	.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_rtjpeg.c_get_block.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_block, %function
get_block:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r1, #8
	mov	r4, r0
	bl	get_bits
	cmp	r0, #255
	beq	.L14
	mov	r1, #6
	mov	r5, r0
	mov	r0, r4
	bl	get_bits
	mov	r7, r0
	mov	r0, r4
	bl	get_bits_left
	cmp	r0, r7, lsl #1
	bge	.L3
.L9:
	ldr	r3, .L23
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r0, r6
	mov	r2, #256
	mov	r1, #0
	bl	memset
	cmp	r7, #0
	bne	.L6
	b	.L4
.L21:
	bl	PUT_COEFF
.L6:
	mov	r1, #2
	mov	r0, r4
	bl	get_sbits
	cmn	r0, #2
	bne	.L21
	mov	r0, #4
	bl	ALIGN
	mov	r0, r4
	bl	get_bits_left
	cmp	r0, r7, lsl #2
	bge	.L7
	b	.L9
.L22:
	bl	PUT_COEFF
.L7:
	mov	r1, #4
	mov	r0, r4
	bl	get_sbits
	cmn	r0, #8
	bne	.L22
	mov	r0, #8
	bl	ALIGN
	mov	r0, r4
	bl	get_bits_left
	cmp	r0, r7, lsl #3
	blt	.L9
.L11:
	mov	r1, #8
	mov	r0, r4
	bl	get_sbits
	bl	PUT_COEFF
	b	.L11
.L14:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, #4
	bl	ALIGN
	mov	r0, r4
	bl	get_bits_left
	cmp	r0, #0
	blt	.L9
	mov	r0, #8
	bl	ALIGN
	mov	r0, r4
	bl	get_bits_left
	cmp	r0, #0
	blt	.L9
	mov	r0, r5
	bl	PUT_COEFF
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	.align	2
.L23:
	.word	AVERROR_INVALIDDATA
	.size	get_block, .-get_block
	.comm	AVERROR_INVALIDDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
