// File: /workspace/github_cpp_makefile_star2_O3/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, %r15
movq %rdi, (%rsp)
callq 0x301c2
testq %rax, %rax
movq %r15, 0x28(%rsp)
je 0x302a9
addq $0x8, %rax
leaq 0x322dd(%rip), %rsi     # 0x62545
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 0x302a4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf380
movq 0x28(%rsp), %r15
movq (%r15), %rax
movq 0x8(%r15), %rcx
cmpq %rax, %rcx
je 0x30411
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 0x303fb
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 $0x3, %rcx
cmpq %rcx, %rax
je 0x303ba
leaq 0x8(%r13), %rdx
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
leaq 0x32259(%rip), %rsi     # 0x62577
callq 0x1170e
movq %rbx, %rdi
leaq 0x32258(%rip), %rsi     # 0x62585
callq 0xf780
movq %rbp, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x30355
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x3035c
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 0x3039e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf380
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x303ba
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 0x34344
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 0x302d1
testq %r14, %r14
je 0x3042a
movq (%r14), %rdi
testq %rdi, %rdi
je 0x3042a
movq 0x10(%r14), %rsi
subq %rdi, %rsi
callq 0xf380
movl $0x18, %esi
movq %r14, %rdi
callq 0xf380
movq (%r15), %rdi
testq %rdi, %rdi
je 0x3044b
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 0x304c7
movq 0x18(%rsp), %rsi
jmp 0x304b2
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3049e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf380
jmp 0x3049e
movq %rax, %rbx
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x304c7
movq 0x48(%rsp), %rsi
incq %rsi
jmp 0x304c2
movq %rax, %rbx
movl $0x58, %esi
movq %rbp, %rdi
callq 0xf380
movq %rbx, %rdi
callq 0xf730
nop