// File: /workspace/github_c_makefile_star2_O1/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 0xfde92
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rcx, %r12
movq %rdx, %rbp
movq %rsi, %r15
movq %rdi, %rbx
movq 0x18(%rdx), %rdx
movl %r9d, 0x14(%rsp)
movzbl %r9b, %r14d
movq %r8, 0x8(%rsp)
movl %r14d, %r9d
callq 0xfd9b1
movq 0x8(%rbp), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rbp), %r13
testb %r14b, %r14b
je 0xfda2a
cmpq $0x0, 0x18(%rbp)
movq 0x8(%r12), %rax
movq 0x48(%rax), %rax
je 0xfda48
leaq 0x25b18(%rip), %rsi     # 0x123532
movl $0x2, %edx
movq %rbx, %rdi
movq %r12, %rcx
callq *0x10(%rax)
jmp 0xfda56
movq 0x8(%r12), %rax
movq 0x48(%rax), %rax
movq %rbx, %rdi
movl $0x20, %esi
movq %r12, %rdx
callq *0x8(%rax)
movl $0x3, %ecx
jmp 0xfda58
movq %rbx, %rdi
movl $0x28, %esi
movq %r12, %rdx
callq *0x8(%rax)
xorl %ecx, %ecx
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movq %r12, %rdx
callq 0xfae8b
movzbl (%r13), %eax
leaq 0x5c8cc(%rip), %r14     # 0x15a340
cmpb $0x1, (%rax,%r14)
jne 0xfdae6
cmpb $0x15, %al
jne 0xfda86
testb $0x1, 0x7(%r13)
jne 0xfdae6
movq 0x8(%r12), %rax
movq 0x48(%rax), %rax
leaq 0x17114(%rip), %rsi     # 0x114baa
movl $0x3, %edx
movq %rbx, %rdi
movq %r12, %rcx
callq *0x10(%rax)
xorl %ecx, %ecx
testb $0x2, 0x2(%r15)
je 0xfdb67
movq 0x8(%rsp), %rax
movslq 0xc(%rax), %rax
testq %rax, %rax
jle 0xfdb67
movq 0x8(%rsp), %rcx
movq (%rcx), %rdx
xorl %ecx, %ecx
cmpq %r15, (%rdx,%rcx,8)
je 0xfdb5b
incq %rcx
cmpq %rcx, %rax
jne 0xfdacd
xorl %ecx, %ecx
jmp 0xfdb67
movq 0x8(%r12), %rax
movq 0x48(%rax), %rax
movq %rbx, %rdi
movl $0x20, %esi
movq %r12, %rdx
callq *0x8(%rax)
movzbl (%r13), %eax
cmpb $0x1, (%rax,%r14)
jne 0xfdb35
cmpl $0x15, %eax
jne 0xfdb15
testb $0x1, 0x7(%r13)
jne 0xfdb35
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl $0x2, %ecx
movq 0x8(%rsp), %r13
movq %r13, %r8
callq 0x9c033
jmp 0xfdd8c
leaq 0x5c844(%rip), %r9      # 0x15a380
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl $0x2, %ecx
movq 0x8(%rsp), %r13
movq %r13, %r8
callq *(%r9,%rax,8)
jmp 0xfdd8c
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movl (%rax,%rcx,4), %ecx
negl %ecx
movslq %ecx, %rsi
leaq 0xb6f(%rbx), %r8
movb $0x0, 0xb6f(%rbx)
leaq 0x218af(%rip), %rbp     # 0x11f430
movabsq $0x6666666666666667, %rcx # imm = 0x6666666666666667
movq %rsi, %rax
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x2, %rdx
addq %rax, %rdx
leaq (%rdx,%rdx), %rax
leaq (%rax,%rax,4), %rax
movq %rsi, %rdi
subq %rax, %rdi
movb (%rbp,%rdi), %al
movb %al, -0x1(%r8)
decq %r8
addq $0x9, %rsi
cmpq $0x12, %rsi
movq %rdx, %rsi
ja 0xfdb8b
leaq 0x258c8(%rip), %rsi     # 0x123494
leaq 0x21e5c(%rip), %rcx     # 0x11fa2f
leaq 0x20(%rsp), %rdi
movq %r8, %rdx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0xd1cb
movq 0x8(%rsp), %r14
movq 0x28(%r14), %rcx
movq 0x8(%rcx), %rdx
movq 0x48(%rdx), %r8
movslq %eax, %rdx
movq %rbx, %rdi
leaq 0x20(%rsp), %rsi
callq *0x10(%r8)
movq 0x28(%r14), %rdx
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movl $0x3, %ecx
callq 0xfae8b
testb $0x2, 0x2(%r13)
je 0xfdc4c
movslq 0xc(%r14), %rax
testq %rax, %rax
movl $0x0, %ecx
jle 0xfdc4e
movq 0x8(%rsp), %rcx
movq (%rcx), %rdx
xorl %ecx, %ecx
cmpq %r13, (%rdx,%rcx,8)
je 0xfde93
incq %rcx
cmpq %rcx, %rax
jne 0xfdc3a
xorl %ecx, %ecx
testl %ecx, %ecx
je 0xfdce7
movl %ecx, %esi
negl %esi
cmovsl %ecx, %esi
leaq 0xb6f(%rbx), %r8
movb $0x0, 0xb6f(%rbx)
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
movq %rsi, %rax
mulq %rcx
shrq $0x3, %rdx
leaq (%rdx,%rdx), %rax
leaq (%rax,%rax,4), %rax
movq %rsi, %rdi
subq %rax, %rdi
movb (%rbp,%rdi), %al
movb %al, -0x1(%r8)
decq %r8
cmpq $0x9, %rsi
movq %rdx, %rsi
ja 0xfdc75
leaq 0x257f7(%rip), %rsi     # 0x12349f
leaq 0x257f9(%rip), %rcx     # 0x1234a8
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movq %r8, %rdx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0xd1cb
movq 0x8(%rsp), %r13
movq 0x28(%r13), %rcx
movq 0x8(%rcx), %rdx
movq 0x48(%rdx), %r8
movslq %eax, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq *0x10(%r8)
jmp 0xfdd8c
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rcx
movq 0x8(%rcx), %rax
movq 0x48(%rax), %rax
leaq 0x259a6(%rip), %rsi     # 0x1236a5
movl $0x2, %edx
movq %rbx, %rdi
callq *0x10(%rax)
movzbl (%r13), %eax
leaq 0x5c62a(%rip), %rcx     # 0x15a340
cmpb $0x1, (%rax,%rcx)
jne 0xfdd49
cmpl $0x15, %eax
jne 0xfdd28
testb $0x1, 0x7(%r13)
jne 0xfdd49
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rdx
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %r13
movl $0x2, %ecx
movq %rax, %r8
callq 0x9c033
jmp 0xfdd6e
leaq 0x5c630(%rip), %r9      # 0x15a380
movq 0x8(%rsp), %rcx
movq 0x28(%rcx), %rdx
movq %rbx, %rdi
movq %r13, %rsi
movq %rcx, %r13
movl $0x2, %ecx
movq %r13, %r8
callq *(%r9,%rax,8)
movq 0x28(%r13), %rcx
movq 0x8(%rcx), %rax
movq 0x48(%rax), %rax
leaq 0x25748(%rip), %rsi     # 0x1234c9
movl $0x2, %edx
movq %rbx, %rdi
callq *0x10(%rax)
cmpb $0x0, 0x14(%rsp)
je 0xfddaa
movq 0x8(%r12), %rax
movq 0x48(%rax), %rax
movq %rbx, %rdi
movl $0x29, %esi
movq %r12, %rdx
callq *0x8(%rax)
movq (%r15), %rax
btl $0x18, %eax
jae 0xfde81
xorl %ecx, %ecx
btl $0x11, %eax
jae 0xfdde7
movslq 0xc(%r13), %rax
testq %rax, %rax
jle 0xfdde7
movq (%r13), %rdx
xorl %ecx, %ecx
cmpq %r15, (%rdx,%rcx,8)
je 0xfdde0
incq %rcx
cmpq %rcx, %rax
jne 0xfddce
xorl %ecx, %ecx
jmp 0xfdde7
movq 0x20(%r13), %rax
movl (%rax,%rcx,4), %ecx
negl %ecx
movslq %ecx, %rsi
leaq 0xb6f(%rbx), %r8
movb $0x0, 0xb6f(%rbx)
leaq 0x2162f(%rip), %rcx     # 0x11f430
movabsq $0x6666666666666667, %rdi # imm = 0x6666666666666667
movq %rsi, %rax
imulq %rdi
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x2, %rdx
addq %rax, %rdx
leaq (%rdx,%rdx), %rax
leaq (%rax,%rax,4), %rax
movq %rsi, %r9
subq %rax, %r9
movb (%rcx,%r9), %al
movb %al, -0x1(%r8)
decq %r8
addq $0x9, %rsi
cmpq $0x12, %rsi
movq %rdx, %rsi
ja 0xfde0b
leaq 0x25901(%rip), %rsi     # 0x12374d
leaq 0x25655(%rip), %rcx     # 0x1234a8
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movq %r8, %rdx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0xd1cb
movq 0x28(%r13), %rcx
movq 0x8(%rcx), %rdx
movq 0x48(%rdx), %r8
movslq %eax, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq *0x10(%r8)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movl (%rax,%rcx,4), %ecx
jmp 0xfdc4e