
int set_termios_to_raw(int fd,termios *oldterm,int flags)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  termios *newterm_00;
  undefined4 *puVar4;
  undefined *puVar5;
  code *pcVar6;
  termios newterm;
  
  puVar5 = PTR___stack_chk_guard_0012b14c;
  newterm_00 = &newterm;
  iVar1 = *(int *)PTR___stack_chk_guard_0012b14c;
  get_termios_and_make_raw(fd,newterm_00,oldterm,flags);
  uVar3 = 0x540e;
  iVar2 = (*(code *)PTR_tcsetattr_0012afe4)(fd,0x540e,newterm_00);
  if (iVar1 == *(int *)puVar5) {
    return iVar2;
  }
  puVar5 = PTR___stack_chk_fail_0012b0c8;
  (*(code *)PTR___stack_chk_fail_0012b0c8)();
  puVar4 = *(undefined4 **)(puVar5 + 0x1103ac);
  pcVar6 = *(code **)(puVar5 + 0x1111bc);
  do {
    iVar2 = (*pcVar6)(iVar1,uVar3,newterm_00);
    if (iVar2 != -1) {
      return iVar2;
    }
    pcVar6 = *(code **)(puVar5 + 0x1111bc);
  } while (*(int *)*puVar4 == 4);
  return -1;
}



void FUN_00019dcc(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  undefined1 *puVar4;
  undefined4 *puVar5;
  undefined *puVar6;
  code *pcVar7;
  undefined1 auStack_48 [52];
  int local_14;
  
  puVar6 = PTR___stack_chk_guard_0012b14c;
  puVar4 = auStack_48;
  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;
  FUN_00019c94(param_1,puVar4,param_2,param_3);
  uVar3 = 0x540e;
  (*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4);
  if (local_14 == *(int *)puVar6) {
    return;
  }
  iVar2 = local_14;
  puVar6 = PTR___stack_chk_fail_0012b0c8;
  (*(code *)PTR___stack_chk_fail_0012b0c8)();
  puVar5 = *(undefined4 **)(puVar6 + 0x1103ac);
  pcVar7 = *(code **)(puVar6 + 0x1111bc);
  do {
    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);
    if (iVar1 != -1) {
      return;
    }
    pcVar7 = *(code **)(puVar6 + 0x1111bc);
  } while (*(int *)*puVar5 == 4);
  return;
}


