// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: resize_stack
static void resize_stack(s7_scheme *sc)
    {
        uint64_t loc;
        uint32_t new_size;
        block_t *ob, *nb;

        loc = s7_stack_top(sc);
        new_size = sc->stack_size * 2;

        /* how can we trap infinite recursion?  Is a warning in order here? I think I'll add 'max-stack-size */
        if (new_size > sc->max_stack_size)
            s7_error(sc, make_symbol(sc, "stack-too-big"), set_elist_1(sc, wrap_string(sc, "stack has grown past (*s7* 'max-stack-size)", 43)));

        ob = stack_block(sc->stack);
        nb = reallocate(sc, ob, new_size * sizeof(s7_pointer));
        block_info(nb) = NULL;
        stack_block(sc->stack) = nb;
        stack_elements(sc->stack) = (s7_pointer *)block_data(nb);
        if (!stack_elements(sc->stack))
        {
            s7_warn(sc, 32, "can't allocate additional stack\n");
#if S7_DEBUGGING
            abort();
#endif
            s7_error(sc, make_symbol(sc, "stack-too-big"), set_elist_1(sc, wrap_string(sc, "no room to expand stack?", 24)));
        }
        {
            s7_pointer *orig;
            s7_int i, left;
            i = sc->stack_size;
            left = new_size - i - 8;
            orig = stack_elements(sc->stack);
            while (i <= left)
                LOOP_8(orig[i++] = sc->nil);
            for (; i < new_size; i++)
                orig[i] = sc->nil;
        }
        vector_length(sc->stack) = new_size;
        sc->stack_size = new_size;

        sc->stack_start = stack_elements(sc->stack);
        sc->stack_end = (s7_pointer *)(sc->stack_start + loc);
        sc->stack_resize_trigger = (s7_pointer *)(sc->stack_start + sc->stack_size / 2);

        if (show_stack_stats(sc))
        {
            s7_warn(sc, 128, "stack grows to %u, %s\n", new_size, DISPLAY_80(sc->code));
            s7_show_let(sc);
        }
    }

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq 0x50(%rax), %rax
movq 0x80(%rsp), %rcx
movq 0x48(%rcx), %rcx
subq %rcx, %rax
sarq $0x3, %rax
movq %rax, 0x78(%rsp)
movq 0x80(%rsp), %rax
movl 0x40(%rax), %eax
shll %eax
movl %eax, 0x74(%rsp)
movl 0x74(%rsp), %eax
movq 0x80(%rsp), %rcx
cmpl 0x7c(%rcx), %eax
jbe 0x10fe80
movq 0x80(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x80(%rsp), %rdi
leaq 0xdf6b9(%rip), %rsi     # 0x1ef4ea
callq 0xb400
movq %rax, 0x40(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x80(%rsp), %rdi
leaq 0xdf6a1(%rip), %rsi     # 0x1ef4f8
movl $0x2b, %edx
callq 0xb880
movq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0xc3820
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq 0x80(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x18(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x80(%rsp), %rdi
movq 0x68(%rsp), %rsi
movl 0x74(%rsp), %eax
movl %eax, %edx
shlq $0x3, %rdx
callq 0xbb60
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq $0x0, 0x20(%rax)
movq 0x60(%rsp), %rcx
movq 0x80(%rsp), %rax
movq 0x38(%rax), %rax
movq %rcx, 0x18(%rax)
movq 0x60(%rsp), %rax
movq (%rax), %rcx
movq 0x80(%rsp), %rax
movq 0x38(%rax), %rax
movq %rcx, 0x10(%rax)
movq 0x80(%rsp), %rax
movq 0x38(%rax), %rax
cmpq $0x0, 0x10(%rax)
jne 0x10ff8d
movq 0x80(%rsp), %rdi
movl $0x20, %esi
leaq 0xdf609(%rip), %rdx     # 0x1ef524
movb $0x0, %al
callq 0x14df0
movq 0x80(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x80(%rsp), %rdi
leaq 0xdf5ac(%rip), %rsi     # 0x1ef4ea
callq 0xb400
movq %rax, 0x28(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x80(%rsp), %rdi
leaq 0xdf5e1(%rip), %rsi     # 0x1ef545
movl $0x18, %edx
callq 0xb880
movq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0xc3820
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq 0x80(%rsp), %rax
movl 0x40(%rax), %eax
movq %rax, 0x50(%rsp)
movl 0x74(%rsp), %eax
subq 0x50(%rsp), %rax
subq $0x8, %rax
movq %rax, 0x48(%rsp)
movq 0x80(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x50(%rsp), %rax
cmpq 0x48(%rsp), %rax
jg 0x110123
jmp 0x10ffd6
movq 0x80(%rsp), %rax
movq 0x110(%rax), %rdx
movq 0x58(%rsp), %rax
movq 0x50(%rsp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x50(%rsp)
movq %rdx, (%rax,%rcx,8)
movq 0x80(%rsp), %rax
movq 0x110(%rax), %rdx
movq 0x58(%rsp), %rax
movq 0x50(%rsp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x50(%rsp)
movq %rdx, (%rax,%rcx,8)
movq 0x80(%rsp), %rax
movq 0x110(%rax), %rdx
movq 0x58(%rsp), %rax
movq 0x50(%rsp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x50(%rsp)
movq %rdx, (%rax,%rcx,8)
movq 0x80(%rsp), %rax
movq 0x110(%rax), %rdx
movq 0x58(%rsp), %rax
movq 0x50(%rsp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x50(%rsp)
movq %rdx, (%rax,%rcx,8)
movq 0x80(%rsp), %rax
movq 0x110(%rax), %rdx
movq 0x58(%rsp), %rax
movq 0x50(%rsp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x50(%rsp)
movq %rdx, (%rax,%rcx,8)
movq 0x80(%rsp), %rax
movq 0x110(%rax), %rdx
movq 0x58(%rsp), %rax
movq 0x50(%rsp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x50(%rsp)
movq %rdx, (%rax,%rcx,8)
movq 0x80(%rsp), %rax
movq 0x110(%rax), %rdx
movq 0x58(%rsp), %rax
movq 0x50(%rsp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x50(%rsp)
movq %rdx, (%rax,%rcx,8)
movq 0x80(%rsp), %rax
movq 0x110(%rax), %rdx
movq 0x58(%rsp), %rax
movq 0x50(%rsp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x50(%rsp)
movq %rdx, (%rax,%rcx,8)
jmp 0x10ffc4
jmp 0x110125
movq 0x50(%rsp), %rax
movl 0x74(%rsp), %ecx
cmpq %rcx, %rax
jge 0x110160
movq 0x80(%rsp), %rax
movq 0x110(%rax), %rdx
movq 0x58(%rsp), %rax
movq 0x50(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
jmp 0x110125
movl 0x74(%rsp), %eax
movl %eax, %ecx
movq 0x80(%rsp), %rax
movq 0x38(%rax), %rax
movq %rcx, 0x8(%rax)
movl 0x74(%rsp), %ecx
movq 0x80(%rsp), %rax
movl %ecx, 0x40(%rax)
movq 0x80(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rax), %rcx
movq 0x80(%rsp), %rax
movq %rcx, 0x48(%rax)
movq 0x80(%rsp), %rax
movq 0x48(%rax), %rcx
movq 0x78(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x80(%rsp), %rax
movq %rcx, 0x50(%rax)
movq 0x80(%rsp), %rax
movq 0x48(%rax), %rcx
movq 0x80(%rsp), %rax
movl 0x40(%rax), %eax
shrl %eax
movl %eax, %eax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x80(%rsp), %rax
movq %rcx, 0x58(%rax)
movq 0x80(%rsp), %rax
movl 0x21c(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x110268
movq 0x80(%rsp), %rax
movq %rax, 0x8(%rsp)
movl 0x74(%rsp), %eax
movl %eax, 0x14(%rsp)
movq 0x80(%rsp), %rdi
movq 0x80(%rsp), %rax
movq (%rax), %rsi
movl $0x50, %edx
callq 0x45d90
movq 0x8(%rsp), %rdi
movl 0x14(%rsp), %ecx
movq 0x10(%rax), %r8
movl $0x80, %esi
leaq 0xdf30a(%rip), %rdx     # 0x1ef55e
movb $0x0, %al
callq 0x14df0
movq 0x80(%rsp), %rdi
callq 0x2cbd0
addq $0x88, %rsp
retq