
int telnet_send(void *handle,char *buf,int len)

{
  undefined *puVar1;
  char cVar3;
  int iVar2;
  int *piVar4;
  char *pcVar5;
  char *pcVar6;
  undefined *puVar7;
  undefined *puVar8;
  code *pcVar9;
  
  piVar4 = *(int **)((int)handle + 4);
  pcVar6 = buf + len;
  if (piVar4 == (int *)0x0) {
    return 0;
  }
  if (pcVar6 <= buf) {
LAB_000422d4:
    return *(int *)((int)handle + 0x50);
  }
  cVar3 = *buf;
  puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;
  puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;
  pcVar5 = buf;
LAB_000421b8:
  while ((cVar3 != -1 && ((*(int *)((int)handle + 0x3c) == 1 || (cVar3 != '\r'))))) {
    buf = buf + 1;
    if (pcVar6 <= buf) {
      iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5);
      *(int *)((int)handle + 0x50) = iVar2;
      return iVar2;
    }
    cVar3 = *buf;
  }
  iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5);
  *(int *)((int)handle + 0x50) = iVar2;
  if (pcVar6 <= buf) {
    return iVar2;
  }
  do {
    cVar3 = *buf;
    if (cVar3 == -1) {
      piVar4 = *(int **)((int)handle + 4);
      pcVar9 = *(code **)(*piVar4 + 8);
      puVar1 = puVar8;
    }
    else {
      if ((*(int *)((int)handle + 0x3c) == 1) || (cVar3 != '\r')) break;
      piVar4 = *(int **)((int)handle + 4);
      pcVar9 = *(code **)(*piVar4 + 8);
      puVar1 = puVar7;
    }
    buf = buf + 1;
    iVar2 = (*pcVar9)(piVar4,puVar1,2);
    *(int *)((int)handle + 0x50) = iVar2;
    if (pcVar6 == buf) {
      return iVar2;
    }
  } while( true );
  if (pcVar6 <= buf) goto LAB_000422d4;
  piVar4 = *(int **)((int)handle + 4);
  pcVar5 = buf;
  goto LAB_000421b8;
}



undefined4 FUN_00042144(int param_1,char *param_2,int param_3)

{
  undefined *puVar1;
  char cVar3;
  undefined4 uVar2;
  int *piVar4;
  char *pcVar5;
  char *pcVar6;
  undefined *puVar7;
  undefined *puVar8;
  code *pcVar9;
  
  piVar4 = *(int **)(param_1 + 4);
  pcVar6 = param_2 + param_3;
  if (piVar4 == (int *)0x0) {
    return 0;
  }
  if (pcVar6 <= param_2) {
LAB_000422d4:
    return *(undefined4 *)(param_1 + 0x50);
  }
  cVar3 = *param_2;
  puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;
  puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;
  pcVar5 = param_2;
LAB_000421b8:
  while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {
    param_2 = param_2 + 1;
    if (pcVar6 <= param_2) {
      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);
      *(undefined4 *)(param_1 + 0x50) = uVar2;
      return uVar2;
    }
    cVar3 = *param_2;
  }
  uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);
  *(undefined4 *)(param_1 + 0x50) = uVar2;
  if (pcVar6 <= param_2) {
    return uVar2;
  }
  do {
    cVar3 = *param_2;
    if (cVar3 == -1) {
      piVar4 = *(int **)(param_1 + 4);
      pcVar9 = *(code **)(*piVar4 + 8);
      puVar1 = puVar8;
    }
    else {
      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;
      piVar4 = *(int **)(param_1 + 4);
      pcVar9 = *(code **)(*piVar4 + 8);
      puVar1 = puVar7;
    }
    param_2 = param_2 + 1;
    uVar2 = (*pcVar9)(piVar4,puVar1,2);
    *(undefined4 *)(param_1 + 0x50) = uVar2;
    if (pcVar6 == param_2) {
      return uVar2;
    }
  } while( true );
  if (pcVar6 <= param_2) goto LAB_000422d4;
  piVar4 = *(int **)(param_1 + 4);
  pcVar5 = param_2;
  goto LAB_000421b8;
}


