// File: /workspace/github_cpp_makefile_star2_O1/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 0xfd42
movq %rsi, %r14
movq (%rsi), %rax
movq %rax, (%rdi)
addq $0x8, %rsi
addq $0x8, %rdi
callq 0x117fc
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), %rsi
movsbq 0x48(%rsi), %rax
cmpq $-0x1, %rax
je 0xfd4d
addq $0x10, %rsi
leaq 0xcece(%rip), %rcx      # 0x1cc08
leaq 0x8(%rsp), %rdi
callq *(%rcx,%rax,8)
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x3120
leaq 0xcaf2(%rip), %rcx      # 0x1c850
movq %rcx, (%rax)
leaq 0x537d(%rip), %rcx      # 0x150e5
movq %rcx, 0x8(%rax)
leaq 0xcab5(%rip), %rsi      # 0x1c828
movq 0xd25e(%rip), %rdx      # 0x1cfd8
movq %rax, %rdi
callq 0x3330