#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 const);
int spgat_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, const double angle_tolerance) {
  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, angle_tolerance);
}


x86 assembly (clang, -O0):
<spgat_get_symmetry_with_site_tensors>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%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)
movsd  %xmm1,-0x68(%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
movsd  -0x68(%rbp),%xmm1
xor    %r9d,%r9d
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    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<spgat_get_symmetry_with_site_tensors>:
sub    $0x48,%rsp
movaps 0x50(%rsp),%xmm2
movaps 0x60(%rsp),%xmm3
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 %xmm3,0x18(%rsp)
movups %xmm2,0x8(%rsp)
mov    %r9d,(%rsp)
xor    %r9d,%r9d
call   1030 <get_symmetry_with_site_tensors@plt>
add    $0x48,%rsp
ret

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

LLVM IR (-O2):
define i32 @spgat_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, double %14) {
%16 = bitcast [3 x [3 x i32]]* %0 to i32***
%17 = bitcast [3 x double]* %1 to double**
%18 = bitcast [3 x double]* %3 to double**
%19 = bitcast [3 x double]* %6 to double**
%20 = bitcast [3 x double]* %7 to double**
%21 = tail call i32 @get_symmetry_with_site_tensors(i32*** %16, double** %17, i32* %2, double** %18, i32* %4, i32 0, i32 %5, double** %19, double** %20, i32* %8, double* %9, i32 %10, i32 %11, i32 %12, double %13, double %14)
ret i32 %21
}