	.file	"extr_ipu-image-convert.c_transform_tile_index.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"task %u: ctx %p: [%d,%d] --> [%d,%d]\n"
	.text
	.p2align 4
	.type	transform_tile_index, @function
transform_tile_index:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR [rdi]
	cmp	ecx, DWORD PTR IPU_ROTATE_NONE[rip]
	mov	eax, DWORD PTR 12[rdi]
	je	.L16
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	add	esi, esi
	lea	r8d, [rdx+rdx]
	sub	eax, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	r9d, esi
	sub	r8d, eax
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, DWORD PTR 16[rdi]
	lea	ebp, -1[rdi]
	sub	r9d, ebp
	test	DWORD PTR IPU_ROT_BIT_90[rip], ecx
	jne	.L17
	mov	ebp, r8d
	mov	r12d, r9d
.L4:
	mov	eax, ebp
	lea	rsi, .LC0[rip]
	neg	eax
	test	DWORD PTR IPU_ROT_BIT_HFLIP[rip], ecx
	cmovne	ebp, eax
	mov	eax, r12d
	neg	eax
	test	DWORD PTR IPU_ROT_BIT_VFLIP[rip], ecx
	mov	rcx, rbx
	cmovne	r12d, eax
	mov	rax, QWORD PTR 24[rbx]
	mov	rdx, QWORD PTR 8[rax]
	mov	rdi, QWORD PTR [rdx]
	push	r12
	.cfi_def_cfa_offset 40
	push	rbp
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR [rax]
	mov	edi, DWORD PTR [rdi]
	call	dev_dbg@PLT
	mov	eax, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 4[rbx]
	lea	eax, -1[r12+rax]
	lea	edi, -1[rdx+rbp]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	imul	edx, eax
	mov	eax, edi
	shr	eax, 31
	add	eax, edi
	sar	eax
	add	eax, edx
	pop	rdx
	.cfi_def_cfa_offset 40
	pop	rcx
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	sub	ebp, esi
	mov	r12d, r8d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	imul	esi, eax
	lea	eax, [rsi+rdx]
	ret
	.cfi_endproc
.LFE0:
	.size	transform_tile_index, .-transform_tile_index
	.comm	IPU_ROT_BIT_VFLIP,4,4
	.comm	IPU_ROT_BIT_HFLIP,4,4
	.comm	IPU_ROT_BIT_90,4,4
	.comm	IPU_ROTATE_NONE,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_ipu-image-convert.c_transform_tile_index.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"task %u: ctx %p: [%d,%d] --> [%d,%d]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	transform_tile_index, %function
transform_tile_index:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, .L17
	ldr	r3, [r4]
	ldr	r0, [r0]
	sub	sp, sp, #16
	cmp	r3, r0
	ldr	r0, [r4, #12]
	beq	.L16
	ldr	ip, .L17+4
	ldr	r5, [r4, #16]
	ldr	ip, [ip]
	sub	r0, r0, #1
	tst	r3, ip
	sub	r5, r5, #1
	rsb	ip, r0, r2, lsl #1
	rsb	lr, r5, r1, lsl #1
	movne	r6, ip
	moveq	r5, ip
	moveq	r6, lr
	ldr	r2, .L17+8
	lsl	r1, r1, #1
	ldr	r2, [r2]
	subne	r5, r5, r1
	tst	r3, r2
	ldr	r2, .L17+12
	rsbne	r5, r5, #0
	ldr	r2, [r2]
	tst	r3, r2
	ldr	r2, [r4, #20]
	rsbne	r6, r6, #0
	ldr	r1, [r2, #4]
	mov	r3, r4
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r0, [r1]
	stm	sp, {ip, lr}
	ldr	r1, .L17+16
	str	r6, [sp, #12]
	str	r5, [sp, #8]
	bl	dev_dbg
	ldmib	r4, {r2, ip}
	sub	r3, ip, #1
	sub	r1, r2, #1
	add	r1, r1, r5
	add	r3, r3, r6
	add	r3, r3, r3, lsr #31
	add	r0, r1, r1, lsr #31
	asr	r0, r0, #1
	asr	r1, r3, #1
	mla	r0, r2, r1, r0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L16:
	mla	r0, r1, r0, r2
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L18:
	.align	2
.L17:
	.word	IPU_ROTATE_NONE
	.word	IPU_ROT_BIT_90
	.word	IPU_ROT_BIT_HFLIP
	.word	IPU_ROT_BIT_VFLIP
	.word	.LC0
	.size	transform_tile_index, .-transform_tile_index
	.comm	IPU_ROT_BIT_VFLIP,4,4
	.comm	IPU_ROT_BIT_HFLIP,4,4
	.comm	IPU_ROT_BIT_90,4,4
	.comm	IPU_ROTATE_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
