
/* DWARF original prototype: int skip_white(gmp_doscan_funs_t * funs, void * data, gmp_doscan_funs_t
   * funs) */

int skip_white(gmp_doscan_funs_t *funs,void *data,gmp_doscan_funs_t *funs_1)

{
  char *pcVar1;
  int *piVar2;
  int iVar3;
  char *pcVar4;
  char *pcVar5;
  
  pcVar4 = (char *)data;
  piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();
  pcVar1 = (char *)0x0;
  do {
    pcVar5 = pcVar1;
    iVar3 = (*funs->scan)(funs_1,pcVar4);
    pcVar4 = pcVar5 + 1;
    pcVar1 = pcVar4;
  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);
                    /* WARNING: Load size is inaccurate */
  (**data)(iVar3,funs_1);
  return (int)pcVar5;
}



int FUN_0007a610(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  
  piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();
  iVar1 = 0;
  do {
    iVar4 = iVar1;
    iVar3 = (*(code *)*param_1)(param_3);
    iVar1 = iVar4 + 1;
  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);
  (*(code *)*param_2)(iVar3,param_3);
  return iVar4;
}


lui gp,0x2
addiu gp,gp,0x4a30
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7f94(gp)
sw s4,0x28(sp)
sw s3,0x24(sp)
or s3,a1,zero
sw s2,0x20(sp)
or s2,a0,zero
sw s1,0x1c(sp)
or s1,a2,zero
sw s0,0x18(sp)
sw gp,0x10(sp)
sw ra,0x2c(sp)
jalr t9
_or s0,zero,zero
b 0x0007a660
_or s4,v0,zero
or s0,a1,zero
lw t9,0x0(s2)
jalr t9
_or a0,s1,zero
lw v1,0x0(s4)
sll a0,v0,0x1
addu v1,v1,a0
lhu v1,0x0(v1)
andi v1,v1,0x20
bne v1,zero,0x0007a65c
_addiu a1,s0,0x1
lw t9,0x0(s3)
or a1,s1,zero
jalr t9
_or a0,v0,zero
or v0,s0,zero
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "int FUN_0007a610(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();\n  iVar1 = 0;\n  do {\n    iVar4 = iVar1;\n    iVar3 = (*(code *)*param_1)(param_3);\n    iVar1 = iVar4 + 1;\n  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);\n  (*(code *)*param_2)(iVar3,param_3);\n  return iVar4;\n}\n\n" (function_definition "int FUN_0007a610(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();\n  iVar1 = 0;\n  do {\n    iVar4 = iVar1;\n    iVar3 = (*(code *)*param_1)(param_3);\n    iVar1 = iVar4 + 1;\n  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);\n  (*(code *)*param_2)(iVar3,param_3);\n  return iVar4;\n}" primitive_type (function_declarator "FUN_0007a610(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();\n  iVar1 = 0;\n  do {\n    iVar4 = iVar1;\n    iVar3 = (*(code *)*param_1)(param_3);\n    iVar1 = iVar4 + 1;\n  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);\n  (*(code *)*param_2)(iVar3,param_3);\n  return iVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_000970ac)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_000970ac)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_000970ac)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_000970ac" * (cast_expression "(code *)PTR___ctype_b_loc_000970ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar4 = iVar1;\n    iVar3 = (*(code *)*param_1)(param_3);\n    iVar1 = iVar4 + 1;\n  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);" do (compound_statement "{\n    iVar4 = iVar1;\n    iVar3 = (*(code *)*param_1)(param_3);\n    iVar1 = iVar4 + 1;\n  }" { (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (expression_statement "iVar3 = (*(code *)*param_1)(param_3);" (assignment_expression "iVar3 = (*(code *)*param_1)(param_3)" identifier = (call_expression "(*(code *)*param_1)(param_3)" (parenthesized_expression "(*(code *)*param_1)" ( (pointer_expression "*(code *)*param_1" * (cast_expression "(code *)*param_1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) )) (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "iVar1 = iVar4 + 1;" (assignment_expression "iVar1 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0)" ( (binary_expression "(*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0" (parenthesized_expression "(*(ushort *)(*piVar2 + iVar3 * 2) & 0x20)" ( (binary_expression "*(ushort *)(*piVar2 + iVar3 * 2) & 0x20" (pointer_expression "*(ushort *)(*piVar2 + iVar3 * 2)" * (cast_expression "(ushort *)(*piVar2 + iVar3 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + iVar3 * 2)" ( (binary_expression "*piVar2 + iVar3 * 2" (pointer_expression "*piVar2" * identifier) + (binary_expression "iVar3 * 2" identifier * number_literal)) )))) & number_literal) )) != number_literal) )) ;) (expression_statement "(*(code *)*param_2)(iVar3,param_3);" (call_expression "(*(code *)*param_2)(iVar3,param_3)" (parenthesized_expression "(*(code *)*param_2)" ( (pointer_expression "*(code *)*param_2" * (cast_expression "(code *)*param_2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) )) (argument_list "(iVar3,param_3)" ( identifier , identifier ))) ;) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: int skip_white(gmp_doscan_funs_t * funs, void * data, gmp_doscan_funs_t\n   * funs) */\n\nint skip_white(gmp_doscan_funs_t *funs,void *data,gmp_doscan_funs_t *funs_1)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  pcVar4 = (char *)data;\n  piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();\n  pcVar1 = (char *)0x0;\n  do {\n    pcVar5 = pcVar1;\n    iVar3 = (*funs->scan)(funs_1,pcVar4);\n    pcVar4 = pcVar5 + 1;\n    pcVar1 = pcVar4;\n  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);\n                    /* WARNING: Load size is inaccurate */\n  (**data)(iVar3,funs_1);\n  return (int)pcVar5;\n}\n\n" comment (function_definition "int skip_white(gmp_doscan_funs_t *funs,void *data,gmp_doscan_funs_t *funs_1)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  pcVar4 = (char *)data;\n  piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();\n  pcVar1 = (char *)0x0;\n  do {\n    pcVar5 = pcVar1;\n    iVar3 = (*funs->scan)(funs_1,pcVar4);\n    pcVar4 = pcVar5 + 1;\n    pcVar1 = pcVar4;\n  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);\n                    /* WARNING: Load size is inaccurate */\n  (**data)(iVar3,funs_1);\n  return (int)pcVar5;\n}" primitive_type (function_declarator "skip_white(gmp_doscan_funs_t *funs,void *data,gmp_doscan_funs_t *funs_1)" identifier (parameter_list "(gmp_doscan_funs_t *funs,void *data,gmp_doscan_funs_t *funs_1)" ( (parameter_declaration "gmp_doscan_funs_t *funs" type_identifier (pointer_declarator "*funs" * identifier)) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "gmp_doscan_funs_t *funs_1" type_identifier (pointer_declarator "*funs_1" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  int *piVar2;\n  int iVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  pcVar4 = (char *)data;\n  piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();\n  pcVar1 = (char *)0x0;\n  do {\n    pcVar5 = pcVar1;\n    iVar3 = (*funs->scan)(funs_1,pcVar4);\n    pcVar4 = pcVar5 + 1;\n    pcVar1 = pcVar4;\n  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);\n                    /* WARNING: Load size is inaccurate */\n  (**data)(iVar3,funs_1);\n  return (int)pcVar5;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "pcVar4 = (char *)data;" (assignment_expression "pcVar4 = (char *)data" identifier = (cast_expression "(char *)data" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_000970ac)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_000970ac)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_000970ac)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_000970ac" * (cast_expression "(code *)PTR___ctype_b_loc_000970ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "pcVar1 = (char *)0x0;" (assignment_expression "pcVar1 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    pcVar5 = pcVar1;\n    iVar3 = (*funs->scan)(funs_1,pcVar4);\n    pcVar4 = pcVar5 + 1;\n    pcVar1 = pcVar4;\n  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);" do (compound_statement "{\n    pcVar5 = pcVar1;\n    iVar3 = (*funs->scan)(funs_1,pcVar4);\n    pcVar4 = pcVar5 + 1;\n    pcVar1 = pcVar4;\n  }" { (expression_statement "pcVar5 = pcVar1;" (assignment_expression "pcVar5 = pcVar1" identifier = identifier) ;) (expression_statement "iVar3 = (*funs->scan)(funs_1,pcVar4);" (assignment_expression "iVar3 = (*funs->scan)(funs_1,pcVar4)" identifier = (call_expression "(*funs->scan)(funs_1,pcVar4)" (parenthesized_expression "(*funs->scan)" ( (pointer_expression "*funs->scan" * (field_expression "funs->scan" identifier -> field_identifier)) )) (argument_list "(funs_1,pcVar4)" ( identifier , identifier )))) ;) (expression_statement "pcVar4 = pcVar5 + 1;" (assignment_expression "pcVar4 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "pcVar1 = pcVar4;" (assignment_expression "pcVar1 = pcVar4" identifier = identifier) ;) }) while (parenthesized_expression "((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0)" ( (binary_expression "(*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0" (parenthesized_expression "(*(ushort *)(*piVar2 + iVar3 * 2) & 0x20)" ( (binary_expression "*(ushort *)(*piVar2 + iVar3 * 2) & 0x20" (pointer_expression "*(ushort *)(*piVar2 + iVar3 * 2)" * (cast_expression "(ushort *)(*piVar2 + iVar3 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + iVar3 * 2)" ( (binary_expression "*piVar2 + iVar3 * 2" (pointer_expression "*piVar2" * identifier) + (binary_expression "iVar3 * 2" identifier * number_literal)) )))) & number_literal) )) != number_literal) )) ;) comment (expression_statement "(**data)(iVar3,funs_1);" (call_expression "(**data)(iVar3,funs_1)" (parenthesized_expression "(**data)" ( (pointer_expression "**data" * (pointer_expression "*data" * identifier)) )) (argument_list "(iVar3,funs_1)" ( identifier , identifier ))) ;) (return_statement "return (int)pcVar5;" return (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) ;) })))
(translation_unit "int FUN_0007a610(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();\n  iVar1 = 0;\n  do {\n    iVar4 = iVar1;\n    iVar3 = (*(code *)*param_1)(param_3);\n    iVar1 = iVar4 + 1;\n  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);\n  (*(code *)*param_2)(iVar3,param_3);\n  return iVar4;\n}\n\n" (function_definition "int FUN_0007a610(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();\n  iVar1 = 0;\n  do {\n    iVar4 = iVar1;\n    iVar3 = (*(code *)*param_1)(param_3);\n    iVar1 = iVar4 + 1;\n  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);\n  (*(code *)*param_2)(iVar3,param_3);\n  return iVar4;\n}" primitive_type (function_declarator "FUN_0007a610(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();\n  iVar1 = 0;\n  do {\n    iVar4 = iVar1;\n    iVar3 = (*(code *)*param_1)(param_3);\n    iVar1 = iVar4 + 1;\n  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);\n  (*(code *)*param_2)(iVar3,param_3);\n  return iVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_000970ac)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_000970ac)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_000970ac)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_000970ac" * (cast_expression "(code *)PTR___ctype_b_loc_000970ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar4 = iVar1;\n    iVar3 = (*(code *)*param_1)(param_3);\n    iVar1 = iVar4 + 1;\n  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);" do (compound_statement "{\n    iVar4 = iVar1;\n    iVar3 = (*(code *)*param_1)(param_3);\n    iVar1 = iVar4 + 1;\n  }" { (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" identifier = identifier) ;) (expression_statement "iVar3 = (*(code *)*param_1)(param_3);" (assignment_expression "iVar3 = (*(code *)*param_1)(param_3)" identifier = (call_expression "(*(code *)*param_1)(param_3)" (parenthesized_expression "(*(code *)*param_1)" ( (pointer_expression "*(code *)*param_1" * (cast_expression "(code *)*param_1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) )) (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "iVar1 = iVar4 + 1;" (assignment_expression "iVar1 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0)" ( (binary_expression "(*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0" (parenthesized_expression "(*(ushort *)(*piVar2 + iVar3 * 2) & 0x20)" ( (binary_expression "*(ushort *)(*piVar2 + iVar3 * 2) & 0x20" (pointer_expression "*(ushort *)(*piVar2 + iVar3 * 2)" * (cast_expression "(ushort *)(*piVar2 + iVar3 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + iVar3 * 2)" ( (binary_expression "*piVar2 + iVar3 * 2" (pointer_expression "*piVar2" * identifier) + (binary_expression "iVar3 * 2" identifier * number_literal)) )))) & number_literal) )) != number_literal) )) ;) (expression_statement "(*(code *)*param_2)(iVar3,param_3);" (call_expression "(*(code *)*param_2)(iVar3,param_3)" (parenthesized_expression "(*(code *)*param_2)" ( (pointer_expression "*(code *)*param_2" * (cast_expression "(code *)*param_2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) )) (argument_list "(iVar3,param_3)" ( identifier , identifier ))) ;) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) & LIT) )) != LIT) )) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_0007a610(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();\n  iVar1 = 0;\n  do {\n    iVar4 = iVar1;\n    iVar3 = (*(code *)*param_1)(param_3);\n    iVar1 = iVar4 + 1;\n  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);\n  (*(code *)*param_2)(iVar3,param_3);\n  return iVar4;\n}" (primitive_type "int") (function_declarator "FUN_0007a610(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)" (identifier "FUN_0007a610") (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();\n  iVar1 = 0;\n  do {\n    iVar4 = iVar1;\n    iVar3 = (*(code *)*param_1)(param_3);\n    iVar1 = iVar4 + 1;\n  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);\n  (*(code *)*param_2)(iVar3,param_3);\n  return iVar4;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();" (assignment_expression "piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)()" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_000970ac)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___ctype_b_loc_000970ac)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_000970ac)" (( "(") (pointer_expression "*(code *)PTR___ctype_b_loc_000970ac" (* "*") (cast_expression "(code *)PTR___ctype_b_loc_000970ac" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___ctype_b_loc_000970ac"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar4 = iVar1;\n    iVar3 = (*(code *)*param_1)(param_3);\n    iVar1 = iVar4 + 1;\n  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);" (do "do") (compound_statement "{\n    iVar4 = iVar1;\n    iVar3 = (*(code *)*param_1)(param_3);\n    iVar1 = iVar4 + 1;\n  }" ({ "{") (expression_statement "iVar4 = iVar1;" (assignment_expression "iVar4 = iVar1" (identifier "iVar4") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "iVar3 = (*(code *)*param_1)(param_3);" (assignment_expression "iVar3 = (*(code *)*param_1)(param_3)" (identifier "iVar3") (= "=") (call_expression "(*(code *)*param_1)(param_3)" (parenthesized_expression "(*(code *)*param_1)" (( "(") (pointer_expression "*(code *)*param_1" (* "*") (cast_expression "(code *)*param_1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) () ")")) (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "iVar1 = iVar4 + 1;" (assignment_expression "iVar1 = iVar4 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0)" (( "(") (binary_expression "(*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0" (parenthesized_expression "(*(ushort *)(*piVar2 + iVar3 * 2) & 0x20)" (( "(") (binary_expression "*(ushort *)(*piVar2 + iVar3 * 2) & 0x20" (pointer_expression "*(ushort *)(*piVar2 + iVar3 * 2)" (* "*") (cast_expression "(ushort *)(*piVar2 + iVar3 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + iVar3 * 2)" (( "(") (binary_expression "*piVar2 + iVar3 * 2" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (binary_expression "iVar3 * 2" (identifier "iVar3") (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "(*(code *)*param_2)(iVar3,param_3);" (call_expression "(*(code *)*param_2)(iVar3,param_3)" (parenthesized_expression "(*(code *)*param_2)" (( "(") (pointer_expression "*(code *)*param_2" (* "*") (cast_expression "(code *)*param_2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) () ")")) (argument_list "(iVar3,param_3)" (( "(") (identifier "iVar3") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

/* DWARF original prototype: int skip_white(gmp_doscan_funs_t * funs, void * data, gmp_doscan_funs_t
   * funs) */

int function_1(type_1 *funs,void *data,type_1 *funs_1)

{
  char *pcVar1;
  int *piVar2;
  int var_2;
  char *pcVar4;
  char *var_1;
  
  pcVar4 = (char *)data;
  piVar2 = (int *)(*(type_2 *)PTR___ctype_b_loc_000970ac)();
  pcVar1 = (char *)0x0;
  do {
    var_1 = pcVar1;
    var_2 = (*funs->scan)(funs_1,pcVar4);
    pcVar4 = var_1 + 1;
    pcVar1 = pcVar4;
  } while ((*(type_3 *)(*piVar2 + var_2 * 2) & 0x20) != 0);
                    /* WARNING: Load size is inaccurate */
  (**data)(var_2,funs_1);
  return (int)var_1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator 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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) right: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) arguments: (argument_list (identifier) (identifier)))) (return_statement (identifier)))))

int MASKED(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  
  piVar2 = (int *)(*(code *)PTR___ctype_b_loc_000970ac)();
  iVar1 = 0;
  do {
    iVar4 = iVar1;
    iVar3 = (*(code *)*param_1)(param_3);
    iVar1 = iVar4 + 1;
  } while ((*(ushort *)(*piVar2 + iVar3 * 2) & 0x20) != 0);
  (*(code *)*param_2)(iVar3,param_3);
  return iVar4;
}

