// File: /workspace/github_cpp_makefile_star2_O1/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, %rbx
movq %rdi, (%rsp)
callq 0x30488
testq %rax, %rax
je 0x307ff
addq $0x8, %rax
leaq 0x31d8a(%rip), %rsi     # 0x6254d
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rax, %rdx
callq 0x11754
movq (%rsp), %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x2e85a
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x307ff
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf380
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x3096c
leaq 0x18(%rsp), %rbp
movq (%rsp), %rcx
addq $0x198, %rcx            # imm = 0x198
movq %rcx, 0x28(%rsp)
xorl %r12d, %r12d
movq %rbx, 0x30(%rsp)
movq (%rax,%r12,8), %r13
testq %r13, %r13
je 0x30952
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
movq %r14, %rbx
subq (%r14), %rcx
sarq $0x5, %rcx
cmpq %rcx, %rax
je 0x30915
leaq 0x8(%r13), %rdx
leaq 0x38(%rsp), %r14
movq %r14, %rdi
leaq 0x31d05(%rip), %rsi     # 0x6257e
callq 0x11754
movq %r14, %rdi
leaq 0x31cad(%rip), %rsi     # 0x62535
callq 0xf780
movq %rbp, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x308b0
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x308b7
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 0x2d276
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x308f9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf380
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x30915
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xf380
movq %rbp, %r14
movl $0x58, %edi
callq 0xf370
movq %rax, %rbp
leaq 0x8(%r13), %rsi
movq %rax, %rdi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x3479a
movq 0x28(%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x48118
movq %r14, %rbp
movq %rbx, %r14
movq 0x30(%rsp), %rbx
incq %r12
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r12, %rcx
ja 0x30829
testq %r14, %r14
je 0x30986
movq %r14, %rdi
callq 0x13962
movl $0x18, %esi
movq %r14, %rdi
callq 0xf380
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3099a
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0xf380
movl $0x18, %esi
movq %rbx, %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 0x30a16
movq 0x18(%rsp), %rsi
jmp 0x30a01
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x309ed
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf380
jmp 0x309ed
movq %rax, %rbx
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x30a16
movq 0x48(%rsp), %rsi
incq %rsi
jmp 0x30a11
movq %rax, %rbx
movl $0x58, %esi
movq %rbp, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730