	.file	"extr_element.c_element_apply_orientation.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	element_apply_orientation
	.type	element_apply_orientation, @function
element_apply_orientation:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR [rdi]
	test	edx, edx
	je	.L1
	mov	rax, QWORD PTR 8[rdi]
	sub	edx, 1
	mov	r10d, DWORD PTR VIDEO_LAYOUT_SWAP_XY[rip]
	mov	r9d, DWORD PTR VIDEO_LAYOUT_FLIP_X[rip]
	mov	r8d, DWORD PTR VIDEO_LAYOUT_FLIP_Y[rip]
	lea	rcx, [rdx+rdx*4]
	movss	xmm4, DWORD PTR .LC0[rip]
	lea	rdx, 20[rax]
	and	r10d, esi
	and	r9d, esi
	and	r8d, esi
	lea	rcx, [rdx+rcx*4]
	movaps	xmm5, xmm4
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	add	rdx, 20
.L6:
	xor	DWORD PTR [rax], esi
	test	r10d, r10d
	je	.L3
	movss	xmm2, DWORD PTR 4[rax]
	movss	xmm0, DWORD PTR 12[rax]
	movss	xmm1, DWORD PTR 16[rax]
	movss	xmm3, DWORD PTR 8[rax]
	movss	DWORD PTR 16[rax], xmm0
	movss	DWORD PTR 4[rax], xmm3
	movss	DWORD PTR 8[rax], xmm2
	movss	DWORD PTR 12[rax], xmm1
.L3:
	test	r9d, r9d
	je	.L4
	movaps	xmm0, xmm4
	subss	xmm0, DWORD PTR 4[rax]
	subss	xmm0, DWORD PTR 12[rax]
	movss	DWORD PTR 4[rax], xmm0
.L4:
	test	r8d, r8d
	je	.L5
	movaps	xmm0, xmm5
	subss	xmm0, DWORD PTR 8[rax]
	subss	xmm0, DWORD PTR 16[rax]
	movss	DWORD PTR 8[rax], xmm0
.L5:
	mov	rax, rdx
	cmp	rdx, rcx
	jne	.L21
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	element_apply_orientation, .-element_apply_orientation
	.comm	VIDEO_LAYOUT_SWAP_XY,4,4
	.comm	VIDEO_LAYOUT_FLIP_Y,4,4
	.comm	VIDEO_LAYOUT_FLIP_X,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1065353216
	.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_element.c_element_apply_orientation.c"
	.text
	.global	__aeabi_fsub
	.align	2
	.global	element_apply_orientation
	.syntax unified
	.arm
	.fpu softvfp
	.type	element_apply_orientation, %function
element_apply_orientation:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, [r0]
	cmp	r5, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r6, r1
	mov	r10, #1065353216
	ldr	r1, .L22
	ldr	r2, .L22+4
	ldr	r3, .L22+8
	ldr	r4, [r0, #4]
	ldr	r9, [r1]
	ldr	r8, [r2]
	ldr	r7, [r3]
	add	r5, r5, r5, lsl #2
	add	r5, r4, r5, lsl #2
	and	r9, r9, r6
	and	r8, r8, r6
	and	r7, r7, r6
.L6:
	ldr	r3, [r4]
	cmp	r9, #0
	eor	r3, r3, r6
	str	r3, [r4]
	beq	.L3
	ldr	r0, [r4, #4]	@ float
	ldr	r1, [r4, #8]	@ float
	ldr	r2, [r4, #12]	@ float
	ldr	r3, [r4, #16]	@ float
	str	r0, [r4, #8]	@ float
	str	r1, [r4, #4]	@ float
	str	r2, [r4, #16]	@ float
	str	r3, [r4, #12]	@ float
.L3:
	cmp	r8, #0
	beq	.L4
	ldr	r1, [r4, #4]	@ float
	mov	r0, r10
	bl	__aeabi_fsub
	ldr	r1, [r4, #12]	@ float
	bl	__aeabi_fsub
	str	r0, [r4, #4]	@ float
.L4:
	cmp	r7, #0
	beq	.L5
	ldr	r1, [r4, #8]	@ float
	mov	r0, r10
	bl	__aeabi_fsub
	ldr	r1, [r4, #16]	@ float
	bl	__aeabi_fsub
	str	r0, [r4, #8]	@ float
.L5:
	add	r4, r4, #20
	cmp	r4, r5
	bne	.L6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
	.align	2
.L22:
	.word	VIDEO_LAYOUT_SWAP_XY
	.word	VIDEO_LAYOUT_FLIP_X
	.word	VIDEO_LAYOUT_FLIP_Y
	.size	element_apply_orientation, .-element_apply_orientation
	.comm	VIDEO_LAYOUT_SWAP_XY,4,4
	.comm	VIDEO_LAYOUT_FLIP_Y,4,4
	.comm	VIDEO_LAYOUT_FLIP_X,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
