
Bignum ssh2_pkt_getmp(Packet *pkt)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  int in_t9;
  code *pcVar4;
  char *p;
  int length;
  int local_c;
  
  piVar2 = *(int **)(in_t9 + 0xca64c);
  local_c = *piVar2;
  ssh_pkt_getstring(pkt,&p,&length);
  if (p != (char *)0x0) {
    if (*p < '\0') {
      p = (char *)0x0;
    }
    else {
      p = (char *)bignum_from_bytes((uchar *)p,length);
    }
  }
  if (local_c == *piVar2) {
    return p;
  }
  pcVar4 = *(code **)(in_t9 + 0xca2e4);
  (*pcVar4)();
  iVar1 = (**(code **)(pcVar4 + 0xc96e4))();
  iVar3 = iVar1 + 7;
  if (iVar3 < 0) {
    iVar3 = iVar1 + 0xe;
  }
                    /* WARNING: Subroutine does not return */
  safemalloc((iVar3 >> 3) + 1,1);
}



char * FUN_00047fe4(undefined4 param_1)

{
  char *pcVar1;
  int iVar2;
  char *pcVar3;
  char cVar5;
  char *pcVar4;
  int iVar6;
  char *pcVar7;
  char **ppcVar8;
  int iVar9;
  char *pcVar10;
  undefined *puVar11;
  char *local_14;
  char **local_10;
  int local_c;
  
  puVar11 = PTR___stack_chk_guard_00112630;
  ppcVar8 = &local_14;
  local_c = *(int *)PTR___stack_chk_guard_00112630;
  FUN_00047b74(param_1,ppcVar8,&local_10);
  if (local_14 != (char *)0x0) {
    if (*local_14 < '\0') {
      local_14 = (char *)0x0;
    }
    else {
      local_14 = (char *)bignum_from_bytes(local_14);
      ppcVar8 = local_10;
    }
  }
  if (local_c == *(int *)puVar11) {
    return local_14;
  }
  iVar6 = local_c;
  puVar11 = PTR___stack_chk_fail_001122c8;
  (*(code *)PTR___stack_chk_fail_001122c8)();
  iVar2 = (**(code **)(puVar11 + 0xc96e4))();
  iVar9 = iVar2 + 7;
  if (iVar9 < 0) {
    iVar9 = iVar2 + 0xe;
  }
  iVar9 = iVar9 >> 3;
  pcVar10 = (char *)(iVar9 + 1);
  pcVar3 = (char *)safemalloc(pcVar10,1);
  *pcVar3 = '\0';
  pcVar4 = pcVar3;
  if (iVar2 < 1) {
    if (iVar2 < -0xe) goto LAB_00048174;
  }
  else {
    iVar2 = 1;
    do {
      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);
      pcVar7 = pcVar3 + iVar2;
      iVar2 = iVar2 + 1;
      *pcVar7 = cVar5;
    } while (iVar2 <= iVar9);
    if (*pcVar3 != '\0') goto LAB_00048174;
  }
  if (-1 < pcVar3[1]) {
    iVar6 = 0;
    pcVar7 = pcVar3;
    do {
      pcVar4 = pcVar7 + 1;
      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {
        pcVar10 = (char *)(iVar9 - iVar6);
        break;
      }
      pcVar1 = pcVar7 + 2;
      pcVar10 = (char *)(iVar9 - iVar6);
      iVar6 = iVar6 + 1;
      pcVar7 = pcVar4;
    } while (-1 < *pcVar1);
  }
LAB_00048174:
  pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);
  *ppcVar8 = pcVar10;
  return pcVar4;
}


