// File: /workspace/github_c_makefile_star2_O3/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 %rsi, %rbp
movq %rdi, %rbx
movb $0x0, 0xf(%rsp)
movq 0x8(%rsi), %r15
movq 0x50(%rdi), %r13
subq 0x48(%rdi), %r13
movq 0x10(%rsi), %r12
sarq $0x3, %r13
movq %r15, %rsi
cmpq $0x4, %r13
jl 0x7e762
movq %rbp, 0x10(%rsp)
decq %r13
leaq 0xcdc97(%rip), %r14     # 0x14c3b0
leaq 0xf(%rsp), %rbp
movq 0x38(%rbx), %rax
movq 0x10(%rax), %rax
movq (%rax,%r13,8), %rax
movq (%r14,%rax,8), %rax
testq %rax, %rax
je 0x7e74c
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
movq %rbp, %r8
callq *%rax
testb %al, %al
jne 0x7e905
leaq -0x4(%r13), %rax
cmpq $0x6, %r13
movq %rax, %r13
jg 0x7e71e
movq 0x10(%rsp), %rbp
movq 0x8(%rbp), %rsi
cmpb $0x1c, (%rsi)
jne 0x7e894
testb $0x40, 0x3(%rsi)
je 0x7e894
cmpb $0x1, 0x24c(%rbx)
jne 0x7e894
movq %rbx, %rdi
callq 0x8a63
movq 0x15e8(%rbx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x89ff
cmpq 0x128(%rbx), %rax
je 0x7e894
cmpb $0x1, (%rbp)
jne 0x7e914
movq %rax, 0x10(%rsp)
movq %rbp, 0x4c8(%rbx)
movq 0x8(%rbp), %r14
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r12
cmpq 0x98(%rbx), %rax
ja 0x7e7e9
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r15
movq $0x200001, (%r15)       # imm = 0x200001
movq %r14, 0x8(%r15)
movq %r12, 0x10(%r15)
movq %r15, 0x4e8(%rbx)
movq 0x10(%rbp), %r14
cmpb $0x1, (%r14)
jne 0x7e875
movq %r15, %r12
movq 0x8(%r14), %rbp
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0x7e845
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 %r13, 0x10(%rax)
movq %rax, 0x10(%r12)
movq 0x10(%r14), %r14
cmpb $0x1, (%r14)
movq %rax, %r12
je 0x7e81b
movq 0x110(%rbx), %rax
movq %rax, 0x4e8(%rbx)
movq %rax, 0x4c8(%rbx)
movq 0x10(%rsp), %rax
jmp 0x7e91b
leaq 0x9d5d2(%rip), %rsi     # 0x11be6d
movq %rbx, %rdi
callq 0x9afc
movq %rax, %r14
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rcx
movq (%rax,%rcx,8), %rax
incl %ecx
andl $0x7, %ecx
movl %ecx, 0x7dc(%rbx)
leaq 0x9d5b2(%rip), %rcx     # 0x11be7c
movq %rcx, 0x10(%rax)
movq $0x26, 0x8(%rax)
movq 0x6e8(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x10(%rcx), %rax
movq %r15, 0x8(%rax)
movq 0x10(%rax), %rax
movq %r12, 0x8(%rax)
movq 0x6e8(%rbx), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x38dfa
jmp 0x7e92c
cmpb $0x1, 0x678(%rbx)
je 0x7e93e
movq 0x20(%rbx), %r14
jmp 0x7e92c
movq 0x110(%rbx), %r15
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0xaee6
movq %rax, %r14
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq $0x5b0, %rbx            # imm = 0x5B0
movq %rbx, %rdi
movl $0x2, %esi
callq 0x8530