LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: HashInsert
Hash* HashInsert(Hash* H,char* camera){ /*Eisagei enan neo product sto HashTable*/
  NList *L;
	int i=0,j=0,in;
	char name[20];
  H->count++;
	while(camera[i]!='/'){//Vrisko to simio pou teliwnei to onoma ths istoselidas tou proiontos
    i++;
  }
	i+=2;//pigeno to i sthn thesh pou arxizei o arithmos tou proiontos
	while(i<strlen(camera)){
		name[j]=camera[i];
		j++;
		i++;
	}
	name[j]='\0';
	in=atoi(name);//apothievo ton arithmo tou proiontos ston int in
	int index=hash(in,H->size);
  L=(NList*)H[index].Head;//pernw thn lista pou vriskete sto index bucket tou HashTable
  InsertNList(L,camera);
  float n=(1.0*H->count)/H->size;
  if(n>=0.9){ //Ean h plirotita ftasei to 90% kanei rehash
    H=rehash(H);
  }
  return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
incl 0x4(%rdi)
movl $0x1, %r15d
cmpb $0x2f, -0x1(%r14,%r15)
leaq 0x1(%r15), %r15
jne 0x4322
movq %r14, %rdi
callq 0x10c0
movl %r15d, %ecx
cmpq %rcx, %rax
jbe 0x435f
xorl %ecx, %ecx
leaq (%r14,%rcx), %rdx
movb (%r15,%rdx), %dl
movb %dl, -0x30(%rbp,%rcx)
leaq (%rcx,%r15), %rdx
incq %rdx
incq %rcx
cmpq %rdx, %rax
ja 0x4340
movl %ecx, %eax
jmp 0x4361
xorl %eax, %eax
movb $0x0, -0x30(%rbp,%rax)
leaq -0x30(%rbp), %rdi
callq 0x1240
movl %eax, %ecx
shll $0xd, %ecx
xorl %ecx, %eax
movl %eax, %ecx
sarl $0x11, %ecx
xorl %ecx, %eax
movl %eax, %ecx
shll $0x5, %ecx
xorl %ecx, %eax
cltd
idivl (%rbx)
movl %edx, %eax
negl %eax
cmovsl %edx, %eax
shlq $0x4, %rax
movq 0x8(%rbx,%rax), %rdi
movq %r14, %rsi
callq 0x36bb
cvtsi2sdl 0x4(%rbx), %xmm0
cvtsi2sdl (%rbx), %xmm1
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
cvtss2sd %xmm0, %xmm0
ucomisd 0x1f44(%rip), %xmm0     # 0x6300
jae 0x43cc
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x43de
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: rehash
Hash* rehash(Hash *H){
  NList* N;
  Hash*  Temp;
  int i;
  Temp=(Hash* )malloc( (H->size*1.5) *  sizeof(Hash) ); //Dimiourgo ena neo HasTable me 150% xoritikotita
  Temp->size=H->size * 1.5;
  Temp->count=0;
  for(i=0 ; i< Temp->size ; i++){
    Temp[i].Head=CreateNList();
  }

  for(i=0 ; i< H->size ; i++){  //Pernaw ta dedomena tou paliou sto neo HasTable
    N=(NList*)H[i].Head;
    while(N->Next!=NULL){
      N=N->Next;
      Temp=HashInsert(Temp,N->camera);
      Temp=HashReplaceSpear(Temp,N->camera,N->Spear);
      N->Spear=NULL;
    }
  }

  FreeHash(H);
  H=Temp;
  return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cvtsi2sdl (%rdi), %xmm1
mulsd 0x1eac(%rip), %xmm1     # 0x62a8
movsd %xmm1, -0x28(%rbp)
movsd 0x1eff(%rip), %xmm0     # 0x6308
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x1e97(%rip), %xmm0     # 0x62b8
cvttsd2si %xmm0, %rdi
andq %rcx, %rdi
orq %rax, %rdi
callq 0x11a0
cvttsd2si -0x28(%rbp), %ecx
movq %rax, %r14
movl %ecx, (%rax)
movl $0x0, 0x4(%rax)
testl %ecx, %ecx
jle 0x4469
movq %r14, %r15
addq $0x8, %r15
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x36a2
movq %rax, (%r15)
incq %r12
movslq (%r14), %rax
addq $0x10, %r15
cmpq %rax, %r12
jl 0x4450
cmpl $0x0, (%rbx)
jle 0x44c1
xorl %r15d, %r15d
movq %r15, %rax
shlq $0x4, %rax
movq 0x8(%rbx,%rax), %rax
movq 0x20(%rax), %r12
testq %r12, %r12
je 0x44b6
movq (%r12), %rsi
movq %r14, %rdi
callq 0x4306
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rax, %rdi
callq 0x44d9
movq %rax, %r14
movq $0x0, 0x8(%r12)
movq 0x20(%r12), %r12
jmp 0x4481
incq %r15
movslq (%rbx), %rax
cmpq %rax, %r15
jl 0x4471
movq %rbx, %rdi
callq 0x42b0
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: HashReplaceSpear
Hash* HashReplaceSpear(Hash* H,char* word,WHash* Spear){  //Antikathistw to WHash ths cameras me onoma word
  NList *L;
	int i=0,j=0,in;
	char name[20];
  while(word[i]!='/'){//Vrisko to simio pou teliwnei to onoma ths istoselidas tou proiontos
    i++;
  }
	i+=2;//pigeno to i sthn thesh pou arxizei o arithmos tou proiontos
	while(i<strlen(word)){
		name[j]=word[i];
		j++;
		i++;
	}
	name[j]='\0';
	in=atoi(name);//apothievo ton arithmo tou proiontos ston int in
	int index=hash(in,H->size);
  L=(NList*)H[index].Head;//pernw thn lista pou vriskete sto index bucket tou HashTable
  while(L->Next!=NULL){ //Antikathistw to WHash ths cameras me onoma word
    L=L->Next;
    if(!strcmp(L->camera,word)){
      if(L->Spear!=NULL) FreeWHash(L->Spear);
      L->Spear=Spear;
      return H;
    }
  }
  return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl $0x1, %r12d
cmpb $0x2f, -0x1(%r15,%r12)
leaq 0x1(%r12), %r12
jne 0x44f7
movq %r15, %rdi
callq 0x10c0
movl %r12d, %ecx
cmpq %rcx, %rax
jbe 0x452d
xorl %ecx, %ecx
movb (%r15,%r12), %dl
movb %dl, -0x40(%rbp,%rcx)
incq %rcx
incq %r12
cmpq %r12, %rax
ja 0x4516
movl %ecx, %eax
jmp 0x452f
xorl %eax, %eax
movb $0x0, -0x40(%rbp,%rax)
leaq -0x40(%rbp), %rdi
callq 0x1240
movl %eax, %ecx
shll $0xd, %ecx
xorl %ecx, %eax
movl %eax, %ecx
sarl $0x11, %ecx
xorl %ecx, %eax
movl %eax, %ecx
shll $0x5, %ecx
xorl %ecx, %eax
cltd
idivl (%rbx)
movl %edx, %eax
negl %eax
cmovsl %edx, %eax
shlq $0x4, %rax
movq 0x8(%rbx,%rax), %r12
movq 0x20(%r12), %r12
testq %r12, %r12
je 0x4595
movq (%r12), %rdi
movq %r15, %rsi
callq 0x1140
testl %eax, %eax
jne 0x4565
movq 0x8(%r12), %rdi
testq %rdi, %rdi
je 0x458e
callq 0x3982
movq %r14, 0x8(%r12)
jmp 0x4597
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: HashTransfer
void HashTransfer(Hash* H,FILE* csvfile){//Metaferi ta proionta poy teriazoun se ena csv arxio
  NList *L;
  TList* Transfered=CreateTList();
  for(int i=0 ; i<H->size ; i++){
    L=(NList*)H[i].Head;
    TransferNList(L,Transfered,csvfile);
  }
  FreeTList(Transfered);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %eax, %eax
callq 0x35f2
movq %rax, %r15
cmpl $0x0, (%r14)
jle 0x4767
leaq 0x8(%r14), %r12
xorl %r13d, %r13d
movq (%r12), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x37f5
incq %r13
movslq (%r14), %rax
addq $0x10, %r12
cmpq %rax, %r13
jl 0x4749
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3522
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: HashDiff
void HashDiff(Hash* H,FILE* csvfile){//Metaferi ta dedomena pou den teriazoun se ena csv arxio
	NList *L;
  TList* Transfered=CreateTList();
	for(int i=0 ; i<H->size ; i++){
		L=(NList*)H[i].Head;
		DiffNList(L,Transfered,csvfile);
	}
  FreeTList(Transfered);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %eax, %eax
callq 0x35f2
movq %rax, %r15
cmpl $0x0, (%r14)
jle 0x47c6
leaq 0x8(%r14), %r12
xorl %r13d, %r13d
movq (%r12), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x3867
incq %r13
movslq (%r14), %rax
addq $0x10, %r12
cmpq %rax, %r13
jl 0x47a8
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3522
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: CheckIfOpposite
CList** CheckIfOpposite (Hash* H, char* first){
	NList* L;
	int i=0,j=0,in;
	char name[40];
	while(first[i]!='/'){//Vrisko to simio pou teliwnei to onoma ths istoselidas tou proiontos
	  i++;
	}
	i+=2;//pigeno to i sthn thesh pou arxizei o arithmos tou proiontos
	while(i<strlen(first)){
	   name[j]=first[i];
	   j++;
	   i++;
	}
	name[j]='\0';
	in=atoi(name);//apothievo ton arithmo tou proiontos ston int in
	int index=hash(in,H->size);
	L=(NList*)H[index].Head;//pernw thn lista pou vriskete sto index bucket tou HashTable
	while(L->Next!=NULL){	//Vrisko ton komvo ston opio einai apothikevmeno to product
		L=L->Next;
		if(!strcmp(L->camera,first)){
        return &(L->clique);
		}
	}
  return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %r15d
cmpb $0x2f, -0x1(%rbx,%r15)
leaq 0x1(%r15), %r15
jne 0x47f5
movq %rbx, %rdi
callq 0x10c0
movl %r15d, %ecx
cmpq %rcx, %rax
jbe 0x482a
xorl %ecx, %ecx
movb (%rbx,%r15), %dl
movb %dl, -0x40(%rbp,%rcx)
incq %rcx
incq %r15
cmpq %r15, %rax
ja 0x4813
movl %ecx, %eax
jmp 0x482c
xorl %eax, %eax
movb $0x0, -0x40(%rbp,%rax)
leaq -0x40(%rbp), %rdi
callq 0x1240
movl %eax, %ecx
shll $0xd, %ecx
xorl %ecx, %eax
movl %eax, %ecx
sarl $0x11, %ecx
xorl %ecx, %eax
movl %eax, %ecx
shll $0x5, %ecx
xorl %ecx, %eax
cltd
idivl (%r14)
movl %edx, %eax
negl %eax
cmovsl %edx, %eax
shlq $0x4, %rax
movq 0x8(%r14,%rax), %r15
xorl %r14d, %r14d
movq 0x20(%r15), %r15
testq %r15, %r15
je 0x4885
movq (%r15), %rdi
movq %rbx, %rsi
callq 0x1140
testl %eax, %eax
jne 0x4866
addq $0x10, %r15
movq %r15, %r14
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: HashPrint
void HashPrint(Hash* H){//Ektiponei to HashTable
	NList *L;
	for(int i=0 ; i<H->size ; i++){
		L=(NList*)H[i].Head;
		PrintNList(L);
	}
}

// Assembly:
cmpl $0x0, (%rdi)
jle 0x48cd
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
xorl %r15d, %r15d
movq (%r14), %rdi
callq 0x37ab
incq %r15
movslq (%rbx), %rax
addq $0x10, %r14
cmpq %rax, %r15
jl 0x48ac
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: HashVectorts
Hash* HashVectorts(Hash* H,LHash* Lek){ //Dimiourgei ena vector gia kathe camera
	NList *L;
  double tf,value;

	for(int i=0 ; i<H->size ; i++){  //Gia kathe bucket tou Hash
		L=(NList*)H[i].Head;
		while(L->Next!=NULL){ //Gia kathe komvo ths NList(ara gia kathe kameras)
      L=L->Next;
      L->vector=CreateHVector(200);
      for(int j=0 ; j<Lek->size ; j++){ //Gia kathe leksh tou Lek
        tf=GiveTfIdf(L->Spear,Lek[j].word);  //Pernw to tf ths lekshs an iparxei sthn camera alios to tf ginete 0
        if(tf){ //ean iparxi h leksh sthn camera
          value=tf*Lek[j].tfcount;  //h timh ginete tf*idf
          L->vector=InsertHVector(L->vector,j,value); //isagogi sto vector
        }
      }
      L->vec_size = Lek->size;
      FreeWHash(L->Spear);  //Apodemsevw to WHash ths cameras afou pleon den to xriazome
      L->Spear=NULL;
    }

	}
  return H;
}

// Assembly:
cmpl $0x0, (%rdi)
jle 0x49a9
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
leaq 0x10(%rsi), %r13
xorl %ecx, %ecx
movq %rdi, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq %rcx, %rax
shlq $0x4, %rax
movq 0x8(%rdi,%rax), %rax
movq 0x20(%rax), %rbx
testq %rbx, %rbx
je 0x4984
movl $0xc8, %edi
callq 0x3f68
movq %rax, 0x18(%rbx)
movl 0x18(%r14), %eax
testl %eax, %eax
jle 0x496a
movq %r13, %r12
xorl %r15d, %r15d
movq 0x8(%rbx), %rdi
movq -0x10(%r12), %rsi
callq 0x3e2f
ucomisd 0x19d0(%rip), %xmm0     # 0x6310
jne 0x4944
jnp 0x495a
mulsd (%r12), %xmm0
movq 0x18(%rbx), %rdi
movl %r15d, %esi
callq 0x3fbe
movq %rax, 0x18(%rbx)
incq %r15
movslq 0x18(%r14), %rax
addq $0x28, %r12
cmpq %rax, %r15
jl 0x492a
movl %eax, 0x28(%rbx)
movq 0x8(%rbx), %rdi
callq 0x3982
movq $0x0, 0x8(%rbx)
movq 0x20(%rbx), %rbx
jmp 0x4909
movq -0x38(%rbp), %rcx
incq %rcx
movq -0x30(%rbp), %rdi
movslq (%rdi), %rax
cmpq %rax, %rcx
jl 0x48f5
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
movq %rdi, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: HashFind
WHash* HashFind(Hash* H,char* word){
  NList *L;
	int i=0,j=0,in;
	char name[20];
  while(word[i]!='/'){//Vrisko to simio pou teliwnei to onoma ths istoselidas tou proiontos
    i++;
  }
	i+=2;//pigeno to i sthn thesh pou arxizei o arithmos tou proiontos
	while(i<strlen(word)){
		name[j]=word[i];
		j++;
		i++;
	}
	name[j]='\0';
	in=atoi(name);//apothievo ton arithmo tou proiontos ston int in
	int index=hash(in,H->size);
  L=(NList*)H[index].Head;//pernw thn lista pou vriskete sto index bucket tou HashTable
  while(L->Next!=NULL){
    L=L->Next;
    if(!strcmp(L->camera,word)) return L->Spear;
  }
  return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %r15d
cmpb $0x2f, -0x1(%rbx,%r15)
leaq 0x1(%r15), %r15
jne 0x49c6
movq %rbx, %rdi
callq 0x10c0
movl %r15d, %ecx
cmpq %rcx, %rax
jbe 0x49fb
xorl %ecx, %ecx
movb (%rbx,%r15), %dl
movb %dl, -0x30(%rbp,%rcx)
incq %rcx
incq %r15
cmpq %r15, %rax
ja 0x49e4
movl %ecx, %eax
jmp 0x49fd
xorl %eax, %eax
movb $0x0, -0x30(%rbp,%rax)
leaq -0x30(%rbp), %rdi
callq 0x1240
movl %eax, %ecx
shll $0xd, %ecx
xorl %ecx, %eax
movl %eax, %ecx
sarl $0x11, %ecx
xorl %ecx, %eax
movl %eax, %ecx
shll $0x5, %ecx
xorl %ecx, %eax
cltd
idivl (%r14)
movl %edx, %eax
negl %eax
cmovsl %edx, %eax
shlq $0x4, %rax
movq 0x8(%r14,%rax), %r15
xorl %r14d, %r14d
movq 0x20(%r15), %r15
testq %r15, %r15
je 0x4a53
movq (%r15), %rdi
movq %rbx, %rsi
callq 0x1140
testl %eax, %eax
jne 0x4a37
movq 0x8(%r15), %r14
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: hash1
int hash1(char *str,int size){
  int hash = 5381;
  int c;
  while ((c = *str++))
    hash = ((hash << 5) + hash) + c; /* hash * 33 + c */

  return abs(hash % size);
}

// Assembly:
movb (%rdi), %cl
testb %cl, %cl
je 0x4a8d
pushq %rbp
movq %rsp, %rbp
incq %rdi
movl $0x1505, %edx           # imm = 0x1505
movl %edx, %eax
movsbl %cl, %ecx
shll $0x5, %eax
addl %edx, %eax
addl %ecx, %eax
movb (%rdi), %cl
incq %rdi
movl %eax, %edx
testb %cl, %cl
jne 0x4a75
popq %rbp
jmp 0x4a92
movl $0x1505, %eax           # imm = 0x1505
cltd
idivl %esi
movl %edx, %eax
negl %eax
cmovsl %edx, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: LHashCreate
LHash* LHashCreate(int size){ //Dimiourgei ena neo LHashTable megetous size
  int i;
	LHash *H;
	H=(LHash* )malloc(size *  sizeof(LHash) );
	H->size=size;
  H->count=0;
  for(i=0 ; i< size ; i++){ //gia kathe bucket tou LHashTable arxikopiei ta dedomena tou
    H[i].word=NULL;
    H[i].idf=0.0;
    H[i].tfcount=0;
    H[i].wordperj=0;
	}
	return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edi, %ebx
movslq %edi, %r14
leaq (,%r14,8), %rax
leaq (%rax,%rax,4), %rdi
callq 0x11a0
movl %r14d, 0x18(%rax)
movl $0x0, 0x1c(%rax)
testl %r14d, %r14d
jle 0x4afe
movl %ebx, %edx
movq %rax, %rcx
addq $0x20, %rcx
shlq $0x3, %rdx
leaq (%rdx,%rdx,4), %rdx
xorl %esi, %esi
xorps %xmm0, %xmm0
movl $0x0, (%rcx,%rsi)
movups %xmm0, -0x20(%rcx,%rsi)
movq $0x0, -0x10(%rcx,%rsi)
addq $0x28, %rsi
cmpq %rsi, %rdx
jne 0x4ae0
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: LHashInsert
LHash* LHashInsert(LHash* H,char* camera){ /*Eisagei enan neo product sto LHashTable*/
  int index,exist=0,j=0;

  while(1){ //Evresi tou bucket pou tha paei to neo product
    if(!j){ //Sthn proth epanalipsh ipologizoume mono thn sinartish hash
      index=hash1(camera,H->size);
      j=1;
    }else{
      index++;
      if(index>=H->size) index-=H->size;
    }
    if(H[index].word==NULL){  //Ean einai adio to bucket tha isagoume se afto thn camera
      break;
    }else if(!strcmp(H[index].word,camera)){  //Ean iparxi idi tha vgoume ap thn epanalipsh
      exist=1;
      break;
    }
  }
  if(!exist){ //Ean h camera den iparxei idi
    H->count++;
    H[index].word=strdup(camera);
    H[index].wordperj=1;
    float n=(1.0*H->count)/H->size;
    if(n>=0.8){ //Ean h plirotita ftasei to 80% kanei rehash
      H=Lrehash(H);
    }
  }else{
    H[index].wordperj=H[index].wordperj+1;
  }
  return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1(%rsi), %r15
movb $0x1, %cl
testb $0x1, %cl
je 0x4b4a
movb (%r14), %dl
testb %dl, %dl
je 0x4b60
movl $0x1505, %esi           # imm = 0x1505
movq %r15, %rcx
movl %esi, %eax
movsbl %dl, %edx
shll $0x5, %eax
addl %esi, %eax
addl %edx, %eax
movb (%rcx), %dl
incq %rcx
movl %eax, %esi
testb %dl, %dl
jne 0x4b33
jmp 0x4b65
incl %r13d
movl 0x18(%rbx), %eax
cmpl %eax, %r13d
movl $0x0, %ecx
cmovll %ecx, %eax
subl %eax, %r13d
jmp 0x4b73
movl $0x1505, %eax           # imm = 0x1505
cltd
idivl 0x18(%rbx)
movl %edx, %r13d
negl %r13d
cmovsl %edx, %r13d
movslq %r13d, %rax
leaq (%rax,%rax,4), %rax
leaq (%rbx,%rax,8), %r12
movq (%r12), %rdi
testq %rdi, %rdi
je 0x4b9c
movq %r14, %rsi
callq 0x1140
xorl %ecx, %ecx
testl %eax, %eax
jne 0x4b1d
incl 0x20(%r12)
jmp 0x4bdc
movl 0x1c(%rbx), %r15d
incl %r15d
movl %r15d, 0x1c(%rbx)
movq %r14, %rdi
callq 0x1270
movq %rax, (%r12)
movl $0x1, 0x20(%r12)
cvtsi2sd %r15d, %xmm0
cvtsi2sdl 0x18(%rbx), %xmm1
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
cvtss2sd %xmm0, %xmm0
ucomisd 0x16c6(%rip), %xmm0     # 0x62a0
jae 0x4bee
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4c04
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: Lrehash
LHash* Lrehash(LHash* H){
  LHash*  Temp;
  int i,index,j;
  Temp=(LHash* )malloc( (H->size*2) *  sizeof(LHash) ); //Dimiourgo ena neo HasTable me thn diplasia xoritikotita
  Temp->size=H->size * 2;
  Temp->count=H->count;
  for(i=0 ; i< Temp->size ; i++){
    Temp[i].word=NULL;
    Temp[i].idf=0.0;
    Temp[i].tfcount=0;
    Temp[i].wordperj=0;
  }
  for(i=0 ; i< H->size ; i++){  //Pernaw ta dedomena tou paliou sto neo HasTable

    if(H[i].word!=NULL){  //Ean to arxiko Hash exei dedomena se afthn thn thesh
      j=0;
      while(1){ //Evresi tou bucket pou tha paei to neo product
        if(!j){ //Sthn proth epanalipsh ipologizoume mono thn sinartish hash
          index=hash1(H[i].word,Temp->size);
          j=1;
        }else{
          index++;
          if(index>=Temp->size) index-=Temp->size;
        }
        if(Temp[index].word==NULL){  //Ean einai adio to bucket tha isagoume se afto thn camera
          break;
        }
      }
      Temp[index].word=strdup(H[i].word);
      Temp[index].wordperj=H[i].wordperj;
      Temp[index].idf=H[i].idf;
      Temp[index].tfcount=H[i].tfcount;
    }
  }
  FreeLHash(H);
  H=Temp;
  return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r13
movslq 0x18(%rdi), %rbx
leal (%rbx,%rbx), %r12d
movq %rbx, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rdi
callq 0x11a0
movq %rax, %r14
movl %r12d, 0x18(%rax)
movl 0x1c(%r13), %eax
movl %eax, 0x1c(%r14)
movq %rbx, -0x30(%rbp)
testq %rbx, %rbx
jle 0x4c84
cmpl $0x2, %r12d
movl $0x1, %ecx
cmovgel %r12d, %ecx
leaq 0x20(%r14), %rax
shlq $0x3, %rcx
leaq (%rcx,%rcx,4), %rcx
xorl %edx, %edx
xorps %xmm0, %xmm0
movl $0x0, (%rax,%rdx)
movups %xmm0, -0x20(%rax,%rdx)
movq $0x0, -0x10(%rax,%rdx)
addq $0x28, %rdx
cmpq %rdx, %rcx
jne 0x4c66
cmpl $0x0, -0x30(%rbp)
jle 0x4d65
xorl %r9d, %r9d
xorl %r15d, %r15d
movq %r13, -0x38(%rbp)
leaq (%r15,%r15,4), %rax
movq (%r13,%rax,8), %rdi
testq %rdi, %rdi
je 0x4d58
leaq (,%rax,8), %rax
addq %r13, %rax
movq %rax, -0x40(%rbp)
leaq 0x1(%rdi), %rcx
movb $0x1, %al
testb $0x1, %al
je 0x4cf3
movb (%rdi), %sil
testb %sil, %sil
je 0x4d03
movl $0x1505, %r8d           # imm = 0x1505
movq %rcx, %rdx
movl %r8d, %eax
movsbl %sil, %esi
shll $0x5, %eax
addl %r8d, %eax
addl %esi, %eax
movb (%rdx), %sil
incq %rdx
movl %eax, %r8d
testb %sil, %sil
jne 0x4cd7
jmp 0x4d08
incl %ebx
cmpl %r12d, %ebx
movl %r12d, %eax
cmovll %r9d, %eax
subl %eax, %ebx
jmp 0x4d13
movl $0x1505, %eax           # imm = 0x1505
cltd
idivl %r12d
movl %edx, %ebx
negl %ebx
cmovsl %edx, %ebx
movslq %ebx, %rax
leaq (%rax,%rax,4), %rdx
xorl %eax, %eax
cmpq $0x0, (%r14,%rdx,8)
jne 0x4cbf
leaq (%r14,%rdx,8), %r13
callq 0x1270
xorl %r9d, %r9d
movq %rax, (%r13)
movq -0x40(%rbp), %rcx
movl 0x20(%rcx), %eax
movl %eax, 0x20(%r13)
movsd 0x8(%rcx), %xmm0
movsd %xmm0, 0x8(%r13)
movsd 0x10(%rcx), %xmm0
movsd %xmm0, 0x10(%r13)
movq -0x38(%rbp), %r13
incq %r15
cmpq -0x30(%rbp), %r15
jne 0x4c98
movq %r13, %rdi
callq 0x4d7f
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: FreeLHash
void FreeLHash(LHash* H){   //apodesmefsth tou Hash
  for(int i=0 ; i<H->size ; i++){
    free(H[i].word);
  }
  free(H);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0x18(%rdi)
jle 0x4db0
xorl %r14d, %r14d
movq %rbx, %r15
movq (%r15), %rdi
callq 0x1030
incq %r14
movslq 0x18(%rbx), %rax
addq $0x28, %r15
cmpq %rax, %r14
jl 0x4d98
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: LHashPrint
void LHashPrint(LHash* H){  //Ektiponei to Leksilogio
  int i,c=0;
  for(i=0 ; i<H->size ; i++){
    if(H[i].word!=NULL){
      c++;
      printf("%d.%s-%f-%f\n",c,H[i].word,H[i].idf,H[i].tfcount);
    }
  }
}

// Assembly:
cmpl $0x0, 0x18(%rdi)
jle 0x4e2f
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
xorl %r13d, %r13d
leaq 0x1531(%rip), %r14      # 0x6318
xorl %r15d, %r15d
movq -0x10(%r12), %rdx
testq %rdx, %rdx
je 0x4e11
incl %r15d
movsd -0x8(%r12), %xmm0
movsd (%r12), %xmm1
movq %r14, %rdi
movl %r15d, %esi
movb $0x2, %al
callq 0x10d0
incq %r13
movslq 0x18(%rbx), %rax
addq $0x28, %r12
cmpq %rax, %r13
jl 0x4dea
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: LHashTfIdf
void LHashTfIdf(LHash* Lek,double count){ //Dimiourgei ena vector gia kathe camera
  double t;
  int wc=0;
	for(int i=0 ; i<Lek->size ; i++){  //Gia kathe bucket tou leksilogiou
    if(Lek[i].word!=NULL){  //An iparxei leksh
        wc++;
        Lek[i].idf=log10(count/(Lek[i].wordperj));//Ipologizo to idf
        t=Lek[i].idf;
        Lek[i].idf=(Lek[i].idf*Lek[i].tfcount)/count;//Ipologizo to meso tf-idf
        Lek[i].tfcount=t; //krataw to idf sto tfcoun
      }
      if(wc==Lek->count) break;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movsd %xmm0, -0x28(%rbp)
cmpl $0x0, 0x18(%rdi)
jle 0x4ea8
movq %rdi, %rbx
leaq 0x20(%rdi), %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
cmpq $0x0, -0x20(%r14)
je 0x4e92
incl %r12d
xorps %xmm1, %xmm1
cvtsi2sdl (%r14), %xmm1
movsd -0x28(%rbp), %xmm0
divsd %xmm1, %xmm0
callq 0x1150
movsd -0x10(%r14), %xmm1
mulsd %xmm0, %xmm1
divsd -0x28(%rbp), %xmm1
movsd %xmm1, -0x18(%r14)
movsd %xmm0, -0x10(%r14)
cmpl 0x1c(%rbx), %r12d
je 0x4ea8
incq %r15
movslq 0x18(%rbx), %rax
addq $0x28, %r14
cmpq %rax, %r15
jl 0x4e57
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: LHashFind
int LHashFind(LHash* H,char* camera){ //Epistrefei 1 an iparxei  leksh sto hash allios 0
  int index,exist=0,j=0;

  while(1){
    if(!j){
      index=hash1(camera,H->size);
      j=1;
    }else{
      index++;
      if(index>=H->size) index-=H->size;
    }
    if(H[index].word==NULL){
      break;
    }else if(!strcmp(H[index].word,camera)){
      exist=1;
      break;
    }
  }
  return exist;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1(%rsi), %r15
movb $0x1, %cl
xorl %r12d, %r12d
testb $0x1, %cl
je 0x4efe
movb (%rbx), %dl
testb %dl, %dl
je 0x4f11
movl $0x1505, %esi           # imm = 0x1505
movq %r15, %rcx
movl %esi, %eax
movsbl %dl, %edx
shll $0x5, %eax
addl %esi, %eax
addl %edx, %eax
movb (%rcx), %dl
incq %rcx
movl %eax, %esi
testb %dl, %dl
jne 0x4ee7
jmp 0x4f16
incl %r13d
movl 0x18(%r14), %eax
cmpl %eax, %r13d
cmovll %r12d, %eax
subl %eax, %r13d
jmp 0x4f25
movl $0x1505, %eax           # imm = 0x1505
cltd
idivl 0x18(%r14)
movl %edx, %r13d
negl %r13d
cmovsl %edx, %r13d
movslq %r13d, %rax
leaq (%rax,%rax,4), %rax
movq (%r14,%rax,8), %rdi
testq %rdi, %rdi
je 0x4f4a
movq %rbx, %rsi
callq 0x1140
xorl %ecx, %ecx
testl %eax, %eax
jne 0x4ed2
movl $0x1, %eax
jmp 0x4f4c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: NMostLHash
LHash* NMostLHash(LHash* H,int n){ //Epistrefei ena Hash pou periexei mono tis n simantikoteres lekseis tou hash
  if(n>H->size) n=H->size;
  H=LHashSort(H,0,H->size);
  LHash*  Temp;
  int i;
  Temp=(LHash* )malloc( n *  sizeof(LHash) ); //Dimiourgo ena neo HasTable me n size
  Temp->size=n;
  Temp->count=n;
  for(i=0 ; i<n ; i++){
    Temp[i].word=NULL;
    Temp[i].idf=0.0;
    Temp[i].tfcount=0.0;
  }
  for(i=0 ; i< n ; i++){  //Pernaw ta dedomena tou paliou sto neo HasTable
        Temp[i].word=H[i].word;
        Temp[i].idf=H[i].idf;
        Temp[i].tfcount=H[i].tfcount;
        H[i].word=NULL;
  }
  FreeLHash(H);
  H=Temp;
  return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %r15d
movl 0x18(%rdi), %edx
cmpl %esi, %edx
cmovll %edx, %r15d
xorl %esi, %esi
callq 0x5021
movq %rax, %rbx
movslq %r15d, %r12
leaq (,%r12,8), %rax
leaq (%rax,%rax,4), %rdi
callq 0x11a0
movq %rax, %r14
movl %r12d, 0x18(%rax)
movl %r12d, 0x1c(%rax)
movl %r15d, %eax
testl %r12d, %r12d
jle 0x4fcb
leaq (,%rax,8), %rcx
leaq (%rcx,%rcx,4), %rcx
xorl %edx, %edx
xorps %xmm0, %xmm0
movups %xmm0, (%r14,%rdx)
movq $0x0, 0x10(%r14,%rdx)
addq $0x28, %rdx
cmpq %rdx, %rcx
jne 0x4fb4
testl %r15d, %r15d
jle 0x500d
shlq $0x3, %rax
leaq (%rax,%rax,4), %rax
xorl %ecx, %ecx
movq (%rbx,%rcx), %rdx
movq %rdx, (%r14,%rcx)
movsd 0x8(%rbx,%rcx), %xmm0
movsd %xmm0, 0x8(%r14,%rcx)
movsd 0x10(%rbx,%rcx), %xmm0
movsd %xmm0, 0x10(%r14,%rcx)
movq $0x0, (%rbx,%rcx)
addq $0x28, %rcx
cmpq %rcx, %rax
jne 0x4fda
movq %rbx, %rdi
callq 0x4d7f
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: LHashSort
LHash* LHashSort(LHash* H,int lo,int hi){ //Taksinomisi tou Hash me ton algorithmo Quick sort vasi tou idf
  int j;
  if(lo<hi){
    j=LHashPartition(&H,lo,hi); //Orismos tou pivot
    H=LHashSort(H,lo,j);
    H=LHashSort(H,j+1,hi);
  }
  return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, -0x28(%rbp)
cmpl %edx, %esi
jge 0x506f
movl %edx, %ebx
movl %esi, %r14d
leaq -0x28(%rbp), %r15
movq %r15, %rdi
callq 0x5080
movl %eax, %r12d
movq (%r15), %rdi
movl %r14d, %esi
movl %eax, %edx
callq 0x5021
movq %rax, (%r15)
incl %r12d
movq %rax, %rdi
movl %r12d, %esi
movl %ebx, %edx
callq 0x5021
movq %rax, (%r15)
movq -0x28(%rbp), %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: LHashPartition
int LHashPartition(LHash** H,int lo,int hi){ //Evresh tou pivot kai metathesh ton katalilwn thesewn sto Hash

  float pivot=(float)(*H)[lo].idf,ch;
  int i=lo,j=hi;
  while(i<j){
    do{
      i++;
      ch=(float)(*H)[i].idf;
    }while(ch>=pivot && (i<(j-1)));
    do{
       j--;
       ch=(float)(*H)[j].idf;
    }while(ch<pivot);
    if(i<j) (*H)=LHashSwap(*H,i,j);
  }
  (*H)=LHashSwap(*H,lo,j);
  return j;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %esi, %rax
leaq (%rax,%rax,4), %rcx
cmpl %edx, %eax
jge 0x512f
movq (%rdi), %rax
cvtsd2ss 0x8(%rax,%rcx,8), %xmm0
movq (%rdi), %rax
leal -0x1(%rdx), %r8d
movslq %esi, %rsi
movslq %r8d, %r9
leaq (%rsi,%rsi,4), %r8
leaq (%rax,%r8,8), %r8
xorps %xmm1, %xmm1
cvtsd2ss 0x30(%r8), %xmm1
incq %rsi
addq $0x28, %r8
ucomiss %xmm0, %xmm1
jb 0x50cb
cmpq %r9, %rsi
jl 0x50b1
movslq %edx, %rdx
leaq (%rdx,%rdx,4), %r9
leaq (%rax,%r9,8), %r9
addq $0x10, %r9
xorps %xmm1, %xmm1
cvtsd2ss -0x30(%r9), %xmm1
decq %rdx
addq $-0x28, %r9
ucomiss %xmm1, %xmm0
ja 0x50da
cmpq %rdx, %rsi
jge 0x5126
movq (%r8), %r10
movups 0x8(%r8), %xmm1
movq -0x10(%r9), %r11
movq %r11, (%r8)
movsd -0x8(%r9), %xmm2
movsd %xmm2, 0x8(%r8)
movsd (%r9), %xmm2
movsd %xmm2, 0x10(%r8)
movq %r10, -0x10(%r9)
movups %xmm1, -0x8(%r9)
movq %rax, (%rdi)
cmpq %rdx, %rsi
jl 0x509c
movq (%rdi), %rsi
movq (%rsi,%rcx,8), %r8
movups 0x8(%rsi,%rcx,8), %xmm0
movslq %edx, %rax
leaq (%rax,%rax,4), %rdx
movq (%rsi,%rdx,8), %r9
movq %r9, (%rsi,%rcx,8)
movsd 0x8(%rsi,%rdx,8), %xmm1
movsd %xmm1, 0x8(%rsi,%rcx,8)
movsd 0x10(%rsi,%rdx,8), %xmm1
movsd %xmm1, 0x10(%rsi,%rcx,8)
movq %r8, (%rsi,%rdx,8)
movups %xmm0, 0x8(%rsi,%rdx,8)
movq %rsi, (%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: LHashSwap
LHash* LHashSwap(LHash* H,int i,int j){ //Metathesh twn thesewn i kai j sto Hash
  char* tw;
  double ti,tic;

  tw=H[i].word;
  ti=H[i].idf;
  tic=H[i].tfcount;

  H[i].word=H[j].word;
  H[i].idf=H[j].idf;
  H[i].tfcount=H[j].tfcount;

  H[j].word=tw;
  H[j].idf=ti;
  H[j].tfcount=tic;
  return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
movslq %esi, %rcx
leaq (%rcx,%rcx,4), %rcx
movq (%rdi,%rcx,8), %rsi
movups 0x8(%rdi,%rcx,8), %xmm0
movslq %edx, %rdx
leaq (%rdx,%rdx,4), %rdx
movq (%rdi,%rdx,8), %rdi
movq %rdi, (%rax,%rcx,8)
movsd 0x8(%rax,%rdx,8), %xmm1
movsd %xmm1, 0x8(%rax,%rcx,8)
movsd 0x10(%rax,%rdx,8), %xmm1
movsd %xmm1, 0x10(%rax,%rcx,8)
movq %rsi, (%rax,%rdx,8)
movups %xmm0, 0x8(%rax,%rdx,8)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/hash.c
// Function: LHashIncreaseTf
LHash* LHashIncreaseTf(LHash* H,char* word,double tf){
  int index,j=0;

  while(1){
    if(!j){
      index=hash1(word,H->size);
      j=1;
    }else{
      index++;
      if(index>=H->size) index-=H->size;
    }
    if(H[index].word==NULL){
      break;
    }else if(!strcmp(H[index].word,word)){
      H[index].tfcount=H[index].tfcount+tf;
      break;
    }
  }
  return H;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movsd %xmm0, -0x30(%rbp)
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1(%rsi), %r15
movb $0x1, %cl
testb $0x1, %cl
je 0x5205
movb (%r14), %dl
testb %dl, %dl
je 0x521b
movl $0x1505, %esi           # imm = 0x1505
movq %r15, %rcx
movl %esi, %eax
movsbl %dl, %edx
shll $0x5, %eax
addl %esi, %eax
addl %edx, %eax
movb (%rcx), %dl
incq %rcx
movl %eax, %esi
testb %dl, %dl
jne 0x51ee
jmp 0x5220
incl %r13d
movl 0x18(%rbx), %eax
cmpl %eax, %r13d
movl $0x0, %ecx
cmovll %ecx, %eax
subl %eax, %r13d
jmp 0x522e
movl $0x1505, %eax           # imm = 0x1505
cltd
idivl 0x18(%rbx)
movl %edx, %r13d
negl %r13d
cmovsl %edx, %r13d
movslq %r13d, %rax
leaq (%rax,%rax,4), %r12
movq (%rbx,%r12,8), %rdi
testq %rdi, %rdi
je 0x525f
movq %r14, %rsi
callq 0x1140
xorl %ecx, %ecx
testl %eax, %eax
jne 0x51d8
leaq (%rbx,%r12,8), %rax
movsd -0x30(%rbp), %xmm0
addsd 0x10(%rax), %xmm0
movsd %xmm0, 0x10(%rax)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/JobSheduler.c
// Function: JobCreate
Job* JobCreate(tfunc func,void* arg){//Dimiourgei ena neo JOb
    Job* job;

    if(func==NULL) return NULL;

    job=(Job*)malloc(sizeof(Job));  //Desmefsth tou xwrou
    job->func=func; //Anathesi ths routinas
    job->arg=arg; //Anathesi tou input
    job->Next=NULL;
    return job;
}

// Assembly:
testq %rdi, %rdi
je 0x5464
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x18, %edi
callq 0x11a0
movq %r14, (%rax)
movq %rbx, 0x8(%rax)
movq $0x0, 0x10(%rax)
popq %rbx
popq %r14
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/JobSheduler.c
// Function: JSGetWork
Job* JSGetWork(JobSheduler* Sheduler){  //Epistrefi to pio palio Job
  Job* job;

  job=Sheduler->First;
  if(job==NULL) return NULL;

  if(job->Next==NULL){  //Ean einai to telefteo job ths ouras
    Sheduler->First=NULL;
    Sheduler->Last=NULL;
  }else{  //Ean iparxoun kai alla job h oura dixnei ws prwto to epomeno
    Sheduler->First=job->Next;
  }
  return job;
}

// Assembly:
movq (%rdi), %rax
testq %rax, %rax
je 0x5492
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x5495
movq %rcx, (%rdi)
jmp 0x549b
xorl %eax, %eax
retq
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/JobSheduler.c
// Function: JSInit
JobSheduler* JSInit(int tnum){  //Dimiourgei ena Sheduler me tnum nimata
    JobSheduler* Sheduler;

    Sheduler=(JobSheduler*)malloc(sizeof(JobSheduler));
    Sheduler->threads=(pthread_t*)malloc(tnum*sizeof(pthread_t));
    Sheduler->threadsnum=tnum;
    Sheduler->num=tnum;
    Sheduler->threadswork=0;
    Sheduler->working=1;
    Sheduler->First=NULL;
    Sheduler->Last=NULL;

    pthread_mutex_init(&(Sheduler->lock), NULL);
    pthread_cond_init(&(Sheduler->notify), NULL);
    pthread_cond_init(&(Sheduler->thworking), NULL);

    for(int i=0 ; i<Sheduler->threadsnum ; i++){  //Kathe nima trexei thn sinartisi Worker
      pthread_create(&(Sheduler->threads[i]),NULL,Worker,(void*)Sheduler);
      pthread_detach(Sheduler->threads[i]);
    }
    return Sheduler;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edi, %r14d
movl $0xb0, %edi
callq 0x11a0
movq %rax, %rbx
movslq %r14d, %r14
leaq (,%r14,8), %rdi
callq 0x11a0
movq %rax, 0x10(%rbx)
movl %r14d, 0xa0(%rbx)
movl %r14d, 0xa8(%rbx)
movl $0x0, 0xa4(%rbx)
movl $0x1, 0xac(%rbx)
leaq 0x18(%rbx), %rdi
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
xorl %esi, %esi
callq 0x1280
leaq 0x40(%rbx), %rdi
xorl %esi, %esi
callq 0x1170
leaq 0x70(%rbx), %rdi
xorl %esi, %esi
callq 0x1170
cmpl $0x0, 0xa0(%rbx)
jle 0x555f
xorl %r15d, %r15d
leaq 0x43(%rip), %r14        # 0x556b
xorl %r12d, %r12d
movq 0x10(%rbx), %rdi
addq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x11d0
movq 0x10(%rbx), %rax
movq (%rax,%r15), %rdi
callq 0x11b0
incq %r12
movslq 0xa0(%rbx), %rax
addq $0x8, %r15
cmpq %rax, %r12
jl 0x552b
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/JobSheduler.c
// Function: Worker
void* Worker(void* arg){ //I sinarthsh pou trexei kathe nima kai mesw afths ektelite to kathe diathesimo Job
  JobSheduler* Sheduler=(void*)arg;
  Job* job;

  while (1) {
    pthread_mutex_lock(&(Sheduler->lock)); //Klidoma tou mutex
    while (Sheduler->First == NULL && Sheduler->working)  //Oso den iparxei kapio job perimene
      pthread_cond_wait(&(Sheduler->notify), &(Sheduler->lock));

    if(Sheduler->working==0) break; //An termatistike h litourgia tou Sheduler vgenei ap thn while

    job=JSGetWork(Sheduler); //Fere thn teleftea doulia ap thn oura
    Sheduler->threadswork++;
    pthread_mutex_unlock(&(Sheduler->lock));

    if(job != NULL) { //Ektelite to job kai meta katastrefete
      job->func(job->arg);
      JobDestroy(job);
    }

    pthread_mutex_lock(&(Sheduler->lock));
    Sheduler->threadswork--;
    if ((Sheduler->threadswork==0) && (Sheduler->First==NULL) && (Sheduler->working==1)) //Ean den iparxei kapio job den trexei kanena nima enhmerwse
          pthread_cond_signal(&(Sheduler->thworking));
    pthread_mutex_unlock(&(Sheduler->lock));
  }

  Sheduler->threadsnum--; //Miosi tou arithmu twn nhmatwn pou einai diathesima
  pthread_cond_signal(&(Sheduler->thworking));
  pthread_mutex_unlock(&(Sheduler->lock));
  return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x18(%rdi), %rbx
leaq 0x40(%rdi), %r12
leaq 0x70(%rdi), %r15
movq %rbx, %rdi
callq 0x1290
movq (%r14), %r13
testq %r13, %r13
sete %al
jne 0x55b2
cmpl $0x0, 0xac(%r14)
je 0x55b2
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1090
jmp 0x5590
cmpl $0x0, 0xac(%r14)
je 0x5634
testb %al, %al
je 0x55c5
xorl %r13d, %r13d
jmp 0x55da
movq 0x10(%r13), %rax
testq %rax, %rax
je 0x55d3
movq %rax, (%r14)
jmp 0x55da
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
incl 0xa4(%r14)
movq %rbx, %rdi
callq 0x1190
testq %r13, %r13
je 0x55fe
movq 0x8(%r13), %rdi
callq *(%r13)
movq %r13, %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1290
decl 0xa4(%r14)
jne 0x5627
cmpq $0x0, (%r14)
jne 0x5627
cmpl $0x1, 0xac(%r14)
jne 0x5627
movq %r15, %rdi
callq 0x1130
movq %rbx, %rdi
callq 0x1190
jmp 0x5588
decl 0xa0(%r14)
movq %r15, %rdi
callq 0x1130
movq %rbx, %rdi
callq 0x1190
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/JobSheduler.c
// Function: JSAddWork
void JSAddWork(JobSheduler* Sheduler,Job* job){ //Eisagi ena neo Job sthn oura

  pthread_mutex_lock(&(Sheduler->lock));  //Klidoma tou mutex
   if(Sheduler->First == NULL){ //Ean den iparxei kapio job
       Sheduler->First = job;
       Sheduler->Last = job;
   }else{ //Ean iparxei idi kapio job sthn oura
      Sheduler->Last->Next = job;
      Sheduler->Last=job;
   }

   pthread_cond_broadcast(&(Sheduler->notify)); //Idopeiei ta nimata oti iparxei kapio neo job sthn oura
   pthread_mutex_unlock(&(Sheduler->lock)); //Klidoma tou mutex

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
leaq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0x1290
cmpq $0x0, (%r14)
je 0x5688
movq 0x8(%r14), %rax
movq %r15, 0x10(%rax)
jmp 0x568b
movq %r15, (%r14)
movq %r15, 0x8(%r14)
addq $0x40, %r14
movq %r14, %rdi
callq 0x1070
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1190
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/JobSheduler.c
// Function: JSWaitalltasks
void JSWaitalltasks(JobSheduler* Sheduler){ //Perimenei na teliosoun ola ta nimata

  pthread_mutex_lock(&(Sheduler->lock));
  while(1){
    if ( ((Sheduler->working==0) && (Sheduler->threadsnum!=0)) || ( ((Sheduler->threadswork!=0) && (Sheduler->working!=0) ) || (Sheduler->First!=NULL) ) ){ //Oso iparxoun nimata pou litourgoun
      pthread_cond_wait(&(Sheduler->thworking), &(Sheduler->lock)); //Perimene mexri na teliosi to nima
    }else{
      break;
    }
  }
  pthread_mutex_unlock(&(Sheduler->lock));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0x1290
leaq 0x70(%r14), %r15
movl 0xac(%r14), %eax
testl %eax, %eax
je 0x56eb
testl %eax, %eax
je 0x56e3
cmpl $0x0, 0xa4(%r14)
jne 0x56f5
cmpq $0x0, (%r14)
jne 0x56f5
jmp 0x5702
cmpl $0x0, 0xa0(%r14)
je 0x56d5
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1090
jmp 0x56ca
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1190
// File: /workspace/github_c_makefile_star2_O1/DVaronos[P]AnLogProject1/JobSheduler.c
// Function: JSDestroy
void JSDestroy(JobSheduler* Sheduler){  //Katastrofh tou Sheduler

    Job* job;
    Job* tmpjob;

    pthread_mutex_lock(&(Sheduler->lock));
    job=Sheduler->First;
    while(job != NULL) {  //Katastrofh twn Job pou perimenoun sthn oura
        tmpjob=job->Next;
        JobDestroy(job);
        job=tmpjob;
    }
    Sheduler->working=0;  //Thetoume thn metavlhth workink 0 ara den dexonte alles doulies ta nimata
    pthread_cond_broadcast(&(Sheduler->notify));
    pthread_mutex_unlock(&(Sheduler->lock));

    JSWaitalltasks(Sheduler); //Perimenoume ta nimata pou litourgoun na teleiwsoun


    pthread_mutex_destroy(&(Sheduler->lock));
    pthread_cond_destroy(&(Sheduler->notify));
    pthread_cond_destroy(&(Sheduler->thworking));

    //Apodesmefsh tou Sheduler
    free(Sheduler->threads);
    free(Sheduler);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x18(%rdi), %r14
movq %r14, %rdi
callq 0x1290
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x5746
movq 0x10(%rdi), %r15
callq 0x1030
movq %r15, %rdi
testq %r15, %r15
jne 0x5735
movl $0x0, 0xac(%rbx)
leaq 0x40(%rbx), %r15
movq %r15, %rdi
callq 0x1070
movq %r14, %rdi
callq 0x1190
movq %rbx, %rdi
callq 0x56ad
movq %r14, %rdi
callq 0x10e0
movq %r15, %rdi
callq 0x11e0
leaq 0x70(%rbx), %rdi
callq 0x11e0
movq 0x10(%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O1/dwbuiten[P]obuparse/obuparse.c
// Function: obp_br_unchecked
static inline uint64_t _obp_br_unchecked(_OBPBitReader *br, uint8_t n)
{
    assert(n <= 63);

    while (n > br->bits_in_buf) {
        br->bit_buffer <<= 8;
        br->bit_buffer  |= (uint64_t) br->buf[br->buf_pos];
        br->bits_in_buf += 8;
        br->buf_pos++;

        if (br->bits_in_buf > 56) {
            if (n <= br->bits_in_buf)
                break;

            if (n <= 64)
                return (_obp_br_unchecked(br, 32) << 32) | (_obp_br_unchecked(br, n - 32));
        }
    }

    br->bits_in_buf -= n;
    return (br->bit_buffer >> br->bits_in_buf) & ((((uint64_t)1) << n) - 1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
xorl %r15d, %r15d
cmpb $0x3f, %bl
ja 0x2d8f
movb 0x20(%r14), %al
cmpb %bl, %al
jae 0x2d63
movq 0x18(%r14), %rcx
shlq $0x8, %rcx
movq %rcx, 0x18(%r14)
movq (%r14), %rdx
movq 0x10(%r14), %rsi
movzbl (%rdx,%rsi), %edx
orq %rcx, %rdx
movq %rdx, 0x18(%r14)
addb $0x8, %al
movb %al, 0x20(%r14)
incq %rsi
movq %rsi, 0x10(%r14)
cmpb $0x39, %al
jb 0x2d13
cmpb %bl, %al
jae 0x2d63
movq %r14, %rdi
movl $0x20, %esi
callq 0x2cf9
shlq $0x20, %rax
addb $-0x20, %bl
orq %rax, %r15
jmp 0x2d06
movb 0x20(%r14), %cl
subb %bl, %cl
movb %cl, 0x20(%r14)
movq 0x18(%r14), %rdx
shrq %cl, %rdx
movq $-0x1, %rax
movl %ebx, %ecx
shlq %cl, %rax
notq %rax
andq %rdx, %rax
orq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x8704(%rip), %rdi      # 0xb49a
leaq 0x833e(%rip), %rsi      # 0xb0db
leaq 0x86fe(%rip), %rcx      # 0xb4a2
movl $0x2e, %edx
callq 0x1040
// File: /workspace/github_c_makefile_star2_O1/dwbuiten[P]obuparse/obuparse.c
// Function: obp_uvlc
static inline int _obp_uvlc(_OBPBitReader *br, uint32_t *value, OBPError *err)
{
    uint32_t leading_zeroes = 0;
    while (leading_zeroes < 32) {
        int b;
        _obp_br(b, br, 1);
        if (b != 0)
            break;
        leading_zeroes++;
    }
    if (leading_zeroes == 32) {
        snprintf(err->error, err->size, "Invalid VLC.");
        return -1;
    }
    uint32_t val;
    _obp_br(val, br, leading_zeroes);
    *value = val + ((1 << leading_zeroes) - 1);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, (%rsp)
movq %rdi, %r15
xorl %ebp, %ebp
cmpl $0x1f, %ebp
ja 0x2e3c
movzbl 0x20(%r15), %eax
movl $0x8, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %r12
movq 0x8(%r15), %rbx
subq 0x10(%r15), %rbx
cmpq %r12, %rbx
jb 0x2dfb
movq %r15, %rdi
movl $0x1, %esi
callq 0x2cf9
movq %rax, %r13
jmp 0x2e10
movq (%r14), %rdi
movq 0x8(%r14), %rsi
leaq 0x8374(%rip), %rdx      # 0xb17d
xorl %eax, %eax
callq 0x1030
xorl %eax, %eax
testl %r13d, %r13d
sete %cl
setne %al
cmpq %r12, %rbx
setae %dl
leal (%rax,%rax,2), %eax
movl $0x1, %esi
cmovbl %esi, %eax
andb %cl, %dl
movzbl %dl, %ecx
addl %ecx, %ebp
testl %eax, %eax
je 0x2dc5
cmpl $0x3, %eax
jne 0x2e56
cmpl $0x20, %ebp
jne 0x2e5d
movq (%r14), %rdi
movq 0x8(%r14), %rsi
leaq 0x8688(%rip), %rdx      # 0xb4d7
xorl %eax, %eax
callq 0x1030
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
jmp 0x2ebb
movzbl 0x20(%r15), %eax
movl %ebp, %ebx
subl %eax, %ebx
addl $0x7, %ebx
shrl $0x3, %ebx
movq 0x8(%r15), %r12
subq 0x10(%r15), %r12
cmpq %rbx, %r12
jae 0x2e90
movq (%r14), %rdi
movq 0x8(%r14), %rsi
leaq 0x82f6(%rip), %rdx      # 0xb17d
xorl %eax, %eax
callq 0x1030
jmp 0x2e9c
movzbl %bpl, %esi
movq %r15, %rdi
callq 0x2cf9
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rbx, %r12
jb 0x2ebb
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %ebp, %ecx
shll %cl, %edx
notl %edx
addl %edx, %eax
movq (%rsp), %rcx
movl %eax, (%rcx)
xorl %ecx, %ecx
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/dwbuiten[P]obuparse/obuparse.c
// Function: obp_parse_frame
int obp_parse_frame(uint8_t *buf, size_t buf_size, OBPSequenceHeader *seq, OBPState *state,
                    int temporal_id, int spatial_id, OBPFrameHeader *fh, OBPTileGroup *tile_group,
                    int *SeenFrameHeader, OBPError *err)
{
    size_t startBitPos = 0, endBitPos, headerBytes;
    int ret = obp_parse_frame_header(buf, buf_size, seq, state, temporal_id, spatial_id, fh, SeenFrameHeader, err);
    if (ret < 0) {
        return -1;
    }
    endBitPos   = state->frame_header_end_pos;
    headerBytes = (endBitPos - startBitPos) / 8;
    return obp_parse_tile_group(buf + headerBytes, buf_size - headerBytes, fh, tile_group, SeenFrameHeader, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rsi, %r15
movq %rdi, %r13
movq 0x58(%rsp), %rbx
movq 0x50(%rsp), %r14
movq 0x48(%rsp), %rax
movq %rax, (%rsp)
movq 0x40(%rsp), %rbp
subq $0x8, %rsp
pushq %rbx
pushq %r14
pushq %rbp
callq 0x1070
addq $0x20, %rsp
testl %eax, %eax
js 0x4550
movq 0x460(%r12), %rax
shrq $0x3, %rax
addq %rax, %r13
subq %rax, %r15
movq %r13, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq (%rsp), %rcx
movq %r14, %r8
movq %rbx, %r9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1080
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/dwbuiten[P]obuparse/obuparse.c
// Function: obp_ns
static inline int _obp_ns(_OBPBitReader *br, uint32_t n, uint32_t *out, OBPError *err)
{
    uint32_t w = _obp_floor_log2(n) + 1;
    uint32_t m = (((uint32_t)1) << w) - n;
    uint32_t v;
    uint32_t extra_bit;

    assert(w - 1 <= 32);
    _obp_br(v, br, ((uint8_t)(w - 1)));
    if (v < m) {
        *out = v;
        return 0;
    }
    _obp_br(extra_bit, br, 1);
    *out = (v << 1) - m + extra_bit;
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r8
movl %esi, %ebp
movq %rdi, %r15
shrl %esi
movl $0x20, %ecx
movl $0x20, %eax
je 0x9d60
bsrl %esi, %eax
xorl $0x1f, %eax
subl %eax, %ecx
xorl %eax, %eax
cmpl $0x1, %ebp
sbbl %eax, %eax
orl %ecx, %eax
leal 0x1(%rax), %ecx
movl $0x1, %ebx
shll %cl, %ebx
cmpl $0x21, %eax
jae 0x9e52
movzbl 0x20(%r15), %ecx
movl %eax, %esi
subl %ecx, %esi
addl $0x7, %esi
sarl $0x3, %esi
movslq %esi, %r14
movq 0x8(%r15), %r12
subq 0x10(%r15), %r12
cmpq %r14, %r12
movq %rdx, 0x10(%rsp)
movq %r8, 0x8(%rsp)
jae 0x9dbe
movq (%r8), %rdi
movq 0x8(%r8), %rsi
leaq 0x13c8(%rip), %rdx      # 0xb17d
xorl %eax, %eax
callq 0x1030
jmp 0x9dcc
movzbl %al, %esi
movq %r15, %rdi
callq 0x2cf9
movq %rax, %rcx
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
cmpq %r14, %r12
jb 0x9e40
subl %ebp, %ebx
cmpl %ebx, %ecx
jb 0x9e36
movq %rcx, %rbp
movzbl 0x20(%r15), %eax
movl $0x8, %ecx
subl %eax, %ecx
sarl $0x3, %ecx
movslq %ecx, %r14
movq 0x8(%r15), %r12
subq 0x10(%r15), %r12
cmpq %r14, %r12
jae 0x9e1b
movq 0x8(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
leaq 0x136b(%rip), %rdx      # 0xb17d
xorl %eax, %eax
callq 0x1030
jmp 0x9e28
movq %r15, %rdi
movl $0x1, %esi
callq 0x2cf9
cmpq %r14, %r12
jb 0x9e40
movq %rbp, %rcx
addl %ecx, %ecx
subl %ebx, %ecx
addl %eax, %ecx
movq 0x10(%rsp), %rax
movl %ecx, (%rax)
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x16d9(%rip), %rdi      # 0xb532
leaq 0x127b(%rip), %rsi      # 0xb0db
leaq 0x16d7(%rip), %rcx      # 0xb53e
movl $0xc2, %edx
callq 0x1040