	.file	"extr_draw-device.c_fz_draw_end_group.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unexpected end group"
.LC1:
	.string	"group"
	.text
	.p2align 4
	.type	fz_draw_end_group, @function
fz_draw_end_group:
.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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR [rsi], 0
	je	.L30
.L2:
	lea	rdx, .LC1[rip]
	mov	rsi, r12
	mov	rdi, rbp
	call	pop_stack@PLT
	mov	r15d, DWORD PTR FZ_BLEND_MODEMASK[rip]
	mov	r13d, DWORD PTR 36[rax]
	mov	r10, QWORD PTR 8[rax]
	mov	rbx, rax
	mov	r14, QWORD PTR 40[rax]
	movss	xmm0, DWORD PTR 32[rax]
	and	r15d, r13d
	mov	rdx, QWORD PTR [r10]
	and	r13d, DWORD PTR FZ_BLEND_ISOLATED[rip]
	cmp	rdx, QWORD PTR [r14]
	je	.L3
	movss	DWORD PTR 12[rsp], xmm0
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rsi, r14
	xor	ecx, ecx
	push	1
	.cfi_def_cfa_offset 96
	mov	r9d, DWORD PTR fz_default_color_params[rip]
	mov	rdi, rbp
	mov	r8d, DWORD PTR 8[r12]
	call	fz_convert_pixmap@PLT
	mov	rsi, QWORD PTR 40[rbx]
	mov	rdi, rbp
	mov	r14, rax
	call	fz_drop_pixmap@PLT
	mov	QWORD PTR 40[rbx], r14
	mov	r10, QWORD PTR 8[rbx]
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	movss	xmm0, DWORD PTR 12[rsp]
.L3:
	mulss	xmm0, DWORD PTR .LC2[rip]
	mov	r9, QWORD PTR 48[rbx]
	movss	DWORD PTR 12[rsp], xmm0
	test	r15d, r15d
	jne	.L4
	mov	rax, QWORD PTR 56[rbx]
	cmp	QWORD PTR 24[rbx], rax
	je	.L31
.L4:
	movss	xmm0, DWORD PTR 12[rsp]
	mov	r8d, r13d
	mov	ecx, r15d
	mov	rdx, r14
	mov	rsi, r10
	mov	rdi, rbp
	call	fz_blend_pixmap@PLT
.L5:
	mov	rdi, QWORD PTR 24[rbx]
	mov	rsi, QWORD PTR 56[rbx]
	cmp	rdi, rsi
	je	.L6
	test	rdi, rdi
	je	.L6
	cvttss2si	edx, DWORD PTR 12[rsp]
	test	rsi, rsi
	je	.L7
	call	fz_paint_pixmap@PLT
.L6:
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, 1
	test	rax, rax
	je	.L8
	xor	edi, edi
	cmp	QWORD PTR 48[rbx], rax
	setne	dil
.L8:
	call	assert@PLT
	mov	rdi, QWORD PTR 16[rbx]
	test	rdi, rdi
	je	.L9
	mov	rsi, QWORD PTR 48[rbx]
	cmp	rdi, rsi
	je	.L9
	mov	edx, 255
	test	rsi, rsi
	je	.L10
	test	r13d, r13d
	jne	.L11
	cvttss2si	edx, DWORD PTR 12[rsp]
.L11:
	call	fz_paint_pixmap@PLT
.L9:
	mov	rax, QWORD PTR 40[rbx]
	xor	edi, edi
	cmp	QWORD PTR 8[rbx], rax
	setne	dil
	call	assert@PLT
	mov	rsi, QWORD PTR 56[rbx]
	cmp	QWORD PTR 24[rbx], rsi
	je	.L13
	mov	rdi, rbp
	call	fz_drop_pixmap@PLT
	mov	QWORD PTR 56[rbx], 0
.L13:
	mov	rsi, QWORD PTR 48[rbx]
	mov	rdi, rbp
	call	fz_drop_pixmap@PLT
	mov	QWORD PTR 48[rbx], 0
	mov	rsi, QWORD PTR 40[rbx]
	mov	rdi, rbp
	call	fz_drop_pixmap@PLT
	mov	QWORD PTR 40[rbx], 0
	mov	eax, DWORD PTR 4[rbx]
	test	DWORD PTR FZ_BLEND_KNOCKOUT[rip], eax
	jne	.L32
	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
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	cmp	QWORD PTR 16[rbx], r9
	jne	.L4
	cvttss2si	edx, xmm0
	mov	rsi, r14
	mov	rdi, r10
	call	fz_paint_pixmap@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L30:
	mov	esi, DWORD PTR FZ_ERROR_GENERIC[rip]
	lea	rdx, .LC0[rip]
	call	fz_throw@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L32:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, r12
	mov	rdi, rbp
	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	fz_knockout_end@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	test	r13d, r13d
	jne	.L12
	cvttss2si	edx, DWORD PTR 12[rsp]
.L12:
	mov	rsi, QWORD PTR 40[rbx]
	call	fz_paint_pixmap_alpha@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, QWORD PTR 40[rbx]
	call	fz_paint_pixmap_alpha@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	fz_draw_end_group, .-fz_draw_end_group
	.comm	fz_default_color_params,4,4
	.comm	FZ_ERROR_GENERIC,4,4
	.comm	FZ_BLEND_MODEMASK,4,4
	.comm	FZ_BLEND_KNOCKOUT,4,4
	.comm	FZ_BLEND_ISOLATED,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC2:
	.long	1132396544
	.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_group.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unexpected end group\000"
	.align	2
