// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: missing_close_paren_error
static s7_pointer missing_close_paren_error(s7_scheme *sc)
                {
                    s7_int len;
                    char *msg, *syntax_msg = NULL;
                    s7_pointer pt;

                    if ((unchecked_type(sc->envir) != T_LET) &&
                            (sc->envir != sc->nil))
                        sc->envir = sc->nil;

                    pt = sc->input_port;

                    /* check *missing-close-paren-hook* */
                    if (hook_has_functions(sc->missing_close_paren_hook))
                    {
                        s7_pointer result;
                        if ((port_line_number(pt) > 0) &&
                                (port_filename(pt)))
                        {
                            integer(slot_value(sc->error_line)) = port_line_number(pt);
                            slot_set_value(sc->error_file, wrap_string(sc, port_filename(pt), port_filename_length(pt)));
                        }
                        result = s7_call(sc, sc->missing_close_paren_hook, sc->nil);
                        if (result != sc->unspecified)
                            return(g_throw(sc, list_1(sc, result)));
                    }

                    if (is_pair(sc->args))
                    {
                        s7_pointer p;
                        p = tree_descend(sc, sc->args, 0);
                        if ((p) && (is_pair(p)) &&
                                (has_line_number(p)))
                        {
                            s7_int msg_len, form_len;
                            s7_pointer strp;
                            char *form;
                            strp = object_to_truncated_string(sc, p, 40);
                            form = string_value(strp);
                            form_len = string_length(strp);
                            msg_len = form_len + 128;
                            syntax_msg = (char *)malloc(msg_len);
                            snprintf(syntax_msg, msg_len, ";  current form awaiting a close paren starts around line %u: %s", pair_line_number(p), form);
                        }
                    }

                    if ((port_line_number(pt) > 0) &&
                            (port_filename(pt)))
                    {
                        s7_pointer p;
                        len = port_filename_length(pt) + safe_strlen(sc->current_file) + safe_strlen(syntax_msg) + 128;
                        p = make_empty_string(sc, len, '\0');
                        msg = string_value(p);
                        if (syntax_msg)
                        {
                            len = snprintf(msg, len, "missing close paren, %s[%u], last top-level form at %s[%" print_s7_int "]\n%s",
                                    port_filename(pt), port_line_number(pt),
                                    sc->current_file, sc->current_line, syntax_msg);
                            free(syntax_msg);
                        }
                        else len = snprintf(msg, len, "missing close paren, %s[%u], last top-level form at %s[%" print_s7_int "]",
                                port_filename(pt), port_line_number(pt),
                                sc->current_file, sc->current_line);
                        string_length(p) = len;
                        return(s7_error(sc, sc->read_error_symbol, set_elist_1(sc, p)));
                    }

                    if (syntax_msg)
                    {
                        s7_pointer p;
                        len = safe_strlen(syntax_msg) + 128;
                        p = make_empty_string(sc, len, '\0');
                        msg = string_value(p);
                        len = catstrs(msg, len, "missing close paren\n", syntax_msg, "\n", NULL);
                        free(syntax_msg);
                        string_length(p) = len;
                        return(s7_error(sc, sc->read_error_symbol, set_elist_1(sc, p)));
                    }

                    if ((is_input_port(pt)) &&
                            (!port_is_closed(pt)) &&
                            (port_data(pt)) &&
                            (port_position(pt) > 0))
                    {
                        s7_pointer p;
                        s7_int start, pos;

                        p = make_empty_string(sc, 128, '\0');
                        msg = string_value(p);
                        memcpy((void *)msg, (void *)"missing close paren: ", 21);

                        pos = port_position(pt);
                        start = pos - 40;
                        if (start < 0) start = 0;
                        memcpy((void *)(msg + 21), (void *)(port_data(pt) + start), pos - start);
                        string_length(p) = 21 + pos - start;
                        return(s7_error(sc, sc->read_error_symbol, set_elist_1(sc, p)));
                    }
                    return(s7_error(sc, sc->read_error_symbol, set_elist_1(sc, wrap_string(sc, "missing close paren", 19))));
                }

