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

int dmesg_main(int argc,char **argv)

{
  int len;
  int level;
  
}



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

undefined4 FUN_00063e8c(undefined4 param_1,undefined4 param_2)

{
  byte bVar1;
  _IO_FILE *p_Var2;
  byte *pbVar3;
  undefined *puVar4;
  uint uVar5;
  int iVar6;
  char *__bufp;
  char *extraout_ECX;
  int iVar7;
  int in_GS_OFFSET;
  char *pcVar8;
  char *pcVar9;
  int local_28;
  int local_24;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24);
  if ((uVar5 & 4) == 0) {
    if ((uVar5 & 2) == 0) {
      local_28 = klogctl(10,(char *)0x0,0);
    }
    if (local_28 < 0x4000) {
      local_28 = 0x4000;
    }
    else if (0x1000000 < local_28) {
      local_28 = 0x1000000;
    }
    __bufp = (char *)FUN_00019b1c();
    pcVar8 = __bufp;
    pcVar9 = __bufp;
    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);
    puVar4 = PTR_stdout_000d0fb4;
    local_24 = local_28;
    local_28 = iVar6;
    if (-1 < iVar6) {
      if (iVar6 != 0) {
        if ((uVar5 & 8) == 0) {
          iVar6 = 0;
          uVar5 = 10;
          do {
            bVar1 = __bufp[iVar6];
            iVar6 = iVar6 + 1;
            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {
              do {
                if (local_28 <= iVar7) goto LAB_00063faf;
                iVar6 = iVar7 + 1;
                pcVar8 = __bufp + iVar7;
                iVar7 = iVar6;
              } while (*pcVar8 != '>');
            }
            else {
              uVar5 = (uint)bVar1;
              p_Var2 = *(_IO_FILE **)puVar4;
              pbVar3 = (byte *)p_Var2->_IO_write_ptr;
              if (pbVar3 < p_Var2->_IO_write_end) {
                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);
                *pbVar3 = bVar1;
              }
              else {
                __overflow(p_Var2,uVar5);
              }
            }
          } while (iVar6 < local_28);
          if (uVar5 == 10) goto LAB_00063faf;
        }
        else {
          FUN_0001ac14();
          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;
        }
        FUN_00019f93();
      }
