	.file	"extr_vf_v360.c_xyz_to_eac.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xyz_to_eac, @function
xyz_to_eac:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm7, xmm7
	pxor	xmm3, xmm3
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	cvtsi2ss	xmm7, edx
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	cvtsi2ss	xmm3, ecx
	mov	r13d, ecx
	sub	r14d, 1
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r9
	sub	r13d, 1
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	movss	xmm1, DWORD PTR .LC0[rip]
	mov	r9, QWORD PTR 144[rsp]
	lea	rcx, 64[rsp]
	lea	r8, 68[rsp]
	mov	rbp, QWORD PTR 152[rsp]
	movaps	xmm9, xmm1
	movaps	xmm5, xmm1
	lea	rdx, 60[rsp]
	divss	xmm9, xmm7
	mov	QWORD PTR 40[rsp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	movss	DWORD PTR 36[rsp], xmm7
	movss	DWORD PTR 28[rsp], xmm3
	divss	xmm5, xmm3
	movss	DWORD PTR 32[rsp], xmm9
	movss	DWORD PTR 24[rsp], xmm5
	call	xyz_to_cube@PLT
	movsx	rdx, DWORD PTR 68[rsp]
	mov	rax, QWORD PTR [r15]
	movss	xmm0, DWORD PTR 60[rsp]
	mov	r15d, DWORD PTR [rax+rdx*4]
	call	atanf@PLT
	movss	xmm2, DWORD PTR M_2_PI[rip]
	movss	DWORD PTR 16[rsp], xmm0
	movss	xmm0, DWORD PTR 64[rsp]
	movss	DWORD PTR 12[rsp], xmm2
	call	atanf@PLT
	movsx	rax, r15d
	mov	edx, r15d
	pxor	xmm6, xmm6
	movss	xmm2, DWORD PTR 12[rsp]
	movss	xmm1, DWORD PTR 16[rsp]
	sar	edx, 31
	movaps	xmm8, xmm0
	imul	rax, rax, 1431655766
	movss	xmm4, DWORD PTR .LC1[rip]
	movss	xmm9, DWORD PTR 32[rsp]
	mulss	xmm1, xmm2
	movss	xmm5, DWORD PTR 24[rsp]
	movss	xmm7, DWORD PTR 36[rsp]
	mulss	xmm2, xmm8
	movaps	xmm3, xmm4
	shr	rax, 32
	sub	eax, edx
	lea	edx, [rax+rax*2]
	sub	r15d, edx
	movaps	xmm0, xmm1
	movss	xmm1, DWORD PTR .LC2[rip]
	cvtsi2ss	xmm6, r15d
	addss	xmm0, xmm4
	addss	xmm0, xmm6
	movaps	xmm6, xmm9
	addss	xmm6, xmm9
	subss	xmm1, xmm6
	mulss	xmm0, xmm1
	movaps	xmm1, xmm2
	movaps	xmm2, xmm5
	addss	xmm2, xmm5
	addss	xmm1, xmm4
	divss	xmm0, DWORD PTR .LC3[rip]
	addss	xmm0, xmm9
	subss	xmm3, xmm2
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, eax
	mulss	xmm0, xmm7
	mulss	xmm1, xmm3
	movss	xmm3, DWORD PTR 28[rsp]
	mulss	xmm2, xmm4
	subss	xmm0, xmm4
	addss	xmm1, xmm5
	movss	DWORD PTR 60[rsp], xmm0
	addss	xmm1, xmm2
	mulss	xmm1, xmm3
	subss	xmm1, xmm4
	movss	DWORD PTR 64[rsp], xmm1
	call	floorf@PLT
	movss	xmm0, DWORD PTR 64[rsp]
	mov	r15d, eax
	mov	DWORD PTR 12[rsp], eax
	call	floorf@PLT
	pxor	xmm1, xmm1
	movss	xmm0, DWORD PTR 60[rsp]
	mov	r9, QWORD PTR 40[rsp]
	cvtsi2ss	xmm1, r15d
	subss	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	movss	DWORD PTR [r9], xmm0
	movss	xmm0, DWORD PTR 64[rsp]
	subss	xmm0, xmm1
	movss	DWORD PTR 0[rbp], xmm0
	lea	ebp, -1[rax]
	lea	rax, 64[rbx]
	mov	QWORD PTR 16[rsp], rax
.L2:
	mov	r15, -1
.L3:
	mov	eax, DWORD PTR 12[rsp]
	mov	edx, r14d
	xor	esi, esi
	lea	edi, [rax+r15]
	call	av_clip@PLT
	mov	edx, r13d
	xor	esi, esi
	mov	edi, ebp
	mov	DWORD PTR 4[rbx+r15*4], eax
	call	av_clip@PLT
	mov	DWORD PTR 4[r12+r15*4], eax
	add	r15, 1
	cmp	r15, 3
	jne	.L3
	add	rbx, 16
	add	ebp, 1
	add	r12, 16
	cmp	rbx, QWORD PTR 16[rsp]
	jne	.L2
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 88
	.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
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xyz_to_eac, .-xyz_to_eac
	.comm	M_2_PI,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1073741824
	.align 4
.LC1:
	.long	1056964608
	.align 4
.LC2:
	.long	1065353216
	.align 4
.LC3:
	.long	1077936128
	.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_vf_v360.c_xyz_to_eac.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.global	__aeabi_fsub
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xyz_to_eac, %function
xyz_to_eac:
	@ args = 16, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	ldr	r3, .L10
	sub	sp, sp, #60
	mov	r4, r0
	mov	r0, r2
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	mov	r9, r2
	mov	fp, r1
	bl	__aeabi_i2f
	mov	r10, r0
	mov	r0, #1073741824
	mov	r1, r10
	bl	__aeabi_fdiv
	mov	r6, r0
	mov	r0, r5
	str	r5, [sp, #12]
	bl	__aeabi_i2f
	mov	r7, r0
	mov	r0, #1073741824
	mov	r1, r7
	bl	__aeabi_fdiv
	ldr	ip, [sp, #96]
	ldr	lr, [sp, #104]
	ldr	r8, [sp, #108]
	add	r3, sp, #48
	str	ip, [sp, #16]
	ldr	ip, [sp, #100]
	mov	r5, r0
	mov	r1, fp
	mov	r0, r4
	str	r3, [sp]
	add	r2, sp, #40
	add	r3, sp, #44
	str	ip, [sp, #20]
	str	lr, [sp, #24]
	str	r8, [sp, #28]
	bl	xyz_to_cube
	ldr	r2, [sp, #48]
	ldr	r3, [r4]
	ldr	r0, [sp, #40]	@ float
	ldr	r3, [r3, r2, lsl #2]
	sub	r9, r9, #1
	str	r3, [sp, #36]
	bl	atanf
	ldr	r2, .L10+4
	mov	r4, r0
	ldr	r0, [sp, #44]	@ float
	ldr	r8, [r2]	@ float
	bl	atanf
	mov	r2, r0
	mov	r1, r8
	mov	r0, r4
	str	r2, [sp, #32]
	bl	__aeabi_fmul
	mov	r1, #1056964608
	bl	__aeabi_fadd
	ldr	r4, .L10+8
	ldr	r3, [sp, #36]
	mov	fp, r0
	smull	r1, r4, r3, r4
	sub	r4, r4, r3, asr #31
	add	r0, r4, r4, lsl #1
	sub	r0, r3, r0
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, fp
	bl	__aeabi_fadd
	mov	r1, r6
	mov	fp, r0
	mov	r0, r6
	bl	__aeabi_fadd
	mov	r1, r0
	mov	r0, #1065353216
	bl	__aeabi_fsub
	mov	r1, r0
	mov	r0, fp
	bl	__aeabi_fmul
	ldr	r1, .L10+12
	bl	__aeabi_fdiv
	mov	r1, r6
	bl	__aeabi_fadd
	mov	r1, r10
	bl	__aeabi_fmul
	mov	r1, #1056964608
	bl	__aeabi_fsub
	mov	r6, r0
	ldr	r2, [sp, #32]
	mov	r0, r8
	mov	r1, r2
	str	r6, [sp, #40]	@ float
	bl	__aeabi_fmul
	mov	r1, #1056964608
	bl	__aeabi_fadd
	mov	r1, r5
	mov	r10, r0
	mov	r0, r5
	bl	__aeabi_fadd
	mov	r1, r0
	mov	r0, #1056964608
	bl	__aeabi_fsub
	mov	r1, r0
	mov	r0, r10
	bl	__aeabi_fmul
	mov	r1, r5
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	__aeabi_i2f
	mov	r1, #1056964608
	bl	__aeabi_fmul
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r1, r7
	bl	__aeabi_fmul
	mov	r1, #1056964608
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r6
	str	r3, [sp, #44]	@ float
	bl	floorf
	mov	fp, r0
	ldr	r0, [sp, #44]	@ float
	bl	floorf
	mov	r6, r0
	mov	r0, fp
	bl	__aeabi_i2f
	mov	r1, r0
	ldr	r0, [sp, #40]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	ldr	lr, [sp, #24]
	mov	r0, r6
	str	r3, [lr]	@ float
	bl	__aeabi_i2f
	mov	r1, r0
	ldr	r0, [sp, #44]	@ float
	bl	__aeabi_fsub
	ldr	r2, [sp, #16]
	ldr	r3, [sp, #20]
	ldr	r5, [sp, #12]
	add	r7, r2, #12
	ldr	r2, [sp, #28]
	sub	r1, fp, #1
	sub	r10, r3, #4
	add	r3, r3, #60
	sub	r8, r5, #1
	str	r1, [sp, #16]
	sub	r6, r6, #1
	str	r0, [r2]	@ float
	str	r3, [sp, #12]
.L2:
	mov	fp, r10
	ldr	r5, [sp, #16]
	sub	r4, r7, #16
.L3:
	mov	r2, r9
	mov	r1, #0
	mov	r0, r5
	bl	av_clip
	mov	r2, r8
	str	r0, [r4, #4]!
	mov	r1, #0
	mov	r0, r6
	bl	av_clip
	cmp	r4, r7
	add	r5, r5, #1
	str	r0, [fp, #4]!
	bne	.L3
	ldr	r3, [sp, #12]
	add	r10, r10, #16
	cmp	r10, r3
	add	r6, r6, #1
	add	r7, r4, #16
	bne	.L2
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	M_2_PI
	.word	1431655766
	.word	1077936128
	.size	xyz_to_eac, .-xyz_to_eac
	.comm	M_2_PI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
