// File: /workspace/github_c_makefile_star2_O2/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:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rax
movq %rdi, %rbx
movq 0x8(%rsi), %rsi
cmpb $0x16, (%rsi)
jne 0xced48
movq 0x18(%rsi), %rcx
movq 0x20(%rcx), %rcx
testq %rcx, %rcx
je 0xced69
cmpq $0x2, 0x10(%rcx)
jne 0xced69
movq 0x10(%rax), %rdi
movq 0x8(%rdi), %r10
cmpb $0xb, (%r10)
jne 0xced85
movq 0x8(%r10), %rdx
testq %rdx, %rdx
js 0xced9c
movq (%rcx), %r8
cmpq (%r8), %rdx
jge 0xced9c
movq 0x10(%rdi), %rdi
movq 0x8(%rdi), %r10
cmpb $0xb, (%r10)
jne 0xcedd1
movq 0x8(%r10), %rax
testq %rax, %rax
js 0xcede0
cmpq 0x8(%r8), %rax
jge 0xcede0
movq 0x18(%rcx), %rcx
imulq (%rcx), %rdx
shlq $0x3, %rdx
addq 0x10(%rsi), %rdx
movq (%rdx,%rax,8), %r14
cmpq $0x7ff, %r14            # imm = 0x7FF
ja 0xcede5
leaq 0x46c11(%rip), %rax     # 0x115950
movq (%rax,%r14,8), %rax
jmp 0xcee1e
movq 0xfa8(%rbx), %rdx
pushq $0x16
popq %r8
pushq $0x1
popq %r9
movq %rbx, %rdi
movq %rax, %rcx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xcd70
movq 0xfa8(%rbx), %rdx
pushq $0x16
popq %rcx
movq %rbx, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xa941e
movq 0xfa8(%rbx), %rdx
pushq $0xb
popq %r8
pushq $0x2
popq %r9
movq %rbx, %rdi
movq %r10, %rsi
jmp 0xced5a
testq %rdx, %rdx
movq 0xfa8(%rbx), %rax
movq 0x8(%rax), %rsi
leaq 0x4ac97(%rip), %rax     # 0x119a48
leaq 0x4ac88(%rip), %rcx     # 0x119a40
cmovsq %rax, %rcx
movq (%rcx), %rcx
movq %rbx, %rdi
movq %r10, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x35b47
movq 0xfa8(%rbx), %rdx
pushq $0xb
popq %r8
pushq $0x3
jmp 0xced92
testq %rax, %rax
jmp 0xced9f
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0xcee04
movq %rbx, %rdi
callq 0x9c27
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xb, (%rax)
movq %r14, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq