// File: /workspace/github_c_makefile_star2_O3/yui0[P]img2vec/./potracelib.h
// Function: bm_to_pathlist
int bm_to_pathlist(const potrace_bitmap_t *bm, path_t **plistp, const potrace_param_t *param, progress_t *progress) {
  int x;
  int y;
  path_t *p;
  path_t *plist = NULL;  /* linked list of path objects */
  path_t **plist_hook = &plist;  /* used to speed up appending to linked list */
  potrace_bitmap_t *bm1 = NULL;
  int sign;
  bm1 = bm_dup(bm);
  if (!bm1) {
    goto error;
  }
  /* be sure the byte padding on the right is set to 0, as the fast
     pixel search below relies on it */
  bm_clearexcess(bm1);
  /* iterate through components */
  x = 0;
  y = bm1->h - 1;
  while (findnext(bm1, &x, &y) == 0) { 
    /* calculate the sign by looking at the original */
    sign = BM_GET(bm, x, y) ? '+' : '-';
    /* calculate the path */
    p = findpath(bm1, x, y+1, sign, param->turnpolicy);
    if (p==NULL) {
      goto error;
    }
    /* update buffered image */
    xor_path(bm1, p);
    /* if it's a turd, eliminate it, else append it to the list */
    if (p->area <= param->turdsize) {
      path_free(p);
    } else {
      list_insert_beforehook(p, plist_hook);
    }
    if (bm1->h > 0) { /* to be sure */
      progress_update(1-y/(double)bm1->h, progress);
    }
  }
  pathlist_to_tree(plist, bm1);
  bm_free(bm1);
  *plistp = plist;
  progress_update(1.0, progress);
  return 0;
 error:
  bm_free(bm1);
  list_forall_unlink(p, plist) {
    path_free(p);
  }
  return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r9
movq $0x0, 0x58(%rsp)
movl (%rdi), %ebx
movl 0x4(%rdi), %r8d
movslq %r8d, %r15
testl %ebx, %ebx
je 0xb4b0
leal -0x1(%rbx), %eax
leal 0x3e(%rbx), %r12d
testl %eax, %eax
cmovnsl %eax, %r12d
sarl $0x6, %r12d
incl %r12d
jmp 0xb4b3
xorl %r12d, %r12d
movl %r12d, %r10d
negl %r10d
cmovsl %r12d, %r10d
movq %r10, %r13
imulq %r15, %r13
testq %r13, %r13
js 0xbb26
leaq (,%r13,8), %r14
testl %r8d, %r8d
je 0xb4f6
testl %r12d, %r12d
je 0xb4f6
movq %r14, %rax
cqto
idivq %r15
cqto
idivq %r10
cmpq $0x8, %rax
jne 0xbb26
movq %rdi, 0x30(%rsp)
movq %r9, 0x78(%rsp)
movq %r8, 0x10(%rsp)
movq %rsi, 0x90(%rsp)
movq %rcx, 0x38(%rsp)
movl $0x18, %edi
callq 0x1180
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0xbb36
testq %r13, %r13
movl $0x8, %ecx
cmoveq %rcx, %r14
movl %ebx, (%rax)
movq 0x10(%rsp), %r13
movl %r13d, 0x4(%rax)
movl %r12d, 0x8(%rax)
movl $0x1, %edi
movq %r14, %rsi
movq %rax, 0x8(%rsp)
callq 0x1110
movq 0x8(%rsp), %r9
movq %rax, 0x10(%r9)
testq %rax, %rax
je 0xbb4a
testl %r13d, %r13d
jle 0xbb54
movslq %r12d, %r14
shlq $0x3, %r14
movq 0x30(%rsp), %rcx
movq 0x10(%rcx), %rbp
movslq 0x8(%rcx), %r13
shlq $0x3, %r13
movq %rax, (%rsp)
movq %rax, %r12
movq %r12, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x1170
addq %r13, %rbp
addq %r14, %r12
decq %r15
jne 0xb591
leal 0x3f(%rbx), %edx
testl %ebx, %ebx
cmovnsl %ebx, %edx
movl %edx, %eax
andl $-0x40, %eax
subl %eax, %ebx
movq 0x8(%rsp), %r9
movq 0x10(%rsp), %r10
je 0xb5f8
negb %bl
movq $-0x1, %rax
movl %ebx, %ecx
shlq %cl, %rax
testl %r10d, %r10d
jle 0xbb57
sarl $0x6, %edx
movslq %edx, %rcx
movq (%rsp), %rdx
leaq (%rdx,%rcx,8), %rcx
movq %r10, %rdx
andq %rax, (%rcx)
addq %r14, %rcx
decq %rdx
jne 0xb5ed
testl %r10d, %r10d
jle 0xbb57
movabsq $-0x8000000000000000, %r15 # imm = 0x8000000000000000
leal -0x1(%r10), %r12d
xorl %ebp, %ebp
leaq 0x58(%rsp), %rax
movq %rax, 0x68(%rsp)
andl $-0x40, %ebp
movl (%r9), %eax
movl %r12d, %r12d
cmpl %eax, %ebp
setge %cl
testl %ebp, %ebp
sets %dl
orb %cl, %dl
jne 0xb662
movslq 0x8(%r9), %rdx
imulq %r12, %rdx
shlq $0x3, %rdx
addq 0x10(%r9), %rdx
movl %ebp, %ecx
shrl $0x6, %ecx
movl %ecx, %esi
andl $0x3ffffff, %esi        # imm = 0x3FFFFFF
cmpq $0x0, (%rdx,%rsi,8)
jne 0xb678
addl $0x40, %ebp
js 0xb662
incq %rcx
cmpl %ebp, %eax
jg 0xb647
leaq -0x1(%r12), %rcx
xorl %ebp, %ebp
testq %r12, %r12
movq %rcx, %r12
jg 0xb624
jmp 0xbb57
incl %ebp
cmpl %eax, %ebp
jge 0xb676
cmpl %r12d, %r10d
jle 0xb676
movq %r15, %rsi
movl %ebp, %ecx
shrq %cl, %rsi
movl %ebp, %ecx
shrl $0x6, %ecx
testq %rsi, (%rdx,%rcx,8)
je 0xb676
movl $0x2d, %edx
testl %ebp, %ebp
js 0xb6de
movq 0x30(%rsp), %rax
cmpl (%rax), %ebp
jge 0xb6de
testq %r12, %r12
js 0xb6de
movq 0x30(%rsp), %rax
cmpl %r12d, 0x4(%rax)
jle 0xb6de
movl %r12d, %eax
movq 0x30(%rsp), %rdi
movslq 0x8(%rdi), %rdx
imulq %rax, %rdx
shlq $0x3, %rdx
addq 0x10(%rdi), %rdx
xorl %eax, %eax
testq %rsi, (%rdx,%rcx,8)
sete %al
leal 0x2b(,%rax,2), %edx
movq %r12, 0x70(%rsp)
leal 0x1(%r12), %esi
movq 0x78(%rsp), %rax
movl 0x4(%rax), %edi
cmpl $0x3, %edi
sete %al
movl %edx, %ecx
xorl $0x2b, %ecx
orl %edi, %ecx
sete %r8b
movl %edi, 0x40(%rsp)
movl %edi, %ecx
xorl $0x1, %ecx
movl %edx, 0x64(%rsp)
xorl $0x2d, %edx
orl %ecx, %edx
sete %cl
orb %al, %r8b
orb %cl, %r8b
movb %r8b, 0x20(%rsp)
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
xorl %r9d, %r9d
movl $0x8, %ebx
xorl %r8d, %r8d
xorl %r11d, %r11d
xorl %r13d, %r13d
movl %esi, 0x50(%rsp)
movl %esi, %r12d
movl %ebp, %r10d
xorl %r14d, %r14d
movl %ebp, 0x48(%rsp)
movslq %r11d, %rax
cmpq %rax, %r9
jge 0xb756
movq %r14, %rax
jmp 0xb7c2
addl $0x64, %r11d
cvtsi2sd %r11d, %xmm0
mulsd 0x15499(%rip), %xmm0    # 0x20c00
movq %r13, %rax
cvttsd2si %xmm0, %r13d
movslq %r13d, %rsi
shlq $0x4, %rsi
movq %r14, %rdi
movq %r12, (%rsp)
movq %rbx, 0x10(%rsp)
movq %r15, 0x18(%rsp)
movq %rax, %r15
movq %r9, %rbx
movq %r10, %r12
movq %r8, %rbp
callq 0x11b0
movq %rbp, %r8
movl 0x48(%rsp), %ebp
movl %r13d, %r11d
movq %r12, %r10
movq %rbx, %r9
movq %r15, %r13
movq 0x18(%rsp), %r15
movq 0x10(%rsp), %rbx
movq (%rsp), %r12
testq %rax, %rax
je 0xbf96
movq %rax, %r14
movslq %r10d, %r10
movq %r10, -0x8(%rax,%rbx)
movslq %r12d, %r12
movq %r12, (%rax,%rbx)
addl %r8d, %r10d
addl %r15d, %r12d
movl %r10d, %eax
imull %r15d, %eax
cltq
addq %rax, %r13
cmpl %ebp, %r10d
jne 0xb7f6
cmpl 0x50(%rsp), %r12d
je 0xb9f1
leal (%r8,%r15), %eax
leal (%r8,%r15), %ecx
decl %ecx
shrl $0x1f, %ecx
leal (%rcx,%rax), %edx
decl %edx
sarl %edx
movl %r10d, %ecx
addl %edx, %ecx
movb $0x1, %al
js 0xb870
movq 0x8(%rsp), %rdi
cmpl (%rdi), %ecx
jge 0xb87b
movq %r8, (%rsp)
notl %r8d
addl %r15d, %r8d
movl %r8d, %esi
shrl $0x1f, %esi
addl %r8d, %esi
sarl %esi
addl %r12d, %esi
js 0xb877
cmpl 0x4(%rdi), %esi
movq (%rsp), %r8
jge 0xb87b
movl %esi, %eax
movslq 0x8(%rdi), %rsi
imulq %rax, %rsi
shlq $0x3, %rsi
addq 0x10(%rdi), %rsi
movl %ecx, %eax
movabsq $-0x8000000000000000, %r8 # imm = 0x8000000000000000
shrq %cl, %r8
shrl $0x6, %eax
testq %r8, (%rsi,%rax,8)
movq (%rsp), %r8
sete %al
jmp 0xb87b
movq 0x8(%rsp), %rdi
jmp 0xb87b
movq (%rsp), %r8
movl %r15d, %esi
notl %esi
addl %r8d, %esi
movl %esi, %ecx
shrl $0x1f, %ecx
addl %esi, %ecx
sarl %ecx
addl %r10d, %ecx
js 0xb8d4
cmpl (%rdi), %ecx
jge 0xb8d4
addl %r12d, %edx
js 0xb8d4
cmpl 0x4(%rdi), %edx
jge 0xb8d4
movl %edx, %edx
movslq 0x8(%rdi), %rsi
imulq %rdx, %rsi
shlq $0x3, %rsi
addq 0x10(%rdi), %rsi
movl %ecx, %edx
movq %r8, (%rsp)
movabsq $-0x8000000000000000, %r8 # imm = 0x8000000000000000
shrq %cl, %r8
shrl $0x6, %edx
testq %r8, (%rsi,%rdx,8)
movq (%rsp), %r8
setne %cl
jmp 0xb8d6
xorl %ecx, %ecx
movl %eax, %edx
orb %cl, %dl
testb $0x1, %dl
je 0xb8fa
testb %al, %al
je 0xb901
movl %r15d, %eax
negl %eax
testb %cl, %cl
cmovnel %r8d, %eax
cmovnel %r15d, %r8d
movl %eax, %r15d
jmp 0xb9dc
cmpb $0x0, 0x20(%rsp)
je 0xb909
negl %r8d
jmp 0xb9dc
movl 0x40(%rsp), %eax
cmpl $0x4, %eax
je 0xb9a0
cmpl $0x5, %eax
je 0xb965
cmpl $0x6, %eax
jne 0xb9d9
imull $0x4b3e375, %r10d, %eax # imm = 0x4B3E375
xorl %r12d, %eax
imull $0x5a8ef93, %eax, %eax  # imm = 0x5A8EF93
movl %eax, %ecx
movl $0xff, %esi
andl %esi, %ecx
movl %eax, %edx
shrl $0x8, %edx
andl %esi, %edx
leaq 0x15125(%rip), %rdi     # 0x20a70
movb (%rdx,%rdi), %dl
xorb (%rcx,%rdi), %dl
movl %eax, %ecx
shrl $0x10, %ecx
andl %esi, %ecx
xorb (%rcx,%rdi), %dl
shrl $0x18, %eax
cmpb (%rax,%rdi), %dl
jne 0xb901
jmp 0xb9d9
movl %r10d, %esi
movl %r12d, %edx
movq %r9, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movl %r11d, 0x2c(%rsp)
movq %r8, (%rsp)
callq 0x1d2f1
movq (%rsp), %r8
movl 0x2c(%rsp), %r11d
movq 0x18(%rsp), %r10
movq 0x10(%rsp), %r9
testl %eax, %eax
jne 0xb901
jmp 0xb9d9
movl %r10d, %esi
movl %r12d, %edx
movq %r9, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movl %r11d, 0x2c(%rsp)
movq %r8, (%rsp)
callq 0x1d2f1
movq (%rsp), %r8
movl 0x2c(%rsp), %r11d
movq 0x18(%rsp), %r10
movq 0x10(%rsp), %r9
testl %eax, %eax
je 0xb901
negl %r15d
movl %r8d, %eax
addq $0x10, %rbx
incq %r9
movl %r15d, %r8d
movl %eax, %r15d
jmp 0xb749
movq %r14, %r12
movq %r13, %r15
movq %r9, %r14
callq 0x7c9b
testq %rax, %rax
je 0xbf93
movq %rax, %rbx
incl %r14d
movq 0x38(%rax), %rsi
movq %r12, 0x8(%rsi)
movl %r14d, (%rsi)
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %r15
cmovaeq %rax, %r15
movl %r15d, (%rbx)
movl 0x64(%rsp), %eax
movl %eax, 0x4(%rbx)
movq 0x8(%rsp), %rdi
callq 0xc00c
movl (%rbx), %eax
movq 0x78(%rsp), %rcx
cmpl (%rcx), %eax
jle 0xba5e
movq 0x68(%rsp), %rcx
movq (%rcx), %rax
movq %rax, 0x20(%rbx)
movq %rbx, (%rcx)
addq $0x20, %rbx
movq %rbx, 0x68(%rsp)
jmp 0xba66
movq %rbx, %rdi
callq 0x7cdc
movabsq $-0x8000000000000000, %r15 # imm = 0x8000000000000000
movq 0x70(%rsp), %r12
movq 0x8(%rsp), %r9
movl 0x4(%r9), %r10d
testl %r10d, %r10d
jle 0xbb1b
cmpq $0x0, 0x38(%rsp)
je 0xbb1b
movq 0x38(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
je 0xbb1b
cvtsi2sd %r12d, %xmm0
cvtsi2sd %r10d, %xmm1
divsd %xmm1, %xmm0
movsd 0x15102(%rip), %xmm2    # 0x20bb8
movapd %xmm2, %xmm1
subsd %xmm0, %xmm1
movapd %xmm2, %xmm0
subsd %xmm1, %xmm0
ucomisd %xmm2, %xmm1
movq 0x38(%rsp), %rcx
mulsd 0x18(%rcx), %xmm1
mulsd 0x10(%rcx), %xmm0
addsd %xmm1, %xmm0
jne 0xbae1
jnp 0xbaf6
movq 0x38(%rsp), %rcx
movsd 0x30(%rcx), %xmm1
addsd 0x20(%rcx), %xmm1
ucomisd %xmm1, %xmm0
jb 0xbb1b
movq 0x38(%rsp), %rbx
movq 0x8(%rbx), %rdi
movq %r10, %r14
movsd %xmm0, (%rsp)
callq *%rax
movq %r14, %r10
movq 0x8(%rsp), %r9
movsd (%rsp), %xmm0
movsd %xmm0, 0x30(%rbx)
testq %r12, %r12
jns 0xb61b
jmp 0xbb57
callq 0x1050
movl $0xc, (%rax)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r9, %rdi
callq 0x1030
jmp 0xbb36
movq %r13, %r10
movq 0x58(%rsp), %rbx
movq %rbx, 0x88(%rsp)
movslq 0x8(%r9), %rax
movl %eax, %edi
negl %edi
movq %rax, 0x20(%rsp)
cmovsl %eax, %edi
movslq %r10d, %r8
movq %rdi, %rsi
imulq %r8, %rsi
movq $-0x1, %rcx
testq %rsi, %rsi
js 0xbbb0
shlq $0x3, %rsi
testl %r10d, %r10d
je 0xbbad
cmpl $0x0, 0x20(%rsp)
je 0xbbad
movq %rsi, %rax
cqto
idivq %r8
cqto
idivq %rdi
cmpq $0x8, %rax
jne 0xbbb0
movq %rsi, %rcx
leal -0x1(%r10), %eax
movslq %eax, %r14
movq 0x20(%rsp), %rdx
imulq %rdx, %r14
xorl %eax, %eax
testl %edx, %edx
movq %r14, %rdi
cmovnsq %rax, %rdi
movq %r10, 0x10(%rsp)
testl %r10d, %r10d
cmoveq %rax, %rdi
shlq $0x3, %rdi
addq 0x10(%r9), %rdi
xorl %esi, %esi
movq %rcx, %rdx
callq 0x10e0
movq 0x8(%rsp), %rdi
testq %rbx, %rbx
je 0xbf12
movq %r14, 0x30(%rsp)
movq %rbx, 0x40(%rsp)
movq %rbx, %rax
movq 0x20(%rax), %rcx
movq %rcx, 0x30(%rax)
movq $0x0, 0x28(%rax)
movq %rcx, %rax
testq %rcx, %rcx
jne 0xbc04
movq 0x20(%rsp), %rax
leaq (,%rax,8), %r14
movq 0x40(%rsp), %r15
movq 0x20(%r15), %rbx
movq 0x28(%r15), %rax
movq %rax, 0x48(%rsp)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x20(%r15)
movq 0x38(%r15), %rsi
callq 0xc00c
movq %r15, (%rsp)
movq 0x38(%r15), %rax
movslq (%rax), %rdx
testq %rdx, %rdx
jle 0xbcec
movq 0x8(%rax), %rsi
shlq $0x4, %rdx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %edi, %edi
xorl %r12d, %r12d
xorl %r13d, %r13d
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
xorl %r8d, %r8d
movl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
xorl %r10d, %r10d
movl $0x7fffffff, %r11d      # imm = 0x7FFFFFFF
movl (%rsi,%rdi), %ebp
cmpl %ebp, %r11d
cmovgl %ebp, %ecx
cmovgel %ebp, %r11d
cmpl %ebp, %r10d
cmovll %ebp, %r13d
movl 0x8(%rsi,%rdi), %r15d
cmovlel %ebp, %r10d
cmpl %r15d, %r9d
cmovgl %r15d, %eax
cmovgel %r15d, %r9d
cmpl %r15d, %r8d
cmovll %r15d, %r12d
cmovlel %r15d, %r8d
addq $0x10, %rdi
cmpq %rdi, %rdx
jne 0xbc8e
leal 0x3f(%r13), %edx
addl $0x7e, %r13d
testl %edx, %edx
cmovnsl %edx, %r13d
sarl $0x6, %r13d
leal 0x3f(%rcx), %r15d
testl %ecx, %ecx
cmovnsl %ecx, %r15d
sarl $0x6, %r15d
jmp 0xbcfd
movl $0x1ffffff, %r15d       # imm = 0x1FFFFFF
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %r12d, %r12d
xorl %r13d, %r13d
movq (%rsp), %rcx
leaq 0x28(%rcx), %rdx
movq %rdx, 0x18(%rsp)
addq $0x20, %rcx
movq %rcx, (%rsp)
movslq %eax, %rdx
testq %rbx, %rbx
movq 0x8(%rsp), %rdi
je 0xbdd2
movq (%rsp), %rsi
movq 0x18(%rsp), %rcx
movq %rcx, 0x50(%rsp)
movq 0x20(%rbx), %r8
movq 0x38(%rbx), %rcx
movq $0x0, 0x20(%rbx)
movq 0x8(%rcx), %rcx
movq 0x8(%rcx), %r10
cmpq %rdx, %r10
jle 0xbdcb
leaq 0x20(%rbx), %r9
movq (%rcx), %rcx
testl %ecx, %ecx
js 0xbdad
cmpl %ecx, (%rdi)
jle 0xbdad
decq %r10
testl %r10d, %r10d
js 0xbdad
cmpl %r10d, 0x10(%rsp)
jle 0xbdad
imulq 0x20(%rsp), %r10
shlq $0x3, %r10
addq 0x10(%rdi), %r10
leaq 0x3f(%rcx), %r11
testq %rcx, %rcx
cmovnsq %rcx, %r11
movabsq $-0x8000000000000000, %rbp # imm = 0x8000000000000000
shrq %cl, %rbp
sarq $0x6, %r11
testq %rbp, (%r10,%r11,8)
movq 0x8(%rsp), %rdi
je 0xbdad
movq 0x50(%rsp), %rcx
movq %r9, 0x50(%rsp)
jmp 0xbdb3
movq %rsi, %rcx
movq %r9, %rsi
movq (%rcx), %r9
movq %r9, 0x20(%rbx)
movq %rbx, (%rcx)
movq %r8, %rbx
testq %r8, %r8
jne 0xbd31
jmp 0xbdd2
movq %rbx, (%rsi)
movq %r8, 0x20(%rbx)
subl %eax, %r12d
jle 0xbe12
movslq %r15d, %rax
imulq %r14, %rdx
leaq (%rdx,%rax,8), %rbp
notl %eax
addl %r13d, %eax
leaq 0x8(,%rax,8), %rbx
cmpl %r13d, %r15d
jge 0xbe0a
movq 0x10(%rdi), %rdi
addq %rbp, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x10e0
movq 0x8(%rsp), %rdi
addq %r14, %rbp
decq %r12
jne 0xbdef
movq (%rsp), %r15
movq (%r15), %r15
testq %r15, %r15
je 0xbe29
movq 0x48(%rsp), %rax
movq %rax, 0x28(%r15)
jmp 0xbe2e
movq 0x48(%rsp), %r15
movq 0x18(%rsp), %rcx
movq (%rcx), %rax
testq %rax, %rax
je 0xbe42
movq %r15, 0x28(%rax)
movq (%rcx), %r15
testq %r15, %r15
jne 0xbc2e
movq 0x88(%rsp), %rax
testq %rax, %rax
movq 0x40(%rsp), %rbx
movq 0x30(%rsp), %r14
je 0xbf12
movq %rax, %rcx
movq 0x20(%rcx), %rdx
movq 0x30(%rcx), %rsi
movq %rdx, 0x30(%rcx)
movq %rsi, %rcx
testq %rsi, %rsi
jne 0xbe69
xorl %ecx, %ecx
movq %rcx, 0x20(%rax)
leaq 0x88(%rsp), %rdx
movq %rcx, (%rdx)
leaq 0x80(%rsp), %rcx
movq 0x20(%rax), %rsi
movq %rsi, 0x80(%rsp)
movq (%rdx), %rsi
movq %rsi, 0x20(%rax)
movq %rax, (%rdx)
leaq 0x20(%rax), %rdx
movq 0x28(%rax), %rsi
testq %rsi, %rsi
je 0xbefc
movq (%rdx), %r8
movq %r8, 0x20(%rsi)
movq %rsi, (%rdx)
movq 0x28(%rsi), %rdx
testq %rdx, %rdx
je 0xbee9
movq %rcx, %r8
movq %r8, %r10
movq (%r8), %r9
leaq 0x20(%r9), %r8
testq %r9, %r9
jne 0xbecf
movq $0x0, 0x20(%rdx)
movq %rdx, (%r10)
movq %rsi, %rdx
movq 0x30(%rsi), %r8
addq $0x20, %rdx
movq %r8, %rsi
testq %r8, %r8
jne 0xbeb9
movq 0x30(%rax), %rax
testq %rax, %rax
jne 0xbea2
movq 0x80(%rsp), %rax
testq %rax, %rax
jne 0xbe96
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0xbf3d
xorl %ecx, %ecx
cmpl $0x0, 0x10(%rsp)
cmoveq %rcx, %r14
cmpl $0x0, 0x20(%rsp)
cmovnsq %rcx, %r14
leaq (%rax,%r14,8), %rdi
callq 0x1030
movq 0x8(%rsp), %rdi
callq 0x1030
movq 0x90(%rsp), %rax
movq %rbx, (%rax)
xorl %ebp, %ebp
movq 0x38(%rsp), %rbx
testq %rbx, %rbx
je 0xbb36
movq (%rbx), %rax
testq %rax, %rax
je 0xbb36
xorpd %xmm0, %xmm0
mulsd 0x10(%rbx), %xmm0
addsd 0x18(%rbx), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x8(%rbx), %rdi
callq *%rax
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x30(%rbx)
jmp 0xbb36
movq %r12, %r14
movq %r14, %rdi
callq 0x1030
movq 0x8(%rsp), %rcx
movq 0x10(%rcx), %rdi
testq %rdi, %rdi
je 0xbfd3
movslq 0x8(%rcx), %rax
testq %rax, %rax
jns 0xbfc9
movslq 0x4(%rcx), %rcx
testq %rcx, %rcx
je 0xbfc9
decq %rcx
imulq %rax, %rcx
leaq (%rdi,%rcx,8), %rdi
callq 0x1030
movq 0x8(%rsp), %rcx
movq %rcx, %rdi
callq 0x1030
movq 0x58(%rsp), %rdi
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rdi, %rdi
je 0xbb36
movq 0x20(%rdi), %rbx
movq $0x0, 0x20(%rdi)
callq 0x7cdc
movq %rbx, %rdi
testq %rbx, %rbx
jne 0xbfee
jmp 0xbb36