// File: /workspace/github_c_makefile_star2_O2/BernardTatin[P]s7sh/s7.c
// Function: slot_list_to_port_with_cycle
static void slot_list_to_port_with_cycle(s7_scheme *sc, s7_pointer obj, s7_pointer slot, s7_pointer port, shared_info *ci, bool bindings)
    {
        if (tis_slot(slot))
        {
            s7_pointer sym, val;
            slot_list_to_port_with_cycle(sc, obj, next_slot(slot), port, ci, bindings);
            sym = slot_symbol(slot);
            val = slot_value(slot);

            if (bindings)
            {
                if (tis_slot(next_slot(slot)))
                    port_write_string(port)(sc, " (", 2, port);
                else port_write_character(port)(sc, '(', port);
            }
            else port_write_character(port)(sc, ' ', port);
            symbol_to_port(sc, sym, port, (bindings) ? P_DISPLAY : P_KEY, ci);
            if (has_structure(val))
            {
                char buf[128];
                int32_t symref, len;
                port_write_string(port)(sc, " #f", 3, port);

                len = catstrs_direct(buf, "  (set! (<", pos_int_to_str_direct(sc, -peek_shared_ref(ci, obj)), "> ", NULL);
                port_write_string(ci->cycle_port)(sc, buf, len, ci->cycle_port);
                symbol_to_port(sc, sym, ci->cycle_port, P_KEY, ci);

                symref = peek_shared_ref(ci, val);
                if (symref != 0)
                {
                    if (symref < 0) symref = -symref;
                    len = catstrs_direct(buf, ") <", pos_int_to_str_direct(sc, symref), ">)\n", NULL);
                    port_write_string(ci->cycle_port)(sc, buf, len, ci->cycle_port);
                }
                else
                {
                    port_write_string(ci->cycle_port)(sc, ") ", 2, ci->cycle_port);
                    object_to_port_with_circle_check(sc, val, ci->cycle_port, P_READABLE, ci);
                    port_write_string(ci->cycle_port)(sc, ")\n", 2, ci->cycle_port);
                }
            }
            else
            {
                port_write_character(port)(sc, ' ', port);
                object_to_port_with_circle_check(sc, val, port, P_READABLE, ci);
            }
            if (bindings) port_write_character(port)(sc, ')', port);
            if (is_immutable(obj))
            {
                char buf[128];
                int32_t len;
                len = catstrs_direct(buf, "  (immutable! <", pos_int_to_str_direct(sc, -peek_shared_ref(ci, obj)), ">)\n", NULL);
                port_write_string(ci->cycle_port)(sc, buf, len, ci->cycle_port);
            }
        }
    }

