// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/array2dim_sparse.c
// Function: gt_array2dim_sparse_example
int gt_array2dim_sparse_example(GT_UNUSED GtError *err)
{
  int **a2dim, i, j;
  GtRowInfo ri[10];
  gt_error_check(err);

  /* initialize row info */
  for (i = 0; i < 10; i++) {
    ri[i].offset = i;
    ri[i].length = 6;
  }

  /* create sparse matrix */
  gt_array2dim_sparse_calloc(a2dim, 10, 60, ri);

  /* fill matrix */
  for (i = 0; i < 10; i++) {
    for (j = 0; j < 6; j++)
      a2dim[i][i+j] = i;
  }

  gt_assert(a2dim[0][0] == 0);
  gt_assert(a2dim[5][5] == 5);
  gt_assert(a2dim[9][14] == 9);

  /* free */
  gt_array2dim_delete(a2dim);

  return 0;
}

// Assembly:
subq $0xc8, %rsp
movq %rdi, 0xc0(%rsp)
cmpq $0x0, 0xc0(%rsp)
je 0x838a5
movq 0xc0(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x8386d
jmp 0x838a5
movq 0x5b872c(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x492795(%rip), %rsi    # 0x516013
leaq 0x49293a(%rip), %rdx    # 0x5161bf
leaq 0x4ac950(%rip), %rcx    # 0x5301dc
leaq 0x4ac965(%rip), %r8     # 0x5301f8
movl $0x29, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x838a7
movl $0x0, 0xb4(%rsp)
cmpl $0xa, 0xb4(%rsp)
jge 0x8390a
movslq 0xb4(%rsp), %rcx
movslq 0xb4(%rsp), %rdx
leaq 0x10(%rsp), %rax
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movslq 0xb4(%rsp), %rcx
leaq 0x10(%rsp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movq $0x6, 0x8(%rax)
movl 0xb4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb4(%rsp)
jmp 0x838b2
leaq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq $0x0, (%rax)
je 0x83957
movq 0x5b867a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4926e3(%rip), %rsi    # 0x516013
leaq 0x4ac8dd(%rip), %rdx    # 0x530214
leaq 0x4ac89e(%rip), %rcx    # 0x5301dc
leaq 0x4ac8b3(%rip), %r8     # 0x5301f8
movl $0x32, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x83959
movl $0x50, %edi
leaq 0x4ac893(%rip), %rsi    # 0x5301f8
movl $0x32, %edx
callq 0xe80f0
movq %rax, 0xb8(%rsp)
movl $0x3c, %edi
movl $0x4, %esi
leaq 0x4ac870(%rip), %rdx    # 0x5301f8
movl $0x32, %ecx
callq 0xe83c0
movq %rax, %rcx
movq 0xb8(%rsp), %rax
movq %rcx, (%rax)
movq $0x1, (%rsp)
cmpq $0xa, (%rsp)
jae 0x83a41
movq 0xb8(%rsp), %rax
movq (%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rdx
movq 0x8(%rsp), %rax
movq (%rsp), %rcx
subq $0x1, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
shlq $0x2, %rax
addq %rax, %rdx
movq 0x8(%rsp), %rax
movq (%rsp), %rcx
subq $0x1, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
shlq $0x2, %rax
addq %rax, %rdx
movq 0x8(%rsp), %rcx
movq (%rsp), %rax
shlq $0x4, %rax
addq %rax, %rcx
xorl %eax, %eax
subq (%rcx), %rax
shlq $0x2, %rax
addq %rax, %rdx
movq 0xb8(%rsp), %rax
movq (%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq (%rsp), %rax
addq $0x1, %rax
movq %rax, (%rsp)
jmp 0x839a8
movl $0x0, 0xb4(%rsp)
cmpl $0xa, 0xb4(%rsp)
jge 0x83ac2
movl $0x0, 0xb0(%rsp)
cmpl $0x6, 0xb0(%rsp)
jge 0x83aad
movl 0xb4(%rsp), %edx
movq 0xb8(%rsp), %rax
movslq 0xb4(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movl 0xb4(%rsp), %ecx
addl 0xb0(%rsp), %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
movl 0xb0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb0(%rsp)
jmp 0x83a61
jmp 0x83aaf
movl 0xb4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb4(%rsp)
jmp 0x83a4c
jmp 0x83ac4
movq 0xb8(%rsp), %rax
movq (%rax), %rax
cmpl $0x0, (%rax)
je 0x83b0c
movq 0x5b84c5(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x49252e(%rip), %rsi    # 0x516013
leaq 0x4ac73d(%rip), %rdx    # 0x530229
leaq 0x4ac6e9(%rip), %rcx    # 0x5301dc
leaq 0x4ac6fe(%rip), %r8     # 0x5301f8
movl $0x3a, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x83b0e
jmp 0x83b10
movq 0xb8(%rsp), %rax
movq 0x28(%rax), %rax
cmpl $0x5, 0x14(%rax)
je 0x83b5a
movq 0x5b8477(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4924e0(%rip), %rsi    # 0x516013
leaq 0x4ac700(%rip), %rdx    # 0x53023a
leaq 0x4ac69b(%rip), %rcx    # 0x5301dc
leaq 0x4ac6b0(%rip), %r8     # 0x5301f8
movl $0x3b, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x83b5c
jmp 0x83b5e
movq 0xb8(%rsp), %rax
movq 0x48(%rax), %rax
cmpl $0x9, 0x38(%rax)
je 0x83ba8
movq 0x5b8429(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x492492(%rip), %rsi    # 0x516013
leaq 0x4ac6c3(%rip), %rdx    # 0x53024b
leaq 0x4ac64d(%rip), %rcx    # 0x5301dc
leaq 0x4ac662(%rip), %r8     # 0x5301f8
movl $0x3c, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x83baa
movq 0xb8(%rsp), %rax
movq (%rax), %rdi
leaq 0x4ac63c(%rip), %rsi    # 0x5301f8
movl $0x3f, %edx
callq 0xe88c0
movq 0xb8(%rsp), %rdi
leaq 0x4ac623(%rip), %rsi    # 0x5301f8
movl $0x3f, %edx
callq 0xe88c0
xorl %eax, %eax
addq $0xc8, %rsp
retq
nopl (%rax)