	.file	"extr_load-tiff.c_tiff_paste_tile.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tiff_paste_tile, @function
tiff_paste_tile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	edi, DWORD PTR [rsi]
	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
	mov	DWORD PTR -4[rsp], r8d
	test	edi, edi
	je	.L1
	mov	r13, rdx
	mov	ebx, ecx
	lea	r11, .L6[rip]
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	DWORD PTR 4[rsi], ebx
	jbe	.L1
	mov	eax, DWORD PTR 8[rsi]
	mov	r9d, DWORD PTR -4[rsp]
	xor	r10d, r10d
	test	eax, eax
	je	.L14
	.p2align 4,,10
	.p2align 3
.L17:
	cmp	DWORD PTR 12[rsi], r9d
	jbe	.L14
	mov	r8d, DWORD PTR 16[rsi]
	test	r8d, r8d
	je	.L16
	mov	eax, r9d
	and	eax, 1
	cmp	eax, 1
	mov	eax, r9d
	not	eax
	sbb	r14d, r14d
	xor	edi, edi
	mov	r12d, eax
	and	eax, 7
	and	r14d, 4
	mov	DWORD PTR -8[rsp], eax
	and	r12d, 3
	add	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, r8d
	mov	ecx, DWORD PTR 36[rsi]
	mov	edx, ebx
	mov	r15d, ebp
	imul	eax, r9d
	imul	edx, DWORD PTR 32[rsi]
	imul	r15d, DWORD PTR 40[rsi]
	add	eax, edi
	imul	eax, ecx
	add	eax, 7
	shr	eax, 3
	add	rax, rdx
	mov	edx, r8d
	add	rax, QWORD PTR 24[rsi]
	imul	edx, r10d
	add	edx, edi
	imul	edx, ecx
	add	edx, 7
	shr	edx, 3
	add	rdx, r15
	add	rdx, r13
	cmp	ecx, 32
	ja	.L4
	movsx	rcx, DWORD PTR [r11+rcx*4]
	add	rcx, r11
	notrack jmp	rcx
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L4-.L6
	.long	.L12-.L6
	.long	.L11-.L6
	.long	.L4-.L6
	.long	.L10-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L9-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L8-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L7-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L5-.L6
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	movzx	ecx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], cl
	movzx	ecx, BYTE PTR 1[rdx]
	mov	BYTE PTR 1[rax], cl
	movzx	ecx, BYTE PTR 2[rdx]
	mov	BYTE PTR 2[rax], cl
	movzx	edx, BYTE PTR 3[rdx]
	mov	BYTE PTR 3[rax], dl
	mov	r8d, DWORD PTR 16[rsi]
	.p2align 4,,10
	.p2align 3
.L4:
	add	edi, 1
	cmp	r8d, edi
	ja	.L13
.L16:
	add	r10d, 1
	add	r9d, 1
	cmp	DWORD PTR 8[rsi], r10d
	ja	.L17
.L14:
	add	ebp, 1
	add	ebx, 1
	cmp	DWORD PTR [rsi], ebp
	ja	.L2
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L7:
	.cfi_restore_state
	movzx	ecx, BYTE PTR [rdx]
	add	edi, 1
	mov	BYTE PTR [rax], cl
	movzx	ecx, BYTE PTR 1[rdx]
	mov	BYTE PTR 1[rax], cl
	movzx	edx, BYTE PTR 2[rdx]
	mov	BYTE PTR 2[rax], dl
	mov	r8d, DWORD PTR 16[rsi]
	cmp	r8d, edi
	ja	.L13
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L8:
	movzx	ecx, BYTE PTR [rdx]
	add	edi, 1
	mov	BYTE PTR [rax], cl
	movzx	edx, BYTE PTR 1[rdx]
	mov	BYTE PTR 1[rax], dl
	mov	r8d, DWORD PTR 16[rsi]
	cmp	r8d, edi
	ja	.L13
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L9:
	movzx	edx, BYTE PTR [rdx]
	add	edi, 1
	mov	BYTE PTR [rax], dl
	mov	r8d, DWORD PTR 16[rsi]
	cmp	r8d, edi
	ja	.L13
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L10:
	movzx	edx, BYTE PTR [rdx]
	mov	ecx, r14d
	add	edi, 1
	sar	edx, cl
	and	edx, 15
	or	BYTE PTR [rax], dl
	mov	r8d, DWORD PTR 16[rsi]
	cmp	r8d, edi
	ja	.L13
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L11:
	movzx	edx, BYTE PTR [rdx]
	mov	ecx, r12d
	add	edi, 1
	sar	edx, cl
	and	edx, 3
	or	BYTE PTR [rax], dl
	mov	r8d, DWORD PTR 16[rsi]
	cmp	r8d, edi
	ja	.L13
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L12:
	movzx	edx, BYTE PTR [rdx]
	movzx	ecx, BYTE PTR -8[rsp]
	add	edi, 1
	sar	edx, cl
	and	edx, 1
	or	BYTE PTR [rax], dl
	mov	r8d, DWORD PTR 16[rsi]
	cmp	r8d, edi
	ja	.L13
	jmp	.L16
	.cfi_endproc
.LFE0:
	.size	tiff_paste_tile, .-tiff_paste_tile
	.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_load-tiff.c_tiff_paste_tile.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tiff_paste_tile, %function