// Assembly:
testq %rdx, %rdx
je 0xc2e26
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %r8, %r14
movq %rcx, %r12
movq %rdx, %r15
movq %rdi, %rbx
movq 0x18(%rdx), %rdx
movl %r9d, 0xc(%rsp)
movzbl %r9b, %ebp
movq %rsi, 0x18(%rsp)
movl %ebp, %r9d
callq 0xc2afb
movq 0x8(%r15), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%r15), %r13
testb %bpl, %bpl
je 0xc2b72
cmpq $0x0, 0x18(%r15)
movq 0x8(%r12), %rax
movq 0x48(%rax), %rax
je 0xc2b8c
leaq 0x23a7e(%rip), %rsi     # 0xe65e2
pushq $0x2
popq %rdx
movq %rbx, %rdi
movq %r12, %rcx
callq *0x10(%rax)
jmp 0xc2b98
movq 0x8(%r12), %rax
movq 0x48(%rax), %rax
pushq $0x20
popq %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq *0x8(%rax)
pushq $0x3
popq %rcx
jmp 0xc2b9a
pushq $0x28
popq %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq *0x8(%rax)
xorl %ecx, %ecx
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %r12, %rdx
callq 0xc0840
movzbl (%r13), %eax
leaq 0x5e78a(%rip), %rbp     # 0x121340
cmpb $0x1, (%rax,%rbp)
jne 0xc2cb8
cmpb $0x15, %al
jne 0xc2bcf
testb $0x1, 0x7(%r13)
jne 0xc2cb8
movq 0x8(%r12), %rax
movq 0x48(%rax), %rax
leaq 0x1507b(%rip), %rsi     # 0xd7c5a
pushq $0x3
popq %rdx
movq %rbx, %rdi
movq %r12, %rcx
callq *0x10(%rax)
movq %r14, %rdi
movq 0x18(%rsp), %rsi
callq 0x7855f
negl %eax
movslq %eax, %rsi
movq %rbx, %rdi
callq 0x91f9
leaq 0x23938(%rip), %rsi     # 0xe6544
leaq 0x1fecc(%rip), %rcx     # 0xe2adf
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %rax, %rdx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0xb3a5
movq 0x28(%r14), %rcx
movq 0x8(%rcx), %rdx
movq 0x48(%rdx), %r8
movslq %eax, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq *0x10(%r8)
movq 0x28(%r14), %rdx
pushq $0x3
popq %rcx
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
callq 0xc0840
movq %r14, %rdi
movq %r13, %rsi
callq 0x7855f
testl %eax, %eax
je 0xc2d1c
movl %eax, %esi
negl %esi
cmovsl %eax, %esi
movq %rbx, %rdi
callq 0x91f9
leaq 0x238d1(%rip), %rsi     # 0xe654f
leaq 0x238d3(%rip), %rcx     # 0xe6558
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %rax, %rdx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0xb3a5
movq 0x28(%r14), %rcx
movq 0x8(%rcx), %rdx
movq 0x48(%rdx), %r8
movslq %eax, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq *0x10(%r8)
jmp 0xc2d9d
movq 0x8(%r12), %rax
movq 0x48(%rax), %rax
pushq $0x20
popq %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq *0x8(%rax)
movzbl (%r13), %eax
cmpb $0x1, (%rax,%rbp)
jne 0xc2cfd
cmpl $0x15, %eax
jne 0xc2ce4
testb $0x1, 0x7(%r13)
jne 0xc2cfd
pushq $0x2
popq %rcx
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r14, %r8
callq 0x77872
jmp 0xc2d9d
leaq 0x5e67c(%rip), %r9      # 0x121380
pushq $0x2
popq %rcx
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r14, %r8
callq *(%r9,%rax,8)
jmp 0xc2d9d
movq 0x28(%r14), %rcx
movq 0x8(%rcx), %rax
movq 0x48(%rax), %rax
leaq 0x23a26(%rip), %rsi     # 0xe6755
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq *0x10(%rax)
movzbl (%r13), %eax
cmpb $0x1, (%rax,%rbp)
jne 0xc2d66
cmpl $0x15, %eax
jne 0xc2d4f
testb $0x1, 0x7(%r13)
jne 0xc2d66
movq 0x28(%r14), %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %r8
callq 0x77872
jmp 0xc2d81
leaq 0x5e613(%rip), %r9      # 0x121380
movq 0x28(%r14), %rdx
pushq $0x2
popq %rcx
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %r8
callq *(%r9,%rax,8)
movq 0x28(%r14), %rcx
movq 0x8(%rcx), %rax
movq 0x48(%rax), %rax
leaq 0x237e5(%rip), %rsi     # 0xe6579
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq *0x10(%rax)
cmpb $0x0, 0xc(%rsp)
je 0xc2db9
movq 0x8(%r12), %rax
movq 0x48(%rax), %rax
pushq $0x29
popq %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq *0x8(%rax)
movq 0x18(%rsp), %rsi
testb $0x1, 0x3(%rsi)
je 0xc2e15
movq %r14, %rdi
callq 0x7855f
negl %eax
movslq %eax, %rsi
movq %rbx, %rdi
callq 0x91f9
leaq 0x23a1d(%rip), %rsi     # 0xe67fd
leaq 0x23771(%rip), %rcx     # 0xe6558
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %rax, %rdx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0xb3a5
movq 0x28(%r14), %rcx
movq 0x8(%rcx), %rdx
movq 0x48(%rdx), %r8
movslq %eax, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq *0x10(%r8)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq