	.file	"extr_sysimgblt.c_fast_imageblit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fast_imageblit, @function
fast_imageblit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	eax, 32
	mov	r9d, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	cdq
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	ecx, DWORD PTR 4[rsi]
	mov	r12, QWORD PTR 8[rdi]
	idiv	ecx
	mov	ebx, eax
	mov	eax, DWORD PTR [rdi]
	lea	r11d, -2[rbx]
	mov	edx, eax
	lea	r15d, 14[rax]
	add	edx, 7
	cmovns	r15d, edx
	sar	r15d, 3
	cmp	ecx, 8
	je	.L2
	cmp	ecx, 16
	je	.L3
	mov	rsi, QWORD PTR cfb_tab32[rip]
	cmp	ebx, 1
	je	.L17
.L16:
	mov	r10d, r8d
	mov	edx, r9d
	.p2align 4,,10
	.p2align 3
.L9:
	sal	edx, cl
	sal	r10d, cl
	sub	r11d, 1
	or	edx, r9d
	or	r10d, r8d
	cmp	r11d, -1
	jne	.L9
.L8:
	xor	edx, r10d
	mov	r11d, 1
	mov	ecx, ebx
	mov	r9d, edx
	cdq
	sal	r11d, cl
	idiv	ebx
	mov	edx, DWORD PTR 16[r14]
	sub	r11d, 1
	lea	r14d, -1[rdx]
	test	edx, edx
	je	.L1
	movsx	rdi, r15d
	lea	edx, -1[rax]
	mov	QWORD PTR 8[rsp], rdi
	lea	rdi, 4[0+rdx*4]
	mov	QWORD PTR 16[rsp], rdi
	.p2align 4,,10
	.p2align 3
.L11:
	test	eax, eax
	je	.L15
	mov	rdi, QWORD PTR 16[rsp]
	mov	DWORD PTR 24[rsp], eax
	mov	r8, r12
	mov	ecx, 8
	lea	r15, 0[rbp+rdi]
	mov	rdi, rbp
	.p2align 4,,10
	.p2align 3
.L13:
	movsx	edx, BYTE PTR [r8]
	sub	ecx, ebx
	add	rdi, 4
	sar	edx, cl
	and	edx, r11d
	movsx	rdx, edx
	mov	eax, DWORD PTR [rsi+rdx*4]
	and	eax, r9d
	mov	edx, eax
	xor	edx, r10d
	mov	DWORD PTR -4[rdi], edx
	test	ecx, ecx
	jne	.L12
	add	r8, 1
	mov	ecx, 8
.L12:
	cmp	rdi, r15
	jne	.L13
	mov	eax, DWORD PTR 24[rsp]
.L15:
	movsx	rdx, DWORD PTR 0[r13]
	sub	r14d, 1
	add	r12, QWORD PTR 8[rsp]
	add	rbp, rdx
	cmp	r14d, -1
	jne	.L11
.L1:
	add	rsp, 40
	.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
.L2:
	.cfi_restore_state
	mov	rdi, rsi
	mov	DWORD PTR 28[rsp], r8d
	mov	DWORD PTR 16[rsp], r9d
	mov	DWORD PTR 8[rsp], r11d
	mov	DWORD PTR 24[rsp], ecx
	call	fb_be_math@PLT
	mov	rsi, QWORD PTR cfb_tab8_be[rip]
	mov	ecx, DWORD PTR 24[rsp]
	test	eax, eax
	mov	r11d, DWORD PTR 8[rsp]
	cmove	rsi, QWORD PTR cfb_tab8_le[rip]
	mov	r9d, DWORD PTR 16[rsp]
	mov	r8d, DWORD PTR 28[rsp]
.L6:
	mov	eax, DWORD PTR [r14]
	jmp	.L16
.L3:
	mov	rdi, rsi
	mov	DWORD PTR 28[rsp], r8d
	mov	DWORD PTR 16[rsp], r9d
	mov	DWORD PTR 8[rsp], r11d
	mov	DWORD PTR 24[rsp], ecx
	call	fb_be_math@PLT
	mov	rsi, QWORD PTR cfb_tab16_be[rip]
	mov	ecx, DWORD PTR 24[rsp]
	test	eax, eax
	mov	r11d, DWORD PTR 8[rsp]
	cmove	rsi, QWORD PTR cfb_tab16_le[rip]
	mov	r9d, DWORD PTR 16[rsp]
	mov	r8d, DWORD PTR 28[rsp]
	jmp	.L6
