// File: /workspace/github_c_makefile_star2_O1/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 $0x28, %rsp
movq %rdi, %rbx
movb $0x0, 0x7(%rsp)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rsp)
movq %rsi, 0x20(%rsp)
movq 0x10(%rsi), %rax
movq %rax, 0x10(%rsp)
movq 0x50(%rdi), %rbp
subq 0x48(%rdi), %rbp
sarq $0x3, %rbp
cmpq $0x4, %rbp
jl 0x84a0a
decq %rbp
leaq 0xcfa06(%rip), %r15     # 0x1543b0
leaq 0x7(%rsp), %r14
movq 0x38(%rbx), %rax
movq 0x10(%rax), %rax
movq (%rax,%rbp,8), %rax
movq (%r15,%rax,8), %rax
movb $0x1, %r13b
testq %rax, %rax
je 0x849f4
movq %rbx, %rdi
movq %rbp, %rsi
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq %r14, %r8
callq *%rax
testb %al, %al
je 0x849f4
cmpb $0x1, 0x678(%rbx)
je 0x84c7e
movq 0x20(%rbx), %r12
xorl %r13d, %r13d
testb %r13b, %r13b
je 0x84c66
leaq -0x4(%rbp), %rax
cmpq $0x7, %rbp
movq %rax, %rbp
jge 0x849af
movq 0x20(%rsp), %r13
movq 0x8(%r13), %rsi
cmpb $0x1c, (%rsi)
jne 0x84b6a
movb $0x1, %r14b
testb $0x40, 0x3(%rsi)
je 0x84b61
cmpb $0x1, 0x24c(%rbx)
jne 0x84b61
movq %rbx, %rdi
callq 0x9a55
movq 0x15e8(%rbx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x99ef
cmpq 0x128(%rbx), %rax
je 0x84b61
cmpb $0x1, (%r13)
jne 0x84b46
movq %rax, 0x18(%rsp)
movq %r13, 0x4c8(%rbx)
movq 0x8(%r13), %r15
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r12
cmpq 0x98(%rbx), %rax
ja 0x84a97
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r14
movq $0x200001, (%r14)       # imm = 0x200001
movq %r15, 0x8(%r14)
movq %r12, 0x10(%r14)
movq %r14, 0x4e8(%rbx)
movq 0x10(%r13), %r15
cmpb $0x1, (%r15)
jne 0x84b2a
movq %r14, %r12
movq 0x8(%r15), %r13
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %rbp
cmpq 0x98(%rbx), %rax
ja 0x84af3
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq %r13, 0x8(%rax)
movq %rbp, 0x10(%rax)
movq %rax, 0x10(%r12)
movq 0x10(%r15), %r15
cmpb $0x1, (%r15)
movq %rax, %r12
je 0x84ad0
movq 0x110(%rbx), %rax
movq %rax, 0x4e8(%rbx)
movq %rax, 0x4c8(%rbx)
movq 0x18(%rsp), %rax
jmp 0x84b4d
movq 0x110(%rbx), %r14
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0xbd41
movq %rax, %r12
xorl %r14d, %r14d
testb %r14b, %r14b
je 0x84c66
movabsq $0x7468dee4d3cbe2a2, %rcx # imm = 0x7468DEE4D3CBE2A2
movq 0x148(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x1ef08(%rax), %rax
cmpb $0x1, (%rax)
jne 0x84be2
leaq 0xa01cb(%rip), %rdx     # 0x124d5d
movabsq $0x7468677561636e75, %rsi # imm = 0x7468677561636E75
cmpq %rcx, 0x18(%rax)
jne 0x84bd9
cmpl $0xe, 0x2c(%rax)
jne 0x84bd9
movq 0x20(%rax), %rdi
cmpq %rsi, (%rdi)
jne 0x84bd9
xorl %r8d, %r8d
movb 0x8(%r8,%rdx), %r9b
movb 0x8(%rdi,%r8), %r10b
cmpb %r10b, %r9b
jne 0x84bd0
leaq 0x1(%r8), %r11
cmpq $0x5, %r8
movq %r11, %r8
jne 0x84bb4
cmpb %r10b, %r9b
je 0x84c78
movq 0x10(%rax), %rax
cmpb $0x1, (%rax)
je 0x84b9c
leaq 0xa0174(%rip), %rsi     # 0x124d5d
movl $0xe, %edx
movq %rbx, %rdi
movl $0x3de1, %r8d           # imm = 0x3DE1
callq 0xa5ef
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 0xa0149(%rip), %rcx     # 0x124d6c
movq %rcx, 0x10(%rax)
movq $0x26, 0x8(%rax)
movq 0x6e8(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x10(%rcx), %rax
movq 0x8(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rax), %rax
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0x6e8(%rbx), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3b366
movq %r12, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rax), %r12
jmp 0x84bff
addq $0x5b0, %rbx            # imm = 0x5B0
movq %rbx, %rdi
movl $0x2, %esi
callq 0x9530