// File: /workspace/github_c_makefile_star2_O1/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
testb $0x8, 0x3(%rsi)
jne 0xfabfc
movq 0x8(%r14), %rsi
movl 0x57e47(%rip), %eax     # 0x152a28
shlq $0x3f, %rax
cmpq %rsi, %rax
jne 0xfac3f
leaq 0x24977(%rip), %r12     # 0x11f568
movl $0x14, %r13d
jmp 0xfad1f
movq 0x8(%rbx), %rax
cmpl $0x1, 0x4(%rax)
jne 0xfacb4
movq 0x20(%rbx), %rdi
movzbl 0x18(%r14), %r12d
leaq (%rdi,%r12), %r13
cmpq 0x18(%rbx), %r13
jge 0xfacd0
addq 0x10(%rbx), %rdi
leaq 0x19(%r14), %rsi
movq %r12, %rdx
callq 0x93e0
movzbl 0x18(%r14), %eax
addq %rax, 0x20(%rbx)
jmp 0xfacfe
leaq 0xb0f(%r15), %r12
leaq 0xb0e(%r15), %rdi
movb $0x0, 0xb0f(%r15)
movq %rsi, %rcx
negq %rcx
cmovsq %rsi, %rcx
movq $-0x1, %r8
xorl %r13d, %r13d
leaq 0x247c0(%rip), %r9      # 0x11f430
movabsq $-0x3333333333333333, %r10 # imm = 0xCCCCCCCCCCCCCCCD
movq %rcx, %rax
mulq %r10
shrq $0x3, %rdx
leaq (%rdx,%rdx), %rax
leaq (%rax,%rax,4), %rax
movq %rcx, %r11
subq %rax, %r11
movb (%r9,%r11), %al
movb %al, 0x1(%rdi,%r8)
incq %r13
decq %r8
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0xfac7a
testq %rsi, %rsi
js 0xfad0d
subq %r13, %r12
jmp 0xfad1f
movq 0x48(%rax), %rax
movq 0x10(%rax), %rax
movzbl 0x18(%r14), %edx
addq $0x19, %r14
movq %r15, %rdi
movq %r14, %rsi
jmp 0xfad68
addq $0x19, %r14
leaq (,%r13,2), %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x9b110
movq 0x10(%rbx), %rdi
addq 0x20(%rbx), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x93e0
movq %r13, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x2d, 0x1(%rdi,%r8)
subq %r13, %rdi
negq %r8
movq %r8, %r13
movq %rdi, %r12
cmpl $0x14, %r13d
jg 0xfad53
movq (%r14), %rax
btl $0x1a, %eax
jb 0xfad53
orq $0x8000000, %rax        # imm = 0x8000000
movq %rax, (%r14)
movb %r13b, 0x18(%r14)
leaq 0x19(%r14), %rdi
movslq %r13d, %rbp
movq %r12, %rsi
movq %rbp, %rdx
callq 0x93e0
movb $0x0, 0x19(%r14,%rbp)
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