// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: g_iv_ref_3
static s7_pointer g_iv_ref_3(s7_scheme *sc, s7_pointer args)
                {
                    s7_pointer iv, index;
                    s7_int ind1, ind2;
                    iv = car(args);
                    if (!is_int_vector(iv))
                        return(method_or_bust(sc, iv, sc->int_vector_ref_symbol, args, T_INT_VECTOR, 1));
                    if (vector_rank(iv) != 2)
                        return(univect_ref(sc, args, sc->int_vector_ref_symbol, T_INT_VECTOR));
                    index = cadr(args);
                    if (!s7_is_integer(index))
                        return(method_or_bust(sc, index, sc->int_vector_ref_symbol, args, T_INTEGER, 2));
                    ind1 = s7_integer(index);
                    if ((ind1 < 0) || (ind1 >= vector_dimension(iv, 0)))
                        return(simple_out_of_range(sc, sc->int_vector_ref_symbol, index, (ind1 < 0) ? its_negative_string : its_too_large_string));
                    index = caddr(args);
                    if (!s7_is_integer(index))
                        return(method_or_bust(sc, index, sc->int_vector_ref_symbol, args, T_INTEGER, 3));
                    ind2 = s7_integer(index);
                    if ((ind2 < 0) || (ind2 >= vector_dimension(iv, 1)))
                        return(simple_out_of_range(sc, sc->int_vector_ref_symbol, index, (ind2 < 0) ? its_negative_string : its_too_large_string));
                    ind1 = ind1 * vector_offset(iv, 0) + ind2;
                    return(make_integer(sc, int_vector(iv, ind1)));
                }

// Assembly:
subq $0xa8, %rsp
movq %rdi, 0x98(%rsp)
movq %rsi, 0x90(%rsp)
movq 0x90(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x88(%rsp)
movq 0x88(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x16, %eax
je 0x1d54d0
movq 0x98(%rsp), %rdi
movq 0x88(%rsp), %rsi
movq 0x98(%rsp), %rax
movq 0xfa8(%rax), %rdx
movq 0x90(%rsp), %rcx
movl $0x16, %r8d
movl $0x1, %r9d
callq 0x13c50
movq %rax, 0xa0(%rsp)
jmp 0x1d5891
movq 0x88(%rsp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0x1d54fe
movq 0x88(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x48(%rsp)
jmp 0x1d550a
movl $0x1, %eax
movq %rax, 0x48(%rsp)
jmp 0x1d550a
movq 0x48(%rsp), %rax
cmpq $0x2, %rax
je 0x1d554b
movq 0x98(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rax
movq 0xfa8(%rax), %rdx
movl $0x16, %ecx
callq 0x16c830
movq %rax, 0xa0(%rsp)
jmp 0x1d5891
movq 0x90(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rdi
callq 0x11340
testb $0x1, %al
jne 0x1d55b9
movq 0x98(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq 0x98(%rsp), %rax
movq 0xfa8(%rax), %rdx
movq 0x90(%rsp), %rcx
movl $0xb, %r8d
movl $0x2, %r9d
callq 0x13c50
movq %rax, 0xa0(%rsp)
jmp 0x1d5891
movq 0x80(%rsp), %rdi
callq 0x10790
movq %rax, 0x78(%rsp)
cmpq $0x0, 0x78(%rsp)
jl 0x1d55f0
movq 0x78(%rsp), %rax
movq 0x88(%rsp), %rcx
movq 0x18(%rcx), %rcx
movq 0x20(%rcx), %rcx
movq (%rcx), %rcx
cmpq (%rcx), %rax
jl 0x1d566a
movq 0x98(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x98(%rsp), %rax
movq 0xfa8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x40(%rsp)
cmpq $0x0, 0x78(%rsp)
jge 0x1d5638
movq 0x44f47(%rip), %rax     # 0x21a578
movq %rax, 0x28(%rsp)
jmp 0x1d5644
movq 0x44f31(%rip), %rax     # 0x21a570
movq %rax, 0x28(%rsp)
movq 0x40(%rsp), %rdx
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rcx
callq 0x45240
movq %rax, 0xa0(%rsp)
jmp 0x1d5891
movq 0x90(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rdi
callq 0x11340
testb $0x1, %al
jne 0x1d56dc
movq 0x98(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq 0x98(%rsp), %rax
movq 0xfa8(%rax), %rdx
movq 0x90(%rsp), %rcx
movl $0xb, %r8d
movl $0x3, %r9d
callq 0x13c50
movq %rax, 0xa0(%rsp)
jmp 0x1d5891
movq 0x80(%rsp), %rdi
callq 0x10790
movq %rax, 0x70(%rsp)
cmpq $0x0, 0x70(%rsp)
jl 0x1d5714
movq 0x70(%rsp), %rax
movq 0x88(%rsp), %rcx
movq 0x18(%rcx), %rcx
movq 0x20(%rcx), %rcx
movq (%rcx), %rcx
cmpq 0x8(%rcx), %rax
jl 0x1d578e
movq 0x98(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x98(%rsp), %rax
movq 0xfa8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x70(%rsp)
jge 0x1d575c
movq 0x44e23(%rip), %rax     # 0x21a578
movq %rax, 0x8(%rsp)
jmp 0x1d5768
movq 0x44e0d(%rip), %rax     # 0x21a570
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdx
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rcx
callq 0x45240
movq %rax, 0xa0(%rsp)
jmp 0x1d5891
movq 0x78(%rsp), %rax
movq 0x88(%rsp), %rcx
movq 0x18(%rcx), %rcx
movq 0x20(%rcx), %rcx
movq 0x18(%rcx), %rcx
imulq (%rcx), %rax
addq 0x70(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x88(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x78(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rax
andq $-0x800, %rax           # imm = 0xF800
cmpq $0x0, %rax
jne 0x1d57f9
movq 0x68(%rsp), %rcx
leaq 0x40c94(%rip), %rax     # 0x216480
movq (%rax,%rcx,8), %rax
movq %rax, (%rsp)
jmp 0x1d587b
jmp 0x1d57fb
movq 0x98(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x98(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x1d5828
movq 0x98(%rsp), %rdi
callq 0xc670
movq 0x98(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
movq $0xb, (%rax)
movq 0x68(%rsp), %rcx
movq 0x58(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x58(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq %rax, (%rsp)
movq (%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0xa0(%rsp), %rax
addq $0xa8, %rsp
retq
nopw %cs:(%rax,%rax)