lui gp,0x8
addiu gp,gp,-0x4f74
addu gp,gp,t9
addiu sp,sp,-0x38
sw s1,0x20(sp)
or s1,a0,zero
sw gp,0x10(sp)
sw ra,0x34(sp)
sw s5,0x30(sp)
sw s4,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s0,0x1c(sp)
lw a0,0x4(a0)
beq a0,zero,0x000422ac
_addu s2,a1,a2
sltu v0,a1,s2
beq v0,zero,0x000422d4
_lw s5,-0x7fbc(gp)
lw s4,-0x7fbc(gp)
lbu v0,0x0(a1)
addiu s5,s5,-0x5f00
addiu s4,s4,-0x5f04
or s0,a1,zero
li a2,0xff
li a3,0x1
b 0x000421b8
_li t0,0xd
lbu v0,0x0(s0)
beq v0,a2,0x0004221c
_nop
lw v1,0x3c(s1)
beq v1,a3,0x000421d4
_nop
beq v0,t0,0x0004221c
_nop
addiu s0,s0,0x1
sltu v0,s0,s2
bne v0,zero,0x000421b4
_nop
lw v0,0x0(a0)
lw t9,0x8(v0)
jalr t9
_subu a2,s0,a1
sw v0,0x50(s1)
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
lw v0,0x0(a0)
lw t9,0x8(v0)
jalr t9
_subu a2,s0,a1
sltu v1,s0,s2
beq v1,zero,0x000421f8
_sw v0,0x50(s1)
b 0x00042274
_li s3,0xff
lw a2,0x3c(s1)
beq a2,v1,0x0004229c
_sltu v1,s0,s2
bne v0,a0,0x0004229c
_nop
lw a0,0x4(s1)
lw v0,0x0(a0)
lw t9,0x8(v0)
li a2,0x2
jalr t9
_addiu s0,s0,0x1
beq s2,s0,0x000421f8
_sw v0,0x50(s1)
lbu v0,0x0(s0)
li v1,0x1
li a0,0xd
bne v0,s3,0x00042240
_or a1,s4,zero
lw a0,0x4(s1)
or a1,s5,zero
lw v0,0x0(a0)
b 0x00042260
_lw t9,0x8(v0)
beq v1,zero,0x000422d4
_or a1,s0,zero
b 0x000421a0
_lw a0,0x4(s1)
lw ra,0x34(sp)
or v0,zero,zero
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
b 0x000421f8
_lw v0,0x50(s1)
(translation_unit "undefined4 FUN_00042144(int param_1,char *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  char cVar3;\n  undefined4 uVar2;\n  int *piVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  \n  piVar4 = *(int **)(param_1 + 4);\n  pcVar6 = param_2 + param_3;\n  if (piVar4 == (int *)0x0) {\n    return 0;\n  }\n  if (pcVar6 <= param_2) {\nLAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);\n  }\n  cVar3 = *param_2;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;\n  puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;\n  pcVar5 = param_2;\nLAB_000421b8:\n  while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }\n  uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  if (pcVar6 <= param_2) {\n    return uVar2;\n  }\n  do {\n    cVar3 = *param_2;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    param_2 = param_2 + 1;\n    uVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(undefined4 *)(param_1 + 0x50) = uVar2;\n    if (pcVar6 == param_2) {\n      return uVar2;\n    }\n  } while( true );\n  if (pcVar6 <= param_2) goto LAB_000422d4;\n  piVar4 = *(int **)(param_1 + 4);\n  pcVar5 = param_2;\n  goto LAB_000421b8;\n}\n\n" (function_definition "undefined4 FUN_00042144(int param_1,char *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  char cVar3;\n  undefined4 uVar2;\n  int *piVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  \n  piVar4 = *(int **)(param_1 + 4);\n  pcVar6 = param_2 + param_3;\n  if (piVar4 == (int *)0x0) {\n    return 0;\n  }\n  if (pcVar6 <= param_2) {\nLAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);\n  }\n  cVar3 = *param_2;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;\n  puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;\n  pcVar5 = param_2;\nLAB_000421b8:\n  while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }\n  uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  if (pcVar6 <= param_2) {\n    return uVar2;\n  }\n  do {\n    cVar3 = *param_2;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    param_2 = param_2 + 1;\n    uVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(undefined4 *)(param_1 + 0x50) = uVar2;\n    if (pcVar6 == param_2) {\n      return uVar2;\n    }\n  } while( true );\n  if (pcVar6 <= param_2) goto LAB_000422d4;\n  piVar4 = *(int **)(param_1 + 4);\n  pcVar5 = param_2;\n  goto LAB_000421b8;\n}" type_identifier (function_declarator "FUN_00042144(int param_1,char *param_2,int param_3)" identifier (parameter_list "(int param_1,char *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  char cVar3;\n  undefined4 uVar2;\n  int *piVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  \n  piVar4 = *(int **)(param_1 + 4);\n  pcVar6 = param_2 + param_3;\n  if (piVar4 == (int *)0x0) {\n    return 0;\n  }\n  if (pcVar6 <= param_2) {\nLAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);\n  }\n  cVar3 = *param_2;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;\n  puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;\n  pcVar5 = param_2;\nLAB_000421b8:\n  while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }\n  uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  if (pcVar6 <= param_2) {\n    return uVar2;\n  }\n  do {\n    cVar3 = *param_2;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    param_2 = param_2 + 1;\n    uVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(undefined4 *)(param_1 + 0x50) = uVar2;\n    if (pcVar6 == param_2) {\n      return uVar2;\n    }\n  } while( true );\n  if (pcVar6 <= param_2) goto LAB_000422d4;\n  piVar4 = *(int **)(param_1 + 4);\n  pcVar5 = param_2;\n  goto LAB_000421b8;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (expression_statement "piVar4 = *(int **)(param_1 + 4);" (assignment_expression "piVar4 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "pcVar6 = param_2 + param_3;" (assignment_expression "pcVar6 = param_2 + param_3" identifier = (binary_expression "param_2 + param_3" identifier + identifier)) ;) (if_statement "if (piVar4 == (int *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (pcVar6 <= param_2) {\nLAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);\n  }" if (parenthesized_expression "(pcVar6 <= param_2)" ( (binary_expression "pcVar6 <= param_2" identifier <= identifier) )) (compound_statement "{\nLAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);\n  }" { (labeled_statement "LAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);" statement_identifier : (return_statement "return *(undefined4 *)(param_1 + 0x50);" return (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) ;)) })) (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;" (assignment_expression "puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00" identifier = (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00" identifier + number_literal)) ;) (expression_statement "puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;" (assignment_expression "puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04" identifier = (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04" identifier + number_literal)) ;) (expression_statement "pcVar5 = param_2;" (assignment_expression "pcVar5 = param_2" identifier = identifier) ;) (labeled_statement "LAB_000421b8:\n  while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }" statement_identifier : (while_statement "while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }" while (parenthesized_expression "((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r')))))" ( (parenthesized_expression "(cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))" ( (binary_expression "cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r')))" (binary_expression "cVar3 != -1" identifier != number_literal) && (parenthesized_expression "((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r')))" ( (parenthesized_expression "(*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))" ( (binary_expression "*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r')" (binary_expression "*(int *)(param_1 + 0x3c) == 1" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) == number_literal) || (parenthesized_expression "(cVar3 != '\r')" ( (binary_expression "cVar3 != '\r'" identifier != (char_literal "'\r'" ' escape_sequence ')) ))) )) ))) )) )) (compound_statement "{\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }" if (parenthesized_expression "(pcVar6 <= param_2)" ( (binary_expression "pcVar6 <= param_2" identifier <= identifier) )) (compound_statement "{\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }" { (expression_statement "uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);" (assignment_expression "uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" identifier = (call_expression "(**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" (parenthesized_expression "(**(code **)(*piVar4 + 8))" ( (pointer_expression "**(code **)(*piVar4 + 8)" * (pointer_expression "*(code **)(*piVar4 + 8)" * (cast_expression "(code **)(*piVar4 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 8)" ( (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" ( identifier , identifier , (binary_expression "(int)param_2 - (int)pcVar5" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = identifier) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) }))) (expression_statement "uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);" (assignment_expression "uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" identifier = (call_expression "(**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" (parenthesized_expression "(**(code **)(*piVar4 + 8))" ( (pointer_expression "**(code **)(*piVar4 + 8)" * (pointer_expression "*(code **)(*piVar4 + 8)" * (cast_expression "(code **)(*piVar4 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 8)" ( (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" ( identifier , identifier , (binary_expression "(int)param_2 - (int)pcVar5" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = identifier) ;) (if_statement "if (pcVar6 <= param_2) {\n    return uVar2;\n  }" if (parenthesized_expression "(pcVar6 <= param_2)" ( (binary_expression "pcVar6 <= param_2" identifier <= identifier) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) (do_statement "do {\n    cVar3 = *param_2;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    param_2 = param_2 + 1;\n    uVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(undefined4 *)(param_1 + 0x50) = uVar2;\n    if (pcVar6 == param_2) {\n      return uVar2;\n    }\n  } while( true );" do (compound_statement "{\n    cVar3 = *param_2;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    param_2 = param_2 + 1;\n    uVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(undefined4 *)(param_1 + 0x50) = uVar2;\n    if (pcVar6 == param_2) {\n      return uVar2;\n    }\n  }" { (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }" if (parenthesized_expression "(cVar3 == -1)" ( (binary_expression "cVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }" { (expression_statement "piVar4 = *(int **)(param_1 + 4);" (assignment_expression "piVar4 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "pcVar9 = *(code **)(*piVar4 + 8);" (assignment_expression "pcVar9 = *(code **)(*piVar4 + 8)" identifier = (pointer_expression "*(code **)(*piVar4 + 8)" * (cast_expression "(code **)(*piVar4 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 8)" ( (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) ;) (expression_statement "puVar1 = puVar8;" (assignment_expression "puVar1 = puVar8" identifier = identifier) ;) }) (else_clause "else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }" else (compound_statement "{\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }" { (if_statement "if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;" if (parenthesized_expression "((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r'))" ( (binary_expression "(*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')" (parenthesized_expression "(*(int *)(param_1 + 0x3c) == 1)" ( (binary_expression "*(int *)(param_1 + 0x3c) == 1" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(cVar3 != '\r')" ( (binary_expression "cVar3 != '\r'" identifier != (char_literal "'\r'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) (expression_statement "piVar4 = *(int **)(param_1 + 4);" (assignment_expression "piVar4 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "pcVar9 = *(code **)(*piVar4 + 8);" (assignment_expression "pcVar9 = *(code **)(*piVar4 + 8)" identifier = (pointer_expression "*(code **)(*piVar4 + 8)" * (cast_expression "(code **)(*piVar4 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 8)" ( (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) ;) (expression_statement "puVar1 = puVar7;" (assignment_expression "puVar1 = puVar7" identifier = identifier) ;) }))) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = (*pcVar9)(piVar4,puVar1,2);" (assignment_expression "uVar2 = (*pcVar9)(piVar4,puVar1,2)" identifier = (call_expression "(*pcVar9)(piVar4,puVar1,2)" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "(piVar4,puVar1,2)" ( identifier , identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = identifier) ;) (if_statement "if (pcVar6 == param_2) {\n      return uVar2;\n    }" if (parenthesized_expression "(pcVar6 == param_2)" ( (binary_expression "pcVar6 == param_2" identifier == identifier) )) (compound_statement "{\n      return uVar2;\n    }" { (return_statement "return uVar2;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) (if_statement "if (pcVar6 <= param_2) goto LAB_000422d4;" if (parenthesized_expression "(pcVar6 <= param_2)" ( (binary_expression "pcVar6 <= param_2" identifier <= identifier) )) (goto_statement "goto LAB_000422d4;" goto statement_identifier ;)) (expression_statement "piVar4 = *(int **)(param_1 + 4);" (assignment_expression "piVar4 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = param_2;" (assignment_expression "pcVar5 = param_2" identifier = identifier) ;) (goto_statement "goto LAB_000421b8;" goto statement_identifier ;) })))
(translation_unit "int telnet_send(void *handle,char *buf,int len)\n\n{\n  undefined *puVar1;\n  char cVar3;\n  int iVar2;\n  int *piVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  \n  piVar4 = *(int **)((int)handle + 4);\n  pcVar6 = buf + len;\n  if (piVar4 == (int *)0x0) {\n    return 0;\n  }\n  if (pcVar6 <= buf) {\nLAB_000422d4:\n    return *(int *)((int)handle + 0x50);\n  }\n  cVar3 = *buf;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;\n  puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;\n  pcVar5 = buf;\nLAB_000421b8:\n  while ((cVar3 != -1 && ((*(int *)((int)handle + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    buf = buf + 1;\n    if (pcVar6 <= buf) {\n      iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5);\n      *(int *)((int)handle + 0x50) = iVar2;\n      return iVar2;\n    }\n    cVar3 = *buf;\n  }\n  iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5);\n  *(int *)((int)handle + 0x50) = iVar2;\n  if (pcVar6 <= buf) {\n    return iVar2;\n  }\n  do {\n    cVar3 = *buf;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)((int)handle + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)((int)handle + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)((int)handle + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    buf = buf + 1;\n    iVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(int *)((int)handle + 0x50) = iVar2;\n    if (pcVar6 == buf) {\n      return iVar2;\n    }\n  } while( true );\n  if (pcVar6 <= buf) goto LAB_000422d4;\n  piVar4 = *(int **)((int)handle + 4);\n  pcVar5 = buf;\n  goto LAB_000421b8;\n}\n\n" (function_definition "int telnet_send(void *handle,char *buf,int len)\n\n{\n  undefined *puVar1;\n  char cVar3;\n  int iVar2;\n  int *piVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  \n  piVar4 = *(int **)((int)handle + 4);\n  pcVar6 = buf + len;\n  if (piVar4 == (int *)0x0) {\n    return 0;\n  }\n  if (pcVar6 <= buf) {\nLAB_000422d4:\n    return *(int *)((int)handle + 0x50);\n  }\n  cVar3 = *buf;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;\n  puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;\n  pcVar5 = buf;\nLAB_000421b8:\n  while ((cVar3 != -1 && ((*(int *)((int)handle + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    buf = buf + 1;\n    if (pcVar6 <= buf) {\n      iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5);\n      *(int *)((int)handle + 0x50) = iVar2;\n      return iVar2;\n    }\n    cVar3 = *buf;\n  }\n  iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5);\n  *(int *)((int)handle + 0x50) = iVar2;\n  if (pcVar6 <= buf) {\n    return iVar2;\n  }\n  do {\n    cVar3 = *buf;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)((int)handle + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)((int)handle + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)((int)handle + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    buf = buf + 1;\n    iVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(int *)((int)handle + 0x50) = iVar2;\n    if (pcVar6 == buf) {\n      return iVar2;\n    }\n  } while( true );\n  if (pcVar6 <= buf) goto LAB_000422d4;\n  piVar4 = *(int **)((int)handle + 4);\n  pcVar5 = buf;\n  goto LAB_000421b8;\n}" primitive_type (function_declarator "telnet_send(void *handle,char *buf,int len)" identifier (parameter_list "(void *handle,char *buf,int len)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  char cVar3;\n  int iVar2;\n  int *piVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  \n  piVar4 = *(int **)((int)handle + 4);\n  pcVar6 = buf + len;\n  if (piVar4 == (int *)0x0) {\n    return 0;\n  }\n  if (pcVar6 <= buf) {\nLAB_000422d4:\n    return *(int *)((int)handle + 0x50);\n  }\n  cVar3 = *buf;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;\n  puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;\n  pcVar5 = buf;\nLAB_000421b8:\n  while ((cVar3 != -1 && ((*(int *)((int)handle + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    buf = buf + 1;\n    if (pcVar6 <= buf) {\n      iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5);\n      *(int *)((int)handle + 0x50) = iVar2;\n      return iVar2;\n    }\n    cVar3 = *buf;\n  }\n  iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5);\n  *(int *)((int)handle + 0x50) = iVar2;\n  if (pcVar6 <= buf) {\n    return iVar2;\n  }\n  do {\n    cVar3 = *buf;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)((int)handle + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)((int)handle + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)((int)handle + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    buf = buf + 1;\n    iVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(int *)((int)handle + 0x50) = iVar2;\n    if (pcVar6 == buf) {\n      return iVar2;\n    }\n  } while( true );\n  if (pcVar6 <= buf) goto LAB_000422d4;\n  piVar4 = *(int **)((int)handle + 4);\n  pcVar5 = buf;\n  goto LAB_000421b8;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (expression_statement "piVar4 = *(int **)((int)handle + 4);" (assignment_expression "piVar4 = *(int **)((int)handle + 4)" identifier = (pointer_expression "*(int **)((int)handle + 4)" * (cast_expression "(int **)((int)handle + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar6 = buf + len;" (assignment_expression "pcVar6 = buf + len" identifier = (binary_expression "buf + len" identifier + identifier)) ;) (if_statement "if (piVar4 == (int *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (pcVar6 <= buf) {\nLAB_000422d4:\n    return *(int *)((int)handle + 0x50);\n  }" if (parenthesized_expression "(pcVar6 <= buf)" ( (binary_expression "pcVar6 <= buf" identifier <= identifier) )) (compound_statement "{\nLAB_000422d4:\n    return *(int *)((int)handle + 0x50);\n  }" { (labeled_statement "LAB_000422d4:\n    return *(int *)((int)handle + 0x50);" statement_identifier : (return_statement "return *(int *)((int)handle + 0x50);" return (pointer_expression "*(int *)((int)handle + 0x50)" * (cast_expression "(int *)((int)handle + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x50)" ( (binary_expression "(int)handle + 0x50" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;)) })) (expression_statement "cVar3 = *buf;" (assignment_expression "cVar3 = *buf" identifier = (pointer_expression "*buf" * identifier)) ;) (expression_statement "puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;" (assignment_expression "puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00" identifier = (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00" identifier + number_literal)) ;) (expression_statement "puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;" (assignment_expression "puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04" identifier = (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04" identifier + number_literal)) ;) (expression_statement "pcVar5 = buf;" (assignment_expression "pcVar5 = buf" identifier = identifier) ;) (labeled_statement "LAB_000421b8:\n  while ((cVar3 != -1 && ((*(int *)((int)handle + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    buf = buf + 1;\n    if (pcVar6 <= buf) {\n      iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5);\n      *(int *)((int)handle + 0x50) = iVar2;\n      return iVar2;\n    }\n    cVar3 = *buf;\n  }" statement_identifier : (while_statement "while ((cVar3 != -1 && ((*(int *)((int)handle + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    buf = buf + 1;\n    if (pcVar6 <= buf) {\n      iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5);\n      *(int *)((int)handle + 0x50) = iVar2;\n      return iVar2;\n    }\n    cVar3 = *buf;\n  }" while (parenthesized_expression "((cVar3 != -1 && ((*(int *)((int)handle + 0x3c) == 1 || (cVar3 != '\r')))))" ( (parenthesized_expression "(cVar3 != -1 && ((*(int *)((int)handle + 0x3c) == 1 || (cVar3 != '\r'))))" ( (binary_expression "cVar3 != -1 && ((*(int *)((int)handle + 0x3c) == 1 || (cVar3 != '\r')))" (binary_expression "cVar3 != -1" identifier != number_literal) && (parenthesized_expression "((*(int *)((int)handle + 0x3c) == 1 || (cVar3 != '\r')))" ( (parenthesized_expression "(*(int *)((int)handle + 0x3c) == 1 || (cVar3 != '\r'))" ( (binary_expression "*(int *)((int)handle + 0x3c) == 1 || (cVar3 != '\r')" (binary_expression "*(int *)((int)handle + 0x3c) == 1" (pointer_expression "*(int *)((int)handle + 0x3c)" * (cast_expression "(int *)((int)handle + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x3c)" ( (binary_expression "(int)handle + 0x3c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) || (parenthesized_expression "(cVar3 != '\r')" ( (binary_expression "cVar3 != '\r'" identifier != (char_literal "'\r'" ' escape_sequence ')) ))) )) ))) )) )) (compound_statement "{\n    buf = buf + 1;\n    if (pcVar6 <= buf) {\n      iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5);\n      *(int *)((int)handle + 0x50) = iVar2;\n      return iVar2;\n    }\n    cVar3 = *buf;\n  }" { (expression_statement "buf = buf + 1;" (assignment_expression "buf = buf + 1" identifier = (binary_expression "buf + 1" identifier + number_literal)) ;) (if_statement "if (pcVar6 <= buf) {\n      iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5);\n      *(int *)((int)handle + 0x50) = iVar2;\n      return iVar2;\n    }" if (parenthesized_expression "(pcVar6 <= buf)" ( (binary_expression "pcVar6 <= buf" identifier <= identifier) )) (compound_statement "{\n      iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5);\n      *(int *)((int)handle + 0x50) = iVar2;\n      return iVar2;\n    }" { (expression_statement "iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5);" (assignment_expression "iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5)" identifier = (call_expression "(**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5)" (parenthesized_expression "(**(code **)(*piVar4 + 8))" ( (pointer_expression "**(code **)(*piVar4 + 8)" * (pointer_expression "*(code **)(*piVar4 + 8)" * (cast_expression "(code **)(*piVar4 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 8)" ( (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4,pcVar5,(int)buf - (int)pcVar5)" ( identifier , identifier , (binary_expression "(int)buf - (int)pcVar5" (cast_expression "(int)buf" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "*(int *)((int)handle + 0x50) = iVar2;" (assignment_expression "*(int *)((int)handle + 0x50) = iVar2" (pointer_expression "*(int *)((int)handle + 0x50)" * (cast_expression "(int *)((int)handle + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x50)" ( (binary_expression "(int)handle + 0x50" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "cVar3 = *buf;" (assignment_expression "cVar3 = *buf" identifier = (pointer_expression "*buf" * identifier)) ;) }))) (expression_statement "iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5);" (assignment_expression "iVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5)" identifier = (call_expression "(**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)buf - (int)pcVar5)" (parenthesized_expression "(**(code **)(*piVar4 + 8))" ( (pointer_expression "**(code **)(*piVar4 + 8)" * (pointer_expression "*(code **)(*piVar4 + 8)" * (cast_expression "(code **)(*piVar4 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 8)" ( (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4,pcVar5,(int)buf - (int)pcVar5)" ( identifier , identifier , (binary_expression "(int)buf - (int)pcVar5" (cast_expression "(int)buf" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "*(int *)((int)handle + 0x50) = iVar2;" (assignment_expression "*(int *)((int)handle + 0x50) = iVar2" (pointer_expression "*(int *)((int)handle + 0x50)" * (cast_expression "(int *)((int)handle + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x50)" ( (binary_expression "(int)handle + 0x50" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (pcVar6 <= buf) {\n    return iVar2;\n  }" if (parenthesized_expression "(pcVar6 <= buf)" ( (binary_expression "pcVar6 <= buf" identifier <= identifier) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (do_statement "do {\n    cVar3 = *buf;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)((int)handle + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)((int)handle + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)((int)handle + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    buf = buf + 1;\n    iVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(int *)((int)handle + 0x50) = iVar2;\n    if (pcVar6 == buf) {\n      return iVar2;\n    }\n  } while( true );" do (compound_statement "{\n    cVar3 = *buf;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)((int)handle + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)((int)handle + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)((int)handle + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    buf = buf + 1;\n    iVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(int *)((int)handle + 0x50) = iVar2;\n    if (pcVar6 == buf) {\n      return iVar2;\n    }\n  }" { (expression_statement "cVar3 = *buf;" (assignment_expression "cVar3 = *buf" identifier = (pointer_expression "*buf" * identifier)) ;) (if_statement "if (cVar3 == -1) {\n      piVar4 = *(int **)((int)handle + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)((int)handle + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)((int)handle + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }" if (parenthesized_expression "(cVar3 == -1)" ( (binary_expression "cVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      piVar4 = *(int **)((int)handle + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }" { (expression_statement "piVar4 = *(int **)((int)handle + 4);" (assignment_expression "piVar4 = *(int **)((int)handle + 4)" identifier = (pointer_expression "*(int **)((int)handle + 4)" * (cast_expression "(int **)((int)handle + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar9 = *(code **)(*piVar4 + 8);" (assignment_expression "pcVar9 = *(code **)(*piVar4 + 8)" identifier = (pointer_expression "*(code **)(*piVar4 + 8)" * (cast_expression "(code **)(*piVar4 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 8)" ( (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) ;) (expression_statement "puVar1 = puVar8;" (assignment_expression "puVar1 = puVar8" identifier = identifier) ;) }) (else_clause "else {\n      if ((*(int *)((int)handle + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)((int)handle + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }" else (compound_statement "{\n      if ((*(int *)((int)handle + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)((int)handle + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }" { (if_statement "if ((*(int *)((int)handle + 0x3c) == 1) || (cVar3 != '\r')) break;" if (parenthesized_expression "((*(int *)((int)handle + 0x3c) == 1) || (cVar3 != '\r'))" ( (binary_expression "(*(int *)((int)handle + 0x3c) == 1) || (cVar3 != '\r')" (parenthesized_expression "(*(int *)((int)handle + 0x3c) == 1)" ( (binary_expression "*(int *)((int)handle + 0x3c) == 1" (pointer_expression "*(int *)((int)handle + 0x3c)" * (cast_expression "(int *)((int)handle + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x3c)" ( (binary_expression "(int)handle + 0x3c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) || (parenthesized_expression "(cVar3 != '\r')" ( (binary_expression "cVar3 != '\r'" identifier != (char_literal "'\r'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) (expression_statement "piVar4 = *(int **)((int)handle + 4);" (assignment_expression "piVar4 = *(int **)((int)handle + 4)" identifier = (pointer_expression "*(int **)((int)handle + 4)" * (cast_expression "(int **)((int)handle + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar9 = *(code **)(*piVar4 + 8);" (assignment_expression "pcVar9 = *(code **)(*piVar4 + 8)" identifier = (pointer_expression "*(code **)(*piVar4 + 8)" * (cast_expression "(code **)(*piVar4 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 8)" ( (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) ;) (expression_statement "puVar1 = puVar7;" (assignment_expression "puVar1 = puVar7" identifier = identifier) ;) }))) (expression_statement "buf = buf + 1;" (assignment_expression "buf = buf + 1" identifier = (binary_expression "buf + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = (*pcVar9)(piVar4,puVar1,2);" (assignment_expression "iVar2 = (*pcVar9)(piVar4,puVar1,2)" identifier = (call_expression "(*pcVar9)(piVar4,puVar1,2)" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "(piVar4,puVar1,2)" ( identifier , identifier , number_literal )))) ;) (expression_statement "*(int *)((int)handle + 0x50) = iVar2;" (assignment_expression "*(int *)((int)handle + 0x50) = iVar2" (pointer_expression "*(int *)((int)handle + 0x50)" * (cast_expression "(int *)((int)handle + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x50)" ( (binary_expression "(int)handle + 0x50" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (pcVar6 == buf) {\n      return iVar2;\n    }" if (parenthesized_expression "(pcVar6 == buf)" ( (binary_expression "pcVar6 == buf" identifier == identifier) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) (if_statement "if (pcVar6 <= buf) goto LAB_000422d4;" if (parenthesized_expression "(pcVar6 <= buf)" ( (binary_expression "pcVar6 <= buf" identifier <= identifier) )) (goto_statement "goto LAB_000422d4;" goto statement_identifier ;)) (expression_statement "piVar4 = *(int **)((int)handle + 4);" (assignment_expression "piVar4 = *(int **)((int)handle + 4)" identifier = (pointer_expression "*(int **)((int)handle + 4)" * (cast_expression "(int **)((int)handle + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar5 = buf;" (assignment_expression "pcVar5 = buf" identifier = identifier) ;) (goto_statement "goto LAB_000421b8;" goto statement_identifier ;) })))
(translation_unit "undefined4 FUN_00042144(int param_1,char *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  char cVar3;\n  undefined4 uVar2;\n  int *piVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  \n  piVar4 = *(int **)(param_1 + 4);\n  pcVar6 = param_2 + param_3;\n  if (piVar4 == (int *)0x0) {\n    return 0;\n  }\n  if (pcVar6 <= param_2) {\nLAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);\n  }\n  cVar3 = *param_2;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;\n  puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;\n  pcVar5 = param_2;\nLAB_000421b8:\n  while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }\n  uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  if (pcVar6 <= param_2) {\n    return uVar2;\n  }\n  do {\n    cVar3 = *param_2;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    param_2 = param_2 + 1;\n    uVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(undefined4 *)(param_1 + 0x50) = uVar2;\n    if (pcVar6 == param_2) {\n      return uVar2;\n    }\n  } while( true );\n  if (pcVar6 <= param_2) goto LAB_000422d4;\n  piVar4 = *(int **)(param_1 + 4);\n  pcVar5 = param_2;\n  goto LAB_000421b8;\n}\n\n" (function_definition "undefined4 FUN_00042144(int param_1,char *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  char cVar3;\n  undefined4 uVar2;\n  int *piVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  \n  piVar4 = *(int **)(param_1 + 4);\n  pcVar6 = param_2 + param_3;\n  if (piVar4 == (int *)0x0) {\n    return 0;\n  }\n  if (pcVar6 <= param_2) {\nLAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);\n  }\n  cVar3 = *param_2;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;\n  puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;\n  pcVar5 = param_2;\nLAB_000421b8:\n  while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }\n  uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  if (pcVar6 <= param_2) {\n    return uVar2;\n  }\n  do {\n    cVar3 = *param_2;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    param_2 = param_2 + 1;\n    uVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(undefined4 *)(param_1 + 0x50) = uVar2;\n    if (pcVar6 == param_2) {\n      return uVar2;\n    }\n  } while( true );\n  if (pcVar6 <= param_2) goto LAB_000422d4;\n  piVar4 = *(int **)(param_1 + 4);\n  pcVar5 = param_2;\n  goto LAB_000421b8;\n}" type_identifier (function_declarator "FUN_00042144(int param_1,char *param_2,int param_3)" identifier (parameter_list "(int param_1,char *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  char cVar3;\n  undefined4 uVar2;\n  int *piVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  \n  piVar4 = *(int **)(param_1 + 4);\n  pcVar6 = param_2 + param_3;\n  if (piVar4 == (int *)0x0) {\n    return 0;\n  }\n  if (pcVar6 <= param_2) {\nLAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);\n  }\n  cVar3 = *param_2;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;\n  puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;\n  pcVar5 = param_2;\nLAB_000421b8:\n  while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }\n  uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  if (pcVar6 <= param_2) {\n    return uVar2;\n  }\n  do {\n    cVar3 = *param_2;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    param_2 = param_2 + 1;\n    uVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(undefined4 *)(param_1 + 0x50) = uVar2;\n    if (pcVar6 == param_2) {\n      return uVar2;\n    }\n  } while( true );\n  if (pcVar6 <= param_2) goto LAB_000422d4;\n  piVar4 = *(int **)(param_1 + 4);\n  pcVar5 = param_2;\n  goto LAB_000421b8;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (expression_statement "piVar4 = *(int **)(param_1 + 4);" (assignment_expression "piVar4 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "pcVar6 = param_2 + param_3;" (assignment_expression "pcVar6 = param_2 + param_3" identifier = (binary_expression "param_2 + param_3" identifier + identifier)) ;) (if_statement "if (piVar4 == (int *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (pcVar6 <= param_2) {\nLAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);\n  }" if (parenthesized_expression "(pcVar6 <= param_2)" ( (binary_expression "pcVar6 <= param_2" identifier <= identifier) )) (compound_statement "{\nLAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);\n  }" { (labeled_statement "LAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);" statement_identifier : (return_statement "return *(undefined4 *)(param_1 + 0x50);" return (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) ;)) })) (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;" (assignment_expression "puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00" identifier = (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00" identifier + number_literal)) ;) (expression_statement "puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;" (assignment_expression "puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04" identifier = (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04" identifier + number_literal)) ;) (expression_statement "pcVar5 = param_2;" (assignment_expression "pcVar5 = param_2" identifier = identifier) ;) (labeled_statement "LAB_000421b8:\n  while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }" statement_identifier : (while_statement "while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }" while (parenthesized_expression "((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r')))))" ( (parenthesized_expression "(cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))" ( (binary_expression "cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r')))" (binary_expression "cVar3 != -1" identifier != number_literal) && (parenthesized_expression "((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r')))" ( (parenthesized_expression "(*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))" ( (binary_expression "*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r')" (binary_expression "*(int *)(param_1 + 0x3c) == 1" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) == number_literal) || (parenthesized_expression "(cVar3 != '\r')" ( (binary_expression "cVar3 != '\r'" identifier != (char_literal "'\r'" ' escape_sequence ')) ))) )) ))) )) )) (compound_statement "{\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }" if (parenthesized_expression "(pcVar6 <= param_2)" ( (binary_expression "pcVar6 <= param_2" identifier <= identifier) )) (compound_statement "{\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }" { (expression_statement "uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);" (assignment_expression "uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" identifier = (call_expression "(**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" (parenthesized_expression "(**(code **)(*piVar4 + 8))" ( (pointer_expression "**(code **)(*piVar4 + 8)" * (pointer_expression "*(code **)(*piVar4 + 8)" * (cast_expression "(code **)(*piVar4 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 8)" ( (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" ( identifier , identifier , (binary_expression "(int)param_2 - (int)pcVar5" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = identifier) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) }))) (expression_statement "uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);" (assignment_expression "uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" identifier = (call_expression "(**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" (parenthesized_expression "(**(code **)(*piVar4 + 8))" ( (pointer_expression "**(code **)(*piVar4 + 8)" * (pointer_expression "*(code **)(*piVar4 + 8)" * (cast_expression "(code **)(*piVar4 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 8)" ( (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) )) (argument_list "(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" ( identifier , identifier , (binary_expression "(int)param_2 - (int)pcVar5" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = identifier) ;) (if_statement "if (pcVar6 <= param_2) {\n    return uVar2;\n  }" if (parenthesized_expression "(pcVar6 <= param_2)" ( (binary_expression "pcVar6 <= param_2" identifier <= identifier) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) (do_statement "do {\n    cVar3 = *param_2;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    param_2 = param_2 + 1;\n    uVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(undefined4 *)(param_1 + 0x50) = uVar2;\n    if (pcVar6 == param_2) {\n      return uVar2;\n    }\n  } while( true );" do (compound_statement "{\n    cVar3 = *param_2;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    param_2 = param_2 + 1;\n    uVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(undefined4 *)(param_1 + 0x50) = uVar2;\n    if (pcVar6 == param_2) {\n      return uVar2;\n    }\n  }" { (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }" if (parenthesized_expression "(cVar3 == -1)" ( (binary_expression "cVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }" { (expression_statement "piVar4 = *(int **)(param_1 + 4);" (assignment_expression "piVar4 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "pcVar9 = *(code **)(*piVar4 + 8);" (assignment_expression "pcVar9 = *(code **)(*piVar4 + 8)" identifier = (pointer_expression "*(code **)(*piVar4 + 8)" * (cast_expression "(code **)(*piVar4 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 8)" ( (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) ;) (expression_statement "puVar1 = puVar8;" (assignment_expression "puVar1 = puVar8" identifier = identifier) ;) }) (else_clause "else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }" else (compound_statement "{\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }" { (if_statement "if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;" if (parenthesized_expression "((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r'))" ( (binary_expression "(*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')" (parenthesized_expression "(*(int *)(param_1 + 0x3c) == 1)" ( (binary_expression "*(int *)(param_1 + 0x3c) == 1" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(cVar3 != '\r')" ( (binary_expression "cVar3 != '\r'" identifier != (char_literal "'\r'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) (expression_statement "piVar4 = *(int **)(param_1 + 4);" (assignment_expression "piVar4 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "pcVar9 = *(code **)(*piVar4 + 8);" (assignment_expression "pcVar9 = *(code **)(*piVar4 + 8)" identifier = (pointer_expression "*(code **)(*piVar4 + 8)" * (cast_expression "(code **)(*piVar4 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 8)" ( (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) ;) (expression_statement "puVar1 = puVar7;" (assignment_expression "puVar1 = puVar7" identifier = identifier) ;) }))) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = (*pcVar9)(piVar4,puVar1,2);" (assignment_expression "uVar2 = (*pcVar9)(piVar4,puVar1,2)" identifier = (call_expression "(*pcVar9)(piVar4,puVar1,2)" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "(piVar4,puVar1,2)" ( identifier , identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = identifier) ;) (if_statement "if (pcVar6 == param_2) {\n      return uVar2;\n    }" if (parenthesized_expression "(pcVar6 == param_2)" ( (binary_expression "pcVar6 == param_2" identifier == identifier) )) (compound_statement "{\n      return uVar2;\n    }" { (return_statement "return uVar2;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) (if_statement "if (pcVar6 <= param_2) goto LAB_000422d4;" if (parenthesized_expression "(pcVar6 <= param_2)" ( (binary_expression "pcVar6 <= param_2" identifier <= identifier) )) (goto_statement "goto LAB_000422d4;" goto statement_identifier ;)) (expression_statement "piVar4 = *(int **)(param_1 + 4);" (assignment_expression "piVar4 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = param_2;" (assignment_expression "pcVar5 = param_2" identifier = identifier) ;) (goto_statement "goto LAB_000421b8;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * 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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (labeled_statement statement_identifier : (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;)) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) || (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) || (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) (break_statement break ;)) (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 (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) }) while (parenthesized_expression ( BOOL )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (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 = IDENT) ;) (goto_statement goto statement_identifier ;) })))
(function_definition "undefined4 FUN_00042144(int param_1,char *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  char cVar3;\n  undefined4 uVar2;\n  int *piVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  \n  piVar4 = *(int **)(param_1 + 4);\n  pcVar6 = param_2 + param_3;\n  if (piVar4 == (int *)0x0) {\n    return 0;\n  }\n  if (pcVar6 <= param_2) {\nLAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);\n  }\n  cVar3 = *param_2;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;\n  puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;\n  pcVar5 = param_2;\nLAB_000421b8:\n  while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }\n  uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  if (pcVar6 <= param_2) {\n    return uVar2;\n  }\n  do {\n    cVar3 = *param_2;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    param_2 = param_2 + 1;\n    uVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(undefined4 *)(param_1 + 0x50) = uVar2;\n    if (pcVar6 == param_2) {\n      return uVar2;\n    }\n  } while( true );\n  if (pcVar6 <= param_2) goto LAB_000422d4;\n  piVar4 = *(int **)(param_1 + 4);\n  pcVar5 = param_2;\n  goto LAB_000421b8;\n}" (type_identifier "undefined4") (function_declarator "FUN_00042144(int param_1,char *param_2,int param_3)" (identifier "FUN_00042144") (parameter_list "(int param_1,char *param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  char cVar3;\n  undefined4 uVar2;\n  int *piVar4;\n  char *pcVar5;\n  char *pcVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  \n  piVar4 = *(int **)(param_1 + 4);\n  pcVar6 = param_2 + param_3;\n  if (piVar4 == (int *)0x0) {\n    return 0;\n  }\n  if (pcVar6 <= param_2) {\nLAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);\n  }\n  cVar3 = *param_2;\n  puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;\n  puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;\n  pcVar5 = param_2;\nLAB_000421b8:\n  while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }\n  uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  if (pcVar6 <= param_2) {\n    return uVar2;\n  }\n  do {\n    cVar3 = *param_2;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    param_2 = param_2 + 1;\n    uVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(undefined4 *)(param_1 + 0x50) = uVar2;\n    if (pcVar6 == param_2) {\n      return uVar2;\n    }\n  } while( true );\n  if (pcVar6 <= param_2) goto LAB_000422d4;\n  piVar4 = *(int **)(param_1 + 4);\n  pcVar5 = param_2;\n  goto LAB_000421b8;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "code *pcVar9;" (type_identifier "code") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (expression_statement "piVar4 = *(int **)(param_1 + 4);" (assignment_expression "piVar4 = *(int **)(param_1 + 4)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "pcVar6 = param_2 + param_3;" (assignment_expression "pcVar6 = param_2 + param_3" (identifier "pcVar6") (= "=") (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3"))) (; ";")) (if_statement "if (piVar4 == (int *)0x0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(piVar4 == (int *)0x0)" (( "(") (binary_expression "piVar4 == (int *)0x0" (identifier "piVar4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (pcVar6 <= param_2) {\nLAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);\n  }" (if "if") (parenthesized_expression "(pcVar6 <= param_2)" (( "(") (binary_expression "pcVar6 <= param_2" (identifier "pcVar6") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\nLAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);\n  }" ({ "{") (labeled_statement "LAB_000422d4:\n    return *(undefined4 *)(param_1 + 0x50);" (statement_identifier "LAB_000422d4") (: ":") (return_statement "return *(undefined4 *)(param_1 + 0x50);" (return "return") (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (; ";"))) (} "}"))) (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" (identifier "cVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;" (assignment_expression "puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00" (identifier "puVar8") (= "=") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5f00"))) (; ";")) (expression_statement "puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;" (assignment_expression "puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04" (identifier "puVar7") (= "=") (binary_expression "PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04" (identifier "PTR_s_XXXXXXXXXX___________000b5214") (+ "+") (number_literal "-0x5f04"))) (; ";")) (expression_statement "pcVar5 = param_2;" (assignment_expression "pcVar5 = param_2" (identifier "pcVar5") (= "=") (identifier "param_2")) (; ";")) (labeled_statement "LAB_000421b8:\n  while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }" (statement_identifier "LAB_000421b8") (: ":") (while_statement "while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }" (while "while") (parenthesized_expression "((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r')))))" (( "(") (parenthesized_expression "(cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))" (( "(") (binary_expression "cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r')))" (binary_expression "cVar3 != -1" (identifier "cVar3") (!= "!=") (number_literal "-1")) (&& "&&") (parenthesized_expression "((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r')))" (( "(") (parenthesized_expression "(*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))" (( "(") (binary_expression "*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r')" (binary_expression "*(int *)(param_1 + 0x3c) == 1" (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (== "==") (number_literal "1")) (|| "||") (parenthesized_expression "(cVar3 != '\r')" (( "(") (binary_expression "cVar3 != '\r'" (identifier "cVar3") (!= "!=") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")"))) () ")")) () ")"))) () ")")) () ")")) (compound_statement "{\n    param_2 = param_2 + 1;\n    if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }\n    cVar3 = *param_2;\n  }" ({ "{") (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (pcVar6 <= param_2) {\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(pcVar6 <= param_2)" (( "(") (binary_expression "pcVar6 <= param_2" (identifier "pcVar6") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);\n      *(undefined4 *)(param_1 + 0x50) = uVar2;\n      return uVar2;\n    }" ({ "{") (expression_statement "uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);" (assignment_expression "uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" (parenthesized_expression "(**(code **)(*piVar4 + 8))" (( "(") (pointer_expression "**(code **)(*piVar4 + 8)" (* "*") (pointer_expression "*(code **)(*piVar4 + 8)" (* "*") (cast_expression "(code **)(*piVar4 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 8)" (( "(") (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" (( "(") (identifier "piVar4") (, ",") (identifier "pcVar5") (, ",") (binary_expression "(int)param_2 - (int)pcVar5" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (- "-") (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar5"))) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x50) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" (identifier "cVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}")))) (expression_statement "uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);" (assignment_expression "uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" (parenthesized_expression "(**(code **)(*piVar4 + 8))" (( "(") (pointer_expression "**(code **)(*piVar4 + 8)" (* "*") (pointer_expression "*(code **)(*piVar4 + 8)" (* "*") (cast_expression "(code **)(*piVar4 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 8)" (( "(") (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(piVar4,pcVar5,(int)param_2 - (int)pcVar5)" (( "(") (identifier "piVar4") (, ",") (identifier "pcVar5") (, ",") (binary_expression "(int)param_2 - (int)pcVar5" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (- "-") (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar5"))) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x50) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (pcVar6 <= param_2) {\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(pcVar6 <= param_2)" (( "(") (binary_expression "pcVar6 <= param_2" (identifier "pcVar6") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n    return uVar2;\n  }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (do_statement "do {\n    cVar3 = *param_2;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    param_2 = param_2 + 1;\n    uVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(undefined4 *)(param_1 + 0x50) = uVar2;\n    if (pcVar6 == param_2) {\n      return uVar2;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    cVar3 = *param_2;\n    if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }\n    param_2 = param_2 + 1;\n    uVar2 = (*pcVar9)(piVar4,puVar1,2);\n    *(undefined4 *)(param_1 + 0x50) = uVar2;\n    if (pcVar6 == param_2) {\n      return uVar2;\n    }\n  }" ({ "{") (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" (identifier "cVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (cVar3 == -1) {\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }\n    else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }" (if "if") (parenthesized_expression "(cVar3 == -1)" (( "(") (binary_expression "cVar3 == -1" (identifier "cVar3") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar8;\n    }" ({ "{") (expression_statement "piVar4 = *(int **)(param_1 + 4);" (assignment_expression "piVar4 = *(int **)(param_1 + 4)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "pcVar9 = *(code **)(*piVar4 + 8);" (assignment_expression "pcVar9 = *(code **)(*piVar4 + 8)" (identifier "pcVar9") (= "=") (pointer_expression "*(code **)(*piVar4 + 8)" (* "*") (cast_expression "(code **)(*piVar4 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 8)" (( "(") (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "puVar1 = puVar8;" (assignment_expression "puVar1 = puVar8" (identifier "puVar1") (= "=") (identifier "puVar8")) (; ";")) (} "}")) (else_clause "else {\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }" (else "else") (compound_statement "{\n      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;\n      piVar4 = *(int **)(param_1 + 4);\n      pcVar9 = *(code **)(*piVar4 + 8);\n      puVar1 = puVar7;\n    }" ({ "{") (if_statement "if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r'))" (( "(") (binary_expression "(*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')" (parenthesized_expression "(*(int *)(param_1 + 0x3c) == 1)" (( "(") (binary_expression "*(int *)(param_1 + 0x3c) == 1" (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (== "==") (number_literal "1")) () ")")) (|| "||") (parenthesized_expression "(cVar3 != '\r')" (( "(") (binary_expression "cVar3 != '\r'" (identifier "cVar3") (!= "!=") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "piVar4 = *(int **)(param_1 + 4);" (assignment_expression "piVar4 = *(int **)(param_1 + 4)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "pcVar9 = *(code **)(*piVar4 + 8);" (assignment_expression "pcVar9 = *(code **)(*piVar4 + 8)" (identifier "pcVar9") (= "=") (pointer_expression "*(code **)(*piVar4 + 8)" (* "*") (cast_expression "(code **)(*piVar4 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 8)" (( "(") (binary_expression "*piVar4 + 8" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "puVar1 = puVar7;" (assignment_expression "puVar1 = puVar7" (identifier "puVar1") (= "=") (identifier "puVar7")) (; ";")) (} "}")))) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = (*pcVar9)(piVar4,puVar1,2);" (assignment_expression "uVar2 = (*pcVar9)(piVar4,puVar1,2)" (identifier "uVar2") (= "=") (call_expression "(*pcVar9)(piVar4,puVar1,2)" (parenthesized_expression "(*pcVar9)" (( "(") (pointer_expression "*pcVar9" (* "*") (identifier "pcVar9")) () ")")) (argument_list "(piVar4,puVar1,2)" (( "(") (identifier "piVar4") (, ",") (identifier "puVar1") (, ",") (number_literal "2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x50) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (pcVar6 == param_2) {\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(pcVar6 == param_2)" (( "(") (binary_expression "pcVar6 == param_2" (identifier "pcVar6") (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n      return uVar2;\n    }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (if_statement "if (pcVar6 <= param_2) goto LAB_000422d4;" (if "if") (parenthesized_expression "(pcVar6 <= param_2)" (( "(") (binary_expression "pcVar6 <= param_2" (identifier "pcVar6") (<= "<=") (identifier "param_2")) () ")")) (goto_statement "goto LAB_000422d4;" (goto "goto") (statement_identifier "LAB_000422d4") (; ";"))) (expression_statement "piVar4 = *(int **)(param_1 + 4);" (assignment_expression "piVar4 = *(int **)(param_1 + 4)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "pcVar5 = param_2;" (assignment_expression "pcVar5 = param_2" (identifier "pcVar5") (= "=") (identifier "param_2")) (; ";")) (goto_statement "goto LAB_000421b8;" (goto "goto") (statement_identifier "LAB_000421b8") (; ";")) (} "}")))

int function_1(void *handle,char *var_1,int var_2)

{
  type_1 *puVar1;
  char var_6;
  int iVar2;
  int *var_3;
  char *pcVar5;
  char *var_4;
  type_1 *puVar7;
  type_1 *puVar8;
  type_2 *pcVar9;
  
  var_3 = *(int **)((int)handle + 4);
  var_4 = var_1 + var_2;
  if (var_3 == (int *)0x0) {
    return 0;
  }
  if (var_4 <= var_1) {
LAB_000422d4:
    return *(int *)((int)handle + 0x50);
  }
  var_6 = *var_1;
  puVar8 = var_5 + -0x5f00;
  puVar7 = var_5 + -0x5f04;
  pcVar5 = var_1;
LAB_000421b8:
  while ((var_6 != -1 && ((*(int *)((int)handle + 0x3c) == 1 || (var_6 != '\r'))))) {
    var_1 = var_1 + 1;
    if (var_4 <= var_1) {
      iVar2 = (**(type_2 **)(*var_3 + 8))(var_3,pcVar5,(int)var_1 - (int)pcVar5);
      *(int *)((int)handle + 0x50) = iVar2;
      return iVar2;
    }
    var_6 = *var_1;
  }
  iVar2 = (**(type_2 **)(*var_3 + 8))(var_3,pcVar5,(int)var_1 - (int)pcVar5);
  *(int *)((int)handle + 0x50) = iVar2;
  if (var_4 <= var_1) {
    return iVar2;
  }
  do {
    var_6 = *var_1;
    if (var_6 == -1) {
      var_3 = *(int **)((int)handle + 4);
      pcVar9 = *(type_2 **)(*var_3 + 8);
      puVar1 = puVar8;
    }
    else {
      if ((*(int *)((int)handle + 0x3c) == 1) || (var_6 != '\r')) break;
      var_3 = *(int **)((int)handle + 4);
      pcVar9 = *(type_2 **)(*var_3 + 8);
      puVar1 = puVar7;
    }
    var_1 = var_1 + 1;
    iVar2 = (*pcVar9)(var_3,puVar1,2);
    *(int *)((int)handle + 0x50) = iVar2;
    if (var_4 == var_1) {
      return iVar2;
    }
  } while( true );
  if (var_4 <= var_1) goto LAB_000422d4;
  var_3 = *(int **)((int)handle + 4);
  pcVar5 = var_1;
  goto LAB_000421b8;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (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: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (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: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (pointer_expression argument: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (pointer_expression argument: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier))))) condition: (parenthesized_expression (true))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (identifier))) (goto_statement label: (statement_identifier)))))

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

{
  undefined *puVar1;
  char cVar3;
  undefined4 uVar2;
  int *piVar4;
  char *pcVar5;
  char *pcVar6;
  undefined *puVar7;
  undefined *puVar8;
  code *pcVar9;
  
  piVar4 = *(int **)(param_1 + 4);
  pcVar6 = param_2 + param_3;
  if (piVar4 == (int *)0x0) {
    return 0;
  }
  if (pcVar6 <= param_2) {
LAB_000422d4:
    return *(undefined4 *)(param_1 + 0x50);
  }
  cVar3 = *param_2;
  puVar8 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f00;
  puVar7 = PTR_s_XXXXXXXXXX___________000b5214 + -0x5f04;
  pcVar5 = param_2;
LAB_000421b8:
  while ((cVar3 != -1 && ((*(int *)(param_1 + 0x3c) == 1 || (cVar3 != '\r'))))) {
    param_2 = param_2 + 1;
    if (pcVar6 <= param_2) {
      uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);
      *(undefined4 *)(param_1 + 0x50) = uVar2;
      return uVar2;
    }
    cVar3 = *param_2;
  }
  uVar2 = (**(code **)(*piVar4 + 8))(piVar4,pcVar5,(int)param_2 - (int)pcVar5);
  *(undefined4 *)(param_1 + 0x50) = uVar2;
  if (pcVar6 <= param_2) {
    return uVar2;
  }
  do {
    cVar3 = *param_2;
    if (cVar3 == -1) {
      piVar4 = *(int **)(param_1 + 4);
      pcVar9 = *(code **)(*piVar4 + 8);
      puVar1 = puVar8;
    }
    else {
      if ((*(int *)(param_1 + 0x3c) == 1) || (cVar3 != '\r')) break;
      piVar4 = *(int **)(param_1 + 4);
      pcVar9 = *(code **)(*piVar4 + 8);
      puVar1 = puVar7;
    }
    param_2 = param_2 + 1;
    uVar2 = (*pcVar9)(piVar4,puVar1,2);
    *(undefined4 *)(param_1 + 0x50) = uVar2;
    if (pcVar6 == param_2) {
      return uVar2;
    }
  } while( true );
  if (pcVar6 <= param_2) goto LAB_000422d4;
  piVar4 = *(int **)(param_1 + 4);
  pcVar5 = param_2;
  goto LAB_000421b8;
}

