// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: make_vdims
static vdims_t *make_vdims(s7_scheme *sc, bool elements_should_be_freed, s7_int dims, s7_int *dim_info)
                {
                    vdims_t *v;

                    if ((dims == 1) && (!elements_should_be_freed))
                        return(sc->wrap_only);

                    if (dims > 1)
                    {
                        s7_int i, offset = 1;
                        v = (vdims_t *)mallocate(sc, dims * 2 * sizeof(s7_int));
                        vdims_original(v) = sc->F;
                        vector_elements_should_be_freed(v) = elements_should_be_freed;
                        vdims_rank(v) = dims;
                        vdims_offsets(v) = (s7_int *)(vdims_dims(v) + dims);

                        for (i = 0; i < dims; i++)
                            vdims_dims(v)[i] = dim_info[i];
                        for (i = dims - 1; i >= 0; i--)
                        {
                            vdims_offsets(v)[i] = offset;
                            offset *= vdims_dims(v)[i];
                        }
                    }
                    else
                    {
                        v = (vdims_t *)mallocate_block(sc);
                        vdims_original(v) = sc->F;
                        vector_elements_should_be_freed(v) = elements_should_be_freed;
                        vdims_rank(v) = 1;
                        vdims_dims(v) = NULL;
                        vdims_offsets(v) = NULL;
                    }
                    return(v);
                }

// Assembly:
subq $0x48, %rsp
movb %sil, %al
movq %rdi, 0x38(%rsp)
andb $0x1, %al
movb %al, 0x37(%rsp)
movq %rdx, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
cmpq $0x1, 0x28(%rsp)
jne 0x339e1
testb $0x1, 0x37(%rsp)
jne 0x339e1
movq 0x38(%rsp), %rax
movq 0x470(%rax), %rax
movq %rax, 0x40(%rsp)
jmp 0x33b62
cmpq $0x1, 0x28(%rsp)
jle 0x33aff
movq $0x1, 0x8(%rsp)
movq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rsi
shlq %rsi
shlq $0x3, %rsi
callq 0xaa80
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rax
movq 0x120(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x20(%rax)
movb 0x37(%rsp), %cl
movq 0x18(%rsp), %rax
andb $0x1, %cl
movb %cl, 0xc(%rax)
movq 0x28(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x18(%rsp), %rax
movq (%rax), %rcx
movq 0x28(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x18(%rax)
movq $0x0, 0x10(%rsp)
movq 0x10(%rsp), %rax
cmpq 0x28(%rsp), %rax
jge 0x33aa4
movq 0x20(%rsp), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x33a69
movq 0x28(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jl 0x33afd
movq 0x8(%rsp), %rdx
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x10(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
imulq 0x8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x33ab2
jmp 0x33b58
movq 0x38(%rsp), %rdi
callq 0x11020
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rax
movq 0x120(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x20(%rax)
movb 0x37(%rsp), %cl
movq 0x18(%rsp), %rax
andb $0x1, %cl
movb %cl, 0xc(%rax)
movq 0x18(%rsp), %rax
movq $0x1, 0x10(%rax)
movq 0x18(%rsp), %rax
movq $0x0, (%rax)
movq 0x18(%rsp), %rax
movq $0x0, 0x18(%rax)
movq 0x18(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nopl (%rax)