// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/Sleigh/slgh_compile.cc
// Function: SleighCompile::attachValues(std::vector<SleighSymbol*, std::allocator<SleighSymbol*>>*, std::vector<long, std::allocator<long>>*)
void SleighCompile::attachValues(vector<SleighSymbol *> *symlist,vector<intb> *numlist)

{
  SleighSymbol *dupsym = dedupSymbolList(symlist);
  if (dupsym != (SleighSymbol *)0)
    reportWarning("\"attach values\" 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 != numlist->size()) {
      reportError("Attach value " + sym->getName() + " is wrong size for list", true);
    }
    symtab.replaceSymbol(sym, new ValueMapSymbol(sym->getName(),patval,*numlist));
  }
  delete numlist;
  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 0x3056b
addq $0x8, %rax
leaq 0x31fc6(%rip), %rsi     # 0x624f5
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 0x3056b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf380
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x306d8
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 0x306be
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 $0x3, %rcx
cmpq %rcx, %rax
je 0x30681
leaq 0x8(%r13), %rdx
leaq 0x38(%rsp), %r14
movq %r14, %rdi
leaq 0x31f42(%rip), %rsi     # 0x62527
callq 0x11754
movq %r14, %rdi
leaq 0x31f41(%rip), %rsi     # 0x62535
callq 0xf780
movq %rbp, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3061c
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x30623
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 0x30665
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf380
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x30681
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 0x34728
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 0x30595
testq %r14, %r14
je 0x306fe
movq (%r14), %rdi
testq %rdi, %rdi
je 0x306f1
movq 0x10(%r14), %rsi
subq %rdi, %rsi
callq 0xf380
movl $0x18, %esi
movq %r14, %rdi
callq 0xf380
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x30712
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 0x3078e
movq 0x18(%rsp), %rsi
jmp 0x30779
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x30765
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf380
jmp 0x30765
movq %rax, %rbx
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x3078e
movq 0x48(%rsp), %rsi
incq %rsi
jmp 0x30789
movq %rax, %rbx
movl $0x58, %esi
movq %rbp, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730