lui gp,0x12
addiu gp,gp,-0x7c7c
addu gp,gp,t9
addiu sp,sp,-0x60
lw t9,-0x7ee4(gp)
or a3,a2,zero
or a2,a1,zero
sw s1,0x54(sp)
lw s1,-0x7004(gp)
sw s0,0x50(sp)
addiu s0,sp,0x18
sw gp,0x10(sp)
sw ra,0x5c(sp)
or a1,s0,zero
sw s2,0x58(sp)
or s2,a0,zero
lw v0,0x0(s1)
sw v0,0x4c(sp)
bal 0x00019c94
_nop
li a1,0x540e
lw gp,0x10(sp)
or a0,s2,zero
lw t9,-0x716c(gp)
jalr t9
_or a2,s0,zero
lw a0,0x4c(sp)
lw v1,0x0(s1)
bne a0,v1,0x00019e5c
_lw gp,0x10(sp)
lw ra,0x5c(sp)
lw s2,0x58(sp)
lw s1,0x54(sp)
lw s0,0x50(sp)
jr ra
_addiu sp,sp,0x60
lw t9,-0x7088(gp)
jalr t9
_nop
(translation_unit "void FUN_00019dcc(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_48 [52];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_0012b14c;\n  puVar4 = auStack_48;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  FUN_00019c94(param_1,puVar4,param_2,param_3);\n  uVar3 = 0x540e;\n  (*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  puVar5 = *(undefined4 **)(puVar6 + 0x1103ac);\n  pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  do {\n    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);\n    if (iVar1 != -1) {\n      return;\n    }\n    pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  } while (*(int *)*puVar5 == 4);\n  return;\n}\n\n" (function_definition "void FUN_00019dcc(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_48 [52];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_0012b14c;\n  puVar4 = auStack_48;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  FUN_00019c94(param_1,puVar4,param_2,param_3);\n  uVar3 = 0x540e;\n  (*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  puVar5 = *(undefined4 **)(puVar6 + 0x1103ac);\n  pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  do {\n    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);\n    if (iVar1 != -1) {\n      return;\n    }\n    pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  } while (*(int *)*puVar5 == 4);\n  return;\n}" primitive_type (function_declarator "FUN_00019dcc(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 identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_48 [52];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_0012b14c;\n  puVar4 = auStack_48;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  FUN_00019c94(param_1,puVar4,param_2,param_3);\n  uVar3 = 0x540e;\n  (*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  puVar5 = *(undefined4 **)(puVar6 + 0x1103ac);\n  pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  do {\n    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);\n    if (iVar1 != -1) {\n      return;\n    }\n    pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  } while (*(int *)*puVar5 == 4);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined1 auStack_48 [52];" type_identifier (array_declarator "auStack_48 [52]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar6 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "puVar4 = auStack_48;" (assignment_expression "puVar4 = auStack_48" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "FUN_00019c94(param_1,puVar4,param_2,param_3);" (call_expression "FUN_00019c94(param_1,puVar4,param_2,param_3)" identifier (argument_list "(param_1,puVar4,param_2,param_3)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "uVar3 = 0x540e;" (assignment_expression "uVar3 = 0x540e" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4);" (call_expression "(*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4)" (parenthesized_expression "(*(code *)PTR_tcsetattr_0012afe4)" ( (pointer_expression "*(code *)PTR_tcsetattr_0012afe4" * (cast_expression "(code *)PTR_tcsetattr_0012afe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x540e,puVar4)" ( identifier , number_literal , identifier ))) ;) (if_statement "if (local_14 == *(int *)puVar6) {\n    return;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar6)" ( (binary_expression "local_14 == *(int *)puVar6" identifier == (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" identifier = identifier) ;) (expression_statement "puVar6 = PTR___stack_chk_fail_0012b0c8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_0012b0c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar5 = *(undefined4 **)(puVar6 + 0x1103ac);" (assignment_expression "puVar5 = *(undefined4 **)(puVar6 + 0x1103ac)" identifier = (pointer_expression "*(undefined4 **)(puVar6 + 0x1103ac)" * (cast_expression "(undefined4 **)(puVar6 + 0x1103ac)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x1103ac)" ( (binary_expression "puVar6 + 0x1103ac" identifier + number_literal) ))))) ;) (expression_statement "pcVar7 = *(code **)(puVar6 + 0x1111bc);" (assignment_expression "pcVar7 = *(code **)(puVar6 + 0x1111bc)" identifier = (pointer_expression "*(code **)(puVar6 + 0x1111bc)" * (cast_expression "(code **)(puVar6 + 0x1111bc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x1111bc)" ( (binary_expression "puVar6 + 0x1111bc" identifier + number_literal) ))))) ;) (do_statement "do {\n    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);\n    if (iVar1 != -1) {\n      return;\n    }\n    pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  } while (*(int *)*puVar5 == 4);" do (compound_statement "{\n    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);\n    if (iVar1 != -1) {\n      return;\n    }\n    pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  }" { (expression_statement "iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);" (assignment_expression "iVar1 = (*pcVar7)(iVar2,uVar3,puVar4)" identifier = (call_expression "(*pcVar7)(iVar2,uVar3,puVar4)" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "(iVar2,uVar3,puVar4)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != -1) {\n      return;\n    }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "pcVar7 = *(code **)(puVar6 + 0x1111bc);" (assignment_expression "pcVar7 = *(code **)(puVar6 + 0x1111bc)" identifier = (pointer_expression "*(code **)(puVar6 + 0x1111bc)" * (cast_expression "(code **)(puVar6 + 0x1111bc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x1111bc)" ( (binary_expression "puVar6 + 0x1111bc" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(*(int *)*puVar5 == 4)" ( (binary_expression "*(int *)*puVar5 == 4" (pointer_expression "*(int *)*puVar5" * (cast_expression "(int *)*puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) == number_literal) )) ;) (return_statement "return;" return ;) })))
(translation_unit "int set_termios_to_raw(int fd,termios *oldterm,int flags)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  termios *newterm_00;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  termios newterm;\n  \n  puVar5 = PTR___stack_chk_guard_0012b14c;\n  newterm_00 = &newterm;\n  iVar1 = *(int *)PTR___stack_chk_guard_0012b14c;\n  get_termios_and_make_raw(fd,newterm_00,oldterm,flags);\n  uVar3 = 0x540e;\n  iVar2 = (*(code *)PTR_tcsetattr_0012afe4)(fd,0x540e,newterm_00);\n  if (iVar1 == *(int *)puVar5) {\n    return iVar2;\n  }\n  puVar5 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  puVar4 = *(undefined4 **)(puVar5 + 0x1103ac);\n  pcVar6 = *(code **)(puVar5 + 0x1111bc);\n  do {\n    iVar2 = (*pcVar6)(iVar1,uVar3,newterm_00);\n    if (iVar2 != -1) {\n      return iVar2;\n    }\n    pcVar6 = *(code **)(puVar5 + 0x1111bc);\n  } while (*(int *)*puVar4 == 4);\n  return -1;\n}\n\n" (function_definition "int set_termios_to_raw(int fd,termios *oldterm,int flags)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  termios *newterm_00;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  termios newterm;\n  \n  puVar5 = PTR___stack_chk_guard_0012b14c;\n  newterm_00 = &newterm;\n  iVar1 = *(int *)PTR___stack_chk_guard_0012b14c;\n  get_termios_and_make_raw(fd,newterm_00,oldterm,flags);\n  uVar3 = 0x540e;\n  iVar2 = (*(code *)PTR_tcsetattr_0012afe4)(fd,0x540e,newterm_00);\n  if (iVar1 == *(int *)puVar5) {\n    return iVar2;\n  }\n  puVar5 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  puVar4 = *(undefined4 **)(puVar5 + 0x1103ac);\n  pcVar6 = *(code **)(puVar5 + 0x1111bc);\n  do {\n    iVar2 = (*pcVar6)(iVar1,uVar3,newterm_00);\n    if (iVar2 != -1) {\n      return iVar2;\n    }\n    pcVar6 = *(code **)(puVar5 + 0x1111bc);\n  } while (*(int *)*puVar4 == 4);\n  return -1;\n}" primitive_type (function_declarator "set_termios_to_raw(int fd,termios *oldterm,int flags)" identifier (parameter_list "(int fd,termios *oldterm,int flags)" ( (parameter_declaration "int fd" primitive_type identifier) , (parameter_declaration "termios *oldterm" type_identifier (pointer_declarator "*oldterm" * identifier)) , (parameter_declaration "int flags" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  termios *newterm_00;\n  undefined4 *puVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  termios newterm;\n  \n  puVar5 = PTR___stack_chk_guard_0012b14c;\n  newterm_00 = &newterm;\n  iVar1 = *(int *)PTR___stack_chk_guard_0012b14c;\n  get_termios_and_make_raw(fd,newterm_00,oldterm,flags);\n  uVar3 = 0x540e;\n  iVar2 = (*(code *)PTR_tcsetattr_0012afe4)(fd,0x540e,newterm_00);\n  if (iVar1 == *(int *)puVar5) {\n    return iVar2;\n  }\n  puVar5 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  puVar4 = *(undefined4 **)(puVar5 + 0x1103ac);\n  pcVar6 = *(code **)(puVar5 + 0x1111bc);\n  do {\n    iVar2 = (*pcVar6)(iVar1,uVar3,newterm_00);\n    if (iVar2 != -1) {\n      return iVar2;\n    }\n    pcVar6 = *(code **)(puVar5 + 0x1111bc);\n  } while (*(int *)*puVar4 == 4);\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "termios *newterm_00;" type_identifier (pointer_declarator "*newterm_00" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "termios newterm;" type_identifier identifier ;) (expression_statement "puVar5 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar5 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "newterm_00 = &newterm;" (assignment_expression "newterm_00 = &newterm" identifier = (pointer_expression "&newterm" & identifier)) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "get_termios_and_make_raw(fd,newterm_00,oldterm,flags);" (call_expression "get_termios_and_make_raw(fd,newterm_00,oldterm,flags)" identifier (argument_list "(fd,newterm_00,oldterm,flags)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "uVar3 = 0x540e;" (assignment_expression "uVar3 = 0x540e" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_tcsetattr_0012afe4)(fd,0x540e,newterm_00);" (assignment_expression "iVar2 = (*(code *)PTR_tcsetattr_0012afe4)(fd,0x540e,newterm_00)" identifier = (call_expression "(*(code *)PTR_tcsetattr_0012afe4)(fd,0x540e,newterm_00)" (parenthesized_expression "(*(code *)PTR_tcsetattr_0012afe4)" ( (pointer_expression "*(code *)PTR_tcsetattr_0012afe4" * (cast_expression "(code *)PTR_tcsetattr_0012afe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fd,0x540e,newterm_00)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 == *(int *)puVar5) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar1 == *(int *)puVar5)" ( (binary_expression "iVar1 == *(int *)puVar5" identifier == (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "puVar5 = PTR___stack_chk_fail_0012b0c8;" (assignment_expression "puVar5 = PTR___stack_chk_fail_0012b0c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar4 = *(undefined4 **)(puVar5 + 0x1103ac);" (assignment_expression "puVar4 = *(undefined4 **)(puVar5 + 0x1103ac)" identifier = (pointer_expression "*(undefined4 **)(puVar5 + 0x1103ac)" * (cast_expression "(undefined4 **)(puVar5 + 0x1103ac)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x1103ac)" ( (binary_expression "puVar5 + 0x1103ac" identifier + number_literal) ))))) ;) (expression_statement "pcVar6 = *(code **)(puVar5 + 0x1111bc);" (assignment_expression "pcVar6 = *(code **)(puVar5 + 0x1111bc)" identifier = (pointer_expression "*(code **)(puVar5 + 0x1111bc)" * (cast_expression "(code **)(puVar5 + 0x1111bc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x1111bc)" ( (binary_expression "puVar5 + 0x1111bc" identifier + number_literal) ))))) ;) (do_statement "do {\n    iVar2 = (*pcVar6)(iVar1,uVar3,newterm_00);\n    if (iVar2 != -1) {\n      return iVar2;\n    }\n    pcVar6 = *(code **)(puVar5 + 0x1111bc);\n  } while (*(int *)*puVar4 == 4);" do (compound_statement "{\n    iVar2 = (*pcVar6)(iVar1,uVar3,newterm_00);\n    if (iVar2 != -1) {\n      return iVar2;\n    }\n    pcVar6 = *(code **)(puVar5 + 0x1111bc);\n  }" { (expression_statement "iVar2 = (*pcVar6)(iVar1,uVar3,newterm_00);" (assignment_expression "iVar2 = (*pcVar6)(iVar1,uVar3,newterm_00)" identifier = (call_expression "(*pcVar6)(iVar1,uVar3,newterm_00)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(iVar1,uVar3,newterm_00)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 != -1) {\n      return iVar2;\n    }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "pcVar6 = *(code **)(puVar5 + 0x1111bc);" (assignment_expression "pcVar6 = *(code **)(puVar5 + 0x1111bc)" identifier = (pointer_expression "*(code **)(puVar5 + 0x1111bc)" * (cast_expression "(code **)(puVar5 + 0x1111bc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x1111bc)" ( (binary_expression "puVar5 + 0x1111bc" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(*(int *)*puVar4 == 4)" ( (binary_expression "*(int *)*puVar4 == 4" (pointer_expression "*(int *)*puVar4" * (cast_expression "(int *)*puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) == number_literal) )) ;) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "void FUN_00019dcc(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_48 [52];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_0012b14c;\n  puVar4 = auStack_48;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  FUN_00019c94(param_1,puVar4,param_2,param_3);\n  uVar3 = 0x540e;\n  (*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  puVar5 = *(undefined4 **)(puVar6 + 0x1103ac);\n  pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  do {\n    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);\n    if (iVar1 != -1) {\n      return;\n    }\n    pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  } while (*(int *)*puVar5 == 4);\n  return;\n}\n\n" (function_definition "void FUN_00019dcc(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_48 [52];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_0012b14c;\n  puVar4 = auStack_48;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  FUN_00019c94(param_1,puVar4,param_2,param_3);\n  uVar3 = 0x540e;\n  (*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  puVar5 = *(undefined4 **)(puVar6 + 0x1103ac);\n  pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  do {\n    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);\n    if (iVar1 != -1) {\n      return;\n    }\n    pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  } while (*(int *)*puVar5 == 4);\n  return;\n}" primitive_type (function_declarator "FUN_00019dcc(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 identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_48 [52];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_0012b14c;\n  puVar4 = auStack_48;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  FUN_00019c94(param_1,puVar4,param_2,param_3);\n  uVar3 = 0x540e;\n  (*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  puVar5 = *(undefined4 **)(puVar6 + 0x1103ac);\n  pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  do {\n    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);\n    if (iVar1 != -1) {\n      return;\n    }\n    pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  } while (*(int *)*puVar5 == 4);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined1 auStack_48 [52];" type_identifier (array_declarator "auStack_48 [52]" identifier [ number_literal ]) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar6 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "puVar4 = auStack_48;" (assignment_expression "puVar4 = auStack_48" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "FUN_00019c94(param_1,puVar4,param_2,param_3);" (call_expression "FUN_00019c94(param_1,puVar4,param_2,param_3)" identifier (argument_list "(param_1,puVar4,param_2,param_3)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "uVar3 = 0x540e;" (assignment_expression "uVar3 = 0x540e" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4);" (call_expression "(*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4)" (parenthesized_expression "(*(code *)PTR_tcsetattr_0012afe4)" ( (pointer_expression "*(code *)PTR_tcsetattr_0012afe4" * (cast_expression "(code *)PTR_tcsetattr_0012afe4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0x540e,puVar4)" ( identifier , number_literal , identifier ))) ;) (if_statement "if (local_14 == *(int *)puVar6) {\n    return;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar6)" ( (binary_expression "local_14 == *(int *)puVar6" identifier == (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" identifier = identifier) ;) (expression_statement "puVar6 = PTR___stack_chk_fail_0012b0c8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_0012b0c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar5 = *(undefined4 **)(puVar6 + 0x1103ac);" (assignment_expression "puVar5 = *(undefined4 **)(puVar6 + 0x1103ac)" identifier = (pointer_expression "*(undefined4 **)(puVar6 + 0x1103ac)" * (cast_expression "(undefined4 **)(puVar6 + 0x1103ac)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x1103ac)" ( (binary_expression "puVar6 + 0x1103ac" identifier + number_literal) ))))) ;) (expression_statement "pcVar7 = *(code **)(puVar6 + 0x1111bc);" (assignment_expression "pcVar7 = *(code **)(puVar6 + 0x1111bc)" identifier = (pointer_expression "*(code **)(puVar6 + 0x1111bc)" * (cast_expression "(code **)(puVar6 + 0x1111bc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x1111bc)" ( (binary_expression "puVar6 + 0x1111bc" identifier + number_literal) ))))) ;) (do_statement "do {\n    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);\n    if (iVar1 != -1) {\n      return;\n    }\n    pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  } while (*(int *)*puVar5 == 4);" do (compound_statement "{\n    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);\n    if (iVar1 != -1) {\n      return;\n    }\n    pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  }" { (expression_statement "iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);" (assignment_expression "iVar1 = (*pcVar7)(iVar2,uVar3,puVar4)" identifier = (call_expression "(*pcVar7)(iVar2,uVar3,puVar4)" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "(iVar2,uVar3,puVar4)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != -1) {\n      return;\n    }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "pcVar7 = *(code **)(puVar6 + 0x1111bc);" (assignment_expression "pcVar7 = *(code **)(puVar6 + 0x1111bc)" identifier = (pointer_expression "*(code **)(puVar6 + 0x1111bc)" * (cast_expression "(code **)(puVar6 + 0x1111bc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x1111bc)" ( (binary_expression "puVar6 + 0x1111bc" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(*(int *)*puVar5 == 4)" ( (binary_expression "*(int *)*puVar5 == 4" (pointer_expression "*(int *)*puVar5" * (cast_expression "(int *)*puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) == number_literal) )) ;) (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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = 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 (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , 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 (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 ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) == LIT) )) ;) (return_statement return ;) })))
(function_definition "void FUN_00019dcc(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_48 [52];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_0012b14c;\n  puVar4 = auStack_48;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  FUN_00019c94(param_1,puVar4,param_2,param_3);\n  uVar3 = 0x540e;\n  (*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  puVar5 = *(undefined4 **)(puVar6 + 0x1103ac);\n  pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  do {\n    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);\n    if (iVar1 != -1) {\n      return;\n    }\n    pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  } while (*(int *)*puVar5 == 4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00019dcc(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00019dcc") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (( "(") (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")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_48 [52];\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_0012b14c;\n  puVar4 = auStack_48;\n  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;\n  FUN_00019c94(param_1,puVar4,param_2,param_3);\n  uVar3 = 0x540e;\n  (*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4);\n  if (local_14 == *(int *)puVar6) {\n    return;\n  }\n  iVar2 = local_14;\n  puVar6 = PTR___stack_chk_fail_0012b0c8;\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  puVar5 = *(undefined4 **)(puVar6 + 0x1103ac);\n  pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  do {\n    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);\n    if (iVar1 != -1) {\n      return;\n    }\n    pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  } while (*(int *)*puVar5 == 4);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "code *pcVar7;" (type_identifier "code") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "undefined1 auStack_48 [52];" (type_identifier "undefined1") (array_declarator "auStack_48 [52]" (identifier "auStack_48") ([ "[") (number_literal "52") (] "]")) (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar6 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar6 = PTR___stack_chk_guard_0012b14c" (identifier "puVar6") (= "=") (identifier "PTR___stack_chk_guard_0012b14c")) (; ";")) (expression_statement "puVar4 = auStack_48;" (assignment_expression "puVar4 = auStack_48" (identifier "puVar4") (= "=") (identifier "auStack_48")) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0012b14c" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0012b14c")))) (; ";")) (expression_statement "FUN_00019c94(param_1,puVar4,param_2,param_3);" (call_expression "FUN_00019c94(param_1,puVar4,param_2,param_3)" (identifier "FUN_00019c94") (argument_list "(param_1,puVar4,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "puVar4") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "uVar3 = 0x540e;" (assignment_expression "uVar3 = 0x540e" (identifier "uVar3") (= "=") (number_literal "0x540e")) (; ";")) (expression_statement "(*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4);" (call_expression "(*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4)" (parenthesized_expression "(*(code *)PTR_tcsetattr_0012afe4)" (( "(") (pointer_expression "*(code *)PTR_tcsetattr_0012afe4" (* "*") (cast_expression "(code *)PTR_tcsetattr_0012afe4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_tcsetattr_0012afe4"))) () ")")) (argument_list "(param_1,0x540e,puVar4)" (( "(") (identifier "param_1") (, ",") (number_literal "0x540e") (, ",") (identifier "puVar4") () ")"))) (; ";")) (if_statement "if (local_14 == *(int *)puVar6) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_14 == *(int *)puVar6)" (( "(") (binary_expression "local_14 == *(int *)puVar6" (identifier "local_14") (== "==") (pointer_expression "*(int *)puVar6" (* "*") (cast_expression "(int *)puVar6" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar6")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = local_14;" (assignment_expression "iVar2 = local_14" (identifier "iVar2") (= "=") (identifier "local_14")) (; ";")) (expression_statement "puVar6 = PTR___stack_chk_fail_0012b0c8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_0012b0c8" (identifier "puVar6") (= "=") (identifier "PTR___stack_chk_fail_0012b0c8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0012b0c8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar5 = *(undefined4 **)(puVar6 + 0x1103ac);" (assignment_expression "puVar5 = *(undefined4 **)(puVar6 + 0x1103ac)" (identifier "puVar5") (= "=") (pointer_expression "*(undefined4 **)(puVar6 + 0x1103ac)" (* "*") (cast_expression "(undefined4 **)(puVar6 + 0x1103ac)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x1103ac)" (( "(") (binary_expression "puVar6 + 0x1103ac" (identifier "puVar6") (+ "+") (number_literal "0x1103ac")) () ")"))))) (; ";")) (expression_statement "pcVar7 = *(code **)(puVar6 + 0x1111bc);" (assignment_expression "pcVar7 = *(code **)(puVar6 + 0x1111bc)" (identifier "pcVar7") (= "=") (pointer_expression "*(code **)(puVar6 + 0x1111bc)" (* "*") (cast_expression "(code **)(puVar6 + 0x1111bc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x1111bc)" (( "(") (binary_expression "puVar6 + 0x1111bc" (identifier "puVar6") (+ "+") (number_literal "0x1111bc")) () ")"))))) (; ";")) (do_statement "do {\n    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);\n    if (iVar1 != -1) {\n      return;\n    }\n    pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  } while (*(int *)*puVar5 == 4);" (do "do") (compound_statement "{\n    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);\n    if (iVar1 != -1) {\n      return;\n    }\n    pcVar7 = *(code **)(puVar6 + 0x1111bc);\n  }" ({ "{") (expression_statement "iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);" (assignment_expression "iVar1 = (*pcVar7)(iVar2,uVar3,puVar4)" (identifier "iVar1") (= "=") (call_expression "(*pcVar7)(iVar2,uVar3,puVar4)" (parenthesized_expression "(*pcVar7)" (( "(") (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) () ")")) (argument_list "(iVar2,uVar3,puVar4)" (( "(") (identifier "iVar2") (, ",") (identifier "uVar3") (, ",") (identifier "puVar4") () ")")))) (; ";")) (if_statement "if (iVar1 != -1) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 != -1)" (( "(") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar7 = *(code **)(puVar6 + 0x1111bc);" (assignment_expression "pcVar7 = *(code **)(puVar6 + 0x1111bc)" (identifier "pcVar7") (= "=") (pointer_expression "*(code **)(puVar6 + 0x1111bc)" (* "*") (cast_expression "(code **)(puVar6 + 0x1111bc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x1111bc)" (( "(") (binary_expression "puVar6 + 0x1111bc" (identifier "puVar6") (+ "+") (number_literal "0x1111bc")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(int *)*puVar5 == 4)" (( "(") (binary_expression "*(int *)*puVar5 == 4" (pointer_expression "*(int *)*puVar5" (* "*") (cast_expression "(int *)*puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (== "==") (number_literal "4")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) 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: (identifier)))) arguments: (argument_list (identifier) (number_literal) (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 (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))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator 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: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (number_literal)))) (return_statement))))

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

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  undefined1 *puVar4;
  undefined4 *puVar5;
  undefined *puVar6;
  code *pcVar7;
  undefined1 auStack_48 [52];
  int local_14;
  
  puVar6 = PTR___stack_chk_guard_0012b14c;
  puVar4 = auStack_48;
  local_14 = *(int *)PTR___stack_chk_guard_0012b14c;
  FUN_00019c94(param_1,puVar4,param_2,param_3);
  uVar3 = 0x540e;
  (*(code *)PTR_tcsetattr_0012afe4)(param_1,0x540e,puVar4);
  if (local_14 == *(int *)puVar6) {
    return;
  }
  iVar2 = local_14;
  puVar6 = PTR___stack_chk_fail_0012b0c8;
  (*(code *)PTR___stack_chk_fail_0012b0c8)();
  puVar5 = *(undefined4 **)(puVar6 + 0x1103ac);
  pcVar7 = *(code **)(puVar6 + 0x1111bc);
  do {
    iVar1 = (*pcVar7)(iVar2,uVar3,puVar4);
    if (iVar1 != -1) {
      return;
    }
    pcVar7 = *(code **)(puVar6 + 0x1111bc);
  } while (*(int *)*puVar5 == 4);
  return;
}

