// File: /workspace/github_c_makefile_star2_O3/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
pushq %rax
movq %rsi, %r12
movq 0x10(%rsi), %rax
movq 0x8(%rax), %r14
cmpq 0x120(%rdi), %r14
je 0x101cb6
movq %rdi, %rbx
cmpb $0x22, (%r14)
jne 0x101ccd
movq 0x8(%r14), %rax
cmpb $0x1, 0x2(%rax)
jne 0x101cfd
leaq 0x852d(%rip), %rsi      # 0x10a1be
leaq 0x192ed(%rip), %r8      # 0x11af85
movl $0x2, %edx
movq %rbx, %rdi
movq %r14, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xd4e5
movq 0x8(%r12), %r13
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xe80(%rbx), %rdx
movq 0x505ed(%rip), %r8      # 0x1522c8
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rcx
movl $0x2, %r9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe659
movq 0x8(%r12), %r13
movq (%r13), %rbp
btl $0x1e, %ebp
jae 0x101e33
cmpb $0x1, 0x24c(%rbx)
jne 0x101e33
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8a63
movq 0xe80(%rbx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x89ff
cmpq 0x128(%rbx), %rax
je 0x101e33
cmpb $0x1, (%r12)
jne 0x101e99
movq %rax, (%rsp)
movq %r12, 0x4c8(%rbx)
movq 0x8(%r12), %r13
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %rbp
cmpq 0x98(%rbx), %rax
ja 0x101d88
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r14
movq $0x200001, (%r14)       # imm = 0x200001
movq %r13, 0x8(%r14)
movq %rbp, 0x10(%r14)
movq %r14, 0x4e8(%rbx)
movq 0x10(%r12), %r12
cmpb $0x1, (%r12)
jne 0x101e18
movq %r14, %r13
movq 0x8(%r12), %rbp
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r15
cmpq 0x98(%rbx), %rax
ja 0x101de7
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq %rbp, 0x8(%rax)
movq %r15, 0x10(%rax)
movq %rax, 0x10(%r13)
movq 0x10(%r12), %r12
cmpb $0x1, (%r12)
movq %rax, %r13
je 0x101dbc
movq 0x110(%rbx), %rax
movq %rax, 0x4e8(%rbx)
movq %rax, 0x4c8(%rbx)
movq (%rsp), %rax
jmp 0x101ea0
movzbl %bpl, %eax
movabsq $0x100000000000015, %rcx # imm = 0x100000000000015
leaq 0xea(%rcx), %rdx
andq %rbp, %rdx
cmpq %rcx, %rdx
je 0x101e7b
leaq 0x504e9(%rip), %rcx     # 0x152340
cmpb $0x0, (%rax,%rcx)
je 0x101e7b
cmpq %r13, 0x150(%rbx)
je 0x101e7b
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x95196
jmp 0x101cbb
leaq 0x504fe(%rip), %r9      # 0x152380
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq *(%r9,%rax,8)
jmp 0x101cbb
movq 0x110(%rbx), %r14
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xaee6