	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ff_tilt_compensation
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_tilt_compensation
	.p2align	4, 0x90
_ff_tilt_compensation:                  ## @ff_tilt_compensation
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movslq	%edx, %rax
	movss	-4(%rsi,%rax,4), %xmm1          ## xmm1 = mem[0],zero,zero,zero
	xorps	LCPI0_0(%rip), %xmm0
	cmpl	$2, %edx
	jl	LBB0_23
## %bb.1:
	movl	%edx, %ecx
	leal	-1(%rcx), %r11d
	movl	%r11d, %r10d
	cmpl	$1, %r11d
	movq	%r10, %r9
	adcq	$-1, %r9
	incq	%r9
	cmpq	$8, %r9
	jae	LBB0_3
LBB0_20:
	movq	%r10, %rax
LBB0_21:
	incq	%rax
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rax), %ecx
	movss	(%rsi,%rcx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	addss	-4(%rsi,%rax,4), %xmm2
	movss	%xmm2, -4(%rsi,%rax,4)
	decq	%rax
	cmpq	$1, %rax
	ja	LBB0_22
LBB0_23:
	mulss	(%rdi), %xmm0
	addss	(%rsi), %xmm0
	movss	%xmm0, (%rsi)
	movss	%xmm1, (%rdi)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	cmpl	$1, %r11d
	movq	%r10, %r8
	adcq	$-1, %r8
	addl	$-2, %ecx
	movl	$4, %edx
	movq	%r8, %rax
	mulq	%rdx
	seto	%r14b
	cmpl	%r8d, %ecx
	jb	LBB0_20
## %bb.4:
	shrq	$32, %r8
	jne	LBB0_20
## %bb.5:
	leaq	(%rsi,%r10,4), %rdx
	movq	%rdx, %rbx
	subq	%rax, %rbx
	cmpq	%rdx, %rbx
	ja	LBB0_20
## %bb.6:
	testb	%r14b, %r14b
	jne	LBB0_20
## %bb.7:
	leaq	(%rsi,%rcx,4), %rbx
	movq	%rbx, %rdx
	subq	%rax, %rdx
	cmpq	%rbx, %rdx
	ja	LBB0_20
## %bb.8:
	testb	%r14b, %r14b
	jne	LBB0_20
## %bb.9:
	xorl	%eax, %eax
	testl	%r11d, %r11d
	setne	%al
	leaq	(%rsi,%rax,4), %rdx
	leaq	(%rsi,%rcx,4), %rbx
	addq	$4, %rbx
	cmpq	%rbx, %rdx
	jae	LBB0_12
## %bb.10:
	leaq	(%rsi,%r10,4), %rdx
	addq	$4, %rdx
	addq	%rcx, %rax
	subq	%r10, %rax
	leaq	(%rsi,%rax,4), %rax
	cmpq	%rdx, %rax
	jb	LBB0_20
LBB0_12:
	movq	%r9, %r8
	andq	$-8, %r8
	movq	%r10, %rax
	subq	%r8, %rax
	movaps	%xmm0, %xmm2
	shufps	$0, %xmm0, %xmm2                ## xmm2 = xmm2[0,0],xmm0[0,0]
	movq	%r8, %r11
	negq	%r11
	movl	$4294967295, %r14d              ## imm = 0xFFFFFFFF
	addq	%r10, %r14
	leaq	(%rsi,%r10,4), %rdx
	addq	$-12, %rdx
	xorl	%ecx, %ecx
	shufps	$27, %xmm2, %xmm2               ## xmm2 = xmm2[3,2,1,0]
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%rcx), %ebx
	movups	-28(%rsi,%rbx,4), %xmm3
	movups	-12(%rsi,%rbx,4), %xmm4
	movups	-16(%rdx,%rcx,4), %xmm5
	movups	(%rdx,%rcx,4), %xmm6
	mulps	%xmm2, %xmm4
	addps	%xmm6, %xmm4
	movups	%xmm4, (%rdx,%rcx,4)
	mulps	%xmm2, %xmm3
	addps	%xmm5, %xmm3
	movups	%xmm3, -16(%rdx,%rcx,4)
	addq	$-8, %rcx
	cmpq	%rcx, %r11
	jne	LBB0_13
## %bb.14:
	cmpq	%r8, %r9
	jne	LBB0_21
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_tilt_compensation           ; -- Begin function ff_tilt_compensation
	.p2align	2
_ff_tilt_compensation:                  ; @ff_tilt_compensation
	.cfi_startproc