LAB_00063faf:
      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
        FUN_00017e10();
      }
      return 0;
    }
  }
  else {
    pcVar8 = (char *)0x0;
    pcVar9 = extraout_ECX;
    iVar6 = klogctl(8,(char *)0x0,local_24);
    if (iVar6 == 0) goto LAB_00063faf;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00018e79("klogctl",pcVar8,local_24,pcVar9);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x2c
CALL 0x00017640
ADD EBX,0x6cb88
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
LEA EAX,[ESP + 0x18]
PUSH EAX
LEA EAX,[ESP + 0x18]
PUSH EAX
LEA EAX,[EBX + 0xffff8ebe]
PUSH EAX
PUSH dword ptr [ESP + 0x50]
CALL 0x000a8bdf
ADD ESP,0x10
TEST AL,0x4
JZ 0x00063ef3
PUSH ECX
PUSH dword ptr [ESP + 0x1c]
PUSH 0x0
PUSH 0x8
CALL 0x00017090
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00063faf
SUB ESP,0xc
LEA EAX,[EBX + 0xffff8ec7]
PUSH EAX
CALL 0x00018e79
MOV ESI,EAX
TEST AL,0x2
JZ 0x00064010
MOV EAX,dword ptr [ESP + 0x14]
CMP EAX,0x3fff
JG 0x00063f76
MOV dword ptr [ESP + 0x14],0x4000
MOV EAX,0x4000
CALL 0x00019b1c
MOV EDI,EAX
PUSH EAX
PUSH dword ptr [ESP + 0x18]
PUSH EDI
MOV EAX,ESI
AND EAX,0x1
ADD EAX,0x3
PUSH EAX
CALL 0x00017090
MOV dword ptr [ESP + 0x24],EAX
ADD ESP,0x10
TEST EAX,EAX
JS 0x00063ee4
JZ 0x00063faf
AND ESI,0x8
JNZ 0x00063f8c
XOR ESI,ESI
MOV EBP,0xa
MOV EAX,dword ptr [EBX + 0x594]
MOV dword ptr [ESP + 0xc],EAX
MOV AL,byte ptr [EDI + ESI*0x1]
MOV byte ptr [ESP + 0xb],AL
INC ESI
CMP EBP,0xa
JNZ 0x00063fcb
CMP AL,0x3c
JNZ 0x00063fcb
MOV EAX,dword ptr [ESP + 0x14]
CMP EAX,ESI
JLE 0x00063faf
INC ESI
CMP byte ptr [EDI + ESI*0x1 + -0x1],0x3e
JZ 0x00063fee
JMP 0x00063f68
CMP EAX,0x1000000
JLE 0x00063f15
MOV dword ptr [ESP + 0x14],0x1000000
MOV EAX,0x1000000
JMP 0x00063f15
MOV ECX,EAX
MOV EDX,EDI
MOV EAX,0x1
CALL 0x0001ac14
MOV EAX,dword ptr [ESP + 0x14]
CMP byte ptr [EDI + EAX*0x1 + -0x1],0xa
JZ 0x00063faf
MOV EAX,0xa
CALL 0x00019f93
XOR EAX,EAX
MOV ECX,dword ptr [ESP + 0x1c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x00063fc6
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00017e10
MOVZX EBP,byte ptr [ESP + 0xb]
MOV EAX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EAX + 0x14]
CMP EDX,dword ptr [EAX + 0x18]
JNC 0x00063ffd
LEA ECX,[EDX + 0x1]
MOV dword ptr [EAX + 0x14],ECX
MOV AL,byte ptr [ESP + 0xb]
MOV byte ptr [EDX],AL
MOV EAX,dword ptr [ESP + 0x14]
CMP ESI,EAX
JL 0x00063f53
CMP EBP,0xa
JZ 0x00063faf
JMP 0x00063fa5
SUB ESP,0x8
PUSH EBP
PUSH EAX
CALL 0x00017120
MOV EAX,dword ptr [ESP + 0x24]
ADD ESP,0x10
JMP 0x00063fee
PUSH EDX
PUSH 0x0
PUSH 0x0
PUSH 0xa
CALL 0x00017090
MOV dword ptr [ESP + 0x24],EAX
ADD ESP,0x10
JMP 0x00063f01
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00063e8c(undefined4 param_1,undefined4 param_2)\n\n{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  char *__bufp;\n  char *extraout_ECX;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *pcVar8;\n  char *pcVar9;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24);\n  if ((uVar5 & 4) == 0) {\n    if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }\n    if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }\n    __bufp = (char *)FUN_00019b1c();\n    pcVar8 = __bufp;\n    pcVar9 = __bufp;\n    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);\n    puVar4 = PTR_stdout_000d0fb4;\n    local_24 = local_28;\n    local_28 = iVar6;\n    if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00017e10();\n      }\n      return 0;\n    }\n  }\n  else {\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00018e79("klogctl",pcVar8,local_24,pcVar9);\n}\n\n" comment (function_definition "undefined4 FUN_00063e8c(undefined4 param_1,undefined4 param_2)\n\n{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  char *__bufp;\n  char *extraout_ECX;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *pcVar8;\n  char *pcVar9;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24);\n  if ((uVar5 & 4) == 0) {\n    if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }\n    if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }\n    __bufp = (char *)FUN_00019b1c();\n    pcVar8 = __bufp;\n    pcVar9 = __bufp;\n    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);\n    puVar4 = PTR_stdout_000d0fb4;\n    local_24 = local_28;\n    local_28 = iVar6;\n    if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00017e10();\n      }\n      return 0;\n    }\n  }\n  else {\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00018e79("klogctl",pcVar8,local_24,pcVar9);\n}" type_identifier (function_declarator "FUN_00063e8c(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  char *__bufp;\n  char *extraout_ECX;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *pcVar8;\n  char *pcVar9;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24);\n  if ((uVar5 & 4) == 0) {\n    if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }\n    if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }\n    __bufp = (char *)FUN_00019b1c();\n    pcVar8 = __bufp;\n    pcVar9 = __bufp;\n    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);\n    puVar4 = PTR_stdout_000d0fb4;\n    local_24 = local_28;\n    local_28 = iVar6;\n    if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00017e10();\n      }\n      return 0;\n    }\n  }\n  else {\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00018e79("klogctl",pcVar8,local_24,pcVar9);\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "_IO_FILE *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *__bufp;" primitive_type (pointer_declarator "*__bufp" * identifier) ;) (declaration "char *extraout_ECX;" primitive_type (pointer_declarator "*extraout_ECX" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24);" (assignment_expression "uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24)" identifier = (call_expression "FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24)" identifier (argument_list "(param_2,"cs:+n:+r",&local_28,&local_24)" ( identifier , (string_literal ""cs:+n:+r"" " string_content ") , (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if ((uVar5 & 4) == 0) {\n    if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }\n    if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }\n    __bufp = (char *)FUN_00019b1c();\n    pcVar8 = __bufp;\n    pcVar9 = __bufp;\n    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);\n    puVar4 = PTR_stdout_000d0fb4;\n    local_24 = local_28;\n    local_28 = iVar6;\n    if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00017e10();\n      }\n      return 0;\n    }\n  }\n  else {\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }" if (parenthesized_expression "((uVar5 & 4) == 0)" ( (binary_expression "(uVar5 & 4) == 0" (parenthesized_expression "(uVar5 & 4)" ( (binary_expression "uVar5 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }\n    if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }\n    __bufp = (char *)FUN_00019b1c();\n    pcVar8 = __bufp;\n    pcVar9 = __bufp;\n    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);\n    puVar4 = PTR_stdout_000d0fb4;\n    local_24 = local_28;\n    local_28 = iVar6;\n    if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00017e10();\n      }\n      return 0;\n    }\n  }" { (if_statement "if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }" if (parenthesized_expression "((uVar5 & 2) == 0)" ( (binary_expression "(uVar5 & 2) == 0" (parenthesized_expression "(uVar5 & 2)" ( (binary_expression "uVar5 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      local_28 = klogctl(10,(char *)0x0,0);\n    }" { (expression_statement "local_28 = klogctl(10,(char *)0x0,0);" (assignment_expression "local_28 = klogctl(10,(char *)0x0,0)" identifier = (call_expression "klogctl(10,(char *)0x0,0)" identifier (argument_list "(10,(char *)0x0,0)" ( number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal )))) ;) })) (if_statement "if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }" if (parenthesized_expression "(local_28 < 0x4000)" ( (binary_expression "local_28 < 0x4000" identifier < number_literal) )) (compound_statement "{\n      local_28 = 0x4000;\n    }" { (expression_statement "local_28 = 0x4000;" (assignment_expression "local_28 = 0x4000" identifier = number_literal) ;) }) (else_clause "else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }" else (if_statement "if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }" if (parenthesized_expression "(0x1000000 < local_28)" ( (binary_expression "0x1000000 < local_28" number_literal < identifier) )) (compound_statement "{\n      local_28 = 0x1000000;\n    }" { (expression_statement "local_28 = 0x1000000;" (assignment_expression "local_28 = 0x1000000" identifier = number_literal) ;) })))) (expression_statement "__bufp = (char *)FUN_00019b1c();" (assignment_expression "__bufp = (char *)FUN_00019b1c()" identifier = (cast_expression "(char *)FUN_00019b1c()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019b1c()" identifier (argument_list "()" ( ))))) ;) (expression_statement "pcVar8 = __bufp;" (assignment_expression "pcVar8 = __bufp" identifier = identifier) ;) (expression_statement "pcVar9 = __bufp;" (assignment_expression "pcVar9 = __bufp" identifier = identifier) ;) (expression_statement "iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);" (assignment_expression "iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28)" identifier = (call_expression "klogctl((uVar5 & 1) + 3,__bufp,local_28)" identifier (argument_list "((uVar5 & 1) + 3,__bufp,local_28)" ( (binary_expression "(uVar5 & 1) + 3" (parenthesized_expression "(uVar5 & 1)" ( (binary_expression "uVar5 & 1" identifier & number_literal) )) + number_literal) , identifier , identifier )))) ;) (expression_statement "puVar4 = PTR_stdout_000d0fb4;" (assignment_expression "puVar4 = PTR_stdout_000d0fb4" identifier = identifier) ;) (expression_statement "local_24 = local_28;" (assignment_expression "local_24 = local_28" identifier = identifier) ;) (expression_statement "local_28 = iVar6;" (assignment_expression "local_28 = iVar6" identifier = identifier) ;) (if_statement "if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00017e10();\n      }\n      return 0;\n    }" if (parenthesized_expression "(-1 < iVar6)" ( (binary_expression "-1 < iVar6" number_literal < identifier) )) (compound_statement "{\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00017e10();\n      }\n      return 0;\n    }" { (if_statement "if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }" { (if_statement "if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }" if (parenthesized_expression "((uVar5 & 8) == 0)" ( (binary_expression "(uVar5 & 8) == 0" (parenthesized_expression "(uVar5 & 8)" ( (binary_expression "uVar5 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = 10;" (assignment_expression "uVar5 = 10" identifier = number_literal) ;) (do_statement "do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);" do (compound_statement "{\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          }" { (expression_statement "bVar1 = __bufp[iVar6];" (assignment_expression "bVar1 = __bufp[iVar6]" identifier = (subscript_expression "__bufp[iVar6]" identifier [ identifier ])) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }" if (parenthesized_expression "((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c))" ( (binary_expression "(uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)" (parenthesized_expression "(uVar5 == 10)" ( (binary_expression "uVar5 == 10" identifier == number_literal) )) && (parenthesized_expression "(iVar7 = iVar6, bVar1 == 0x3c)" ( (comma_expression "iVar7 = iVar6, bVar1 == 0x3c" (assignment_expression "iVar7 = iVar6" identifier = identifier) , (binary_expression "bVar1 == 0x3c" identifier == number_literal)) ))) )) (compound_statement "{\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }" { (do_statement "do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');" do (compound_statement "{\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              }" { (if_statement "if (local_28 <= iVar7) goto LAB_00063faf;" if (parenthesized_expression "(local_28 <= iVar7)" ( (binary_expression "local_28 <= iVar7" identifier <= identifier) )) (goto_statement "goto LAB_00063faf;" goto statement_identifier ;)) (expression_statement "iVar6 = iVar7 + 1;" (assignment_expression "iVar6 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "pcVar8 = __bufp + iVar7;" (assignment_expression "pcVar8 = __bufp + iVar7" identifier = (binary_expression "__bufp + iVar7" identifier + identifier)) ;) (expression_statement "iVar7 = iVar6;" (assignment_expression "iVar7 = iVar6" identifier = identifier) ;) }) while (parenthesized_expression "(*pcVar8 != '>')" ( (binary_expression "*pcVar8 != '>'" (pointer_expression "*pcVar8" * identifier) != (char_literal "'>'" ' character ')) )) ;) }) (else_clause "else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }" else (compound_statement "{\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }" { (expression_statement "uVar5 = (uint)bVar1;" (assignment_expression "uVar5 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" identifier = (pointer_expression "*(_IO_FILE **)puVar4" * (cast_expression "(_IO_FILE **)puVar4" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pbVar3 = (byte *)p_Var2->_IO_write_ptr;" (assignment_expression "pbVar3 = (byte *)p_Var2->_IO_write_ptr" identifier = (cast_expression "(byte *)p_Var2->_IO_write_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier))) ;) (if_statement "if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }" if (parenthesized_expression "(pbVar3 < p_Var2->_IO_write_end)" ( (binary_expression "pbVar3 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }" { (expression_statement "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);" (assignment_expression "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1)" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 1)" ( (binary_expression "pbVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar3 = bVar1;" (assignment_expression "*pbVar3 = bVar1" (pointer_expression "*pbVar3" * identifier) = identifier) ;) }) (else_clause "else {\n                __overflow(p_Var2,uVar5);\n              }" else (compound_statement "{\n                __overflow(p_Var2,uVar5);\n              }" { (expression_statement "__overflow(p_Var2,uVar5);" (call_expression "__overflow(p_Var2,uVar5)" identifier (argument_list "(p_Var2,uVar5)" ( identifier , identifier ))) ;) }))) }))) }) while (parenthesized_expression "(iVar6 < local_28)" ( (binary_expression "iVar6 < local_28" identifier < identifier) )) ;) (if_statement "if (uVar5 == 10) goto LAB_00063faf;" if (parenthesized_expression "(uVar5 == 10)" ( (binary_expression "uVar5 == 10" identifier == number_literal) )) (goto_statement "goto LAB_00063faf;" goto statement_identifier ;)) }) (else_clause "else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }" else (compound_statement "{\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }" { (expression_statement "FUN_0001ac14();" (call_expression "FUN_0001ac14()" identifier (argument_list "()" ( ))) ;) (if_statement "if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;" if (parenthesized_expression "(__bufp[local_28 + -1] == '\n')" ( (binary_expression "__bufp[local_28 + -1] == '\n'" (subscript_expression "__bufp[local_28 + -1]" identifier [ (binary_expression "local_28 + -1" identifier + number_literal) ]) == (char_literal "'\n'" ' escape_sequence ')) )) (goto_statement "goto LAB_00063faf;" goto statement_identifier ;)) }))) (expression_statement "FUN_00019f93();" (call_expression "FUN_00019f93()" identifier (argument_list "()" ( ))) ;) })) (labeled_statement "LAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00017e10();\n      }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00017e10();\n      }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_00017e10();\n      }" { comment (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }" else (compound_statement "{\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }" { (expression_statement "pcVar8 = (char *)0x0;" (assignment_expression "pcVar8 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar9 = extraout_ECX;" (assignment_expression "pcVar9 = extraout_ECX" identifier = identifier) ;) (expression_statement "iVar6 = klogctl(8,(char *)0x0,local_24);" (assignment_expression "iVar6 = klogctl(8,(char *)0x0,local_24)" identifier = (call_expression "klogctl(8,(char *)0x0,local_24)" identifier (argument_list "(8,(char *)0x0,local_24)" ( number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier )))) ;) (if_statement "if (iVar6 == 0) goto LAB_00063faf;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00063faf;" goto statement_identifier ;)) }))) comment (expression_statement "FUN_00018e79("klogctl",pcVar8,local_24,pcVar9);" (call_expression "FUN_00018e79("klogctl",pcVar8,local_24,pcVar9)" identifier (argument_list "("klogctl",pcVar8,local_24,pcVar9)" ( (string_literal ""klogctl"" " string_content ") , identifier , identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint dmesg_main(int argc,char **argv)\n\n{\n  int len;\n  int level;\n  \n}\n\n" comment comment (function_definition "int dmesg_main(int argc,char **argv)\n\n{\n  int len;\n  int level;\n  \n}" primitive_type (function_declarator "dmesg_main(int argc,char **argv)" identifier (parameter_list "(int argc,char **argv)" ( (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  int len;\n  int level;\n  \n}" { (declaration "int len;" primitive_type identifier ;) (declaration "int level;" primitive_type identifier ;) })))
(translation_unit "undefined4 FUN_00063e8c(undefined4 param_1,undefined4 param_2)\n\n{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  char *__bufp;\n  char *extraout_ECX;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *pcVar8;\n  char *pcVar9;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24);\n  if ((uVar5 & 4) == 0) {\n    if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }\n    if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }\n    __bufp = (char *)FUN_00019b1c();\n    pcVar8 = __bufp;\n    pcVar9 = __bufp;\n    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);\n    puVar4 = PTR_stdout_000d0fb4;\n    local_24 = local_28;\n    local_28 = iVar6;\n    if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }\n      return 0;\n    }\n  }\n  else {\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }\n                    \n  FUN_00018e79("klogctl",pcVar8,local_24,pcVar9);\n}\n\n" (function_definition "undefined4 FUN_00063e8c(undefined4 param_1,undefined4 param_2)\n\n{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  char *__bufp;\n  char *extraout_ECX;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *pcVar8;\n  char *pcVar9;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24);\n  if ((uVar5 & 4) == 0) {\n    if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }\n    if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }\n    __bufp = (char *)FUN_00019b1c();\n    pcVar8 = __bufp;\n    pcVar9 = __bufp;\n    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);\n    puVar4 = PTR_stdout_000d0fb4;\n    local_24 = local_28;\n    local_28 = iVar6;\n    if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }\n      return 0;\n    }\n  }\n  else {\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }\n                    \n  FUN_00018e79("klogctl",pcVar8,local_24,pcVar9);\n}" type_identifier (function_declarator "FUN_00063e8c(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  char *__bufp;\n  char *extraout_ECX;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *pcVar8;\n  char *pcVar9;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24);\n  if ((uVar5 & 4) == 0) {\n    if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }\n    if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }\n    __bufp = (char *)FUN_00019b1c();\n    pcVar8 = __bufp;\n    pcVar9 = __bufp;\n    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);\n    puVar4 = PTR_stdout_000d0fb4;\n    local_24 = local_28;\n    local_28 = iVar6;\n    if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }\n      return 0;\n    }\n  }\n  else {\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }\n                    \n  FUN_00018e79("klogctl",pcVar8,local_24,pcVar9);\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "_IO_FILE *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *__bufp;" primitive_type (pointer_declarator "*__bufp" * identifier) ;) (declaration "char *extraout_ECX;" primitive_type (pointer_declarator "*extraout_ECX" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24);" (assignment_expression "uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24)" identifier = (call_expression "FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24)" identifier (argument_list "(param_2,"cs:+n:+r",&local_28,&local_24)" ( identifier , (string_literal ""cs:+n:+r"" " string_content ") , (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if ((uVar5 & 4) == 0) {\n    if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }\n    if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }\n    __bufp = (char *)FUN_00019b1c();\n    pcVar8 = __bufp;\n    pcVar9 = __bufp;\n    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);\n    puVar4 = PTR_stdout_000d0fb4;\n    local_24 = local_28;\n    local_28 = iVar6;\n    if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }\n      return 0;\n    }\n  }\n  else {\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }" if (parenthesized_expression "((uVar5 & 4) == 0)" ( (binary_expression "(uVar5 & 4) == 0" (parenthesized_expression "(uVar5 & 4)" ( (binary_expression "uVar5 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }\n    if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }\n    __bufp = (char *)FUN_00019b1c();\n    pcVar8 = __bufp;\n    pcVar9 = __bufp;\n    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);\n    puVar4 = PTR_stdout_000d0fb4;\n    local_24 = local_28;\n    local_28 = iVar6;\n    if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }\n      return 0;\n    }\n  }" { (if_statement "if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }" if (parenthesized_expression "((uVar5 & 2) == 0)" ( (binary_expression "(uVar5 & 2) == 0" (parenthesized_expression "(uVar5 & 2)" ( (binary_expression "uVar5 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      local_28 = klogctl(10,(char *)0x0,0);\n    }" { (expression_statement "local_28 = klogctl(10,(char *)0x0,0);" (assignment_expression "local_28 = klogctl(10,(char *)0x0,0)" identifier = (call_expression "klogctl(10,(char *)0x0,0)" identifier (argument_list "(10,(char *)0x0,0)" ( number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal )))) ;) })) (if_statement "if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }" if (parenthesized_expression "(local_28 < 0x4000)" ( (binary_expression "local_28 < 0x4000" identifier < number_literal) )) (compound_statement "{\n      local_28 = 0x4000;\n    }" { (expression_statement "local_28 = 0x4000;" (assignment_expression "local_28 = 0x4000" identifier = number_literal) ;) }) (else_clause "else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }" else (if_statement "if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }" if (parenthesized_expression "(0x1000000 < local_28)" ( (binary_expression "0x1000000 < local_28" number_literal < identifier) )) (compound_statement "{\n      local_28 = 0x1000000;\n    }" { (expression_statement "local_28 = 0x1000000;" (assignment_expression "local_28 = 0x1000000" identifier = number_literal) ;) })))) (expression_statement "__bufp = (char *)FUN_00019b1c();" (assignment_expression "__bufp = (char *)FUN_00019b1c()" identifier = (cast_expression "(char *)FUN_00019b1c()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019b1c()" identifier (argument_list "()" ( ))))) ;) (expression_statement "pcVar8 = __bufp;" (assignment_expression "pcVar8 = __bufp" identifier = identifier) ;) (expression_statement "pcVar9 = __bufp;" (assignment_expression "pcVar9 = __bufp" identifier = identifier) ;) (expression_statement "iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);" (assignment_expression "iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28)" identifier = (call_expression "klogctl((uVar5 & 1) + 3,__bufp,local_28)" identifier (argument_list "((uVar5 & 1) + 3,__bufp,local_28)" ( (binary_expression "(uVar5 & 1) + 3" (parenthesized_expression "(uVar5 & 1)" ( (binary_expression "uVar5 & 1" identifier & number_literal) )) + number_literal) , identifier , identifier )))) ;) (expression_statement "puVar4 = PTR_stdout_000d0fb4;" (assignment_expression "puVar4 = PTR_stdout_000d0fb4" identifier = identifier) ;) (expression_statement "local_24 = local_28;" (assignment_expression "local_24 = local_28" identifier = identifier) ;) (expression_statement "local_28 = iVar6;" (assignment_expression "local_28 = iVar6" identifier = identifier) ;) (if_statement "if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }\n      return 0;\n    }" if (parenthesized_expression "(-1 < iVar6)" ( (binary_expression "-1 < iVar6" number_literal < identifier) )) (compound_statement "{\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }\n      return 0;\n    }" { (if_statement "if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }" { (if_statement "if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }" if (parenthesized_expression "((uVar5 & 8) == 0)" ( (binary_expression "(uVar5 & 8) == 0" (parenthesized_expression "(uVar5 & 8)" ( (binary_expression "uVar5 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = 10;" (assignment_expression "uVar5 = 10" identifier = number_literal) ;) (do_statement "do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);" do (compound_statement "{\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          }" { (expression_statement "bVar1 = __bufp[iVar6];" (assignment_expression "bVar1 = __bufp[iVar6]" identifier = (subscript_expression "__bufp[iVar6]" identifier [ identifier ])) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }" if (parenthesized_expression "((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c))" ( (binary_expression "(uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)" (parenthesized_expression "(uVar5 == 10)" ( (binary_expression "uVar5 == 10" identifier == number_literal) )) && (parenthesized_expression "(iVar7 = iVar6, bVar1 == 0x3c)" ( (comma_expression "iVar7 = iVar6, bVar1 == 0x3c" (assignment_expression "iVar7 = iVar6" identifier = identifier) , (binary_expression "bVar1 == 0x3c" identifier == number_literal)) ))) )) (compound_statement "{\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }" { (do_statement "do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');" do (compound_statement "{\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              }" { (if_statement "if (local_28 <= iVar7) goto LAB_00063faf;" if (parenthesized_expression "(local_28 <= iVar7)" ( (binary_expression "local_28 <= iVar7" identifier <= identifier) )) (goto_statement "goto LAB_00063faf;" goto statement_identifier ;)) (expression_statement "iVar6 = iVar7 + 1;" (assignment_expression "iVar6 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "pcVar8 = __bufp + iVar7;" (assignment_expression "pcVar8 = __bufp + iVar7" identifier = (binary_expression "__bufp + iVar7" identifier + identifier)) ;) (expression_statement "iVar7 = iVar6;" (assignment_expression "iVar7 = iVar6" identifier = identifier) ;) }) while (parenthesized_expression "(*pcVar8 != '>')" ( (binary_expression "*pcVar8 != '>'" (pointer_expression "*pcVar8" * identifier) != (char_literal "'>'" ' character ')) )) ;) }) (else_clause "else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }" else (compound_statement "{\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }" { (expression_statement "uVar5 = (uint)bVar1;" (assignment_expression "uVar5 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" identifier = (pointer_expression "*(_IO_FILE **)puVar4" * (cast_expression "(_IO_FILE **)puVar4" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pbVar3 = (byte *)p_Var2->_IO_write_ptr;" (assignment_expression "pbVar3 = (byte *)p_Var2->_IO_write_ptr" identifier = (cast_expression "(byte *)p_Var2->_IO_write_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier))) ;) (if_statement "if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }" if (parenthesized_expression "(pbVar3 < p_Var2->_IO_write_end)" ( (binary_expression "pbVar3 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }" { (expression_statement "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);" (assignment_expression "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1)" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 1)" ( (binary_expression "pbVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar3 = bVar1;" (assignment_expression "*pbVar3 = bVar1" (pointer_expression "*pbVar3" * identifier) = identifier) ;) }) (else_clause "else {\n                __overflow(p_Var2,uVar5);\n              }" else (compound_statement "{\n                __overflow(p_Var2,uVar5);\n              }" { (expression_statement "__overflow(p_Var2,uVar5);" (call_expression "__overflow(p_Var2,uVar5)" identifier (argument_list "(p_Var2,uVar5)" ( identifier , identifier ))) ;) }))) }))) }) while (parenthesized_expression "(iVar6 < local_28)" ( (binary_expression "iVar6 < local_28" identifier < identifier) )) ;) (if_statement "if (uVar5 == 10) goto LAB_00063faf;" if (parenthesized_expression "(uVar5 == 10)" ( (binary_expression "uVar5 == 10" identifier == number_literal) )) (goto_statement "goto LAB_00063faf;" goto statement_identifier ;)) }) (else_clause "else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }" else (compound_statement "{\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }" { (expression_statement "FUN_0001ac14();" (call_expression "FUN_0001ac14()" identifier (argument_list "()" ( ))) ;) (if_statement "if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;" if (parenthesized_expression "(__bufp[local_28 + -1] == '\n')" ( (binary_expression "__bufp[local_28 + -1] == '\n'" (subscript_expression "__bufp[local_28 + -1]" identifier [ (binary_expression "local_28 + -1" identifier + number_literal) ]) == (char_literal "'\n'" ' escape_sequence ')) )) (goto_statement "goto LAB_00063faf;" goto statement_identifier ;)) }))) (expression_statement "FUN_00019f93();" (call_expression "FUN_00019f93()" identifier (argument_list "()" ( ))) ;) })) (labeled_statement "LAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n        FUN_00017e10();\n      }" { (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }" else (compound_statement "{\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }" { (expression_statement "pcVar8 = (char *)0x0;" (assignment_expression "pcVar8 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar9 = extraout_ECX;" (assignment_expression "pcVar9 = extraout_ECX" identifier = identifier) ;) (expression_statement "iVar6 = klogctl(8,(char *)0x0,local_24);" (assignment_expression "iVar6 = klogctl(8,(char *)0x0,local_24)" identifier = (call_expression "klogctl(8,(char *)0x0,local_24)" identifier (argument_list "(8,(char *)0x0,local_24)" ( number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier )))) ;) (if_statement "if (iVar6 == 0) goto LAB_00063faf;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00063faf;" goto statement_identifier ;)) }))) (expression_statement "FUN_00018e79("klogctl",pcVar8,local_24,pcVar9);" (call_expression "FUN_00018e79("klogctl",pcVar8,local_24,pcVar9)" identifier (argument_list "("klogctl",pcVar8,local_24,pcVar9)" ( (string_literal ""klogctl"" " string_content ") , identifier , identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) , LIT )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) + LIT) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT -> field_identifier))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (field_expression IDENT -> field_identifier)) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }))) }))) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT , IDENT ))) ;) })))
(function_definition "undefined4 FUN_00063e8c(undefined4 param_1,undefined4 param_2)\n\n{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  char *__bufp;\n  char *extraout_ECX;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *pcVar8;\n  char *pcVar9;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24);\n  if ((uVar5 & 4) == 0) {\n    if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }\n    if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }\n    __bufp = (char *)FUN_00019b1c();\n    pcVar8 = __bufp;\n    pcVar9 = __bufp;\n    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);\n    puVar4 = PTR_stdout_000d0fb4;\n    local_24 = local_28;\n    local_28 = iVar6;\n    if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }\n      return 0;\n    }\n  }\n  else {\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }\n                    \n  FUN_00018e79("klogctl",pcVar8,local_24,pcVar9);\n}" (type_identifier "undefined4") (function_declarator "FUN_00063e8c(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00063e8c") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  byte bVar1;\n  _IO_FILE *p_Var2;\n  byte *pbVar3;\n  undefined *puVar4;\n  uint uVar5;\n  int iVar6;\n  char *__bufp;\n  char *extraout_ECX;\n  int iVar7;\n  int in_GS_OFFSET;\n  char *pcVar8;\n  char *pcVar9;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24);\n  if ((uVar5 & 4) == 0) {\n    if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }\n    if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }\n    __bufp = (char *)FUN_00019b1c();\n    pcVar8 = __bufp;\n    pcVar9 = __bufp;\n    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);\n    puVar4 = PTR_stdout_000d0fb4;\n    local_24 = local_28;\n    local_28 = iVar6;\n    if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }\n      return 0;\n    }\n  }\n  else {\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }\n                    \n  FUN_00018e79("klogctl",pcVar8,local_24,pcVar9);\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "_IO_FILE *p_Var2;" (type_identifier "_IO_FILE") (pointer_declarator "*p_Var2" (* "*") (identifier "p_Var2")) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "char *__bufp;" (primitive_type "char") (pointer_declarator "*__bufp" (* "*") (identifier "__bufp")) (; ";")) (declaration "char *extraout_ECX;" (primitive_type "char") (pointer_declarator "*extraout_ECX" (* "*") (identifier "extraout_ECX")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "char *pcVar9;" (primitive_type "char") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24);" (assignment_expression "uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24)" (identifier "uVar5") (= "=") (call_expression "FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24)" (identifier "FUN_000a8bdf") (argument_list "(param_2,"cs:+n:+r",&local_28,&local_24)" (( "(") (identifier "param_2") (, ",") (string_literal ""cs:+n:+r"" (" """) (string_content "cs:+n:+r") (" """)) (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if ((uVar5 & 4) == 0) {\n    if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }\n    if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }\n    __bufp = (char *)FUN_00019b1c();\n    pcVar8 = __bufp;\n    pcVar9 = __bufp;\n    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);\n    puVar4 = PTR_stdout_000d0fb4;\n    local_24 = local_28;\n    local_28 = iVar6;\n    if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }\n      return 0;\n    }\n  }\n  else {\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }" (if "if") (parenthesized_expression "((uVar5 & 4) == 0)" (( "(") (binary_expression "(uVar5 & 4) == 0" (parenthesized_expression "(uVar5 & 4)" (( "(") (binary_expression "uVar5 & 4" (identifier "uVar5") (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }\n    if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }\n    __bufp = (char *)FUN_00019b1c();\n    pcVar8 = __bufp;\n    pcVar9 = __bufp;\n    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);\n    puVar4 = PTR_stdout_000d0fb4;\n    local_24 = local_28;\n    local_28 = iVar6;\n    if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }\n      return 0;\n    }\n  }" ({ "{") (if_statement "if ((uVar5 & 2) == 0) {\n      local_28 = klogctl(10,(char *)0x0,0);\n    }" (if "if") (parenthesized_expression "((uVar5 & 2) == 0)" (( "(") (binary_expression "(uVar5 & 2) == 0" (parenthesized_expression "(uVar5 & 2)" (( "(") (binary_expression "uVar5 & 2" (identifier "uVar5") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_28 = klogctl(10,(char *)0x0,0);\n    }" ({ "{") (expression_statement "local_28 = klogctl(10,(char *)0x0,0);" (assignment_expression "local_28 = klogctl(10,(char *)0x0,0)" (identifier "local_28") (= "=") (call_expression "klogctl(10,(char *)0x0,0)" (identifier "klogctl") (argument_list "(10,(char *)0x0,0)" (( "(") (number_literal "10") (, ",") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (, ",") (number_literal "0") () ")")))) (; ";")) (} "}"))) (if_statement "if (local_28 < 0x4000) {\n      local_28 = 0x4000;\n    }\n    else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }" (if "if") (parenthesized_expression "(local_28 < 0x4000)" (( "(") (binary_expression "local_28 < 0x4000" (identifier "local_28") (< "<") (number_literal "0x4000")) () ")")) (compound_statement "{\n      local_28 = 0x4000;\n    }" ({ "{") (expression_statement "local_28 = 0x4000;" (assignment_expression "local_28 = 0x4000" (identifier "local_28") (= "=") (number_literal "0x4000")) (; ";")) (} "}")) (else_clause "else if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }" (else "else") (if_statement "if (0x1000000 < local_28) {\n      local_28 = 0x1000000;\n    }" (if "if") (parenthesized_expression "(0x1000000 < local_28)" (( "(") (binary_expression "0x1000000 < local_28" (number_literal "0x1000000") (< "<") (identifier "local_28")) () ")")) (compound_statement "{\n      local_28 = 0x1000000;\n    }" ({ "{") (expression_statement "local_28 = 0x1000000;" (assignment_expression "local_28 = 0x1000000" (identifier "local_28") (= "=") (number_literal "0x1000000")) (; ";")) (} "}"))))) (expression_statement "__bufp = (char *)FUN_00019b1c();" (assignment_expression "__bufp = (char *)FUN_00019b1c()" (identifier "__bufp") (= "=") (cast_expression "(char *)FUN_00019b1c()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00019b1c()" (identifier "FUN_00019b1c") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "pcVar8 = __bufp;" (assignment_expression "pcVar8 = __bufp" (identifier "pcVar8") (= "=") (identifier "__bufp")) (; ";")) (expression_statement "pcVar9 = __bufp;" (assignment_expression "pcVar9 = __bufp" (identifier "pcVar9") (= "=") (identifier "__bufp")) (; ";")) (expression_statement "iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);" (assignment_expression "iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28)" (identifier "iVar6") (= "=") (call_expression "klogctl((uVar5 & 1) + 3,__bufp,local_28)" (identifier "klogctl") (argument_list "((uVar5 & 1) + 3,__bufp,local_28)" (( "(") (binary_expression "(uVar5 & 1) + 3" (parenthesized_expression "(uVar5 & 1)" (( "(") (binary_expression "uVar5 & 1" (identifier "uVar5") (& "&") (number_literal "1")) () ")")) (+ "+") (number_literal "3")) (, ",") (identifier "__bufp") (, ",") (identifier "local_28") () ")")))) (; ";")) (expression_statement "puVar4 = PTR_stdout_000d0fb4;" (assignment_expression "puVar4 = PTR_stdout_000d0fb4" (identifier "puVar4") (= "=") (identifier "PTR_stdout_000d0fb4")) (; ";")) (expression_statement "local_24 = local_28;" (assignment_expression "local_24 = local_28" (identifier "local_24") (= "=") (identifier "local_28")) (; ";")) (expression_statement "local_28 = iVar6;" (assignment_expression "local_28 = iVar6" (identifier "local_28") (= "=") (identifier "iVar6")) (; ";")) (if_statement "if (-1 < iVar6) {\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }\n      return 0;\n    }" (if "if") (parenthesized_expression "(-1 < iVar6)" (( "(") (binary_expression "-1 < iVar6" (number_literal "-1") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\n      if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }\nLAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }\n      return 0;\n    }" ({ "{") (if_statement "if (iVar6 != 0) {\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }\n        FUN_00019f93();\n      }" ({ "{") (if_statement "if ((uVar5 & 8) == 0) {\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }\n        else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }" (if "if") (parenthesized_expression "((uVar5 & 8) == 0)" (( "(") (binary_expression "(uVar5 & 8) == 0" (parenthesized_expression "(uVar5 & 8)" (( "(") (binary_expression "uVar5 & 8" (identifier "uVar5") (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar6 = 0;\n          uVar5 = 10;\n          do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);\n          if (uVar5 == 10) goto LAB_00063faf;\n        }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar5 = 10;" (assignment_expression "uVar5 = 10" (identifier "uVar5") (= "=") (number_literal "10")) (; ";")) (do_statement "do {\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          } while (iVar6 < local_28);" (do "do") (compound_statement "{\n            bVar1 = __bufp[iVar6];\n            iVar6 = iVar6 + 1;\n            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }\n          }" ({ "{") (expression_statement "bVar1 = __bufp[iVar6];" (assignment_expression "bVar1 = __bufp[iVar6]" (identifier "bVar1") (= "=") (subscript_expression "__bufp[iVar6]" (identifier "__bufp") ([ "[") (identifier "iVar6") (] "]"))) (; ";")) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }\n            else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }" (if "if") (parenthesized_expression "((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c))" (( "(") (binary_expression "(uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)" (parenthesized_expression "(uVar5 == 10)" (( "(") (binary_expression "uVar5 == 10" (identifier "uVar5") (== "==") (number_literal "10")) () ")")) (&& "&&") (parenthesized_expression "(iVar7 = iVar6, bVar1 == 0x3c)" (( "(") (comma_expression "iVar7 = iVar6, bVar1 == 0x3c" (assignment_expression "iVar7 = iVar6" (identifier "iVar7") (= "=") (identifier "iVar6")) (, ",") (binary_expression "bVar1 == 0x3c" (identifier "bVar1") (== "==") (number_literal "0x3c"))) () ")"))) () ")")) (compound_statement "{\n              do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');\n            }" ({ "{") (do_statement "do {\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              } while (*pcVar8 != '>');" (do "do") (compound_statement "{\n                if (local_28 <= iVar7) goto LAB_00063faf;\n                iVar6 = iVar7 + 1;\n                pcVar8 = __bufp + iVar7;\n                iVar7 = iVar6;\n              }" ({ "{") (if_statement "if (local_28 <= iVar7) goto LAB_00063faf;" (if "if") (parenthesized_expression "(local_28 <= iVar7)" (( "(") (binary_expression "local_28 <= iVar7" (identifier "local_28") (<= "<=") (identifier "iVar7")) () ")")) (goto_statement "goto LAB_00063faf;" (goto "goto") (statement_identifier "LAB_00063faf") (; ";"))) (expression_statement "iVar6 = iVar7 + 1;" (assignment_expression "iVar6 = iVar7 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar8 = __bufp + iVar7;" (assignment_expression "pcVar8 = __bufp + iVar7" (identifier "pcVar8") (= "=") (binary_expression "__bufp + iVar7" (identifier "__bufp") (+ "+") (identifier "iVar7"))) (; ";")) (expression_statement "iVar7 = iVar6;" (assignment_expression "iVar7 = iVar6" (identifier "iVar7") (= "=") (identifier "iVar6")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*pcVar8 != '>')" (( "(") (binary_expression "*pcVar8 != '>'" (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8")) (!= "!=") (char_literal "'>'" (' "'") (character ">") (' "'"))) () ")")) (; ";")) (} "}")) (else_clause "else {\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }" (else "else") (compound_statement "{\n              uVar5 = (uint)bVar1;\n              p_Var2 = *(_IO_FILE **)puVar4;\n              pbVar3 = (byte *)p_Var2->_IO_write_ptr;\n              if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }\n            }" ({ "{") (expression_statement "uVar5 = (uint)bVar1;" (assignment_expression "uVar5 = (uint)bVar1" (identifier "uVar5") (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" (identifier "p_Var2") (= "=") (pointer_expression "*(_IO_FILE **)puVar4" (* "*") (cast_expression "(_IO_FILE **)puVar4" (( "(") (type_descriptor "_IO_FILE **" (type_identifier "_IO_FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar4")))) (; ";")) (expression_statement "pbVar3 = (byte *)p_Var2->_IO_write_ptr;" (assignment_expression "pbVar3 = (byte *)p_Var2->_IO_write_ptr" (identifier "pbVar3") (= "=") (cast_expression "(byte *)p_Var2->_IO_write_ptr" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "p_Var2->_IO_write_ptr" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_ptr")))) (; ";")) (if_statement "if (pbVar3 < p_Var2->_IO_write_end) {\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }\n              else {\n                __overflow(p_Var2,uVar5);\n              }" (if "if") (parenthesized_expression "(pbVar3 < p_Var2->_IO_write_end)" (( "(") (binary_expression "pbVar3 < p_Var2->_IO_write_end" (identifier "pbVar3") (< "<") (field_expression "p_Var2->_IO_write_end" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_end"))) () ")")) (compound_statement "{\n                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);\n                *pbVar3 = bVar1;\n              }" ({ "{") (expression_statement "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);" (assignment_expression "p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1)" (field_expression "p_Var2->_IO_write_ptr" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_ptr")) (= "=") (cast_expression "(char *)(pbVar3 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar3 + 1)" (( "(") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar3 = bVar1;" (assignment_expression "*pbVar3 = bVar1" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (identifier "bVar1")) (; ";")) (} "}")) (else_clause "else {\n                __overflow(p_Var2,uVar5);\n              }" (else "else") (compound_statement "{\n                __overflow(p_Var2,uVar5);\n              }" ({ "{") (expression_statement "__overflow(p_Var2,uVar5);" (call_expression "__overflow(p_Var2,uVar5)" (identifier "__overflow") (argument_list "(p_Var2,uVar5)" (( "(") (identifier "p_Var2") (, ",") (identifier "uVar5") () ")"))) (; ";")) (} "}")))) (} "}")))) (} "}")) (while "while") (parenthesized_expression "(iVar6 < local_28)" (( "(") (binary_expression "iVar6 < local_28" (identifier "iVar6") (< "<") (identifier "local_28")) () ")")) (; ";")) (if_statement "if (uVar5 == 10) goto LAB_00063faf;" (if "if") (parenthesized_expression "(uVar5 == 10)" (( "(") (binary_expression "uVar5 == 10" (identifier "uVar5") (== "==") (number_literal "10")) () ")")) (goto_statement "goto LAB_00063faf;" (goto "goto") (statement_identifier "LAB_00063faf") (; ";"))) (} "}")) (else_clause "else {\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }" (else "else") (compound_statement "{\n          FUN_0001ac14();\n          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;\n        }" ({ "{") (expression_statement "FUN_0001ac14();" (call_expression "FUN_0001ac14()" (identifier "FUN_0001ac14") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;" (if "if") (parenthesized_expression "(__bufp[local_28 + -1] == '\n')" (( "(") (binary_expression "__bufp[local_28 + -1] == '\n'" (subscript_expression "__bufp[local_28 + -1]" (identifier "__bufp") ([ "[") (binary_expression "local_28 + -1" (identifier "local_28") (+ "+") (number_literal "-1")) (] "]")) (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (goto_statement "goto LAB_00063faf;" (goto "goto") (statement_identifier "LAB_00063faf") (; ";"))) (} "}")))) (expression_statement "FUN_00019f93();" (call_expression "FUN_00019f93()" (identifier "FUN_00019f93") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_00063faf:\n      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }" (statement_identifier "LAB_00063faf") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n        FUN_00017e10();\n      }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n        FUN_00017e10();\n      }" ({ "{") (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" (identifier "FUN_00017e10") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }" (else "else") (compound_statement "{\n    pcVar8 = (char *)0x0;\n    pcVar9 = extraout_ECX;\n    iVar6 = klogctl(8,(char *)0x0,local_24);\n    if (iVar6 == 0) goto LAB_00063faf;\n  }" ({ "{") (expression_statement "pcVar8 = (char *)0x0;" (assignment_expression "pcVar8 = (char *)0x0" (identifier "pcVar8") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "pcVar9 = extraout_ECX;" (assignment_expression "pcVar9 = extraout_ECX" (identifier "pcVar9") (= "=") (identifier "extraout_ECX")) (; ";")) (expression_statement "iVar6 = klogctl(8,(char *)0x0,local_24);" (assignment_expression "iVar6 = klogctl(8,(char *)0x0,local_24)" (identifier "iVar6") (= "=") (call_expression "klogctl(8,(char *)0x0,local_24)" (identifier "klogctl") (argument_list "(8,(char *)0x0,local_24)" (( "(") (number_literal "8") (, ",") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (, ",") (identifier "local_24") () ")")))) (; ";")) (if_statement "if (iVar6 == 0) goto LAB_00063faf;" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00063faf;" (goto "goto") (statement_identifier "LAB_00063faf") (; ";"))) (} "}")))) (expression_statement "FUN_00018e79("klogctl",pcVar8,local_24,pcVar9);" (call_expression "FUN_00018e79("klogctl",pcVar8,local_24,pcVar9)" (identifier "FUN_00018e79") (argument_list "("klogctl",pcVar8,local_24,pcVar9)" (( "(") (string_literal ""klogctl"" (" """) (string_content "klogctl") (" """)) (, ",") (identifier "pcVar8") (, ",") (identifier "local_24") (, ",") (identifier "pcVar9") () ")"))) (; ";")) (} "}")))

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

int function_1(int argc,char **argv)

{
  int len;
  int level;
  
}


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

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

undefined4 MASKED(undefined4 param_1,undefined4 param_2)

{
  byte bVar1;
  _IO_FILE *p_Var2;
  byte *pbVar3;
  undefined *puVar4;
  uint uVar5;
  int iVar6;
  char *__bufp;
  char *extraout_ECX;
  int iVar7;
  int in_GS_OFFSET;
  char *pcVar8;
  char *pcVar9;
  int local_28;
  int local_24;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar5 = FUN_000a8bdf(param_2,"cs:+n:+r",&local_28,&local_24);
  if ((uVar5 & 4) == 0) {
    if ((uVar5 & 2) == 0) {
      local_28 = klogctl(10,(char *)0x0,0);
    }
    if (local_28 < 0x4000) {
      local_28 = 0x4000;
    }
    else if (0x1000000 < local_28) {
      local_28 = 0x1000000;
    }
    __bufp = (char *)FUN_00019b1c();
    pcVar8 = __bufp;
    pcVar9 = __bufp;
    iVar6 = klogctl((uVar5 & 1) + 3,__bufp,local_28);
    puVar4 = PTR_stdout_000d0fb4;
    local_24 = local_28;
    local_28 = iVar6;
    if (-1 < iVar6) {
      if (iVar6 != 0) {
        if ((uVar5 & 8) == 0) {
          iVar6 = 0;
          uVar5 = 10;
          do {
            bVar1 = __bufp[iVar6];
            iVar6 = iVar6 + 1;
            if ((uVar5 == 10) && (iVar7 = iVar6, bVar1 == 0x3c)) {
              do {
                if (local_28 <= iVar7) goto LAB_00063faf;
                iVar6 = iVar7 + 1;
                pcVar8 = __bufp + iVar7;
                iVar7 = iVar6;
              } while (*pcVar8 != '>');
            }
            else {
              uVar5 = (uint)bVar1;
              p_Var2 = *(_IO_FILE **)puVar4;
              pbVar3 = (byte *)p_Var2->_IO_write_ptr;
              if (pbVar3 < p_Var2->_IO_write_end) {
                p_Var2->_IO_write_ptr = (char *)(pbVar3 + 1);
                *pbVar3 = bVar1;
              }
              else {
                __overflow(p_Var2,uVar5);
              }
            }
          } while (iVar6 < local_28);
          if (uVar5 == 10) goto LAB_00063faf;
        }
        else {
          FUN_0001ac14();
          if (__bufp[local_28 + -1] == '\n') goto LAB_00063faf;
        }
        FUN_00019f93();
      }
LAB_00063faf:
      if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
        FUN_00017e10();
      }
      return 0;
    }
  }
  else {
    pcVar8 = (char *)0x0;
    pcVar9 = extraout_ECX;
    iVar6 = klogctl(8,(char *)0x0,local_24);
    if (iVar6 == 0) goto LAB_00063faf;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00018e79("klogctl",pcVar8,local_24,pcVar9);
}

