// File: /workspace/github_c_makefile_star2_O2/BernardTatin[P]s7sh/s7.c
// Function: g_throw
static s7_pointer g_throw(s7_scheme *sc, s7_pointer args)
                {
#define H_throw "(throw tag . info) is like (error ...) but it does not affect the owlet. \
                    It looks for an existing catch with a matching tag, and jumps to it if found.  Otherwise it raises an error."
#define Q_throw s7_make_circular_signature(sc, 1, 2, sc->values_symbol, sc->T)

                    bool ignored_flag = false;
                    int64_t i;
                    s7_pointer type, info;

                    type = car(args);
                    info = cdr(args);

                    /* look for a catcher */
                    for (i = s7_stack_top(sc) - 1; i >= 3; i -= 4)
                    {
                        catch_function catcher;
                        catcher = catchers[stack_op(sc->stack, i)];
                        if ((catcher) &&
                                (catcher(sc, i, type, info, &ignored_flag)))
                        {
                            if (sc->longjmp_ok) longjmp(sc->goto_start, THROW_JUMP);
                            return(sc->value);
                        }
                    }
                    if (is_let(car(args)))
                        check_method(sc, car(args), sc->throw_symbol, args);
                    return(s7_error(sc, make_symbol(sc, "uncaught-throw"),
                                set_elist_3(sc, wrap_string(sc, "no catch found for (throw ~W~{~^ ~S~})", 38), type, info)));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0xf(%rsp), %r13
movb $0x0, (%r13)
movq 0x8(%rsi), %r14
movq 0x50(%rdi), %rbp
subq 0x48(%rdi), %rbp
movq %rsi, 0x10(%rsp)
movq 0x10(%rsi), %r15
sarq $0x3, %rbp
decq %rbp
leaq 0xb581c(%rip), %r12     # 0x11b3b0
cmpq $0x3, %rbp
jl 0x65bce
movq 0x38(%rbx), %rax
movq 0x10(%rax), %rax
movq (%rax,%rbp,8), %rax
movq (%r12,%rax,8), %rax
testq %rax, %rax
je 0x65bc8
movq %rbx, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq %r15, %rcx
movq %r13, %r8
callq *%rax
testb %al, %al
jne 0x65ca1
addq $-0x4, %rbp
jmp 0x65b94
movq 0x10(%rsp), %r12
movq 0x8(%r12), %rsi
cmpb $0x1c, (%rsi)
jne 0x65c30
testb $0x40, 0x3(%rsi)
je 0x65c30
cmpb $0x1, 0x24c(%rbx)
jne 0x65c30
movq %rbx, %rdi
callq 0x88f3
movq 0x15e8(%rbx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x888f
cmpq 0x128(%rbx), %rax
je 0x65c30
movq %rax, %r13
movq %rbx, %rdi
movq %r12, %rsi
callq 0x35492
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0xa34c
movq %rax, %r12
jmp 0x65cae
leaq 0x821d6(%rip), %rsi     # 0xe7e0d
movq %rbx, %rdi
callq 0x94d4
movq %rax, %r12
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rcx
movq (%rax,%rcx,8), %rax
incl %ecx
andl $0x7, %ecx
movl %ecx, 0x7dc(%rbx)
leaq 0x821b6(%rip), %rcx     # 0xe7e1c
movq %rcx, 0x10(%rax)
movq $0x26, 0x8(%rax)
movq 0x6e8(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x10(%rcx), %rax
movq %r14, 0x8(%rax)
movq 0x10(%rax), %rax
movq %r15, 0x8(%rax)
movq 0x6e8(%rbx), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x2cdc0
jmp 0x65cae
cmpb $0x1, 0x678(%rbx)
je 0x65cc0
movq 0x20(%rbx), %r12
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq $0x5b0, %rbx            # imm = 0x5B0
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x8530