.L17:
	mov	r10d, r8d
	mov	edx, r9d
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	fast_imageblit, .-fast_imageblit
	.comm	cfb_tab8_le,8,8
	.comm	cfb_tab8_be,8,8
	.comm	cfb_tab32,8,8
	.comm	cfb_tab16_le,8,8
	.comm	cfb_tab16_be,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_sysimgblt.c_fast_imageblit.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fast_imageblit, %function
fast_imageblit:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, r0
	ldr	r4, [r1, #4]
	sub	sp, sp, #20
	mov	r9, r1
	mov	r0, #32
	mov	r1, r4
	mov	r8, r2
	str	r3, [sp, #4]
	bl	__aeabi_idiv
	ldr	lr, [fp]
	mov	r2, r0
	adds	r1, lr, #7
	addmi	r1, lr, #14
	asr	r3, r1, #3
	cmp	r4, #8
	str	r3, [sp]
	ldr	r10, [fp, #4]
	ldr	r1, [sp, #56]
	ldr	r3, [sp, #4]
	sub	r6, r0, #2
	beq	.L2
	cmp	r4, #16
	beq	.L3
	ldr	r0, .L29
	cmp	r2, #1
	ldr	r7, [r0]
	beq	.L16
.L15:
	mov	r5, r1
	mov	ip, r3
.L9:
	sub	r6, r6, #1
	cmn	r6, #1
	orr	ip, r3, ip, lsl r4
	orr	r5, r1, r5, lsl r4
	bne	.L9
.L8:
	mvn	r6, #0
	mov	r0, lr
	mov	r1, r2
	mvn	r6, r6, lsl r2
	eor	r4, ip, r5
	str	r2, [sp, #12]
	bl	__aeabi_idiv
	ldr	fp, [fp, #8]
	str	r0, [sp, #4]
	cmp	fp, #0
	sub	fp, fp, #1
	beq	.L1
	sub	r3, r0, #1
	ldr	r2, [sp, #12]
	str	r3, [sp, #8]
.L11:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L14
	mov	lr, r8
	mov	ip, r10
	mov	r1, #8
	ldr	r0, [sp, #8]
.L13:
	ldrb	r3, [ip]	@ zero_extendqisi2
	sub	r1, r1, r2
	and	r3, r6, r3, asr r1
	ldr	r3, [r7, r3, lsl #2]
	cmp	r1, #0
	sub	r0, r0, #1
	and	r3, r3, r4
	moveq	r1, #8
	eor	r3, r3, r5
	addeq	ip, ip, #1
	cmn	r0, #1
	str	r3, [lr], #4
	bne	.L13
.L14:
	ldr	r3, [r9]
	ldr	r1, [sp]
	sub	fp, fp, #1
	cmn	fp, #1
	add	r10, r10, r1
	add	r8, r8, r3
	bne	.L11
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, r9
	stmib	sp, {r2, r3}
	str	r1, [sp, #56]
	bl	fb_be_math
	ldmib	sp, {r2, r3}
	cmp	r0, #0
	ldrne	r0, .L29+4
	ldreq	r0, .L29+8
	ldr	r1, [sp, #56]
	ldr	r7, [r0]
.L6:
	ldr	lr, [fp]
	b	.L15
.L3:
	mov	r0, r9
	stmib	sp, {r2, r3}
	str	r1, [sp, #56]
	bl	fb_be_math
	ldmib	sp, {r2, r3}
	cmp	r0, #0
	ldrne	r0, .L29+12
	ldreq	r0, .L29+16
	ldr	r1, [sp, #56]
	ldr	r7, [r0]
	b	.L6
.L16:
	mov	r5, r1
	mov	ip, r3
	b	.L8
.L30:
	.align	2
.L29:
	.word	cfb_tab32
	.word	cfb_tab8_be
	.word	cfb_tab8_le
	.word	cfb_tab16_be
	.word	cfb_tab16_le
	.size	fast_imageblit, .-fast_imageblit
	.comm	cfb_tab8_le,4,4
	.comm	cfb_tab8_be,4,4
	.comm	cfb_tab32,4,4
	.comm	cfb_tab16_le,4,4
	.comm	cfb_tab16_be,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
