	.file	"extr_hpdf_image_ccitt.c_HPDF_Fax4Encode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	HPDF_Fax4Encode, @function
HPDF_Fax4Encode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	EncoderState@PLT
	test	r12, r12
	jle	.L2
	mov	rbx, rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR 16[rbx]
	mov	rdx, QWORD PTR [rbx]
	mov	esi, ebp
	call	memcpy@PLT
	mov	rax, QWORD PTR [rbx]
	sub	r12, rax
	add	ebp, eax
	test	r12, r12
	jle	.L2
.L4:
	mov	ecx, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 16[rbx]
	mov	esi, ebp
	mov	rdi, r13
	call	HPDF_Fax3Encode2DRow@PLT
	cmp	rax, QWORD PTR HPDF_OK[rip]
	je	.L9
	add	rsp, 8
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR HPDF_OK[rip]
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	HPDF_Fax4Encode, .-HPDF_Fax4Encode
	.comm	HPDF_OK,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_hpdf_image_ccitt.c_HPDF_Fax4Encode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	HPDF_Fax4Encode, %function
HPDF_Fax4Encode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	mov	r5, r1
	mov	r7, r0
	bl	EncoderState
	cmp	r6, #0
	ldrle	r8, .L12
	ble	.L2
	mov	r4, r0
	ldr	r8, .L12
	b	.L4
.L11:
	mov	r1, r5
	ldr	r2, [r4]
	ldr	r0, [r4, #8]
	bl	memcpy
	ldr	r3, [r4]
	sub	r6, r6, r3
	cmp	r6, #0
	add	r5, r5, r3
	ble	.L2
.L4:
	ldr	r3, [r4, #4]
	mov	r1, r5
	mov	r0, r7
	ldr	r2, [r4, #8]
	bl	HPDF_Fax3Encode2DRow
	ldr	r3, [r8]
	cmp	r0, r3
	beq	.L11
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r0, [r8]
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	HPDF_OK
	.size	HPDF_Fax4Encode, .-HPDF_Fax4Encode
	.comm	HPDF_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
