// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: symbol_to_port
static inline void symbol_to_port(s7_scheme *sc, s7_pointer obj, s7_pointer port, use_write_t use_write, shared_info *ci)
    {
        /* I think this is the only place we print a symbol's name */
        if ((!is_clean_symbol(obj)) &&
                (symbol_needs_slashification(sc, obj)))
        {
            port_write_string(port)(sc, "(symbol \"", 9, port);
            slashify_string_to_port(sc, port, symbol_name(obj), symbol_name_length(obj), NOT_IN_QUOTES);
            port_write_string(port)(sc, "\")", 2, port);
        }
        else
        {
            if (!is_keyword(obj))
            {
                if (use_write == P_READABLE)
                    port_write_character(port)(sc, '\'', port);
                else
                {
                    if (use_write == P_KEY)
                        port_write_character(port)(sc, ':', port);
                }
            }
            if (is_string_port(port))
            {
                s7_int new_len;
                new_len = port_position(port) + symbol_name_length(obj);
                if (new_len >= port_data_size(port))
                    resize_port_data(sc, port, new_len * 2);
                memcpy((void *)(port_data(port) + port_position(port)), (void *)symbol_name(obj), symbol_name_length(obj));
                port_position(port) = new_len;
            }
            else port_write_string(port)(sc, symbol_name(obj), symbol_name_length(obj), port);
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
testb $-0x80, 0x2(%rsi)
jne 0xfaf74
movq 0x8(%r15), %rax
movq 0x10(%rax), %r12
movzbl (%r12), %eax
cmpq $0x2c, %rax
ja 0xfaf1f
movabsq $0x108800000000, %rcx   # imm = 0x108800000000
btq %rax, %rcx
jae 0xfaf1f
movq 0x8(%rbx), %rax
movq 0x48(%rax), %rax
leaq 0x28aa8(%rip), %rsi     # 0x123982
movl $0x9, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq *0x10(%rax)
movq 0x8(%r15), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rdx
movq %r14, %rdi
movq %rbx, %rsi
xorl %r8d, %r8d
callq 0xfd6c4
movq 0x8(%rbx), %rax
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
leaq 0x2a4dc(%rip), %rsi     # 0x1253f1
movl $0x2, %edx
jmp 0xfb004
movq %r14, %rdi
movq %r12, %rsi
movl $0xa, %edx
xorl %ecx, %ecx
callq 0x97c6d
movzbl (%rax), %eax
leaq 0x57a35(%rip), %rcx     # 0x152970
cmpb $0x0, (%rax,%rcx)
jne 0xfaecb
movq 0x8(%r15), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
jle 0xfaf6f
addq %r12, %rax
leaq 0x62f08(%rip), %rcx     # 0x15de60
movzbl (%r12), %edx
cmpb $0x0, (%rdx,%rcx)
jne 0xfaecb
incq %r12
cmpq %rax, %r12
jb 0xfaf58
orb $-0x80, 0x2(%r15)
testb $-0x80, 0x6(%r15)
jne 0xfaf9f
cmpl $0x2, %ebp
je 0xfaf89
cmpl $0x3, %ebp
jne 0xfaf9f
movb $0x3a, %al
jmp 0xfaf8b
movb $0x27, %al
movq 0x8(%rbx), %rcx
movq 0x48(%rcx), %rcx
movzbl %al, %esi
movq %r14, %rdi
movq %rbx, %rdx
callq *0x8(%rcx)
movq 0x8(%rbx), %rax
cmpl $0x1, 0x4(%rax)
jne 0xfaff0
movq 0x8(%r15), %rax
movq 0x8(%rax), %r12
addq 0x20(%rbx), %r12
cmpq 0x18(%rbx), %r12
jl 0xfafca
leaq (%r12,%r12), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9b110
movq 0x10(%rbx), %rdi
addq 0x20(%rbx), %rdi
movq 0x8(%r15), %rax
movq 0x8(%rax), %rdx
movq 0x10(%rax), %rsi
callq 0x93e0
movq %r12, 0x20(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%r15), %rcx
movq 0x8(%rcx), %rdx
movq 0x10(%rcx), %rsi
movq %r14, %rdi
movq %rbx, %rcx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmpq *%rax