LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_typelist
void dxb_typelist(ByteStream* bs, DexTypeList* obj) {
  unsigned int i;

  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  bswrite(bs,(uint8_t*) &(obj->size),sizeof(uint32_t));

  for (i=0; i<obj->size; i++)
    dxb_typeitem(bs,obj->list[i]);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x5275
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
movl $0x4, %edx
callq 0x4570
cmpl $0x0, 0x8(%rbx)
je 0x5270
xorl %r15d, %r15d
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x4540
incq %r15
movl 0x8(%rbx), %eax
cmpq %rax, %r15
jb 0x5255
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_encodedcatchhandler
void dxb_encodedcatchhandler(ByteStream* bs, DexEncodedCatchHandler* obj) {
  int i;

  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  l128write(bs,&(obj->size));

  for (i=0; i<abs(sl128toi(obj->size)); i++)
    dxb_encodedtypeaddrpair(bs,obj->handlers[i]);

  if (sl128toi(obj->size) <= 0) 
    l128write(bs,&(obj->catch_all_addr));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x5376
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4470
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x44e0
testl %eax, %eax
je 0x5366
xorl %r15d, %r15d
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x4340
incq %r15
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x44e0
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
cmpq %rcx, %r15
jb 0x533b
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x44e0
testl %eax, %eax
jle 0x537c
popq %rbx
popq %r14
popq %r15
retq
addq $0x20, %rbx
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x4470
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_encodedcatchhandlerlist
void dxb_encodedcatchhandlerlist(ByteStream* bs, DexEncodedCatchHandlerList* obj) {
  unsigned int i;

  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  l128write(bs,&(obj->size));

  for (i=0; i<ul128toui(obj->size); i++)
    dxb_encodedcatchhandler(bs,obj->list[i]);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x53fd
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4470
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x53f8
xorl %r15d, %r15d
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x4400
incq %r15
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
movl %eax, %eax
cmpq %rax, %r15
jb 0x53d2
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_codeitem
void dxb_codeitem(ByteStream* bs, DexCodeItem* obj) {
  unsigned int i;

  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  bswrite(bs,(uint8_t*) &(obj->registers_size),sizeof(uint16_t));
  bswrite(bs,(uint8_t*) &(obj->ins_size),sizeof(uint16_t));
  bswrite(bs,(uint8_t*) &(obj->outs_size),sizeof(uint16_t));
  bswrite(bs,(uint8_t*) &(obj->tries_size),sizeof(uint16_t));
  bswrite(bs,(uint8_t*) &(obj->debug_info_off),sizeof(uint32_t));
  bswrite(bs,(uint8_t*) &(obj->insns_size),sizeof(uint32_t));

  for (i=0; i<obj->insns_size; i++)
    bswrite(bs,(uint8_t*) &(obj->insns[i]),sizeof(uint16_t));

  if (obj->tries_size > 0) {
    if (obj->insns_size % 2 != 0)
      bswrite(bs,(uint8_t*) &(obj->padding),sizeof(uint16_t));

    for (i=0; i<obj->tries_size; i++)
     dxb_tryitem(bs,obj->tries[i]);

    dxb_encodedcatchhandlerlist(bs,obj->handlers);    
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x551c
movq %rsi, %r14
movq %rdi, %rbx
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%r14), %rsi
movq %rbx, %rdi
movl $0x2, %edx
callq 0x4570
leaq 0xa(%r14), %rsi
movq %rbx, %rdi
movl $0x2, %edx
callq 0x4570
leaq 0xc(%r14), %rsi
movq %rbx, %rdi
movl $0x2, %edx
callq 0x4570
leaq 0xe(%r14), %r15
movq %rbx, %rdi
movq %r15, %rsi
movl $0x2, %edx
callq 0x4570
leaq 0x10(%r14), %rsi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x4570
leaq 0x14(%r14), %rsi
movq %rbx, %rdi
movl $0x4, %edx
callq 0x4570
movl 0x14(%r14), %eax
testl %eax, %eax
je 0x54c4
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x18(%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
movl $0x2, %edx
callq 0x4570
incq %r13
movl 0x14(%r14), %eax
addq $0x2, %r12
cmpq %rax, %r13
jb 0x54a0
cmpw $0x0, (%r15)
je 0x551c
testb $0x1, %al
je 0x54e0
leaq 0x20(%r14), %rsi
movq %rbx, %rdi
movl $0x2, %edx
callq 0x4570
cmpw $0x0, (%r15)
je 0x5507
xorl %r15d, %r15d
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x4770
incq %r15
movzwl 0xe(%r14), %eax
cmpq %rax, %r15
jb 0x54ea
movq 0x30(%r14), %rsi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x4820
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_debuginfo
void dxb_debuginfo(ByteStream* bs, DexDebugInfo* obj) {
  unsigned int i;

  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  l128write(bs,&(obj->line_start));
  l128write(bs,&(obj->parameters_size));

  for (i=0; i<ul128toui(obj->parameters_size); i++)
    l128write(bs,&(obj->parameter_names[i]));

  dxb_debug_state_machine(bs,obj->state_machine);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x55cb
movq %rsi, %r14
movq %rdi, %rbx
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x4470
leaq 0x14(%r14), %rsi
movq %rbx, %rdi
callq 0x4470
movq 0x14(%r14), %rdi
movl 0x1c(%r14), %esi
callq 0x4170
testl %eax, %eax
je 0x55a9
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x20(%r14), %rsi
addq %r15, %rsi
movq %rbx, %rdi
callq 0x4470
incq %r12
movq 0x14(%r14), %rdi
movl 0x1c(%r14), %esi
callq 0x4170
movl %eax, %eax
addq $0xc, %r15
cmpq %rax, %r12
jb 0x557f
movq 0x28(%r14), %rsi
testq %rsi, %rsi
je 0x55cb
movl (%rsi), %edx
addq $0x4, %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x4570
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_maplist
void dxb_maplist(ByteStream* bs, DexMapList* obj) {
  unsigned int i;

  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  bswrite(bs,(uint8_t*)&(obj->size),sizeof(uint32_t));

  for (i=0; i<obj->size; i++)
    dxb_mapitem(bs,obj->list[i]);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x568e
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
movl $0x4, %edx
callq 0x4570
cmpl $0x0, 0x8(%rbx)
je 0x5689
xorl %r15d, %r15d
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x4640
incq %r15
movl 0x8(%rbx), %eax
cmpq %rax, %r15
jb 0x566e
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_encodedvalue
void dxb_encodedvalue(ByteStream* bs, DexEncodedValue* obj) {
  int i;

  uint8_t value_type;
  uint8_t value_arg;

  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  bswrite(bs,(uint8_t*)&(obj->argtype),sizeof(uint8_t));

  value_type = (obj->argtype & 0x1f);
  value_arg  = ((obj->argtype >> 5) & 0x7);
	       
  switch (value_type) {
  case 0x00:
    bswrite(bs,(uint8_t*) obj->value,sizeof(uint8_t));
    break;
  case 0x02:
  case 0x03:
  case 0x04:
  case 0x06:
  case 0x10:
  case 0x11:
  case 0x17:
  case 0x18:
  case 0x19:
  case 0x1a:
  case 0x1b:
    for (i=0; i<value_arg+1; i++)
      bswrite(bs,(uint8_t*) &(obj->value[i]),sizeof(uint8_t));   

    break;
  case 0x1c:
    dxb_encodedarray(bs,(DexEncodedArray*) obj->value);
    break;
  case 0x1d:
    dxb_encodedannotation(bs,(DexEncodedAnnotation*)obj->value);
    break;
  case 0x1e:
  case 0x1f:
    break;
  default:
    break;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x570c
movq %rsi, %r14
movq %rdi, %rbx
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x4570
movzbl 0x8(%r14), %r15d
movl %r15d, %eax
andl $0x1f, %eax
cmpl $0x1d, %eax
ja 0x570c
leaq 0x49e7(%rip), %rcx      # 0xa0c4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
shrl $0x5, %r15d
incq %r15
xorl %r12d, %r12d
movq 0x10(%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x4570
incq %r12
cmpq %r12, %r15
jne 0x56f0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x10(%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x4570
movq 0x10(%r14), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x4810
movq 0x10(%r14), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x4780
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_encodedarray
void dxb_encodedarray(ByteStream* bs, DexEncodedArray* obj) {
  unsigned int i;

  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  l128write(bs,&(obj->size));

  for (i=0; i<ul128toui(obj->size); i++)
    dxb_encodedvalue(bs,obj->values[i]);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x57cf
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4470
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x57ca
xorl %r15d, %r15d
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x4830
incq %r15
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
movl %eax, %eax
cmpq %rax, %r15
jb 0x57a4
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_encodedannotation
void dxb_encodedannotation(ByteStream* bs, DexEncodedAnnotation* obj) {
  unsigned int i;

  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  l128write(bs,&(obj->type_idx));
  l128write(bs,&(obj->size));

  for (i=0; i<ul128toui(obj->size); i++)
    dxb_annotationelement(bs,obj->elements[i]);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x5849
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4470
leaq 0x14(%rbx), %rsi
movq %r14, %rdi
callq 0x4470
movq 0x14(%rbx), %rdi
movl 0x1c(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x5844
xorl %r15d, %r15d
movq 0x20(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x43b0
incq %r15
movq 0x14(%rbx), %rdi
movl 0x1c(%rbx), %esi
callq 0x4170
movl %eax, %eax
cmpq %rax, %r15
jb 0x581e
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_annotationelement
void dxb_annotationelement(ByteStream* bs, DexAnnotationElement* obj) {
  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  l128write(bs,&(obj->name_idx));

  dxb_encodedvalue(bs,obj->value);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
je 0x585b
retq
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x4470
movq 0x18(%r14), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4830
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_annotationdirectoryitem
void dxb_annotationdirectoryitem(ByteStream* bs, DexAnnotationDirectoryItem* obj) {
  unsigned int i;

  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  bswrite(bs,(uint8_t*) &(obj->class_annotations_off),sizeof(uint32_t));
  bswrite(bs,(uint8_t*) &(obj->fields_size),sizeof(uint32_t));
  bswrite(bs,(uint8_t*) &(obj->annotated_methods_size),sizeof(uint32_t));
  bswrite(bs,(uint8_t*) &(obj->annotated_parameters_size),sizeof(uint32_t));

  for (i=0; i<obj->fields_size; i++)
    dxb_fieldannotation(bs,obj->field_annotations[i]);

  for (i=0; i<obj->annotated_methods_size; i++)
    dxb_methodannotation(bs,obj->method_annotations[i]);
  
  for (i=0; i<obj->annotated_parameters_size; i++)
    dxb_parameterannotation(bs,obj->parameter_annotations[i]);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x5a31
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
movl $0x4, %edx
callq 0x4570
leaq 0xc(%rbx), %rsi
movq %r14, %rdi
movl $0x4, %edx
callq 0x4570
leaq 0x10(%rbx), %r12
movq %r14, %rdi
movq %r12, %rsi
movl $0x4, %edx
callq 0x4570
leaq 0x14(%rbx), %r15
movq %r14, %rdi
movq %r15, %rsi
movl $0x4, %edx
callq 0x4570
cmpl $0x0, 0xc(%rbx)
je 0x59df
xorl %r13d, %r13d
movq 0x18(%rbx), %rax
movq (%rax,%r13,8), %rsi
movq %r14, %rdi
callq 0x4790
incq %r13
movl 0xc(%rbx), %eax
cmpq %rax, %r13
jb 0x59c4
cmpl $0x0, (%r12)
je 0x5a04
xorl %r12d, %r12d
movq 0x20(%rbx), %rax
movq (%rax,%r12,8), %rsi
movq %r14, %rdi
callq 0x4390
incq %r12
movl 0x10(%rbx), %eax
cmpq %rax, %r12
jb 0x59e9
cmpl $0x0, (%r15)
je 0x5a28
xorl %r15d, %r15d
movq 0x28(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x4560
incq %r15
movl 0x14(%rbx), %eax
cmpq %rax, %r15
jb 0x5a0d
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_annotationsetreflist
void dxb_annotationsetreflist(ByteStream* bs, DexAnnotationSetRefList* obj) {
  unsigned int i;

  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  bswrite(bs,(uint8_t*) &(obj->size),sizeof(uint32_t));

  for (i=0; i<obj->size; i++)
    dxb_annotationsetrefitem(bs,obj->list[i]);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x5acd
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
movl $0x4, %edx
callq 0x4570
cmpl $0x0, 0x8(%rbx)
je 0x5ac8
xorl %r15d, %r15d
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x4650
incq %r15
movl 0x8(%rbx), %eax
cmpq %rax, %r15
jb 0x5aad
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_annotationsetitem
void dxb_annotationsetitem(ByteStream* bs, DexAnnotationSetItem* obj) {
  unsigned int i;

  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  bswrite(bs,(uint8_t*) &(obj->size),sizeof(uint32_t));

  for (i=0; i<obj->size; i++)
    dxb_annotationoffitem(bs,obj->entries[i]);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x5b69
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
movl $0x4, %edx
callq 0x4570
cmpl $0x0, 0x8(%rbx)
je 0x5b64
xorl %r15d, %r15d
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x4190
incq %r15
movl 0x8(%rbx), %eax
cmpq %rax, %r15
jb 0x5b49
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_builder.c
// Function: dxb_annotationitem
void dxb_annotationitem(ByteStream* bs, DexAnnotationItem* obj) {
  if (bs == NULL || obj == NULL) return;

  bsseek(bs,obj->meta.offset);

  bswrite(bs,(uint8_t*) &(obj->visibility),sizeof(uint8_t));

  dxb_encodedannotation(bs,obj->annotation);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
je 0x5b7b
retq
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl 0x4(%rsi), %esi
callq 0x4410
leaq 0x8(%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x4570
movq 0x10(%r14), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4810
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dxread
int dxread(ByteStream* bs, uint8_t* buf, size_t size) {
  Metadata* meta = (Metadata*) buf;
  uint8_t* ptr = buf += sizeof(Metadata);
  size_t data_size = size - sizeof(Metadata);
  unsigned int ret;

  meta->offset = bs->offset;
  ret =  bsread(bs,ptr,data_size);
  meta->corrupted = (ret != data_size);

  return ret;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
addq $0x8, %rsi
addq $-0x8, %rbx
movl 0x18(%rdi), %eax
movl %eax, 0x4(%r14)
movq %rbx, %rdx
callq 0x4420
movl %eax, %ecx
cmpq %rcx, %rbx
setne (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_stringdata
DexStringDataItem* dx_stringdata(ByteStream* bs, uint32_t offset) {
  DexStringDataItem* res;
  int check;
  uint8_t* tape;

  if (bs == NULL) return NULL;

  DX_ALLOC(DexStringDataItem,res);

  bsseek(bs,offset);

  check = l128read(bs,&(res->size));

  if (check || bs->exhausted) {
    res->meta.corrupted = true;
    return res;
  }

  DX_ALLOC_LIST(uint8_t,res->data,ul128toui(res->size)*3+1);

  tape = (uint8_t*) res->data;

  bsread(bs,tape,sizeof(uint8_t));
  
  while(*tape) {
    if ((*tape & 0xe0) == 0xc0 ) {
      tape++;
      bsread(bs,tape,sizeof(uint8_t));
    }

    else if ((*tape & 0xf0) == 0xe0) {
      tape++;
      bsread(bs,tape,sizeof(uint8_t)*2);      
      tape++;
    }
        
    tape++;
    bsread(bs,tape,sizeof(uint8_t));
  }
  
  res->meta.corrupted |= bs->exhausted;

  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x6210
movl %esi, %ebp
movq %rdi, %r14
movl $0x20, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x4410
movq %rbx, %rsi
addq $0x8, %rsi
movq %r14, %rdi
callq 0x4750
movb $0x1, %cl
testl %eax, %eax
jne 0x62b6
cmpl $0x0, 0x1c(%r14)
jne 0x62b6
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
cmpl $0x55555555, %eax       # imm = 0x55555555
jne 0x6217
xorl %r15d, %r15d
jmp 0x6230
xorl %ebx, %ebx
jmp 0x62b8
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
leal (%rax,%rax,2), %edi
incl %edi
callq 0x4600
movq %rax, %r15
movq %r15, 0x18(%rbx)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4420
movb (%r15), %al
testb %al, %al
je 0x62ac
movzbl %al, %eax
movl %eax, %ecx
andl $-0x20, %ecx
cmpl $0xc0, %ecx
jne 0x6270
incq %r15
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4420
jmp 0x628f
andl $-0x10, %eax
cmpl $0xe0, %eax
jne 0x628f
leaq 0x1(%r15), %rsi
movl $0x2, %edx
movq %r14, %rdi
callq 0x4420
addq $0x2, %r15
leaq 0x1(%r15), %r12
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x4420
movb 0x1(%r15), %al
movq %r12, %r15
jmp 0x6247
movzbl (%rbx), %eax
orl 0x1c(%r14), %eax
setne %cl
movb %cl, (%rbx)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_encodedfield
DexEncodedFieldItem* dx_encodedfield(ByteStream* bs, uint32_t offset) {
  DexEncodedFieldItem* res;
  int check;

  if (bs == NULL) return NULL;

  DX_ALLOC(DexEncodedFieldItem,res);

  bsseek(bs,offset);

  check  = l128read(bs,&(res->field_idx_diff));
  check |= l128read(bs,&(res->access_flags));

  res->meta.corrupted = check || bs->exhausted;
  
  return res;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x631e
movl %esi, %ebp
movq %rdi, %r14
movl $0x20, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4750
movl %eax, %ebp
movq %rbx, %rsi
addq $0x14, %rsi
movq %r14, %rdi
callq 0x4750
movb $0x1, %cl
orl %ebp, %eax
jne 0x631a
cmpl $0x0, 0x1c(%r14)
setne %cl
movb %cl, (%rbx)
jmp 0x6320
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_encodedmethod
DexEncodedMethodItem* dx_encodedmethod(ByteStream* bs, uint32_t offset) {
  DexEncodedMethodItem* res;
  int check;

  if (bs == NULL) return NULL;

  DX_ALLOC(DexEncodedMethodItem,res);

  bsseek(bs,offset);

  check  = l128read(bs,&(res->method_idx_diff));
  check |= l128read(bs,&(res->access_flags));
  check |= l128read(bs,&(res->code_off));

  res->meta.corrupted = check || bs->exhausted;
  
  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x6398
movl %esi, %ebp
movq %rdi, %r14
movl $0x2c, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4750
movl %eax, %ebp
leaq 0x14(%rbx), %rsi
movq %r14, %rdi
callq 0x4750
movl %eax, %r15d
orl %ebp, %r15d
movq %rbx, %rsi
addq $0x20, %rsi
movq %r14, %rdi
callq 0x4750
movb $0x1, %cl
orl %r15d, %eax
jne 0x6394
cmpl $0x0, 0x1c(%r14)
setne %cl
movb %cl, (%rbx)
jmp 0x639a
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_typelist
DexTypeList* dx_typelist(ByteStream* bs, uint32_t offset) {
  DexTypeList* res;
  int check;
  unsigned int i;

  if (bs == NULL) return NULL;

  DX_ALLOC(DexTypeList,res);

  bsseek(bs,offset);

  check = bsread(bs,(uint8_t*) &(res->size),sizeof(uint32_t));

  res->meta.corrupted = (check != sizeof(uint32_t));
  if (res->meta.corrupted) return res;

  DX_ALLOC_LIST(DexTypeItem*,res->list,res->size);

  for (i=0; i<res->size; i++)
    res->list[i] = dx_typeitem(bs,bs->offset);

  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x66a7
movl %esi, %ebp
movq %rdi, %r14
movl $0x18, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x4410
leaq 0x8(%rbx), %r15
movl $0x4, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4420
cmpl $0x4, %eax
setne (%rbx)
jne 0x66d9
movl (%r15), %edi
testq %rdi, %rdi
je 0x66ab
shlq $0x3, %rdi
callq 0x4600
jmp 0x66ad
xorl %ebx, %ebx
jmp 0x66d9
xorl %eax, %eax
movq %rax, 0x10(%rbx)
cmpl $0x0, 0x8(%rbx)
je 0x66d9
xorl %r15d, %r15d
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x41e0
movq 0x10(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
movl 0x8(%rbx), %eax
cmpq %rax, %r15
jb 0x66ba
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_encodedcatchhandler
DexEncodedCatchHandler* dx_encodedcatchhandler(ByteStream* bs, uint32_t offset) {
  DexEncodedCatchHandler* res;
  int check;
  int i;

  if (bs == NULL) return NULL;

  DX_ALLOC(DexEncodedCatchHandler,res);

  bsseek(bs,offset);

  check  = l128read(bs,&(res->size));

  res->meta.corrupted = check;
  if (res->meta.corrupted) return res;

  DX_ALLOC_LIST(DexEncodedTypeAddrPair*,res->handlers,ul128toui(res->size));

  for (i=0; i<abs(sl128toi(res->size)); i++)
    res->handlers[i] = dx_encodedtypeaddrpair(bs,bs->offset);

  if (sl128toi(res->size) <= 0) 
    check |= l128read(bs,&(res->catch_all_addr));

  res->meta.corrupted = check || bs->exhausted;
  
  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x680e
movl %esi, %ebp
movq %rdi, %r14
movl $0x30, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4750
testl %eax, %eax
setne (%rbx)
jne 0x688b
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x6812
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
movl %eax, %edi
shlq $0x3, %rdi
callq 0x4600
jmp 0x6814
xorl %ebx, %ebx
jmp 0x688b
xorl %eax, %eax
movq %rax, 0x18(%rbx)
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x44e0
testl %eax, %eax
je 0x685a
xorl %r15d, %r15d
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x4480
movq 0x18(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x44e0
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
cmpq %rcx, %r15
jb 0x682b
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x44e0
testl %eax, %eax
jle 0x6874
cmpl $0x0, 0x1c(%r14)
setne %cl
jmp 0x6889
movq %rbx, %rsi
addq $0x20, %rsi
movq %r14, %rdi
callq 0x4750
movb $0x1, %cl
testl %eax, %eax
je 0x686a
movb %cl, (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_encodedcatchhandlerlist
DexEncodedCatchHandlerList* dx_encodedcatchhandlerlist(ByteStream* bs, uint32_t offset) {
  DexEncodedCatchHandlerList* res;
  int check;
  unsigned int i;

  if (bs == NULL) return NULL;

  DX_ALLOC(DexEncodedCatchHandlerList,res);

  bsseek(bs,offset);

  check  = l128read(bs,&(res->size));

  res->meta.corrupted = check;
  if (res->meta.corrupted) return res;

  DX_ALLOC_LIST(DexEncodedCatchHandler*,res->list,ul128toui(res->size));

  for (i=0; i<ul128toui(res->size); i++)
    res->list[i] = dx_encodedcatchhandler(bs,bs->offset);

  res->meta.corrupted = check || bs->exhausted;
  
  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x6903
movl %esi, %ebp
movq %rdi, %r14
movl $0x20, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4750
testl %eax, %eax
setne (%rbx)
jne 0x6952
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x6907
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
movl %eax, %edi
shlq $0x3, %rdi
callq 0x4600
jmp 0x6909
xorl %ebx, %ebx
jmp 0x6952
xorl %eax, %eax
movq %rax, 0x18(%rbx)
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x694a
xorl %r15d, %r15d
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x44d0
movq 0x18(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
movl %eax, %eax
cmpq %rax, %r15
jb 0x6920
cmpl $0x0, 0x1c(%r14)
setne (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_codeitem
DexCodeItem* dx_codeitem(ByteStream* bs, uint32_t offset) {
  DexCodeItem* res;
  unsigned int i;

  DX_ALLOC(DexCodeItem,res);

  bsseek(bs,offset);

  bsread(bs,(uint8_t*) &(res->registers_size),sizeof(uint16_t));
  bsread(bs,(uint8_t*) &(res->ins_size),sizeof(uint16_t));
  bsread(bs,(uint8_t*) &(res->outs_size),sizeof(uint16_t));
  bsread(bs,(uint8_t*) &(res->tries_size),sizeof(uint16_t));
  bsread(bs,(uint8_t*) &(res->debug_info_off),sizeof(uint32_t));
  bsread(bs,(uint8_t*) &(res->insns_size),sizeof(uint32_t));

  res->meta.corrupted = bs->exhausted;
  if (res->meta.corrupted) return res;

  DX_ALLOC_LIST(uint16_t,res->insns,res->insns_size);

  for (i=0; i<res->insns_size; i++)
    bsread(bs,(uint8_t*) &(res->insns[i]),sizeof(uint16_t));

  if (res->tries_size > 0) {
    if (res->insns_size % 2 != 0)
      bsread(bs,(uint8_t*) &(res->padding),sizeof(uint16_t));

    DX_ALLOC_LIST(DexTryItem*,res->tries,res->tries_size); 
   
    for (i=0; i<res->tries_size; i++)
      res->tries[i] = dx_tryitem(bs,bs->offset);

    res->handlers = dx_encodedcatchhandlerlist(bs,bs->offset);    
  }

  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %r14
movl $0x38, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movl $0x2, %edx
movq %r14, %rdi
callq 0x4420
leaq 0xa(%rbx), %rsi
movl $0x2, %edx
movq %r14, %rdi
callq 0x4420
leaq 0xc(%rbx), %rsi
movl $0x2, %edx
movq %r14, %rdi
callq 0x4420
leaq 0xe(%rbx), %r15
movl $0x2, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4420
leaq 0x10(%rbx), %rsi
movl $0x4, %edx
movq %r14, %rdi
callq 0x4420
leaq 0x14(%rbx), %r12
movl $0x4, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x4420
cmpl $0x0, 0x1c(%r14)
setne (%rbx)
jne 0x6ac2
movl (%r12), %edi
testq %rdi, %rdi
je 0x6a1a
addq %rdi, %rdi
callq 0x4600
jmp 0x6a1c
xorl %eax, %eax
movq %rax, 0x18(%rbx)
movl 0x14(%rbx), %eax
testl %eax, %eax
je 0x6a50
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x18(%rbx), %rsi
addq %r12, %rsi
movl $0x2, %edx
movq %r14, %rdi
callq 0x4420
incq %r13
movl 0x14(%rbx), %eax
addq $0x2, %r12
cmpq %rax, %r13
jb 0x6a2d
cmpw $0x0, (%r15)
je 0x6ac2
testb $0x1, %al
je 0x6a6f
movq %rbx, %rsi
addq $0x20, %rsi
movl $0x2, %edx
movq %r14, %rdi
callq 0x4420
movzwl (%r15), %edi
testq %rdi, %rdi
je 0x6a82
shll $0x3, %edi
callq 0x4600
jmp 0x6a84
xorl %eax, %eax
movq %rax, 0x28(%rbx)
cmpw $0x0, 0xe(%rbx)
je 0x6ab2
xorl %r15d, %r15d
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x4760
movq 0x28(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
movzwl 0xe(%rbx), %eax
cmpq %rax, %r15
jb 0x6a92
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x41f0
movq %rax, 0x30(%rbx)
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/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_debuginfo
DexDebugInfo* dx_debuginfo(ByteStream* bs, uint32_t offset) {
  DexDebugInfo* res;
  int check;
  unsigned int i;

  if (bs == NULL) return NULL;

  DX_ALLOC(DexDebugInfo,res);

  bsseek(bs,offset);

  check  = l128read(bs,&(res->line_start));
  check |= l128read(bs,&(res->parameters_size));

  res->meta.corrupted = check || bs->exhausted;
  if (res->meta.corrupted) return res;

  DX_ALLOC_LIST(leb128_t,res->parameter_names,ul128toui(res->parameters_size));

  for (i=0; i<ul128toui(res->parameters_size); i++)
    l128read(bs,&(res->parameter_names[i]));

  res->state_machine = dx_debug_state_machine(bs,bs->offset);

  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x6b2c
movl %esi, %ebp
movq %rdi, %r14
movl $0x30, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x4750
movl %eax, %ebp
movq %rbx, %rsi
addq $0x14, %rsi
movq %r14, %rdi
callq 0x4750
orl %ebp, %eax
je 0x6b33
movb $0x1, (%rbx)
jmp 0x6bc3
xorl %ebx, %ebx
jmp 0x6bc3
cmpl $0x0, 0x1c(%r14)
setne (%rbx)
jne 0x6bc3
movq 0x14(%rbx), %rdi
movl 0x1c(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x6b6e
movq 0x14(%rbx), %rdi
movl 0x1c(%rbx), %esi
callq 0x4170
movl %eax, %eax
shlq $0x2, %rax
leaq (%rax,%rax,2), %rdi
callq 0x4600
jmp 0x6b70
xorl %eax, %eax
movq %rax, 0x20(%rbx)
movq 0x14(%rbx), %rdi
movl 0x1c(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x6bb3
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x20(%rbx), %rsi
addq %r15, %rsi
movq %r14, %rdi
callq 0x4750
incq %r12
movq 0x14(%rbx), %rdi
movl 0x1c(%rbx), %esi
callq 0x4170
movl %eax, %eax
addq $0xc, %r15
cmpq %rax, %r12
jb 0x6b8a
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x4140
movq %rax, 0x28(%rbx)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_debug_state_machine
uint8_t* dx_debug_state_machine(ByteStream* bs, uint32_t offset) {
  uint32_t size = 1;
  uint8_t opcode;
  leb128_t leb;
  uint8_t* res;

  bsseek(bs,offset);
  bsread(bs,&opcode,1);

  while (opcode != 0x0) {
    switch (opcode) {
    case 0x1:
    case 0x2:
    case 0x5:
    case 0x6:
    case 0x9:
      l128read(bs,&leb);
      break;
    case 0x3:
      l128read(bs,&leb);
      l128read(bs,&leb);
      l128read(bs,&leb);
      break;
    case 0x4:
      l128read(bs,&leb);
      l128read(bs,&leb);
      l128read(bs,&leb);
      l128read(bs,&leb);
    default:
      break;
    }

    bsread(bs,&opcode,1);
  }

  size = bs->offset - offset;

  DX_ALLOC_LIST(uint8_t,res,size + sizeof(uint32_t));  

  bsseek(bs,offset);
  bsread(bs,(res+sizeof(uint32_t)),size);

  ((uint32_t*) res)[0] = size;

  return res;    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movq %rdi, %rbx
callq 0x4410
leaq 0x3(%rsp), %r14
leaq 0x354b(%rip), %r12      # 0xa13c
leaq 0x4(%rsp), %r15
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4420
movzbl 0x3(%rsp), %eax
cmpq $0x9, %rax
ja 0x6bf6
movslq (%r12,%rax,4), %rax
addq %r12, %rax
jmpq *%rax
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4750
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4750
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4750
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4750
jmp 0x6bf6
movl 0x18(%rbx), %r14d
subl %ebp, %r14d
leaq 0x4(%r14), %rdi
callq 0x4600
movq %rax, %r15
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4410
leaq 0x4(%r15), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4420
movl %r14d, (%r15)
movq %r15, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_maplist
DexMapList* dx_maplist(ByteStream* bs, uint32_t offset) {
  DexMapList* res;
  int check;
  unsigned int i;

  if (bs == NULL) return NULL;

  DX_ALLOC(DexMapList,res);

  bsseek(bs,offset);

  check = bsread(bs,(uint8_t*)&(res->size),sizeof(uint32_t));

  res->meta.corrupted = (check != sizeof(uint32_t));
  if (res->meta.corrupted) return res;

  DX_ALLOC_LIST(DexMapItem*,res->list,res->size);  

  for (i=0; i<res->size; i++)
    res->list[i] = dx_mapitem(bs,bs->offset);

  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x6d39
movl %esi, %ebp
movq %rdi, %r14
movl $0x18, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x4410
leaq 0x8(%rbx), %r15
movl $0x4, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4420
cmpl $0x4, %eax
setne (%rbx)
jne 0x6d6b
movl (%r15), %edi
testq %rdi, %rdi
je 0x6d3d
shlq $0x3, %rdi
callq 0x4600
jmp 0x6d3f
xorl %ebx, %ebx
jmp 0x6d6b
xorl %eax, %eax
movq %rax, 0x10(%rbx)
cmpl $0x0, 0x8(%rbx)
je 0x6d6b
xorl %r15d, %r15d
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x4100
movq 0x10(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
movl 0x8(%rbx), %eax
cmpq %rax, %r15
jb 0x6d4c
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_encodedvalue
DexEncodedValue* dx_encodedvalue(ByteStream* bs, uint32_t offset) {
  DexEncodedValue* res;
  int check;
  int i;

  uint8_t value_type;
  uint8_t value_arg;

  if (bs == NULL) return NULL;

  bsseek(bs,offset);

  DX_ALLOC(DexEncodedValue,res);

  check = bsread(bs,(uint8_t*)&(res->argtype),sizeof(uint8_t));

  res->meta.corrupted = (check != sizeof(uint8_t));
  if (res->meta.corrupted) return res;

  value_type = (res->argtype & 0x1f);
  value_arg  = ((res->argtype >> 5) & 0x7);
	       
  switch (value_type) {
  case 0x00:
    DX_ALLOC_LIST(uint8_t,res->value,1);
    bsread(bs,(uint8_t*) res->value,sizeof(uint8_t));
    break;
  case 0x02:
  case 0x03:
  case 0x04:
  case 0x06:
  case 0x10:
  case 0x11:
  case 0x17:
  case 0x18:
  case 0x19:
  case 0x1a:
  case 0x1b:
    DX_ALLOC_LIST(uint8_t,res->value,value_arg+1);

    for (i=0; i<value_arg+1; i++)
      bsread(bs,(uint8_t*) &(res->value[i]),sizeof(uint8_t));   

    break;
  case 0x1c:
    res->value = (uint8_t*) dx_encodedarray(bs,bs->offset);
    break;
  case 0x1d:
    res->value = (uint8_t*) dx_encodedannotation(bs,bs->offset);
    break;
  case 0x1e:
  case 0x1f:
    res->value = NULL;
  default:
    res->meta.corrupted = true;
    res->value = (uint8_t*) -1;
  }

  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x6e16
movl %esi, %ebp
movq %rdi, %r14
callq 0x4410
movl $0x18, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
leaq 0x8(%rax), %r15
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4420
cmpl $0x1, %eax
setne (%rbx)
jne 0x6e18
movzbl (%r15), %r15d
movl %r15d, %eax
andl $0x1f, %eax
cmpl $0x1f, %eax
ja 0x6e2c
leaq 0x338b(%rip), %rcx      # 0xa164
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
shrl $0x5, %r15d
incq %r15
movq %r15, %rdi
callq 0x4600
movq %rax, 0x10(%rbx)
xorl %r12d, %r12d
movq 0x10(%rbx), %rsi
addq %r12, %rsi
movl $0x1, %edx
movq %r14, %rdi
callq 0x4420
incq %r12
cmpq %r12, %r15
jne 0x6df8
jmp 0x6e18
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq $0x0, 0x10(%rbx)
movb $0x1, (%rbx)
movq $-0x1, 0x10(%rbx)
jmp 0x6e18
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x4150
jmp 0x6e53
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x4730
movq %rax, 0x10(%rbx)
jmp 0x6e18
movl $0x1, %edi
callq 0x4600
movq %rax, 0x10(%rbx)
movl $0x1, %edx
movq %r14, %rdi
movq %rax, %rsi
callq 0x4420
jmp 0x6e18
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_encodedarray
DexEncodedArray* dx_encodedarray(ByteStream* bs, uint32_t offset) {
  DexEncodedArray* res;
  int check;
  unsigned int i;

  if (bs == NULL) return NULL;

  bsseek(bs,offset);

  DX_ALLOC(DexEncodedArray,res);

  check = l128read(bs,&(res->size));

  res->meta.corrupted = (check || bs->exhausted);
  if (res->meta.corrupted) return res;

  DX_ALLOC_LIST(DexEncodedValue*,res->values,ul128toui(res->size));

  for (i=0; i<ul128toui(res->size); i++)
    res->values[i] = dx_encodedvalue(bs,bs->offset);

  return res;  
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x6eb7
movl %esi, %ebp
movq %rdi, %r14
callq 0x4410
movl $0x20, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
leaq 0x8(%rax), %rsi
movq %r14, %rdi
callq 0x4750
testl %eax, %eax
je 0x6ebb
movb $0x1, (%rbx)
jmp 0x6f31
xorl %ebx, %ebx
jmp 0x6f31
cmpl $0x0, 0x1c(%r14)
setne (%rbx)
jne 0x6f31
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x6eee
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
movl %eax, %edi
shlq $0x3, %rdi
callq 0x4600
jmp 0x6ef0
xorl %eax, %eax
movq %rax, 0x18(%rbx)
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x6f31
xorl %r15d, %r15d
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x47c0
movq 0x18(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
movq 0x8(%rbx), %rdi
movl 0x10(%rbx), %esi
callq 0x4170
movl %eax, %eax
cmpq %rax, %r15
jb 0x6f07
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_encodedannotation
DexEncodedAnnotation* dx_encodedannotation(ByteStream* bs, uint32_t offset) {
  DexEncodedAnnotation* res;
  int check;
  unsigned int i;

  if (bs == NULL) return NULL;

  bsseek(bs,offset);

  DX_ALLOC(DexEncodedAnnotation,res);

  check  = l128read(bs,&(res->type_idx));
  check |= l128read(bs,&(res->size));

  res->meta.corrupted = (check || bs->exhausted);
  if (res->meta.corrupted) return res;

  DX_ALLOC_LIST(DexAnnotationElement*,res->elements,ul128toui(res->size));

  for (i=0; i<ul128toui(res->size); i++)
    res->elements[i] = dx_annotationelement(bs,bs->offset);

  return res;  
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x6f8e
movl %esi, %ebp
movq %rdi, %r14
callq 0x4410
movl $0x28, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
leaq 0x8(%rax), %rsi
movq %r14, %rdi
callq 0x4750
movl %eax, %ebp
movq %rbx, %rsi
addq $0x14, %rsi
movq %r14, %rdi
callq 0x4750
orl %ebp, %eax
je 0x6f92
movb $0x1, (%rbx)
jmp 0x7008
xorl %ebx, %ebx
jmp 0x7008
cmpl $0x0, 0x1c(%r14)
setne (%rbx)
jne 0x7008
movq 0x14(%rbx), %rdi
movl 0x1c(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x6fc5
movq 0x14(%rbx), %rdi
movl 0x1c(%rbx), %esi
callq 0x4170
movl %eax, %edi
shlq $0x3, %rdi
callq 0x4600
jmp 0x6fc7
xorl %eax, %eax
movq %rax, 0x20(%rbx)
movq 0x14(%rbx), %rdi
movl 0x1c(%rbx), %esi
callq 0x4170
testl %eax, %eax
je 0x7008
xorl %r15d, %r15d
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x4270
movq 0x20(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
movq 0x14(%rbx), %rdi
movl 0x1c(%rbx), %esi
callq 0x4170
movl %eax, %eax
cmpq %rax, %r15
jb 0x6fde
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_annotationelement
DexAnnotationElement* dx_annotationelement(ByteStream* bs, uint32_t offset) {
  DexAnnotationElement* res;
  int check;

  if (bs == NULL) return NULL;

  bsseek(bs,offset);

  DX_ALLOC(DexAnnotationElement,res);

  check = l128read(bs,&(res->name_idx));

  res->value = dx_encodedvalue(bs,bs->offset);

  res->meta.corrupted = (check || bs->exhausted);

  return res;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x706b
movl %esi, %ebp
movq %rdi, %rbx
callq 0x4410
movl $0x20, %edi
callq 0x4600
movq %rax, %r14
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
leaq 0x8(%rax), %rsi
movq %rbx, %rdi
callq 0x4750
movl %eax, %ebp
movl 0x18(%rbx), %esi
movq %rbx, %rdi
callq 0x47c0
movq %rax, 0x18(%r14)
movb $0x1, %al
testl %ebp, %ebp
jne 0x7066
cmpl $0x0, 0x1c(%rbx)
setne %al
movb %al, (%r14)
jmp 0x706e
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_annotationsetreflist
DexAnnotationSetRefList* dx_annotationsetreflist(ByteStream* bs, uint32_t offset) {
  DexAnnotationSetRefList* res;
  int check;
  unsigned int i;

  if (bs == NULL) return NULL;

  DX_ALLOC(DexAnnotationSetRefList,res);

  bsseek(bs,offset);

  check  = bsread(bs,(uint8_t*) &(res->size),sizeof(uint32_t));

  res->meta.corrupted = (check != sizeof(uint32_t) || bs->exhausted);
  if (res->meta.corrupted) return res;

  DX_ALLOC_LIST(DexAnnotationSetRefItem*,res->list,res->size);

  for (i=0; i<res->size; i++)
    res->list[i] = dx_annotationsetrefitem(bs,bs->offset);

  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x73bf
movl %esi, %ebp
movq %rdi, %r14
movl $0x18, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x4410
movq %rbx, %r15
addq $0x8, %r15
movl $0x4, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4420
cmpl $0x4, %eax
jne 0x73c3
cmpl $0x0, 0x1c(%r14)
setne (%rbx)
jne 0x73c6
movl (%r15), %edi
testq %rdi, %rdi
je 0x73d4
shlq $0x3, %rdi
callq 0x4600
jmp 0x73d6
xorl %ebx, %ebx
jmp 0x73c6
movb $0x1, (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
movq %rax, 0x10(%rbx)
cmpl $0x0, 0x8(%rbx)
je 0x73c6
xorl %r15d, %r15d
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x4430
movq 0x10(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
movl 0x8(%rbx), %eax
cmpq %rax, %r15
jb 0x73e3
jmp 0x73c6
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_annotationsetitem
DexAnnotationSetItem* dx_annotationsetitem(ByteStream* bs, uint32_t offset) {
  DexAnnotationSetItem* res;
  int check;
  unsigned int i;

  if (bs == NULL) return NULL;

  DX_ALLOC(DexAnnotationSetItem,res);

  bsseek(bs,offset);

  check  = bsread(bs,(uint8_t*) &(res->size),sizeof(uint32_t));

  res->meta.corrupted = (check != sizeof(uint32_t) || bs->exhausted);
  if (res->meta.corrupted) return res;

  DX_ALLOC_LIST(DexAnnotationOffItem*,res->entries,res->size);

  for (i=0; i<res->size; i++)
    res->entries[i] = dx_annotationoffitem(bs,bs->offset);

  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x74c0
movl %esi, %ebp
movq %rdi, %r14
movl $0x18, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x4410
movq %rbx, %r15
addq $0x8, %r15
movl $0x4, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4420
cmpl $0x4, %eax
jne 0x74c4
cmpl $0x0, 0x1c(%r14)
setne (%rbx)
jne 0x74c7
movl (%r15), %edi
testq %rdi, %rdi
je 0x74d5
shlq $0x3, %rdi
callq 0x4600
jmp 0x74d7
xorl %ebx, %ebx
jmp 0x74c7
movb $0x1, (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
movq %rax, 0x10(%rbx)
cmpl $0x0, 0x8(%rbx)
je 0x74c7
xorl %r15d, %r15d
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x46f0
movq 0x10(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
movl 0x8(%rbx), %eax
cmpq %rax, %r15
jb 0x74e4
jmp 0x74c7
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_annotationitem
DexAnnotationItem* dx_annotationitem(ByteStream* bs, uint32_t offset) {
  DexAnnotationItem* res;
  int check;

  if (bs == NULL) return NULL;

  DX_ALLOC(DexAnnotationItem,res);

  bsseek(bs,offset);

  check  = bsread(bs,(uint8_t*) &(res->visibility),sizeof(uint8_t));

  res->annotation = dx_encodedannotation(bs,bs->offset);

  res->meta.corrupted = (check != sizeof(uint8_t) || bs->exhausted);
  
  return res;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x7566
movl %esi, %ebp
movq %rdi, %r14
movl $0x18, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x4410
leaq 0x8(%rbx), %rsi
movl $0x1, %edx
movq %r14, %rdi
callq 0x4420
movl %eax, %ebp
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x4150
movq %rax, 0x10(%rbx)
movb $0x1, %al
cmpl $0x1, %ebp
jne 0x7562
cmpl $0x0, 0x1c(%r14)
setne %al
movb %al, (%rbx)
jmp 0x7568
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_parser.c
// Function: dx_encodedarrayitem
DexEncodedArrayItem* dx_encodedarrayitem(ByteStream* bs, uint32_t offset) {
  DexEncodedArrayItem* res;

  if (bs == NULL) return NULL;

  DX_ALLOC(DexEncodedArrayItem,res);

  bsseek(bs,offset);

  res->value = dx_encodedarray(bs,bs->offset);

  res->meta.corrupted = bs->exhausted;
  
  return res;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x75b5
movl %esi, %ebp
movq %rdi, %r14
movl $0x10, %edi
callq 0x4600
movq %rax, %rbx
movl %ebp, 0x4(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
movl %ebp, %esi
callq 0x4410
movl 0x18(%r14), %esi
movq %r14, %rdi
callq 0x4730
movq %rax, 0x8(%rbx)
cmpl $0x0, 0x1c(%r14)
setne (%rbx)
jmp 0x75b7
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rchiossi[P]dexterity/lib/dex_string.c
// Function: dx_string_find_index
uint32_t dx_string_find_index(Dex* dx, char* str) {
  unsigned int i;
  int ret;

  if (dx == NULL || str == NULL) return -1;

  for (i=0; i<dx->header->string_ids_size; i++) {
    ret = strncmp(str, (char *)dx->string_data_list[i]->data, strlen((char *)dx->string_data_list[i]->data));

    if (ret == 0) // string already exists
      return -1;
    else if (ret < 0)
      return i;
  }

  return dx->header->string_ids_size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jne 0x837f
movq (%rdi), %rax
movl 0x40(%rax), %r12d
testq %r12, %r12
je 0x8377
movq %rsi, %r14
movq 0x40(%rdi), %rbp
xorl %r13d, %r13d
movq (%rbp,%r13,8), %rax
movq 0x18(%rax), %r15
movq %r15, %rdi
callq 0x41c0
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x40a0
testl %eax, %eax
je 0x837f
js 0x837c
incq %r13
cmpq %r13, %r12
jne 0x834a
movl %r12d, %ebx
jmp 0x837f
movl %r13d, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq