
NODE * do_getline(wchar_t into_variable,IOBUF *iop)

{
  STACK_ITEM *pSVar1;
  NODE **ppNVar2;
  wchar_t cnt;
  NODE *pNVar3;
  long lVar4;
  awk_fieldwidth_info_t **field_width_00;
  long in_FS_OFFSET;
  wchar_t errcode;
  char *s;
  awk_fieldwidth_info_t *field_width;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  s = (char *)0x0;
  field_width = (awk_fieldwidth_info_t *)0x0;
  if (iop == (IOBUF *)0x0) {
    if (into_variable != L'\0') {
      stack_ptr = stack_ptr + -1;
    }
    pNVar3 = (*make_number)(0.0);
  }
  else {
    errcode = L'\0';
    field_width_00 = &field_width;
    if (into_variable != L'\0') {
      field_width_00 = (awk_fieldwidth_info_t **)0x0;
    }
    cnt = get_a_record(&s,iop,&errcode,field_width_00);
    if (errcode == L'\0') {
      if (cnt == L'\xffffffff') {
        pNVar3 = (NODE *)0x0;
      }
      else {
        NR = NR + 1;
        FNR = FNR + 1;
        if (into_variable == L'\0') {
          set_record(s,cnt,field_width);
        }
        else {
          pSVar1 = stack_ptr + -1;
          ppNVar2 = stack_ptr->lptr;
          pNVar3 = *ppNVar2;
          stack_ptr = pSVar1;
          if ((pNVar3 != (NODE *)0x0) &&
             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {
            r_unref(pNVar3);
          }
          pNVar3 = make_str_node(s,(long)cnt,L'\0');
          *ppNVar2 = pNVar3;
          pNVar3->flags = pNVar3->flags | 0x20;
        }
        pNVar3 = (*make_number)(DAT_0017aec8);
      }
    }
    else {
      if ((((byte)do_flags & 0x10) == 0) && (errcode != L'\xffffffff')) {
        update_ERRNO_int(errcode);
      }
      if (into_variable != L'\0') {
        stack_ptr = stack_ptr + -1;
      }
      pNVar3 = (*make_number)((double)cnt);
    }
  }
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return pNVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

undefined8 FUN_001539cc(int param_1,long param_2)

{
  long *plVar1;
  int iVar2;
  undefined8 uVar3;
  long lVar4;
  long lVar5;
  undefined8 *puVar6;
  long in_FS_OFFSET;
  int local_34;
  undefined8 local_30;
  undefined8 local_28;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  local_30 = 0;
  local_28 = 0;
  if (param_2 == 0) {
    if (param_1 != 0) {
      DAT_00399c70 = DAT_00399c70 + -1;
    }
    uVar3 = (*(code *)PTR_FUN_00396e58)(0);
  }
  else {
    local_34 = 0;
    puVar6 = &local_28;
    if (param_1 != 0) {
      puVar6 = (undefined8 *)0x0;
    }
    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);
    if (local_34 == 0) {
      if (iVar2 == -1) {
        uVar3 = 0;
      }
      else {
        _DAT_0039de08 = _DAT_0039de08 + 1;
        DAT_0039dfa0 = DAT_0039dfa0 + 1;
        if (param_1 == 0) {
          FUN_0014736d(local_30,iVar2,local_28);
        }
        else {
          puVar6 = DAT_00399c70 + -1;
          plVar1 = (long *)*DAT_00399c70;
          lVar5 = *plVar1;
          DAT_00399c70 = puVar6;
          if ((lVar5 != 0) &&
             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {
            FUN_001582a6();
          }
          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);
          *plVar1 = lVar5;
          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;
        }
        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);
      }
    }
    else {
      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {
        FUN_00139749();
      }
      if (param_1 != 0) {
        DAT_00399c70 = DAT_00399c70 + -1;
      }
      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);
    }
  }
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH RBP
PUSH RBX
SUB RSP,0x28
MOV EBP,EDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x18],RAX
XOR EAX,EAX
MOV qword ptr [RSP + 0x8],0x0
MOV qword ptr [RSP + 0x10],0x0
TEST RSI,RSI
JZ 0x00153a6f
MOV dword ptr [RSP + 0x4],0x0
LEA RCX,[RSP + 0x10]
TEST EDI,EDI
MOV EAX,0x0
CMOVNZ RCX,RAX
LEA RDX,[RSP + 0x4]
LEA RDI,[RSP + 0x8]
CALL 0x0014ecf8
MOV EBX,EAX
MOV EDI,dword ptr [RSP + 0x4]
TEST EDI,EDI
JZ 0x00153a8e
TEST byte ptr [0x0039c260],0x10
JNZ 0x00153a3a
CMP EDI,-0x1
JNZ 0x00153a87
TEST EBP,EBP
JZ 0x00153a46
SUB qword ptr [0x00399c70],0x8
PXOR XMM0,XMM0
CVTSI2SD XMM0,EBX
CALL qword ptr [0x00396e58]
MOV RBX,qword ptr [RSP + 0x18]
XOR RBX,qword ptr FS:[0x28]
JNZ 0x00153b2b
ADD RSP,0x28
POP RBX
POP RBP
RET
TEST EDI,EDI
JZ 0x00153a7b
SUB qword ptr [0x00399c70],0x8
PXOR XMM0,XMM0
CALL qword ptr [0x00396e58]
JMP 0x00153a54
CALL 0x00139749
JMP 0x00153a3a
CMP EAX,-0x1
JZ 0x00153b21
ADD qword ptr [0x0039de08],0x1
ADD qword ptr [0x0039dfa0],0x1
TEST EBP,EBP
JZ 0x00153b07
MOV RAX,qword ptr [0x00399c70]
LEA RDX,[RAX + -0x8]
MOV qword ptr [0x00399c70],RDX
MOV RBP,qword ptr [RAX]
MOV RDI,qword ptr [RBP]
TEST RDI,RDI
JZ 0x00153ada
MOV RAX,qword ptr [RDI + 0x18]
SUB RAX,0x1
MOV qword ptr [RDI + 0x18],RAX
TEST RAX,RAX
JLE 0x00153b1a
MOVSXD RSI,EBX
MOV EDX,0x0
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00158dc4
MOV qword ptr [RBP],RAX
OR dword ptr [RAX + 0x4c],0x20
MOVSD XMM0,qword ptr [0x0017aec8]
CALL qword ptr [0x00396e58]
JMP 0x00153a54
MOV RDX,qword ptr [RSP + 0x10]
MOV ESI,EAX
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x0014736d
JMP 0x00153af4
CALL 0x001582a6
JMP 0x00153ada
MOV EAX,0x0
JMP 0x00153a54
CALL 0x00108c10
(translation_unit "/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nundefined8 FUN_001539cc(int param_1,long param_2)\n\n{\n  long *plVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  long in_FS_OFFSET;\n  int local_34;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  local_30 = 0;\n  local_28 = 0;\n  if (param_2 == 0) {\n    if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }\n    uVar3 = (*(code *)PTR_FUN_00396e58)(0);\n  }\n  else {\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" comment (function_definition "undefined8 FUN_001539cc(int param_1,long param_2)\n\n{\n  long *plVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  long in_FS_OFFSET;\n  int local_34;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  local_30 = 0;\n  local_28 = 0;\n  if (param_2 == 0) {\n    if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }\n    uVar3 = (*(code *)PTR_FUN_00396e58)(0);\n  }\n  else {\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_001539cc(int param_1,long param_2)" identifier (parameter_list "(int param_1,long param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  long in_FS_OFFSET;\n  int local_34;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  local_30 = 0;\n  local_28 = 0;\n  if (param_2 == 0) {\n    if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }\n    uVar3 = (*(code *)PTR_FUN_00396e58)(0);\n  }\n  else {\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "undefined8 local_30;" type_identifier identifier ;) (declaration "undefined8 local_28;" type_identifier identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == 0) {\n    if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }\n    uVar3 = (*(code *)PTR_FUN_00396e58)(0);\n  }\n  else {\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }\n    uVar3 = (*(code *)PTR_FUN_00396e58)(0);\n  }" { (if_statement "if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }" { (expression_statement "DAT_00399c70 = DAT_00399c70 + -1;" (assignment_expression "DAT_00399c70 = DAT_00399c70 + -1" identifier = (binary_expression "DAT_00399c70 + -1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = (*(code *)PTR_FUN_00396e58)(0);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_00396e58)(0)" identifier = (call_expression "(*(code *)PTR_FUN_00396e58)(0)" (parenthesized_expression "(*(code *)PTR_FUN_00396e58)" ( (pointer_expression "*(code *)PTR_FUN_00396e58" * (cast_expression "(code *)PTR_FUN_00396e58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal )))) ;) }) (else_clause "else {\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }" else (compound_statement "{\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }" { (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "puVar6 = &local_28;" (assignment_expression "puVar6 = &local_28" identifier = (pointer_expression "&local_28" & identifier)) ;) (if_statement "if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar6 = (undefined8 *)0x0;\n    }" { (expression_statement "puVar6 = (undefined8 *)0x0;" (assignment_expression "puVar6 = (undefined8 *)0x0" identifier = (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);" (assignment_expression "iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6)" identifier = (call_expression "FUN_0014ecf8(&local_30,param_2,&local_34,puVar6)" identifier (argument_list "(&local_30,param_2,&local_34,puVar6)" ( (pointer_expression "&local_30" & identifier) , identifier , (pointer_expression "&local_34" & identifier) , identifier )))) ;) (if_statement "if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }" if (parenthesized_expression "(local_34 == 0)" ( (binary_expression "local_34 == 0" identifier == number_literal) )) (compound_statement "{\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }" { (if_statement "if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        uVar3 = 0;\n      }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }" else (compound_statement "{\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }" { (expression_statement "_DAT_0039de08 = _DAT_0039de08 + 1;" (assignment_expression "_DAT_0039de08 = _DAT_0039de08 + 1" identifier = (binary_expression "_DAT_0039de08 + 1" identifier + number_literal)) ;) (expression_statement "DAT_0039dfa0 = DAT_0039dfa0 + 1;" (assignment_expression "DAT_0039dfa0 = DAT_0039dfa0 + 1" identifier = (binary_expression "DAT_0039dfa0 + 1" identifier + number_literal)) ;) (if_statement "if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n          FUN_0014736d(local_30,iVar2,local_28);\n        }" { (expression_statement "FUN_0014736d(local_30,iVar2,local_28);" (call_expression "FUN_0014736d(local_30,iVar2,local_28)" identifier (argument_list "(local_30,iVar2,local_28)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }" else (compound_statement "{\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }" { (expression_statement "puVar6 = DAT_00399c70 + -1;" (assignment_expression "puVar6 = DAT_00399c70 + -1" identifier = (binary_expression "DAT_00399c70 + -1" identifier + number_literal)) ;) (expression_statement "plVar1 = (long *)*DAT_00399c70;" (assignment_expression "plVar1 = (long *)*DAT_00399c70" identifier = (cast_expression "(long *)*DAT_00399c70" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*DAT_00399c70" * identifier))) ;) (expression_statement "lVar5 = *plVar1;" (assignment_expression "lVar5 = *plVar1" identifier = (pointer_expression "*plVar1" * identifier)) ;) (expression_statement "DAT_00399c70 = puVar6;" (assignment_expression "DAT_00399c70 = puVar6" identifier = identifier) ;) (if_statement "if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }" if (parenthesized_expression "((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1))" ( (binary_expression "(lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)" (parenthesized_expression "(lVar5 != 0)" ( (binary_expression "lVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)" ( (comma_expression "lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1" (assignment_expression "lVar4 = *(long *)(lVar5 + 0x18) + -1" identifier = (binary_expression "*(long *)(lVar5 + 0x18) + -1" (pointer_expression "*(long *)(lVar5 + 0x18)" * (cast_expression "(long *)(lVar5 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x18)" ( (binary_expression "lVar5 + 0x18" identifier + number_literal) )))) + number_literal)) , (comma_expression "*(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1" (assignment_expression "*(long *)(lVar5 + 0x18) = lVar4" (pointer_expression "*(long *)(lVar5 + 0x18)" * (cast_expression "(long *)(lVar5 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x18)" ( (binary_expression "lVar5 + 0x18" identifier + number_literal) )))) = identifier) , (binary_expression "lVar4 < 1" identifier < number_literal))) ))) )) (compound_statement "{\n            FUN_001582a6();\n          }" { (expression_statement "FUN_001582a6();" (call_expression "FUN_001582a6()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);" (assignment_expression "lVar5 = FUN_00158dc4(local_30,(long)iVar2,0)" identifier = (call_expression "FUN_00158dc4(local_30,(long)iVar2,0)" identifier (argument_list "(local_30,(long)iVar2,0)" ( identifier , (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal )))) ;) (expression_statement "*plVar1 = lVar5;" (assignment_expression "*plVar1 = lVar5" (pointer_expression "*plVar1" * identifier) = identifier) ;) (expression_statement "*(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;" (assignment_expression "*(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20" (pointer_expression "*(uint *)(lVar5 + 0x4c)" * (cast_expression "(uint *)(lVar5 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x4c)" ( (binary_expression "lVar5 + 0x4c" identifier + number_literal) )))) = (binary_expression "*(uint *)(lVar5 + 0x4c) | 0x20" (pointer_expression "*(uint *)(lVar5 + 0x4c)" * (cast_expression "(uint *)(lVar5 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x4c)" ( (binary_expression "lVar5 + 0x4c" identifier + number_literal) )))) | number_literal)) ;) }))) (expression_statement "uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8)" identifier = (call_expression "(*(code *)PTR_FUN_00396e58)(DAT_0017aec8)" (parenthesized_expression "(*(code *)PTR_FUN_00396e58)" ( (pointer_expression "*(code *)PTR_FUN_00396e58" * (cast_expression "(code *)PTR_FUN_00396e58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(DAT_0017aec8)" ( identifier )))) ;) }))) }) (else_clause "else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }" else (compound_statement "{\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }" { (if_statement "if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }" if (parenthesized_expression "((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1))" ( (binary_expression "(((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)" (parenthesized_expression "(((byte)DAT_0039c260 & 0x10) == 0)" ( (binary_expression "((byte)DAT_0039c260 & 0x10) == 0" (parenthesized_expression "((byte)DAT_0039c260 & 0x10)" ( (binary_expression "(byte)DAT_0039c260 & 0x10" (cast_expression "(byte)DAT_0039c260" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) == number_literal) )) && (parenthesized_expression "(local_34 != -1)" ( (binary_expression "local_34 != -1" identifier != number_literal) ))) )) (compound_statement "{\n        FUN_00139749();\n      }" { (expression_statement "FUN_00139749();" (call_expression "FUN_00139749()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }" { (expression_statement "DAT_00399c70 = DAT_00399c70 + -1;" (assignment_expression "DAT_00399c70 = DAT_00399c70 + -1" identifier = (binary_expression "DAT_00399c70 + -1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2)" identifier = (call_expression "(*(code *)PTR_FUN_00396e58)((double)iVar2)" (parenthesized_expression "(*(code *)PTR_FUN_00396e58)" ( (pointer_expression "*(code *)PTR_FUN_00396e58" * (cast_expression "(code *)PTR_FUN_00396e58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((double)iVar2)" ( (cast_expression "(double)iVar2" ( (type_descriptor "double" primitive_type) ) identifier) )))) ;) }))) }))) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "NODE * do_getline(wchar_t into_variable,IOBUF *iop)\n\n{\n  STACK_ITEM *pSVar1;\n  NODE **ppNVar2;\n  wchar_t cnt;\n  NODE *pNVar3;\n  long lVar4;\n  awk_fieldwidth_info_t **field_width_00;\n  long in_FS_OFFSET;\n  wchar_t errcode;\n  char *s;\n  awk_fieldwidth_info_t *field_width;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  s = (char *)0x0;\n  field_width = (awk_fieldwidth_info_t *)0x0;\n  if (iop == (IOBUF *)0x0) {\n    if (into_variable != L'\0') {\n      stack_ptr = stack_ptr + -1;\n    }\n    pNVar3 = (*make_number)(0.0);\n  }\n  else {\n    errcode = L'\0';\n    field_width_00 = &field_width;\n    if (into_variable != L'\0') {\n      field_width_00 = (awk_fieldwidth_info_t **)0x0;\n    }\n    cnt = get_a_record(&s,iop,&errcode,field_width_00);\n    if (errcode == L'\0') {\n      if (cnt == L'\xffffffff') {\n        pNVar3 = (NODE *)0x0;\n      }\n      else {\n        NR = NR + 1;\n        FNR = FNR + 1;\n        if (into_variable == L'\0') {\n          set_record(s,cnt,field_width);\n        }\n        else {\n          pSVar1 = stack_ptr + -1;\n          ppNVar2 = stack_ptr->lptr;\n          pNVar3 = *ppNVar2;\n          stack_ptr = pSVar1;\n          if ((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {\n            r_unref(pNVar3);\n          }\n          pNVar3 = make_str_node(s,(long)cnt,L'\0');\n          *ppNVar2 = pNVar3;\n          pNVar3->flags = pNVar3->flags | 0x20;\n        }\n        pNVar3 = (*make_number)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)do_flags & 0x10) == 0) && (errcode != L'\xffffffff')) {\n        update_ERRNO_int(errcode);\n      }\n      if (into_variable != L'\0') {\n        stack_ptr = stack_ptr + -1;\n      }\n      pNVar3 = (*make_number)((double)cnt);\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pNVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "NODE * do_getline(wchar_t into_variable,IOBUF *iop)\n\n{\n  STACK_ITEM *pSVar1;\n  NODE **ppNVar2;\n  wchar_t cnt;\n  NODE *pNVar3;\n  long lVar4;\n  awk_fieldwidth_info_t **field_width_00;\n  long in_FS_OFFSET;\n  wchar_t errcode;\n  char *s;\n  awk_fieldwidth_info_t *field_width;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  s = (char *)0x0;\n  field_width = (awk_fieldwidth_info_t *)0x0;\n  if (iop == (IOBUF *)0x0) {\n    if (into_variable != L'\0') {\n      stack_ptr = stack_ptr + -1;\n    }\n    pNVar3 = (*make_number)(0.0);\n  }\n  else {\n    errcode = L'\0';\n    field_width_00 = &field_width;\n    if (into_variable != L'\0') {\n      field_width_00 = (awk_fieldwidth_info_t **)0x0;\n    }\n    cnt = get_a_record(&s,iop,&errcode,field_width_00);\n    if (errcode == L'\0') {\n      if (cnt == L'\xffffffff') {\n        pNVar3 = (NODE *)0x0;\n      }\n      else {\n        NR = NR + 1;\n        FNR = FNR + 1;\n        if (into_variable == L'\0') {\n          set_record(s,cnt,field_width);\n        }\n        else {\n          pSVar1 = stack_ptr + -1;\n          ppNVar2 = stack_ptr->lptr;\n          pNVar3 = *ppNVar2;\n          stack_ptr = pSVar1;\n          if ((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {\n            r_unref(pNVar3);\n          }\n          pNVar3 = make_str_node(s,(long)cnt,L'\0');\n          *ppNVar2 = pNVar3;\n          pNVar3->flags = pNVar3->flags | 0x20;\n        }\n        pNVar3 = (*make_number)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)do_flags & 0x10) == 0) && (errcode != L'\xffffffff')) {\n        update_ERRNO_int(errcode);\n      }\n      if (into_variable != L'\0') {\n        stack_ptr = stack_ptr + -1;\n      }\n      pNVar3 = (*make_number)((double)cnt);\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pNVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (pointer_declarator "* do_getline(wchar_t into_variable,IOBUF *iop)" * (function_declarator "do_getline(wchar_t into_variable,IOBUF *iop)" identifier (parameter_list "(wchar_t into_variable,IOBUF *iop)" ( (parameter_declaration "wchar_t into_variable" type_identifier identifier) , (parameter_declaration "IOBUF *iop" type_identifier (pointer_declarator "*iop" * identifier)) )))) (compound_statement "{\n  STACK_ITEM *pSVar1;\n  NODE **ppNVar2;\n  wchar_t cnt;\n  NODE *pNVar3;\n  long lVar4;\n  awk_fieldwidth_info_t **field_width_00;\n  long in_FS_OFFSET;\n  wchar_t errcode;\n  char *s;\n  awk_fieldwidth_info_t *field_width;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  s = (char *)0x0;\n  field_width = (awk_fieldwidth_info_t *)0x0;\n  if (iop == (IOBUF *)0x0) {\n    if (into_variable != L'\0') {\n      stack_ptr = stack_ptr + -1;\n    }\n    pNVar3 = (*make_number)(0.0);\n  }\n  else {\n    errcode = L'\0';\n    field_width_00 = &field_width;\n    if (into_variable != L'\0') {\n      field_width_00 = (awk_fieldwidth_info_t **)0x0;\n    }\n    cnt = get_a_record(&s,iop,&errcode,field_width_00);\n    if (errcode == L'\0') {\n      if (cnt == L'\xffffffff') {\n        pNVar3 = (NODE *)0x0;\n      }\n      else {\n        NR = NR + 1;\n        FNR = FNR + 1;\n        if (into_variable == L'\0') {\n          set_record(s,cnt,field_width);\n        }\n        else {\n          pSVar1 = stack_ptr + -1;\n          ppNVar2 = stack_ptr->lptr;\n          pNVar3 = *ppNVar2;\n          stack_ptr = pSVar1;\n          if ((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {\n            r_unref(pNVar3);\n          }\n          pNVar3 = make_str_node(s,(long)cnt,L'\0');\n          *ppNVar2 = pNVar3;\n          pNVar3->flags = pNVar3->flags | 0x20;\n        }\n        pNVar3 = (*make_number)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)do_flags & 0x10) == 0) && (errcode != L'\xffffffff')) {\n        update_ERRNO_int(errcode);\n      }\n      if (into_variable != L'\0') {\n        stack_ptr = stack_ptr + -1;\n      }\n      pNVar3 = (*make_number)((double)cnt);\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pNVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "STACK_ITEM *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (declaration "NODE **ppNVar2;" type_identifier (pointer_declarator "**ppNVar2" * (pointer_declarator "*ppNVar2" * identifier)) ;) (declaration "wchar_t cnt;" type_identifier identifier ;) (declaration "NODE *pNVar3;" type_identifier (pointer_declarator "*pNVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "awk_fieldwidth_info_t **field_width_00;" type_identifier (pointer_declarator "**field_width_00" * (pointer_declarator "*field_width_00" * identifier)) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "wchar_t errcode;" type_identifier identifier ;) (declaration "char *s;" primitive_type (pointer_declarator "*s" * identifier) ;) (declaration "awk_fieldwidth_info_t *field_width;" type_identifier (pointer_declarator "*field_width" * identifier) ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "s = (char *)0x0;" (assignment_expression "s = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "field_width = (awk_fieldwidth_info_t *)0x0;" (assignment_expression "field_width = (awk_fieldwidth_info_t *)0x0" identifier = (cast_expression "(awk_fieldwidth_info_t *)0x0" ( (type_descriptor "awk_fieldwidth_info_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iop == (IOBUF *)0x0) {\n    if (into_variable != L'\0') {\n      stack_ptr = stack_ptr + -1;\n    }\n    pNVar3 = (*make_number)(0.0);\n  }\n  else {\n    errcode = L'\0';\n    field_width_00 = &field_width;\n    if (into_variable != L'\0') {\n      field_width_00 = (awk_fieldwidth_info_t **)0x0;\n    }\n    cnt = get_a_record(&s,iop,&errcode,field_width_00);\n    if (errcode == L'\0') {\n      if (cnt == L'\xffffffff') {\n        pNVar3 = (NODE *)0x0;\n      }\n      else {\n        NR = NR + 1;\n        FNR = FNR + 1;\n        if (into_variable == L'\0') {\n          set_record(s,cnt,field_width);\n        }\n        else {\n          pSVar1 = stack_ptr + -1;\n          ppNVar2 = stack_ptr->lptr;\n          pNVar3 = *ppNVar2;\n          stack_ptr = pSVar1;\n          if ((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {\n            r_unref(pNVar3);\n          }\n          pNVar3 = make_str_node(s,(long)cnt,L'\0');\n          *ppNVar2 = pNVar3;\n          pNVar3->flags = pNVar3->flags | 0x20;\n        }\n        pNVar3 = (*make_number)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)do_flags & 0x10) == 0) && (errcode != L'\xffffffff')) {\n        update_ERRNO_int(errcode);\n      }\n      if (into_variable != L'\0') {\n        stack_ptr = stack_ptr + -1;\n      }\n      pNVar3 = (*make_number)((double)cnt);\n    }\n  }" if (parenthesized_expression "(iop == (IOBUF *)0x0)" ( (binary_expression "iop == (IOBUF *)0x0" identifier == (cast_expression "(IOBUF *)0x0" ( (type_descriptor "IOBUF *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (into_variable != L'\0') {\n      stack_ptr = stack_ptr + -1;\n    }\n    pNVar3 = (*make_number)(0.0);\n  }" { (if_statement "if (into_variable != L'\0') {\n      stack_ptr = stack_ptr + -1;\n    }" if (parenthesized_expression "(into_variable != L'\0')" ( (binary_expression "into_variable != L'\0'" identifier != (char_literal "L'\0'" L' escape_sequence ')) )) (compound_statement "{\n      stack_ptr = stack_ptr + -1;\n    }" { (expression_statement "stack_ptr = stack_ptr + -1;" (assignment_expression "stack_ptr = stack_ptr + -1" identifier = (binary_expression "stack_ptr + -1" identifier + number_literal)) ;) })) (expression_statement "pNVar3 = (*make_number)(0.0);" (assignment_expression "pNVar3 = (*make_number)(0.0)" identifier = (call_expression "(*make_number)(0.0)" (parenthesized_expression "(*make_number)" ( (pointer_expression "*make_number" * identifier) )) (argument_list "(0.0)" ( number_literal )))) ;) }) (else_clause "else {\n    errcode = L'\0';\n    field_width_00 = &field_width;\n    if (into_variable != L'\0') {\n      field_width_00 = (awk_fieldwidth_info_t **)0x0;\n    }\n    cnt = get_a_record(&s,iop,&errcode,field_width_00);\n    if (errcode == L'\0') {\n      if (cnt == L'\xffffffff') {\n        pNVar3 = (NODE *)0x0;\n      }\n      else {\n        NR = NR + 1;\n        FNR = FNR + 1;\n        if (into_variable == L'\0') {\n          set_record(s,cnt,field_width);\n        }\n        else {\n          pSVar1 = stack_ptr + -1;\n          ppNVar2 = stack_ptr->lptr;\n          pNVar3 = *ppNVar2;\n          stack_ptr = pSVar1;\n          if ((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {\n            r_unref(pNVar3);\n          }\n          pNVar3 = make_str_node(s,(long)cnt,L'\0');\n          *ppNVar2 = pNVar3;\n          pNVar3->flags = pNVar3->flags | 0x20;\n        }\n        pNVar3 = (*make_number)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)do_flags & 0x10) == 0) && (errcode != L'\xffffffff')) {\n        update_ERRNO_int(errcode);\n      }\n      if (into_variable != L'\0') {\n        stack_ptr = stack_ptr + -1;\n      }\n      pNVar3 = (*make_number)((double)cnt);\n    }\n  }" else (compound_statement "{\n    errcode = L'\0';\n    field_width_00 = &field_width;\n    if (into_variable != L'\0') {\n      field_width_00 = (awk_fieldwidth_info_t **)0x0;\n    }\n    cnt = get_a_record(&s,iop,&errcode,field_width_00);\n    if (errcode == L'\0') {\n      if (cnt == L'\xffffffff') {\n        pNVar3 = (NODE *)0x0;\n      }\n      else {\n        NR = NR + 1;\n        FNR = FNR + 1;\n        if (into_variable == L'\0') {\n          set_record(s,cnt,field_width);\n        }\n        else {\n          pSVar1 = stack_ptr + -1;\n          ppNVar2 = stack_ptr->lptr;\n          pNVar3 = *ppNVar2;\n          stack_ptr = pSVar1;\n          if ((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {\n            r_unref(pNVar3);\n          }\n          pNVar3 = make_str_node(s,(long)cnt,L'\0');\n          *ppNVar2 = pNVar3;\n          pNVar3->flags = pNVar3->flags | 0x20;\n        }\n        pNVar3 = (*make_number)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)do_flags & 0x10) == 0) && (errcode != L'\xffffffff')) {\n        update_ERRNO_int(errcode);\n      }\n      if (into_variable != L'\0') {\n        stack_ptr = stack_ptr + -1;\n      }\n      pNVar3 = (*make_number)((double)cnt);\n    }\n  }" { (expression_statement "errcode = L'\0';" (assignment_expression "errcode = L'\0'" identifier = (char_literal "L'\0'" L' escape_sequence ')) ;) (expression_statement "field_width_00 = &field_width;" (assignment_expression "field_width_00 = &field_width" identifier = (pointer_expression "&field_width" & identifier)) ;) (if_statement "if (into_variable != L'\0') {\n      field_width_00 = (awk_fieldwidth_info_t **)0x0;\n    }" if (parenthesized_expression "(into_variable != L'\0')" ( (binary_expression "into_variable != L'\0'" identifier != (char_literal "L'\0'" L' escape_sequence ')) )) (compound_statement "{\n      field_width_00 = (awk_fieldwidth_info_t **)0x0;\n    }" { (expression_statement "field_width_00 = (awk_fieldwidth_info_t **)0x0;" (assignment_expression "field_width_00 = (awk_fieldwidth_info_t **)0x0" identifier = (cast_expression "(awk_fieldwidth_info_t **)0x0" ( (type_descriptor "awk_fieldwidth_info_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) })) (expression_statement "cnt = get_a_record(&s,iop,&errcode,field_width_00);" (assignment_expression "cnt = get_a_record(&s,iop,&errcode,field_width_00)" identifier = (call_expression "get_a_record(&s,iop,&errcode,field_width_00)" identifier (argument_list "(&s,iop,&errcode,field_width_00)" ( (pointer_expression "&s" & identifier) , identifier , (pointer_expression "&errcode" & identifier) , identifier )))) ;) (if_statement "if (errcode == L'\0') {\n      if (cnt == L'\xffffffff') {\n        pNVar3 = (NODE *)0x0;\n      }\n      else {\n        NR = NR + 1;\n        FNR = FNR + 1;\n        if (into_variable == L'\0') {\n          set_record(s,cnt,field_width);\n        }\n        else {\n          pSVar1 = stack_ptr + -1;\n          ppNVar2 = stack_ptr->lptr;\n          pNVar3 = *ppNVar2;\n          stack_ptr = pSVar1;\n          if ((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {\n            r_unref(pNVar3);\n          }\n          pNVar3 = make_str_node(s,(long)cnt,L'\0');\n          *ppNVar2 = pNVar3;\n          pNVar3->flags = pNVar3->flags | 0x20;\n        }\n        pNVar3 = (*make_number)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)do_flags & 0x10) == 0) && (errcode != L'\xffffffff')) {\n        update_ERRNO_int(errcode);\n      }\n      if (into_variable != L'\0') {\n        stack_ptr = stack_ptr + -1;\n      }\n      pNVar3 = (*make_number)((double)cnt);\n    }" if (parenthesized_expression "(errcode == L'\0')" ( (binary_expression "errcode == L'\0'" identifier == (char_literal "L'\0'" L' escape_sequence ')) )) (compound_statement "{\n      if (cnt == L'\xffffffff') {\n        pNVar3 = (NODE *)0x0;\n      }\n      else {\n        NR = NR + 1;\n        FNR = FNR + 1;\n        if (into_variable == L'\0') {\n          set_record(s,cnt,field_width);\n        }\n        else {\n          pSVar1 = stack_ptr + -1;\n          ppNVar2 = stack_ptr->lptr;\n          pNVar3 = *ppNVar2;\n          stack_ptr = pSVar1;\n          if ((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {\n            r_unref(pNVar3);\n          }\n          pNVar3 = make_str_node(s,(long)cnt,L'\0');\n          *ppNVar2 = pNVar3;\n          pNVar3->flags = pNVar3->flags | 0x20;\n        }\n        pNVar3 = (*make_number)(DAT_0017aec8);\n      }\n    }" { (if_statement "if (cnt == L'\xffffffff') {\n        pNVar3 = (NODE *)0x0;\n      }\n      else {\n        NR = NR + 1;\n        FNR = FNR + 1;\n        if (into_variable == L'\0') {\n          set_record(s,cnt,field_width);\n        }\n        else {\n          pSVar1 = stack_ptr + -1;\n          ppNVar2 = stack_ptr->lptr;\n          pNVar3 = *ppNVar2;\n          stack_ptr = pSVar1;\n          if ((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {\n            r_unref(pNVar3);\n          }\n          pNVar3 = make_str_node(s,(long)cnt,L'\0');\n          *ppNVar2 = pNVar3;\n          pNVar3->flags = pNVar3->flags | 0x20;\n        }\n        pNVar3 = (*make_number)(DAT_0017aec8);\n      }" if (parenthesized_expression "(cnt == L'\xffffffff')" ( (binary_expression "cnt == L'\xffffffff'" identifier == (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n        pNVar3 = (NODE *)0x0;\n      }" { (expression_statement "pNVar3 = (NODE *)0x0;" (assignment_expression "pNVar3 = (NODE *)0x0" identifier = (cast_expression "(NODE *)0x0" ( (type_descriptor "NODE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n        NR = NR + 1;\n        FNR = FNR + 1;\n        if (into_variable == L'\0') {\n          set_record(s,cnt,field_width);\n        }\n        else {\n          pSVar1 = stack_ptr + -1;\n          ppNVar2 = stack_ptr->lptr;\n          pNVar3 = *ppNVar2;\n          stack_ptr = pSVar1;\n          if ((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {\n            r_unref(pNVar3);\n          }\n          pNVar3 = make_str_node(s,(long)cnt,L'\0');\n          *ppNVar2 = pNVar3;\n          pNVar3->flags = pNVar3->flags | 0x20;\n        }\n        pNVar3 = (*make_number)(DAT_0017aec8);\n      }" else (compound_statement "{\n        NR = NR + 1;\n        FNR = FNR + 1;\n        if (into_variable == L'\0') {\n          set_record(s,cnt,field_width);\n        }\n        else {\n          pSVar1 = stack_ptr + -1;\n          ppNVar2 = stack_ptr->lptr;\n          pNVar3 = *ppNVar2;\n          stack_ptr = pSVar1;\n          if ((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {\n            r_unref(pNVar3);\n          }\n          pNVar3 = make_str_node(s,(long)cnt,L'\0');\n          *ppNVar2 = pNVar3;\n          pNVar3->flags = pNVar3->flags | 0x20;\n        }\n        pNVar3 = (*make_number)(DAT_0017aec8);\n      }" { (expression_statement "NR = NR + 1;" (assignment_expression "NR = NR + 1" identifier = (binary_expression "NR + 1" identifier + number_literal)) ;) (expression_statement "FNR = FNR + 1;" (assignment_expression "FNR = FNR + 1" identifier = (binary_expression "FNR + 1" identifier + number_literal)) ;) (if_statement "if (into_variable == L'\0') {\n          set_record(s,cnt,field_width);\n        }\n        else {\n          pSVar1 = stack_ptr + -1;\n          ppNVar2 = stack_ptr->lptr;\n          pNVar3 = *ppNVar2;\n          stack_ptr = pSVar1;\n          if ((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {\n            r_unref(pNVar3);\n          }\n          pNVar3 = make_str_node(s,(long)cnt,L'\0');\n          *ppNVar2 = pNVar3;\n          pNVar3->flags = pNVar3->flags | 0x20;\n        }" if (parenthesized_expression "(into_variable == L'\0')" ( (binary_expression "into_variable == L'\0'" identifier == (char_literal "L'\0'" L' escape_sequence ')) )) (compound_statement "{\n          set_record(s,cnt,field_width);\n        }" { (expression_statement "set_record(s,cnt,field_width);" (call_expression "set_record(s,cnt,field_width)" identifier (argument_list "(s,cnt,field_width)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n          pSVar1 = stack_ptr + -1;\n          ppNVar2 = stack_ptr->lptr;\n          pNVar3 = *ppNVar2;\n          stack_ptr = pSVar1;\n          if ((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {\n            r_unref(pNVar3);\n          }\n          pNVar3 = make_str_node(s,(long)cnt,L'\0');\n          *ppNVar2 = pNVar3;\n          pNVar3->flags = pNVar3->flags | 0x20;\n        }" else (compound_statement "{\n          pSVar1 = stack_ptr + -1;\n          ppNVar2 = stack_ptr->lptr;\n          pNVar3 = *ppNVar2;\n          stack_ptr = pSVar1;\n          if ((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {\n            r_unref(pNVar3);\n          }\n          pNVar3 = make_str_node(s,(long)cnt,L'\0');\n          *ppNVar2 = pNVar3;\n          pNVar3->flags = pNVar3->flags | 0x20;\n        }" { (expression_statement "pSVar1 = stack_ptr + -1;" (assignment_expression "pSVar1 = stack_ptr + -1" identifier = (binary_expression "stack_ptr + -1" identifier + number_literal)) ;) (expression_statement "ppNVar2 = stack_ptr->lptr;" (assignment_expression "ppNVar2 = stack_ptr->lptr" identifier = (field_expression "stack_ptr->lptr" identifier -> field_identifier)) ;) (expression_statement "pNVar3 = *ppNVar2;" (assignment_expression "pNVar3 = *ppNVar2" identifier = (pointer_expression "*ppNVar2" * identifier)) ;) (expression_statement "stack_ptr = pSVar1;" (assignment_expression "stack_ptr = pSVar1" identifier = identifier) ;) (if_statement "if ((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)) {\n            r_unref(pNVar3);\n          }" if (parenthesized_expression "((pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1))" ( (binary_expression "(pNVar3 != (NODE *)0x0) &&\n             (lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)" (parenthesized_expression "(pNVar3 != (NODE *)0x0)" ( (binary_expression "pNVar3 != (NODE *)0x0" identifier != (cast_expression "(NODE *)0x0" ( (type_descriptor "NODE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1)" ( (comma_expression "lVar4 = (pNVar3->sub).val.sref + -1, (pNVar3->sub).val.sref = lVar4, lVar4 < 1" (assignment_expression "lVar4 = (pNVar3->sub).val.sref + -1" identifier = (binary_expression "(pNVar3->sub).val.sref + -1" (field_expression "(pNVar3->sub).val.sref" (field_expression "(pNVar3->sub).val" (parenthesized_expression "(pNVar3->sub)" ( (field_expression "pNVar3->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) + number_literal)) , (comma_expression "(pNVar3->sub).val.sref = lVar4, lVar4 < 1" (assignment_expression "(pNVar3->sub).val.sref = lVar4" (field_expression "(pNVar3->sub).val.sref" (field_expression "(pNVar3->sub).val" (parenthesized_expression "(pNVar3->sub)" ( (field_expression "pNVar3->sub" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) , (binary_expression "lVar4 < 1" identifier < number_literal))) ))) )) (compound_statement "{\n            r_unref(pNVar3);\n          }" { (expression_statement "r_unref(pNVar3);" (call_expression "r_unref(pNVar3)" identifier (argument_list "(pNVar3)" ( identifier ))) ;) })) (expression_statement "pNVar3 = make_str_node(s,(long)cnt,L'\0');" (assignment_expression "pNVar3 = make_str_node(s,(long)cnt,L'\0')" identifier = (call_expression "make_str_node(s,(long)cnt,L'\0')" identifier (argument_list "(s,(long)cnt,L'\0')" ( identifier , (cast_expression "(long)cnt" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , (char_literal "L'\0'" L' escape_sequence ') )))) ;) (expression_statement "*ppNVar2 = pNVar3;" (assignment_expression "*ppNVar2 = pNVar3" (pointer_expression "*ppNVar2" * identifier) = identifier) ;) (expression_statement "pNVar3->flags = pNVar3->flags | 0x20;" (assignment_expression "pNVar3->flags = pNVar3->flags | 0x20" (field_expression "pNVar3->flags" identifier -> field_identifier) = (binary_expression "pNVar3->flags | 0x20" (field_expression "pNVar3->flags" identifier -> field_identifier) | number_literal)) ;) }))) (expression_statement "pNVar3 = (*make_number)(DAT_0017aec8);" (assignment_expression "pNVar3 = (*make_number)(DAT_0017aec8)" identifier = (call_expression "(*make_number)(DAT_0017aec8)" (parenthesized_expression "(*make_number)" ( (pointer_expression "*make_number" * identifier) )) (argument_list "(DAT_0017aec8)" ( identifier )))) ;) }))) }) (else_clause "else {\n      if ((((byte)do_flags & 0x10) == 0) && (errcode != L'\xffffffff')) {\n        update_ERRNO_int(errcode);\n      }\n      if (into_variable != L'\0') {\n        stack_ptr = stack_ptr + -1;\n      }\n      pNVar3 = (*make_number)((double)cnt);\n    }" else (compound_statement "{\n      if ((((byte)do_flags & 0x10) == 0) && (errcode != L'\xffffffff')) {\n        update_ERRNO_int(errcode);\n      }\n      if (into_variable != L'\0') {\n        stack_ptr = stack_ptr + -1;\n      }\n      pNVar3 = (*make_number)((double)cnt);\n    }" { (if_statement "if ((((byte)do_flags & 0x10) == 0) && (errcode != L'\xffffffff')) {\n        update_ERRNO_int(errcode);\n      }" if (parenthesized_expression "((((byte)do_flags & 0x10) == 0) && (errcode != L'\xffffffff'))" ( (binary_expression "(((byte)do_flags & 0x10) == 0) && (errcode != L'\xffffffff')" (parenthesized_expression "(((byte)do_flags & 0x10) == 0)" ( (binary_expression "((byte)do_flags & 0x10) == 0" (parenthesized_expression "((byte)do_flags & 0x10)" ( (binary_expression "(byte)do_flags & 0x10" (cast_expression "(byte)do_flags" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) == number_literal) )) && (parenthesized_expression "(errcode != L'\xffffffff')" ( (binary_expression "errcode != L'\xffffffff'" identifier != (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) ))) )) (compound_statement "{\n        update_ERRNO_int(errcode);\n      }" { (expression_statement "update_ERRNO_int(errcode);" (call_expression "update_ERRNO_int(errcode)" identifier (argument_list "(errcode)" ( identifier ))) ;) })) (if_statement "if (into_variable != L'\0') {\n        stack_ptr = stack_ptr + -1;\n      }" if (parenthesized_expression "(into_variable != L'\0')" ( (binary_expression "into_variable != L'\0'" identifier != (char_literal "L'\0'" L' escape_sequence ')) )) (compound_statement "{\n        stack_ptr = stack_ptr + -1;\n      }" { (expression_statement "stack_ptr = stack_ptr + -1;" (assignment_expression "stack_ptr = stack_ptr + -1" identifier = (binary_expression "stack_ptr + -1" identifier + number_literal)) ;) })) (expression_statement "pNVar3 = (*make_number)((double)cnt);" (assignment_expression "pNVar3 = (*make_number)((double)cnt)" identifier = (call_expression "(*make_number)((double)cnt)" (parenthesized_expression "(*make_number)" ( (pointer_expression "*make_number" * identifier) )) (argument_list "((double)cnt)" ( (cast_expression "(double)cnt" ( (type_descriptor "double" primitive_type) ) identifier) )))) ;) }))) }))) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pNVar3;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return pNVar3;\n  }" { (return_statement "return pNVar3;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined8 FUN_001539cc(int param_1,long param_2)\n\n{\n  long *plVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  long in_FS_OFFSET;\n  int local_34;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  local_30 = 0;\n  local_28 = 0;\n  if (param_2 == 0) {\n    if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }\n    uVar3 = (*(code *)PTR_FUN_00396e58)(0);\n  }\n  else {\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 FUN_001539cc(int param_1,long param_2)\n\n{\n  long *plVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  long in_FS_OFFSET;\n  int local_34;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  local_30 = 0;\n  local_28 = 0;\n  if (param_2 == 0) {\n    if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }\n    uVar3 = (*(code *)PTR_FUN_00396e58)(0);\n  }\n  else {\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_001539cc(int param_1,long param_2)" identifier (parameter_list "(int param_1,long param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  long in_FS_OFFSET;\n  int local_34;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  local_30 = 0;\n  local_28 = 0;\n  if (param_2 == 0) {\n    if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }\n    uVar3 = (*(code *)PTR_FUN_00396e58)(0);\n  }\n  else {\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "undefined8 local_30;" type_identifier identifier ;) (declaration "undefined8 local_28;" type_identifier identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == 0) {\n    if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }\n    uVar3 = (*(code *)PTR_FUN_00396e58)(0);\n  }\n  else {\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }\n    uVar3 = (*(code *)PTR_FUN_00396e58)(0);\n  }" { (if_statement "if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }" { (expression_statement "DAT_00399c70 = DAT_00399c70 + -1;" (assignment_expression "DAT_00399c70 = DAT_00399c70 + -1" identifier = (binary_expression "DAT_00399c70 + -1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = (*(code *)PTR_FUN_00396e58)(0);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_00396e58)(0)" identifier = (call_expression "(*(code *)PTR_FUN_00396e58)(0)" (parenthesized_expression "(*(code *)PTR_FUN_00396e58)" ( (pointer_expression "*(code *)PTR_FUN_00396e58" * (cast_expression "(code *)PTR_FUN_00396e58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal )))) ;) }) (else_clause "else {\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }" else (compound_statement "{\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }" { (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "puVar6 = &local_28;" (assignment_expression "puVar6 = &local_28" identifier = (pointer_expression "&local_28" & identifier)) ;) (if_statement "if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar6 = (undefined8 *)0x0;\n    }" { (expression_statement "puVar6 = (undefined8 *)0x0;" (assignment_expression "puVar6 = (undefined8 *)0x0" identifier = (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);" (assignment_expression "iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6)" identifier = (call_expression "FUN_0014ecf8(&local_30,param_2,&local_34,puVar6)" identifier (argument_list "(&local_30,param_2,&local_34,puVar6)" ( (pointer_expression "&local_30" & identifier) , identifier , (pointer_expression "&local_34" & identifier) , identifier )))) ;) (if_statement "if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }" if (parenthesized_expression "(local_34 == 0)" ( (binary_expression "local_34 == 0" identifier == number_literal) )) (compound_statement "{\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }" { (if_statement "if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n        uVar3 = 0;\n      }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }" else (compound_statement "{\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }" { (expression_statement "_DAT_0039de08 = _DAT_0039de08 + 1;" (assignment_expression "_DAT_0039de08 = _DAT_0039de08 + 1" identifier = (binary_expression "_DAT_0039de08 + 1" identifier + number_literal)) ;) (expression_statement "DAT_0039dfa0 = DAT_0039dfa0 + 1;" (assignment_expression "DAT_0039dfa0 = DAT_0039dfa0 + 1" identifier = (binary_expression "DAT_0039dfa0 + 1" identifier + number_literal)) ;) (if_statement "if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n          FUN_0014736d(local_30,iVar2,local_28);\n        }" { (expression_statement "FUN_0014736d(local_30,iVar2,local_28);" (call_expression "FUN_0014736d(local_30,iVar2,local_28)" identifier (argument_list "(local_30,iVar2,local_28)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }" else (compound_statement "{\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }" { (expression_statement "puVar6 = DAT_00399c70 + -1;" (assignment_expression "puVar6 = DAT_00399c70 + -1" identifier = (binary_expression "DAT_00399c70 + -1" identifier + number_literal)) ;) (expression_statement "plVar1 = (long *)*DAT_00399c70;" (assignment_expression "plVar1 = (long *)*DAT_00399c70" identifier = (cast_expression "(long *)*DAT_00399c70" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*DAT_00399c70" * identifier))) ;) (expression_statement "lVar5 = *plVar1;" (assignment_expression "lVar5 = *plVar1" identifier = (pointer_expression "*plVar1" * identifier)) ;) (expression_statement "DAT_00399c70 = puVar6;" (assignment_expression "DAT_00399c70 = puVar6" identifier = identifier) ;) (if_statement "if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }" if (parenthesized_expression "((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1))" ( (binary_expression "(lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)" (parenthesized_expression "(lVar5 != 0)" ( (binary_expression "lVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)" ( (comma_expression "lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1" (assignment_expression "lVar4 = *(long *)(lVar5 + 0x18) + -1" identifier = (binary_expression "*(long *)(lVar5 + 0x18) + -1" (pointer_expression "*(long *)(lVar5 + 0x18)" * (cast_expression "(long *)(lVar5 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x18)" ( (binary_expression "lVar5 + 0x18" identifier + number_literal) )))) + number_literal)) , (comma_expression "*(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1" (assignment_expression "*(long *)(lVar5 + 0x18) = lVar4" (pointer_expression "*(long *)(lVar5 + 0x18)" * (cast_expression "(long *)(lVar5 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x18)" ( (binary_expression "lVar5 + 0x18" identifier + number_literal) )))) = identifier) , (binary_expression "lVar4 < 1" identifier < number_literal))) ))) )) (compound_statement "{\n            FUN_001582a6();\n          }" { (expression_statement "FUN_001582a6();" (call_expression "FUN_001582a6()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);" (assignment_expression "lVar5 = FUN_00158dc4(local_30,(long)iVar2,0)" identifier = (call_expression "FUN_00158dc4(local_30,(long)iVar2,0)" identifier (argument_list "(local_30,(long)iVar2,0)" ( identifier , (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal )))) ;) (expression_statement "*plVar1 = lVar5;" (assignment_expression "*plVar1 = lVar5" (pointer_expression "*plVar1" * identifier) = identifier) ;) (expression_statement "*(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;" (assignment_expression "*(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20" (pointer_expression "*(uint *)(lVar5 + 0x4c)" * (cast_expression "(uint *)(lVar5 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x4c)" ( (binary_expression "lVar5 + 0x4c" identifier + number_literal) )))) = (binary_expression "*(uint *)(lVar5 + 0x4c) | 0x20" (pointer_expression "*(uint *)(lVar5 + 0x4c)" * (cast_expression "(uint *)(lVar5 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x4c)" ( (binary_expression "lVar5 + 0x4c" identifier + number_literal) )))) | number_literal)) ;) }))) (expression_statement "uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8)" identifier = (call_expression "(*(code *)PTR_FUN_00396e58)(DAT_0017aec8)" (parenthesized_expression "(*(code *)PTR_FUN_00396e58)" ( (pointer_expression "*(code *)PTR_FUN_00396e58" * (cast_expression "(code *)PTR_FUN_00396e58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(DAT_0017aec8)" ( identifier )))) ;) }))) }) (else_clause "else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }" else (compound_statement "{\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }" { (if_statement "if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }" if (parenthesized_expression "((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1))" ( (binary_expression "(((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)" (parenthesized_expression "(((byte)DAT_0039c260 & 0x10) == 0)" ( (binary_expression "((byte)DAT_0039c260 & 0x10) == 0" (parenthesized_expression "((byte)DAT_0039c260 & 0x10)" ( (binary_expression "(byte)DAT_0039c260 & 0x10" (cast_expression "(byte)DAT_0039c260" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) == number_literal) )) && (parenthesized_expression "(local_34 != -1)" ( (binary_expression "local_34 != -1" identifier != number_literal) ))) )) (compound_statement "{\n        FUN_00139749();\n      }" { (expression_statement "FUN_00139749();" (call_expression "FUN_00139749()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }" { (expression_statement "DAT_00399c70 = DAT_00399c70 + -1;" (assignment_expression "DAT_00399c70 = DAT_00399c70 + -1" identifier = (binary_expression "DAT_00399c70 + -1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2)" identifier = (call_expression "(*(code *)PTR_FUN_00396e58)((double)iVar2)" (parenthesized_expression "(*(code *)PTR_FUN_00396e58)" ( (pointer_expression "*(code *)PTR_FUN_00396e58" * (cast_expression "(code *)PTR_FUN_00396e58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((double)iVar2)" ( (cast_expression "(double)iVar2" ( (type_descriptor "double" primitive_type) ) identifier) )))) ;) }))) }))) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , (pointer_expression & IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) , (comma_expression (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) , (binary_expression IDENT < LIT))) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) }))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (cast_expression ( (type_descriptor TYPE) ) IDENT) )))) ;) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined8 FUN_001539cc(int param_1,long param_2)\n\n{\n  long *plVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  long in_FS_OFFSET;\n  int local_34;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  local_30 = 0;\n  local_28 = 0;\n  if (param_2 == 0) {\n    if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }\n    uVar3 = (*(code *)PTR_FUN_00396e58)(0);\n  }\n  else {\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined8") (function_declarator "FUN_001539cc(int param_1,long param_2)" (identifier "FUN_001539cc") (parameter_list "(int param_1,long param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 *puVar6;\n  long in_FS_OFFSET;\n  int local_34;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  local_30 = 0;\n  local_28 = 0;\n  if (param_2 == 0) {\n    if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }\n    uVar3 = (*(code *)PTR_FUN_00396e58)(0);\n  }\n  else {\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "undefined8 *puVar6;" (type_identifier "undefined8") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (declaration "undefined8 local_30;" (type_identifier "undefined8") (identifier "local_30") (; ";")) (declaration "undefined8 local_28;" (type_identifier "undefined8") (identifier "local_28") (; ";")) (declaration "long local_20;" (sized_type_specifier "long" (long "long")) (identifier "local_20") (; ";")) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 == 0) {\n    if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }\n    uVar3 = (*(code *)PTR_FUN_00396e58)(0);\n  }\n  else {\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }\n    uVar3 = (*(code *)PTR_FUN_00396e58)(0);\n  }" ({ "{") (if_statement "if (param_1 != 0) {\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_00399c70 = DAT_00399c70 + -1;\n    }" ({ "{") (expression_statement "DAT_00399c70 = DAT_00399c70 + -1;" (assignment_expression "DAT_00399c70 = DAT_00399c70 + -1" (identifier "DAT_00399c70") (= "=") (binary_expression "DAT_00399c70 + -1" (identifier "DAT_00399c70") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (expression_statement "uVar3 = (*(code *)PTR_FUN_00396e58)(0);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_00396e58)(0)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_FUN_00396e58)(0)" (parenthesized_expression "(*(code *)PTR_FUN_00396e58)" (( "(") (pointer_expression "*(code *)PTR_FUN_00396e58" (* "*") (cast_expression "(code *)PTR_FUN_00396e58" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_00396e58"))) () ")")) (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }" (else "else") (compound_statement "{\n    local_34 = 0;\n    puVar6 = &local_28;\n    if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }\n    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);\n    if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }\n  }" ({ "{") (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar6 = &local_28;" (assignment_expression "puVar6 = &local_28" (identifier "puVar6") (= "=") (pointer_expression "&local_28" (& "&") (identifier "local_28"))) (; ";")) (if_statement "if (param_1 != 0) {\n      puVar6 = (undefined8 *)0x0;\n    }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      puVar6 = (undefined8 *)0x0;\n    }" ({ "{") (expression_statement "puVar6 = (undefined8 *)0x0;" (assignment_expression "puVar6 = (undefined8 *)0x0" (identifier "puVar6") (= "=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);" (assignment_expression "iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6)" (identifier "iVar2") (= "=") (call_expression "FUN_0014ecf8(&local_30,param_2,&local_34,puVar6)" (identifier "FUN_0014ecf8") (argument_list "(&local_30,param_2,&local_34,puVar6)" (( "(") (pointer_expression "&local_30" (& "&") (identifier "local_30")) (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (identifier "puVar6") () ")")))) (; ";")) (if_statement "if (local_34 == 0) {\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }\n    else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }" (if "if") (parenthesized_expression "(local_34 == 0)" (( "(") (binary_expression "local_34 == 0" (identifier "local_34") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }\n    }" ({ "{") (if_statement "if (iVar2 == -1) {\n        uVar3 = 0;\n      }\n      else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        uVar3 = 0;\n      }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }" (else "else") (compound_statement "{\n        _DAT_0039de08 = _DAT_0039de08 + 1;\n        DAT_0039dfa0 = DAT_0039dfa0 + 1;\n        if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }\n        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);\n      }" ({ "{") (expression_statement "_DAT_0039de08 = _DAT_0039de08 + 1;" (assignment_expression "_DAT_0039de08 = _DAT_0039de08 + 1" (identifier "_DAT_0039de08") (= "=") (binary_expression "_DAT_0039de08 + 1" (identifier "_DAT_0039de08") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "DAT_0039dfa0 = DAT_0039dfa0 + 1;" (assignment_expression "DAT_0039dfa0 = DAT_0039dfa0 + 1" (identifier "DAT_0039dfa0") (= "=") (binary_expression "DAT_0039dfa0 + 1" (identifier "DAT_0039dfa0") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_1 == 0) {\n          FUN_0014736d(local_30,iVar2,local_28);\n        }\n        else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_0014736d(local_30,iVar2,local_28);\n        }" ({ "{") (expression_statement "FUN_0014736d(local_30,iVar2,local_28);" (call_expression "FUN_0014736d(local_30,iVar2,local_28)" (identifier "FUN_0014736d") (argument_list "(local_30,iVar2,local_28)" (( "(") (identifier "local_30") (, ",") (identifier "iVar2") (, ",") (identifier "local_28") () ")"))) (; ";")) (} "}")) (else_clause "else {\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }" (else "else") (compound_statement "{\n          puVar6 = DAT_00399c70 + -1;\n          plVar1 = (long *)*DAT_00399c70;\n          lVar5 = *plVar1;\n          DAT_00399c70 = puVar6;\n          if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }\n          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);\n          *plVar1 = lVar5;\n          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;\n        }" ({ "{") (expression_statement "puVar6 = DAT_00399c70 + -1;" (assignment_expression "puVar6 = DAT_00399c70 + -1" (identifier "puVar6") (= "=") (binary_expression "DAT_00399c70 + -1" (identifier "DAT_00399c70") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "plVar1 = (long *)*DAT_00399c70;" (assignment_expression "plVar1 = (long *)*DAT_00399c70" (identifier "plVar1") (= "=") (cast_expression "(long *)*DAT_00399c70" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*DAT_00399c70" (* "*") (identifier "DAT_00399c70")))) (; ";")) (expression_statement "lVar5 = *plVar1;" (assignment_expression "lVar5 = *plVar1" (identifier "lVar5") (= "=") (pointer_expression "*plVar1" (* "*") (identifier "plVar1"))) (; ";")) (expression_statement "DAT_00399c70 = puVar6;" (assignment_expression "DAT_00399c70 = puVar6" (identifier "DAT_00399c70") (= "=") (identifier "puVar6")) (; ";")) (if_statement "if ((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {\n            FUN_001582a6();\n          }" (if "if") (parenthesized_expression "((lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1))" (( "(") (binary_expression "(lVar5 != 0) &&\n             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)" (parenthesized_expression "(lVar5 != 0)" (( "(") (binary_expression "lVar5 != 0" (identifier "lVar5") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)" (( "(") (comma_expression "lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1" (assignment_expression "lVar4 = *(long *)(lVar5 + 0x18) + -1" (identifier "lVar4") (= "=") (binary_expression "*(long *)(lVar5 + 0x18) + -1" (pointer_expression "*(long *)(lVar5 + 0x18)" (* "*") (cast_expression "(long *)(lVar5 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x18)" (( "(") (binary_expression "lVar5 + 0x18" (identifier "lVar5") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "-1"))) (, ",") (comma_expression "*(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1" (assignment_expression "*(long *)(lVar5 + 0x18) = lVar4" (pointer_expression "*(long *)(lVar5 + 0x18)" (* "*") (cast_expression "(long *)(lVar5 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x18)" (( "(") (binary_expression "lVar5 + 0x18" (identifier "lVar5") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "lVar4")) (, ",") (binary_expression "lVar4 < 1" (identifier "lVar4") (< "<") (number_literal "1")))) () ")"))) () ")")) (compound_statement "{\n            FUN_001582a6();\n          }" ({ "{") (expression_statement "FUN_001582a6();" (call_expression "FUN_001582a6()" (identifier "FUN_001582a6") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);" (assignment_expression "lVar5 = FUN_00158dc4(local_30,(long)iVar2,0)" (identifier "lVar5") (= "=") (call_expression "FUN_00158dc4(local_30,(long)iVar2,0)" (identifier "FUN_00158dc4") (argument_list "(local_30,(long)iVar2,0)" (( "(") (identifier "local_30") (, ",") (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*plVar1 = lVar5;" (assignment_expression "*plVar1 = lVar5" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (= "=") (identifier "lVar5")) (; ";")) (expression_statement "*(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;" (assignment_expression "*(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20" (pointer_expression "*(uint *)(lVar5 + 0x4c)" (* "*") (cast_expression "(uint *)(lVar5 + 0x4c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x4c)" (( "(") (binary_expression "lVar5 + 0x4c" (identifier "lVar5") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (binary_expression "*(uint *)(lVar5 + 0x4c) | 0x20" (pointer_expression "*(uint *)(lVar5 + 0x4c)" (* "*") (cast_expression "(uint *)(lVar5 + 0x4c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x4c)" (( "(") (binary_expression "lVar5 + 0x4c" (identifier "lVar5") (+ "+") (number_literal "0x4c")) () ")")))) (| "|") (number_literal "0x20"))) (; ";")) (} "}")))) (expression_statement "uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_FUN_00396e58)(DAT_0017aec8)" (parenthesized_expression "(*(code *)PTR_FUN_00396e58)" (( "(") (pointer_expression "*(code *)PTR_FUN_00396e58" (* "*") (cast_expression "(code *)PTR_FUN_00396e58" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_00396e58"))) () ")")) (argument_list "(DAT_0017aec8)" (( "(") (identifier "DAT_0017aec8") () ")")))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }" (else "else") (compound_statement "{\n      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }\n      if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }\n      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);\n    }" ({ "{") (if_statement "if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {\n        FUN_00139749();\n      }" (if "if") (parenthesized_expression "((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1))" (( "(") (binary_expression "(((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)" (parenthesized_expression "(((byte)DAT_0039c260 & 0x10) == 0)" (( "(") (binary_expression "((byte)DAT_0039c260 & 0x10) == 0" (parenthesized_expression "((byte)DAT_0039c260 & 0x10)" (( "(") (binary_expression "(byte)DAT_0039c260 & 0x10" (cast_expression "(byte)DAT_0039c260" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "DAT_0039c260")) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(local_34 != -1)" (( "(") (binary_expression "local_34 != -1" (identifier "local_34") (!= "!=") (number_literal "-1")) () ")"))) () ")")) (compound_statement "{\n        FUN_00139749();\n      }" ({ "{") (expression_statement "FUN_00139749();" (call_expression "FUN_00139749()" (identifier "FUN_00139749") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1 != 0) {\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        DAT_00399c70 = DAT_00399c70 + -1;\n      }" ({ "{") (expression_statement "DAT_00399c70 = DAT_00399c70 + -1;" (assignment_expression "DAT_00399c70 = DAT_00399c70 + -1" (identifier "DAT_00399c70") (= "=") (binary_expression "DAT_00399c70 + -1" (identifier "DAT_00399c70") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (expression_statement "uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);" (assignment_expression "uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_FUN_00396e58)((double)iVar2)" (parenthesized_expression "(*(code *)PTR_FUN_00396e58)" (( "(") (pointer_expression "*(code *)PTR_FUN_00396e58" (* "*") (cast_expression "(code *)PTR_FUN_00396e58" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_00396e58"))) () ")")) (argument_list "((double)iVar2)" (( "(") (cast_expression "(double)iVar2" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "iVar2")) () ")")))) (; ";")) (} "}")))) (} "}")))) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return uVar3;\n  }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

type_1 * function_1(type_2 var_3,type_3 *var_2)

{
  type_4 *pSVar1;
  type_1 **ppNVar2;
  type_2 var_7;
  type_1 *var_11;
  long var_12;
  type_5 **field_width_00;
  long var_1;
  type_2 var_6;
  char *s;
  type_5 *field_width;
  long var_16;
  
  var_16 = *(long *)(var_1 + 0x28);
  s = (char *)0x0;
  field_width = (type_5 *)0x0;
  if (var_2 == (type_3 *)0x0) {
    if (var_3 != L'\0') {
      var_4 = var_4 + -1;
    }
    var_11 = (*make_number)(0.0);
  }
  else {
    var_6 = L'\0';
    field_width_00 = &field_width;
    if (var_3 != L'\0') {
      field_width_00 = (type_5 **)0x0;
    }
    var_7 = var_5(&s,var_2,&var_6,field_width_00);
    if (var_6 == L'\0') {
      if (var_7 == L'\xffffffff') {
        var_11 = (type_1 *)0x0;
      }
      else {
        var_8 = var_8 + 1;
        var_9 = var_9 + 1;
        if (var_3 == L'\0') {
          var_10(s,var_7,field_width);
        }
        else {
          pSVar1 = var_4 + -1;
          ppNVar2 = var_4->lptr;
          var_11 = *ppNVar2;
          var_4 = pSVar1;
          if ((var_11 != (type_1 *)0x0) &&
             (var_12 = (var_11->sub).val.sref + -1, (var_11->sub).val.sref = var_12, var_12 < 1)) {
            var_13(var_11);
          }
          var_11 = var_14(s,(long)var_7,L'\0');
          *ppNVar2 = var_11;
          var_11->flags = var_11->flags | 0x20;
        }
        var_11 = (*make_number)(DAT_0017aec8);
      }
    }
    else {
      if ((((type_6)do_flags & 0x10) == 0) && (var_6 != L'\xffffffff')) {
        var_15(var_6);
      }
      if (var_3 != L'\0') {
        var_4 = var_4 + -1;
      }
      var_11 = (*make_number)((double)var_7);
    }
  }
  if (var_16 == *(long *)(var_1 + 0x28)) {
    return var_11;
  }
                    /* WARNING: Subroutine does not return */
  var_17();
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_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: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (pointer_expression argument: (identifier)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) 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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) 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: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (comma_expression left: (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) 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: Globals starting with '_' overlap smaller symbols at the same address */

undefined8 MASKED(int param_1,long param_2)

{
  long *plVar1;
  int iVar2;
  undefined8 uVar3;
  long lVar4;
  long lVar5;
  undefined8 *puVar6;
  long in_FS_OFFSET;
  int local_34;
  undefined8 local_30;
  undefined8 local_28;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  local_30 = 0;
  local_28 = 0;
  if (param_2 == 0) {
    if (param_1 != 0) {
      DAT_00399c70 = DAT_00399c70 + -1;
    }
    uVar3 = (*(code *)PTR_FUN_00396e58)(0);
  }
  else {
    local_34 = 0;
    puVar6 = &local_28;
    if (param_1 != 0) {
      puVar6 = (undefined8 *)0x0;
    }
    iVar2 = FUN_0014ecf8(&local_30,param_2,&local_34,puVar6);
    if (local_34 == 0) {
      if (iVar2 == -1) {
        uVar3 = 0;
      }
      else {
        _DAT_0039de08 = _DAT_0039de08 + 1;
        DAT_0039dfa0 = DAT_0039dfa0 + 1;
        if (param_1 == 0) {
          FUN_0014736d(local_30,iVar2,local_28);
        }
        else {
          puVar6 = DAT_00399c70 + -1;
          plVar1 = (long *)*DAT_00399c70;
          lVar5 = *plVar1;
          DAT_00399c70 = puVar6;
          if ((lVar5 != 0) &&
             (lVar4 = *(long *)(lVar5 + 0x18) + -1, *(long *)(lVar5 + 0x18) = lVar4, lVar4 < 1)) {
            FUN_001582a6();
          }
          lVar5 = FUN_00158dc4(local_30,(long)iVar2,0);
          *plVar1 = lVar5;
          *(uint *)(lVar5 + 0x4c) = *(uint *)(lVar5 + 0x4c) | 0x20;
        }
        uVar3 = (*(code *)PTR_FUN_00396e58)(DAT_0017aec8);
      }
    }
    else {
      if ((((byte)DAT_0039c260 & 0x10) == 0) && (local_34 != -1)) {
        FUN_00139749();
      }
      if (param_1 != 0) {
        DAT_00399c70 = DAT_00399c70 + -1;
      }
      uVar3 = (*(code *)PTR_FUN_00396e58)((double)iVar2);
    }
  }
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

