// File: /workspace/github_cpp_makefile_star2_O1/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, 0x10(%rsp)
xorl %r14d, %r14d
movq %r14, 0x20(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
leaq 0x14567(%rip), %rcx     # 0x53770
movq (%rcx), %rax
movq %rax, (%rdi)
movq %rdi, 0x28(%rsp)
addq $0x8, %rdi
leaq 0x8(%rcx), %rsi
callq 0x16086
movq %r14, 0x60(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq (%rbx), %rax
movq %rax, (%rsp)
movq 0x8(%rbx), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x3f258
movq 0x13d7e(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x3f254
incl 0x8(%rax)
jmp 0x3f258
lock
incl 0x8(%rax)
movq (%rsp), %rax
movq 0x10(%rsp), %rcx
cmpq (%rcx), %rax
je 0x3f351
leaq 0x70(%rsp), %r12
leaq 0x50(%rsp), %rbp
movq 0x13d4d(%rip), %r15     # 0x52fc8
testq %rax, %rax
je 0x3f43d
movq 0x20(%rax), %r14
movq 0x28(%rax), %r13
cmpq %r13, %r14
je 0x3f326
movq (%r14), %rax
movq 0x8(%r14), %rbx
testq %rbx, %rbx
je 0x3f2ac
cmpb $0x0, (%r15)
je 0x3f2b8
incl 0x8(%rbx)
jmp 0x3f2bc
movq %rax, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
jmp 0x3f2da
lock
incl 0x8(%rbx)
movq %rax, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
testq %rbx, %rbx
je 0x3f2da
cmpb $0x0, (%r15)
je 0x3f2d6
incl 0x8(%rbx)
jmp 0x3f2da
lock
incl 0x8(%rbx)
movq %r12, %rdi
leaq 0x18(%rsp), %rsi
callq 0x2cfaa
movq %rbp, %rdi
movq %r12, %rsi
callq 0x10604
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x3f301
callq 0x13308
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x3f310
callq 0x13308
testq %rbx, %rbx
je 0x3f31d
movq %rbx, %rdi
callq 0x13308
addq $0x10, %r14
jmp 0x3f28c
movq (%rsp), %rsi
movq (%rsi), %rax
movq %rax, (%rsp)
addq $0x8, %rsi
leaq 0x8(%rsp), %rdi
callq 0x16086
movq (%rsp), %rax
movq 0x10(%rsp), %rcx
cmpq (%rcx), %rax
jne 0x3f27b
leaq 0x80(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x182ce
movq 0x10(%rsp), %rcx
movq (%rcx), %rax
movq %rax, 0x40(%rsp)
movq 0x8(%rcx), %rax
movq %rax, 0x48(%rsp)
testq %rax, %rax
movq 0x28(%rsp), %rbx
je 0x3f398
movq 0x13c3e(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x3f394
incl 0x8(%rax)
jmp 0x3f398
lock
incl 0x8(%rax)
leaq 0x143d1(%rip), %rax     # 0x53770
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rcx, 0x30(%rsp)
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x3f3ca
movq 0x13c0c(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x3f3c6
incl 0x8(%rax)
jmp 0x3f3ca
lock
incl 0x8(%rax)
leaq 0x80(%rsp), %rsi
leaq 0x40(%rsp), %rdx
leaq 0x30(%rsp), %rcx
movq %rbx, %rdi
callq 0x18982
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x3f3f3
callq 0x13308
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x3f402
callq 0x13308
leaq 0x80(%rsp), %rdi
callq 0x1091a
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3f41e
callq 0x13308
leaq 0x50(%rsp), %rdi
callq 0x1091a
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 0x120aa(%rip), %rcx     # 0x514f8
movq %rcx, (%rax)
leaq 0x12078(%rip), %rsi     # 0x514d0
movq 0x13b81(%rip), %rdx     # 0x52fe0
movq %rax, %rdi
callq 0x7400
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x3f479
callq 0x13308
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x3f488
callq 0x13308
leaq 0x80(%rsp), %rdi
callq 0x1091a
jmp 0x3f4cf
movq %rax, %r14
jmp 0x3f4cf
movq %rax, %r14
jmp 0x3f4b3
movq %rax, %r14
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x3f4b3
callq 0x13308
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x3f4c2
callq 0x13308
testq %rbx, %rbx
je 0x3f4cf
movq %rbx, %rdi
callq 0x13308
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
movq 0x28(%rsp), %rbx
je 0x3f4e3
callq 0x13308
leaq 0x50(%rsp), %rdi
callq 0x1091a
movq %rbx, %rdi
callq 0x14dc2
movq %r14, %rdi
callq 0x7430