	.file	"extr_pixmap.c_fz_alpha_from_gray.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	fz_alpha_from_gray
	.type	fz_alpha_from_gray, @function
fz_alpha_from_gray:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	DWORD PTR [rsi], 1
	sete	dil
	call	assert@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	fz_pixmap_bbox@PLT
	xor	ecx, ecx
	mov	rdi, rbp
	mov	r8d, 1
	mov	edx, eax
	xor	esi, esi
	call	fz_new_pixmap_with_bbox@PLT
	mov	rbp, QWORD PTR 8[r12]
	mov	r14d, DWORD PTR 24[r12]
	mov	rcx, rax
	mov	QWORD PTR 8[rsp], rax
	mov	r15, QWORD PTR 8[rax]
	mov	eax, DWORD PTR 20[r12]
	movsx	r13, DWORD PTR 16[r12]
	movsx	r12, DWORD PTR 16[rcx]
	test	eax, eax
	je	.L1
	lea	ebx, -1[rax]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, rbp
	mov	rdi, r15
	mov	edx, r14d
	sub	ebx, 1
	call	memcpy@PLT
	add	rbp, r13
	add	r15, r12
	cmp	ebx, -1
	jne	.L3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	fz_alpha_from_gray, .-fz_alpha_from_gray
	.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_alpha_from_gray.c"
	.text
	.align	2
	.global	fz_alpha_from_gray
	.syntax unified
	.arm
	.fpu softvfp
	.type	fz_alpha_from_gray, %function
fz_alpha_from_gray:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	sub	r0, r3, #1
	clz	r0, r0
	mov	r6, r1
	sub	sp, sp, #12
	lsr	r0, r0, #5
	bl	assert
	mov	r1, r6
	mov	r0, r4
	bl	fz_pixmap_bbox
	mov	r3, #0
	mov	r1, #1
	mov	r2, r0
	str	r1, [sp]
	mov	r0, r4
	mov	r1, r3
	bl	fz_new_pixmap_with_bbox
	ldmib	r6, {r5, r7}
	ldr	r4, [r6, #12]
	mov	r9, r0
	cmp	r4, #0
	ldr	r3, [r0, #4]
	ldr	r8, [r0, #8]
	ldr	r6, [r6, #16]
	beq	.L1
	sub	r4, r4, #1
.L3:
	mov	r1, r5
	mov	r0, r3
	mov	r2, r6
	bl	memcpy
	sub	r4, r4, #1
	cmn	r4, #1
	add	r5, r5, r7
	add	r3, r0, r8
	bne	.L3
.L1:
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
	.size	fz_alpha_from_gray, .-fz_alpha_from_gray
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
