// File: /workspace/github_cpp_makefile_star2_O3/eryxcc[P]lois/src/pseudo.cpp
// Function: lois::branchset(std::shared_ptr<lois::Context>, std::shared_ptr<lois::Context>)
lsetof<lvector<term>> branchset(contextptr anccontext, contextptr nowcontext) {

  lsetof<lvector<term>> X;
  
  lvector<term> v;
  contextptr e = nowcontext;
  while(e != anccontext) {
    if(!e) throw env_exception();
    for(auto w: e->var) v.push_back(term(w));
    e = e->parent;
    }
  
  X.insert(v, anccontext);

  return X;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %rbx
movq %rsi, 0x20(%rsp)
movq %rdi, %rcx
addq $0x8, %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rcx)
movups %xmm0, 0x8(%rcx)
leaq 0x13b56(%rip), %rdx     # 0x52770
movq (%rdx), %rax
movq %rcx, 0x28(%rsp)
movq %rax, (%rcx)
leaq 0x8(%rdx), %rsi
callq 0x1615e
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
movq (%rbx), %rsi
movq %rsi, 0x10(%rsp)
movq 0x8(%rbx), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x3ec6f
movq 0x1336c(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x3ec66
incl 0x8(%rax)
jmp 0x3ec6f
lock
incl 0x8(%rax)
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rax
cmpq (%rax), %rsi
je 0x3ed73
leaq 0x70(%rsp), %r12
leaq 0x50(%rsp), %rbp
movq 0x1333a(%rip), %r13     # 0x51fc8
testq %rsi, %rsi
je 0x3ee5f
movq 0x20(%rsi), %r14
movq 0x28(%rsi), %r15
cmpq %r15, %r14
je 0x3ed4a
movq (%r14), %rax
movq 0x8(%r14), %rbx
testq %rbx, %rbx
je 0x3ecc9
cmpb $0x0, (%r13)
je 0x3ecd8
incl 0x8(%rbx)
movq %rax, (%rsp)
movq %rbx, 0x8(%rsp)
jmp 0x3ecec
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
jmp 0x3ecef
lock
incl 0x8(%rbx)
cmpb $0x0, (%r13)
movq %rax, (%rsp)
movq %rbx, 0x8(%rsp)
je 0x3ed3f
incl 0x8(%rbx)
movq %r12, %rdi
movq %rsp, %rsi
callq 0x2d056
movq %rbp, %rdi
movq %r12, %rsi
callq 0x10672
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x3ed14
callq 0x133fc
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3ed23
callq 0x133fc
testq %rbx, %rbx
je 0x3ed30
movq %rbx, %rdi
callq 0x133fc
addq $0x10, %r14
cmpq %r15, %r14
jne 0x3eca8
jmp 0x3ed45
lock
incl 0x8(%rbx)
jmp 0x3ecef
movq 0x10(%rsp), %rsi
movq (%rsi), %rax
movq %rax, 0x10(%rsp)
addq $0x8, %rsi
leaq 0x18(%rsp), %rdi
callq 0x1615e
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rax
cmpq (%rax), %rsi
jne 0x3ec8e
leaq 0x80(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x18384
movq 0x20(%rsp), %rcx
movq (%rcx), %rax
movq %rax, 0x40(%rsp)
movq 0x8(%rcx), %rax
movq %rax, 0x48(%rsp)
testq %rax, %rax
movq 0x28(%rsp), %rbx
leaq 0x139c6(%rip), %rdx     # 0x52770
je 0x3edc1
movq 0x13215(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x3edbd
incl 0x8(%rax)
jmp 0x3edc1
lock
incl 0x8(%rax)
movq (%rdx), %rcx
movq 0x8(%rdx), %rax
movq %rcx, 0x30(%rsp)
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x3edec
movq 0x131ea(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x3ede8
incl 0x8(%rax)
jmp 0x3edec
lock
incl 0x8(%rax)
leaq 0x80(%rsp), %rsi
leaq 0x40(%rsp), %rdx
leaq 0x30(%rsp), %rcx
movq %rbx, %rdi
callq 0x18a24
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x3ee15
callq 0x133fc
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x3ee24
callq 0x133fc
leaq 0x80(%rsp), %rdi
callq 0x1098e
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3ee40
callq 0x133fc
leaq 0x50(%rsp), %rdi
callq 0x1098e
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x8, %edi
callq 0x7150
leaq 0x116b0(%rip), %rcx     # 0x50520
movq %rcx, (%rax)
leaq 0x1167e(%rip), %rsi     # 0x504f8
movq 0x1315f(%rip), %rdx     # 0x51fe0
movq %rax, %rdi
callq 0x7400
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x3ee9b
callq 0x133fc
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x3eeaa
callq 0x133fc
leaq 0x80(%rsp), %rdi
callq 0x1098e
jmp 0x3eef1
movq %rax, %r14
jmp 0x3eef1
movq %rax, %r14
jmp 0x3eed5
movq %rax, %r14
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x3eed5
callq 0x133fc
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3eee4
callq 0x133fc
testq %rbx, %rbx
je 0x3eef1
movq %rbx, %rdi
callq 0x133fc
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
movq 0x28(%rsp), %rbx
je 0x3ef05
callq 0x133fc
leaq 0x50(%rsp), %rdi
callq 0x1098e
movq %rbx, %rdi
callq 0x14eba
movq %r14, %rdi
callq 0x7430