lui gp,0xd
addiu gp,gp,0x12cc
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7ca0(gp)
addiu a2,sp,0x20
sw s0,0x28(sp)
addiu a1,sp,0x1c
lw s0,-0x6c80(gp)
addiu t9,t9,0x7b74
sw gp,0x10(sp)
sw ra,0x2c(sp)
lw v0,0x0(s0)
sw v0,0x24(sp)
bal 0x00047b74
_nop
lw v0,0x1c(sp)
beq v0,zero,0x0004804c
_lw gp,0x10(sp)
lb v1,0x0(v0)
bltz v1,0x00048068
_lw t9,-0x7b54(gp)
or a0,v0,zero
bal 0x00067f70
_lw a1,0x20(sp)
lw gp,0x10(sp)
lw a0,0x24(sp)
lw v1,0x0(s0)
bne a0,v1,0x00048070
_lw ra,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x30
b 0x0004804c
_or v0,zero,zero
lw t9,-0x6fe8(gp)
jalr t9
_nop
(translation_unit "char * FUN_00047fe4(undefined4 param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  char cVar5;\n  char *pcVar4;\n  int iVar6;\n  char *pcVar7;\n  char **ppcVar8;\n  int iVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  char *local_14;\n  char **local_10;\n  int local_c;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  ppcVar8 = &local_14;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  FUN_00047b74(param_1,ppcVar8,&local_10);\n  if (local_14 != (char *)0x0) {\n    if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }\n  }\n  if (local_c == *(int *)puVar11) {\n    return local_14;\n  }\n  iVar6 = local_c;\n  puVar11 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  iVar2 = (**(code **)(puVar11 + 0xc96e4))();\n  iVar9 = iVar2 + 7;\n  if (iVar9 < 0) {\n    iVar9 = iVar2 + 0xe;\n  }\n  iVar9 = iVar9 >> 3;\n  pcVar10 = (char *)(iVar9 + 1);\n  pcVar3 = (char *)safemalloc(pcVar10,1);\n  *pcVar3 = '\0';\n  pcVar4 = pcVar3;\n  if (iVar2 < 1) {\n    if (iVar2 < -0xe) goto LAB_00048174;\n  }\n  else {\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }\n  if (-1 < pcVar3[1]) {\n    iVar6 = 0;\n    pcVar7 = pcVar3;\n    do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);\n  }\nLAB_00048174:\n  pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);\n  *ppcVar8 = pcVar10;\n  return pcVar4;\n}\n\n" (function_definition "char * FUN_00047fe4(undefined4 param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  char cVar5;\n  char *pcVar4;\n  int iVar6;\n  char *pcVar7;\n  char **ppcVar8;\n  int iVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  char *local_14;\n  char **local_10;\n  int local_c;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  ppcVar8 = &local_14;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  FUN_00047b74(param_1,ppcVar8,&local_10);\n  if (local_14 != (char *)0x0) {\n    if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }\n  }\n  if (local_c == *(int *)puVar11) {\n    return local_14;\n  }\n  iVar6 = local_c;\n  puVar11 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  iVar2 = (**(code **)(puVar11 + 0xc96e4))();\n  iVar9 = iVar2 + 7;\n  if (iVar9 < 0) {\n    iVar9 = iVar2 + 0xe;\n  }\n  iVar9 = iVar9 >> 3;\n  pcVar10 = (char *)(iVar9 + 1);\n  pcVar3 = (char *)safemalloc(pcVar10,1);\n  *pcVar3 = '\0';\n  pcVar4 = pcVar3;\n  if (iVar2 < 1) {\n    if (iVar2 < -0xe) goto LAB_00048174;\n  }\n  else {\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }\n  if (-1 < pcVar3[1]) {\n    iVar6 = 0;\n    pcVar7 = pcVar3;\n    do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);\n  }\nLAB_00048174:\n  pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);\n  *ppcVar8 = pcVar10;\n  return pcVar4;\n}" primitive_type (pointer_declarator "* FUN_00047fe4(undefined4 param_1)" * (function_declarator "FUN_00047fe4(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  char cVar5;\n  char *pcVar4;\n  int iVar6;\n  char *pcVar7;\n  char **ppcVar8;\n  int iVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  char *local_14;\n  char **local_10;\n  int local_c;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  ppcVar8 = &local_14;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  FUN_00047b74(param_1,ppcVar8,&local_10);\n  if (local_14 != (char *)0x0) {\n    if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }\n  }\n  if (local_c == *(int *)puVar11) {\n    return local_14;\n  }\n  iVar6 = local_c;\n  puVar11 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  iVar2 = (**(code **)(puVar11 + 0xc96e4))();\n  iVar9 = iVar2 + 7;\n  if (iVar9 < 0) {\n    iVar9 = iVar2 + 0xe;\n  }\n  iVar9 = iVar9 >> 3;\n  pcVar10 = (char *)(iVar9 + 1);\n  pcVar3 = (char *)safemalloc(pcVar10,1);\n  *pcVar3 = '\0';\n  pcVar4 = pcVar3;\n  if (iVar2 < 1) {\n    if (iVar2 < -0xe) goto LAB_00048174;\n  }\n  else {\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }\n  if (-1 < pcVar3[1]) {\n    iVar6 = 0;\n    pcVar7 = pcVar3;\n    do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);\n  }\nLAB_00048174:\n  pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);\n  *ppcVar8 = pcVar10;\n  return pcVar4;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char **ppcVar8;" primitive_type (pointer_declarator "**ppcVar8" * (pointer_declarator "*ppcVar8" * identifier)) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "char *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (declaration "char **local_10;" primitive_type (pointer_declarator "**local_10" * (pointer_declarator "*local_10" * identifier)) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar11 = PTR___stack_chk_guard_00112630;" (assignment_expression "puVar11 = PTR___stack_chk_guard_00112630" identifier = identifier) ;) (expression_statement "ppcVar8 = &local_14;" (assignment_expression "ppcVar8 = &local_14" identifier = (pointer_expression "&local_14" & identifier)) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_00112630;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_00112630" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00112630" * (cast_expression "(int *)PTR___stack_chk_guard_00112630" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "FUN_00047b74(param_1,ppcVar8,&local_10);" (call_expression "FUN_00047b74(param_1,ppcVar8,&local_10)" identifier (argument_list "(param_1,ppcVar8,&local_10)" ( identifier , identifier , (pointer_expression "&local_10" & identifier) ))) ;) (if_statement "if (local_14 != (char *)0x0) {\n    if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }\n  }" if (parenthesized_expression "(local_14 != (char *)0x0)" ( (binary_expression "local_14 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }\n  }" { (if_statement "if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }" if (parenthesized_expression "(*local_14 < '\0')" ( (binary_expression "*local_14 < '\0'" (pointer_expression "*local_14" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_14 = (char *)0x0;\n    }" { (expression_statement "local_14 = (char *)0x0;" (assignment_expression "local_14 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }" else (compound_statement "{\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }" { (expression_statement "local_14 = (char *)bignum_from_bytes(local_14);" (assignment_expression "local_14 = (char *)bignum_from_bytes(local_14)" identifier = (cast_expression "(char *)bignum_from_bytes(local_14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bignum_from_bytes(local_14)" identifier (argument_list "(local_14)" ( identifier ))))) ;) (expression_statement "ppcVar8 = local_10;" (assignment_expression "ppcVar8 = local_10" identifier = identifier) ;) }))) })) (if_statement "if (local_c == *(int *)puVar11) {\n    return local_14;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar11)" ( (binary_expression "local_c == *(int *)puVar11" identifier == (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return local_14;\n  }" { (return_statement "return local_14;" return identifier ;) })) (expression_statement "iVar6 = local_c;" (assignment_expression "iVar6 = local_c" identifier = identifier) ;) (expression_statement "puVar11 = PTR___stack_chk_fail_001122c8;" (assignment_expression "puVar11 = PTR___stack_chk_fail_001122c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001122c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_001122c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001122c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001122c8" * (cast_expression "(code *)PTR___stack_chk_fail_001122c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = (**(code **)(puVar11 + 0xc96e4))();" (assignment_expression "iVar2 = (**(code **)(puVar11 + 0xc96e4))()" identifier = (call_expression "(**(code **)(puVar11 + 0xc96e4))()" (parenthesized_expression "(**(code **)(puVar11 + 0xc96e4))" ( (pointer_expression "**(code **)(puVar11 + 0xc96e4)" * (pointer_expression "*(code **)(puVar11 + 0xc96e4)" * (cast_expression "(code **)(puVar11 + 0xc96e4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0xc96e4)" ( (binary_expression "puVar11 + 0xc96e4" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "iVar9 = iVar2 + 7;" (assignment_expression "iVar9 = iVar2 + 7" identifier = (binary_expression "iVar2 + 7" identifier + number_literal)) ;) (if_statement "if (iVar9 < 0) {\n    iVar9 = iVar2 + 0xe;\n  }" if (parenthesized_expression "(iVar9 < 0)" ( (binary_expression "iVar9 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar9 = iVar2 + 0xe;\n  }" { (expression_statement "iVar9 = iVar2 + 0xe;" (assignment_expression "iVar9 = iVar2 + 0xe" identifier = (binary_expression "iVar2 + 0xe" identifier + number_literal)) ;) })) (expression_statement "iVar9 = iVar9 >> 3;" (assignment_expression "iVar9 = iVar9 >> 3" identifier = (binary_expression "iVar9 >> 3" identifier >> number_literal)) ;) (expression_statement "pcVar10 = (char *)(iVar9 + 1);" (assignment_expression "pcVar10 = (char *)(iVar9 + 1)" identifier = (cast_expression "(char *)(iVar9 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 1)" ( (binary_expression "iVar9 + 1" identifier + number_literal) )))) ;) (expression_statement "pcVar3 = (char *)safemalloc(pcVar10,1);" (assignment_expression "pcVar3 = (char *)safemalloc(pcVar10,1)" identifier = (cast_expression "(char *)safemalloc(pcVar10,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(pcVar10,1)" identifier (argument_list "(pcVar10,1)" ( identifier , number_literal ))))) ;) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" identifier = identifier) ;) (if_statement "if (iVar2 < 1) {\n    if (iVar2 < -0xe) goto LAB_00048174;\n  }\n  else {\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n    if (iVar2 < -0xe) goto LAB_00048174;\n  }" { (if_statement "if (iVar2 < -0xe) goto LAB_00048174;" if (parenthesized_expression "(iVar2 < -0xe)" ( (binary_expression "iVar2 < -0xe" identifier < number_literal) )) (goto_statement "goto LAB_00048174;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }" else (compound_statement "{\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }" { (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (do_statement "do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);" do (compound_statement "{\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    }" { (expression_statement "cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);" (assignment_expression "cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2)" identifier = (call_expression "(**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2)" (parenthesized_expression "(**(code **)(puVar11 + 0xc96e8))" ( (pointer_expression "**(code **)(puVar11 + 0xc96e8)" * (pointer_expression "*(code **)(puVar11 + 0xc96e8)" * (cast_expression "(code **)(puVar11 + 0xc96e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0xc96e8)" ( (binary_expression "puVar11 + 0xc96e8" identifier + number_literal) ))))) )) (argument_list "(iVar6,iVar9 - iVar2)" ( identifier , (binary_expression "iVar9 - iVar2" identifier - identifier) )))) ;) (expression_statement "pcVar7 = pcVar3 + iVar2;" (assignment_expression "pcVar7 = pcVar3 + iVar2" identifier = (binary_expression "pcVar3 + iVar2" identifier + identifier)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar7 = cVar5;" (assignment_expression "*pcVar7 = cVar5" (pointer_expression "*pcVar7" * identifier) = identifier) ;) }) while (parenthesized_expression "(iVar2 <= iVar9)" ( (binary_expression "iVar2 <= iVar9" identifier <= identifier) )) ;) (if_statement "if (*pcVar3 != '\0') goto LAB_00048174;" if (parenthesized_expression "(*pcVar3 != '\0')" ( (binary_expression "*pcVar3 != '\0'" (pointer_expression "*pcVar3" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00048174;" goto statement_identifier ;)) }))) (if_statement "if (-1 < pcVar3[1]) {\n    iVar6 = 0;\n    pcVar7 = pcVar3;\n    do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);\n  }" if (parenthesized_expression "(-1 < pcVar3[1])" ( (binary_expression "-1 < pcVar3[1]" number_literal < (subscript_expression "pcVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n    iVar6 = 0;\n    pcVar7 = pcVar3;\n    do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);\n  }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "pcVar7 = pcVar3;" (assignment_expression "pcVar7 = pcVar3" identifier = identifier) ;) (do_statement "do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);" do (compound_statement "{\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    }" { (expression_statement "pcVar4 = pcVar7 + 1;" (assignment_expression "pcVar4 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (if_statement "if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }" if (parenthesized_expression "((iVar9 < iVar6 + 1) || (*pcVar4 != '\0'))" ( (binary_expression "(iVar9 < iVar6 + 1) || (*pcVar4 != '\0')" (parenthesized_expression "(iVar9 < iVar6 + 1)" ( (binary_expression "iVar9 < iVar6 + 1" identifier < (binary_expression "iVar6 + 1" identifier + number_literal)) )) || (parenthesized_expression "(*pcVar4 != '\0')" ( (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }" { (expression_statement "pcVar10 = (char *)(iVar9 - iVar6);" (assignment_expression "pcVar10 = (char *)(iVar9 - iVar6)" identifier = (cast_expression "(char *)(iVar9 - iVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 - iVar6)" ( (binary_expression "iVar9 - iVar6" identifier - identifier) )))) ;) (break_statement "break;" break ;) })) (expression_statement "pcVar1 = pcVar7 + 2;" (assignment_expression "pcVar1 = pcVar7 + 2" identifier = (binary_expression "pcVar7 + 2" identifier + number_literal)) ;) (expression_statement "pcVar10 = (char *)(iVar9 - iVar6);" (assignment_expression "pcVar10 = (char *)(iVar9 - iVar6)" identifier = (cast_expression "(char *)(iVar9 - iVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 - iVar6)" ( (binary_expression "iVar9 - iVar6" identifier - identifier) )))) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "pcVar7 = pcVar4;" (assignment_expression "pcVar7 = pcVar4" identifier = identifier) ;) }) while (parenthesized_expression "(-1 < *pcVar1)" ( (binary_expression "-1 < *pcVar1" number_literal < (pointer_expression "*pcVar1" * identifier)) )) ;) })) (labeled_statement "LAB_00048174:\n  pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);" statement_identifier : (expression_statement "pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);" (assignment_expression "pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10)" identifier = (cast_expression "(char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10)" (parenthesized_expression "(**(code **)(puVar11 + 0xc9f6c))" ( (pointer_expression "**(code **)(puVar11 + 0xc9f6c)" * (pointer_expression "*(code **)(puVar11 + 0xc9f6c)" * (cast_expression "(code **)(puVar11 + 0xc9f6c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0xc9f6c)" ( (binary_expression "puVar11 + 0xc9f6c" identifier + number_literal) ))))) )) (argument_list "(pcVar3,pcVar4,pcVar10)" ( identifier , identifier , identifier ))))) ;)) (expression_statement "*ppcVar8 = pcVar10;" (assignment_expression "*ppcVar8 = pcVar10" (pointer_expression "*ppcVar8" * identifier) = identifier) ;) (return_statement "return pcVar4;" return identifier ;) })))
(translation_unit "Bignum ssh2_pkt_getmp(Packet *pkt)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int in_t9;\n  code *pcVar4;\n  char *p;\n  int length;\n  int local_c;\n  \n  piVar2 = *(int **)(in_t9 + 0xca64c);\n  local_c = *piVar2;\n  ssh_pkt_getstring(pkt,&p,&length);\n  if (p != (char *)0x0) {\n    if (*p < '\0') {\n      p = (char *)0x0;\n    }\n    else {\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }\n  }\n  if (local_c == *piVar2) {\n    return p;\n  }\n  pcVar4 = *(code **)(in_t9 + 0xca2e4);\n  (*pcVar4)();\n  iVar1 = (**(code **)(pcVar4 + 0xc96e4))();\n  iVar3 = iVar1 + 7;\n  if (iVar3 < 0) {\n    iVar3 = iVar1 + 0xe;\n  }\n                    /* WARNING: Subroutine does not return */\n  safemalloc((iVar3 >> 3) + 1,1);\n}\n\n" (function_definition "Bignum ssh2_pkt_getmp(Packet *pkt)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int in_t9;\n  code *pcVar4;\n  char *p;\n  int length;\n  int local_c;\n  \n  piVar2 = *(int **)(in_t9 + 0xca64c);\n  local_c = *piVar2;\n  ssh_pkt_getstring(pkt,&p,&length);\n  if (p != (char *)0x0) {\n    if (*p < '\0') {\n      p = (char *)0x0;\n    }\n    else {\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }\n  }\n  if (local_c == *piVar2) {\n    return p;\n  }\n  pcVar4 = *(code **)(in_t9 + 0xca2e4);\n  (*pcVar4)();\n  iVar1 = (**(code **)(pcVar4 + 0xc96e4))();\n  iVar3 = iVar1 + 7;\n  if (iVar3 < 0) {\n    iVar3 = iVar1 + 0xe;\n  }\n                    /* WARNING: Subroutine does not return */\n  safemalloc((iVar3 >> 3) + 1,1);\n}" type_identifier (function_declarator "ssh2_pkt_getmp(Packet *pkt)" identifier (parameter_list "(Packet *pkt)" ( (parameter_declaration "Packet *pkt" type_identifier (pointer_declarator "*pkt" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  int in_t9;\n  code *pcVar4;\n  char *p;\n  int length;\n  int local_c;\n  \n  piVar2 = *(int **)(in_t9 + 0xca64c);\n  local_c = *piVar2;\n  ssh_pkt_getstring(pkt,&p,&length);\n  if (p != (char *)0x0) {\n    if (*p < '\0') {\n      p = (char *)0x0;\n    }\n    else {\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }\n  }\n  if (local_c == *piVar2) {\n    return p;\n  }\n  pcVar4 = *(code **)(in_t9 + 0xca2e4);\n  (*pcVar4)();\n  iVar1 = (**(code **)(pcVar4 + 0xc96e4))();\n  iVar3 = iVar1 + 7;\n  if (iVar3 < 0) {\n    iVar3 = iVar1 + 0xe;\n  }\n                    /* WARNING: Subroutine does not return */\n  safemalloc((iVar3 >> 3) + 1,1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *p;" primitive_type (pointer_declarator "*p" * identifier) ;) (declaration "int length;" primitive_type identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "piVar2 = *(int **)(in_t9 + 0xca64c);" (assignment_expression "piVar2 = *(int **)(in_t9 + 0xca64c)" identifier = (pointer_expression "*(int **)(in_t9 + 0xca64c)" * (cast_expression "(int **)(in_t9 + 0xca64c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0xca64c)" ( (binary_expression "in_t9 + 0xca64c" identifier + number_literal) ))))) ;) (expression_statement "local_c = *piVar2;" (assignment_expression "local_c = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "ssh_pkt_getstring(pkt,&p,&length);" (call_expression "ssh_pkt_getstring(pkt,&p,&length)" identifier (argument_list "(pkt,&p,&length)" ( identifier , (pointer_expression "&p" & identifier) , (pointer_expression "&length" & identifier) ))) ;) (if_statement "if (p != (char *)0x0) {\n    if (*p < '\0') {\n      p = (char *)0x0;\n    }\n    else {\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }\n  }" if (parenthesized_expression "(p != (char *)0x0)" ( (binary_expression "p != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*p < '\0') {\n      p = (char *)0x0;\n    }\n    else {\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }\n  }" { (if_statement "if (*p < '\0') {\n      p = (char *)0x0;\n    }\n    else {\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }" if (parenthesized_expression "(*p < '\0')" ( (binary_expression "*p < '\0'" (pointer_expression "*p" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      p = (char *)0x0;\n    }" { (expression_statement "p = (char *)0x0;" (assignment_expression "p = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }" else (compound_statement "{\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }" { (expression_statement "p = (char *)bignum_from_bytes((uchar *)p,length);" (assignment_expression "p = (char *)bignum_from_bytes((uchar *)p,length)" identifier = (cast_expression "(char *)bignum_from_bytes((uchar *)p,length)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bignum_from_bytes((uchar *)p,length)" identifier (argument_list "((uchar *)p,length)" ( (cast_expression "(uchar *)p" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))))) ;) }))) })) (if_statement "if (local_c == *piVar2) {\n    return p;\n  }" if (parenthesized_expression "(local_c == *piVar2)" ( (binary_expression "local_c == *piVar2" identifier == (pointer_expression "*piVar2" * identifier)) )) (compound_statement "{\n    return p;\n  }" { (return_statement "return p;" return identifier ;) })) (expression_statement "pcVar4 = *(code **)(in_t9 + 0xca2e4);" (assignment_expression "pcVar4 = *(code **)(in_t9 + 0xca2e4)" identifier = (pointer_expression "*(code **)(in_t9 + 0xca2e4)" * (cast_expression "(code **)(in_t9 + 0xca2e4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0xca2e4)" ( (binary_expression "in_t9 + 0xca2e4" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar4)();" (call_expression "(*pcVar4)()" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = (**(code **)(pcVar4 + 0xc96e4))();" (assignment_expression "iVar1 = (**(code **)(pcVar4 + 0xc96e4))()" identifier = (call_expression "(**(code **)(pcVar4 + 0xc96e4))()" (parenthesized_expression "(**(code **)(pcVar4 + 0xc96e4))" ( (pointer_expression "**(code **)(pcVar4 + 0xc96e4)" * (pointer_expression "*(code **)(pcVar4 + 0xc96e4)" * (cast_expression "(code **)(pcVar4 + 0xc96e4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar4 + 0xc96e4)" ( (binary_expression "pcVar4 + 0xc96e4" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "iVar3 = iVar1 + 7;" (assignment_expression "iVar3 = iVar1 + 7" identifier = (binary_expression "iVar1 + 7" identifier + number_literal)) ;) (if_statement "if (iVar3 < 0) {\n    iVar3 = iVar1 + 0xe;\n  }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar3 = iVar1 + 0xe;\n  }" { (expression_statement "iVar3 = iVar1 + 0xe;" (assignment_expression "iVar3 = iVar1 + 0xe" identifier = (binary_expression "iVar1 + 0xe" identifier + number_literal)) ;) })) comment (expression_statement "safemalloc((iVar3 >> 3) + 1,1);" (call_expression "safemalloc((iVar3 >> 3) + 1,1)" identifier (argument_list "((iVar3 >> 3) + 1,1)" ( (binary_expression "(iVar3 >> 3) + 1" (parenthesized_expression "(iVar3 >> 3)" ( (binary_expression "iVar3 >> 3" identifier >> number_literal) )) + number_literal) , number_literal ))) ;) })))
(translation_unit "char * FUN_00047fe4(undefined4 param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  char cVar5;\n  char *pcVar4;\n  int iVar6;\n  char *pcVar7;\n  char **ppcVar8;\n  int iVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  char *local_14;\n  char **local_10;\n  int local_c;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  ppcVar8 = &local_14;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  FUN_00047b74(param_1,ppcVar8,&local_10);\n  if (local_14 != (char *)0x0) {\n    if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }\n  }\n  if (local_c == *(int *)puVar11) {\n    return local_14;\n  }\n  iVar6 = local_c;\n  puVar11 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  iVar2 = (**(code **)(puVar11 + 0xc96e4))();\n  iVar9 = iVar2 + 7;\n  if (iVar9 < 0) {\n    iVar9 = iVar2 + 0xe;\n  }\n  iVar9 = iVar9 >> 3;\n  pcVar10 = (char *)(iVar9 + 1);\n  pcVar3 = (char *)safemalloc(pcVar10,1);\n  *pcVar3 = '\0';\n  pcVar4 = pcVar3;\n  if (iVar2 < 1) {\n    if (iVar2 < -0xe) goto LAB_00048174;\n  }\n  else {\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }\n  if (-1 < pcVar3[1]) {\n    iVar6 = 0;\n    pcVar7 = pcVar3;\n    do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);\n  }\nLAB_00048174:\n  pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);\n  *ppcVar8 = pcVar10;\n  return pcVar4;\n}\n\n" (function_definition "char * FUN_00047fe4(undefined4 param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  char cVar5;\n  char *pcVar4;\n  int iVar6;\n  char *pcVar7;\n  char **ppcVar8;\n  int iVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  char *local_14;\n  char **local_10;\n  int local_c;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  ppcVar8 = &local_14;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  FUN_00047b74(param_1,ppcVar8,&local_10);\n  if (local_14 != (char *)0x0) {\n    if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }\n  }\n  if (local_c == *(int *)puVar11) {\n    return local_14;\n  }\n  iVar6 = local_c;\n  puVar11 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  iVar2 = (**(code **)(puVar11 + 0xc96e4))();\n  iVar9 = iVar2 + 7;\n  if (iVar9 < 0) {\n    iVar9 = iVar2 + 0xe;\n  }\n  iVar9 = iVar9 >> 3;\n  pcVar10 = (char *)(iVar9 + 1);\n  pcVar3 = (char *)safemalloc(pcVar10,1);\n  *pcVar3 = '\0';\n  pcVar4 = pcVar3;\n  if (iVar2 < 1) {\n    if (iVar2 < -0xe) goto LAB_00048174;\n  }\n  else {\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }\n  if (-1 < pcVar3[1]) {\n    iVar6 = 0;\n    pcVar7 = pcVar3;\n    do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);\n  }\nLAB_00048174:\n  pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);\n  *ppcVar8 = pcVar10;\n  return pcVar4;\n}" primitive_type (pointer_declarator "* FUN_00047fe4(undefined4 param_1)" * (function_declarator "FUN_00047fe4(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  char cVar5;\n  char *pcVar4;\n  int iVar6;\n  char *pcVar7;\n  char **ppcVar8;\n  int iVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  char *local_14;\n  char **local_10;\n  int local_c;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  ppcVar8 = &local_14;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  FUN_00047b74(param_1,ppcVar8,&local_10);\n  if (local_14 != (char *)0x0) {\n    if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }\n  }\n  if (local_c == *(int *)puVar11) {\n    return local_14;\n  }\n  iVar6 = local_c;\n  puVar11 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  iVar2 = (**(code **)(puVar11 + 0xc96e4))();\n  iVar9 = iVar2 + 7;\n  if (iVar9 < 0) {\n    iVar9 = iVar2 + 0xe;\n  }\n  iVar9 = iVar9 >> 3;\n  pcVar10 = (char *)(iVar9 + 1);\n  pcVar3 = (char *)safemalloc(pcVar10,1);\n  *pcVar3 = '\0';\n  pcVar4 = pcVar3;\n  if (iVar2 < 1) {\n    if (iVar2 < -0xe) goto LAB_00048174;\n  }\n  else {\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }\n  if (-1 < pcVar3[1]) {\n    iVar6 = 0;\n    pcVar7 = pcVar3;\n    do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);\n  }\nLAB_00048174:\n  pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);\n  *ppcVar8 = pcVar10;\n  return pcVar4;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char **ppcVar8;" primitive_type (pointer_declarator "**ppcVar8" * (pointer_declarator "*ppcVar8" * identifier)) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "char *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (declaration "char **local_10;" primitive_type (pointer_declarator "**local_10" * (pointer_declarator "*local_10" * identifier)) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar11 = PTR___stack_chk_guard_00112630;" (assignment_expression "puVar11 = PTR___stack_chk_guard_00112630" identifier = identifier) ;) (expression_statement "ppcVar8 = &local_14;" (assignment_expression "ppcVar8 = &local_14" identifier = (pointer_expression "&local_14" & identifier)) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_00112630;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_00112630" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00112630" * (cast_expression "(int *)PTR___stack_chk_guard_00112630" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "FUN_00047b74(param_1,ppcVar8,&local_10);" (call_expression "FUN_00047b74(param_1,ppcVar8,&local_10)" identifier (argument_list "(param_1,ppcVar8,&local_10)" ( identifier , identifier , (pointer_expression "&local_10" & identifier) ))) ;) (if_statement "if (local_14 != (char *)0x0) {\n    if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }\n  }" if (parenthesized_expression "(local_14 != (char *)0x0)" ( (binary_expression "local_14 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }\n  }" { (if_statement "if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }" if (parenthesized_expression "(*local_14 < '\0')" ( (binary_expression "*local_14 < '\0'" (pointer_expression "*local_14" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_14 = (char *)0x0;\n    }" { (expression_statement "local_14 = (char *)0x0;" (assignment_expression "local_14 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }" else (compound_statement "{\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }" { (expression_statement "local_14 = (char *)bignum_from_bytes(local_14);" (assignment_expression "local_14 = (char *)bignum_from_bytes(local_14)" identifier = (cast_expression "(char *)bignum_from_bytes(local_14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bignum_from_bytes(local_14)" identifier (argument_list "(local_14)" ( identifier ))))) ;) (expression_statement "ppcVar8 = local_10;" (assignment_expression "ppcVar8 = local_10" identifier = identifier) ;) }))) })) (if_statement "if (local_c == *(int *)puVar11) {\n    return local_14;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar11)" ( (binary_expression "local_c == *(int *)puVar11" identifier == (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return local_14;\n  }" { (return_statement "return local_14;" return identifier ;) })) (expression_statement "iVar6 = local_c;" (assignment_expression "iVar6 = local_c" identifier = identifier) ;) (expression_statement "puVar11 = PTR___stack_chk_fail_001122c8;" (assignment_expression "puVar11 = PTR___stack_chk_fail_001122c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001122c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_001122c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001122c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001122c8" * (cast_expression "(code *)PTR___stack_chk_fail_001122c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = (**(code **)(puVar11 + 0xc96e4))();" (assignment_expression "iVar2 = (**(code **)(puVar11 + 0xc96e4))()" identifier = (call_expression "(**(code **)(puVar11 + 0xc96e4))()" (parenthesized_expression "(**(code **)(puVar11 + 0xc96e4))" ( (pointer_expression "**(code **)(puVar11 + 0xc96e4)" * (pointer_expression "*(code **)(puVar11 + 0xc96e4)" * (cast_expression "(code **)(puVar11 + 0xc96e4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0xc96e4)" ( (binary_expression "puVar11 + 0xc96e4" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "iVar9 = iVar2 + 7;" (assignment_expression "iVar9 = iVar2 + 7" identifier = (binary_expression "iVar2 + 7" identifier + number_literal)) ;) (if_statement "if (iVar9 < 0) {\n    iVar9 = iVar2 + 0xe;\n  }" if (parenthesized_expression "(iVar9 < 0)" ( (binary_expression "iVar9 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar9 = iVar2 + 0xe;\n  }" { (expression_statement "iVar9 = iVar2 + 0xe;" (assignment_expression "iVar9 = iVar2 + 0xe" identifier = (binary_expression "iVar2 + 0xe" identifier + number_literal)) ;) })) (expression_statement "iVar9 = iVar9 >> 3;" (assignment_expression "iVar9 = iVar9 >> 3" identifier = (binary_expression "iVar9 >> 3" identifier >> number_literal)) ;) (expression_statement "pcVar10 = (char *)(iVar9 + 1);" (assignment_expression "pcVar10 = (char *)(iVar9 + 1)" identifier = (cast_expression "(char *)(iVar9 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 1)" ( (binary_expression "iVar9 + 1" identifier + number_literal) )))) ;) (expression_statement "pcVar3 = (char *)safemalloc(pcVar10,1);" (assignment_expression "pcVar3 = (char *)safemalloc(pcVar10,1)" identifier = (cast_expression "(char *)safemalloc(pcVar10,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(pcVar10,1)" identifier (argument_list "(pcVar10,1)" ( identifier , number_literal ))))) ;) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" identifier = identifier) ;) (if_statement "if (iVar2 < 1) {\n    if (iVar2 < -0xe) goto LAB_00048174;\n  }\n  else {\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n    if (iVar2 < -0xe) goto LAB_00048174;\n  }" { (if_statement "if (iVar2 < -0xe) goto LAB_00048174;" if (parenthesized_expression "(iVar2 < -0xe)" ( (binary_expression "iVar2 < -0xe" identifier < number_literal) )) (goto_statement "goto LAB_00048174;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }" else (compound_statement "{\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }" { (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (do_statement "do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);" do (compound_statement "{\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    }" { (expression_statement "cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);" (assignment_expression "cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2)" identifier = (call_expression "(**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2)" (parenthesized_expression "(**(code **)(puVar11 + 0xc96e8))" ( (pointer_expression "**(code **)(puVar11 + 0xc96e8)" * (pointer_expression "*(code **)(puVar11 + 0xc96e8)" * (cast_expression "(code **)(puVar11 + 0xc96e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0xc96e8)" ( (binary_expression "puVar11 + 0xc96e8" identifier + number_literal) ))))) )) (argument_list "(iVar6,iVar9 - iVar2)" ( identifier , (binary_expression "iVar9 - iVar2" identifier - identifier) )))) ;) (expression_statement "pcVar7 = pcVar3 + iVar2;" (assignment_expression "pcVar7 = pcVar3 + iVar2" identifier = (binary_expression "pcVar3 + iVar2" identifier + identifier)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar7 = cVar5;" (assignment_expression "*pcVar7 = cVar5" (pointer_expression "*pcVar7" * identifier) = identifier) ;) }) while (parenthesized_expression "(iVar2 <= iVar9)" ( (binary_expression "iVar2 <= iVar9" identifier <= identifier) )) ;) (if_statement "if (*pcVar3 != '\0') goto LAB_00048174;" if (parenthesized_expression "(*pcVar3 != '\0')" ( (binary_expression "*pcVar3 != '\0'" (pointer_expression "*pcVar3" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00048174;" goto statement_identifier ;)) }))) (if_statement "if (-1 < pcVar3[1]) {\n    iVar6 = 0;\n    pcVar7 = pcVar3;\n    do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);\n  }" if (parenthesized_expression "(-1 < pcVar3[1])" ( (binary_expression "-1 < pcVar3[1]" number_literal < (subscript_expression "pcVar3[1]" identifier [ number_literal ])) )) (compound_statement "{\n    iVar6 = 0;\n    pcVar7 = pcVar3;\n    do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);\n  }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "pcVar7 = pcVar3;" (assignment_expression "pcVar7 = pcVar3" identifier = identifier) ;) (do_statement "do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);" do (compound_statement "{\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    }" { (expression_statement "pcVar4 = pcVar7 + 1;" (assignment_expression "pcVar4 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (if_statement "if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }" if (parenthesized_expression "((iVar9 < iVar6 + 1) || (*pcVar4 != '\0'))" ( (binary_expression "(iVar9 < iVar6 + 1) || (*pcVar4 != '\0')" (parenthesized_expression "(iVar9 < iVar6 + 1)" ( (binary_expression "iVar9 < iVar6 + 1" identifier < (binary_expression "iVar6 + 1" identifier + number_literal)) )) || (parenthesized_expression "(*pcVar4 != '\0')" ( (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }" { (expression_statement "pcVar10 = (char *)(iVar9 - iVar6);" (assignment_expression "pcVar10 = (char *)(iVar9 - iVar6)" identifier = (cast_expression "(char *)(iVar9 - iVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 - iVar6)" ( (binary_expression "iVar9 - iVar6" identifier - identifier) )))) ;) (break_statement "break;" break ;) })) (expression_statement "pcVar1 = pcVar7 + 2;" (assignment_expression "pcVar1 = pcVar7 + 2" identifier = (binary_expression "pcVar7 + 2" identifier + number_literal)) ;) (expression_statement "pcVar10 = (char *)(iVar9 - iVar6);" (assignment_expression "pcVar10 = (char *)(iVar9 - iVar6)" identifier = (cast_expression "(char *)(iVar9 - iVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 - iVar6)" ( (binary_expression "iVar9 - iVar6" identifier - identifier) )))) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "pcVar7 = pcVar4;" (assignment_expression "pcVar7 = pcVar4" identifier = identifier) ;) }) while (parenthesized_expression "(-1 < *pcVar1)" ( (binary_expression "-1 < *pcVar1" number_literal < (pointer_expression "*pcVar1" * identifier)) )) ;) })) (labeled_statement "LAB_00048174:\n  pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);" statement_identifier : (expression_statement "pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);" (assignment_expression "pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10)" identifier = (cast_expression "(char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10)" (parenthesized_expression "(**(code **)(puVar11 + 0xc9f6c))" ( (pointer_expression "**(code **)(puVar11 + 0xc9f6c)" * (pointer_expression "*(code **)(puVar11 + 0xc9f6c)" * (cast_expression "(code **)(puVar11 + 0xc9f6c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0xc9f6c)" ( (binary_expression "puVar11 + 0xc9f6c" identifier + number_literal) ))))) )) (argument_list "(pcVar3,pcVar4,pcVar10)" ( identifier , identifier , identifier ))))) ;)) (expression_statement "*ppcVar8 = pcVar10;" (assignment_expression "*ppcVar8 = pcVar10" (pointer_expression "*ppcVar8" * identifier) = identifier) ;) (return_statement "return pcVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (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 IDENT + LIT) ))))) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (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 IDENT + LIT) ))))) )) (argument_list ( IDENT , (binary_expression IDENT - IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression LIT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression LIT < (pointer_expression * IDENT)) )) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT ))))) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "char * FUN_00047fe4(undefined4 param_1)\n\n{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  char cVar5;\n  char *pcVar4;\n  int iVar6;\n  char *pcVar7;\n  char **ppcVar8;\n  int iVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  char *local_14;\n  char **local_10;\n  int local_c;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  ppcVar8 = &local_14;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  FUN_00047b74(param_1,ppcVar8,&local_10);\n  if (local_14 != (char *)0x0) {\n    if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }\n  }\n  if (local_c == *(int *)puVar11) {\n    return local_14;\n  }\n  iVar6 = local_c;\n  puVar11 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  iVar2 = (**(code **)(puVar11 + 0xc96e4))();\n  iVar9 = iVar2 + 7;\n  if (iVar9 < 0) {\n    iVar9 = iVar2 + 0xe;\n  }\n  iVar9 = iVar9 >> 3;\n  pcVar10 = (char *)(iVar9 + 1);\n  pcVar3 = (char *)safemalloc(pcVar10,1);\n  *pcVar3 = '\0';\n  pcVar4 = pcVar3;\n  if (iVar2 < 1) {\n    if (iVar2 < -0xe) goto LAB_00048174;\n  }\n  else {\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }\n  if (-1 < pcVar3[1]) {\n    iVar6 = 0;\n    pcVar7 = pcVar3;\n    do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);\n  }\nLAB_00048174:\n  pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);\n  *ppcVar8 = pcVar10;\n  return pcVar4;\n}" (primitive_type "char") (pointer_declarator "* FUN_00047fe4(undefined4 param_1)" (* "*") (function_declarator "FUN_00047fe4(undefined4 param_1)" (identifier "FUN_00047fe4") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")")))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  char cVar5;\n  char *pcVar4;\n  int iVar6;\n  char *pcVar7;\n  char **ppcVar8;\n  int iVar9;\n  char *pcVar10;\n  undefined *puVar11;\n  char *local_14;\n  char **local_10;\n  int local_c;\n  \n  puVar11 = PTR___stack_chk_guard_00112630;\n  ppcVar8 = &local_14;\n  local_c = *(int *)PTR___stack_chk_guard_00112630;\n  FUN_00047b74(param_1,ppcVar8,&local_10);\n  if (local_14 != (char *)0x0) {\n    if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }\n  }\n  if (local_c == *(int *)puVar11) {\n    return local_14;\n  }\n  iVar6 = local_c;\n  puVar11 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  iVar2 = (**(code **)(puVar11 + 0xc96e4))();\n  iVar9 = iVar2 + 7;\n  if (iVar9 < 0) {\n    iVar9 = iVar2 + 0xe;\n  }\n  iVar9 = iVar9 >> 3;\n  pcVar10 = (char *)(iVar9 + 1);\n  pcVar3 = (char *)safemalloc(pcVar10,1);\n  *pcVar3 = '\0';\n  pcVar4 = pcVar3;\n  if (iVar2 < 1) {\n    if (iVar2 < -0xe) goto LAB_00048174;\n  }\n  else {\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }\n  if (-1 < pcVar3[1]) {\n    iVar6 = 0;\n    pcVar7 = pcVar3;\n    do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);\n  }\nLAB_00048174:\n  pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);\n  *ppcVar8 = pcVar10;\n  return pcVar4;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char cVar5;" (primitive_type "char") (identifier "cVar5") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "char **ppcVar8;" (primitive_type "char") (pointer_declarator "**ppcVar8" (* "*") (pointer_declarator "*ppcVar8" (* "*") (identifier "ppcVar8"))) (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "undefined *puVar11;" (type_identifier "undefined") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "char *local_14;" (primitive_type "char") (pointer_declarator "*local_14" (* "*") (identifier "local_14")) (; ";")) (declaration "char **local_10;" (primitive_type "char") (pointer_declarator "**local_10" (* "*") (pointer_declarator "*local_10" (* "*") (identifier "local_10"))) (; ";")) (declaration "int local_c;" (primitive_type "int") (identifier "local_c") (; ";")) (expression_statement "puVar11 = PTR___stack_chk_guard_00112630;" (assignment_expression "puVar11 = PTR___stack_chk_guard_00112630" (identifier "puVar11") (= "=") (identifier "PTR___stack_chk_guard_00112630")) (; ";")) (expression_statement "ppcVar8 = &local_14;" (assignment_expression "ppcVar8 = &local_14" (identifier "ppcVar8") (= "=") (pointer_expression "&local_14" (& "&") (identifier "local_14"))) (; ";")) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_00112630;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_00112630" (identifier "local_c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00112630" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00112630" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00112630")))) (; ";")) (expression_statement "FUN_00047b74(param_1,ppcVar8,&local_10);" (call_expression "FUN_00047b74(param_1,ppcVar8,&local_10)" (identifier "FUN_00047b74") (argument_list "(param_1,ppcVar8,&local_10)" (( "(") (identifier "param_1") (, ",") (identifier "ppcVar8") (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) () ")"))) (; ";")) (if_statement "if (local_14 != (char *)0x0) {\n    if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }\n  }" (if "if") (parenthesized_expression "(local_14 != (char *)0x0)" (( "(") (binary_expression "local_14 != (char *)0x0" (identifier "local_14") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }\n  }" ({ "{") (if_statement "if (*local_14 < '\0') {\n      local_14 = (char *)0x0;\n    }\n    else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }" (if "if") (parenthesized_expression "(*local_14 < '\0')" (( "(") (binary_expression "*local_14 < '\0'" (pointer_expression "*local_14" (* "*") (identifier "local_14")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      local_14 = (char *)0x0;\n    }" ({ "{") (expression_statement "local_14 = (char *)0x0;" (assignment_expression "local_14 = (char *)0x0" (identifier "local_14") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }" (else "else") (compound_statement "{\n      local_14 = (char *)bignum_from_bytes(local_14);\n      ppcVar8 = local_10;\n    }" ({ "{") (expression_statement "local_14 = (char *)bignum_from_bytes(local_14);" (assignment_expression "local_14 = (char *)bignum_from_bytes(local_14)" (identifier "local_14") (= "=") (cast_expression "(char *)bignum_from_bytes(local_14)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "bignum_from_bytes(local_14)" (identifier "bignum_from_bytes") (argument_list "(local_14)" (( "(") (identifier "local_14") () ")"))))) (; ";")) (expression_statement "ppcVar8 = local_10;" (assignment_expression "ppcVar8 = local_10" (identifier "ppcVar8") (= "=") (identifier "local_10")) (; ";")) (} "}")))) (} "}"))) (if_statement "if (local_c == *(int *)puVar11) {\n    return local_14;\n  }" (if "if") (parenthesized_expression "(local_c == *(int *)puVar11)" (( "(") (binary_expression "local_c == *(int *)puVar11" (identifier "local_c") (== "==") (pointer_expression "*(int *)puVar11" (* "*") (cast_expression "(int *)puVar11" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar11")))) () ")")) (compound_statement "{\n    return local_14;\n  }" ({ "{") (return_statement "return local_14;" (return "return") (identifier "local_14") (; ";")) (} "}"))) (expression_statement "iVar6 = local_c;" (assignment_expression "iVar6 = local_c" (identifier "iVar6") (= "=") (identifier "local_c")) (; ";")) (expression_statement "puVar11 = PTR___stack_chk_fail_001122c8;" (assignment_expression "puVar11 = PTR___stack_chk_fail_001122c8" (identifier "puVar11") (= "=") (identifier "PTR___stack_chk_fail_001122c8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_001122c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_001122c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001122c8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_001122c8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_001122c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_001122c8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = (**(code **)(puVar11 + 0xc96e4))();" (assignment_expression "iVar2 = (**(code **)(puVar11 + 0xc96e4))()" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar11 + 0xc96e4))()" (parenthesized_expression "(**(code **)(puVar11 + 0xc96e4))" (( "(") (pointer_expression "**(code **)(puVar11 + 0xc96e4)" (* "*") (pointer_expression "*(code **)(puVar11 + 0xc96e4)" (* "*") (cast_expression "(code **)(puVar11 + 0xc96e4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0xc96e4)" (( "(") (binary_expression "puVar11 + 0xc96e4" (identifier "puVar11") (+ "+") (number_literal "0xc96e4")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar9 = iVar2 + 7;" (assignment_expression "iVar9 = iVar2 + 7" (identifier "iVar9") (= "=") (binary_expression "iVar2 + 7" (identifier "iVar2") (+ "+") (number_literal "7"))) (; ";")) (if_statement "if (iVar9 < 0) {\n    iVar9 = iVar2 + 0xe;\n  }" (if "if") (parenthesized_expression "(iVar9 < 0)" (( "(") (binary_expression "iVar9 < 0" (identifier "iVar9") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar9 = iVar2 + 0xe;\n  }" ({ "{") (expression_statement "iVar9 = iVar2 + 0xe;" (assignment_expression "iVar9 = iVar2 + 0xe" (identifier "iVar9") (= "=") (binary_expression "iVar2 + 0xe" (identifier "iVar2") (+ "+") (number_literal "0xe"))) (; ";")) (} "}"))) (expression_statement "iVar9 = iVar9 >> 3;" (assignment_expression "iVar9 = iVar9 >> 3" (identifier "iVar9") (= "=") (binary_expression "iVar9 >> 3" (identifier "iVar9") (>> ">>") (number_literal "3"))) (; ";")) (expression_statement "pcVar10 = (char *)(iVar9 + 1);" (assignment_expression "pcVar10 = (char *)(iVar9 + 1)" (identifier "pcVar10") (= "=") (cast_expression "(char *)(iVar9 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 1)" (( "(") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "pcVar3 = (char *)safemalloc(pcVar10,1);" (assignment_expression "pcVar3 = (char *)safemalloc(pcVar10,1)" (identifier "pcVar3") (= "=") (cast_expression "(char *)safemalloc(pcVar10,1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "safemalloc(pcVar10,1)" (identifier "safemalloc") (argument_list "(pcVar10,1)" (( "(") (identifier "pcVar10") (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" (identifier "pcVar4") (= "=") (identifier "pcVar3")) (; ";")) (if_statement "if (iVar2 < 1) {\n    if (iVar2 < -0xe) goto LAB_00048174;\n  }\n  else {\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }" (if "if") (parenthesized_expression "(iVar2 < 1)" (( "(") (binary_expression "iVar2 < 1" (identifier "iVar2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    if (iVar2 < -0xe) goto LAB_00048174;\n  }" ({ "{") (if_statement "if (iVar2 < -0xe) goto LAB_00048174;" (if "if") (parenthesized_expression "(iVar2 < -0xe)" (( "(") (binary_expression "iVar2 < -0xe" (identifier "iVar2") (< "<") (number_literal "-0xe")) () ")")) (goto_statement "goto LAB_00048174;" (goto "goto") (statement_identifier "LAB_00048174") (; ";"))) (} "}")) (else_clause "else {\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }" (else "else") (compound_statement "{\n    iVar2 = 1;\n    do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);\n    if (*pcVar3 != '\0') goto LAB_00048174;\n  }" ({ "{") (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" (identifier "iVar2") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    } while (iVar2 <= iVar9);" (do "do") (compound_statement "{\n      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);\n      pcVar7 = pcVar3 + iVar2;\n      iVar2 = iVar2 + 1;\n      *pcVar7 = cVar5;\n    }" ({ "{") (expression_statement "cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);" (assignment_expression "cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2)" (identifier "cVar5") (= "=") (call_expression "(**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2)" (parenthesized_expression "(**(code **)(puVar11 + 0xc96e8))" (( "(") (pointer_expression "**(code **)(puVar11 + 0xc96e8)" (* "*") (pointer_expression "*(code **)(puVar11 + 0xc96e8)" (* "*") (cast_expression "(code **)(puVar11 + 0xc96e8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0xc96e8)" (( "(") (binary_expression "puVar11 + 0xc96e8" (identifier "puVar11") (+ "+") (number_literal "0xc96e8")) () ")"))))) () ")")) (argument_list "(iVar6,iVar9 - iVar2)" (( "(") (identifier "iVar6") (, ",") (binary_expression "iVar9 - iVar2" (identifier "iVar9") (- "-") (identifier "iVar2")) () ")")))) (; ";")) (expression_statement "pcVar7 = pcVar3 + iVar2;" (assignment_expression "pcVar7 = pcVar3 + iVar2" (identifier "pcVar7") (= "=") (binary_expression "pcVar3 + iVar2" (identifier "pcVar3") (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar7 = cVar5;" (assignment_expression "*pcVar7 = cVar5" (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) (= "=") (identifier "cVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 <= iVar9)" (( "(") (binary_expression "iVar2 <= iVar9" (identifier "iVar2") (<= "<=") (identifier "iVar9")) () ")")) (; ";")) (if_statement "if (*pcVar3 != '\0') goto LAB_00048174;" (if "if") (parenthesized_expression "(*pcVar3 != '\0')" (( "(") (binary_expression "*pcVar3 != '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00048174;" (goto "goto") (statement_identifier "LAB_00048174") (; ";"))) (} "}")))) (if_statement "if (-1 < pcVar3[1]) {\n    iVar6 = 0;\n    pcVar7 = pcVar3;\n    do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);\n  }" (if "if") (parenthesized_expression "(-1 < pcVar3[1])" (( "(") (binary_expression "-1 < pcVar3[1]" (number_literal "-1") (< "<") (subscript_expression "pcVar3[1]" (identifier "pcVar3") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n    iVar6 = 0;\n    pcVar7 = pcVar3;\n    do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);\n  }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar7 = pcVar3;" (assignment_expression "pcVar7 = pcVar3" (identifier "pcVar7") (= "=") (identifier "pcVar3")) (; ";")) (do_statement "do {\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    } while (-1 < *pcVar1);" (do "do") (compound_statement "{\n      pcVar4 = pcVar7 + 1;\n      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }\n      pcVar1 = pcVar7 + 2;\n      pcVar10 = (char *)(iVar9 - iVar6);\n      iVar6 = iVar6 + 1;\n      pcVar7 = pcVar4;\n    }" ({ "{") (expression_statement "pcVar4 = pcVar7 + 1;" (assignment_expression "pcVar4 = pcVar7 + 1" (identifier "pcVar4") (= "=") (binary_expression "pcVar7 + 1" (identifier "pcVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }" (if "if") (parenthesized_expression "((iVar9 < iVar6 + 1) || (*pcVar4 != '\0'))" (( "(") (binary_expression "(iVar9 < iVar6 + 1) || (*pcVar4 != '\0')" (parenthesized_expression "(iVar9 < iVar6 + 1)" (( "(") (binary_expression "iVar9 < iVar6 + 1" (identifier "iVar9") (< "<") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) () ")")) (|| "||") (parenthesized_expression "(*pcVar4 != '\0')" (( "(") (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        pcVar10 = (char *)(iVar9 - iVar6);\n        break;\n      }" ({ "{") (expression_statement "pcVar10 = (char *)(iVar9 - iVar6);" (assignment_expression "pcVar10 = (char *)(iVar9 - iVar6)" (identifier "pcVar10") (= "=") (cast_expression "(char *)(iVar9 - iVar6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 - iVar6)" (( "(") (binary_expression "iVar9 - iVar6" (identifier "iVar9") (- "-") (identifier "iVar6")) () ")")))) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "pcVar1 = pcVar7 + 2;" (assignment_expression "pcVar1 = pcVar7 + 2" (identifier "pcVar1") (= "=") (binary_expression "pcVar7 + 2" (identifier "pcVar7") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "pcVar10 = (char *)(iVar9 - iVar6);" (assignment_expression "pcVar10 = (char *)(iVar9 - iVar6)" (identifier "pcVar10") (= "=") (cast_expression "(char *)(iVar9 - iVar6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 - iVar6)" (( "(") (binary_expression "iVar9 - iVar6" (identifier "iVar9") (- "-") (identifier "iVar6")) () ")")))) (; ";")) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar7 = pcVar4;" (assignment_expression "pcVar7 = pcVar4" (identifier "pcVar7") (= "=") (identifier "pcVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(-1 < *pcVar1)" (( "(") (binary_expression "-1 < *pcVar1" (number_literal "-1") (< "<") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1"))) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_00048174:\n  pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);" (statement_identifier "LAB_00048174") (: ":") (expression_statement "pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);" (assignment_expression "pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10)" (identifier "pcVar4") (= "=") (cast_expression "(char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10)" (parenthesized_expression "(**(code **)(puVar11 + 0xc9f6c))" (( "(") (pointer_expression "**(code **)(puVar11 + 0xc9f6c)" (* "*") (pointer_expression "*(code **)(puVar11 + 0xc9f6c)" (* "*") (cast_expression "(code **)(puVar11 + 0xc9f6c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0xc9f6c)" (( "(") (binary_expression "puVar11 + 0xc9f6c" (identifier "puVar11") (+ "+") (number_literal "0xc9f6c")) () ")"))))) () ")")) (argument_list "(pcVar3,pcVar4,pcVar10)" (( "(") (identifier "pcVar3") (, ",") (identifier "pcVar4") (, ",") (identifier "pcVar10") () ")"))))) (; ";"))) (expression_statement "*ppcVar8 = pcVar10;" (assignment_expression "*ppcVar8 = pcVar10" (pointer_expression "*ppcVar8" (* "*") (identifier "ppcVar8")) (= "=") (identifier "pcVar10")) (; ";")) (return_statement "return pcVar4;" (return "return") (identifier "pcVar4") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (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 (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (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: (identifier) right: (number_literal))))))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement 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: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (break_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_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: (identifier)))) condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (identifier))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (identifier)))))

char * MASKED(undefined4 param_1)

{
  char *pcVar1;
  int iVar2;
  char *pcVar3;
  char cVar5;
  char *pcVar4;
  int iVar6;
  char *pcVar7;
  char **ppcVar8;
  int iVar9;
  char *pcVar10;
  undefined *puVar11;
  char *local_14;
  char **local_10;
  int local_c;
  
  puVar11 = PTR___stack_chk_guard_00112630;
  ppcVar8 = &local_14;
  local_c = *(int *)PTR___stack_chk_guard_00112630;
  FUN_00047b74(param_1,ppcVar8,&local_10);
  if (local_14 != (char *)0x0) {
    if (*local_14 < '\0') {
      local_14 = (char *)0x0;
    }
    else {
      local_14 = (char *)bignum_from_bytes(local_14);
      ppcVar8 = local_10;
    }
  }
  if (local_c == *(int *)puVar11) {
    return local_14;
  }
  iVar6 = local_c;
  puVar11 = PTR___stack_chk_fail_001122c8;
  (*(code *)PTR___stack_chk_fail_001122c8)();
  iVar2 = (**(code **)(puVar11 + 0xc96e4))();
  iVar9 = iVar2 + 7;
  if (iVar9 < 0) {
    iVar9 = iVar2 + 0xe;
  }
  iVar9 = iVar9 >> 3;
  pcVar10 = (char *)(iVar9 + 1);
  pcVar3 = (char *)safemalloc(pcVar10,1);
  *pcVar3 = '\0';
  pcVar4 = pcVar3;
  if (iVar2 < 1) {
    if (iVar2 < -0xe) goto LAB_00048174;
  }
  else {
    iVar2 = 1;
    do {
      cVar5 = (**(code **)(puVar11 + 0xc96e8))(iVar6,iVar9 - iVar2);
      pcVar7 = pcVar3 + iVar2;
      iVar2 = iVar2 + 1;
      *pcVar7 = cVar5;
    } while (iVar2 <= iVar9);
    if (*pcVar3 != '\0') goto LAB_00048174;
  }
  if (-1 < pcVar3[1]) {
    iVar6 = 0;
    pcVar7 = pcVar3;
    do {
      pcVar4 = pcVar7 + 1;
      if ((iVar9 < iVar6 + 1) || (*pcVar4 != '\0')) {
        pcVar10 = (char *)(iVar9 - iVar6);
        break;
      }
      pcVar1 = pcVar7 + 2;
      pcVar10 = (char *)(iVar9 - iVar6);
      iVar6 = iVar6 + 1;
      pcVar7 = pcVar4;
    } while (-1 < *pcVar1);
  }
LAB_00048174:
  pcVar4 = (char *)(**(code **)(puVar11 + 0xc9f6c))(pcVar3,pcVar4,pcVar10);
  *ppcVar8 = pcVar10;
  return pcVar4;
}