tiff_paste_tile:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r0, r1
	ldr	r1, [r1]
	cmp	r1, #0
	bxeq	lr
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r2
	mov	r9, r3
	mov	fp, #0
	sub	sp, sp, #20
.L2:
	ldr	r3, [r0, #4]
	cmp	r3, r9
	bls	.L1
	ldr	r3, [r0, #8]
	cmp	r3, #0
	movne	r8, #0
	ldrne	r7, [sp, #56]
	beq	.L14
.L17:
	ldr	r2, [r0, #12]
	cmp	r2, r7
	bls	.L28
	ldr	r4, [r0, #16]
	cmp	r4, #0
	beq	.L16
	tst	r7, #1
	mvn	r3, r7
	moveq	r2, #4
	movne	r2, #0
	mov	ip, #0
	str	r2, [sp, #8]
	and	r2, r3, #3
	lsl	r2, r2, #1
	and	r3, r3, #7
	str	r2, [sp, #4]
	str	r3, [sp, #12]
.L13:
	mla	r3, r7, r4, ip
	mla	r2, r8, r4, ip
	ldr	r1, [r0, #28]
	ldr	r5, [r0, #24]
	ldr	lr, [r0, #32]
	mul	r3, r1, r3
	mul	r2, r1, r2
	mul	r5, r9, r5
	mul	lr, fp, lr
	ldr	r6, [r0, #20]
	add	r3, r3, #7
	add	r2, r2, #7
	add	r3, r5, r3, lsr #3
	add	r2, lr, r2, lsr #3
	sub	r1, r1, #1
	add	lr, r6, r3
	add	r5, r10, r2
	cmp	r1, #31
	ldrls	pc, [pc, r1, asl #2]
	b	.L4
.L6:
	.word	.L12
	.word	.L11
	.word	.L4
	.word	.L10
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L9
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L8
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L7
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L5
.L5:
	ldrb	r2, [r10, r2]	@ zero_extendqisi2
	strb	r2, [r6, r3]
	ldrb	r3, [r5, #1]	@ zero_extendqisi2
	strb	r3, [lr, #1]
	ldrb	r3, [r5, #2]	@ zero_extendqisi2
	strb	r3, [lr, #2]
	ldrb	r3, [r5, #3]	@ zero_extendqisi2
	strb	r3, [lr, #3]
	ldr	r4, [r0, #16]
.L4:
	add	ip, ip, #1
	cmp	r4, ip
	bhi	.L13
.L30:
	ldr	r3, [r0, #8]
.L16:
	add	r8, r8, #1
	cmp	r3, r8
	add	r7, r7, #1
	bhi	.L17
.L28:
	ldr	r1, [r0]
.L14:
	add	fp, fp, #1
	cmp	r1, fp
	add	r9, r9, #1
	bhi	.L2
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldrb	r2, [r10, r2]	@ zero_extendqisi2
	add	ip, ip, #1
	strb	r2, [r6, r3]
	ldr	r4, [r0, #16]
	cmp	r4, ip
	bhi	.L13
	b	.L30
.L10:
	ldrb	r2, [r10, r2]	@ zero_extendqisi2
	ldr	lr, [sp, #8]
	ldrb	r1, [r6, r3]	@ zero_extendqisi2
	asr	r2, r2, lr
	and	r2, r2, #15
	orr	r2, r2, r1
	strb	r2, [r6, r3]
	ldr	r4, [r0, #16]
	add	ip, ip, #1
	cmp	r4, ip
	bhi	.L13
	b	.L30
.L11:
	ldrb	r2, [r10, r2]	@ zero_extendqisi2
	ldr	lr, [sp, #4]
	ldrb	r1, [r6, r3]	@ zero_extendqisi2
	asr	r2, r2, lr
	and	r2, r2, #3
	orr	r2, r2, r1
	strb	r2, [r6, r3]
	ldr	r4, [r0, #16]
	add	ip, ip, #1
	cmp	r4, ip
	bhi	.L13
	b	.L30
.L12:
	ldrb	r2, [r10, r2]	@ zero_extendqisi2
	ldr	lr, [sp, #12]
	ldrb	r1, [r6, r3]	@ zero_extendqisi2
	asr	r2, r2, lr
	and	r2, r2, #1
	orr	r2, r2, r1
	strb	r2, [r6, r3]
	ldr	r4, [r0, #16]
	add	ip, ip, #1
	cmp	r4, ip
	bhi	.L13
	b	.L30
.L7:
	ldrb	r2, [r10, r2]	@ zero_extendqisi2
	add	ip, ip, #1
	strb	r2, [r6, r3]
	ldrb	r3, [r5, #1]	@ zero_extendqisi2
	strb	r3, [lr, #1]
	ldrb	r3, [r5, #2]	@ zero_extendqisi2
	strb	r3, [lr, #2]
	ldr	r4, [r0, #16]
	cmp	r4, ip
	bhi	.L13
	b	.L30
.L8:
	ldrb	r2, [r10, r2]	@ zero_extendqisi2
	add	ip, ip, #1
	strb	r2, [r6, r3]
	ldrb	r3, [r5, #1]	@ zero_extendqisi2
	strb	r3, [lr, #1]
	ldr	r4, [r0, #16]
	cmp	r4, ip
	bhi	.L13
	b	.L30
	.size	tiff_paste_tile, .-tiff_paste_tile
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
