
void write_sbcs(charset_spec *charset,long input_chr,charset_state *state,
               _func_void_void_ptr_long *emit,void *emitctx)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  void *pvVar4;
  uint uVar5;
  int iVar6;
  
  pvVar4 = charset->data;
  iVar3 = *(int *)((int)pvVar4 + 0x500);
  iVar6 = -1;
  do {
    iVar1 = iVar3;
    do {
      iVar3 = iVar1;
      if (iVar3 <= iVar6 + 1) {
        (*emit)(emitctx,0xffff);
        return;
      }
      iVar1 = (iVar6 + iVar3) / 2;
      uVar5 = (uint)*(byte *)((int)pvVar4 + iVar1 + 0x400);
      uVar2 = *(uint *)((int)pvVar4 + uVar5 * 4);
    } while ((uint)input_chr < uVar2);
    iVar6 = iVar1;
  } while (uVar2 < (uint)input_chr);
  (*emit)(emitctx,uVar5);
  return;
}



void FUN_0001cc74(int param_1,uint param_2,undefined4 param_3,code *param_4,undefined4 param_5)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  int iVar6;
  
  iVar4 = *(int *)(param_1 + 0xc);
  iVar3 = *(int *)(iVar4 + 0x500);
  iVar6 = -1;
  do {
    iVar1 = iVar3;
    do {
      iVar3 = iVar1;
      if (iVar3 <= iVar6 + 1) {
        (*param_4)(param_5,0xffff);
        return;
      }
      iVar1 = (iVar6 + iVar3) / 2;
      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);
      uVar2 = *(uint *)(iVar4 + uVar5 * 4);
    } while (param_2 < uVar2);
    iVar6 = iVar1;
  } while (uVar2 < param_2);
  (*param_4)(param_5,uVar5);
  return;
}


