// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: integer_to_port
static void integer_to_port(s7_scheme *sc, s7_pointer obj, s7_pointer port, use_write_t use_write, shared_info *ci)
    {
        if (has_print_name(obj))
        {
            if (is_string_port(port))
            {
                if (port_position(port) + print_name_length(obj) < port_data_size(port))
                {
                    memcpy((void *)(port_data(port) + port_position(port)), (void *)print_name(obj), print_name_length(obj));
                    port_position(port) += print_name_length(obj);
                }
                else string_write_string_resized(sc, print_name(obj), print_name_length(obj), port);
            }
            else port_write_string(port)(sc, print_name(obj), print_name_length(obj), port);
        }
        else
        {
            s7_int nlen;
            char *str;
            str = integer_to_string(sc, integer(obj), &nlen);
            set_print_name(obj, str, nlen);
            port_write_string(port)(sc, str, nlen, port);
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rsi), %rax
btl $0x1b, %eax
jb 0xf1df4
movq 0x8(%r14), %rdi
movl 0x58c54(%rip), %ecx     # 0x14aa28
shlq $0x3f, %rcx
cmpq %rdi, %rcx
jne 0xf1e37
movl $0x14, %r13d
leaq 0x2488e(%rip), %r12     # 0x116678
movl $0x14, %esi
jmp 0xf1f21
movq 0x8(%rbx), %rax
cmpl $0x1, 0x4(%rax)
jne 0xf1eab
movq 0x20(%rbx), %rdi
movzbl 0x18(%r14), %r12d
leaq (%rdi,%r12), %r13
cmpq 0x18(%rbx), %r13
jge 0xf1ec7
addq 0x10(%rbx), %rdi
leaq 0x19(%r14), %rsi
movq %r12, %rdx
callq 0x83e0
movzbl 0x18(%r14), %eax
addq %rax, 0x20(%rbx)
jmp 0xf1ef5
leaq 0xb0f(%r15), %r12
leaq 0xb0e(%r15), %r8
movb $0x0, 0xb0f(%r15)
movq %rdi, %rcx
negq %rcx
cmovsq %rdi, %rcx
movq $-0x1, %r9
xorl %esi, %esi
leaq 0x246d9(%rip), %r10     # 0x116540
movabsq $-0x3333333333333333, %r11 # imm = 0xCCCCCCCCCCCCCCCD
movq %rcx, %rax
mulq %r11
shrq $0x3, %rdx
leaq (%rdx,%rdx), %rax
leaq (%rax,%rax,4), %rax
movq %rcx, %r13
subq %rax, %r13
movb (%r10,%r13), %al
movb %al, 0x1(%r8,%r9)
incq %rsi
decq %r9
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0xf1e71
testq %rdi, %rdi
js 0xf1f04
subq %rsi, %r12
jmp 0xf1f16
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
movzbl 0x18(%r14), %edx
addq $0x19, %r14
movq %r15, %rdi
movq %r14, %rsi
jmp 0xf1f66
addq $0x19, %r14
leaq (,%r13,2), %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x94b07
movq 0x10(%rbx), %rdi
addq 0x20(%rbx), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x83e0
movq %r13, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x2d, 0x1(%r8,%r9)
subq %rsi, %r8
negq %r9
movq %r9, %rsi
movq %r8, %r12
cmpl $0x14, %esi
jg 0xf1f4e
movq (%r14), %rax
movq %rsi, %r13
btl $0x1a, %eax
jb 0xf1f51
orq $0x8000000, %rax        # imm = 0x8000000
movq %rax, (%r14)
movb %sil, 0x18(%r14)
leaq 0x19(%r14), %rdi
movslq %esi, %rbp
movq %r12, %rsi
movq %rbp, %rdx
callq 0x83e0
movb $0x0, 0x19(%r14,%rbp)
jmp 0xf1f51
movq %rsi, %r13
movq 0x8(%rbx), %rax
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax