
/* WARNING: Unknown calling convention */

char * read_label(void)

{
  buffer *b;
  int c;
  int *piVar1;
  char *pcVar2;
  
  b = init_buffer();
  c = in_nonblank();
  if (c == -1) {
LAB_000138e8:
    c = -1;
  }
  else {
    if (c != 10) {
      piVar1 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();
      do {
        if (((((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d)) ||
           (c == 0x23)) goto LAB_00013864;
        add1_buffer(b,c);
        c = inchar();
        if (c == -1) goto LAB_000138e8;
      } while (c != 10);
    }
    c = 10;
  }
LAB_00013864:
  savchar(c);
  add1_buffer(b,0);
  pcVar2 = get_buffer(b);
  pcVar2 = xstrdup(pcVar2);
  free_buffer(b);
  return pcVar2;
}



undefined4 FUN_00013768(void)

{
  undefined4 uVar1;
  int iVar2;
  int *piVar3;
  undefined4 uVar4;
  
  uVar1 = init_buffer();
  iVar2 = FUN_0001362c();
  if (iVar2 == -1) {
LAB_000138e8:
    iVar2 = -1;
  }
  else {
    if (iVar2 != 10) {
      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();
      do {
        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||
            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;
        add1_buffer(uVar1,iVar2);
        iVar2 = FUN_00013550();
        if (iVar2 == -1) goto LAB_000138e8;
      } while (iVar2 != 10);
    }
    iVar2 = 10;
  }
LAB_00013864:
  FUN_000136a4(iVar2);
  add1_buffer(uVar1,0);
  uVar4 = get_buffer(uVar1);
  uVar4 = xstrdup(uVar4);
  free_buffer(uVar1);
  return uVar4;
}


lui gp,0x3
addiu gp,gp,0x39d8
addu gp,gp,t9
addiu sp,sp,-0x40
lw t9,-0x7f34(gp)
sw gp,0x10(sp)
sw ra,0x3c(sp)
sw s1,0x24(sp)
sw s6,0x38(sp)
sw s5,0x34(sp)
sw s4,0x30(sp)
sw s3,0x2c(sp)
sw s2,0x28(sp)
bal 0x0001d6bc
_sw s0,0x20(sp)
lw gp,0x10(sp)
lw t9,-0x7fcc(gp)
addiu t9,t9,0x362c
bal 0x0001362c
_or s1,v0,zero
li v1,-0x1
beq v0,v1,0x000138e8
_lw gp,0x10(sp)
or s0,v0,zero
li v0,0xa
beq s0,v0,0x000138f0
_lw t9,-0x7df0(gp)
li s3,0x3b
li s4,0x7d
jalr t9
_li s5,0x23
lw gp,0x10(sp)
or s6,v0,zero
lw s2,-0x7fcc(gp)
b 0x00013840
_addiu s2,s2,0x3550
beq s0,s3,0x00013864
_nop
beq s0,s4,0x00013864
_nop
beq s0,s5,0x00013864
_nop
bal 0x0001d7d0
_nop
or t9,s2,zero
bal 0x00013550
_nop
li v1,-0x1
lw gp,0x10(sp)
li a0,0xa
beq v0,v1,0x000138e8
_or s0,v0,zero
beq v0,a0,0x000138f0
_nop
lw v1,0x0(s6)
sll v0,s0,0x1
lw t9,-0x7f30(gp)
or a1,s0,zero
addu v0,v1,v0
lhu v0,0x0(v0)
andi v0,v0,0x100
beq v0,zero,0x000137f8
_or a0,s1,zero
lw t9,-0x7fcc(gp)
addiu t9,t9,0x36a4
bal 0x000136a4
_or a0,s0,zero
or a1,zero,zero
lw gp,0x10(sp)
lw t9,-0x7f30(gp)
bal 0x0001d7d0
_or a0,s1,zero
lw gp,0x10(sp)
lw t9,-0x7f2c(gp)
bal 0x0001d720
_or a0,s1,zero
lw gp,0x10(sp)
lw t9,-0x7f74(gp)
bal 0x00028afc
_or a0,v0,zero
or a0,s1,zero
lw gp,0x10(sp)
lw t9,-0x7f28(gp)
bal 0x0001d87c
_sw v0,0x1c(sp)
lw ra,0x3c(sp)
lw v0,0x1c(sp)
lw s6,0x38(sp)
lw s5,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x40
b 0x00013864
_li s0,-0x1
b 0x00013864
_li s0,0xa
(translation_unit "undefined4 FUN_00013768(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  \n  uVar1 = init_buffer();\n  iVar2 = FUN_0001362c();\n  if (iVar2 == -1) {\nLAB_000138e8:\n    iVar2 = -1;\n  }\n  else {\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }\nLAB_00013864:\n  FUN_000136a4(iVar2);\n  add1_buffer(uVar1,0);\n  uVar4 = get_buffer(uVar1);\n  uVar4 = xstrdup(uVar4);\n  free_buffer(uVar1);\n  return uVar4;\n}\n\n" (function_definition "undefined4 FUN_00013768(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  \n  uVar1 = init_buffer();\n  iVar2 = FUN_0001362c();\n  if (iVar2 == -1) {\nLAB_000138e8:\n    iVar2 = -1;\n  }\n  else {\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }\nLAB_00013864:\n  FUN_000136a4(iVar2);\n  add1_buffer(uVar1,0);\n  uVar4 = get_buffer(uVar1);\n  uVar4 = xstrdup(uVar4);\n  free_buffer(uVar1);\n  return uVar4;\n}" type_identifier (function_declarator "FUN_00013768(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  \n  uVar1 = init_buffer();\n  iVar2 = FUN_0001362c();\n  if (iVar2 == -1) {\nLAB_000138e8:\n    iVar2 = -1;\n  }\n  else {\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }\nLAB_00013864:\n  FUN_000136a4(iVar2);\n  add1_buffer(uVar1,0);\n  uVar4 = get_buffer(uVar1);\n  uVar4 = xstrdup(uVar4);\n  free_buffer(uVar1);\n  return uVar4;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "uVar1 = init_buffer();" (assignment_expression "uVar1 = init_buffer()" identifier = (call_expression "init_buffer()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = FUN_0001362c();" (assignment_expression "iVar2 = FUN_0001362c()" identifier = (call_expression "FUN_0001362c()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == -1) {\nLAB_000138e8:\n    iVar2 = -1;\n  }\n  else {\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\nLAB_000138e8:\n    iVar2 = -1;\n  }" { (labeled_statement "LAB_000138e8:\n    iVar2 = -1;" statement_identifier : (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;)) }) (else_clause "else {\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }" else (compound_statement "{\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }" { (if_statement "if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }" if (parenthesized_expression "(iVar2 != 10)" ( (binary_expression "iVar2 != 10" identifier != number_literal) )) (compound_statement "{\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }" { (expression_statement "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_0003f350)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_0003f350)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_0003f350)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_0003f350" * (cast_expression "(code *)PTR___ctype_b_loc_0003f350" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (do_statement "do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);" do (compound_statement "{\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      }" { (if_statement "if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;" if (parenthesized_expression "(((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23))" ( (binary_expression "((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)" (parenthesized_expression "((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d))" ( (binary_expression "(((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)" (parenthesized_expression "(((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b))" ( (binary_expression "((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)" (parenthesized_expression "((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0)" ( (binary_expression "(*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0" (parenthesized_expression "(*(ushort *)(*piVar3 + iVar2 * 2) & 0x100)" ( (binary_expression "*(ushort *)(*piVar3 + iVar2 * 2) & 0x100" (pointer_expression "*(ushort *)(*piVar3 + iVar2 * 2)" * (cast_expression "(ushort *)(*piVar3 + iVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + iVar2 * 2)" ( (binary_expression "*piVar3 + iVar2 * 2" (pointer_expression "*piVar3" * identifier) + (binary_expression "iVar2 * 2" identifier * number_literal)) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(iVar2 == 0x3b)" ( (binary_expression "iVar2 == 0x3b" identifier == number_literal) ))) )) || (parenthesized_expression "(iVar2 == 0x7d)" ( (binary_expression "iVar2 == 0x7d" identifier == number_literal) ))) )) || (parenthesized_expression "(iVar2 == 0x23)" ( (binary_expression "iVar2 == 0x23" identifier == number_literal) ))) )) (goto_statement "goto LAB_00013864;" goto statement_identifier ;)) (expression_statement "add1_buffer(uVar1,iVar2);" (call_expression "add1_buffer(uVar1,iVar2)" identifier (argument_list "(uVar1,iVar2)" ( identifier , identifier ))) ;) (expression_statement "iVar2 = FUN_00013550();" (assignment_expression "iVar2 = FUN_00013550()" identifier = (call_expression "FUN_00013550()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == -1) goto LAB_000138e8;" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (goto_statement "goto LAB_000138e8;" goto statement_identifier ;)) }) while (parenthesized_expression "(iVar2 != 10)" ( (binary_expression "iVar2 != 10" identifier != number_literal) )) ;) })) (expression_statement "iVar2 = 10;" (assignment_expression "iVar2 = 10" identifier = number_literal) ;) }))) (labeled_statement "LAB_00013864:\n  FUN_000136a4(iVar2);" statement_identifier : (expression_statement "FUN_000136a4(iVar2);" (call_expression "FUN_000136a4(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;)) (expression_statement "add1_buffer(uVar1,0);" (call_expression "add1_buffer(uVar1,0)" identifier (argument_list "(uVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar4 = get_buffer(uVar1);" (assignment_expression "uVar4 = get_buffer(uVar1)" identifier = (call_expression "get_buffer(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar4 = xstrdup(uVar4);" (assignment_expression "uVar4 = xstrdup(uVar4)" identifier = (call_expression "xstrdup(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "free_buffer(uVar1);" (call_expression "free_buffer(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nchar * read_label(void)\n\n{\n  buffer *b;\n  int c;\n  int *piVar1;\n  char *pcVar2;\n  \n  b = init_buffer();\n  c = in_nonblank();\n  if (c == -1) {\nLAB_000138e8:\n    c = -1;\n  }\n  else {\n    if (c != 10) {\n      piVar1 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d)) ||\n           (c == 0x23)) goto LAB_00013864;\n        add1_buffer(b,c);\n        c = inchar();\n        if (c == -1) goto LAB_000138e8;\n      } while (c != 10);\n    }\n    c = 10;\n  }\nLAB_00013864:\n  savchar(c);\n  add1_buffer(b,0);\n  pcVar2 = get_buffer(b);\n  pcVar2 = xstrdup(pcVar2);\n  free_buffer(b);\n  return pcVar2;\n}\n\n" comment (function_definition "char * read_label(void)\n\n{\n  buffer *b;\n  int c;\n  int *piVar1;\n  char *pcVar2;\n  \n  b = init_buffer();\n  c = in_nonblank();\n  if (c == -1) {\nLAB_000138e8:\n    c = -1;\n  }\n  else {\n    if (c != 10) {\n      piVar1 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d)) ||\n           (c == 0x23)) goto LAB_00013864;\n        add1_buffer(b,c);\n        c = inchar();\n        if (c == -1) goto LAB_000138e8;\n      } while (c != 10);\n    }\n    c = 10;\n  }\nLAB_00013864:\n  savchar(c);\n  add1_buffer(b,0);\n  pcVar2 = get_buffer(b);\n  pcVar2 = xstrdup(pcVar2);\n  free_buffer(b);\n  return pcVar2;\n}" primitive_type (pointer_declarator "* read_label(void)" * (function_declarator "read_label(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  buffer *b;\n  int c;\n  int *piVar1;\n  char *pcVar2;\n  \n  b = init_buffer();\n  c = in_nonblank();\n  if (c == -1) {\nLAB_000138e8:\n    c = -1;\n  }\n  else {\n    if (c != 10) {\n      piVar1 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d)) ||\n           (c == 0x23)) goto LAB_00013864;\n        add1_buffer(b,c);\n        c = inchar();\n        if (c == -1) goto LAB_000138e8;\n      } while (c != 10);\n    }\n    c = 10;\n  }\nLAB_00013864:\n  savchar(c);\n  add1_buffer(b,0);\n  pcVar2 = get_buffer(b);\n  pcVar2 = xstrdup(pcVar2);\n  free_buffer(b);\n  return pcVar2;\n}" { (declaration "buffer *b;" type_identifier (pointer_declarator "*b" * identifier) ;) (declaration "int c;" primitive_type identifier ;) (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "b = init_buffer();" (assignment_expression "b = init_buffer()" identifier = (call_expression "init_buffer()" identifier (argument_list "()" ( )))) ;) (expression_statement "c = in_nonblank();" (assignment_expression "c = in_nonblank()" identifier = (call_expression "in_nonblank()" identifier (argument_list "()" ( )))) ;) (if_statement "if (c == -1) {\nLAB_000138e8:\n    c = -1;\n  }\n  else {\n    if (c != 10) {\n      piVar1 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d)) ||\n           (c == 0x23)) goto LAB_00013864;\n        add1_buffer(b,c);\n        c = inchar();\n        if (c == -1) goto LAB_000138e8;\n      } while (c != 10);\n    }\n    c = 10;\n  }" if (parenthesized_expression "(c == -1)" ( (binary_expression "c == -1" identifier == number_literal) )) (compound_statement "{\nLAB_000138e8:\n    c = -1;\n  }" { (labeled_statement "LAB_000138e8:\n    c = -1;" statement_identifier : (expression_statement "c = -1;" (assignment_expression "c = -1" identifier = number_literal) ;)) }) (else_clause "else {\n    if (c != 10) {\n      piVar1 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d)) ||\n           (c == 0x23)) goto LAB_00013864;\n        add1_buffer(b,c);\n        c = inchar();\n        if (c == -1) goto LAB_000138e8;\n      } while (c != 10);\n    }\n    c = 10;\n  }" else (compound_statement "{\n    if (c != 10) {\n      piVar1 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d)) ||\n           (c == 0x23)) goto LAB_00013864;\n        add1_buffer(b,c);\n        c = inchar();\n        if (c == -1) goto LAB_000138e8;\n      } while (c != 10);\n    }\n    c = 10;\n  }" { (if_statement "if (c != 10) {\n      piVar1 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d)) ||\n           (c == 0x23)) goto LAB_00013864;\n        add1_buffer(b,c);\n        c = inchar();\n        if (c == -1) goto LAB_000138e8;\n      } while (c != 10);\n    }" if (parenthesized_expression "(c != 10)" ( (binary_expression "c != 10" identifier != number_literal) )) (compound_statement "{\n      piVar1 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d)) ||\n           (c == 0x23)) goto LAB_00013864;\n        add1_buffer(b,c);\n        c = inchar();\n        if (c == -1) goto LAB_000138e8;\n      } while (c != 10);\n    }" { (expression_statement "piVar1 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_0003f350)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_0003f350)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_0003f350)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_0003f350" * (cast_expression "(code *)PTR___ctype_b_loc_0003f350" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (do_statement "do {\n        if (((((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d)) ||\n           (c == 0x23)) goto LAB_00013864;\n        add1_buffer(b,c);\n        c = inchar();\n        if (c == -1) goto LAB_000138e8;\n      } while (c != 10);" do (compound_statement "{\n        if (((((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d)) ||\n           (c == 0x23)) goto LAB_00013864;\n        add1_buffer(b,c);\n        c = inchar();\n        if (c == -1) goto LAB_000138e8;\n      }" { (if_statement "if (((((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d)) ||\n           (c == 0x23)) goto LAB_00013864;" if (parenthesized_expression "(((((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d)) ||\n           (c == 0x23))" ( (binary_expression "((((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d)) ||\n           (c == 0x23)" (parenthesized_expression "((((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d))" ( (binary_expression "(((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)) || (c == 0x7d)" (parenthesized_expression "(((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b))" ( (binary_expression "((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0) || (c == 0x3b)" (parenthesized_expression "((*(ushort *)(*piVar1 + c * 2) & 0x100) != 0)" ( (binary_expression "(*(ushort *)(*piVar1 + c * 2) & 0x100) != 0" (parenthesized_expression "(*(ushort *)(*piVar1 + c * 2) & 0x100)" ( (binary_expression "*(ushort *)(*piVar1 + c * 2) & 0x100" (pointer_expression "*(ushort *)(*piVar1 + c * 2)" * (cast_expression "(ushort *)(*piVar1 + c * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + c * 2)" ( (binary_expression "*piVar1 + c * 2" (pointer_expression "*piVar1" * identifier) + (binary_expression "c * 2" identifier * number_literal)) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(c == 0x3b)" ( (binary_expression "c == 0x3b" identifier == number_literal) ))) )) || (parenthesized_expression "(c == 0x7d)" ( (binary_expression "c == 0x7d" identifier == number_literal) ))) )) || (parenthesized_expression "(c == 0x23)" ( (binary_expression "c == 0x23" identifier == number_literal) ))) )) (goto_statement "goto LAB_00013864;" goto statement_identifier ;)) (expression_statement "add1_buffer(b,c);" (call_expression "add1_buffer(b,c)" identifier (argument_list "(b,c)" ( identifier , identifier ))) ;) (expression_statement "c = inchar();" (assignment_expression "c = inchar()" identifier = (call_expression "inchar()" identifier (argument_list "()" ( )))) ;) (if_statement "if (c == -1) goto LAB_000138e8;" if (parenthesized_expression "(c == -1)" ( (binary_expression "c == -1" identifier == number_literal) )) (goto_statement "goto LAB_000138e8;" goto statement_identifier ;)) }) while (parenthesized_expression "(c != 10)" ( (binary_expression "c != 10" identifier != number_literal) )) ;) })) (expression_statement "c = 10;" (assignment_expression "c = 10" identifier = number_literal) ;) }))) (labeled_statement "LAB_00013864:\n  savchar(c);" statement_identifier : (expression_statement "savchar(c);" (call_expression "savchar(c)" identifier (argument_list "(c)" ( identifier ))) ;)) (expression_statement "add1_buffer(b,0);" (call_expression "add1_buffer(b,0)" identifier (argument_list "(b,0)" ( identifier , number_literal ))) ;) (expression_statement "pcVar2 = get_buffer(b);" (assignment_expression "pcVar2 = get_buffer(b)" identifier = (call_expression "get_buffer(b)" identifier (argument_list "(b)" ( identifier )))) ;) (expression_statement "pcVar2 = xstrdup(pcVar2);" (assignment_expression "pcVar2 = xstrdup(pcVar2)" identifier = (call_expression "xstrdup(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "free_buffer(b);" (call_expression "free_buffer(b)" identifier (argument_list "(b)" ( identifier ))) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_00013768(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  \n  uVar1 = init_buffer();\n  iVar2 = FUN_0001362c();\n  if (iVar2 == -1) {\nLAB_000138e8:\n    iVar2 = -1;\n  }\n  else {\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }\nLAB_00013864:\n  FUN_000136a4(iVar2);\n  add1_buffer(uVar1,0);\n  uVar4 = get_buffer(uVar1);\n  uVar4 = xstrdup(uVar4);\n  free_buffer(uVar1);\n  return uVar4;\n}\n\n" (function_definition "undefined4 FUN_00013768(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  \n  uVar1 = init_buffer();\n  iVar2 = FUN_0001362c();\n  if (iVar2 == -1) {\nLAB_000138e8:\n    iVar2 = -1;\n  }\n  else {\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }\nLAB_00013864:\n  FUN_000136a4(iVar2);\n  add1_buffer(uVar1,0);\n  uVar4 = get_buffer(uVar1);\n  uVar4 = xstrdup(uVar4);\n  free_buffer(uVar1);\n  return uVar4;\n}" type_identifier (function_declarator "FUN_00013768(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  \n  uVar1 = init_buffer();\n  iVar2 = FUN_0001362c();\n  if (iVar2 == -1) {\nLAB_000138e8:\n    iVar2 = -1;\n  }\n  else {\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }\nLAB_00013864:\n  FUN_000136a4(iVar2);\n  add1_buffer(uVar1,0);\n  uVar4 = get_buffer(uVar1);\n  uVar4 = xstrdup(uVar4);\n  free_buffer(uVar1);\n  return uVar4;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "uVar1 = init_buffer();" (assignment_expression "uVar1 = init_buffer()" identifier = (call_expression "init_buffer()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = FUN_0001362c();" (assignment_expression "iVar2 = FUN_0001362c()" identifier = (call_expression "FUN_0001362c()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == -1) {\nLAB_000138e8:\n    iVar2 = -1;\n  }\n  else {\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\nLAB_000138e8:\n    iVar2 = -1;\n  }" { (labeled_statement "LAB_000138e8:\n    iVar2 = -1;" statement_identifier : (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;)) }) (else_clause "else {\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }" else (compound_statement "{\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }" { (if_statement "if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }" if (parenthesized_expression "(iVar2 != 10)" ( (binary_expression "iVar2 != 10" identifier != number_literal) )) (compound_statement "{\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }" { (expression_statement "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_0003f350)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_0003f350)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_0003f350)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_0003f350" * (cast_expression "(code *)PTR___ctype_b_loc_0003f350" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (do_statement "do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);" do (compound_statement "{\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      }" { (if_statement "if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;" if (parenthesized_expression "(((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23))" ( (binary_expression "((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)" (parenthesized_expression "((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d))" ( (binary_expression "(((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)" (parenthesized_expression "(((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b))" ( (binary_expression "((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)" (parenthesized_expression "((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0)" ( (binary_expression "(*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0" (parenthesized_expression "(*(ushort *)(*piVar3 + iVar2 * 2) & 0x100)" ( (binary_expression "*(ushort *)(*piVar3 + iVar2 * 2) & 0x100" (pointer_expression "*(ushort *)(*piVar3 + iVar2 * 2)" * (cast_expression "(ushort *)(*piVar3 + iVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + iVar2 * 2)" ( (binary_expression "*piVar3 + iVar2 * 2" (pointer_expression "*piVar3" * identifier) + (binary_expression "iVar2 * 2" identifier * number_literal)) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(iVar2 == 0x3b)" ( (binary_expression "iVar2 == 0x3b" identifier == number_literal) ))) )) || (parenthesized_expression "(iVar2 == 0x7d)" ( (binary_expression "iVar2 == 0x7d" identifier == number_literal) ))) )) || (parenthesized_expression "(iVar2 == 0x23)" ( (binary_expression "iVar2 == 0x23" identifier == number_literal) ))) )) (goto_statement "goto LAB_00013864;" goto statement_identifier ;)) (expression_statement "add1_buffer(uVar1,iVar2);" (call_expression "add1_buffer(uVar1,iVar2)" identifier (argument_list "(uVar1,iVar2)" ( identifier , identifier ))) ;) (expression_statement "iVar2 = FUN_00013550();" (assignment_expression "iVar2 = FUN_00013550()" identifier = (call_expression "FUN_00013550()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == -1) goto LAB_000138e8;" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (goto_statement "goto LAB_000138e8;" goto statement_identifier ;)) }) while (parenthesized_expression "(iVar2 != 10)" ( (binary_expression "iVar2 != 10" identifier != number_literal) )) ;) })) (expression_statement "iVar2 = 10;" (assignment_expression "iVar2 = 10" identifier = number_literal) ;) }))) (labeled_statement "LAB_00013864:\n  FUN_000136a4(iVar2);" statement_identifier : (expression_statement "FUN_000136a4(iVar2);" (call_expression "FUN_000136a4(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;)) (expression_statement "add1_buffer(uVar1,0);" (call_expression "add1_buffer(uVar1,0)" identifier (argument_list "(uVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar4 = get_buffer(uVar1);" (assignment_expression "uVar4 = get_buffer(uVar1)" identifier = (call_expression "get_buffer(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar4 = xstrdup(uVar4);" (assignment_expression "uVar4 = xstrdup(uVar4)" identifier = (call_expression "xstrdup(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "free_buffer(uVar1);" (call_expression "free_buffer(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 ( ))))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (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) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00013768(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  \n  uVar1 = init_buffer();\n  iVar2 = FUN_0001362c();\n  if (iVar2 == -1) {\nLAB_000138e8:\n    iVar2 = -1;\n  }\n  else {\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }\nLAB_00013864:\n  FUN_000136a4(iVar2);\n  add1_buffer(uVar1,0);\n  uVar4 = get_buffer(uVar1);\n  uVar4 = xstrdup(uVar4);\n  free_buffer(uVar1);\n  return uVar4;\n}" (type_identifier "undefined4") (function_declarator "FUN_00013768(void)" (identifier "FUN_00013768") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  \n  uVar1 = init_buffer();\n  iVar2 = FUN_0001362c();\n  if (iVar2 == -1) {\nLAB_000138e8:\n    iVar2 = -1;\n  }\n  else {\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }\nLAB_00013864:\n  FUN_000136a4(iVar2);\n  add1_buffer(uVar1,0);\n  uVar4 = get_buffer(uVar1);\n  uVar4 = xstrdup(uVar4);\n  free_buffer(uVar1);\n  return uVar4;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "uVar1 = init_buffer();" (assignment_expression "uVar1 = init_buffer()" (identifier "uVar1") (= "=") (call_expression "init_buffer()" (identifier "init_buffer") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar2 = FUN_0001362c();" (assignment_expression "iVar2 = FUN_0001362c()" (identifier "iVar2") (= "=") (call_expression "FUN_0001362c()" (identifier "FUN_0001362c") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == -1) {\nLAB_000138e8:\n    iVar2 = -1;\n  }\n  else {\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\nLAB_000138e8:\n    iVar2 = -1;\n  }" ({ "{") (labeled_statement "LAB_000138e8:\n    iVar2 = -1;" (statement_identifier "LAB_000138e8") (: ":") (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" (identifier "iVar2") (= "=") (number_literal "-1")) (; ";"))) (} "}")) (else_clause "else {\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }" (else "else") (compound_statement "{\n    if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }\n    iVar2 = 10;\n  }" ({ "{") (if_statement "if (iVar2 != 10) {\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }" (if "if") (parenthesized_expression "(iVar2 != 10)" (( "(") (binary_expression "iVar2 != 10" (identifier "iVar2") (!= "!=") (number_literal "10")) () ")")) (compound_statement "{\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();\n      do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);\n    }" ({ "{") (expression_statement "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)()" (identifier "piVar3") (= "=") (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_0003f350)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___ctype_b_loc_0003f350)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_0003f350)" (( "(") (pointer_expression "*(code *)PTR___ctype_b_loc_0003f350" (* "*") (cast_expression "(code *)PTR___ctype_b_loc_0003f350" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___ctype_b_loc_0003f350"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (do_statement "do {\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      } while (iVar2 != 10);" (do "do") (compound_statement "{\n        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;\n        add1_buffer(uVar1,iVar2);\n        iVar2 = FUN_00013550();\n        if (iVar2 == -1) goto LAB_000138e8;\n      }" ({ "{") (if_statement "if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;" (if "if") (parenthesized_expression "(((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23))" (( "(") (binary_expression "((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)) || (iVar2 == 0x23)" (parenthesized_expression "((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d))" (( "(") (binary_expression "(((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||\n            (iVar2 == 0x7d)" (parenthesized_expression "(((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b))" (( "(") (binary_expression "((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)" (parenthesized_expression "((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0)" (( "(") (binary_expression "(*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0" (parenthesized_expression "(*(ushort *)(*piVar3 + iVar2 * 2) & 0x100)" (( "(") (binary_expression "*(ushort *)(*piVar3 + iVar2 * 2) & 0x100" (pointer_expression "*(ushort *)(*piVar3 + iVar2 * 2)" (* "*") (cast_expression "(ushort *)(*piVar3 + iVar2 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar3 + iVar2 * 2)" (( "(") (binary_expression "*piVar3 + iVar2 * 2" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (binary_expression "iVar2 * 2" (identifier "iVar2") (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "0x100")) () ")")) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar2 == 0x3b)" (( "(") (binary_expression "iVar2 == 0x3b" (identifier "iVar2") (== "==") (number_literal "0x3b")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar2 == 0x7d)" (( "(") (binary_expression "iVar2 == 0x7d" (identifier "iVar2") (== "==") (number_literal "0x7d")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar2 == 0x23)" (( "(") (binary_expression "iVar2 == 0x23" (identifier "iVar2") (== "==") (number_literal "0x23")) () ")"))) () ")")) (goto_statement "goto LAB_00013864;" (goto "goto") (statement_identifier "LAB_00013864") (; ";"))) (expression_statement "add1_buffer(uVar1,iVar2);" (call_expression "add1_buffer(uVar1,iVar2)" (identifier "add1_buffer") (argument_list "(uVar1,iVar2)" (( "(") (identifier "uVar1") (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "iVar2 = FUN_00013550();" (assignment_expression "iVar2 = FUN_00013550()" (identifier "iVar2") (= "=") (call_expression "FUN_00013550()" (identifier "FUN_00013550") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == -1) goto LAB_000138e8;" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_000138e8;" (goto "goto") (statement_identifier "LAB_000138e8") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(iVar2 != 10)" (( "(") (binary_expression "iVar2 != 10" (identifier "iVar2") (!= "!=") (number_literal "10")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar2 = 10;" (assignment_expression "iVar2 = 10" (identifier "iVar2") (= "=") (number_literal "10")) (; ";")) (} "}")))) (labeled_statement "LAB_00013864:\n  FUN_000136a4(iVar2);" (statement_identifier "LAB_00013864") (: ":") (expression_statement "FUN_000136a4(iVar2);" (call_expression "FUN_000136a4(iVar2)" (identifier "FUN_000136a4") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";"))) (expression_statement "add1_buffer(uVar1,0);" (call_expression "add1_buffer(uVar1,0)" (identifier "add1_buffer") (argument_list "(uVar1,0)" (( "(") (identifier "uVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar4 = get_buffer(uVar1);" (assignment_expression "uVar4 = get_buffer(uVar1)" (identifier "uVar4") (= "=") (call_expression "get_buffer(uVar1)" (identifier "get_buffer") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "uVar4 = xstrdup(uVar4);" (assignment_expression "uVar4 = xstrdup(uVar4)" (identifier "uVar4") (= "=") (call_expression "xstrdup(uVar4)" (identifier "xstrdup") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "free_buffer(uVar1);" (call_expression "free_buffer(uVar1)" (identifier "free_buffer") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))))

undefined4 MASKED(void)

{
  undefined4 uVar1;
  int iVar2;
  int *piVar3;
  undefined4 uVar4;
  
  uVar1 = init_buffer();
  iVar2 = FUN_0001362c();
  if (iVar2 == -1) {
LAB_000138e8:
    iVar2 = -1;
  }
  else {
    if (iVar2 != 10) {
      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_0003f350)();
      do {
        if (((((*(ushort *)(*piVar3 + iVar2 * 2) & 0x100) != 0) || (iVar2 == 0x3b)) ||
            (iVar2 == 0x7d)) || (iVar2 == 0x23)) goto LAB_00013864;
        add1_buffer(uVar1,iVar2);
        iVar2 = FUN_00013550();
        if (iVar2 == -1) goto LAB_000138e8;
      } while (iVar2 != 10);
    }
    iVar2 = 10;
  }
LAB_00013864:
  FUN_000136a4(iVar2);
  add1_buffer(uVar1,0);
  uVar4 = get_buffer(uVar1);
  uVar4 = xstrdup(uVar4);
  free_buffer(uVar1);
  return uVar4;
}

