
int __gmp_fscanf(FILE *fp,char *fmt,...)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  undefined4 in_a2;
  undefined4 in_a3;
  undefined4 local_res8;
  undefined4 local_resc;
  va_list ap;
  
  puVar1 = PTR___stack_chk_guard_00097540;
  iVar2 = *(int *)PTR___stack_chk_guard_00097540;
  local_res8 = in_a2;
  local_resc = in_a3;
  iVar3 = (*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,fp,fmt,&local_res8);
  if (iVar2 == *(int *)puVar1) {
    return iVar3;
  }
  iVar2 = (*(code *)PTR___stack_chk_fail_000974d0)();
  return iVar2;
}



void __gmp_fscanf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined *puVar1;
  int iVar2;
  undefined4 local_res8;
  undefined4 local_resc;
  
  puVar1 = PTR___stack_chk_guard_00097540;
  iVar2 = *(int *)PTR___stack_chk_guard_00097540;
  local_res8 = param_3;
  local_resc = param_4;
  (*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8);
  if (iVar2 == *(int *)puVar1) {
    return;
  }
  (*(code *)PTR___stack_chk_fail_000974d0)();
  return;
}


lui gp,0x2
addiu gp,gp,0x3b50
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7aac(gp)
addiu v0,sp,0x30
sw s0,0x20(sp)
sw a2,0x30(sp)
or a2,a1,zero
sw a3,0x34(sp)
or a3,v0,zero
sw v0,0x18(sp)
or a1,a0,zero
lw s0,-0x7b00(gp)
lw a0,-0x7fa0(gp)
sw gp,0x10(sp)
sw ra,0x24(sp)
lw v0,0x0(s0)
sw v0,0x1c(sp)
jalr t9
_nop
lw a0,0x1c(sp)
lw v1,0x0(s0)
bne a0,v1,0x0007b564
_lw gp,0x10(sp)
lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7b70(gp)
jalr t9
_nop
jr ra
_nop
(translation_unit "void __gmp_fscanf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR___stack_chk_guard_00097540;\n  iVar2 = *(int *)PTR___stack_chk_guard_00097540;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000974d0)();\n  return;\n}\n\n" (function_definition "void __gmp_fscanf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR___stack_chk_guard_00097540;\n  iVar2 = *(int *)PTR___stack_chk_guard_00097540;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000974d0)();\n  return;\n}" primitive_type (function_declarator "__gmp_fscanf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR___stack_chk_guard_00097540;\n  iVar2 = *(int *)PTR___stack_chk_guard_00097540;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000974d0)();\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00097540;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00097540" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_00097540;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_00097540" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00097540" * (cast_expression "(int *)PTR___stack_chk_guard_00097540" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" identifier = identifier) ;) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" identifier = identifier) ;) (expression_statement "(*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8);" (call_expression "(*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8)" (parenthesized_expression "(*(code *)PTR___gmp_doscan_00097594)" ( (pointer_expression "*(code *)PTR___gmp_doscan_00097594" * (cast_expression "(code *)PTR___gmp_doscan_00097594" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8)" ( identifier , identifier , identifier , (pointer_expression "&local_res8" & identifier) ))) ;) (if_statement "if (iVar2 == *(int *)puVar1) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar1)" ( (binary_expression "iVar2 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000974d0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000974d0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000974d0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000974d0" * (cast_expression "(code *)PTR___stack_chk_fail_000974d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "int __gmp_fscanf(FILE *fp,char *fmt,...)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  va_list ap;\n  \n  puVar1 = PTR___stack_chk_guard_00097540;\n  iVar2 = *(int *)PTR___stack_chk_guard_00097540;\n  local_res8 = in_a2;\n  local_resc = in_a3;\n  iVar3 = (*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,fp,fmt,&local_res8);\n  if (iVar2 == *(int *)puVar1) {\n    return iVar3;\n  }\n  iVar2 = (*(code *)PTR___stack_chk_fail_000974d0)();\n  return iVar2;\n}\n\n" (function_definition "int __gmp_fscanf(FILE *fp,char *fmt,...)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  va_list ap;\n  \n  puVar1 = PTR___stack_chk_guard_00097540;\n  iVar2 = *(int *)PTR___stack_chk_guard_00097540;\n  local_res8 = in_a2;\n  local_resc = in_a3;\n  iVar3 = (*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,fp,fmt,&local_res8);\n  if (iVar2 == *(int *)puVar1) {\n    return iVar3;\n  }\n  iVar2 = (*(code *)PTR___stack_chk_fail_000974d0)();\n  return iVar2;\n}" primitive_type (function_declarator "__gmp_fscanf(FILE *fp,char *fmt,...)" identifier (parameter_list "(FILE *fp,char *fmt,...)" ( (parameter_declaration "FILE *fp" type_identifier (pointer_declarator "*fp" * identifier)) , (parameter_declaration "char *fmt" primitive_type (pointer_declarator "*fmt" * identifier)) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  va_list ap;\n  \n  puVar1 = PTR___stack_chk_guard_00097540;\n  iVar2 = *(int *)PTR___stack_chk_guard_00097540;\n  local_res8 = in_a2;\n  local_resc = in_a3;\n  iVar3 = (*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,fp,fmt,&local_res8);\n  if (iVar2 == *(int *)puVar1) {\n    return iVar3;\n  }\n  iVar2 = (*(code *)PTR___stack_chk_fail_000974d0)();\n  return iVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 in_a2;" type_identifier identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (declaration "va_list ap;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00097540;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00097540" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_00097540;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_00097540" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00097540" * (cast_expression "(int *)PTR___stack_chk_guard_00097540" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res8 = in_a2;" (assignment_expression "local_res8 = in_a2" identifier = identifier) ;) (expression_statement "local_resc = in_a3;" (assignment_expression "local_resc = in_a3" identifier = identifier) ;) (expression_statement "iVar3 = (*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,fp,fmt,&local_res8);" (assignment_expression "iVar3 = (*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,fp,fmt,&local_res8)" identifier = (call_expression "(*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,fp,fmt,&local_res8)" (parenthesized_expression "(*(code *)PTR___gmp_doscan_00097594)" ( (pointer_expression "*(code *)PTR___gmp_doscan_00097594" * (cast_expression "(code *)PTR___gmp_doscan_00097594" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR___gmp_fscanf_funs_000970a0,fp,fmt,&local_res8)" ( identifier , identifier , identifier , (pointer_expression "&local_res8" & identifier) )))) ;) (if_statement "if (iVar2 == *(int *)puVar1) {\n    return iVar3;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar1)" ( (binary_expression "iVar2 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar3;\n  }" { (return_statement "return iVar3;" return identifier ;) })) (expression_statement "iVar2 = (*(code *)PTR___stack_chk_fail_000974d0)();" (assignment_expression "iVar2 = (*(code *)PTR___stack_chk_fail_000974d0)()" identifier = (call_expression "(*(code *)PTR___stack_chk_fail_000974d0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000974d0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000974d0" * (cast_expression "(code *)PTR___stack_chk_fail_000974d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "void __gmp_fscanf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR___stack_chk_guard_00097540;\n  iVar2 = *(int *)PTR___stack_chk_guard_00097540;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000974d0)();\n  return;\n}\n\n" (function_definition "void __gmp_fscanf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR___stack_chk_guard_00097540;\n  iVar2 = *(int *)PTR___stack_chk_guard_00097540;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000974d0)();\n  return;\n}" primitive_type (function_declarator "__gmp_fscanf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR___stack_chk_guard_00097540;\n  iVar2 = *(int *)PTR___stack_chk_guard_00097540;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000974d0)();\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00097540;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00097540" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_00097540;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_00097540" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00097540" * (cast_expression "(int *)PTR___stack_chk_guard_00097540" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" identifier = identifier) ;) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" identifier = identifier) ;) (expression_statement "(*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8);" (call_expression "(*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8)" (parenthesized_expression "(*(code *)PTR___gmp_doscan_00097594)" ( (pointer_expression "*(code *)PTR___gmp_doscan_00097594" * (cast_expression "(code *)PTR___gmp_doscan_00097594" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8)" ( identifier , identifier , identifier , (pointer_expression "&local_res8" & identifier) ))) ;) (if_statement "if (iVar2 == *(int *)puVar1) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar1)" ( (binary_expression "iVar2 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000974d0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000974d0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000974d0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000974d0" * (cast_expression "(code *)PTR___stack_chk_fail_000974d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (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 IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void __gmp_fscanf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR___stack_chk_guard_00097540;\n  iVar2 = *(int *)PTR___stack_chk_guard_00097540;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000974d0)();\n  return;\n}" (primitive_type "void") (function_declarator "__gmp_fscanf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "__gmp_fscanf") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR___stack_chk_guard_00097540;\n  iVar2 = *(int *)PTR___stack_chk_guard_00097540;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000974d0)();\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 local_res8;" (type_identifier "undefined4") (identifier "local_res8") (; ";")) (declaration "undefined4 local_resc;" (type_identifier "undefined4") (identifier "local_resc") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_00097540;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00097540" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_00097540")) (; ";")) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_00097540;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_00097540" (identifier "iVar2") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00097540" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00097540" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00097540")))) (; ";")) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" (identifier "local_res8") (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" (identifier "local_resc") (= "=") (identifier "param_4")) (; ";")) (expression_statement "(*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8);" (call_expression "(*(code *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8)" (parenthesized_expression "(*(code *)PTR___gmp_doscan_00097594)" (( "(") (pointer_expression "*(code *)PTR___gmp_doscan_00097594" (* "*") (cast_expression "(code *)PTR___gmp_doscan_00097594" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___gmp_doscan_00097594"))) () ")")) (argument_list "(PTR___gmp_fscanf_funs_000970a0,param_1,param_2,&local_res8)" (( "(") (identifier "PTR___gmp_fscanf_funs_000970a0") (, ",") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_res8" (& "&") (identifier "local_res8")) () ")"))) (; ";")) (if_statement "if (iVar2 == *(int *)puVar1) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar2 == *(int *)puVar1)" (( "(") (binary_expression "iVar2 == *(int *)puVar1" (identifier "iVar2") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___stack_chk_fail_000974d0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000974d0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000974d0)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000974d0" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000974d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000974d0"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

int function_1(type_1 *fp,char *fmt,...)

{
  type_2 *puVar1;
  int var_1;
  int iVar3;
  type_3 in_a2;
  type_3 in_a3;
  type_3 local_res8;
  type_3 local_resc;
  type_4 ap;
  
  puVar1 = PTR___stack_chk_guard_00097540;
  var_1 = *(int *)PTR___stack_chk_guard_00097540;
  local_res8 = in_a2;
  local_resc = in_a3;
  iVar3 = (*(type_5 *)PTR___gmp_doscan_00097594)(PTR___gmp_fscanf_funs_000970a0,fp,fmt,&local_res8);
  if (var_1 == *(int *)puVar1) {
    return iVar3;
  }
  var_1 = (*(type_5 *)PTR___stack_chk_fail_000974d0)();
  return var_1;
}


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

void MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined *puVar1;
  int iVar2;
  undefined4 local_res8;
  undefined4 local_resc;
  
  puVar1 = PTR___stack_chk_guard_00097540;
  iVar2 = *(int *)PTR___stack_chk_guard_00097540;
  local_res8 = param_3;
  local_resc = param_4;
  (*(code *)PTR___gmp_doscan_00097594)(PTR_MASKED_funs_000970a0,param_1,param_2,&local_res8);
  if (iVar2 == *(int *)puVar1) {
    return;
  }
  (*(code *)PTR___stack_chk_fail_000974d0)();
  return;
}

