	.file	"extr_rjpeg.c_rjpeg_jpeg_decode_block_prog_dc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rjpeg_jpeg_decode_block_prog_dc, @function
rjpeg_jpeg_decode_block_prog_dc:
.LFB0:
	.cfi_startproc
	endbr64
	xor	eax, eax
	cmp	QWORD PTR [rdi], 0
	jne	.L13
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movsx	r12, ecx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	DWORD PTR 8[rdi], 15
	jle	.L17
	cmp	QWORD PTR 16[rbx], 0
	jne	.L4
.L19:
	mov	edx, 128
	xor	esi, esi
	mov	rdi, rbp
	call	memset@PLT
	mov	rsi, r13
	mov	rdi, rbx
	call	rjpeg_jpeg_huff_decode@PLT
	mov	esi, eax
	test	eax, eax
	jne	.L18
.L5:
	mov	rax, QWORD PTR 32[rbx]
	mov	ecx, DWORD PTR 24[rbx]
	lea	rax, [rax+r12*4]
	add	esi, DWORD PTR [rax]
	mov	DWORD PTR [rax], esi
	sal	esi, cl
	mov	eax, 1
	mov	WORD PTR 0[rbp], si
.L1:
	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
.L4:
	.cfi_restore_state
	mov	rdi, rbx
	call	rjpeg_jpeg_get_bit@PLT
	mov	r8, rax
	mov	eax, 1
	test	r8, r8
	je	.L1
	mov	ecx, DWORD PTR 24[rbx]
	mov	edx, eax
	sal	edx, cl
	add	WORD PTR 0[rbp], dx
	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
.L17:
	.cfi_restore_state
	call	rjpeg_grow_buffer_unsafe@PLT
	cmp	QWORD PTR 16[rbx], 0
	jne	.L4
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	mov	rdi, rbx
	call	rjpeg_extend_receive@PLT
	mov	esi, eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	rjpeg_jpeg_decode_block_prog_dc, .-rjpeg_jpeg_decode_block_prog_dc
	.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_rjpeg.c_rjpeg_jpeg_decode_block_prog_dc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rjpeg_jpeg_decode_block_prog_dc, %function
rjpeg_jpeg_decode_block_prog_dc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0]
	cmp	ip, #0
	bne	.L6
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r3
	ldr	r3, [r0, #4]
	mov	r4, r0
	cmp	r3, #15
	mov	r5, r1
	mov	r6, r2
	ble	.L16
	ldr	r1, [r4, #8]
	cmp	r1, #0
	bne	.L4
.L18:
	mov	r2, #128
	mov	r0, r5
	bl	memset
	mov	r1, r6
	mov	r0, r4
	bl	rjpeg_jpeg_huff_decode
	subs	r1, r0, #0
	bne	.L17
.L5:
	ldr	r2, [r4, #16]
	ldr	r3, [r4, #12]
	ldr	ip, [r2, r7, lsl #2]
	mov	r0, #1
	add	r1, r1, ip
	lsl	r3, r1, r3
	str	r1, [r2, r7, lsl #2]
	strh	r3, [r5]	@ movhi
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r4
	bl	rjpeg_jpeg_get_bit
	cmp	r0, #0
	beq	.L7
	mov	r2, #1
	ldr	r1, [r4, #12]
	ldrh	r3, [r5]
	mov	r0, r2
	add	r3, r3, r2, lsl r1
	strh	r3, [r5]	@ movhi
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	bl	rjpeg_grow_buffer_unsafe
	ldr	r1, [r4, #8]
	cmp	r1, #0
	bne	.L4
	b	.L18
.L6:
	mov	r0, #0
	bx	lr
.L7:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r0, r4
	bl	rjpeg_extend_receive
	mov	r1, r0
	b	.L5
	.size	rjpeg_jpeg_decode_block_prog_dc, .-rjpeg_jpeg_decode_block_prog_dc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
