// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: g_display_2
static s7_pointer g_display_2(s7_scheme *sc, s7_pointer args)
    {
        /* calling display_p_pp here is much slower */
        s7_pointer port;
        port = cadr(args);
        if (port == sc->F) return(car(args));
        if (!is_output_port(port))
            return(method_or_bust_with_type(sc, port, sc->display_symbol, args, an_output_port_string, 2));
        if (port_is_closed(port))
            return(s7_wrong_type_arg_error(sc, "display", 2, port, "an open output port"));
        check_method(sc, car(args), sc->display_symbol, args);
        return(object_out(sc, car(args), port, P_DISPLAY));
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r15
movq 0x10(%rsi), %rax
movq 0x8(%rax), %rbx
cmpq 0x120(%rdi), %rbx
je 0x10b0e5
movq %rdi, %r14
cmpb $0x22, (%rbx)
jne 0x10b0fb
movq 0x8(%rbx), %rax
cmpb $0x1, 0x2(%rax)
jne 0x10b12b
leaq 0x7fee(%rip), %rsi      # 0x1130ae
leaq 0x18dae(%rip), %r8      # 0x123e75
movl $0x2, %edx
movq %r14, %rdi
movq %rbx, %rcx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe25f
movq 0x8(%r15), %r12
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xe80(%r14), %rdx
movq 0x4f1bf(%rip), %r8      # 0x15a2c8
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rcx
movl $0x2, %r9d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf3da
movq 0x8(%r15), %rsi
movb $0x1, %bpl
testb $0x40, 0x3(%rsi)
je 0x10b26b
cmpb $0x1, 0x24c(%r14)
jne 0x10b26b
movq %r14, %rdi
callq 0x9a55
movq 0xe80(%r14), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x99ef
cmpq 0x128(%r14), %rax
je 0x10b26b
cmpb $0x1, (%r15)
jne 0x10b2d3
movq %rax, 0x8(%rsp)
movq %r15, 0x4c8(%r14)
movq 0x8(%r15), %r13
movq 0x90(%r14), %rax
movq 0x110(%r14), %r12
cmpq 0x98(%r14), %rax
ja 0x10b1aa
movq %r14, %rdi
callq 0xb389
movq 0x90(%r14), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%r14)
movq -0x8(%rax), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq %r13, 0x8(%rax)
movq %r12, 0x10(%rax)
movq %rax, (%rsp)
movq %rax, 0x4e8(%r14)
movq 0x10(%r15), %rbp
cmpb $0x1, (%rbp)
jne 0x10b24b
movq (%rsp), %r13
movq 0x8(%rbp), %rdx
movq 0x90(%r14), %rax
movq 0x110(%r14), %r12
cmpq 0x98(%r14), %rax
ja 0x10b215
movq %r14, %rdi
movq %rdx, 0x10(%rsp)
callq 0xb389
movq 0x10(%rsp), %rdx
movq 0x90(%r14), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%r14)
movq -0x8(%rax), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq %rdx, 0x8(%rax)
movq %r12, 0x10(%rax)
movq %rax, 0x10(%r13)
movq 0x10(%rbp), %rbp
cmpb $0x1, (%rbp)
movq %rax, %r13
je 0x10b1e8
movq 0x110(%r14), %rax
movq %rax, 0x4e8(%r14)
movq %rax, 0x4c8(%r14)
movq 0x8(%rsp), %rax
movq (%rsp), %rdx
jmp 0x10b2da
testb %bpl, %bpl
je 0x10b0e9
movq 0x8(%r15), %r12
movzbl (%r12), %eax
leaq 0x4f0bc(%rip), %rcx     # 0x15a340
cmpb $0x1, (%rax,%rcx)
jne 0x10b2b5
cmpl $0x15, %eax
jne 0x10b297
testb $0x1, 0x7(%r12)
jne 0x10b2b5
cmpq %r12, 0x150(%r14)
je 0x10b2b5
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x9b866
jmp 0x10b0e9
leaq 0x4f0c4(%rip), %r9      # 0x15a380
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq *(%r9,%rax,8)
jmp 0x10b0e9
movq 0x110(%r14), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0xbd41
movq %rax, %r12
xorl %ebp, %ebp
jmp 0x10b26b