// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: catch_2_function
static bool catch_2_function(s7_scheme *sc, s7_int i, s7_pointer type, s7_pointer info, bool *reset_hook)
                {
                    /* this is the macro-error-handler case from g_catch
                     *    (let () (define-macro (m . args) (apply (car args) (cadr args))) (catch #t (lambda () (error abs -1)) m))
                     */
                    s7_pointer x;
                    x = stack_code(sc->stack, i);
                    if ((catch_tag(x) == sc->T) ||
                            (catch_tag(x) == type) ||
                            (type == sc->T))
                    {
                        int64_t loc;
                        loc = catch_goto_loc(x);
                        sc->op_stack_now = (s7_pointer *)(sc->op_stack + catch_op_loc(x));
                        sc->stack_end = (s7_pointer *)(sc->stack_start + loc);
                        sc->code = catch_handler(x);

                        if (needs_copied_args(sc->code))
                            sc->args = list_2(sc, type, info);
                        else           /* very unlikely: need c_macro as error catcher: (catch #t (lambda () (error 'oops)) require) */
                        {
                            set_car(sc->t2_1, type);
                            set_car(sc->t2_2, info);
                            sc->args = sc->t2_1;
                        }
                        sc->cur_op = OP_APPLY;
                        return(true);
                    }
                    return(false);
                }

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq %rdx, 0x58(%rsp)
movq %rcx, 0x50(%rsp)
movq %r8, 0x48(%rsp)
movq 0x68(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rax), %rax
movq 0x60(%rsp), %rcx
subq $0x3, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x68(%rsp), %rcx
cmpq 0x118(%rcx), %rax
je 0x1b89ea
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
cmpq 0x58(%rsp), %rax
je 0x1b89ea
movq 0x58(%rsp), %rax
movq 0x68(%rsp), %rcx
cmpq 0x118(%rcx), %rax
jne 0x1b8b81
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x68(%rsp), %rax
movq 0x60(%rax), %rcx
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x68(%rax)
movq 0x68(%rsp), %rax
movq 0x48(%rax), %rcx
movq 0x38(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x50(%rax)
movq 0x40(%rsp), %rax
movq 0x20(%rax), %rcx
movq 0x68(%rsp), %rax
movq %rcx, (%rax)
movq 0x68(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rax
andq $0x10000000, %rax       # imm = 0x10000000
cmpq $0x0, %rax
je 0x1b8b2e
movq 0x68(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x68(%rsp), %rax
movq 0x110(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x68(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x68(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x1b8ab7
movq 0x68(%rsp), %rdi
callq 0xc670
movq 0x68(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x20(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x30(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdx
callq 0xd9f0
movq %rax, %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x1b8b6d
movq 0x58(%rsp), %rcx
movq 0x68(%rsp), %rax
movq 0x570(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0x50(%rsp), %rcx
movq 0x68(%rsp), %rax
movq 0x578(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0x68(%rsp), %rax
movq 0x570(%rax), %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x68(%rsp), %rax
movq $0x198, 0x18(%rax)      # imm = 0x198
movb $0x1, 0x77(%rsp)
jmp 0x1b8b86
movb $0x0, 0x77(%rsp)
movb 0x77(%rsp), %al
andb $0x1, %al
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)