// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: g_vector_fill_1
static s7_pointer g_vector_fill_1(s7_scheme *sc, s7_pointer caller, s7_pointer args)
                {
                    s7_pointer x, fill;
                    s7_int start = 0, end;

                    x = car(args);
                    if (!is_any_vector(x))
                    {
                        check_method(sc, x, sc->vector_fill_symbol, args);
                        /* not two_methods (and fill!) here else we get stuff like:
                         *   (let ((e (openlet (inlet 'fill! (lambda (obj val) (string-fill! (obj 'value) val)) 'value "01234")))) (vector-fill! e #\a) (e 'value)) -> "aaaaa"
                         */
                        return(wrong_type_argument(sc, caller, 1, x, T_VECTOR));
                    }
                    if (is_immutable_vector(x))
                        return(immutable_object_error(sc, set_elist_3(sc, immutable_error_string, caller, x)));

                    fill = cadr(args);
                    if (is_float_vector(x))
                    {
                        if (!s7_is_real(fill)) /* possibly a bignum */
                            return(method_or_bust(sc, fill, caller, args, T_REAL, 2));
                    }
                    else
                    {
                        if ((is_int_vector(x)) || (is_byte_vector(x)))
                        {
                            if (!s7_is_integer(fill))
                                return(method_or_bust(sc, fill, caller, args, T_INTEGER, 2));
                            if ((is_byte_vector(x)) &&
                                    ((s7_integer(fill) < 0) || (s7_integer(fill) > 255)))
                                return(out_of_range(sc, caller, small_int(2), fill, an_unsigned_byte_string));
                        }
                    }

                    end = vector_length(x);
                    if (!is_null(cddr(args)))
                    {
                        s7_pointer p;
                        p = start_and_end(sc, caller, args, 3, &start, &end);
                        if (p != sc->unused) return(p);
                        if (start == end) return(fill);
                    }
                    if (end == 0) return(fill);

                    if ((start == 0) && (end == vector_length(x)))
                        s7_vector_fill(sc, x, fill);
                    else
                    {
                        s7_int i;
                        if (is_normal_vector(x))
                        {
                            if ((is_typed_vector(x)) &&
                                    (typed_vector_typer_call(sc, x, set_plist_1(sc, fill)) == sc->F))
                                s7_wrong_type_arg_error(sc, "vector fill!", 2, fill, make_type_name(sc, typed_vector_typer_name(sc, x), INDEFINITE_ARTICLE));

                            for (i = start; i < end; i++)
                                vector_element(x, i) = fill;
                        }
                        else
                        {
                            if (is_int_vector(x))
                            {
                                s7_int k;
                                k = s7_integer(fill);
                                if (k == 0)
                                    memclr((void *)(int_vector_ints(x) + start), (end - start) * sizeof(s7_int));
                                else
                                {
                                    for (i = start; i < end; i++)
                                        int_vector(x, i) = k;
                                }
                            }
                            else
                            {
                                if (is_float_vector(x))
                                {
                                    s7_double y;
                                    y = s7_real(fill);
                                    if (y == 0.0)
                                        memclr((void *)(float_vector_floats(x) + start), (end - start) * sizeof(s7_double));
                                    else
                                    {
                                        s7_double *orig;
                                        s7_int left;
                                        orig = float_vector_floats(x);
                                        left = end - 8;
                                        i = start;
                                        while (i <= left)
                                            LOOP_8(orig[i++] = y);
                                        for (; i < end; i++)
                                            orig[i] = y;
                                    }
                                }
                                else
                                {
                                    if (is_byte_vector(x))
                                    {
                                        uint8_t k;
                                        k = (uint8_t)s7_integer(fill);
                                        if (k == 0)
                                            memclr((void *)(byte_vector_bytes(x) + start), end - start);
                                        else local_memset((void *)(byte_vector_bytes(x) + start), k, end - start);
                                    }}}}}
                    return(fill);
                }

