// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x78, %rsp
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movb $0x0, 0x5f(%rsp)
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x68(%rsp), %rax
movq 0x50(%rax), %rax
movq 0x68(%rsp), %rcx
movq 0x48(%rcx), %rcx
subq %rcx, %rax
sarq $0x3, %rax
subq $0x1, %rax
movq %rax, 0x50(%rsp)
cmpq $0x3, 0x50(%rsp)
jl 0xa0fbd
movq 0x68(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rax), %rax
movq 0x50(%rsp), %rcx
movq (%rax,%rcx,8), %rcx
leaq 0x17afa6(%rip), %rax    # 0x21bee0
movq (%rax,%rcx,8), %rax
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x38(%rsp)
je 0xa0fa8
movq 0x38(%rsp), %rax
movq 0x68(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x40(%rsp), %rcx
leaq 0x5f(%rsp), %r8
callq *%rax
testb $0x1, %al
jne 0xa0f71
jmp 0xa0fa8
movq 0x68(%rsp), %rax
testb $0x1, 0x678(%rax)
je 0xa0f95
movq 0x68(%rsp), %rdi
addq $0x5b0, %rdi            # imm = 0x5B0
movl $0x2, %esi
callq 0x9530
movq 0x68(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x70(%rsp)
jmp 0xa10f3
jmp 0xa0faa
movq 0x50(%rsp), %rax
subq $0x4, %rax
movq %rax, 0x50(%rsp)
jmp 0xa0f11
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1c, %eax
jne 0xa1087
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
je 0xa1085
movq 0x68(%rsp), %rax
testb $0x1, 0x24c(%rax)
je 0xa1085
movq 0x68(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x9a10
movq 0x28(%rsp), %rdi
movq %rax, %rsi
movq 0x68(%rsp), %rax
movq 0x15e8(%rax), %rdx
callq 0x98d0
movq %rax, 0x30(%rsp)
movq 0x68(%rsp), %rcx
cmpq 0x128(%rcx), %rax
je 0xa1085
movq 0x68(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x44270
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq %rax, %rdx
callq 0xda50
movq %rax, 0x70(%rsp)
jmp 0xa10f3
jmp 0xa1087
movq 0x68(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x68(%rsp), %rdi
leaq 0x152d2b(%rip), %rsi    # 0x1f3dc8
callq 0xb400
movq %rax, 0x10(%rsp)
movq 0x68(%rsp), %rax
movq %rax, (%rsp)
movq 0x68(%rsp), %rdi
leaq 0x152d1b(%rip), %rsi    # 0x1f3dd7
movl $0x26, %edx
callq 0xb880
movq (%rsp), %rdi
movq %rax, %rsi
movq 0x48(%rsp), %rdx
movq 0x40(%rsp), %rcx
callq 0xf240
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
addq $0x78, %rsp
retq
nopl (%rax)