// File: /workspace/github_c_makefile_star2_O3/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 0xf511d
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 0xf4c29
movq 0x8(%rbp), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rbp), %r13
testb %r14b, %r14b
je 0xf4ca2
cmpq $0x0, 0x18(%rbp)
movq 0x8(%r12), %rax
movq 0x48(%rax), %rax
je 0xf4cc0
leaq 0x259b0(%rip), %rsi     # 0x11a642
movl $0x2, %edx
movq %rbx, %rdi
movq %r12, %rcx
callq *0x10(%rax)
jmp 0xf4cce
movq 0x8(%r12), %rax
movq 0x48(%rax), %rax
movq %rbx, %rdi
movl $0x20, %esi
movq %r12, %rdx
callq *0x8(%rax)
movl $0x3, %ecx
jmp 0xf4cd0
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 0xf2089
movzbl (%r13), %eax
leaq 0x5d654(%rip), %r14     # 0x152340
cmpb $0x1, (%rax,%r14)
jne 0xf4d5e
cmpb $0x15, %al
jne 0xf4cfe
testb $0x1, 0x7(%r13)
jne 0xf4d5e
movq 0x8(%r12), %rax
movq 0x48(%rax), %rax
leaq 0x16fac(%rip), %rsi     # 0x10bcba
movl $0x3, %edx
movq %rbx, %rdi
movq %r12, %rcx
callq *0x10(%rax)
xorl %ecx, %ecx
testb $0x2, 0x2(%r15)
je 0xf4ddf
movq 0x8(%rsp), %rax
movslq 0xc(%rax), %rax
testq %rax, %rax
jle 0xf4ddf
movq 0x8(%rsp), %rcx
movq (%rcx), %rdx
xorl %ecx, %ecx
cmpq %r15, (%rdx,%rcx,8)
je 0xf4dd3
incq %rcx
cmpq %rcx, %rax
jne 0xf4d45
xorl %ecx, %ecx
jmp 0xf4ddf
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 0xf4dad
cmpl $0x15, %eax
jne 0xf4d8d
testb $0x1, 0x7(%r13)
jne 0xf4dad
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl $0x2, %ecx
movq 0x8(%rsp), %r13
movq %r13, %r8
callq 0x9596b
jmp 0xf5017
leaq 0x5d5cc(%rip), %r9      # 0x152380
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl $0x2, %ecx
movq 0x8(%rsp), %r13
movq %r13, %r8
callq *(%r9,%rax,8)
jmp 0xf5017
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 0x21747(%rip), %rbp     # 0x116540
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 0xf4e03
leaq 0x25760(%rip), %rsi     # 0x11a5a4
leaq 0x21cf4(%rip), %rcx     # 0x116b3f
leaq 0x20(%rsp), %rdi
movq %r8, %rdx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0xc442
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 0xf2089
testb $0x2, 0x2(%r13)
je 0xf4f72
movq 0x8(%rsp), %rax
movslq 0xc(%rax), %rax
testq %rax, %rax
jle 0xf4f72
movq 0x8(%rsp), %rcx
movq (%rcx), %rdx
xorl %ecx, %ecx
cmpq %r13, (%rdx,%rcx,8)
je 0xf4ecd
incq %rcx
cmpq %rcx, %rax
jne 0xf4eba
jmp 0xf4f72
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movl (%rax,%rcx,4), %eax
testl %eax, %eax
je 0xf4f72
movl %eax, %esi
negl %esi
cmovsl %eax, %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 0xf4f00
leaq 0x2567c(%rip), %rsi     # 0x11a5af
leaq 0x2567e(%rip), %rcx     # 0x11a5b8
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movq %r8, %rdx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0xc442
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 0xf5017
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rcx
movq 0x8(%rcx), %rax
movq 0x48(%rax), %rax
leaq 0x2582b(%rip), %rsi     # 0x11a7b5
movl $0x2, %edx
movq %rbx, %rdi
callq *0x10(%rax)
movzbl (%r13), %eax
leaq 0x5d39f(%rip), %rcx     # 0x152340
cmpb $0x1, (%rax,%rcx)
jne 0xf4fd4
cmpl $0x15, %eax
jne 0xf4fb3
testb $0x1, 0x7(%r13)
jne 0xf4fd4
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rdx
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %r13
movl $0x2, %ecx
movq %rax, %r8
callq 0x9596b
jmp 0xf4ff9
leaq 0x5d3a5(%rip), %r9      # 0x152380
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 0x255cd(%rip), %rsi     # 0x11a5d9
movl $0x2, %edx
movq %rbx, %rdi
callq *0x10(%rax)
cmpb $0x0, 0x14(%rsp)
je 0xf5035
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 0xf510c
xorl %ecx, %ecx
btl $0x11, %eax
jae 0xf5072
movslq 0xc(%r13), %rax
testq %rax, %rax
jle 0xf5072
movq (%r13), %rdx
xorl %ecx, %ecx
cmpq %r15, (%rdx,%rcx,8)
je 0xf506b
incq %rcx
cmpq %rcx, %rax
jne 0xf5059
xorl %ecx, %ecx
jmp 0xf5072
movq 0x20(%r13), %rax
movl (%rax,%rcx,4), %ecx
negl %ecx
movslq %ecx, %rsi
leaq 0xb6f(%rbx), %r8
movb $0x0, 0xb6f(%rbx)
leaq 0x214b4(%rip), %rcx     # 0x116540
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 0xf5096
leaq 0x25786(%rip), %rsi     # 0x11a85d
leaq 0x254da(%rip), %rcx     # 0x11a5b8
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movq %r8, %rdx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0xc442
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