; %bb.0:
	sub	w10, w2, #1
	ldr	s1, [x1, w10, sxtw #2]
	fneg	s0, s0
	subs	w9, w2, #2
	b.lt	LBB0_22
; %bb.1:
	cmp	w10, #0
	cset	w8, ne
	sub	x8, x10, x8
	add	x8, x8, #1
	cmp	x8, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x9, x10
	b	LBB0_21
LBB0_3:
	cmp	w10, #0
	cset	w11, ne
	sub	x12, x10, x11
	cmp	xzr, x12, lsr #62
	cset	w11, ne
	cmp	w9, w12
	b.lo	LBB0_17
; %bb.4:
	lsr	x13, x12, #32
	cbnz	x13, LBB0_18
; %bb.5:
	add	x13, x1, x10, lsl #2
	lsl	x12, x12, #2
	sub	x14, x13, x12
	cmp	x14, x13
	b.hi	LBB0_20
; %bb.6:
	tbnz	w11, #0, LBB0_19
; %bb.7:
	add	x13, x1, w9, uxtw #2
	sub	x12, x13, x12
	cmp	x12, x13
	b.hi	LBB0_15
; %bb.8:
	tbnz	w11, #0, LBB0_16
; %bb.9:
	cmp	w10, #0
	cset	w11, ne
	add	x11, x1, w11, uxtw #2
	add	x12, x1, x10, lsl #2
	cinc	x9, x9, ne
	add	x13, x13, #4
	cmp	x11, x13
	b.hs	LBB0_12
; %bb.10:
	add	x11, x12, #4
	sub	x9, x9, x10
	add	x9, x1, x9, lsl #2
	cmp	x9, x11
	b.hs	LBB0_12
; %bb.11:
	mov	x9, x10
	b	LBB0_21
LBB0_12:
	and	x11, x8, #0xfffffffffffffff0
	sub	x9, x10, x11
	dup.4s	v2, v0[0]
	mov	w13, #-1
	add	x10, x10, x13
	sub	x12, x12, #28
	mov	x13, x11
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x14, x1, w10, uxtw #2
	ldur	q3, [x14, #-12]
	rev64.4s	v3, v3
	ext.16b	v3, v3, v3, #8
	ldur	q4, [x14, #-28]
	rev64.4s	v4, v4
	ext.16b	v4, v4, v4, #8
	ldur	q5, [x14, #-44]
	rev64.4s	v5, v5
	ext.16b	v5, v5, v5, #8
	ldur	q6, [x14, #-60]
	rev64.4s	v6, v6
	ext.16b	v6, v6, v6, #8
	ldp	q16, q7, [x12]
	rev64.4s	v7, v7
	ext.16b	v7, v7, v7, #8
	rev64.4s	v16, v16
	ext.16b	v16, v16, v16, #8
	ldp	q18, q17, [x12, #-32]
	rev64.4s	v17, v17
	ext.16b	v17, v17, v17, #8
	rev64.4s	v18, v18
	ext.16b	v18, v18, v18, #8
	fmla.4s	v7, v3, v2
	fmla.4s	v16, v4, v2
	fmla.4s	v17, v5, v2
	fmla.4s	v18, v6, v2
	rev64.4s	v3, v7
	ext.16b	v3, v3, v3, #8
	rev64.4s	v4, v16
	ext.16b	v4, v4, v4, #8
	stp	q4, q3, [x12]
	rev64.4s	v3, v17
	ext.16b	v3, v3, v3, #8
	rev64.4s	v4, v18
	ext.16b	v4, v4, v4, #8
	stp	q4, q3, [x12, #-32]
	sub	x10, x10, #16
	sub	x12, x12, #64
	sub	x13, x13, #16
	cbnz	x13, LBB0_13
; %bb.14:
	cmp	x8, x11
	b.ne	LBB0_21
	b	LBB0_22
LBB0_15:
	mov	x9, x10
	b	LBB0_21
LBB0_16:
	mov	x9, x10
	b	LBB0_21
LBB0_17:
	mov	x9, x10
	b	LBB0_21
LBB0_18:
	mov	x9, x10
	b	LBB0_21
LBB0_19:
	mov	x9, x10
	b	LBB0_21
LBB0_20:
	mov	x9, x10
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	lsl	x8, x9, #2
	subs	x9, x9, #1
	ldr	s2, [x1, w9, uxtw #2]
	ldr	s3, [x1, x8]
	fmadd	s2, s0, s2, s3
	str	s2, [x1, x8]
	b.hi	LBB0_21
LBB0_22:
	ldr	s2, [x0]
	ldr	s3, [x1]
	fmadd	s0, s0, s2, s3
	str	s0, [x1]
	str	s1, [x0]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
