// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: op_map_1
static bool op_map_1(s7_scheme *sc)
                {
                    s7_pointer x, args, p, code;
                    code = sc->code;
                    args = sc->args;
                    p = counter_list(args);
                    x = s7_iterate(sc, p);

                    if (iterator_is_at_end(p))
                    {
                        sc->value = safe_reverse_in_place(sc, counter_result(args));
                        /* an experiment */
                        free_cell(sc, sc->args);
                        sc->args = sc->nil;
                        return(true);
                    }
                    push_stack(sc, OP_MAP_GATHER_1, args, code);
                    if (counter_capture(args) != sc->capture_let_counter)
                    {
                        new_frame_with_slot(sc, closure_let(code), sc->envir, car(closure_args(code)), x);
                        counter_set_let(args, sc->envir);
                        counter_set_slots(args, let_slots(sc->envir));
                        counter_set_capture(args, sc->capture_let_counter);
                    }
                    else
                    {
                        /* the counter_slots field saves the original local let slot(s) representing the function
                         *   argument.  If the function has internal defines, they get added to the front of the
                         *   slots list, but old_frame_with_slot (maybe stupidly) assumes only the one original
                         *   slot exists when it updates its symbol_id from the (possibly changed) let_id.  So,
                         *   a subsequent reference to the parameter name causes "unbound variable", or a segfault
                         *   if the check has been optimized away.  I think each function call should start with
                         *   the original let slots, so counter_slots saves that pointer, and resets it here.
                         */
                        let_set_slots(counter_let(args), counter_slots(args));
                        sc->envir = old_frame_with_slot(sc, counter_let(args), x);
                    }
                    sc->code = T_Pair(closure_body(code));
                    return(false);
                }

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x48(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0xe430
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rcx
movabsq $0x80000000, %rax       # imm = 0x80000000
andq (%rcx), %rax
cmpq $0x0, %rax
jne 0x134bdf
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0xe460
movq %rax, %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x48(%rsp), %rdi
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x2bcd0
movq 0x48(%rsp), %rax
movq 0x110(%rax), %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x10(%rax)
movb $0x1, 0x57(%rsp)
jmp 0x134e2f
jmp 0x134be1
movq 0x28(%rsp), %rcx
movq 0x48(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, (%rax)
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x48(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0x38(%rsp), %rcx
movq 0x48(%rsp), %rax
movq 0x50(%rax), %rax
movq %rcx, 0x10(%rax)
movq 0x48(%rsp), %rax
movq 0x50(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
movq %rcx, 0x18(%rax)
movq 0x48(%rsp), %rax
movq 0x50(%rax), %rcx
addq $0x20, %rcx
movq %rcx, 0x50(%rax)
movq 0x38(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x48(%rsp), %rcx
cmpq 0x240(%rcx), %rax
je 0x134ddf
jmp 0x134c5a
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x48(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x48(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x134c9a
movq 0x48(%rsp), %rdi
callq 0xc670
movq 0x48(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq $0x20001c, (%rax)       # imm = 0x20001C
movq 0x48(%rsp), %rax
movq 0x250(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x250(%rax)
movq 0x20(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x28(%rsp), %rax
movq 0x18(%rax), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x20(%rsp), %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x48(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq $0x20, (%rax)
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x8(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x18(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x48(%rsp), %rax
movq 0x250(%rax), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x10(%rsp), %rax
movl 0x28(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x28(%rax)
movq 0x18(%rsp), %rax
movq $0x0, 0x18(%rax)
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x48(%rsp), %rax
movq 0x240(%rax), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x28(%rax)
jmp 0x134e19
movq 0x38(%rsp), %rax
movq 0x20(%rax), %rcx
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0x48(%rsp), %rdi
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rsi
movq 0x40(%rsp), %rdx
callq 0x111f60
movq %rax, %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x48(%rsp), %rax
movq %rcx, (%rax)
movb $0x0, 0x57(%rsp)
movb 0x57(%rsp), %al
andb $0x1, %al
addq $0x58, %rsp
retq
nopw (%rax,%rax)