// Assembly:
subq $0x118, %rsp            # imm = 0x118
movq %rdi, 0x108(%rsp)
movq %rsi, 0x100(%rsp)
movq %rdx, 0xf8(%rsp)
movq $0x0, 0xe0(%rsp)
movq 0xf8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xf0(%rsp)
movq 0xf0(%rsp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x1d78fd(%rip), %rax    # 0x21a750
testb $0x1, (%rax,%rcx)
jne 0x43074
movq 0xf0(%rsp), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
je 0x42f32
movq 0x108(%rsp), %rax
testb $0x1, 0x24c(%rax)
je 0x42f32
movq 0x108(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x108(%rsp), %rdi
movq 0xf0(%rsp), %rsi
callq 0x9a10
movq 0x70(%rsp), %rdi
movq %rax, %rsi
movq 0x108(%rsp), %rax
movq 0x1658(%rax), %rdx
callq 0x98d0
movq %rax, 0xd0(%rsp)
movq 0x108(%rsp), %rcx
cmpq 0x128(%rcx), %rax
je 0x42f32
movq 0x108(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0xd0(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x108(%rsp), %rdi
movq 0xf8(%rsp), %rsi
callq 0x44270
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq %rax, %rdx
callq 0xda50
movq %rax, 0x110(%rsp)
jmp 0x4390a
movq 0x108(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x100(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x58(%rsp)
movq $0x1, 0xc8(%rsp)
movq 0xc8(%rsp), %rax
andq $-0x800, %rax           # imm = 0xF800
cmpq $0x0, %rax
jne 0x42f8d
movq 0xc8(%rsp), %rcx
leaq 0x1d3501(%rip), %rax    # 0x216480
movq (%rax,%rcx,8), %rax
movq %rax, 0x48(%rsp)
jmp 0x43025
jmp 0x42f8f
movq 0x108(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x108(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x42fbc
movq 0x108(%rsp), %rdi
callq 0xc670
movq 0x108(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0xb8(%rsp)
movq 0xb8(%rsp), %rax
movq $0xb, (%rax)
movq 0xc8(%rsp), %rcx
movq 0xb8(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0xb8(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0xc0(%rsp), %rdx
movq 0xf0(%rsp), %rcx
movq 0x108(%rsp), %rax
movq 0x140(%rax), %r8
movq 0x1d75d6(%rip), %r9     # 0x21a638
callq 0xc560
movq %rax, 0x110(%rsp)
jmp 0x4390a
movq 0xf0(%rsp), %rax
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0x430d6
movq 0x108(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x108(%rsp), %rdi
movq 0x1d73f1(%rip), %rsi    # 0x21a498
movq 0x100(%rsp), %rdx
movq 0xf0(%rsp), %rcx
callq 0xf240
movq 0x40(%rsp), %rdi
movq %rax, %rsi
callq 0xb800
movq %rax, 0x110(%rsp)
jmp 0x4390a
movq 0xf8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0xe8(%rsp)
movq 0xf0(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x17, %eax
jne 0x43152
movq 0xe8(%rsp), %rdi
callq 0x11360
testb $0x1, %al
jne 0x4314d
movq 0x108(%rsp), %rdi
movq 0xe8(%rsp), %rsi
movq 0x100(%rsp), %rdx
movq 0xf8(%rsp), %rcx
movl $0xd, %r8d
movl $0x2, %r9d
callq 0x13c50
movq %rax, 0x110(%rsp)
jmp 0x4390a
jmp 0x4323d
movq 0xf0(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x16, %eax
je 0x43176
movq 0xf0(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x18, %eax
jne 0x4323b
movq 0xe8(%rsp), %rdi
callq 0x11340
testb $0x1, %al
jne 0x431c5
movq 0x108(%rsp), %rdi
movq 0xe8(%rsp), %rsi
movq 0x100(%rsp), %rdx
movq 0xf8(%rsp), %rcx
movl $0xb, %r8d
movl $0x2, %r9d
callq 0x13c50
movq %rax, 0x110(%rsp)
jmp 0x4390a
movq 0xf0(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x18, %eax
jne 0x43239
movq 0xe8(%rsp), %rdi
callq 0x10790
cmpq $0x0, %rax
jl 0x431fd
movq 0xe8(%rsp), %rdi
callq 0x10790
cmpq $0xff, %rax
jle 0x43239
movq 0x108(%rsp), %rdi
movq 0x100(%rsp), %rax
movq 0x8(%rax), %rsi
movq 0x1d3278(%rip), %rdx    # 0x216490
movq 0xe8(%rsp), %rcx
movq 0x1df989(%rip), %r8     # 0x222bb0
callq 0x13880
movq %rax, 0x110(%rsp)
jmp 0x4390a
jmp 0x4323b
jmp 0x4323d
movq 0xf0(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xd8(%rsp)
movq 0xf8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x108(%rsp), %rcx
cmpq 0x110(%rcx), %rax
je 0x43307
movq 0x108(%rsp), %rdi
movq 0x100(%rsp), %rsi
movq 0xf8(%rsp), %rdx
movl $0x3, %ecx
leaq 0xe0(%rsp), %r8
leaq 0xd8(%rsp), %r9
callq 0xda710
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rax
movq 0x108(%rsp), %rcx
cmpq 0x140(%rcx), %rax
je 0x432de
movq 0xa8(%rsp), %rax
movq %rax, 0x110(%rsp)
jmp 0x4390a
movq 0xe0(%rsp), %rax
cmpq 0xd8(%rsp), %rax
jne 0x43305
movq 0xe8(%rsp), %rax
movq %rax, 0x110(%rsp)
jmp 0x4390a
jmp 0x43307
cmpq $0x0, 0xd8(%rsp)
jne 0x43327
movq 0xe8(%rsp), %rax
movq %rax, 0x110(%rsp)
jmp 0x4390a
cmpq $0x0, 0xe0(%rsp)
jne 0x4336a
movq 0xd8(%rsp), %rax
movq 0xf0(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x4336a
movq 0x108(%rsp), %rdi
movq 0xf0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
callq 0x33f30
jmp 0x438fa
movq 0xf0(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x15, %eax
jne 0x4351e
movq 0xf0(%rsp), %rax
movzwl 0x6(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x434c1
movq 0xf0(%rsp), %rax
movq 0x28(%rax), %rax
movzbl (%rax), %eax
cmpl $0x30, %eax
jl 0x433f7
movq 0xf0(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x108(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x108(%rsp), %rdi
movq 0xe8(%rsp), %rsi
callq 0x35ea0
movq 0x28(%rsp), %rdi
movq %rax, %rsi
movq 0x30(%rsp), %rax
callq *%rax
movq %rax, 0x38(%rsp)
jmp 0x43441
movq 0x108(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xf0(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x108(%rsp), %rdi
movq 0xe8(%rsp), %rsi
callq 0x35ea0
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq %rax, %rdx
callq 0xda50
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq 0x108(%rsp), %rcx
cmpq 0x120(%rcx), %rax
jne 0x434c1
movq 0x108(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x108(%rsp), %rax
movq %rax, (%rsp)
movq 0x108(%rsp), %rdi
movq 0xf0(%rsp), %rsi
callq 0xd8a20
movq (%rsp), %rdi
movq %rax, %rsi
movl $0x1, %edx
callq 0xd8890
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rcx
movq %rax, %r8
leaq 0x1ab707(%rip), %rsi    # 0x1eebbe
movl $0x2, %edx
callq 0x12540
movq 0xe0(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0xa0(%rsp), %rax
cmpq 0xd8(%rsp), %rax
jge 0x43519
movq 0xe8(%rsp), %rdx
movq 0xf0(%rsp), %rax
movq 0x10(%rax), %rax
movq 0xa0(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0xa0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xa0(%rsp)
jmp 0x434d1
jmp 0x438f8
movq 0xf0(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x16, %eax
jne 0x435e7
movq 0xe8(%rsp), %rdi
callq 0x10790
movq %rax, 0x98(%rsp)
cmpq $0x0, 0x98(%rsp)
jne 0x43588
movq 0xf0(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0xe0(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq 0xd8(%rsp), %rsi
subq 0xe0(%rsp), %rsi
shlq $0x3, %rsi
callq 0xd2340
jmp 0x435e2
movq 0xe0(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0xa0(%rsp), %rax
cmpq 0xd8(%rsp), %rax
jge 0x435e0
movq 0x98(%rsp), %rdx
movq 0xf0(%rsp), %rax
movq 0x10(%rax), %rax
movq 0xa0(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0xa0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xa0(%rsp)
jmp 0x43598
jmp 0x435e2
jmp 0x438f6
movq 0xf0(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x17, %eax
jne 0x4386a
movq 0xe8(%rsp), %rdi
callq 0x128d0
movsd %xmm0, 0x90(%rsp)
movsd 0x90(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x4365e
jp 0x4365e
movq 0xf0(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0xe0(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq 0xd8(%rsp), %rsi
subq 0xe0(%rsp), %rsi
shlq $0x3, %rsi
callq 0xd2340
jmp 0x43865
movq 0xf0(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x88(%rsp)
movq 0xd8(%rsp), %rax
subq $0x8, %rax
movq %rax, 0x80(%rsp)
movq 0xe0(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0xa0(%rsp), %rax
cmpq 0x80(%rsp), %rax
jg 0x4381b
jmp 0x436ae
movsd 0x90(%rsp), %xmm0
movq 0x88(%rsp), %rax
movq 0xa0(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0xa0(%rsp)
movsd %xmm0, (%rax,%rcx,8)
movsd 0x90(%rsp), %xmm0
movq 0x88(%rsp), %rax
movq 0xa0(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0xa0(%rsp)
movsd %xmm0, (%rax,%rcx,8)
movsd 0x90(%rsp), %xmm0
movq 0x88(%rsp), %rax
movq 0xa0(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0xa0(%rsp)
movsd %xmm0, (%rax,%rcx,8)
movsd 0x90(%rsp), %xmm0
movq 0x88(%rsp), %rax
movq 0xa0(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0xa0(%rsp)
movsd %xmm0, (%rax,%rcx,8)
movsd 0x90(%rsp), %xmm0
movq 0x88(%rsp), %rax
movq 0xa0(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0xa0(%rsp)
movsd %xmm0, (%rax,%rcx,8)
movsd 0x90(%rsp), %xmm0
movq 0x88(%rsp), %rax
movq 0xa0(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0xa0(%rsp)
movsd %xmm0, (%rax,%rcx,8)
movsd 0x90(%rsp), %xmm0
movq 0x88(%rsp), %rax
movq 0xa0(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0xa0(%rsp)
movsd %xmm0, (%rax,%rcx,8)
movsd 0x90(%rsp), %xmm0
movq 0x88(%rsp), %rax
movq 0xa0(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0xa0(%rsp)
movsd %xmm0, (%rax,%rcx,8)
jmp 0x43696
jmp 0x4381d
movq 0xa0(%rsp), %rax
cmpq 0xd8(%rsp), %rax
jge 0x43863
movsd 0x90(%rsp), %xmm0
movq 0x88(%rsp), %rax
movq 0xa0(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq 0xa0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xa0(%rsp)
jmp 0x4381d
jmp 0x43865
jmp 0x438f4
movq 0xf0(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x18, %eax
jne 0x438f2
movq 0xe8(%rsp), %rdi
callq 0x10790
movb %al, 0x7f(%rsp)
movzbl 0x7f(%rsp), %eax
cmpl $0x0, %eax
jne 0x438c0
movq 0xf0(%rsp), %rax
movq 0x10(%rax), %rdi
addq 0xe0(%rsp), %rdi
movq 0xd8(%rsp), %rsi
subq 0xe0(%rsp), %rsi
callq 0xd2340
jmp 0x438f0
movq 0xf0(%rsp), %rax
movq 0x10(%rax), %rdi
addq 0xe0(%rsp), %rdi
movb 0x7f(%rsp), %al
movq 0xd8(%rsp), %rdx
subq 0xe0(%rsp), %rdx
movzbl %al, %esi
callq 0xc85e0
jmp 0x438f2
jmp 0x438f4
jmp 0x438f6
jmp 0x438f8
jmp 0x438fa
movq 0xe8(%rsp), %rax
movq %rax, 0x110(%rsp)
movq 0x110(%rsp), %rax
addq $0x118, %rsp            # imm = 0x118
retq
nopw (%rax,%rax)