// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: op_case_e_g_1
static bool op_case_e_g_1(s7_scheme *sc, s7_pointer selector, bool ok)
                {
                    s7_pointer x, y;
                    if (ok)
                    {
                        for (x = cddr(sc->code); is_pair(x); x = cdr(x))
                        {
                            y = opt2_any(x);
                            if (!is_pair(y)) /* i.e. else? */
                                goto ELSE_CASE_1;
                            do {
                                if (car(y) == selector)
                                    goto ELSE_CASE_1;
                                y = cdr(y);
                            } while (is_pair(y));
                        }
                        sc->value = sc->unspecified;
                        pop_stack(sc);
                        return(true);
                    }

                    sc->code = opt3_any(cdr(sc->code));
                    if (sc->code == sc->unused)    /* set in check_case if no else clause */
                        sc->value = sc->unspecified;
                    else
                    {
                        if (is_pair(sc->code))
                            goto ELSE_CASE_2;
                    }
                    pop_stack(sc);
                    return(true);

ELSE_CASE_1:
                    /* x is the entire matching clause, (case 2 ((2) 3)), x: (((2) 3)) */
                    sc->code = T_Lst(cdar(x));
                    if (is_null(sc->code))  /* sc->value is already the selector */
                    {
                        pop_stack(sc);
                        return(true);
                    }

ELSE_CASE_2:
                    if (is_null(cdr(sc->code)))
                    {
                        sc->code = car(sc->code);
                        sc->cur_op = optimize_op(sc->code);
                        return(true);
                    }

                    if ((car(sc->code) == sc->feed_to_symbol) &&
                            (s7_symbol_value(sc, sc->feed_to_symbol) == sc->undefined))
                        return(false);

                    push_stack_no_args(sc, sc->begin_op, T_Pair(cdr(sc->code)));
                    sc->code = car(sc->code);
                    sc->cur_op = optimize_op(sc->code);
                    return(true);
                }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x10(%rax), %rax
testl %edx, %edx
je 0xd3c8d
movq 0x10(%rax), %rax
cmpb $0x1, (%rax)
jne 0xd3cab
movq 0x20(%rax), %rcx
cmpb $0x1, (%rcx)
jne 0xd3cbf
cmpq %rsi, 0x8(%rcx)
je 0xd3cbf
movq 0x10(%rcx), %rcx
cmpb $0x1, (%rcx)
je 0xd3c7c
jmp 0xd3c6a
movq 0x28(%rax), %rax
movq %rax, (%rbx)
cmpq 0x140(%rbx), %rax
je 0xd3d3f
cmpb $0x1, (%rax)
je 0xd3cd3
jmp 0xd3d4a
movq 0x50(%rbx), %rax
movq 0x130(%rbx), %rcx
movq %rcx, 0x20(%rbx)
jmp 0xd3d4e
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, (%rbx)
cmpq 0x110(%rbx), %rax
je 0xd3d4a
movq (%rbx), %rcx
movq 0x8(%rcx), %rax
movq 0x10(%rcx), %r14
cmpq 0x110(%rbx), %r14
je 0xd3d32
movq 0x18f0(%rbx), %rsi
cmpq %rsi, %rax
jne 0xd3d04
movq %rbx, %rdi
callq 0xaa24
cmpq 0x128(%rbx), %rax
je 0xd3d6f
movq 0x50(%rbx), %rax
movq %r14, (%rax)
movq 0x8(%rbx), %rax
movq 0x50(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x688(%rbx), %rax
movq 0x50(%rbx), %rcx
movq %rax, 0x18(%rcx)
addq $0x20, 0x50(%rbx)
movq (%rbx), %rax
movq 0x8(%rax), %rax
movq %rax, (%rbx)
movzwl 0x4(%rax), %eax
movq %rax, 0x18(%rbx)
jmp 0xd3d65
movq 0x130(%rbx), %rax
movq %rax, 0x20(%rbx)
movq 0x50(%rbx), %rax
leaq -0x20(%rax), %rcx
movq %rcx, 0x50(%rbx)
movups -0x20(%rax), %xmm0
movups -0x10(%rax), %xmm1
movups %xmm0, (%rbx)
movups %xmm1, 0x10(%rbx)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
xorl %eax, %eax
jmp 0xd3d67