// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/annotation/context_generation.cpp
// Function: akbit::system::annotation::(anonymous namespace)::cg_visit(std::shared_ptr<akbit::system::Node>, std::shared_ptr<akbit::system::Context>, bool)
void cg_visit(std::shared_ptr<Node> node, std::shared_ptr<Context> ctx, bool reg_vars)
    {
      if (nullptr == node) return;

      node->context = ctx;
      std::visit(overloaded {
        [&](auto                     & ) {                                                       },
        [&](Node::module_t           &_) { cg_visit_module(node, _, ctx, reg_vars);              },
        [&](Node::declaration_t      &_) { cg_visit_declaration(node, _, ctx, reg_vars);         },
        [&](Node::condition_t        &_) { cg_visit_condition(node, _, ctx, reg_vars);           },
        [&](Node::block_t            &_) { cg_visit_block(node, _, ctx, reg_vars);               },
        [&](Node::unary_operation_t  &_) { cg_visit_unary_operation(node, _, ctx, reg_vars);     },
        [&](Node::binary_operation_t &_) { cg_visit_binary_operation(node, _, ctx, reg_vars);    },
        [&](Node::function_call_t    &_) { cg_visit_function_call(node, _, ctx, reg_vars);       },
        [&](Node::value_function_t   &_) { cg_visit_value_function(node, _, ctx, reg_vars);      },
        [&](Node::value_tuple_t      &_) { cg_visit_value_tuple(node, _, ctx, reg_vars);         },
        [&](Node::value_variable_t   &_) { cg_visit_value_variable(node, _, ctx, reg_vars);      },
        [&](Node::value_string_t     &_) { cg_visit_value_string(node, _, ctx, reg_vars);        },
        [&](Node::value_character_t  &_) { cg_visit_value_character(node, _, ctx, reg_vars);     },
        [&](Node::value_integer_t    &_) { cg_visit_value_integer(node, _, ctx, reg_vars);       },
        [&](Node::value_decimal_t    &_) { cg_visit_value_decimal(node, _, ctx, reg_vars);       },
      }, node->value);
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rdi, %rbx
movb %dl, 0x7(%rsp)
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xd2f0
movq %rsi, %r14
callq 0xe3e2
movq %rbx, 0x8(%rsp)
movq %r14, 0x10(%rsp)
leaq 0x7(%rsp), %rax
movq %rax, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
movq %r14, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movq %rbx, 0x38(%rsp)
movq %r14, 0x40(%rsp)
movq %rax, 0x48(%rsp)
movq %rbx, 0x50(%rsp)
movq %r14, 0x58(%rsp)
movq %rax, 0x60(%rsp)
movq %rbx, 0x68(%rsp)
movq %r14, 0x70(%rsp)
movq %rax, 0x78(%rsp)
movq %rbx, 0x80(%rsp)
movq %r14, 0x88(%rsp)
movq %rax, 0x90(%rsp)
movq %rbx, 0x98(%rsp)
movq %r14, 0xa0(%rsp)
movq %rax, 0xa8(%rsp)
movq %rbx, 0xb0(%rsp)
movq %r14, 0xb8(%rsp)
movq %rax, 0xc0(%rsp)
movq %rbx, 0xc8(%rsp)
movq %r14, 0xd0(%rsp)
movq %rax, 0xd8(%rsp)
movq %rbx, 0xe0(%rsp)
movq %r14, 0xe8(%rsp)
movq %rax, 0xf0(%rsp)
movq %rbx, 0xf8(%rsp)
movq %r14, 0x100(%rsp)
movq %rax, 0x108(%rsp)
movq %rbx, 0x110(%rsp)
movq %r14, 0x118(%rsp)
movq %rax, 0x120(%rsp)
movq %rbx, 0x128(%rsp)
movq %r14, 0x130(%rsp)
movq %rax, 0x138(%rsp)
movq %rbx, 0x140(%rsp)
movq %r14, 0x148(%rsp)
movq %rax, 0x150(%rsp)
movq (%rbx), %r14
leaq 0x10(%r14), %rbx
movb 0x48(%r14), %al
cmpb $-0x1, %al
jne 0xd2da
leaq 0x3e14(%rip), %rdi      # 0x110e5
callq 0x66db
movb 0x48(%r14), %al
movsbq %al, %rax
leaq 0xd923(%rip), %rcx      # 0x1ac08
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq *(%rcx,%rax,8)
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r14
retq
nop