// Assembly:
subq $0x118, %rsp            # imm = 0x118
movq %rdi, 0x108(%rsp)
movq $0x0, 0xf0(%rsp)
movq 0x108(%rsp), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1c, %eax
je 0x158ad7
movq 0x108(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x108(%rsp), %rcx
cmpq 0x110(%rcx), %rax
je 0x158ad7
movq 0x108(%rsp), %rax
movq 0x110(%rax), %rcx
movq 0x108(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x108(%rsp), %rax
movq 0x170(%rax), %rax
movq %rax, 0xe8(%rsp)
movq 0x108(%rsp), %rdi
movq 0x108(%rsp), %rax
movq 0x1f8(%rax), %rsi
callq 0xba20
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x158ce8
movq 0xe8(%rsp), %rax
movq 0x8(%rax), %rax
cmpl $0x0, 0x20(%rax)
jbe 0x158ba6
movq 0xe8(%rsp), %rax
movq 0x8(%rax), %rax
cmpq $0x0, 0x10(%rax)
je 0x158ba6
movq 0xe8(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x20(%rax), %eax
movl %eax, %ecx
movq 0x108(%rsp), %rax
movq 0x1b8(%rax), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0x108(%rsp), %rdi
movq 0xe8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rsi
movq 0xe8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x30(%rax), %rdx
callq 0xb880
movq %rax, %rcx
movq 0x108(%rsp), %rax
movq 0x1c0(%rax), %rax
movq %rcx, 0x10(%rax)
movq 0x108(%rsp), %rdi
movq 0x108(%rsp), %rax
movq 0x1f8(%rax), %rsi
movq 0x108(%rsp), %rax
movq 0x110(%rax), %rdx
callq 0x45890
movq %rax, 0xe0(%rsp)
movq 0xe0(%rsp), %rax
movq 0x108(%rsp), %rcx
cmpq 0x130(%rcx), %rax
je 0x158ce6
movq 0x108(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0xe0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0x108(%rsp), %rax
movq 0x110(%rax), %rax
movq %rax, 0xc8(%rsp)
movq 0x108(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x108(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x158c57
movq 0x108(%rsp), %rdi
callq 0xc670
movq 0x108(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0xd8(%rsp)
movq 0xd8(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0x68(%rsp), %rdi
movq 0xd0(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0xc8(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0xd8(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0xc0(%rsp), %rsi
callq 0xa0ec0
movq %rax, 0x110(%rsp)
jmp 0x159322
jmp 0x158ce8
movq 0x108(%rsp), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x158e09
movq 0x108(%rsp), %rdi
movq 0x108(%rsp), %rax
movq 0x10(%rax), %rsi
xorl %edx, %edx
callq 0x198110
movq %rax, 0xb8(%rsp)
cmpq $0x0, 0xb8(%rsp)
je 0x158e07
movq 0xb8(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x158e07
movq 0xb8(%rsp), %rax
movq (%rax), %rax
andq $0x40000, %rax          # imm = 0x40000
cmpq $0x0, %rax
je 0x158e07
movq 0x108(%rsp), %rdi
movq 0xb8(%rsp), %rsi
movl $0x28, %edx
callq 0x45d90
movq %rax, 0xa0(%rsp)
movq 0xa0(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x98(%rsp)
movq 0xa0(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rax
addq $0x80, %rax
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rdi
callq 0x9480
movq %rax, 0xf0(%rsp)
movq 0xf0(%rsp), %rdi
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rax
movl 0x2c(%rax), %ecx
movq 0x98(%rsp), %r8
leaq 0x9868b(%rip), %rdx     # 0x1f148b
movb $0x0, %al
callq 0x9210
jmp 0x158e09
movq 0xe8(%rsp), %rax
movq 0x8(%rax), %rax
cmpl $0x0, 0x20(%rax)
jbe 0x159030
movq 0xe8(%rsp), %rax
movq 0x8(%rax), %rax
cmpq $0x0, 0x10(%rax)
je 0x159030
movq 0xe8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x30(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x108(%rsp), %rax
movq 0x6a8(%rax), %rdi
callq 0xa430
movq %rax, %rcx
movq 0x58(%rsp), %rax
addq %rcx, %rax
movq %rax, 0x60(%rsp)
movq 0xf0(%rsp), %rdi
callq 0xa430
movq %rax, %rcx
movq 0x60(%rsp), %rax
addq %rcx, %rax
addq $0x80, %rax
movq %rax, 0x100(%rsp)
movq 0x108(%rsp), %rdi
movq 0x100(%rsp), %rsi
xorl %edx, %edx
callq 0x146a0
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xf8(%rsp)
cmpq $0x0, 0xf0(%rsp)
je 0x158f5d
movq 0xf8(%rsp), %rdi
movq 0x100(%rsp), %rsi
movq 0xe8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rcx
movq 0xe8(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x20(%rax), %r8d
movq 0x108(%rsp), %rax
movq 0x6a8(%rax), %r9
movq 0x108(%rsp), %rax
movq 0x690(%rax), %r10
movq 0xf0(%rsp), %rax
leaq 0x98598(%rip), %rdx     # 0x1f14cc
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
movb $0x0, %al
callq 0x9210
cltq
movq %rax, 0x100(%rsp)
movq 0xf0(%rsp), %rdi
callq 0x9050
jmp 0x158fc7
movq 0xf8(%rsp), %rdi
movq 0x100(%rsp), %rsi
movq 0xe8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rcx
movq 0xe8(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x20(%rax), %r8d
movq 0x108(%rsp), %rax
movq 0x6a8(%rax), %r9
movq 0x108(%rsp), %rax
movq 0x690(%rax), %rax
leaq 0x98559(%rip), %rdx     # 0x1f150b
movq %rax, (%rsp)
movb $0x0, %al
callq 0x9210
cltq
movq %rax, 0x100(%rsp)
movq 0x100(%rsp), %rcx
movq 0x90(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x108(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x108(%rsp), %rax
movq 0x1908(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x108(%rsp), %rdi
movq 0x90(%rsp), %rsi
callq 0xc3820
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x110(%rsp)
jmp 0x159322
cmpq $0x0, 0xf0(%rsp)
je 0x15913d
movq 0xf0(%rsp), %rdi
callq 0xa430
addq $0x80, %rax
movq %rax, 0x100(%rsp)
movq 0x108(%rsp), %rdi
movq 0x100(%rsp), %rsi
xorl %edx, %edx
callq 0x146a0
movq %rax, 0x88(%rsp)
movq 0x88(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xf8(%rsp)
movq 0xf8(%rsp), %rdi
movq 0x100(%rsp), %rsi
movq 0xf0(%rsp), %rcx
leaq 0x9849b(%rip), %rdx     # 0x1f1547
leaq 0x9b405(%rip), %r8      # 0x1f44b8
xorl %eax, %eax
movl %eax, %r9d
movb $0x0, %al
callq 0xabd0
movq %rax, 0x100(%rsp)
movq 0xf0(%rsp), %rdi
callq 0x9050
movq 0x100(%rsp), %rcx
movq 0x88(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x108(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x108(%rsp), %rax
movq 0x1908(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x108(%rsp), %rdi
movq 0x88(%rsp), %rsi
callq 0xc3820
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x110(%rsp)
jmp 0x159322
movq 0xe8(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x23, %eax
jne 0x1592b4
movq 0xe8(%rsp), %rax
movq 0x8(%rax), %rax
testb $0x1, 0x2(%rax)
jne 0x1592b4
movq 0xe8(%rsp), %rax
cmpq $0x0, 0x10(%rax)
je 0x1592b4
movq 0xe8(%rsp), %rax
cmpq $0x0, 0x20(%rax)
jle 0x1592b4
movq 0x108(%rsp), %rdi
movl $0x80, %esi
xorl %edx, %edx
callq 0x146a0
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xf8(%rsp)
movq 0xf8(%rsp), %rax
movq 0x98390(%rip), %rcx     # 0x1f155c
movq %rcx, (%rax)
movq 0x9838e(%rip), %rcx     # 0x1f1564
movq %rcx, 0x8(%rax)
movl 0x9838c(%rip), %ecx     # 0x1f156c
movl %ecx, 0x10(%rax)
movb 0x98387(%rip), %cl      # 0x1f1570
movb %cl, 0x14(%rax)
movq 0xe8(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
subq $0x28, %rax
movq %rax, 0x78(%rsp)
cmpq $0x0, 0x78(%rsp)
jge 0x15921c
movq $0x0, 0x78(%rsp)
movq 0xf8(%rsp), %rdi
addq $0x15, %rdi
movq 0xe8(%rsp), %rax
movq 0x10(%rax), %rsi
addq 0x78(%rsp), %rsi
movq 0x70(%rsp), %rdx
subq 0x78(%rsp), %rdx
callq 0x93e0
movq 0x70(%rsp), %rcx
addq $0x15, %rcx
subq 0x78(%rsp), %rcx
movq 0x80(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x108(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x108(%rsp), %rax
movq 0x1908(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x108(%rsp), %rdi
movq 0x80(%rsp), %rsi
callq 0xc3820
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x110(%rsp)
jmp 0x159322
movq 0x108(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x108(%rsp), %rax
movq 0x1908(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x108(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x108(%rsp), %rdi
leaq 0x98281(%rip), %rsi     # 0x1f1572
movl $0x13, %edx
callq 0xb880
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0xc3820
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x110(%rsp)
movq 0x110(%rsp), %rax
addq $0x118, %rsp            # imm = 0x118
retq
nopw %cs:(%rax,%rax)