.LC1:
	.ascii	"group\000"
	.global	__aeabi_fmul
	.global	__aeabi_f2iz
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fz_draw_end_group, %function
fz_draw_end_group:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r1]
	mov	r6, r1
	cmp	r3, #0
	mov	r5, r0
	sub	sp, sp, #20
	beq	.L26
.L2:
	mov	r1, r6
	ldr	r2, .L30
	mov	r0, r5
	bl	pop_stack
	mov	r4, r0
	ldr	fp, [r0, #8]
	ldr	r8, [r0, #28]
	ldr	r3, .L30+4
	ldr	r0, .L30+8
	ldr	r2, [fp]
	ldr	r1, [r8]
	ldr	r7, [r4, #24]
	ldr	r9, [r0]
	ldr	r3, [r3]
	cmp	r2, r1
	and	r9, r9, r7
	ldr	r10, [r4, #20]	@ float
	and	r7, r7, r3
	beq	.L3
	mov	r0, #1
	ldr	r1, .L30+12
	ldr	r3, [r6, #4]
	ldr	ip, [r1]
	mov	r1, r8
	str	ip, [sp, #4]
	str	r0, [sp, #8]
	str	r3, [sp]
	mov	r0, r5
	mov	r3, #0
	bl	fz_convert_pixmap
	mov	r8, r0
	ldr	r1, [r4, #28]
	mov	r0, r5
	bl	fz_drop_pixmap
	ldr	fp, [r4, #8]
	str	r8, [r4, #28]
.L3:
	mov	r0, r10
	ldr	r1, .L30+16
	bl	__aeabi_fmul
	cmp	r9, #0
	mov	r10, r0
	ldr	r3, [r4, #32]
	bne	.L4
	ldr	r1, [r4, #16]
	ldr	r2, [r4, #36]
	cmp	r1, r2
	beq	.L27
.L4:
	str	r3, [sp, #8]
	mov	r2, r8
	mov	r1, fp
	mov	r3, r10
	mov	r0, r5
	str	r7, [sp, #4]
	str	r9, [sp]
	bl	fz_blend_pixmap
.L5:
	ldr	r8, [r4, #16]
	ldr	r9, [r4, #36]
	cmp	r8, r9
	cmpne	r8, #0
	bne	.L28
.L6:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	moveq	r0, #1
	beq	.L8
	ldr	r0, [r4, #32]
	subs	r0, r0, r3
	movne	r0, #1
.L8:
	bl	assert
	ldr	r8, [r4, #12]
	cmp	r8, #0
	beq	.L9
	ldr	r9, [r4, #32]
	cmp	r8, r9
	beq	.L9
	cmp	r9, #0
	beq	.L10
	cmp	r7, #0
	movne	r2, #255
	bne	.L11
	mov	r0, r10
	bl	__aeabi_f2iz
	mov	r2, r0
.L11:
	mov	r1, r9
	mov	r0, r8
	bl	fz_paint_pixmap
.L9:
	ldr	r3, [r4, #28]
	ldr	r0, [r4, #8]
	subs	r0, r0, r3
	movne	r0, #1
	bl	assert
	ldr	r1, [r4, #36]
	ldr	r3, [r4, #16]
	cmp	r3, r1
	beq	.L13
	mov	r0, r5
	bl	fz_drop_pixmap
	mov	r3, #0
	str	r3, [r4, #36]
.L13:
	mov	r7, #0
	ldr	r1, [r4, #32]
	mov	r0, r5
	bl	fz_drop_pixmap
	mov	r0, r5
	ldr	r1, [r4, #28]
	str	r7, [r4, #32]
	bl	fz_drop_pixmap
	ldr	r3, .L30+20
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	str	r7, [r4, #28]
	tst	r2, r3
	bne	.L29
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	ldr	r2, [r4, #12]
	cmp	r2, r3
	bne	.L4
	bl	__aeabi_f2iz
	mov	r1, r8
	mov	r2, r0
	mov	r0, fp
	bl	fz_paint_pixmap
	b	.L5
.L28:
	mov	r0, r10
	bl	__aeabi_f2iz
	cmp	r9, #0
	mov	r2, r0
	beq	.L7
	mov	r1, r9
	mov	r0, r8
	bl	fz_paint_pixmap
	b	.L6
.L26:
	ldr	r3, .L30+24
	ldr	r2, .L30+28
	ldr	r1, [r3]
	bl	fz_throw
	b	.L2
.L29:
	mov	r1, r6
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	fz_knockout_end
.L10:
	cmp	r7, #0
	movne	r2, #255
	ldr	r7, [r4, #28]
	bne	.L12
	mov	r0, r10
	bl	__aeabi_f2iz
	mov	r2, r0
.L12:
	mov	r1, r7
	mov	r0, r8
	bl	fz_paint_pixmap_alpha
	b	.L9
.L7:
	mov	r0, r8
	ldr	r1, [r4, #28]
	bl	fz_paint_pixmap_alpha
	b	.L6
.L31:
	.align	2
.L30:
	.word	.LC1
	.word	FZ_BLEND_ISOLATED
	.word	FZ_BLEND_MODEMASK
	.word	fz_default_color_params
	.word	1132396544
	.word	FZ_BLEND_KNOCKOUT
	.word	FZ_ERROR_GENERIC
	.word	.LC0
	.size	fz_draw_end_group, .-fz_draw_end_group
	.comm	fz_default_color_params,4,4
	.comm	FZ_ERROR_GENERIC,4,4
	.comm	FZ_BLEND_MODEMASK,4,4
	.comm	FZ_BLEND_KNOCKOUT,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
