// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: pair_fill
static s7_pointer pair_fill(s7_scheme *sc, s7_pointer args)
                {
                    /* ambiguous ("tree-fill"?) but if it's like vector-fill, we just stomp on the top level */
                    s7_pointer x, y, obj, val, p;
                    s7_int i, start = 0, end, len;

                    obj = car(args);
                    if (is_immutable_pair(obj))
                        return(immutable_object_error(sc, set_elist_3(sc, immutable_error_string, sc->fill_symbol, obj)));
                    if (obj == slot_value(global_slot(sc->features_symbol)))
                        return(s7_error(sc, sc->error_symbol, set_elist_1(sc, wrap_string(sc, "can't fill! *features*", 22))));
                    if (obj == slot_value(global_slot(sc->libraries_symbol)))
                        return(s7_error(sc, sc->error_symbol, set_elist_1(sc, wrap_string(sc, "can't fill! *libraries*", 23))));

                    val = cadr(args);
                    len = s7_list_length(sc, obj);
                    end = len;
                    if (end < 0) end = -end; else {if (end == 0) end = 123123123;}
                    if (!is_null(cddr(args)))
                    {
                        p = start_and_end(sc, sc->fill_symbol, args, 3, &start, &end);
                        if (p != sc->unused) return(p);
                        if (start == end) return(val);
                    }
                    if (len > 0)
                    {
                        if (end < len) len = end;
                        for (i = 0, p = obj; i < start; p = cdr(p), i++);
                        for (; i < len; p = cdr(p), i++) set_car(p, val);
                        return(val);
                    }

                    for (x = obj, y = obj, i = 0; ;i++)
                    {
                        if ((end > 0) && (i >= end))
                            return(val);
                        if (i >= start) set_car(x, val);
                        if (!is_pair(cdr(x)))
                        {
                            if (!is_null(cdr(x)))
                                set_cdr(x, val);
                            return(val);
                        }
                        x = cdr(x);
                        if ((i & 1) != 0) y = cdr(y);
                        if (x == y)
                            return(val);
                    }
                    return(val);
                }

// Assembly:
subq $0x98, %rsp
movq %rdi, 0x88(%rsp)
movq %rsi, 0x80(%rsp)
movq $0x0, 0x48(%rsp)
movq 0x80(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0x439b4
movq 0x88(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x88(%rsp), %rdi
movq 0x1d6b17(%rip), %rsi    # 0x21a498
movq 0x88(%rsp), %rax
movq 0xee8(%rax), %rdx
movq 0x68(%rsp), %rcx
callq 0xf240
movq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0xb800
movq %rax, 0x90(%rsp)
jmp 0x43d85
movq 0x68(%rsp), %rax
movq 0x88(%rsp), %rcx
movq 0xee0(%rcx), %rcx
movq 0x10(%rcx), %rcx
cmpq 0x10(%rcx), %rax
jne 0x43a45
movq 0x88(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x88(%rsp), %rax
movq 0xea8(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x88(%rsp), %rdi
leaq 0x1ab56d(%rip), %rsi    # 0x1eef7c
movl $0x16, %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 %rax, 0x90(%rsp)
jmp 0x43d85
movq 0x68(%rsp), %rax
movq 0x88(%rsp), %rcx
movq 0x1250(%rcx), %rcx
movq 0x10(%rcx), %rcx
cmpq 0x10(%rcx), %rax
jne 0x43ad4
movq 0x88(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x88(%rsp), %rax
movq 0xea8(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x88(%rsp), %rax
movq %rax, (%rsp)
movq 0x88(%rsp), %rdi
leaq 0x1ab4f4(%rip), %rsi    # 0x1eef93
movl $0x17, %edx
callq 0xb880
movq (%rsp), %rdi
movq %rax, %rsi
callq 0xc3820
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq %rax, 0x90(%rsp)
jmp 0x43d85
movq 0x80(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x88(%rsp), %rdi
movq 0x68(%rsp), %rsi
callq 0x31900
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x40(%rsp)
cmpq $0x0, 0x40(%rsp)
jge 0x43b20
xorl %eax, %eax
subq 0x40(%rsp), %rax
movq %rax, 0x40(%rsp)
jmp 0x43b33
cmpq $0x0, 0x40(%rsp)
jne 0x43b31
movq $0x756b5b3, 0x40(%rsp)  # imm = 0x756B5B3
jmp 0x43b33
movq 0x80(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x88(%rsp), %rcx
cmpq 0x110(%rcx), %rax
je 0x43bd8
movq 0x88(%rsp), %rdi
movq 0x88(%rsp), %rax
movq 0xee8(%rax), %rsi
movq 0x80(%rsp), %rdx
movl $0x3, %ecx
leaq 0x48(%rsp), %r8
leaq 0x40(%rsp), %r9
callq 0xda710
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
movq 0x88(%rsp), %rcx
cmpq 0x140(%rcx), %rax
je 0x43bb8
movq 0x58(%rsp), %rax
movq %rax, 0x90(%rsp)
jmp 0x43d85
movq 0x48(%rsp), %rax
cmpq 0x40(%rsp), %rax
jne 0x43bd6
movq 0x60(%rsp), %rax
movq %rax, 0x90(%rsp)
jmp 0x43d85
jmp 0x43bd8
cmpq $0x0, 0x38(%rsp)
jle 0x43c85
movq 0x40(%rsp), %rax
cmpq 0x38(%rsp), %rax
jge 0x43bfa
movq 0x40(%rsp), %rax
movq %rax, 0x38(%rsp)
movq $0x0, 0x50(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x50(%rsp), %rax
cmpq 0x48(%rsp), %rax
jge 0x43c39
jmp 0x43c1b
movq 0x58(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
jmp 0x43c0d
jmp 0x43c3b
movq 0x50(%rsp), %rax
cmpq 0x38(%rsp), %rax
jge 0x43c73
movq 0x60(%rsp), %rcx
movq 0x58(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x58(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
jmp 0x43c3b
movq 0x60(%rsp), %rax
movq %rax, 0x90(%rsp)
jmp 0x43d85
movq 0x68(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x70(%rsp)
movq $0x0, 0x50(%rsp)
cmpq $0x0, 0x40(%rsp)
jle 0x43cc8
movq 0x50(%rsp), %rax
cmpq 0x40(%rsp), %rax
jl 0x43cc8
movq 0x60(%rsp), %rax
movq %rax, 0x90(%rsp)
jmp 0x43d85
movq 0x50(%rsp), %rax
cmpq 0x48(%rsp), %rax
jl 0x43ce2
movq 0x60(%rsp), %rcx
movq 0x78(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x78(%rsp), %rax
movq 0x10(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0x43d2a
movq 0x78(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x88(%rsp), %rcx
cmpq 0x110(%rcx), %rax
je 0x43d1b
movq 0x60(%rsp), %rcx
movq 0x78(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x60(%rsp), %rax
movq %rax, 0x90(%rsp)
jmp 0x43d85
movq 0x78(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x78(%rsp)
movq 0x50(%rsp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x43d55
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x78(%rsp), %rax
cmpq 0x70(%rsp), %rax
jne 0x43d70
movq 0x60(%rsp), %rax
movq %rax, 0x90(%rsp)
jmp 0x43d85
jmp 0x43d72
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
jmp 0x43ca2
movq 0x90(%rsp), %rax
addq $0x98, %rsp
retq
nopw %cs:(%rax,%rax)