addiu sp,sp,-0x20
sw ra,0x1c(sp)
lw a2,0xc(a0)
lw a0,0x500(a2)
li t2,-0x1
or t4,a1,zero
addiu t3,t2,0x1
slt v0,t3,a0
beq v0,zero,0x0001ccf8
_addu v1,t2,a0
srl v0,v1,0x1f
addu v0,v0,v1
sra v0,v0,0x1
addu v1,a2,v0
lbu t0,0x400(v1)
sll v1,t0,0x2
addu v1,a2,v1
lw v1,0x0(v1)
sltu t1,a1,v1
beq t1,zero,0x0001ccd0
_nop
b 0x0001cc90
_or a0,v0,zero
sltu v1,v1,t4
bne v1,zero,0x0001cc8c
_or t2,v0,zero
or a1,t0,zero
lw a0,0x30(sp)
or t9,a3,zero
jalr t9
_nop
b 0x0001cd10
_lw ra,0x1c(sp)
ori a1,zero,0xffff
lw a0,0x30(sp)
or t9,a3,zero
jalr t9
_nop
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void FUN_0001cc74(int param_1,uint param_2,undefined4 param_3,code *param_4,undefined4 param_5)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  iVar3 = *(int *)(iVar4 + 0x500);\n  iVar6 = -1;\n  do {\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);\n    iVar6 = iVar1;\n  } while (uVar2 < param_2);\n  (*param_4)(param_5,uVar5);\n  return;\n}\n\n" (function_definition "void FUN_0001cc74(int param_1,uint param_2,undefined4 param_3,code *param_4,undefined4 param_5)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  iVar3 = *(int *)(iVar4 + 0x500);\n  iVar6 = -1;\n  do {\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);\n    iVar6 = iVar1;\n  } while (uVar2 < param_2);\n  (*param_4)(param_5,uVar5);\n  return;\n}" primitive_type (function_declarator "FUN_0001cc74(int param_1,uint param_2,undefined4 param_3,code *param_4,undefined4 param_5)" identifier (parameter_list "(int param_1,uint param_2,undefined4 param_3,code *param_4,undefined4 param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "code *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  iVar3 = *(int *)(iVar4 + 0x500);\n  iVar6 = -1;\n  do {\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);\n    iVar6 = iVar1;\n  } while (uVar2 < param_2);\n  (*param_4)(param_5,uVar5);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(iVar4 + 0x500);" (assignment_expression "iVar3 = *(int *)(iVar4 + 0x500)" identifier = (pointer_expression "*(int *)(iVar4 + 0x500)" * (cast_expression "(int *)(iVar4 + 0x500)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x500)" ( (binary_expression "iVar4 + 0x500" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = -1;" (assignment_expression "iVar6 = -1" identifier = number_literal) ;) (do_statement "do {\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);\n    iVar6 = iVar1;\n  } while (uVar2 < param_2);" do (compound_statement "{\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);\n    iVar6 = iVar1;\n  }" { (expression_statement "iVar1 = iVar3;" (assignment_expression "iVar1 = iVar3" identifier = identifier) ;) (do_statement "do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);" do (compound_statement "{\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    }" { (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" identifier = identifier) ;) (if_statement "if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }" if (parenthesized_expression "(iVar3 <= iVar6 + 1)" ( (binary_expression "iVar3 <= iVar6 + 1" identifier <= (binary_expression "iVar6 + 1" identifier + number_literal)) )) (compound_statement "{\n        (*param_4)(param_5,0xffff);\n        return;\n      }" { (expression_statement "(*param_4)(param_5,0xffff);" (call_expression "(*param_4)(param_5,0xffff)" (parenthesized_expression "(*param_4)" ( (pointer_expression "*param_4" * identifier) )) (argument_list "(param_5,0xffff)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = (iVar6 + iVar3) / 2;" (assignment_expression "iVar1 = (iVar6 + iVar3) / 2" identifier = (binary_expression "(iVar6 + iVar3) / 2" (parenthesized_expression "(iVar6 + iVar3)" ( (binary_expression "iVar6 + iVar3" identifier + identifier) )) / number_literal)) ;) (expression_statement "uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);" (assignment_expression "uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400)" identifier = (binary_expression "(uint)*(byte *)(iVar4 + iVar1 + 0x400)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(iVar4 + iVar1 + 0x400)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar1 + 0x400)" ( (binary_expression "iVar4 + iVar1 + 0x400" (binary_expression "iVar4 + iVar1" identifier + identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = *(uint *)(iVar4 + uVar5 * 4);" (assignment_expression "uVar2 = *(uint *)(iVar4 + uVar5 * 4)" identifier = (pointer_expression "*(uint *)(iVar4 + uVar5 * 4)" * (cast_expression "(uint *)(iVar4 + uVar5 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + uVar5 * 4)" ( (binary_expression "iVar4 + uVar5 * 4" identifier + (binary_expression "uVar5 * 4" identifier * number_literal)) ))))) ;) }) while (parenthesized_expression "(param_2 < uVar2)" ( (binary_expression "param_2 < uVar2" identifier < identifier) )) ;) (expression_statement "iVar6 = iVar1;" (assignment_expression "iVar6 = iVar1" identifier = identifier) ;) }) while (parenthesized_expression "(uVar2 < param_2)" ( (binary_expression "uVar2 < param_2" identifier < identifier) )) ;) (expression_statement "(*param_4)(param_5,uVar5);" (call_expression "(*param_4)(param_5,uVar5)" (parenthesized_expression "(*param_4)" ( (pointer_expression "*param_4" * identifier) )) (argument_list "(param_5,uVar5)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void write_sbcs(charset_spec *charset,long input_chr,charset_state *state,\n               _func_void_void_ptr_long *emit,void *emitctx)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  void *pvVar4;\n  uint uVar5;\n  int iVar6;\n  \n  pvVar4 = charset->data;\n  iVar3 = *(int *)((int)pvVar4 + 0x500);\n  iVar6 = -1;\n  do {\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*emit)(emitctx,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)((int)pvVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)((int)pvVar4 + uVar5 * 4);\n    } while ((uint)input_chr < uVar2);\n    iVar6 = iVar1;\n  } while (uVar2 < (uint)input_chr);\n  (*emit)(emitctx,uVar5);\n  return;\n}\n\n" (function_definition "void write_sbcs(charset_spec *charset,long input_chr,charset_state *state,\n               _func_void_void_ptr_long *emit,void *emitctx)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  void *pvVar4;\n  uint uVar5;\n  int iVar6;\n  \n  pvVar4 = charset->data;\n  iVar3 = *(int *)((int)pvVar4 + 0x500);\n  iVar6 = -1;\n  do {\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*emit)(emitctx,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)((int)pvVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)((int)pvVar4 + uVar5 * 4);\n    } while ((uint)input_chr < uVar2);\n    iVar6 = iVar1;\n  } while (uVar2 < (uint)input_chr);\n  (*emit)(emitctx,uVar5);\n  return;\n}" primitive_type (function_declarator "write_sbcs(charset_spec *charset,long input_chr,charset_state *state,\n               _func_void_void_ptr_long *emit,void *emitctx)" identifier (parameter_list "(charset_spec *charset,long input_chr,charset_state *state,\n               _func_void_void_ptr_long *emit,void *emitctx)" ( (parameter_declaration "charset_spec *charset" type_identifier (pointer_declarator "*charset" * identifier)) , (parameter_declaration "long input_chr" (sized_type_specifier "long" long) identifier) , (parameter_declaration "charset_state *state" type_identifier (pointer_declarator "*state" * identifier)) , (parameter_declaration "_func_void_void_ptr_long *emit" type_identifier (pointer_declarator "*emit" * identifier)) , (parameter_declaration "void *emitctx" primitive_type (pointer_declarator "*emitctx" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  void *pvVar4;\n  uint uVar5;\n  int iVar6;\n  \n  pvVar4 = charset->data;\n  iVar3 = *(int *)((int)pvVar4 + 0x500);\n  iVar6 = -1;\n  do {\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*emit)(emitctx,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)((int)pvVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)((int)pvVar4 + uVar5 * 4);\n    } while ((uint)input_chr < uVar2);\n    iVar6 = iVar1;\n  } while (uVar2 < (uint)input_chr);\n  (*emit)(emitctx,uVar5);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "pvVar4 = charset->data;" (assignment_expression "pvVar4 = charset->data" identifier = (field_expression "charset->data" identifier -> field_identifier)) ;) (expression_statement "iVar3 = *(int *)((int)pvVar4 + 0x500);" (assignment_expression "iVar3 = *(int *)((int)pvVar4 + 0x500)" identifier = (pointer_expression "*(int *)((int)pvVar4 + 0x500)" * (cast_expression "(int *)((int)pvVar4 + 0x500)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar4 + 0x500)" ( (binary_expression "(int)pvVar4 + 0x500" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "iVar6 = -1;" (assignment_expression "iVar6 = -1" identifier = number_literal) ;) (do_statement "do {\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*emit)(emitctx,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)((int)pvVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)((int)pvVar4 + uVar5 * 4);\n    } while ((uint)input_chr < uVar2);\n    iVar6 = iVar1;\n  } while (uVar2 < (uint)input_chr);" do (compound_statement "{\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*emit)(emitctx,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)((int)pvVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)((int)pvVar4 + uVar5 * 4);\n    } while ((uint)input_chr < uVar2);\n    iVar6 = iVar1;\n  }" { (expression_statement "iVar1 = iVar3;" (assignment_expression "iVar1 = iVar3" identifier = identifier) ;) (do_statement "do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*emit)(emitctx,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)((int)pvVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)((int)pvVar4 + uVar5 * 4);\n    } while ((uint)input_chr < uVar2);" do (compound_statement "{\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*emit)(emitctx,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)((int)pvVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)((int)pvVar4 + uVar5 * 4);\n    }" { (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" identifier = identifier) ;) (if_statement "if (iVar3 <= iVar6 + 1) {\n        (*emit)(emitctx,0xffff);\n        return;\n      }" if (parenthesized_expression "(iVar3 <= iVar6 + 1)" ( (binary_expression "iVar3 <= iVar6 + 1" identifier <= (binary_expression "iVar6 + 1" identifier + number_literal)) )) (compound_statement "{\n        (*emit)(emitctx,0xffff);\n        return;\n      }" { (expression_statement "(*emit)(emitctx,0xffff);" (call_expression "(*emit)(emitctx,0xffff)" (parenthesized_expression "(*emit)" ( (pointer_expression "*emit" * identifier) )) (argument_list "(emitctx,0xffff)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = (iVar6 + iVar3) / 2;" (assignment_expression "iVar1 = (iVar6 + iVar3) / 2" identifier = (binary_expression "(iVar6 + iVar3) / 2" (parenthesized_expression "(iVar6 + iVar3)" ( (binary_expression "iVar6 + iVar3" identifier + identifier) )) / number_literal)) ;) (expression_statement "uVar5 = (uint)*(byte *)((int)pvVar4 + iVar1 + 0x400);" (assignment_expression "uVar5 = (uint)*(byte *)((int)pvVar4 + iVar1 + 0x400)" identifier = (binary_expression "(uint)*(byte *)((int)pvVar4 + iVar1 + 0x400)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)pvVar4 + iVar1 + 0x400)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar4 + iVar1 + 0x400)" ( (binary_expression "(int)pvVar4 + iVar1 + 0x400" (binary_expression "(int)pvVar4 + iVar1" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = *(uint *)((int)pvVar4 + uVar5 * 4);" (assignment_expression "uVar2 = *(uint *)((int)pvVar4 + uVar5 * 4)" identifier = (pointer_expression "*(uint *)((int)pvVar4 + uVar5 * 4)" * (cast_expression "(uint *)((int)pvVar4 + uVar5 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar4 + uVar5 * 4)" ( (binary_expression "(int)pvVar4 + uVar5 * 4" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar5 * 4" identifier * number_literal)) ))))) ;) }) while (parenthesized_expression "((uint)input_chr < uVar2)" ( (binary_expression "(uint)input_chr < uVar2" (cast_expression "(uint)input_chr" ( (type_descriptor "uint" type_identifier) ) identifier) < identifier) )) ;) (expression_statement "iVar6 = iVar1;" (assignment_expression "iVar6 = iVar1" identifier = identifier) ;) }) while (parenthesized_expression "(uVar2 < (uint)input_chr)" ( (binary_expression "uVar2 < (uint)input_chr" identifier < (cast_expression "(uint)input_chr" ( (type_descriptor "uint" type_identifier) ) identifier)) )) ;) (expression_statement "(*emit)(emitctx,uVar5);" (call_expression "(*emit)(emitctx,uVar5)" (parenthesized_expression "(*emit)" ( (pointer_expression "*emit" * identifier) )) (argument_list "(emitctx,uVar5)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001cc74(int param_1,uint param_2,undefined4 param_3,code *param_4,undefined4 param_5)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  iVar3 = *(int *)(iVar4 + 0x500);\n  iVar6 = -1;\n  do {\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);\n    iVar6 = iVar1;\n  } while (uVar2 < param_2);\n  (*param_4)(param_5,uVar5);\n  return;\n}\n\n" (function_definition "void FUN_0001cc74(int param_1,uint param_2,undefined4 param_3,code *param_4,undefined4 param_5)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  iVar3 = *(int *)(iVar4 + 0x500);\n  iVar6 = -1;\n  do {\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);\n    iVar6 = iVar1;\n  } while (uVar2 < param_2);\n  (*param_4)(param_5,uVar5);\n  return;\n}" primitive_type (function_declarator "FUN_0001cc74(int param_1,uint param_2,undefined4 param_3,code *param_4,undefined4 param_5)" identifier (parameter_list "(int param_1,uint param_2,undefined4 param_3,code *param_4,undefined4 param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "code *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  iVar3 = *(int *)(iVar4 + 0x500);\n  iVar6 = -1;\n  do {\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);\n    iVar6 = iVar1;\n  } while (uVar2 < param_2);\n  (*param_4)(param_5,uVar5);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(iVar4 + 0x500);" (assignment_expression "iVar3 = *(int *)(iVar4 + 0x500)" identifier = (pointer_expression "*(int *)(iVar4 + 0x500)" * (cast_expression "(int *)(iVar4 + 0x500)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x500)" ( (binary_expression "iVar4 + 0x500" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = -1;" (assignment_expression "iVar6 = -1" identifier = number_literal) ;) (do_statement "do {\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);\n    iVar6 = iVar1;\n  } while (uVar2 < param_2);" do (compound_statement "{\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);\n    iVar6 = iVar1;\n  }" { (expression_statement "iVar1 = iVar3;" (assignment_expression "iVar1 = iVar3" identifier = identifier) ;) (do_statement "do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);" do (compound_statement "{\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    }" { (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" identifier = identifier) ;) (if_statement "if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }" if (parenthesized_expression "(iVar3 <= iVar6 + 1)" ( (binary_expression "iVar3 <= iVar6 + 1" identifier <= (binary_expression "iVar6 + 1" identifier + number_literal)) )) (compound_statement "{\n        (*param_4)(param_5,0xffff);\n        return;\n      }" { (expression_statement "(*param_4)(param_5,0xffff);" (call_expression "(*param_4)(param_5,0xffff)" (parenthesized_expression "(*param_4)" ( (pointer_expression "*param_4" * identifier) )) (argument_list "(param_5,0xffff)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = (iVar6 + iVar3) / 2;" (assignment_expression "iVar1 = (iVar6 + iVar3) / 2" identifier = (binary_expression "(iVar6 + iVar3) / 2" (parenthesized_expression "(iVar6 + iVar3)" ( (binary_expression "iVar6 + iVar3" identifier + identifier) )) / number_literal)) ;) (expression_statement "uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);" (assignment_expression "uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400)" identifier = (binary_expression "(uint)*(byte *)(iVar4 + iVar1 + 0x400)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(iVar4 + iVar1 + 0x400)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar1 + 0x400)" ( (binary_expression "iVar4 + iVar1 + 0x400" (binary_expression "iVar4 + iVar1" identifier + identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = *(uint *)(iVar4 + uVar5 * 4);" (assignment_expression "uVar2 = *(uint *)(iVar4 + uVar5 * 4)" identifier = (pointer_expression "*(uint *)(iVar4 + uVar5 * 4)" * (cast_expression "(uint *)(iVar4 + uVar5 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + uVar5 * 4)" ( (binary_expression "iVar4 + uVar5 * 4" identifier + (binary_expression "uVar5 * 4" identifier * number_literal)) ))))) ;) }) while (parenthesized_expression "(param_2 < uVar2)" ( (binary_expression "param_2 < uVar2" identifier < identifier) )) ;) (expression_statement "iVar6 = iVar1;" (assignment_expression "iVar6 = iVar1" identifier = identifier) ;) }) while (parenthesized_expression "(uVar2 < param_2)" ( (binary_expression "uVar2 < param_2" identifier < identifier) )) ;) (expression_statement "(*param_4)(param_5,uVar5);" (call_expression "(*param_4)(param_5,uVar5)" (parenthesized_expression "(*param_4)" ( (pointer_expression "*param_4" * identifier) )) (argument_list "(param_5,uVar5)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) / LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0001cc74(int param_1,uint param_2,undefined4 param_3,code *param_4,undefined4 param_5)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  iVar3 = *(int *)(iVar4 + 0x500);\n  iVar6 = -1;\n  do {\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);\n    iVar6 = iVar1;\n  } while (uVar2 < param_2);\n  (*param_4)(param_5,uVar5);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001cc74(int param_1,uint param_2,undefined4 param_3,code *param_4,undefined4 param_5)" (identifier "FUN_0001cc74") (parameter_list "(int param_1,uint param_2,undefined4 param_3,code *param_4,undefined4 param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "code *param_4" (type_identifier "code") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)(param_1 + 0xc);\n  iVar3 = *(int *)(iVar4 + 0x500);\n  iVar6 = -1;\n  do {\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);\n    iVar6 = iVar1;\n  } while (uVar2 < param_2);\n  (*param_4)(param_5,uVar5);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar4 + 0x500);" (assignment_expression "iVar3 = *(int *)(iVar4 + 0x500)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar4 + 0x500)" (* "*") (cast_expression "(int *)(iVar4 + 0x500)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x500)" (( "(") (binary_expression "iVar4 + 0x500" (identifier "iVar4") (+ "+") (number_literal "0x500")) () ")"))))) (; ";")) (expression_statement "iVar6 = -1;" (assignment_expression "iVar6 = -1" (identifier "iVar6") (= "=") (number_literal "-1")) (; ";")) (do_statement "do {\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);\n    iVar6 = iVar1;\n  } while (uVar2 < param_2);" (do "do") (compound_statement "{\n    iVar1 = iVar3;\n    do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);\n    iVar6 = iVar1;\n  }" ({ "{") (expression_statement "iVar1 = iVar3;" (assignment_expression "iVar1 = iVar3" (identifier "iVar1") (= "=") (identifier "iVar3")) (; ";")) (do_statement "do {\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    } while (param_2 < uVar2);" (do "do") (compound_statement "{\n      iVar3 = iVar1;\n      if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }\n      iVar1 = (iVar6 + iVar3) / 2;\n      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);\n      uVar2 = *(uint *)(iVar4 + uVar5 * 4);\n    }" ({ "{") (expression_statement "iVar3 = iVar1;" (assignment_expression "iVar3 = iVar1" (identifier "iVar3") (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar3 <= iVar6 + 1) {\n        (*param_4)(param_5,0xffff);\n        return;\n      }" (if "if") (parenthesized_expression "(iVar3 <= iVar6 + 1)" (( "(") (binary_expression "iVar3 <= iVar6 + 1" (identifier "iVar3") (<= "<=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) () ")")) (compound_statement "{\n        (*param_4)(param_5,0xffff);\n        return;\n      }" ({ "{") (expression_statement "(*param_4)(param_5,0xffff);" (call_expression "(*param_4)(param_5,0xffff)" (parenthesized_expression "(*param_4)" (( "(") (pointer_expression "*param_4" (* "*") (identifier "param_4")) () ")")) (argument_list "(param_5,0xffff)" (( "(") (identifier "param_5") (, ",") (number_literal "0xffff") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = (iVar6 + iVar3) / 2;" (assignment_expression "iVar1 = (iVar6 + iVar3) / 2" (identifier "iVar1") (= "=") (binary_expression "(iVar6 + iVar3) / 2" (parenthesized_expression "(iVar6 + iVar3)" (( "(") (binary_expression "iVar6 + iVar3" (identifier "iVar6") (+ "+") (identifier "iVar3")) () ")")) (/ "/") (number_literal "2"))) (; ";")) (expression_statement "uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);" (assignment_expression "uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400)" (identifier "uVar5") (= "=") (binary_expression "(uint)*(byte *)(iVar4 + iVar1 + 0x400)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(iVar4 + iVar1 + 0x400)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar1 + 0x400)" (( "(") (binary_expression "iVar4 + iVar1 + 0x400" (binary_expression "iVar4 + iVar1" (identifier "iVar4") (+ "+") (identifier "iVar1")) (+ "+") (number_literal "0x400")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(uint *)(iVar4 + uVar5 * 4);" (assignment_expression "uVar2 = *(uint *)(iVar4 + uVar5 * 4)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(iVar4 + uVar5 * 4)" (* "*") (cast_expression "(uint *)(iVar4 + uVar5 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + uVar5 * 4)" (( "(") (binary_expression "iVar4 + uVar5 * 4" (identifier "iVar4") (+ "+") (binary_expression "uVar5 * 4" (identifier "uVar5") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 < uVar2)" (( "(") (binary_expression "param_2 < uVar2" (identifier "param_2") (< "<") (identifier "uVar2")) () ")")) (; ";")) (expression_statement "iVar6 = iVar1;" (assignment_expression "iVar6 = iVar1" (identifier "iVar6") (= "=") (identifier "iVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar2 < param_2)" (( "(") (binary_expression "uVar2 < param_2" (identifier "uVar2") (< "<") (identifier "param_2")) () ")")) (; ";")) (expression_statement "(*param_4)(param_5,uVar5);" (call_expression "(*param_4)(param_5,uVar5)" (parenthesized_expression "(*param_4)" (( "(") (pointer_expression "*param_4" (* "*") (identifier "param_4")) () ")")) (argument_list "(param_5,uVar5)" (( "(") (identifier "param_5") (, ",") (identifier "uVar5") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier)))) (return_statement))))

void MASKED(int param_1,uint param_2,undefined4 param_3,code *param_4,undefined4 param_5)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  int iVar6;
  
  iVar4 = *(int *)(param_1 + 0xc);
  iVar3 = *(int *)(iVar4 + 0x500);
  iVar6 = -1;
  do {
    iVar1 = iVar3;
    do {
      iVar3 = iVar1;
      if (iVar3 <= iVar6 + 1) {
        (*param_4)(param_5,0xffff);
        return;
      }
      iVar1 = (iVar6 + iVar3) / 2;
      uVar5 = (uint)*(byte *)(iVar4 + iVar1 + 0x400);
      uVar2 = *(uint *)(iVar4 + uVar5 * 4);
    } while (param_2 < uVar2);
    iVar6 = iVar1;
  } while (uVar2 < param_2);
  (*param_4)(param_5,uVar5);
  return;
}

