// File: /workspace/github_cpp_makefile_star2_O1/Kingsford-Group[P]ghost2/include/Eigen/src/Core/util/Memory.h
// Function: Eigen::internal::queryCacheSizes(int&, int&, int&)
inline void queryCacheSizes(int& l1, int& l2, int& l3)
{
  #ifdef EIGEN_CPUID
  int abcd[4];

  // identify the CPU vendor
  EIGEN_CPUID(abcd,0x0,0);
  int max_std_funcs = abcd[1];
  if(cpuid_is_vendor(abcd,"GenuineIntel"))
    queryCacheSizes_intel(l1,l2,l3,max_std_funcs);
  else if(cpuid_is_vendor(abcd,"AuthenticAMD") || cpuid_is_vendor(abcd,"AMDisbetter!"))
    queryCacheSizes_amd(l1,l2,l3);
  else
    // by default let's use Intel's API
    queryCacheSizes_intel(l1,l2,l3,max_std_funcs);

  // here is the list of other vendors:
//   ||cpuid_is_vendor(abcd,"VIA VIA VIA ")
//   ||cpuid_is_vendor(abcd,"CyrixInstead")
//   ||cpuid_is_vendor(abcd,"CentaurHauls")
//   ||cpuid_is_vendor(abcd,"GenuineTMx86")
//   ||cpuid_is_vendor(abcd,"TransmetaCPU")
//   ||cpuid_is_vendor(abcd,"RiseRiseRise")
//   ||cpuid_is_vendor(abcd,"Geode by NSC")
//   ||cpuid_is_vendor(abcd,"SiS SiS SiS ")
//   ||cpuid_is_vendor(abcd,"UMC UMC UMC ")
//   ||cpuid_is_vendor(abcd,"NexGenDriven")
  #else
  l1 = l2 = l3 = -1;
  #endif
}

// Assembly:
pushq %rbx
movq %rdx, %r8
xorl %r9d, %r9d
xorl %eax, %eax
xorl %ecx, %ecx
xchgq %rbx, %r10
cpuid
xchgq %rbx, %r10
movl %r10d, %eax
xorl $0x756e6547, %eax       # imm = 0x756E6547
movl %edx, %r11d
xorl $0x49656e69, %r11d      # imm = 0x49656E69
orl %eax, %r11d
movl %ecx, %eax
xorl $0x6c65746e, %eax       # imm = 0x6C65746E
orl %r11d, %eax
jne 0x41a4a
movl %r9d, (%r8)
movl %r9d, (%rsi)
movl %r9d, (%rdi)
movl $0x4, %eax
movl %r9d, %ecx
xchgq %rbx, %r10
cpuid
xchgq %rbx, %r10
movl %eax, %edx
andl $0xd, %edx
cmpl $0x1, %edx
jne 0x41a2f
movl %eax, %r11d
shrl $0x5, %r11d
andl $0x7, %r11d
movq %rdi, %rdx
cmpl $0x1, %r11d
je 0x419fd
cmpl $0x3, %r11d
je 0x419fa
movq %rsi, %rdx
cmpl $0x2, %r11d
je 0x419fd
jmp 0x41a2f
movq %r8, %rdx
movl %r10d, %r11d
shrl $0x16, %r11d
movl %r10d, %ebx
shrl $0xc, %ebx
andl $0x3ff, %ebx            # imm = 0x3FF
andl $0xfff, %r10d           # imm = 0xFFF
incl %r11d
incl %ebx
incl %r10d
imull %ebx, %r10d
incl %ecx
imull %r11d, %ecx
imull %r10d, %ecx
movl %ecx, (%rdx)
testb $0xf, %al
je 0x41ac4
leal 0x1(%r9), %eax
cmpl $0xf, %r9d
movl %eax, %r9d
jb 0x419bb
jmp 0x41ac4
movl %r10d, %eax
xorl $0x68747541, %eax       # imm = 0x68747541
movl %edx, %r9d
xorl $0x69746e65, %r9d       # imm = 0x69746E65
orl %eax, %r9d
movl %ecx, %eax
xorl $0x444d4163, %eax       # imm = 0x444D4163
orl %r9d, %eax
je 0x41a85
movl %r10d, %eax
xorl $0x69444d41, %eax       # imm = 0x69444D41
xorl $0x74656273, %edx       # imm = 0x74656273
orl %eax, %edx
xorl $0x21726574, %ecx       # imm = 0x21726574
orl %edx, %ecx
jne 0x41ac6
movl $0x80000005, %eax       # imm = 0x80000005
xorl %ecx, %ecx
xchgq %rbx, %r9
cpuid
xchgq %rbx, %r9
sarl $0xe, %ecx
movl $0xfffffc00, %r9d       # imm = 0xFFFFFC00
andl %r9d, %ecx
movl %ecx, (%rdi)
movl $0x80000006, %eax       # imm = 0x80000006
xorl %ecx, %ecx
xchgq %rbx, %rdi
cpuid
xchgq %rbx, %rdi
sarl $0x6, %ecx
andl %r9d, %ecx
movl %ecx, (%rsi)
addl %edx, %edx
andl $0x1ff80000, %edx       # imm = 0x1FF80000
movl %edx, (%r8)
popq %rbx
retq
cmpl $0x4, %r10d
jl 0x41b6e
xorl %r9d, %r9d
movl %r9d, (%r8)
movl %r9d, (%rsi)
movl %r9d, (%rdi)
movl $0x4, %eax
movl %r9d, %ecx
xchgq %rbx, %r10
cpuid
xchgq %rbx, %r10
movl %eax, %edx
andl $0xd, %edx
cmpl $0x1, %edx
jne 0x41b50
movl %eax, %r11d
shrl $0x5, %r11d
andl $0x7, %r11d
movq %rdi, %rdx
cmpl $0x1, %r11d
je 0x41b1e
cmpl $0x3, %r11d
je 0x41b1b
movq %rsi, %rdx
cmpl $0x2, %r11d
je 0x41b1e
jmp 0x41b50
movq %r8, %rdx
movl %r10d, %r11d
shrl $0x16, %r11d
movl %r10d, %ebx
shrl $0xc, %ebx
andl $0x3ff, %ebx            # imm = 0x3FF
andl $0xfff, %r10d           # imm = 0xFFF
incl %r11d
incl %ebx
incl %r10d
imull %ebx, %r10d
incl %ecx
imull %r11d, %ecx
imull %r10d, %ecx
movl %ecx, (%rdx)
testb $0xf, %al
je 0x41ac4
leal 0x1(%r9), %eax
cmpl $0xf, %r9d
movl %eax, %r9d
jb 0x41adc
jmp 0x41ac4
movq %r8, %rdx
popq %rbx
jmp 0x41b77