
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

strtol_error human_options(char *spec,int *opts,uintmax_t *block_size)

{
  char cVar1;
  ptrdiff_t pVar2;
  strtol_error sVar3;
  char *pcVar4;
  int iVar5;
  undefined4 uVar6;
  int iVar7;
  uint uVar8;
  int in_GS_OFFSET;
  char *ptr;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1ede9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (((spec == (char *)0x0) && (spec = getenv("BLOCK_SIZE"), spec == (char *)0x0)) &&
     (spec = getenv("BLOCKSIZE"), spec == (char *)0x0)) {
    pcVar4 = getenv("POSIXLY_CORRECT");
    if (pcVar4 == (char *)0x0) {
      *(undefined4 *)block_size = 0x400;
      *(undefined4 *)((int)block_size + 4) = 0;
      *opts = 0;
      sVar3 = LONGINT_OK;
    }
    else {
      *(undefined4 *)block_size = 0x200;
      *(undefined4 *)((int)block_size + 4) = 0;
      *opts = 0;
      sVar3 = LONGINT_OK;
    }
  }
  else {
    uVar8 = 0;
    if (*spec == '\'') {
      spec = spec + 1;
      uVar8 = 4;
    }
    pVar2 = argmatch(spec,block_size_args,(char *)block_size_opts,4);
    if (pVar2 < 0) {
      sVar3 = xstrtoumax(spec,&ptr,0,block_size,"eEgGkKmMpPtTyYzZ0");
      if (sVar3 == LONGINT_OK) {
        cVar1 = *spec;
        while (9 < (byte)(cVar1 - 0x30U)) {
          if (spec == ptr) {
            if (ptr[-1] == 'B') {
              uVar8 = uVar8 | 0x180;
              if (ptr[-2] != 'i') break;
            }
            else {
              uVar8 = uVar8 | 0x80;
            }
            uVar8 = uVar8 | 0x20;
            break;
          }
          spec = spec + 1;
          cVar1 = *spec;
        }
        iVar7 = (int)*block_size;
        iVar5 = *(int *)((int)block_size + 4);
        *opts = uVar8;
      }
      else {
        iVar7 = (int)*block_size;
        iVar5 = *(int *)((int)block_size + 4);
        *opts = 0;
      }
      if (iVar5 == 0 && iVar7 == 0) {
        pcVar4 = getenv("POSIXLY_CORRECT");
        uVar6 = 0x200;
        if (pcVar4 == (char *)0x0) {
          uVar6 = 0x400;
        }
        *(undefined4 *)block_size = uVar6;
        sVar3 = LONGINT_INVALID;
        *(undefined4 *)((int)block_size + 4) = 0;
      }
    }
    else {
      *(undefined4 *)block_size = 1;
      *(undefined4 *)((int)block_size + 4) = 0;
      *opts = uVar8 | block_size_opts[pVar2];
      sVar3 = LONGINT_OK;
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return sVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int FUN_0001ede0(char *param_1,uint *param_2,int *param_3)

{
  char cVar1;
  int iVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  uint uVar6;
  int in_GS_OFFSET;
  char *local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1ede9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&
     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)) {
    pcVar3 = getenv("POSIXLY_CORRECT");
    if (pcVar3 == (char *)0x0) {
      *param_3 = 0x400;
      param_3[1] = 0;
      *param_2 = 0;
      iVar2 = 0;
    }
    else {
      *param_3 = 0x200;
      param_3[1] = 0;
      *param_2 = 0;
      iVar2 = 0;
    }
  }
  else {
    uVar6 = 0;
    if (*param_1 == '\'') {
      param_1 = param_1 + 1;
      uVar6 = 4;
    }
    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);
    if (iVar2 < 0) {
      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");
      if (iVar2 == 0) {
        cVar1 = *param_1;
        while (9 < (byte)(cVar1 - 0x30U)) {
          if (param_1 == local_24) {
            if (local_24[-1] == 'B') {
              uVar6 = uVar6 | 0x180;
              if (local_24[-2] != 'i') break;
            }
            else {
              uVar6 = uVar6 | 0x80;
            }
            uVar6 = uVar6 | 0x20;
            break;
          }
          param_1 = param_1 + 1;
          cVar1 = *param_1;
        }
        iVar5 = *param_3;
        iVar4 = param_3[1];
        *param_2 = uVar6;
      }
      else {
        iVar5 = *param_3;
        iVar4 = param_3[1];
        *param_2 = 0;
      }
      if (iVar4 == 0 && iVar5 == 0) {
        pcVar3 = getenv("POSIXLY_CORRECT");
        iVar2 = 0x200;
        if (pcVar3 == (char *)0x0) {
          iVar2 = 0x400;
        }
        *param_3 = iVar2;
        iVar2 = 4;
        param_3[1] = 0;
      }
    }
    else {
      *param_3 = 1;
      param_3[1] = 0;
      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);
      iVar2 = 0;
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002b190();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014250
ADD EBX,0x1c217
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0x44]
MOV EBP,dword ptr [ESP + 0x40]
MOV EDI,dword ptr [ESP + 0x48]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
TEST EBP,EBP
JZ 0x0001ef30
XOR ESI,ESI
CMP byte ptr [EBP],0x27
JNZ 0x0001ee26
ADD EBP,0x1
MOV ESI,0x4
LEA ECX,[EBX + 0xffff510c]
PUSH 0x4
LEA EAX,[EBX + 0xfffffe8c]
PUSH ECX
MOV dword ptr [ESP + 0x14],ECX
PUSH EAX
PUSH EBP
CALL 0x0001b390
ADD ESP,0x10
TEST EAX,EAX
JS 0x0001ee80
MOV ECX,dword ptr [ESP + 0xc]
MOV dword ptr [EDI],0x1
MOV dword ptr [EDI + 0x4],0x0
OR ESI,dword ptr [ECX + EAX*0x4]
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EAX],ESI
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x1c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x0001f004
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xffff50fa]
PUSH EAX
PUSH EDI
PUSH 0x0
LEA EAX,[ESP + 0x30]
PUSH EAX
PUSH EBP
CALL 0x00024b70
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x0001eee8
MOVZX EDX,byte ptr [EBP]
LEA ECX,[EDX + -0x30]
CMP CL,0x9
JBE 0x0001eed7
MOV EDX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0xc],EDX
MOV ECX,dword ptr [ESP + 0xc]
CMP EBP,EDX
JNZ 0x0001eec8
JMP 0x0001efa0
CMP EBP,ECX
JZ 0x0001efa0
ADD EBP,0x1
MOVZX EDX,byte ptr [EBP]
SUB EDX,0x30
CMP DL,0x9
JA 0x0001eec0
MOV EBP,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [EDI]
MOV ECX,dword ptr [EDI + 0x4]
MOV dword ptr [EBP],ESI
JMP 0x0001eef7
MOV ESI,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [EDI]
MOV ECX,dword ptr [EDI + 0x4]
MOV dword ptr [ESI],0x0
OR ECX,EDX
JNZ 0x0001ee63
SUB ESP,0xc
LEA EAX,[EBX + 0xffff50ea]
PUSH EAX
CALL 0x00012370
ADD ESP,0x10
MOV ECX,0x200
XOR EBX,EBX
TEST EAX,EAX
JZ 0x0001efc0
MOV dword ptr [EDI],ECX
MOV EAX,0x4
MOV dword ptr [EDI + 0x4],EBX
JMP 0x0001ee63
SUB ESP,0xc
LEA EAX,[EBX + 0xffff2bbf]
PUSH EAX
CALL 0x00012370
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x0001ee16
SUB ESP,0xc
LEA EAX,[EBX + 0xffff50e0]
PUSH EAX
CALL 0x00012370
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x0001ee16
SUB ESP,0xc
LEA EAX,[EBX + 0xffff50ea]
PUSH EAX
CALL 0x00012370
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001efe6
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EDI],0x200
MOV dword ptr [EDI + 0x4],0x0
MOV dword ptr [EAX],0x0
XOR EAX,EAX
JMP 0x0001ee63
MOV EDX,dword ptr [ESP + 0xc]
CMP byte ptr [EDX + -0x1],0x42
JZ 0x0001efd0
OR ESI,0x80
OR ESI,0x20
JMP 0x0001eed7
MOV ECX,0x400
XOR EBX,EBX
JMP 0x0001ef20
MOV EDX,dword ptr [ESP + 0xc]
OR ESI,0x180
CMP byte ptr [EDX + -0x2],0x69
JNZ 0x0001eed7
JMP 0x0001efb0
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EDI],0x400
MOV dword ptr [EDI + 0x4],0x0
MOV dword ptr [EAX],0x0
XOR EAX,EAX
JMP 0x0001ee63
CALL 0x0002b190
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0001ede0(char *param_1,uint *param_2,int *param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  char *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ede9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)) {\n    pcVar3 = getenv("POSIXLY_CORRECT");\n    if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n  }\n  else {\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002b190();\n}\n\n" comment (function_definition "int FUN_0001ede0(char *param_1,uint *param_2,int *param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  char *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ede9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)) {\n    pcVar3 = getenv("POSIXLY_CORRECT");\n    if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n  }\n  else {\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002b190();\n}" primitive_type (function_declarator "FUN_0001ede0(char *param_1,uint *param_2,int *param_3)" identifier (parameter_list "(char *param_1,uint *param_2,int *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  char *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ede9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)) {\n    pcVar3 = getenv("POSIXLY_CORRECT");\n    if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n  }\n  else {\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002b190();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1ede9;" (assignment_expression "uStack_14 = 0x1ede9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)) {\n    pcVar3 = getenv("POSIXLY_CORRECT");\n    if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n  }\n  else {\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }" if (parenthesized_expression "(((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0))" ( (binary_expression "((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)" (parenthesized_expression "((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0))" ( (binary_expression "(param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)" (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)" ( (comma_expression "param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0" (assignment_expression "param_1 = getenv("BLOCK_SIZE")" identifier = (call_expression "getenv("BLOCK_SIZE")" identifier (argument_list "("BLOCK_SIZE")" ( (string_literal ""BLOCK_SIZE"" " string_content ") )))) , (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)" ( (comma_expression "param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0" (assignment_expression "param_1 = getenv("BLOCKSIZE")" identifier = (call_expression "getenv("BLOCKSIZE")" identifier (argument_list "("BLOCKSIZE")" ( (string_literal ""BLOCKSIZE"" " string_content ") )))) , (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    pcVar3 = getenv("POSIXLY_CORRECT");\n    if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n  }" { (expression_statement "pcVar3 = getenv("POSIXLY_CORRECT");" (assignment_expression "pcVar3 = getenv("POSIXLY_CORRECT")" identifier = (call_expression "getenv("POSIXLY_CORRECT")" identifier (argument_list "("POSIXLY_CORRECT")" ( (string_literal ""POSIXLY_CORRECT"" " string_content ") )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }" { (expression_statement "*param_3 = 0x400;" (assignment_expression "*param_3 = 0x400" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }" else (compound_statement "{\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }" { (expression_statement "*param_3 = 0x200;" (assignment_expression "*param_3 = 0x200" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }" else (compound_statement "{\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (if_statement "if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }" if (parenthesized_expression "(*param_1 == '\'')" ( (binary_expression "*param_1 == '\''" (pointer_expression "*param_1" * identifier) == (char_literal "'\''" ' escape_sequence ')) )) (compound_statement "{\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = 4;" (assignment_expression "uVar6 = 4" identifier = number_literal) ;) })) (expression_statement "iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);" (assignment_expression "iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4)" identifier = (call_expression "FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4)" identifier (argument_list "(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4)" ( identifier , (pointer_expression "&PTR_s_human_readable_0003ae8c" & identifier) , (pointer_expression "&DAT_0003010c" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }" { (expression_statement "iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");" (assignment_expression "iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0")" identifier = (call_expression "FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0")" identifier (argument_list "(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0")" ( identifier , (pointer_expression "&local_24" & identifier) , number_literal , identifier , (string_literal ""eEgGkKmMpPtTyYzZ0"" " string_content ") )))) ;) (if_statement "if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }" { (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (while_statement "while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }" while (parenthesized_expression "(9 < (byte)(cVar1 - 0x30U))" ( (binary_expression "9 < (byte)(cVar1 - 0x30U)" number_literal < (call_expression "(byte)(cVar1 - 0x30U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar1 - 0x30U)" ( (binary_expression "cVar1 - 0x30U" identifier - number_literal) )))) )) (compound_statement "{\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }" { (if_statement "if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }" if (parenthesized_expression "(param_1 == local_24)" ( (binary_expression "param_1 == local_24" identifier == identifier) )) (compound_statement "{\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }" { (if_statement "if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }" if (parenthesized_expression "(local_24[-1] == 'B')" ( (binary_expression "local_24[-1] == 'B'" (subscript_expression "local_24[-1]" identifier [ number_literal ]) == (char_literal "'B'" ' character ')) )) (compound_statement "{\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }" { (expression_statement "uVar6 = uVar6 | 0x180;" (assignment_expression "uVar6 = uVar6 | 0x180" identifier = (binary_expression "uVar6 | 0x180" identifier | number_literal)) ;) (if_statement "if (local_24[-2] != 'i') break;" if (parenthesized_expression "(local_24[-2] != 'i')" ( (binary_expression "local_24[-2] != 'i'" (subscript_expression "local_24[-2]" identifier [ number_literal ]) != (char_literal "'i'" ' character ')) )) (break_statement "break;" break ;)) }) (else_clause "else {\n              uVar6 = uVar6 | 0x80;\n            }" else (compound_statement "{\n              uVar6 = uVar6 | 0x80;\n            }" { (expression_statement "uVar6 = uVar6 | 0x80;" (assignment_expression "uVar6 = uVar6 | 0x80" identifier = (binary_expression "uVar6 | 0x80" identifier | number_literal)) ;) }))) (expression_statement "uVar6 = uVar6 | 0x20;" (assignment_expression "uVar6 = uVar6 | 0x20" identifier = (binary_expression "uVar6 | 0x20" identifier | number_literal)) ;) (break_statement "break;" break ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "iVar5 = *param_3;" (assignment_expression "iVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar4 = param_3[1];" (assignment_expression "iVar4 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = uVar6;" (assignment_expression "*param_2 = uVar6" (pointer_expression "*param_2" * identifier) = identifier) ;) }) (else_clause "else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }" else (compound_statement "{\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }" { (expression_statement "iVar5 = *param_3;" (assignment_expression "iVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar4 = param_3[1];" (assignment_expression "iVar4 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) }))) (if_statement "if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }" if (parenthesized_expression "(iVar4 == 0 && iVar5 == 0)" ( (binary_expression "iVar4 == 0 && iVar5 == 0" (binary_expression "iVar4 == 0" identifier == number_literal) && (binary_expression "iVar5 == 0" identifier == number_literal)) )) (compound_statement "{\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }" { (expression_statement "pcVar3 = getenv("POSIXLY_CORRECT");" (assignment_expression "pcVar3 = getenv("POSIXLY_CORRECT")" identifier = (call_expression "getenv("POSIXLY_CORRECT")" identifier (argument_list "("POSIXLY_CORRECT")" ( (string_literal ""POSIXLY_CORRECT"" " string_content ") )))) ;) (expression_statement "iVar2 = 0x200;" (assignment_expression "iVar2 = 0x200" identifier = number_literal) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar2 = 0x400;\n        }" { (expression_statement "iVar2 = 0x400;" (assignment_expression "iVar2 = 0x400" identifier = number_literal) ;) })) (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "iVar2 = 4;" (assignment_expression "iVar2 = 4" identifier = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) })) }) (else_clause "else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }" else (compound_statement "{\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }" { (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);" (assignment_expression "*param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4)" (pointer_expression "*param_2" * identifier) = (binary_expression "uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4)" identifier | (pointer_expression "*(uint *)(&DAT_0003010c + iVar2 * 4)" * (cast_expression "(uint *)(&DAT_0003010c + iVar2 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0003010c + iVar2 * 4)" ( (binary_expression "&DAT_0003010c + iVar2 * 4" (pointer_expression "&DAT_0003010c" & identifier) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }))) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) comment (expression_statement "FUN_0002b190();" (call_expression "FUN_0002b190()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nstrtol_error human_options(char *spec,int *opts,uintmax_t *block_size)\n\n{\n  char cVar1;\n  ptrdiff_t pVar2;\n  strtol_error sVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  uint uVar8;\n  int in_GS_OFFSET;\n  char *ptr;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ede9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (((spec == (char *)0x0) && (spec = getenv("BLOCK_SIZE"), spec == (char *)0x0)) &&\n     (spec = getenv("BLOCKSIZE"), spec == (char *)0x0)) {\n    pcVar4 = getenv("POSIXLY_CORRECT");\n    if (pcVar4 == (char *)0x0) {\n      *(undefined4 *)block_size = 0x400;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = 0;\n      sVar3 = LONGINT_OK;\n    }\n    else {\n      *(undefined4 *)block_size = 0x200;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = 0;\n      sVar3 = LONGINT_OK;\n    }\n  }\n  else {\n    uVar8 = 0;\n    if (*spec == '\'') {\n      spec = spec + 1;\n      uVar8 = 4;\n    }\n    pVar2 = argmatch(spec,block_size_args,(char *)block_size_opts,4);\n    if (pVar2 < 0) {\n      sVar3 = xstrtoumax(spec,&ptr,0,block_size,"eEgGkKmMpPtTyYzZ0");\n      if (sVar3 == LONGINT_OK) {\n        cVar1 = *spec;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (spec == ptr) {\n            if (ptr[-1] == 'B') {\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }\n            else {\n              uVar8 = uVar8 | 0x80;\n            }\n            uVar8 = uVar8 | 0x20;\n            break;\n          }\n          spec = spec + 1;\n          cVar1 = *spec;\n        }\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = uVar8;\n      }\n      else {\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = 0;\n      }\n      if (iVar5 == 0 && iVar7 == 0) {\n        pcVar4 = getenv("POSIXLY_CORRECT");\n        uVar6 = 0x200;\n        if (pcVar4 == (char *)0x0) {\n          uVar6 = 0x400;\n        }\n        *(undefined4 *)block_size = uVar6;\n        sVar3 = LONGINT_INVALID;\n        *(undefined4 *)((int)block_size + 4) = 0;\n      }\n    }\n    else {\n      *(undefined4 *)block_size = 1;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = uVar8 | block_size_opts[pVar2];\n      sVar3 = LONGINT_OK;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return sVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "strtol_error human_options(char *spec,int *opts,uintmax_t *block_size)\n\n{\n  char cVar1;\n  ptrdiff_t pVar2;\n  strtol_error sVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  uint uVar8;\n  int in_GS_OFFSET;\n  char *ptr;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ede9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (((spec == (char *)0x0) && (spec = getenv("BLOCK_SIZE"), spec == (char *)0x0)) &&\n     (spec = getenv("BLOCKSIZE"), spec == (char *)0x0)) {\n    pcVar4 = getenv("POSIXLY_CORRECT");\n    if (pcVar4 == (char *)0x0) {\n      *(undefined4 *)block_size = 0x400;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = 0;\n      sVar3 = LONGINT_OK;\n    }\n    else {\n      *(undefined4 *)block_size = 0x200;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = 0;\n      sVar3 = LONGINT_OK;\n    }\n  }\n  else {\n    uVar8 = 0;\n    if (*spec == '\'') {\n      spec = spec + 1;\n      uVar8 = 4;\n    }\n    pVar2 = argmatch(spec,block_size_args,(char *)block_size_opts,4);\n    if (pVar2 < 0) {\n      sVar3 = xstrtoumax(spec,&ptr,0,block_size,"eEgGkKmMpPtTyYzZ0");\n      if (sVar3 == LONGINT_OK) {\n        cVar1 = *spec;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (spec == ptr) {\n            if (ptr[-1] == 'B') {\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }\n            else {\n              uVar8 = uVar8 | 0x80;\n            }\n            uVar8 = uVar8 | 0x20;\n            break;\n          }\n          spec = spec + 1;\n          cVar1 = *spec;\n        }\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = uVar8;\n      }\n      else {\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = 0;\n      }\n      if (iVar5 == 0 && iVar7 == 0) {\n        pcVar4 = getenv("POSIXLY_CORRECT");\n        uVar6 = 0x200;\n        if (pcVar4 == (char *)0x0) {\n          uVar6 = 0x400;\n        }\n        *(undefined4 *)block_size = uVar6;\n        sVar3 = LONGINT_INVALID;\n        *(undefined4 *)((int)block_size + 4) = 0;\n      }\n    }\n    else {\n      *(undefined4 *)block_size = 1;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = uVar8 | block_size_opts[pVar2];\n      sVar3 = LONGINT_OK;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return sVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (function_declarator "human_options(char *spec,int *opts,uintmax_t *block_size)" identifier (parameter_list "(char *spec,int *opts,uintmax_t *block_size)" ( (parameter_declaration "char *spec" primitive_type (pointer_declarator "*spec" * identifier)) , (parameter_declaration "int *opts" primitive_type (pointer_declarator "*opts" * identifier)) , (parameter_declaration "uintmax_t *block_size" type_identifier (pointer_declarator "*block_size" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  ptrdiff_t pVar2;\n  strtol_error sVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  uint uVar8;\n  int in_GS_OFFSET;\n  char *ptr;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ede9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (((spec == (char *)0x0) && (spec = getenv("BLOCK_SIZE"), spec == (char *)0x0)) &&\n     (spec = getenv("BLOCKSIZE"), spec == (char *)0x0)) {\n    pcVar4 = getenv("POSIXLY_CORRECT");\n    if (pcVar4 == (char *)0x0) {\n      *(undefined4 *)block_size = 0x400;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = 0;\n      sVar3 = LONGINT_OK;\n    }\n    else {\n      *(undefined4 *)block_size = 0x200;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = 0;\n      sVar3 = LONGINT_OK;\n    }\n  }\n  else {\n    uVar8 = 0;\n    if (*spec == '\'') {\n      spec = spec + 1;\n      uVar8 = 4;\n    }\n    pVar2 = argmatch(spec,block_size_args,(char *)block_size_opts,4);\n    if (pVar2 < 0) {\n      sVar3 = xstrtoumax(spec,&ptr,0,block_size,"eEgGkKmMpPtTyYzZ0");\n      if (sVar3 == LONGINT_OK) {\n        cVar1 = *spec;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (spec == ptr) {\n            if (ptr[-1] == 'B') {\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }\n            else {\n              uVar8 = uVar8 | 0x80;\n            }\n            uVar8 = uVar8 | 0x20;\n            break;\n          }\n          spec = spec + 1;\n          cVar1 = *spec;\n        }\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = uVar8;\n      }\n      else {\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = 0;\n      }\n      if (iVar5 == 0 && iVar7 == 0) {\n        pcVar4 = getenv("POSIXLY_CORRECT");\n        uVar6 = 0x200;\n        if (pcVar4 == (char *)0x0) {\n          uVar6 = 0x400;\n        }\n        *(undefined4 *)block_size = uVar6;\n        sVar3 = LONGINT_INVALID;\n        *(undefined4 *)((int)block_size + 4) = 0;\n      }\n    }\n    else {\n      *(undefined4 *)block_size = 1;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = uVar8 | block_size_opts[pVar2];\n      sVar3 = LONGINT_OK;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return sVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "ptrdiff_t pVar2;" primitive_type identifier ;) (declaration "strtol_error sVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *ptr;" primitive_type (pointer_declarator "*ptr" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1ede9;" (assignment_expression "uStack_14 = 0x1ede9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (((spec == (char *)0x0) && (spec = getenv("BLOCK_SIZE"), spec == (char *)0x0)) &&\n     (spec = getenv("BLOCKSIZE"), spec == (char *)0x0)) {\n    pcVar4 = getenv("POSIXLY_CORRECT");\n    if (pcVar4 == (char *)0x0) {\n      *(undefined4 *)block_size = 0x400;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = 0;\n      sVar3 = LONGINT_OK;\n    }\n    else {\n      *(undefined4 *)block_size = 0x200;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = 0;\n      sVar3 = LONGINT_OK;\n    }\n  }\n  else {\n    uVar8 = 0;\n    if (*spec == '\'') {\n      spec = spec + 1;\n      uVar8 = 4;\n    }\n    pVar2 = argmatch(spec,block_size_args,(char *)block_size_opts,4);\n    if (pVar2 < 0) {\n      sVar3 = xstrtoumax(spec,&ptr,0,block_size,"eEgGkKmMpPtTyYzZ0");\n      if (sVar3 == LONGINT_OK) {\n        cVar1 = *spec;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (spec == ptr) {\n            if (ptr[-1] == 'B') {\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }\n            else {\n              uVar8 = uVar8 | 0x80;\n            }\n            uVar8 = uVar8 | 0x20;\n            break;\n          }\n          spec = spec + 1;\n          cVar1 = *spec;\n        }\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = uVar8;\n      }\n      else {\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = 0;\n      }\n      if (iVar5 == 0 && iVar7 == 0) {\n        pcVar4 = getenv("POSIXLY_CORRECT");\n        uVar6 = 0x200;\n        if (pcVar4 == (char *)0x0) {\n          uVar6 = 0x400;\n        }\n        *(undefined4 *)block_size = uVar6;\n        sVar3 = LONGINT_INVALID;\n        *(undefined4 *)((int)block_size + 4) = 0;\n      }\n    }\n    else {\n      *(undefined4 *)block_size = 1;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = uVar8 | block_size_opts[pVar2];\n      sVar3 = LONGINT_OK;\n    }\n  }" if (parenthesized_expression "(((spec == (char *)0x0) && (spec = getenv("BLOCK_SIZE"), spec == (char *)0x0)) &&\n     (spec = getenv("BLOCKSIZE"), spec == (char *)0x0))" ( (binary_expression "((spec == (char *)0x0) && (spec = getenv("BLOCK_SIZE"), spec == (char *)0x0)) &&\n     (spec = getenv("BLOCKSIZE"), spec == (char *)0x0)" (parenthesized_expression "((spec == (char *)0x0) && (spec = getenv("BLOCK_SIZE"), spec == (char *)0x0))" ( (binary_expression "(spec == (char *)0x0) && (spec = getenv("BLOCK_SIZE"), spec == (char *)0x0)" (parenthesized_expression "(spec == (char *)0x0)" ( (binary_expression "spec == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(spec = getenv("BLOCK_SIZE"), spec == (char *)0x0)" ( (comma_expression "spec = getenv("BLOCK_SIZE"), spec == (char *)0x0" (assignment_expression "spec = getenv("BLOCK_SIZE")" identifier = (call_expression "getenv("BLOCK_SIZE")" identifier (argument_list "("BLOCK_SIZE")" ( (string_literal ""BLOCK_SIZE"" " string_content ") )))) , (binary_expression "spec == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(spec = getenv("BLOCKSIZE"), spec == (char *)0x0)" ( (comma_expression "spec = getenv("BLOCKSIZE"), spec == (char *)0x0" (assignment_expression "spec = getenv("BLOCKSIZE")" identifier = (call_expression "getenv("BLOCKSIZE")" identifier (argument_list "("BLOCKSIZE")" ( (string_literal ""BLOCKSIZE"" " string_content ") )))) , (binary_expression "spec == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    pcVar4 = getenv("POSIXLY_CORRECT");\n    if (pcVar4 == (char *)0x0) {\n      *(undefined4 *)block_size = 0x400;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = 0;\n      sVar3 = LONGINT_OK;\n    }\n    else {\n      *(undefined4 *)block_size = 0x200;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = 0;\n      sVar3 = LONGINT_OK;\n    }\n  }" { (expression_statement "pcVar4 = getenv("POSIXLY_CORRECT");" (assignment_expression "pcVar4 = getenv("POSIXLY_CORRECT")" identifier = (call_expression "getenv("POSIXLY_CORRECT")" identifier (argument_list "("POSIXLY_CORRECT")" ( (string_literal ""POSIXLY_CORRECT"" " string_content ") )))) ;) (if_statement "if (pcVar4 == (char *)0x0) {\n      *(undefined4 *)block_size = 0x400;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = 0;\n      sVar3 = LONGINT_OK;\n    }\n    else {\n      *(undefined4 *)block_size = 0x200;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = 0;\n      sVar3 = LONGINT_OK;\n    }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(undefined4 *)block_size = 0x400;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = 0;\n      sVar3 = LONGINT_OK;\n    }" { (expression_statement "*(undefined4 *)block_size = 0x400;" (assignment_expression "*(undefined4 *)block_size = 0x400" (pointer_expression "*(undefined4 *)block_size" * (cast_expression "(undefined4 *)block_size" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)((int)block_size + 4) = 0;" (assignment_expression "*(undefined4 *)((int)block_size + 4) = 0" (pointer_expression "*(undefined4 *)((int)block_size + 4)" * (cast_expression "(undefined4 *)((int)block_size + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)block_size + 4)" ( (binary_expression "(int)block_size + 4" (cast_expression "(int)block_size" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*opts = 0;" (assignment_expression "*opts = 0" (pointer_expression "*opts" * identifier) = number_literal) ;) (expression_statement "sVar3 = LONGINT_OK;" (assignment_expression "sVar3 = LONGINT_OK" identifier = identifier) ;) }) (else_clause "else {\n      *(undefined4 *)block_size = 0x200;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = 0;\n      sVar3 = LONGINT_OK;\n    }" else (compound_statement "{\n      *(undefined4 *)block_size = 0x200;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = 0;\n      sVar3 = LONGINT_OK;\n    }" { (expression_statement "*(undefined4 *)block_size = 0x200;" (assignment_expression "*(undefined4 *)block_size = 0x200" (pointer_expression "*(undefined4 *)block_size" * (cast_expression "(undefined4 *)block_size" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)((int)block_size + 4) = 0;" (assignment_expression "*(undefined4 *)((int)block_size + 4) = 0" (pointer_expression "*(undefined4 *)((int)block_size + 4)" * (cast_expression "(undefined4 *)((int)block_size + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)block_size + 4)" ( (binary_expression "(int)block_size + 4" (cast_expression "(int)block_size" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*opts = 0;" (assignment_expression "*opts = 0" (pointer_expression "*opts" * identifier) = number_literal) ;) (expression_statement "sVar3 = LONGINT_OK;" (assignment_expression "sVar3 = LONGINT_OK" identifier = identifier) ;) }))) }) (else_clause "else {\n    uVar8 = 0;\n    if (*spec == '\'') {\n      spec = spec + 1;\n      uVar8 = 4;\n    }\n    pVar2 = argmatch(spec,block_size_args,(char *)block_size_opts,4);\n    if (pVar2 < 0) {\n      sVar3 = xstrtoumax(spec,&ptr,0,block_size,"eEgGkKmMpPtTyYzZ0");\n      if (sVar3 == LONGINT_OK) {\n        cVar1 = *spec;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (spec == ptr) {\n            if (ptr[-1] == 'B') {\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }\n            else {\n              uVar8 = uVar8 | 0x80;\n            }\n            uVar8 = uVar8 | 0x20;\n            break;\n          }\n          spec = spec + 1;\n          cVar1 = *spec;\n        }\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = uVar8;\n      }\n      else {\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = 0;\n      }\n      if (iVar5 == 0 && iVar7 == 0) {\n        pcVar4 = getenv("POSIXLY_CORRECT");\n        uVar6 = 0x200;\n        if (pcVar4 == (char *)0x0) {\n          uVar6 = 0x400;\n        }\n        *(undefined4 *)block_size = uVar6;\n        sVar3 = LONGINT_INVALID;\n        *(undefined4 *)((int)block_size + 4) = 0;\n      }\n    }\n    else {\n      *(undefined4 *)block_size = 1;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = uVar8 | block_size_opts[pVar2];\n      sVar3 = LONGINT_OK;\n    }\n  }" else (compound_statement "{\n    uVar8 = 0;\n    if (*spec == '\'') {\n      spec = spec + 1;\n      uVar8 = 4;\n    }\n    pVar2 = argmatch(spec,block_size_args,(char *)block_size_opts,4);\n    if (pVar2 < 0) {\n      sVar3 = xstrtoumax(spec,&ptr,0,block_size,"eEgGkKmMpPtTyYzZ0");\n      if (sVar3 == LONGINT_OK) {\n        cVar1 = *spec;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (spec == ptr) {\n            if (ptr[-1] == 'B') {\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }\n            else {\n              uVar8 = uVar8 | 0x80;\n            }\n            uVar8 = uVar8 | 0x20;\n            break;\n          }\n          spec = spec + 1;\n          cVar1 = *spec;\n        }\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = uVar8;\n      }\n      else {\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = 0;\n      }\n      if (iVar5 == 0 && iVar7 == 0) {\n        pcVar4 = getenv("POSIXLY_CORRECT");\n        uVar6 = 0x200;\n        if (pcVar4 == (char *)0x0) {\n          uVar6 = 0x400;\n        }\n        *(undefined4 *)block_size = uVar6;\n        sVar3 = LONGINT_INVALID;\n        *(undefined4 *)((int)block_size + 4) = 0;\n      }\n    }\n    else {\n      *(undefined4 *)block_size = 1;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = uVar8 | block_size_opts[pVar2];\n      sVar3 = LONGINT_OK;\n    }\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (if_statement "if (*spec == '\'') {\n      spec = spec + 1;\n      uVar8 = 4;\n    }" if (parenthesized_expression "(*spec == '\'')" ( (binary_expression "*spec == '\''" (pointer_expression "*spec" * identifier) == (char_literal "'\''" ' escape_sequence ')) )) (compound_statement "{\n      spec = spec + 1;\n      uVar8 = 4;\n    }" { (expression_statement "spec = spec + 1;" (assignment_expression "spec = spec + 1" identifier = (binary_expression "spec + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = 4;" (assignment_expression "uVar8 = 4" identifier = number_literal) ;) })) (expression_statement "pVar2 = argmatch(spec,block_size_args,(char *)block_size_opts,4);" (assignment_expression "pVar2 = argmatch(spec,block_size_args,(char *)block_size_opts,4)" identifier = (call_expression "argmatch(spec,block_size_args,(char *)block_size_opts,4)" identifier (argument_list "(spec,block_size_args,(char *)block_size_opts,4)" ( identifier , identifier , (cast_expression "(char *)block_size_opts" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , number_literal )))) ;) (if_statement "if (pVar2 < 0) {\n      sVar3 = xstrtoumax(spec,&ptr,0,block_size,"eEgGkKmMpPtTyYzZ0");\n      if (sVar3 == LONGINT_OK) {\n        cVar1 = *spec;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (spec == ptr) {\n            if (ptr[-1] == 'B') {\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }\n            else {\n              uVar8 = uVar8 | 0x80;\n            }\n            uVar8 = uVar8 | 0x20;\n            break;\n          }\n          spec = spec + 1;\n          cVar1 = *spec;\n        }\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = uVar8;\n      }\n      else {\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = 0;\n      }\n      if (iVar5 == 0 && iVar7 == 0) {\n        pcVar4 = getenv("POSIXLY_CORRECT");\n        uVar6 = 0x200;\n        if (pcVar4 == (char *)0x0) {\n          uVar6 = 0x400;\n        }\n        *(undefined4 *)block_size = uVar6;\n        sVar3 = LONGINT_INVALID;\n        *(undefined4 *)((int)block_size + 4) = 0;\n      }\n    }\n    else {\n      *(undefined4 *)block_size = 1;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = uVar8 | block_size_opts[pVar2];\n      sVar3 = LONGINT_OK;\n    }" if (parenthesized_expression "(pVar2 < 0)" ( (binary_expression "pVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      sVar3 = xstrtoumax(spec,&ptr,0,block_size,"eEgGkKmMpPtTyYzZ0");\n      if (sVar3 == LONGINT_OK) {\n        cVar1 = *spec;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (spec == ptr) {\n            if (ptr[-1] == 'B') {\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }\n            else {\n              uVar8 = uVar8 | 0x80;\n            }\n            uVar8 = uVar8 | 0x20;\n            break;\n          }\n          spec = spec + 1;\n          cVar1 = *spec;\n        }\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = uVar8;\n      }\n      else {\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = 0;\n      }\n      if (iVar5 == 0 && iVar7 == 0) {\n        pcVar4 = getenv("POSIXLY_CORRECT");\n        uVar6 = 0x200;\n        if (pcVar4 == (char *)0x0) {\n          uVar6 = 0x400;\n        }\n        *(undefined4 *)block_size = uVar6;\n        sVar3 = LONGINT_INVALID;\n        *(undefined4 *)((int)block_size + 4) = 0;\n      }\n    }" { (expression_statement "sVar3 = xstrtoumax(spec,&ptr,0,block_size,"eEgGkKmMpPtTyYzZ0");" (assignment_expression "sVar3 = xstrtoumax(spec,&ptr,0,block_size,"eEgGkKmMpPtTyYzZ0")" identifier = (call_expression "xstrtoumax(spec,&ptr,0,block_size,"eEgGkKmMpPtTyYzZ0")" identifier (argument_list "(spec,&ptr,0,block_size,"eEgGkKmMpPtTyYzZ0")" ( identifier , (pointer_expression "&ptr" & identifier) , number_literal , identifier , (string_literal ""eEgGkKmMpPtTyYzZ0"" " string_content ") )))) ;) (if_statement "if (sVar3 == LONGINT_OK) {\n        cVar1 = *spec;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (spec == ptr) {\n            if (ptr[-1] == 'B') {\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }\n            else {\n              uVar8 = uVar8 | 0x80;\n            }\n            uVar8 = uVar8 | 0x20;\n            break;\n          }\n          spec = spec + 1;\n          cVar1 = *spec;\n        }\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = uVar8;\n      }\n      else {\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = 0;\n      }" if (parenthesized_expression "(sVar3 == LONGINT_OK)" ( (binary_expression "sVar3 == LONGINT_OK" identifier == identifier) )) (compound_statement "{\n        cVar1 = *spec;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (spec == ptr) {\n            if (ptr[-1] == 'B') {\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }\n            else {\n              uVar8 = uVar8 | 0x80;\n            }\n            uVar8 = uVar8 | 0x20;\n            break;\n          }\n          spec = spec + 1;\n          cVar1 = *spec;\n        }\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = uVar8;\n      }" { (expression_statement "cVar1 = *spec;" (assignment_expression "cVar1 = *spec" identifier = (pointer_expression "*spec" * identifier)) ;) (while_statement "while (9 < (byte)(cVar1 - 0x30U)) {\n          if (spec == ptr) {\n            if (ptr[-1] == 'B') {\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }\n            else {\n              uVar8 = uVar8 | 0x80;\n            }\n            uVar8 = uVar8 | 0x20;\n            break;\n          }\n          spec = spec + 1;\n          cVar1 = *spec;\n        }" while (parenthesized_expression "(9 < (byte)(cVar1 - 0x30U))" ( (binary_expression "9 < (byte)(cVar1 - 0x30U)" number_literal < (call_expression "(byte)(cVar1 - 0x30U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar1 - 0x30U)" ( (binary_expression "cVar1 - 0x30U" identifier - number_literal) )))) )) (compound_statement "{\n          if (spec == ptr) {\n            if (ptr[-1] == 'B') {\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }\n            else {\n              uVar8 = uVar8 | 0x80;\n            }\n            uVar8 = uVar8 | 0x20;\n            break;\n          }\n          spec = spec + 1;\n          cVar1 = *spec;\n        }" { (if_statement "if (spec == ptr) {\n            if (ptr[-1] == 'B') {\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }\n            else {\n              uVar8 = uVar8 | 0x80;\n            }\n            uVar8 = uVar8 | 0x20;\n            break;\n          }" if (parenthesized_expression "(spec == ptr)" ( (binary_expression "spec == ptr" identifier == identifier) )) (compound_statement "{\n            if (ptr[-1] == 'B') {\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }\n            else {\n              uVar8 = uVar8 | 0x80;\n            }\n            uVar8 = uVar8 | 0x20;\n            break;\n          }" { (if_statement "if (ptr[-1] == 'B') {\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }\n            else {\n              uVar8 = uVar8 | 0x80;\n            }" if (parenthesized_expression "(ptr[-1] == 'B')" ( (binary_expression "ptr[-1] == 'B'" (subscript_expression "ptr[-1]" identifier [ number_literal ]) == (char_literal "'B'" ' character ')) )) (compound_statement "{\n              uVar8 = uVar8 | 0x180;\n              if (ptr[-2] != 'i') break;\n            }" { (expression_statement "uVar8 = uVar8 | 0x180;" (assignment_expression "uVar8 = uVar8 | 0x180" identifier = (binary_expression "uVar8 | 0x180" identifier | number_literal)) ;) (if_statement "if (ptr[-2] != 'i') break;" if (parenthesized_expression "(ptr[-2] != 'i')" ( (binary_expression "ptr[-2] != 'i'" (subscript_expression "ptr[-2]" identifier [ number_literal ]) != (char_literal "'i'" ' character ')) )) (break_statement "break;" break ;)) }) (else_clause "else {\n              uVar8 = uVar8 | 0x80;\n            }" else (compound_statement "{\n              uVar8 = uVar8 | 0x80;\n            }" { (expression_statement "uVar8 = uVar8 | 0x80;" (assignment_expression "uVar8 = uVar8 | 0x80" identifier = (binary_expression "uVar8 | 0x80" identifier | number_literal)) ;) }))) (expression_statement "uVar8 = uVar8 | 0x20;" (assignment_expression "uVar8 = uVar8 | 0x20" identifier = (binary_expression "uVar8 | 0x20" identifier | number_literal)) ;) (break_statement "break;" break ;) })) (expression_statement "spec = spec + 1;" (assignment_expression "spec = spec + 1" identifier = (binary_expression "spec + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *spec;" (assignment_expression "cVar1 = *spec" identifier = (pointer_expression "*spec" * identifier)) ;) })) (expression_statement "iVar7 = (int)*block_size;" (assignment_expression "iVar7 = (int)*block_size" identifier = (cast_expression "(int)*block_size" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*block_size" * identifier))) ;) (expression_statement "iVar5 = *(int *)((int)block_size + 4);" (assignment_expression "iVar5 = *(int *)((int)block_size + 4)" identifier = (pointer_expression "*(int *)((int)block_size + 4)" * (cast_expression "(int *)((int)block_size + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)block_size + 4)" ( (binary_expression "(int)block_size + 4" (cast_expression "(int)block_size" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*opts = uVar8;" (assignment_expression "*opts = uVar8" (pointer_expression "*opts" * identifier) = identifier) ;) }) (else_clause "else {\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = 0;\n      }" else (compound_statement "{\n        iVar7 = (int)*block_size;\n        iVar5 = *(int *)((int)block_size + 4);\n        *opts = 0;\n      }" { (expression_statement "iVar7 = (int)*block_size;" (assignment_expression "iVar7 = (int)*block_size" identifier = (cast_expression "(int)*block_size" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*block_size" * identifier))) ;) (expression_statement "iVar5 = *(int *)((int)block_size + 4);" (assignment_expression "iVar5 = *(int *)((int)block_size + 4)" identifier = (pointer_expression "*(int *)((int)block_size + 4)" * (cast_expression "(int *)((int)block_size + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)block_size + 4)" ( (binary_expression "(int)block_size + 4" (cast_expression "(int)block_size" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*opts = 0;" (assignment_expression "*opts = 0" (pointer_expression "*opts" * identifier) = number_literal) ;) }))) (if_statement "if (iVar5 == 0 && iVar7 == 0) {\n        pcVar4 = getenv("POSIXLY_CORRECT");\n        uVar6 = 0x200;\n        if (pcVar4 == (char *)0x0) {\n          uVar6 = 0x400;\n        }\n        *(undefined4 *)block_size = uVar6;\n        sVar3 = LONGINT_INVALID;\n        *(undefined4 *)((int)block_size + 4) = 0;\n      }" if (parenthesized_expression "(iVar5 == 0 && iVar7 == 0)" ( (binary_expression "iVar5 == 0 && iVar7 == 0" (binary_expression "iVar5 == 0" identifier == number_literal) && (binary_expression "iVar7 == 0" identifier == number_literal)) )) (compound_statement "{\n        pcVar4 = getenv("POSIXLY_CORRECT");\n        uVar6 = 0x200;\n        if (pcVar4 == (char *)0x0) {\n          uVar6 = 0x400;\n        }\n        *(undefined4 *)block_size = uVar6;\n        sVar3 = LONGINT_INVALID;\n        *(undefined4 *)((int)block_size + 4) = 0;\n      }" { (expression_statement "pcVar4 = getenv("POSIXLY_CORRECT");" (assignment_expression "pcVar4 = getenv("POSIXLY_CORRECT")" identifier = (call_expression "getenv("POSIXLY_CORRECT")" identifier (argument_list "("POSIXLY_CORRECT")" ( (string_literal ""POSIXLY_CORRECT"" " string_content ") )))) ;) (expression_statement "uVar6 = 0x200;" (assignment_expression "uVar6 = 0x200" identifier = number_literal) ;) (if_statement "if (pcVar4 == (char *)0x0) {\n          uVar6 = 0x400;\n        }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          uVar6 = 0x400;\n        }" { (expression_statement "uVar6 = 0x400;" (assignment_expression "uVar6 = 0x400" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)block_size = uVar6;" (assignment_expression "*(undefined4 *)block_size = uVar6" (pointer_expression "*(undefined4 *)block_size" * (cast_expression "(undefined4 *)block_size" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "sVar3 = LONGINT_INVALID;" (assignment_expression "sVar3 = LONGINT_INVALID" identifier = identifier) ;) (expression_statement "*(undefined4 *)((int)block_size + 4) = 0;" (assignment_expression "*(undefined4 *)((int)block_size + 4) = 0" (pointer_expression "*(undefined4 *)((int)block_size + 4)" * (cast_expression "(undefined4 *)((int)block_size + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)block_size + 4)" ( (binary_expression "(int)block_size + 4" (cast_expression "(int)block_size" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) }) (else_clause "else {\n      *(undefined4 *)block_size = 1;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = uVar8 | block_size_opts[pVar2];\n      sVar3 = LONGINT_OK;\n    }" else (compound_statement "{\n      *(undefined4 *)block_size = 1;\n      *(undefined4 *)((int)block_size + 4) = 0;\n      *opts = uVar8 | block_size_opts[pVar2];\n      sVar3 = LONGINT_OK;\n    }" { (expression_statement "*(undefined4 *)block_size = 1;" (assignment_expression "*(undefined4 *)block_size = 1" (pointer_expression "*(undefined4 *)block_size" * (cast_expression "(undefined4 *)block_size" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)((int)block_size + 4) = 0;" (assignment_expression "*(undefined4 *)((int)block_size + 4) = 0" (pointer_expression "*(undefined4 *)((int)block_size + 4)" * (cast_expression "(undefined4 *)((int)block_size + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)block_size + 4)" ( (binary_expression "(int)block_size + 4" (cast_expression "(int)block_size" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*opts = uVar8 | block_size_opts[pVar2];" (assignment_expression "*opts = uVar8 | block_size_opts[pVar2]" (pointer_expression "*opts" * identifier) = (binary_expression "uVar8 | block_size_opts[pVar2]" identifier | (subscript_expression "block_size_opts[pVar2]" identifier [ identifier ]))) ;) (expression_statement "sVar3 = LONGINT_OK;" (assignment_expression "sVar3 = LONGINT_OK" identifier = identifier) ;) }))) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return sVar3;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return sVar3;\n  }" { (return_statement "return sVar3;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_0001ede0(char *param_1,uint *param_2,int *param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  char *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ede9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)) {\n    pcVar3 = getenv("POSIXLY_CORRECT");\n    if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n  }\n  else {\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0002b190();\n}\n\n" (function_definition "int FUN_0001ede0(char *param_1,uint *param_2,int *param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  char *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ede9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)) {\n    pcVar3 = getenv("POSIXLY_CORRECT");\n    if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n  }\n  else {\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0002b190();\n}" primitive_type (function_declarator "FUN_0001ede0(char *param_1,uint *param_2,int *param_3)" identifier (parameter_list "(char *param_1,uint *param_2,int *param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  char *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ede9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)) {\n    pcVar3 = getenv("POSIXLY_CORRECT");\n    if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n  }\n  else {\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0002b190();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1ede9;" (assignment_expression "uStack_14 = 0x1ede9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)) {\n    pcVar3 = getenv("POSIXLY_CORRECT");\n    if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n  }\n  else {\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }" if (parenthesized_expression "(((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0))" ( (binary_expression "((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)" (parenthesized_expression "((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0))" ( (binary_expression "(param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)" (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)" ( (comma_expression "param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0" (assignment_expression "param_1 = getenv("BLOCK_SIZE")" identifier = (call_expression "getenv("BLOCK_SIZE")" identifier (argument_list "("BLOCK_SIZE")" ( (string_literal ""BLOCK_SIZE"" " string_content ") )))) , (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)" ( (comma_expression "param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0" (assignment_expression "param_1 = getenv("BLOCKSIZE")" identifier = (call_expression "getenv("BLOCKSIZE")" identifier (argument_list "("BLOCKSIZE")" ( (string_literal ""BLOCKSIZE"" " string_content ") )))) , (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    pcVar3 = getenv("POSIXLY_CORRECT");\n    if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n  }" { (expression_statement "pcVar3 = getenv("POSIXLY_CORRECT");" (assignment_expression "pcVar3 = getenv("POSIXLY_CORRECT")" identifier = (call_expression "getenv("POSIXLY_CORRECT")" identifier (argument_list "("POSIXLY_CORRECT")" ( (string_literal ""POSIXLY_CORRECT"" " string_content ") )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }" { (expression_statement "*param_3 = 0x400;" (assignment_expression "*param_3 = 0x400" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }" else (compound_statement "{\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }" { (expression_statement "*param_3 = 0x200;" (assignment_expression "*param_3 = 0x200" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }" else (compound_statement "{\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (if_statement "if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }" if (parenthesized_expression "(*param_1 == '\'')" ( (binary_expression "*param_1 == '\''" (pointer_expression "*param_1" * identifier) == (char_literal "'\''" ' escape_sequence ')) )) (compound_statement "{\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = 4;" (assignment_expression "uVar6 = 4" identifier = number_literal) ;) })) (expression_statement "iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);" (assignment_expression "iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4)" identifier = (call_expression "FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4)" identifier (argument_list "(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4)" ( identifier , (pointer_expression "&PTR_s_human_readable_0003ae8c" & identifier) , (pointer_expression "&DAT_0003010c" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }" { (expression_statement "iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");" (assignment_expression "iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0")" identifier = (call_expression "FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0")" identifier (argument_list "(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0")" ( identifier , (pointer_expression "&local_24" & identifier) , number_literal , identifier , (string_literal ""eEgGkKmMpPtTyYzZ0"" " string_content ") )))) ;) (if_statement "if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }" { (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (while_statement "while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }" while (parenthesized_expression "(9 < (byte)(cVar1 - 0x30U))" ( (binary_expression "9 < (byte)(cVar1 - 0x30U)" number_literal < (call_expression "(byte)(cVar1 - 0x30U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar1 - 0x30U)" ( (binary_expression "cVar1 - 0x30U" identifier - number_literal) )))) )) (compound_statement "{\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }" { (if_statement "if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }" if (parenthesized_expression "(param_1 == local_24)" ( (binary_expression "param_1 == local_24" identifier == identifier) )) (compound_statement "{\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }" { (if_statement "if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }" if (parenthesized_expression "(local_24[-1] == 'B')" ( (binary_expression "local_24[-1] == 'B'" (subscript_expression "local_24[-1]" identifier [ number_literal ]) == (char_literal "'B'" ' character ')) )) (compound_statement "{\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }" { (expression_statement "uVar6 = uVar6 | 0x180;" (assignment_expression "uVar6 = uVar6 | 0x180" identifier = (binary_expression "uVar6 | 0x180" identifier | number_literal)) ;) (if_statement "if (local_24[-2] != 'i') break;" if (parenthesized_expression "(local_24[-2] != 'i')" ( (binary_expression "local_24[-2] != 'i'" (subscript_expression "local_24[-2]" identifier [ number_literal ]) != (char_literal "'i'" ' character ')) )) (break_statement "break;" break ;)) }) (else_clause "else {\n              uVar6 = uVar6 | 0x80;\n            }" else (compound_statement "{\n              uVar6 = uVar6 | 0x80;\n            }" { (expression_statement "uVar6 = uVar6 | 0x80;" (assignment_expression "uVar6 = uVar6 | 0x80" identifier = (binary_expression "uVar6 | 0x80" identifier | number_literal)) ;) }))) (expression_statement "uVar6 = uVar6 | 0x20;" (assignment_expression "uVar6 = uVar6 | 0x20" identifier = (binary_expression "uVar6 | 0x20" identifier | number_literal)) ;) (break_statement "break;" break ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "iVar5 = *param_3;" (assignment_expression "iVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar4 = param_3[1];" (assignment_expression "iVar4 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = uVar6;" (assignment_expression "*param_2 = uVar6" (pointer_expression "*param_2" * identifier) = identifier) ;) }) (else_clause "else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }" else (compound_statement "{\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }" { (expression_statement "iVar5 = *param_3;" (assignment_expression "iVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar4 = param_3[1];" (assignment_expression "iVar4 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) }))) (if_statement "if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }" if (parenthesized_expression "(iVar4 == 0 && iVar5 == 0)" ( (binary_expression "iVar4 == 0 && iVar5 == 0" (binary_expression "iVar4 == 0" identifier == number_literal) && (binary_expression "iVar5 == 0" identifier == number_literal)) )) (compound_statement "{\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }" { (expression_statement "pcVar3 = getenv("POSIXLY_CORRECT");" (assignment_expression "pcVar3 = getenv("POSIXLY_CORRECT")" identifier = (call_expression "getenv("POSIXLY_CORRECT")" identifier (argument_list "("POSIXLY_CORRECT")" ( (string_literal ""POSIXLY_CORRECT"" " string_content ") )))) ;) (expression_statement "iVar2 = 0x200;" (assignment_expression "iVar2 = 0x200" identifier = number_literal) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar2 = 0x400;\n        }" { (expression_statement "iVar2 = 0x400;" (assignment_expression "iVar2 = 0x400" identifier = number_literal) ;) })) (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "iVar2 = 4;" (assignment_expression "iVar2 = 4" identifier = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) })) }) (else_clause "else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }" else (compound_statement "{\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }" { (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);" (assignment_expression "*param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4)" (pointer_expression "*param_2" * identifier) = (binary_expression "uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4)" identifier | (pointer_expression "*(uint *)(&DAT_0003010c + iVar2 * 4)" * (cast_expression "(uint *)(&DAT_0003010c + iVar2 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0003010c + iVar2 * 4)" ( (binary_expression "&DAT_0003010c + iVar2 * 4" (pointer_expression "&DAT_0003010c" & identifier) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }))) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "FUN_0002b190();" (call_expression "FUN_0002b190()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT , IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression LIT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) )))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' character ')) )) (break_statement break ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT | (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_0001ede0(char *param_1,uint *param_2,int *param_3)\n\n{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  char *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ede9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)) {\n    pcVar3 = getenv("POSIXLY_CORRECT");\n    if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n  }\n  else {\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0002b190();\n}" (primitive_type "int") (function_declarator "FUN_0001ede0(char *param_1,uint *param_2,int *param_3)" (identifier "FUN_0001ede0") (parameter_list "(char *param_1,uint *param_2,int *param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int in_GS_OFFSET;\n  char *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1ede9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)) {\n    pcVar3 = getenv("POSIXLY_CORRECT");\n    if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n  }\n  else {\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }\n                    \n  FUN_0002b190();\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "char *local_24;" (primitive_type "char") (pointer_declarator "*local_24" (* "*") (identifier "local_24")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1ede9;" (assignment_expression "uStack_14 = 0x1ede9" (identifier "uStack_14") (= "=") (number_literal "0x1ede9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)) {\n    pcVar3 = getenv("POSIXLY_CORRECT");\n    if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n  }\n  else {\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }" (if "if") (parenthesized_expression "(((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0))" (( "(") (binary_expression "((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&\n     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)" (parenthesized_expression "((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0))" (( "(") (binary_expression "(param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)" (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)" (( "(") (comma_expression "param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0" (assignment_expression "param_1 = getenv("BLOCK_SIZE")" (identifier "param_1") (= "=") (call_expression "getenv("BLOCK_SIZE")" (identifier "getenv") (argument_list "("BLOCK_SIZE")" (( "(") (string_literal ""BLOCK_SIZE"" (" """) (string_content "BLOCK_SIZE") (" """)) () ")")))) (, ",") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)" (( "(") (comma_expression "param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0" (assignment_expression "param_1 = getenv("BLOCKSIZE")" (identifier "param_1") (= "=") (call_expression "getenv("BLOCKSIZE")" (identifier "getenv") (argument_list "("BLOCKSIZE")" (( "(") (string_literal ""BLOCKSIZE"" (" """) (string_content "BLOCKSIZE") (" """)) () ")")))) (, ",") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    pcVar3 = getenv("POSIXLY_CORRECT");\n    if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n  }" ({ "{") (expression_statement "pcVar3 = getenv("POSIXLY_CORRECT");" (assignment_expression "pcVar3 = getenv("POSIXLY_CORRECT")" (identifier "pcVar3") (= "=") (call_expression "getenv("POSIXLY_CORRECT")" (identifier "getenv") (argument_list "("POSIXLY_CORRECT")" (( "(") (string_literal ""POSIXLY_CORRECT"" (" """) (string_content "POSIXLY_CORRECT") (" """)) () ")")))) (; ";")) (if_statement "if (pcVar3 == (char *)0x0) {\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }\n    else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }" (if "if") (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *param_3 = 0x400;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }" ({ "{") (expression_statement "*param_3 = 0x400;" (assignment_expression "*param_3 = 0x400" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0x400")) (; ";")) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }" (else "else") (compound_statement "{\n      *param_3 = 0x200;\n      param_3[1] = 0;\n      *param_2 = 0;\n      iVar2 = 0;\n    }" ({ "{") (expression_statement "*param_3 = 0x200;" (assignment_expression "*param_3 = 0x200" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0x200")) (; ";")) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }" (else "else") (compound_statement "{\n    uVar6 = 0;\n    if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }\n    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);\n    if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }\n  }" ({ "{") (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*param_1 == '\'') {\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }" (if "if") (parenthesized_expression "(*param_1 == '\'')" (( "(") (binary_expression "*param_1 == '\''" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'\''" (' "'") (escape_sequence "\'") (' "'"))) () ")")) (compound_statement "{\n      param_1 = param_1 + 1;\n      uVar6 = 4;\n    }" ({ "{") (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar6 = 4;" (assignment_expression "uVar6 = 4" (identifier "uVar6") (= "=") (number_literal "4")) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);" (assignment_expression "iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4)" (identifier "iVar2") (= "=") (call_expression "FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4)" (identifier "FUN_0001b390") (argument_list "(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&PTR_s_human_readable_0003ae8c" (& "&") (identifier "PTR_s_human_readable_0003ae8c")) (, ",") (pointer_expression "&DAT_0003010c" (& "&") (identifier "DAT_0003010c")) (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (iVar2 < 0) {\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }\n    else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");\n      if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }\n      if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }\n    }" ({ "{") (expression_statement "iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");" (assignment_expression "iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0")" (identifier "iVar2") (= "=") (call_expression "FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0")" (identifier "FUN_00024b70") (argument_list "(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0")" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (number_literal "0") (, ",") (identifier "param_3") (, ",") (string_literal ""eEgGkKmMpPtTyYzZ0"" (" """) (string_content "eEgGkKmMpPtTyYzZ0") (" """)) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }\n      else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        cVar1 = *param_1;\n        while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = uVar6;\n      }" ({ "{") (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (while_statement "while (9 < (byte)(cVar1 - 0x30U)) {\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }" (while "while") (parenthesized_expression "(9 < (byte)(cVar1 - 0x30U))" (( "(") (binary_expression "9 < (byte)(cVar1 - 0x30U)" (number_literal "9") (< "<") (call_expression "(byte)(cVar1 - 0x30U)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(cVar1 - 0x30U)" (( "(") (binary_expression "cVar1 - 0x30U" (identifier "cVar1") (- "-") (number_literal "0x30U")) () ")")))) () ")")) (compound_statement "{\n          if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }\n          param_1 = param_1 + 1;\n          cVar1 = *param_1;\n        }" ({ "{") (if_statement "if (param_1 == local_24) {\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }" (if "if") (parenthesized_expression "(param_1 == local_24)" (( "(") (binary_expression "param_1 == local_24" (identifier "param_1") (== "==") (identifier "local_24")) () ")")) (compound_statement "{\n            if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }\n            uVar6 = uVar6 | 0x20;\n            break;\n          }" ({ "{") (if_statement "if (local_24[-1] == 'B') {\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }\n            else {\n              uVar6 = uVar6 | 0x80;\n            }" (if "if") (parenthesized_expression "(local_24[-1] == 'B')" (( "(") (binary_expression "local_24[-1] == 'B'" (subscript_expression "local_24[-1]" (identifier "local_24") ([ "[") (number_literal "-1") (] "]")) (== "==") (char_literal "'B'" (' "'") (character "B") (' "'"))) () ")")) (compound_statement "{\n              uVar6 = uVar6 | 0x180;\n              if (local_24[-2] != 'i') break;\n            }" ({ "{") (expression_statement "uVar6 = uVar6 | 0x180;" (assignment_expression "uVar6 = uVar6 | 0x180" (identifier "uVar6") (= "=") (binary_expression "uVar6 | 0x180" (identifier "uVar6") (| "|") (number_literal "0x180"))) (; ";")) (if_statement "if (local_24[-2] != 'i') break;" (if "if") (parenthesized_expression "(local_24[-2] != 'i')" (( "(") (binary_expression "local_24[-2] != 'i'" (subscript_expression "local_24[-2]" (identifier "local_24") ([ "[") (number_literal "-2") (] "]")) (!= "!=") (char_literal "'i'" (' "'") (character "i") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (else_clause "else {\n              uVar6 = uVar6 | 0x80;\n            }" (else "else") (compound_statement "{\n              uVar6 = uVar6 | 0x80;\n            }" ({ "{") (expression_statement "uVar6 = uVar6 | 0x80;" (assignment_expression "uVar6 = uVar6 | 0x80" (identifier "uVar6") (= "=") (binary_expression "uVar6 | 0x80" (identifier "uVar6") (| "|") (number_literal "0x80"))) (; ";")) (} "}")))) (expression_statement "uVar6 = uVar6 | 0x20;" (assignment_expression "uVar6 = uVar6 | 0x20" (identifier "uVar6") (= "=") (binary_expression "uVar6 | 0x20" (identifier "uVar6") (| "|") (number_literal "0x20"))) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (expression_statement "iVar5 = *param_3;" (assignment_expression "iVar5 = *param_3" (identifier "iVar5") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "iVar4 = param_3[1];" (assignment_expression "iVar4 = param_3[1]" (identifier "iVar4") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_2 = uVar6;" (assignment_expression "*param_2 = uVar6" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar6")) (; ";")) (} "}")) (else_clause "else {\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }" (else "else") (compound_statement "{\n        iVar5 = *param_3;\n        iVar4 = param_3[1];\n        *param_2 = 0;\n      }" ({ "{") (expression_statement "iVar5 = *param_3;" (assignment_expression "iVar5 = *param_3" (identifier "iVar5") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "iVar4 = param_3[1];" (assignment_expression "iVar4 = param_3[1]" (identifier "iVar4") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (if_statement "if (iVar4 == 0 && iVar5 == 0) {\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }" (if "if") (parenthesized_expression "(iVar4 == 0 && iVar5 == 0)" (( "(") (binary_expression "iVar4 == 0 && iVar5 == 0" (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) (&& "&&") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n        pcVar3 = getenv("POSIXLY_CORRECT");\n        iVar2 = 0x200;\n        if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }\n        *param_3 = iVar2;\n        iVar2 = 4;\n        param_3[1] = 0;\n      }" ({ "{") (expression_statement "pcVar3 = getenv("POSIXLY_CORRECT");" (assignment_expression "pcVar3 = getenv("POSIXLY_CORRECT")" (identifier "pcVar3") (= "=") (call_expression "getenv("POSIXLY_CORRECT")" (identifier "getenv") (argument_list "("POSIXLY_CORRECT")" (( "(") (string_literal ""POSIXLY_CORRECT"" (" """) (string_content "POSIXLY_CORRECT") (" """)) () ")")))) (; ";")) (expression_statement "iVar2 = 0x200;" (assignment_expression "iVar2 = 0x200" (identifier "iVar2") (= "=") (number_literal "0x200")) (; ";")) (if_statement "if (pcVar3 == (char *)0x0) {\n          iVar2 = 0x400;\n        }" (if "if") (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          iVar2 = 0x400;\n        }" ({ "{") (expression_statement "iVar2 = 0x400;" (assignment_expression "iVar2 = 0x400" (identifier "iVar2") (= "=") (number_literal "0x400")) (; ";")) (} "}"))) (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar2 = 4;" (assignment_expression "iVar2 = 4" (identifier "iVar2") (= "=") (number_literal "4")) (; ";")) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }" (else "else") (compound_statement "{\n      *param_3 = 1;\n      param_3[1] = 0;\n      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);\n      iVar2 = 0;\n    }" ({ "{") (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "1")) (; ";")) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);" (assignment_expression "*param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4)" (identifier "uVar6") (| "|") (pointer_expression "*(uint *)(&DAT_0003010c + iVar2 * 4)" (* "*") (cast_expression "(uint *)(&DAT_0003010c + iVar2 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0003010c + iVar2 * 4)" (( "(") (binary_expression "&DAT_0003010c + iVar2 * 4" (pointer_expression "&DAT_0003010c" (& "&") (identifier "DAT_0003010c")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))))) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return iVar2;\n  }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "FUN_0002b190();" (call_expression "FUN_0002b190()" (identifier "FUN_0002b190") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 function_1(char *var_2,int *opts,type_2 *block_size)

{
  char var_10;
  ptrdiff_t var_6;
  type_1 var_8;
  char *var_4;
  int var_13;
  type_3 uVar6;
  int var_14;
  type_4 var_12;
  int var_1;
  char *var_11;
  int var_15;
  type_3 uStack_14;
  
  uStack_14 = 0x1ede9;
  var_15 = *(int *)(var_1 + 0x14);
  if (((var_2 == (char *)0x0) && (var_2 = var_3("BLOCK_SIZE"), var_2 == (char *)0x0)) &&
     (var_2 = var_3("BLOCKSIZE"), var_2 == (char *)0x0)) {
    var_4 = var_3("POSIXLY_CORRECT");
    if (var_4 == (char *)0x0) {
      *(type_3 *)block_size = 0x400;
      *(type_3 *)((int)block_size + 4) = 0;
      *opts = 0;
      var_8 = var_9;
    }
    else {
      *(type_3 *)block_size = 0x200;
      *(type_3 *)((int)block_size + 4) = 0;
      *opts = 0;
      var_8 = var_9;
    }
  }
  else {
    var_12 = 0;
    if (*var_2 == '\'') {
      var_2 = var_2 + 1;
      var_12 = 4;
    }
    var_6 = var_5(var_2,block_size_args,(char *)block_size_opts,4);
    if (var_6 < 0) {
      var_8 = var_7(var_2,&var_11,0,block_size,"eEgGkKmMpPtTyYzZ0");
      if (var_8 == var_9) {
        var_10 = *var_2;
        while (9 < (byte)(var_10 - 0x30U)) {
          if (var_2 == var_11) {
            if (var_11[-1] == 'B') {
              var_12 = var_12 | 0x180;
              if (var_11[-2] != 'i') break;
            }
            else {
              var_12 = var_12 | 0x80;
            }
            var_12 = var_12 | 0x20;
            break;
          }
          var_2 = var_2 + 1;
          var_10 = *var_2;
        }
        var_14 = (int)*block_size;
        var_13 = *(int *)((int)block_size + 4);
        *opts = var_12;
      }
      else {
        var_14 = (int)*block_size;
        var_13 = *(int *)((int)block_size + 4);
        *opts = 0;
      }
      if (var_13 == 0 && var_14 == 0) {
        var_4 = var_3("POSIXLY_CORRECT");
        uVar6 = 0x200;
        if (var_4 == (char *)0x0) {
          uVar6 = 0x400;
        }
        *(type_3 *)block_size = uVar6;
        var_8 = LONGINT_INVALID;
        *(type_3 *)((int)block_size + 4) = 0;
      }
    }
    else {
      *(type_3 *)block_size = 1;
      *(type_3 *)((int)block_size + 4) = 0;
      *opts = var_12 | block_size_opts[var_6];
      var_8 = var_9;
    }
  }
  if (var_15 == *(int *)(var_1 + 0x14)) {
    return var_8;
  }
                    /* WARNING: Subroutine does not return */
  var_16();
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  char cVar1;
  int iVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  uint uVar6;
  int in_GS_OFFSET;
  char *local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1ede9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (((param_1 == (char *)0x0) && (param_1 = getenv("BLOCK_SIZE"), param_1 == (char *)0x0)) &&
     (param_1 = getenv("BLOCKSIZE"), param_1 == (char *)0x0)) {
    pcVar3 = getenv("POSIXLY_CORRECT");
    if (pcVar3 == (char *)0x0) {
      *param_3 = 0x400;
      param_3[1] = 0;
      *param_2 = 0;
      iVar2 = 0;
    }
    else {
      *param_3 = 0x200;
      param_3[1] = 0;
      *param_2 = 0;
      iVar2 = 0;
    }
  }
  else {
    uVar6 = 0;
    if (*param_1 == '\'') {
      param_1 = param_1 + 1;
      uVar6 = 4;
    }
    iVar2 = FUN_0001b390(param_1,&PTR_s_human_readable_0003ae8c,&DAT_0003010c,4);
    if (iVar2 < 0) {
      iVar2 = FUN_00024b70(param_1,&local_24,0,param_3,"eEgGkKmMpPtTyYzZ0");
      if (iVar2 == 0) {
        cVar1 = *param_1;
        while (9 < (byte)(cVar1 - 0x30U)) {
          if (param_1 == local_24) {
            if (local_24[-1] == 'B') {
              uVar6 = uVar6 | 0x180;
              if (local_24[-2] != 'i') break;
            }
            else {
              uVar6 = uVar6 | 0x80;
            }
            uVar6 = uVar6 | 0x20;
            break;
          }
          param_1 = param_1 + 1;
          cVar1 = *param_1;
        }
        iVar5 = *param_3;
        iVar4 = param_3[1];
        *param_2 = uVar6;
      }
      else {
        iVar5 = *param_3;
        iVar4 = param_3[1];
        *param_2 = 0;
      }
      if (iVar4 == 0 && iVar5 == 0) {
        pcVar3 = getenv("POSIXLY_CORRECT");
        iVar2 = 0x200;
        if (pcVar3 == (char *)0x0) {
          iVar2 = 0x400;
        }
        *param_3 = iVar2;
        iVar2 = 4;
        param_3[1] = 0;
      }
    }
    else {
      *param_3 = 1;
      param_3[1] = 0;
      *param_2 = uVar6 | *(uint *)(&DAT_0003010c + iVar2 * 4);
      iVar2 = 0;
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002b190();
}

