	.file	"extr_draw-device.c_fz_draw_end_mask.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unexpected end mask"
.LC1:
	.string	"mask"
	.text
	.p2align 4
	.type	fz_draw_end_mask, @function
fz_draw_end_mask:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	QWORD PTR [rsi], 0
	je	.L11
.L2:
	lea	rdx, .LC1[rip]
	mov	rsi, r13
	mov	rdi, rbp
	call	convert_stack@PLT
	mov	rdi, rbp
	mov	rsi, QWORD PTR 80[rax]
	mov	rbx, rax
	call	fz_alpha_from_gray@PLT
	mov	rsi, QWORD PTR 88[rbx]
	mov	r12, rax
	cmp	rsi, QWORD PTR 40[rbx]
	je	.L3
	mov	rdi, rbp
	call	fz_drop_pixmap@PLT
.L3:
	mov	QWORD PTR 88[rbx], r12
	mov	rsi, QWORD PTR 80[rbx]
	cmp	rsi, QWORD PTR 32[rbx]
	je	.L4
	mov	rdi, rbp
	call	fz_drop_pixmap@PLT
.L4:
	mov	QWORD PTR 80[rbx], 0
	mov	rsi, QWORD PTR 64[rbx]
	cmp	rsi, QWORD PTR 16[rbx]
	je	.L5
	mov	rdi, rbp
	call	fz_drop_pixmap@PLT
.L5:
	mov	QWORD PTR 64[rbx], 0
	mov	rsi, QWORD PTR 56[rbx]
	cmp	rsi, QWORD PTR 8[rbx]
	je	.L6
	mov	rdi, rbp
	call	fz_drop_pixmap@PLT
.L6:
	mov	QWORD PTR 56[rbx], 0
	mov	rsi, r12
	mov	rdi, rbp
	call	fz_pixmap_bbox@PLT
	mov	rdi, rbp
	mov	r12d, eax
	mov	rax, QWORD PTR 32[rbx]
	mov	edx, r12d
	mov	rcx, QWORD PTR 8[rax]
	mov	rsi, QWORD PTR 16[rax]
	mov	r8d, DWORD PTR [rax]
	call	fz_new_pixmap_with_bbox@PLT
	mov	rdx, QWORD PTR 32[rbx]
	mov	r8d, DWORD PTR 8[r13]
	mov	ecx, r12d
	mov	rsi, rax
	mov	rdi, rbp
	mov	r14, rax
	call	fz_copy_pixmap_rect@PLT
	mov	eax, DWORD PTR FZ_BLEND_ISOLATED[rip]
	or	DWORD PTR 72[rbx], eax
	cmp	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 80[rbx], r14
	je	.L7
	xor	esi, esi
	mov	rdi, rbp
	mov	r8d, 1
	xor	ecx, ecx
	mov	edx, r12d
	call	fz_new_pixmap_with_bbox@PLT
	mov	rdi, rbp
	mov	QWORD PTR 64[rbx], rax
	mov	rsi, rax
	call	fz_clear_pixmap@PLT
.L7:
	cmp	QWORD PTR 8[rbx], 0
	je	.L8
	xor	esi, esi
	mov	rdi, rbp
	mov	r8d, 1
	xor	ecx, ecx
	mov	edx, r12d
	call	fz_new_pixmap_with_bbox@PLT
	mov	rdi, rbp
	mov	QWORD PTR 56[rbx], rax
	mov	rsi, rax
	call	fz_clear_pixmap@PLT
.L8:
	mov	DWORD PTR 48[rbx], r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR FZ_ERROR_GENERIC[rip]
	lea	rdx, .LC0[rip]
	call	fz_throw@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	fz_draw_end_mask, .-fz_draw_end_mask
	.comm	FZ_ERROR_GENERIC,4,4
	.comm	FZ_BLEND_ISOLATED,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_draw-device.c_fz_draw_end_mask.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unexpected end mask\000"
	.align	2
.LC1:
	.ascii	"mask\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fz_draw_end_mask, %function
fz_draw_end_mask:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, [r1]
	mov	r7, r1
	cmp	r3, #0
	mov	r5, r0
	sub	sp, sp, #12
	beq	.L17
.L2:
	mov	r1, r7
	ldr	r2, .L18
	mov	r0, r5
	bl	convert_stack
	mov	r4, r0
	mov	r0, r5
	ldr	r1, [r4, #40]
	bl	fz_alpha_from_gray
	ldr	r1, [r4, #44]
	ldr	r3, [r4, #20]
	mov	r6, r0
	cmp	r1, r3
	beq	.L3
	mov	r0, r5
	bl	fz_drop_pixmap
.L3:
	ldr	r1, [r4, #40]
	ldr	r3, [r4, #16]
	str	r6, [r4, #44]
	cmp	r1, r3
	beq	.L4
	mov	r0, r5
	bl	fz_drop_pixmap
.L4:
	mov	r2, #0
	ldr	r1, [r4, #32]
	ldr	r3, [r4, #8]
	str	r2, [r4, #40]
	cmp	r1, r3
	beq	.L5
	mov	r0, r5
	bl	fz_drop_pixmap
.L5:
	mov	r2, #0
	ldr	r1, [r4, #28]
	ldr	r3, [r4, #4]
	str	r2, [r4, #32]
	cmp	r1, r3
	beq	.L6
	mov	r0, r5
	bl	fz_drop_pixmap
.L6:
	mov	r9, #0
	mov	r1, r6
	mov	r0, r5
	str	r9, [r4, #28]
	bl	fz_pixmap_bbox
	mov	r6, r0
	ldr	r0, [r4, #16]
	mov	r2, r6
	ldr	r3, [r0, #4]
	ldr	r1, [r0, #8]
	ldr	r0, [r0]
	str	r0, [sp]
	mov	r0, r5
	bl	fz_new_pixmap_with_bbox
	mov	r8, r0
	ldr	r1, [r7, #4]
	ldr	r2, [r4, #16]
	mov	r3, r6
	str	r1, [sp]
	mov	r1, r0
	mov	r0, r5
	bl	fz_copy_pixmap_rect
	ldr	r2, .L18+4
	ldr	r3, [r4, #36]
	ldr	r1, [r2]
	ldr	r2, [r4, #8]
	orr	r3, r3, r1
	cmp	r2, r9
	str	r8, [r4, #40]
	str	r3, [r4, #36]
	beq	.L7
	mov	r2, #1
	mov	r1, r9
	str	r2, [sp]
	mov	r3, r9
	mov	r2, r6
	mov	r0, r5
	bl	fz_new_pixmap_with_bbox
	mov	r1, r0
	mov	r0, r5
	str	r1, [r4, #32]
	bl	fz_clear_pixmap
.L7:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L8
	mov	r2, #1
	mov	r3, #0
	str	r2, [sp]
	mov	r1, r3
	mov	r2, r6
	mov	r0, r5
	bl	fz_new_pixmap_with_bbox
	mov	r1, r0
	mov	r0, r5
	str	r1, [r4, #28]
	bl	fz_clear_pixmap
.L8:
	str	r6, [r4, #24]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L17:
	ldr	r3, .L18+8
	ldr	r2, .L18+12
	ldr	r1, [r3]
	bl	fz_throw
	b	.L2
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	FZ_BLEND_ISOLATED
	.word	FZ_ERROR_GENERIC
	.word	.LC0
	.size	fz_draw_end_mask, .-fz_draw_end_mask
	.comm	FZ_ERROR_GENERIC,4,4
	.comm	FZ_BLEND_ISOLATED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
