// File: /workspace/github_cpp_makefile_star2_O3/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::attachNames(std::vector<SleighSymbol*, std::allocator<SleighSymbol*>>*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>*)
void SleighCompile::attachNames(vector<SleighSymbol *> *symlist,vector<string> *names)

{
  SleighSymbol *dupsym = dedupSymbolList(symlist);
  if (dupsym != (SleighSymbol *)0)
    reportWarning("\"attach names\" list contains duplicate entries: "+dupsym->getName(),true);
  for(int4 i=0;i<symlist->size();++i) {
    ValueSymbol *sym = (ValueSymbol *)(*symlist)[i];
    if (sym == (ValueSymbol *)0) continue;
    PatternValue *patval = sym->getPatternValue();
    if (patval->maxValue() + 1 != names->size()) {
      reportError("Attach name " + sym->getName() + " is wrong size for list", true);
    }
    symtab.replaceSymbol(sym,new NameSymbol(sym->getName(),patval,*names));
  }
  delete names;
  delete symlist;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, (%rsp)
callq 0x301c2
testq %rax, %rax
movq %r15, 0x28(%rsp)
je 0x30543
addq $0x8, %rax
leaq 0x3209b(%rip), %rsi     # 0x6259d
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rax, %rdx
callq 0x1170e
movq (%rsp), %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x2e5f0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3053e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf380
movq 0x28(%rsp), %r15
movq (%r15), %rax
movq 0x8(%r15), %rcx
cmpq %rax, %rcx
je 0x306ab
leaq 0x18(%rsp), %rbp
movq (%rsp), %rdx
addq $0x198, %rdx            # imm = 0x198
movq %rdx, 0x30(%rsp)
xorl %r12d, %r12d
movq (%rax,%r12,8), %r13
testq %r13, %r13
je 0x30695
movq (%r13), %rax
movq %r13, %rdi
callq *0x60(%rax)
movq %rax, %r15
movq (%rax), %rax
movq %r15, %rdi
callq *0x58(%rax)
incq %rax
movq 0x8(%r14), %rcx
subq (%r14), %rcx
sarq $0x5, %rcx
cmpq %rcx, %rax
je 0x30654
leaq 0x8(%r13), %rdx
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
leaq 0x32016(%rip), %rsi     # 0x625ce
callq 0x1170e
movq %rbx, %rdi
leaq 0x31fbe(%rip), %rsi     # 0x62585
callq 0xf780
movq %rbp, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x305ef
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x305f6
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl $0x1, %edx
callq 0x2d000
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x30638
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf380
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x30654
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xf380
movq %rbp, %rbx
movl $0x58, %edi
callq 0xf370
movq %rax, %rbp
leaq 0x8(%r13), %rsi
movq %rax, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x343b6
movq 0x30(%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x47d36
movq 0x28(%rsp), %r15
movq (%r15), %rax
movq 0x8(%r15), %rcx
movq %rbx, %rbp
incq %r12
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r12, %rdx
ja 0x3056b
testq %r14, %r14
je 0x306b8
movq %r14, %rdi
callq 0x138c4
movl $0x18, %esi
movq %r14, %rdi
callq 0xf380
movq (%r15), %rdi
testq %rdi, %rdi
je 0x306d9
movq 0x10(%r15), %rsi
subq %rdi, %rsi
callq 0xf380
movl $0x18, %esi
movq %r15, %rdi
callq 0xf380
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30755
movq 0x18(%rsp), %rsi
jmp 0x30740
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3072c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf380
jmp 0x3072c
movq %rax, %rbx
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x30755
movq 0x48(%rsp), %rsi
incq %rsi
jmp 0x30750
movq %rax, %rbx
movl $0x58, %esi
movq %rbp, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
nop