	.file	"extr_pixmap.c_fz_clear_pixmap_with_value.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	fz_clear_pixmap_with_value
	.type	fz_clear_pixmap_with_value, @function
fz_clear_pixmap_with_value:
.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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14d, DWORD PTR 4[rsi]
	mov	r15d, DWORD PTR 8[rsi]
	test	r14d, r14d
	js	.L1
	test	r15d, r15d
	js	.L1
	mov	eax, DWORD PTR [rsi]
	mov	rbx, rsi
	mov	esi, DWORD PTR 36[rsi]
	mov	ebp, edx
	mov	DWORD PTR 12[rsp], eax
	call	fz_colorspace_n@PLT
	cmp	eax, 4
	je	.L25
	imul	r14d, DWORD PTR 28[rbx]
	movsx	r13, DWORD PTR 24[rbx]
	mov	r12, QWORD PTR 16[rbx]
	cmp	ebp, 255
	je	.L17
	mov	ecx, DWORD PTR 12[rsp]
	test	ecx, ecx
	je	.L17
	mov	edx, DWORD PTR 8[rbx]
	sub	r13d, r14d
	test	edx, edx
	jle	.L1
	movsx	r9, r13d
	xor	r8d, r8d
	mov	esi, ebp
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR 4[rbx]
	xor	edi, edi
	test	eax, eax
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	xor	ecx, ecx
	cmp	DWORD PTR 28[rbx], 1
	mov	rdx, r12
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L11:
	mov	BYTE PTR [rdx], sil
	mov	eax, DWORD PTR 28[rbx]
	add	ecx, 1
	add	rdx, 1
	sub	eax, 1
	cmp	eax, ecx
	jg	.L11
.L14:
	mov	BYTE PTR [rdx], -1
	lea	r12, 1[rdx]
	add	edi, 1
	cmp	DWORD PTR 4[rbx], edi
	jg	.L15
.L12:
	add	r12, r9
	add	r8d, 1
	cmp	DWORD PTR 8[rbx], r8d
	jg	.L10
.L1:
	add	rsp, 24
	.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
.L17:
	.cfi_restore_state
	cmp	r13d, r14d
	je	.L26
	lea	ebx, -1[r15]
	test	r15d, r15d
	je	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r12
	mov	edx, r14d
	mov	esi, ebp
	sub	ebx, 1
	call	memset@PLT
	add	r12, r13
	cmp	ebx, -1
	jne	.L8
	add	rsp, 24
	.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
.L26:
	.cfi_restore_state
	mov	edx, r15d
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	esi, ebp
	mov	rdi, r12
	imul	edx, r13d
	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
	jmp	memset@PLT
.L25:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rdi, QWORD PTR 16[rbx]
	mov	r9d, 255
	mov	ecx, DWORD PTR 32[rbx]
	mov	esi, r14d
	sub	r9d, ebp
	mov	edx, r15d
	push	rax
	.cfi_def_cfa_offset 96
	mov	r8d, DWORD PTR 24[rbx]
	call	clear_cmyk_bitmap@PLT
	pop	rsi
	.cfi_def_cfa_offset 88
	pop	rdi
	.cfi_def_cfa_offset 80
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	fz_clear_pixmap_with_value, .-fz_clear_pixmap_with_value
	.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_pixmap.c_fz_clear_pixmap_with_value.c"
	.text
	.align	2
	.global	fz_clear_pixmap_with_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	fz_clear_pixmap_with_value, %function
fz_clear_pixmap_with_value:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r1, #4]
	ldr	r6, [r1, #8]
	sub	sp, sp, #16
	orrs	r3, r7, r6
	bpl	.L22
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	mov	r4, r1
	ldr	r1, [r1, #28]
	mov	r5, r2
	ldr	r8, [r4]
	bl	fz_colorspace_n
	cmp	r0, #4
	beq	.L23
	cmp	r8, #0
	cmpne	r5, #255
	ldr	r3, [r4, #20]
	moveq	r2, #1
	mul	r7, r3, r7
	movne	r2, #0
	ldr	r8, [r4, #16]
	ldr	r3, [r4, #12]
	bne	.L5
	cmp	r8, r7
	beq	.L24
	cmp	r6, #0
	sub	r6, r6, #1
	beq	.L1
.L7:
	mov	r0, r3
	mov	r2, r7
	mov	r1, r5
	bl	memset
	sub	r6, r6, #1
	cmn	r6, #1
	add	r3, r0, r8
	bne	.L7
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r0, [r4, #8]
	sub	r7, r8, r7
	cmp	r0, #0
	ble	.L1
	mvn	lr, #0
	mov	r6, r2
	ldr	r2, [r4, #4]
	and	r1, r5, #255
.L9:
	cmp	r2, #0
	movgt	ip, #0
	ble	.L11
.L14:
	ldr	r2, [r4, #20]
	mov	r0, r3
	cmp	r2, #1
	movgt	r2, #0
	ble	.L13
.L10:
	strb	r1, [r0], #1
	ldr	r3, [r4, #20]
	add	r2, r2, #1
	sub	r3, r3, #1
	cmp	r3, r2
	bgt	.L10
.L13:
	mov	r3, r0
	strb	lr, [r3], #1
	ldr	r2, [r4, #4]
	add	ip, ip, #1
	cmp	r2, ip
	bgt	.L14
	ldr	r0, [r4, #8]
.L11:
	add	r6, r6, #1
	cmp	r0, r6
	add	r3, r3, r7
	bgt	.L9
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	mov	r1, r5
	mov	r0, r3
	mul	r2, r8, r6
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	memset
.L23:
	ldr	r0, [r4]
	ldr	r3, [r4, #16]
	rsb	r1, r5, #255
	str	r1, [sp, #4]
	str	r0, [sp, #8]
	str	r3, [sp]
	mov	r2, r6
	mov	r1, r7
	ldr	r3, [r4, #24]
	ldr	r0, [r4, #12]
	bl	clear_cmyk_bitmap
	b	.L1
	.size	fz_clear_pixmap_with_value, .-fz_clear_pixmap_with_value
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
