#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int get_symmetry_with_site_tensors(int ***, double **, int *, double **, int *,
                                   int /*<<< orphan*/, int const, double **,
                                   double **, int const *, double const *,
                                   int const, int const, int const,
                                   double const, double);
int spg_get_symmetry_with_site_tensors(
    int rotation[][3][3], double translation[][3], int equivalent_atoms[],
    double primitive_lattice[3][3], int *spin_flips, const int num_operations,
    double lattice[3][3], double position[][3], const int types[],
    const double *tensors, const int tensor_rank, const int num_atom,
    const int is_magnetic, const double symprec) {
  return get_symmetry_with_site_tensors(
      rotation, translation, equivalent_atoms, primitive_lattice, spin_flips, 0,
      num_operations, lattice, position, types, tensors, tensor_rank, num_atom,
      is_magnetic, symprec, -1.0);
}


x86 assembly (clang, -O0):
<spg_get_symmetry_with_site_tensors>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    0x40(%rbp),%eax
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %rdx,-0x40(%rbp)
mov    %rcx,-0x48(%rbp)
mov    %r8,-0x50(%rbp)
mov    %r9d,-0x54(%rbp)
movsd  %xmm0,-0x60(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    -0x50(%rbp),%r8
mov    -0x54(%rbp),%r13d
mov    0x10(%rbp),%r12
mov    0x18(%rbp),%r15
mov    0x20(%rbp),%r14
mov    0x28(%rbp),%rbx
mov    0x30(%rbp),%r11d
mov    0x38(%rbp),%r10d
mov    0x40(%rbp),%eax
movsd  -0x60(%rbp),%xmm0
xor    %r9d,%r9d
movsd  0xe66(%rip),%xmm1
mov    %r13d,(%rsp)
mov    %r12,0x8(%rsp)
mov    %r15,0x10(%rsp)
mov    %r14,0x18(%rsp)
mov    %rbx,0x20(%rsp)
mov    %r11d,0x28(%rsp)
mov    %r10d,0x30(%rsp)
mov    %eax,0x38(%rsp)
call   1030 <get_symmetry_with_site_tensors@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<spg_get_symmetry_with_site_tensors>:
sub    $0x48,%rsp
movaps 0x50(%rsp),%xmm1
movaps 0x60(%rsp),%xmm2
mov    0x70(%rsp),%r10d
mov    0x78(%rsp),%r11d
mov    0x80(%rsp),%eax
mov    %eax,0x38(%rsp)
mov    %r11d,0x30(%rsp)
mov    %r10d,0x28(%rsp)
movups %xmm2,0x18(%rsp)
movups %xmm1,0x8(%rsp)
mov    %r9d,(%rsp)
movsd  0xead(%rip),%xmm1
xor    %r9d,%r9d
call   1030 <get_symmetry_with_site_tensors@plt>
add    $0x48,%rsp
ret

LLVM IR (-O0):
define i32 @spg_get_symmetry_with_site_tensors([3 x [3 x i32]]* %0, [3 x double]* %1, i32* %2, [3 x double]* %3, i32* %4, i32 %5, [3 x double]* %6, [3 x double]* %7, i32* %8, double* %9, i32 %10, i32 %11, i32 %12, double %13) {
%15 = alloca [3 x [3 x i32]]*
%16 = alloca [3 x double]*
%17 = alloca i32*
%18 = alloca [3 x double]*
%19 = alloca i32*
%20 = alloca i32
%21 = alloca [3 x double]*
%22 = alloca [3 x double]*
%23 = alloca i32*
%24 = alloca double*
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca double
store [3 x [3 x i32]]* %0, [3 x [3 x i32]]** %15
store [3 x double]* %1, [3 x double]** %16
store i32* %2, i32** %17
store [3 x double]* %3, [3 x double]** %18
store i32* %4, i32** %19
store i32 %5, i32* %20
store [3 x double]* %6, [3 x double]** %21
store [3 x double]* %7, [3 x double]** %22
store i32* %8, i32** %23
store double* %9, double** %24
store i32 %10, i32* %25
store i32 %11, i32* %26
store i32 %12, i32* %27
store double %13, double* %28
%29 = load [3 x [3 x i32]]*, [3 x [3 x i32]]** %15
%30 = bitcast [3 x [3 x i32]]* %29 to i32***
%31 = load [3 x double]*, [3 x double]** %16
%32 = bitcast [3 x double]* %31 to double**
%33 = load i32*, i32** %17
%34 = load [3 x double]*, [3 x double]** %18
%35 = bitcast [3 x double]* %34 to double**
%36 = load i32*, i32** %19
%37 = load i32, i32* %20
%38 = load [3 x double]*, [3 x double]** %21
%39 = bitcast [3 x double]* %38 to double**
%40 = load [3 x double]*, [3 x double]** %22
%41 = bitcast [3 x double]* %40 to double**
%42 = load i32*, i32** %23
%43 = load double*, double** %24
%44 = load i32, i32* %25
%45 = load i32, i32* %26
%46 = load i32, i32* %27
%47 = load double, double* %28
%48 = call i32 @get_symmetry_with_site_tensors(i32*** %30, double** %32, i32* %33, double** %35, i32* %36, i32 0, i32 %37, double** %39, double** %41, i32* %42, double* %43, i32 %44, i32 %45, i32 %46, double %47, double -1.000000e+00)
ret i32 %48
}

LLVM IR (-O2):
define i32 @spg_get_symmetry_with_site_tensors([3 x [3 x i32]]* %0, [3 x double]* %1, i32* %2, [3 x double]* %3, i32* %4, i32 %5, [3 x double]* %6, [3 x double]* %7, i32* %8, double* %9, i32 %10, i32 %11, i32 %12, double %13) {
%15 = bitcast [3 x [3 x i32]]* %0 to i32***
%16 = bitcast [3 x double]* %1 to double**
%17 = bitcast [3 x double]* %3 to double**
%18 = bitcast [3 x double]* %6 to double**
%19 = bitcast [3 x double]* %7 to double**
%20 = tail call i32 @get_symmetry_with_site_tensors(i32*** %15, double** %16, i32* %2, double** %17, i32* %4, i32 0, i32 %5, double** %18, double** %19, i32* %8, double* %9, i32 %10, i32 %11, i32 %12, double %13, double -1.000000e+00)
ret i32 %20
}