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

void __regparm3 supported_pages_sdg(char *leadin,uint8_t *resp,int resp_len)

{
  byte bVar1;
  uint uVar2;
  bool bVar3;
  diag_page_code *pdVar4;
  undefined *puVar5;
  char *pcVar6;
  diag_page_abbrev *pdVar7;
  uint uVar8;
  byte *pbVar9;
  
  __printf_chk(1,"%s:\n",leadin);
  if (4 < resp_len) {
    pbVar9 = resp + 5;
    uVar8 = (uint)resp[4];
    do {
      if (dpc_arr[0].desc == (char *)0x0) {
LAB_000161d0:
        __printf_chk(1,"  <unknown> [0x%x]\n",uVar8);
      }
      else {
        pcVar6 = dpc_arr[0].desc;
        if (dpc_arr[0].page_code != uVar8) {
          if (dpc_arr[0].page_code <= (int)uVar8) {
            pdVar4 = dpc_arr;
            do {
              pcVar6 = pdVar4[1].desc;
              if (pcVar6 == (char *)0x0) break;
              uVar2 = pdVar4[1].page_code;
              if (uVar2 == uVar8) goto LAB_00016208;
              pdVar4 = pdVar4 + 1;
            } while ((int)uVar2 <= (int)uVar8);
          }
          goto LAB_000161d0;
        }
LAB_00016208:
        pdVar7 = dp_abbrev;
        __printf_chk(1,"  %s [",pcVar6);
        bVar3 = false;
        pcVar6 = dp_abbrev[0].abbrev;
        while (pcVar6 != (char *)0x0) {
          if (pdVar7->page_code == uVar8) {
            puVar5 = &DAT_0001f995;
            if (bVar3) {
              puVar5 = &DAT_0001f084;
            }
            __printf_chk(1,&DAT_0001f086,puVar5,pcVar6);
            bVar3 = true;
          }
          pdVar7 = pdVar7 + 1;
          pcVar6 = pdVar7->abbrev;
        }
        __printf_chk(1,"] [0x%x]\n",uVar8);
      }
      if (resp + resp_len == pbVar9) {
        return;
      }
      bVar1 = *pbVar9;
      pbVar9 = pbVar9 + 1;
      bVar3 = uVar8 <= bVar1;
      uVar8 = (uint)bVar1;
    } while (bVar3);
  }
  return;
}



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

void __regparm3 FUN_00016140(undefined4 param_1,int param_2,int param_3)

{
  byte bVar1;
  bool bVar2;
  undefined4 *puVar3;
  undefined *puVar4;
  undefined *puVar5;
  undefined **ppuVar6;
  undefined *puVar7;
  byte *pbVar8;
  
  __printf_chk(1,"%s:\n",param_1);
  if (4 < param_3) {
    pbVar8 = (byte *)(param_2 + 5);
    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);
    do {
      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {
LAB_000161d0:
        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);
      }
      else {
        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;
        if (DAT_0002c920 != puVar7) {
          if ((int)DAT_0002c920 <= (int)puVar7) {
            puVar3 = &DAT_0002c920;
            do {
              puVar5 = (undefined *)puVar3[3];
              if (puVar5 == (undefined *)0x0) break;
              puVar4 = (undefined *)puVar3[2];
              if (puVar4 == puVar7) goto LAB_00016208;
              puVar3 = puVar3 + 2;
            } while ((int)puVar4 <= (int)puVar7);
          }
          goto LAB_000161d0;
        }
LAB_00016208:
        ppuVar6 = &PTR_DAT_0002c700;
        __printf_chk(1,"  %s [",puVar5);
        bVar2 = false;
        puVar5 = PTR_DAT_0002c700;
        while (puVar5 != (undefined *)0x0) {
          if (ppuVar6[1] == puVar7) {
            puVar4 = &DAT_0001f995;
            if (bVar2) {
              puVar4 = &DAT_0001f084;
            }
            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);
            bVar2 = true;
          }
          ppuVar6 = ppuVar6 + 2;
          puVar5 = *ppuVar6;
        }
        __printf_chk(1,"] [0x%x]\n",puVar7);
      }
      if ((byte *)(param_2 + param_3) == pbVar8) {
        return;
      }
      bVar1 = *pbVar8;
      pbVar8 = pbVar8 + 1;
      bVar2 = puVar7 <= (undefined *)(uint)bVar1;
      puVar7 = (undefined *)(uint)bVar1;
    } while (bVar2);
  }
  return;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000159e0
ADD EBX,0x14d75
SUB ESP,0x20
MOV dword ptr [ESP + 0x4],ECX
PUSH EAX
LEA EAX,[EBX + 0xffff488b]
PUSH EAX
PUSH 0x1
CALL 0x00012310
ADD ESP,0x10
MOV ECX,dword ptr [ESP]
CMP ECX,0x4
JLE 0x00016290
LEA EAX,[EBP + ECX*0x1]
MOVZX ESI,byte ptr [EBP + 0x4]
LEA EDI,[EBP + 0x5]
MOV dword ptr [ESP + 0x8],EAX
LEA EAX,[0x1a60]
MOV dword ptr [ESP + 0xc],EAX
LEA EAX,[EBX + 0xffff4ad5]
MOV dword ptr [ESP + 0x4],EAX
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [EAX + EBX*0x1 + 0x4]
TEST EDX,EDX
JZ 0x000161d0
CMP dword ptr [EAX + EBX*0x1],ESI
JZ 0x00016208
JG 0x000161d0
LEA EAX,[EBX + 0x1a60]
JMP 0x000161c6
CMP dword ptr [EAX],ESI
JZ 0x00016208
JG 0x000161d0
ADD EAX,0x8
MOV EDX,dword ptr [EAX + 0x4]
TEST EDX,EDX
JNZ 0x000161c0
SUB ESP,0x4
LEA EAX,[EBX + 0xffff41d2]
PUSH ESI
PUSH EAX
PUSH 0x1
CALL 0x00012310
ADD ESP,0x10
CMP dword ptr [ESP + 0x8],EDI
JZ 0x00016290
MOVZX EAX,byte ptr [EDI]
ADD EDI,0x1
CMP EAX,ESI
JL 0x00016290
MOV ESI,EAX
JMP 0x000161a0
SUB ESP,0x4
LEA EAX,[EBX + 0xffff41cb]
LEA EBP,[EBX + 0x1840]
PUSH EDX
PUSH EAX
PUSH 0x1
CALL 0x00012310
MOV EAX,dword ptr [EBX + 0x1840]
ADD ESP,0x10
XOR ECX,ECX
LEA EDX,[EBX + 0xffff41c4]
MOV dword ptr [ESP],EDX
TEST EAX,EAX
JZ 0x00016271
LEA ESI,[ESI]
NOP
CMP dword ptr [EBP + 0x4],ESI
JNZ 0x00016267
TEST CL,CL
MOV ECX,dword ptr [ESP + 0x4]
CMOVNZ ECX,dword ptr [ESP]
PUSH EAX
LEA EAX,[EBX + 0xffff41c6]
PUSH ECX
PUSH EAX
PUSH 0x1
CALL 0x00012310
ADD ESP,0x10
MOV ECX,0x1
ADD EBP,0x8
MOV EAX,dword ptr [EBP]
TEST EAX,EAX
JNZ 0x00016240
SUB ESP,0x4
LEA EAX,[EBX + 0xffff4b92]
PUSH ESI
PUSH EAX
PUSH 0x1
CALL 0x00012310
ADD ESP,0x10
CMP dword ptr [ESP + 0x8],EDI
JNZ 0x000161ef
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00016140(undefined4 param_1,int param_2,int param_3)\n\n{\n  byte bVar1;\n  bool bVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined **ppuVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  \n  __printf_chk(1,"%s:\n",param_1);\n  if (4 < param_3) {\n    pbVar8 = (byte *)(param_2 + 5);\n    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);\n    do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00016140(undefined4 param_1,int param_2,int param_3)\n\n{\n  byte bVar1;\n  bool bVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined **ppuVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  \n  __printf_chk(1,"%s:\n",param_1);\n  if (4 < param_3) {\n    pbVar8 = (byte *)(param_2 + 5);\n    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);\n    do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00016140(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  bool bVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined **ppuVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  \n  __printf_chk(1,"%s:\n",param_1);\n  if (4 < param_3) {\n    pbVar8 = (byte *)(param_2 + 5);\n    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);\n    do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined **ppuVar6;" type_identifier (pointer_declarator "**ppuVar6" * (pointer_declarator "*ppuVar6" * identifier)) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (expression_statement "__printf_chk(1,"%s:\n",param_1);" (call_expression "__printf_chk(1,"%s:\n",param_1)" identifier (argument_list "(1,"%s:\n",param_1)" ( number_literal , (string_literal ""%s:\n"" " string_content escape_sequence ") , identifier ))) ;) (if_statement "if (4 < param_3) {\n    pbVar8 = (byte *)(param_2 + 5);\n    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);\n    do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);\n  }" if (parenthesized_expression "(4 < param_3)" ( (binary_expression "4 < param_3" number_literal < identifier) )) (compound_statement "{\n    pbVar8 = (byte *)(param_2 + 5);\n    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);\n    do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);\n  }" { (expression_statement "pbVar8 = (byte *)(param_2 + 5);" (assignment_expression "pbVar8 = (byte *)(param_2 + 5)" identifier = (cast_expression "(byte *)(param_2 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 5)" ( (binary_expression "param_2 + 5" identifier + number_literal) )))) ;) (expression_statement "puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);" (assignment_expression "puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4)" identifier = (binary_expression "(undefined *)(uint)*(byte *)(param_2 + 4)" (cast_expression "(undefined *)(uint)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)(param_2 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (do_statement "do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);" do (compound_statement "{\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    }" { (if_statement "if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }" if (parenthesized_expression "(PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0)" ( (binary_expression "PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }" { (labeled_statement "LAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);" statement_identifier : (expression_statement "__printf_chk(1,"  <unknown> [0x%x]\n",puVar7);" (call_expression "__printf_chk(1,"  <unknown> [0x%x]\n",puVar7)" identifier (argument_list "(1,"  <unknown> [0x%x]\n",puVar7)" ( number_literal , (string_literal ""  <unknown> [0x%x]\n"" " string_content escape_sequence ") , identifier ))) ;)) }) (else_clause "else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }" else (compound_statement "{\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }" { (expression_statement "puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;" (assignment_expression "puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924" identifier = identifier) ;) (if_statement "if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }" if (parenthesized_expression "(DAT_0002c920 != puVar7)" ( (binary_expression "DAT_0002c920 != puVar7" identifier != identifier) )) (compound_statement "{\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }" { (if_statement "if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }" if (parenthesized_expression "((int)DAT_0002c920 <= (int)puVar7)" ( (binary_expression "(int)DAT_0002c920 <= (int)puVar7" (cast_expression "(int)DAT_0002c920" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }" { (expression_statement "puVar3 = &DAT_0002c920;" (assignment_expression "puVar3 = &DAT_0002c920" identifier = (pointer_expression "&DAT_0002c920" & identifier)) ;) (do_statement "do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);" do (compound_statement "{\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            }" { (expression_statement "puVar5 = (undefined *)puVar3[3];" (assignment_expression "puVar5 = (undefined *)puVar3[3]" identifier = (cast_expression "(undefined *)puVar3[3]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[3]" identifier [ number_literal ]))) ;) (if_statement "if (puVar5 == (undefined *)0x0) break;" if (parenthesized_expression "(puVar5 == (undefined *)0x0)" ( (binary_expression "puVar5 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "puVar4 = (undefined *)puVar3[2];" (assignment_expression "puVar4 = (undefined *)puVar3[2]" identifier = (cast_expression "(undefined *)puVar3[2]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[2]" identifier [ number_literal ]))) ;) (if_statement "if (puVar4 == puVar7) goto LAB_00016208;" if (parenthesized_expression "(puVar4 == puVar7)" ( (binary_expression "puVar4 == puVar7" identifier == identifier) )) (goto_statement "goto LAB_00016208;" goto statement_identifier ;)) (expression_statement "puVar3 = puVar3 + 2;" (assignment_expression "puVar3 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)puVar4 <= (int)puVar7)" ( (binary_expression "(int)puVar4 <= (int)puVar7" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (goto_statement "goto LAB_000161d0;" goto statement_identifier ;) })) (labeled_statement "LAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;" statement_identifier : (expression_statement "ppuVar6 = &PTR_DAT_0002c700;" (assignment_expression "ppuVar6 = &PTR_DAT_0002c700" identifier = (pointer_expression "&PTR_DAT_0002c700" & identifier)) ;)) (expression_statement "__printf_chk(1,"  %s [",puVar5);" (call_expression "__printf_chk(1,"  %s [",puVar5)" identifier (argument_list "(1,"  %s [",puVar5)" ( number_literal , (string_literal ""  %s ["" " string_content ") , identifier ))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "puVar5 = PTR_DAT_0002c700;" (assignment_expression "puVar5 = PTR_DAT_0002c700" identifier = identifier) ;) (while_statement "while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }" while (parenthesized_expression "(puVar5 != (undefined *)0x0)" ( (binary_expression "puVar5 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }" { (if_statement "if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }" if (parenthesized_expression "(ppuVar6[1] == puVar7)" ( (binary_expression "ppuVar6[1] == puVar7" (subscript_expression "ppuVar6[1]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }" { (expression_statement "puVar4 = &DAT_0001f995;" (assignment_expression "puVar4 = &DAT_0001f995" identifier = (pointer_expression "&DAT_0001f995" & identifier)) ;) (if_statement "if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n              puVar4 = &DAT_0001f084;\n            }" { (expression_statement "puVar4 = &DAT_0001f084;" (assignment_expression "puVar4 = &DAT_0001f084" identifier = (pointer_expression "&DAT_0001f084" & identifier)) ;) })) (expression_statement "__printf_chk(1,&DAT_0001f086,puVar4,puVar5);" (call_expression "__printf_chk(1,&DAT_0001f086,puVar4,puVar5)" identifier (argument_list "(1,&DAT_0001f086,puVar4,puVar5)" ( number_literal , (pointer_expression "&DAT_0001f086" & identifier) , identifier , identifier ))) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) })) (expression_statement "ppuVar6 = ppuVar6 + 2;" (assignment_expression "ppuVar6 = ppuVar6 + 2" identifier = (binary_expression "ppuVar6 + 2" identifier + number_literal)) ;) (expression_statement "puVar5 = *ppuVar6;" (assignment_expression "puVar5 = *ppuVar6" identifier = (pointer_expression "*ppuVar6" * identifier)) ;) })) (expression_statement "__printf_chk(1,"] [0x%x]\n",puVar7);" (call_expression "__printf_chk(1,"] [0x%x]\n",puVar7)" identifier (argument_list "(1,"] [0x%x]\n",puVar7)" ( number_literal , (string_literal ""] [0x%x]\n"" " string_content escape_sequence ") , identifier ))) ;) }))) (if_statement "if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }" if (parenthesized_expression "((byte *)(param_2 + param_3) == pbVar8)" ( (binary_expression "(byte *)(param_2 + param_3) == pbVar8" (cast_expression "(byte *)(param_2 + param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + param_3)" ( (binary_expression "param_2 + param_3" identifier + identifier) ))) == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = puVar7 <= (undefined *)(uint)bVar1;" (assignment_expression "bVar2 = puVar7 <= (undefined *)(uint)bVar1" identifier = (binary_expression "puVar7 <= (undefined *)(uint)bVar1" identifier <= (cast_expression "(undefined *)(uint)bVar1" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)))) ;) (expression_statement "puVar7 = (undefined *)(uint)bVar1;" (assignment_expression "puVar7 = (undefined *)(uint)bVar1" identifier = (cast_expression "(undefined *)(uint)bVar1" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) }) while (parenthesized_expression "(bVar2)" ( identifier )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 supported_pages_sdg(char *leadin,uint8_t *resp,int resp_len)\n\n{\n  byte bVar1;\n  uint uVar2;\n  bool bVar3;\n  diag_page_code *pdVar4;\n  undefined *puVar5;\n  char *pcVar6;\n  diag_page_abbrev *pdVar7;\n  uint uVar8;\n  byte *pbVar9;\n  \n  __printf_chk(1,"%s:\n",leadin);\n  if (4 < resp_len) {\n    pbVar9 = resp + 5;\n    uVar8 = (uint)resp[4];\n    do {\n      if (dpc_arr[0].desc == (char *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",uVar8);\n      }\n      else {\n        pcVar6 = dpc_arr[0].desc;\n        if (dpc_arr[0].page_code != uVar8) {\n          if (dpc_arr[0].page_code <= (int)uVar8) {\n            pdVar4 = dpc_arr;\n            do {\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            } while ((int)uVar2 <= (int)uVar8);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        pdVar7 = dp_abbrev;\n        __printf_chk(1,"  %s [",pcVar6);\n        bVar3 = false;\n        pcVar6 = dp_abbrev[0].abbrev;\n        while (pcVar6 != (char *)0x0) {\n          if (pdVar7->page_code == uVar8) {\n            puVar5 = &DAT_0001f995;\n            if (bVar3) {\n              puVar5 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar5,pcVar6);\n            bVar3 = true;\n          }\n          pdVar7 = pdVar7 + 1;\n          pcVar6 = pdVar7->abbrev;\n        }\n        __printf_chk(1,"] [0x%x]\n",uVar8);\n      }\n      if (resp + resp_len == pbVar9) {\n        return;\n      }\n      bVar1 = *pbVar9;\n      pbVar9 = pbVar9 + 1;\n      bVar3 = uVar8 <= bVar1;\n      uVar8 = (uint)bVar1;\n    } while (bVar3);\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 supported_pages_sdg(char *leadin,uint8_t *resp,int resp_len)\n\n{\n  byte bVar1;\n  uint uVar2;\n  bool bVar3;\n  diag_page_code *pdVar4;\n  undefined *puVar5;\n  char *pcVar6;\n  diag_page_abbrev *pdVar7;\n  uint uVar8;\n  byte *pbVar9;\n  \n  __printf_chk(1,"%s:\n",leadin);\n  if (4 < resp_len) {\n    pbVar9 = resp + 5;\n    uVar8 = (uint)resp[4];\n    do {\n      if (dpc_arr[0].desc == (char *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",uVar8);\n      }\n      else {\n        pcVar6 = dpc_arr[0].desc;\n        if (dpc_arr[0].page_code != uVar8) {\n          if (dpc_arr[0].page_code <= (int)uVar8) {\n            pdVar4 = dpc_arr;\n            do {\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            } while ((int)uVar2 <= (int)uVar8);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        pdVar7 = dp_abbrev;\n        __printf_chk(1,"  %s [",pcVar6);\n        bVar3 = false;\n        pcVar6 = dp_abbrev[0].abbrev;\n        while (pcVar6 != (char *)0x0) {\n          if (pdVar7->page_code == uVar8) {\n            puVar5 = &DAT_0001f995;\n            if (bVar3) {\n              puVar5 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar5,pcVar6);\n            bVar3 = true;\n          }\n          pdVar7 = pdVar7 + 1;\n          pcVar6 = pdVar7->abbrev;\n        }\n        __printf_chk(1,"] [0x%x]\n",uVar8);\n      }\n      if (resp + resp_len == pbVar9) {\n        return;\n      }\n      bVar1 = *pbVar9;\n      pbVar9 = pbVar9 + 1;\n      bVar3 = uVar8 <= bVar1;\n      uVar8 = (uint)bVar1;\n    } while (bVar3);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "supported_pages_sdg(char *leadin,uint8_t *resp,int resp_len)" identifier (parameter_list "(char *leadin,uint8_t *resp,int resp_len)" ( (parameter_declaration "char *leadin" primitive_type (pointer_declarator "*leadin" * identifier)) , (parameter_declaration "uint8_t *resp" primitive_type (pointer_declarator "*resp" * identifier)) , (parameter_declaration "int resp_len" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  bool bVar3;\n  diag_page_code *pdVar4;\n  undefined *puVar5;\n  char *pcVar6;\n  diag_page_abbrev *pdVar7;\n  uint uVar8;\n  byte *pbVar9;\n  \n  __printf_chk(1,"%s:\n",leadin);\n  if (4 < resp_len) {\n    pbVar9 = resp + 5;\n    uVar8 = (uint)resp[4];\n    do {\n      if (dpc_arr[0].desc == (char *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",uVar8);\n      }\n      else {\n        pcVar6 = dpc_arr[0].desc;\n        if (dpc_arr[0].page_code != uVar8) {\n          if (dpc_arr[0].page_code <= (int)uVar8) {\n            pdVar4 = dpc_arr;\n            do {\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            } while ((int)uVar2 <= (int)uVar8);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        pdVar7 = dp_abbrev;\n        __printf_chk(1,"  %s [",pcVar6);\n        bVar3 = false;\n        pcVar6 = dp_abbrev[0].abbrev;\n        while (pcVar6 != (char *)0x0) {\n          if (pdVar7->page_code == uVar8) {\n            puVar5 = &DAT_0001f995;\n            if (bVar3) {\n              puVar5 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar5,pcVar6);\n            bVar3 = true;\n          }\n          pdVar7 = pdVar7 + 1;\n          pcVar6 = pdVar7->abbrev;\n        }\n        __printf_chk(1,"] [0x%x]\n",uVar8);\n      }\n      if (resp + resp_len == pbVar9) {\n        return;\n      }\n      bVar1 = *pbVar9;\n      pbVar9 = pbVar9 + 1;\n      bVar3 = uVar8 <= bVar1;\n      uVar8 = (uint)bVar1;\n    } while (bVar3);\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "diag_page_code *pdVar4;" type_identifier (pointer_declarator "*pdVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "diag_page_abbrev *pdVar7;" type_identifier (pointer_declarator "*pdVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "byte *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (expression_statement "__printf_chk(1,"%s:\n",leadin);" (call_expression "__printf_chk(1,"%s:\n",leadin)" identifier (argument_list "(1,"%s:\n",leadin)" ( number_literal , (string_literal ""%s:\n"" " string_content escape_sequence ") , identifier ))) ;) (if_statement "if (4 < resp_len) {\n    pbVar9 = resp + 5;\n    uVar8 = (uint)resp[4];\n    do {\n      if (dpc_arr[0].desc == (char *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",uVar8);\n      }\n      else {\n        pcVar6 = dpc_arr[0].desc;\n        if (dpc_arr[0].page_code != uVar8) {\n          if (dpc_arr[0].page_code <= (int)uVar8) {\n            pdVar4 = dpc_arr;\n            do {\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            } while ((int)uVar2 <= (int)uVar8);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        pdVar7 = dp_abbrev;\n        __printf_chk(1,"  %s [",pcVar6);\n        bVar3 = false;\n        pcVar6 = dp_abbrev[0].abbrev;\n        while (pcVar6 != (char *)0x0) {\n          if (pdVar7->page_code == uVar8) {\n            puVar5 = &DAT_0001f995;\n            if (bVar3) {\n              puVar5 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar5,pcVar6);\n            bVar3 = true;\n          }\n          pdVar7 = pdVar7 + 1;\n          pcVar6 = pdVar7->abbrev;\n        }\n        __printf_chk(1,"] [0x%x]\n",uVar8);\n      }\n      if (resp + resp_len == pbVar9) {\n        return;\n      }\n      bVar1 = *pbVar9;\n      pbVar9 = pbVar9 + 1;\n      bVar3 = uVar8 <= bVar1;\n      uVar8 = (uint)bVar1;\n    } while (bVar3);\n  }" if (parenthesized_expression "(4 < resp_len)" ( (binary_expression "4 < resp_len" number_literal < identifier) )) (compound_statement "{\n    pbVar9 = resp + 5;\n    uVar8 = (uint)resp[4];\n    do {\n      if (dpc_arr[0].desc == (char *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",uVar8);\n      }\n      else {\n        pcVar6 = dpc_arr[0].desc;\n        if (dpc_arr[0].page_code != uVar8) {\n          if (dpc_arr[0].page_code <= (int)uVar8) {\n            pdVar4 = dpc_arr;\n            do {\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            } while ((int)uVar2 <= (int)uVar8);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        pdVar7 = dp_abbrev;\n        __printf_chk(1,"  %s [",pcVar6);\n        bVar3 = false;\n        pcVar6 = dp_abbrev[0].abbrev;\n        while (pcVar6 != (char *)0x0) {\n          if (pdVar7->page_code == uVar8) {\n            puVar5 = &DAT_0001f995;\n            if (bVar3) {\n              puVar5 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar5,pcVar6);\n            bVar3 = true;\n          }\n          pdVar7 = pdVar7 + 1;\n          pcVar6 = pdVar7->abbrev;\n        }\n        __printf_chk(1,"] [0x%x]\n",uVar8);\n      }\n      if (resp + resp_len == pbVar9) {\n        return;\n      }\n      bVar1 = *pbVar9;\n      pbVar9 = pbVar9 + 1;\n      bVar3 = uVar8 <= bVar1;\n      uVar8 = (uint)bVar1;\n    } while (bVar3);\n  }" { (expression_statement "pbVar9 = resp + 5;" (assignment_expression "pbVar9 = resp + 5" identifier = (binary_expression "resp + 5" identifier + number_literal)) ;) (expression_statement "uVar8 = (uint)resp[4];" (assignment_expression "uVar8 = (uint)resp[4]" identifier = (cast_expression "(uint)resp[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "resp[4]" identifier [ number_literal ]))) ;) (do_statement "do {\n      if (dpc_arr[0].desc == (char *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",uVar8);\n      }\n      else {\n        pcVar6 = dpc_arr[0].desc;\n        if (dpc_arr[0].page_code != uVar8) {\n          if (dpc_arr[0].page_code <= (int)uVar8) {\n            pdVar4 = dpc_arr;\n            do {\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            } while ((int)uVar2 <= (int)uVar8);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        pdVar7 = dp_abbrev;\n        __printf_chk(1,"  %s [",pcVar6);\n        bVar3 = false;\n        pcVar6 = dp_abbrev[0].abbrev;\n        while (pcVar6 != (char *)0x0) {\n          if (pdVar7->page_code == uVar8) {\n            puVar5 = &DAT_0001f995;\n            if (bVar3) {\n              puVar5 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar5,pcVar6);\n            bVar3 = true;\n          }\n          pdVar7 = pdVar7 + 1;\n          pcVar6 = pdVar7->abbrev;\n        }\n        __printf_chk(1,"] [0x%x]\n",uVar8);\n      }\n      if (resp + resp_len == pbVar9) {\n        return;\n      }\n      bVar1 = *pbVar9;\n      pbVar9 = pbVar9 + 1;\n      bVar3 = uVar8 <= bVar1;\n      uVar8 = (uint)bVar1;\n    } while (bVar3);" do (compound_statement "{\n      if (dpc_arr[0].desc == (char *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",uVar8);\n      }\n      else {\n        pcVar6 = dpc_arr[0].desc;\n        if (dpc_arr[0].page_code != uVar8) {\n          if (dpc_arr[0].page_code <= (int)uVar8) {\n            pdVar4 = dpc_arr;\n            do {\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            } while ((int)uVar2 <= (int)uVar8);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        pdVar7 = dp_abbrev;\n        __printf_chk(1,"  %s [",pcVar6);\n        bVar3 = false;\n        pcVar6 = dp_abbrev[0].abbrev;\n        while (pcVar6 != (char *)0x0) {\n          if (pdVar7->page_code == uVar8) {\n            puVar5 = &DAT_0001f995;\n            if (bVar3) {\n              puVar5 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar5,pcVar6);\n            bVar3 = true;\n          }\n          pdVar7 = pdVar7 + 1;\n          pcVar6 = pdVar7->abbrev;\n        }\n        __printf_chk(1,"] [0x%x]\n",uVar8);\n      }\n      if (resp + resp_len == pbVar9) {\n        return;\n      }\n      bVar1 = *pbVar9;\n      pbVar9 = pbVar9 + 1;\n      bVar3 = uVar8 <= bVar1;\n      uVar8 = (uint)bVar1;\n    }" { (if_statement "if (dpc_arr[0].desc == (char *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",uVar8);\n      }\n      else {\n        pcVar6 = dpc_arr[0].desc;\n        if (dpc_arr[0].page_code != uVar8) {\n          if (dpc_arr[0].page_code <= (int)uVar8) {\n            pdVar4 = dpc_arr;\n            do {\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            } while ((int)uVar2 <= (int)uVar8);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        pdVar7 = dp_abbrev;\n        __printf_chk(1,"  %s [",pcVar6);\n        bVar3 = false;\n        pcVar6 = dp_abbrev[0].abbrev;\n        while (pcVar6 != (char *)0x0) {\n          if (pdVar7->page_code == uVar8) {\n            puVar5 = &DAT_0001f995;\n            if (bVar3) {\n              puVar5 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar5,pcVar6);\n            bVar3 = true;\n          }\n          pdVar7 = pdVar7 + 1;\n          pcVar6 = pdVar7->abbrev;\n        }\n        __printf_chk(1,"] [0x%x]\n",uVar8);\n      }" if (parenthesized_expression "(dpc_arr[0].desc == (char *)0x0)" ( (binary_expression "dpc_arr[0].desc == (char *)0x0" (field_expression "dpc_arr[0].desc" (subscript_expression "dpc_arr[0]" identifier [ number_literal ]) . field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",uVar8);\n      }" { (labeled_statement "LAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",uVar8);" statement_identifier : (expression_statement "__printf_chk(1,"  <unknown> [0x%x]\n",uVar8);" (call_expression "__printf_chk(1,"  <unknown> [0x%x]\n",uVar8)" identifier (argument_list "(1,"  <unknown> [0x%x]\n",uVar8)" ( number_literal , (string_literal ""  <unknown> [0x%x]\n"" " string_content escape_sequence ") , identifier ))) ;)) }) (else_clause "else {\n        pcVar6 = dpc_arr[0].desc;\n        if (dpc_arr[0].page_code != uVar8) {\n          if (dpc_arr[0].page_code <= (int)uVar8) {\n            pdVar4 = dpc_arr;\n            do {\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            } while ((int)uVar2 <= (int)uVar8);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        pdVar7 = dp_abbrev;\n        __printf_chk(1,"  %s [",pcVar6);\n        bVar3 = false;\n        pcVar6 = dp_abbrev[0].abbrev;\n        while (pcVar6 != (char *)0x0) {\n          if (pdVar7->page_code == uVar8) {\n            puVar5 = &DAT_0001f995;\n            if (bVar3) {\n              puVar5 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar5,pcVar6);\n            bVar3 = true;\n          }\n          pdVar7 = pdVar7 + 1;\n          pcVar6 = pdVar7->abbrev;\n        }\n        __printf_chk(1,"] [0x%x]\n",uVar8);\n      }" else (compound_statement "{\n        pcVar6 = dpc_arr[0].desc;\n        if (dpc_arr[0].page_code != uVar8) {\n          if (dpc_arr[0].page_code <= (int)uVar8) {\n            pdVar4 = dpc_arr;\n            do {\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            } while ((int)uVar2 <= (int)uVar8);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        pdVar7 = dp_abbrev;\n        __printf_chk(1,"  %s [",pcVar6);\n        bVar3 = false;\n        pcVar6 = dp_abbrev[0].abbrev;\n        while (pcVar6 != (char *)0x0) {\n          if (pdVar7->page_code == uVar8) {\n            puVar5 = &DAT_0001f995;\n            if (bVar3) {\n              puVar5 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar5,pcVar6);\n            bVar3 = true;\n          }\n          pdVar7 = pdVar7 + 1;\n          pcVar6 = pdVar7->abbrev;\n        }\n        __printf_chk(1,"] [0x%x]\n",uVar8);\n      }" { (expression_statement "pcVar6 = dpc_arr[0].desc;" (assignment_expression "pcVar6 = dpc_arr[0].desc" identifier = (field_expression "dpc_arr[0].desc" (subscript_expression "dpc_arr[0]" identifier [ number_literal ]) . field_identifier)) ;) (if_statement "if (dpc_arr[0].page_code != uVar8) {\n          if (dpc_arr[0].page_code <= (int)uVar8) {\n            pdVar4 = dpc_arr;\n            do {\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            } while ((int)uVar2 <= (int)uVar8);\n          }\n          goto LAB_000161d0;\n        }" if (parenthesized_expression "(dpc_arr[0].page_code != uVar8)" ( (binary_expression "dpc_arr[0].page_code != uVar8" (field_expression "dpc_arr[0].page_code" (subscript_expression "dpc_arr[0]" identifier [ number_literal ]) . field_identifier) != identifier) )) (compound_statement "{\n          if (dpc_arr[0].page_code <= (int)uVar8) {\n            pdVar4 = dpc_arr;\n            do {\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            } while ((int)uVar2 <= (int)uVar8);\n          }\n          goto LAB_000161d0;\n        }" { (if_statement "if (dpc_arr[0].page_code <= (int)uVar8) {\n            pdVar4 = dpc_arr;\n            do {\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            } while ((int)uVar2 <= (int)uVar8);\n          }" if (parenthesized_expression "(dpc_arr[0].page_code <= (int)uVar8)" ( (binary_expression "dpc_arr[0].page_code <= (int)uVar8" (field_expression "dpc_arr[0].page_code" (subscript_expression "dpc_arr[0]" identifier [ number_literal ]) . field_identifier) <= (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            pdVar4 = dpc_arr;\n            do {\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            } while ((int)uVar2 <= (int)uVar8);\n          }" { (expression_statement "pdVar4 = dpc_arr;" (assignment_expression "pdVar4 = dpc_arr" identifier = identifier) ;) (do_statement "do {\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            } while ((int)uVar2 <= (int)uVar8);" do (compound_statement "{\n              pcVar6 = pdVar4[1].desc;\n              if (pcVar6 == (char *)0x0) break;\n              uVar2 = pdVar4[1].page_code;\n              if (uVar2 == uVar8) goto LAB_00016208;\n              pdVar4 = pdVar4 + 1;\n            }" { (expression_statement "pcVar6 = pdVar4[1].desc;" (assignment_expression "pcVar6 = pdVar4[1].desc" identifier = (field_expression "pdVar4[1].desc" (subscript_expression "pdVar4[1]" identifier [ number_literal ]) . field_identifier)) ;) (if_statement "if (pcVar6 == (char *)0x0) break;" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = pdVar4[1].page_code;" (assignment_expression "uVar2 = pdVar4[1].page_code" identifier = (field_expression "pdVar4[1].page_code" (subscript_expression "pdVar4[1]" identifier [ number_literal ]) . field_identifier)) ;) (if_statement "if (uVar2 == uVar8) goto LAB_00016208;" if (parenthesized_expression "(uVar2 == uVar8)" ( (binary_expression "uVar2 == uVar8" identifier == identifier) )) (goto_statement "goto LAB_00016208;" goto statement_identifier ;)) (expression_statement "pdVar4 = pdVar4 + 1;" (assignment_expression "pdVar4 = pdVar4 + 1" identifier = (binary_expression "pdVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)uVar2 <= (int)uVar8)" ( (binary_expression "(int)uVar2 <= (int)uVar8" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (goto_statement "goto LAB_000161d0;" goto statement_identifier ;) })) (labeled_statement "LAB_00016208:\n        pdVar7 = dp_abbrev;" statement_identifier : (expression_statement "pdVar7 = dp_abbrev;" (assignment_expression "pdVar7 = dp_abbrev" identifier = identifier) ;)) (expression_statement "__printf_chk(1,"  %s [",pcVar6);" (call_expression "__printf_chk(1,"  %s [",pcVar6)" identifier (argument_list "(1,"  %s [",pcVar6)" ( number_literal , (string_literal ""  %s ["" " string_content ") , identifier ))) ;) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (expression_statement "pcVar6 = dp_abbrev[0].abbrev;" (assignment_expression "pcVar6 = dp_abbrev[0].abbrev" identifier = (field_expression "dp_abbrev[0].abbrev" (subscript_expression "dp_abbrev[0]" identifier [ number_literal ]) . field_identifier)) ;) (while_statement "while (pcVar6 != (char *)0x0) {\n          if (pdVar7->page_code == uVar8) {\n            puVar5 = &DAT_0001f995;\n            if (bVar3) {\n              puVar5 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar5,pcVar6);\n            bVar3 = true;\n          }\n          pdVar7 = pdVar7 + 1;\n          pcVar6 = pdVar7->abbrev;\n        }" while (parenthesized_expression "(pcVar6 != (char *)0x0)" ( (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (pdVar7->page_code == uVar8) {\n            puVar5 = &DAT_0001f995;\n            if (bVar3) {\n              puVar5 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar5,pcVar6);\n            bVar3 = true;\n          }\n          pdVar7 = pdVar7 + 1;\n          pcVar6 = pdVar7->abbrev;\n        }" { (if_statement "if (pdVar7->page_code == uVar8) {\n            puVar5 = &DAT_0001f995;\n            if (bVar3) {\n              puVar5 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar5,pcVar6);\n            bVar3 = true;\n          }" if (parenthesized_expression "(pdVar7->page_code == uVar8)" ( (binary_expression "pdVar7->page_code == uVar8" (field_expression "pdVar7->page_code" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            puVar5 = &DAT_0001f995;\n            if (bVar3) {\n              puVar5 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar5,pcVar6);\n            bVar3 = true;\n          }" { (expression_statement "puVar5 = &DAT_0001f995;" (assignment_expression "puVar5 = &DAT_0001f995" identifier = (pointer_expression "&DAT_0001f995" & identifier)) ;) (if_statement "if (bVar3) {\n              puVar5 = &DAT_0001f084;\n            }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n              puVar5 = &DAT_0001f084;\n            }" { (expression_statement "puVar5 = &DAT_0001f084;" (assignment_expression "puVar5 = &DAT_0001f084" identifier = (pointer_expression "&DAT_0001f084" & identifier)) ;) })) (expression_statement "__printf_chk(1,&DAT_0001f086,puVar5,pcVar6);" (call_expression "__printf_chk(1,&DAT_0001f086,puVar5,pcVar6)" identifier (argument_list "(1,&DAT_0001f086,puVar5,pcVar6)" ( number_literal , (pointer_expression "&DAT_0001f086" & identifier) , identifier , identifier ))) ;) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) })) (expression_statement "pdVar7 = pdVar7 + 1;" (assignment_expression "pdVar7 = pdVar7 + 1" identifier = (binary_expression "pdVar7 + 1" identifier + number_literal)) ;) (expression_statement "pcVar6 = pdVar7->abbrev;" (assignment_expression "pcVar6 = pdVar7->abbrev" identifier = (field_expression "pdVar7->abbrev" identifier -> field_identifier)) ;) })) (expression_statement "__printf_chk(1,"] [0x%x]\n",uVar8);" (call_expression "__printf_chk(1,"] [0x%x]\n",uVar8)" identifier (argument_list "(1,"] [0x%x]\n",uVar8)" ( number_literal , (string_literal ""] [0x%x]\n"" " string_content escape_sequence ") , identifier ))) ;) }))) (if_statement "if (resp + resp_len == pbVar9) {\n        return;\n      }" if (parenthesized_expression "(resp + resp_len == pbVar9)" ( (binary_expression "resp + resp_len == pbVar9" (binary_expression "resp + resp_len" identifier + identifier) == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "bVar1 = *pbVar9;" (assignment_expression "bVar1 = *pbVar9" identifier = (pointer_expression "*pbVar9" * identifier)) ;) (expression_statement "pbVar9 = pbVar9 + 1;" (assignment_expression "pbVar9 = pbVar9 + 1" identifier = (binary_expression "pbVar9 + 1" identifier + number_literal)) ;) (expression_statement "bVar3 = uVar8 <= bVar1;" (assignment_expression "bVar3 = uVar8 <= bVar1" identifier = (binary_expression "uVar8 <= bVar1" identifier <= identifier)) ;) (expression_statement "uVar8 = (uint)bVar1;" (assignment_expression "uVar8 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }) while (parenthesized_expression "(bVar3)" ( identifier )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00016140(undefined4 param_1,int param_2,int param_3)\n\n{\n  byte bVar1;\n  bool bVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined **ppuVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  \n  __printf_chk(1,"%s:\n",param_1);\n  if (4 < param_3) {\n    pbVar8 = (byte *)(param_2 + 5);\n    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);\n    do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00016140(undefined4 param_1,int param_2,int param_3)\n\n{\n  byte bVar1;\n  bool bVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined **ppuVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  \n  __printf_chk(1,"%s:\n",param_1);\n  if (4 < param_3) {\n    pbVar8 = (byte *)(param_2 + 5);\n    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);\n    do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00016140(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  bool bVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined **ppuVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  \n  __printf_chk(1,"%s:\n",param_1);\n  if (4 < param_3) {\n    pbVar8 = (byte *)(param_2 + 5);\n    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);\n    do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined **ppuVar6;" type_identifier (pointer_declarator "**ppuVar6" * (pointer_declarator "*ppuVar6" * identifier)) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (expression_statement "__printf_chk(1,"%s:\n",param_1);" (call_expression "__printf_chk(1,"%s:\n",param_1)" identifier (argument_list "(1,"%s:\n",param_1)" ( number_literal , (string_literal ""%s:\n"" " string_content escape_sequence ") , identifier ))) ;) (if_statement "if (4 < param_3) {\n    pbVar8 = (byte *)(param_2 + 5);\n    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);\n    do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);\n  }" if (parenthesized_expression "(4 < param_3)" ( (binary_expression "4 < param_3" number_literal < identifier) )) (compound_statement "{\n    pbVar8 = (byte *)(param_2 + 5);\n    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);\n    do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);\n  }" { (expression_statement "pbVar8 = (byte *)(param_2 + 5);" (assignment_expression "pbVar8 = (byte *)(param_2 + 5)" identifier = (cast_expression "(byte *)(param_2 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 5)" ( (binary_expression "param_2 + 5" identifier + number_literal) )))) ;) (expression_statement "puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);" (assignment_expression "puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4)" identifier = (binary_expression "(undefined *)(uint)*(byte *)(param_2 + 4)" (cast_expression "(undefined *)(uint)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)(param_2 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (do_statement "do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);" do (compound_statement "{\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    }" { (if_statement "if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }" if (parenthesized_expression "(PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0)" ( (binary_expression "PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }" { (labeled_statement "LAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);" statement_identifier : (expression_statement "__printf_chk(1,"  <unknown> [0x%x]\n",puVar7);" (call_expression "__printf_chk(1,"  <unknown> [0x%x]\n",puVar7)" identifier (argument_list "(1,"  <unknown> [0x%x]\n",puVar7)" ( number_literal , (string_literal ""  <unknown> [0x%x]\n"" " string_content escape_sequence ") , identifier ))) ;)) }) (else_clause "else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }" else (compound_statement "{\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }" { (expression_statement "puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;" (assignment_expression "puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924" identifier = identifier) ;) (if_statement "if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }" if (parenthesized_expression "(DAT_0002c920 != puVar7)" ( (binary_expression "DAT_0002c920 != puVar7" identifier != identifier) )) (compound_statement "{\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }" { (if_statement "if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }" if (parenthesized_expression "((int)DAT_0002c920 <= (int)puVar7)" ( (binary_expression "(int)DAT_0002c920 <= (int)puVar7" (cast_expression "(int)DAT_0002c920" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }" { (expression_statement "puVar3 = &DAT_0002c920;" (assignment_expression "puVar3 = &DAT_0002c920" identifier = (pointer_expression "&DAT_0002c920" & identifier)) ;) (do_statement "do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);" do (compound_statement "{\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            }" { (expression_statement "puVar5 = (undefined *)puVar3[3];" (assignment_expression "puVar5 = (undefined *)puVar3[3]" identifier = (cast_expression "(undefined *)puVar3[3]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[3]" identifier [ number_literal ]))) ;) (if_statement "if (puVar5 == (undefined *)0x0) break;" if (parenthesized_expression "(puVar5 == (undefined *)0x0)" ( (binary_expression "puVar5 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "puVar4 = (undefined *)puVar3[2];" (assignment_expression "puVar4 = (undefined *)puVar3[2]" identifier = (cast_expression "(undefined *)puVar3[2]" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[2]" identifier [ number_literal ]))) ;) (if_statement "if (puVar4 == puVar7) goto LAB_00016208;" if (parenthesized_expression "(puVar4 == puVar7)" ( (binary_expression "puVar4 == puVar7" identifier == identifier) )) (goto_statement "goto LAB_00016208;" goto statement_identifier ;)) (expression_statement "puVar3 = puVar3 + 2;" (assignment_expression "puVar3 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)puVar4 <= (int)puVar7)" ( (binary_expression "(int)puVar4 <= (int)puVar7" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (goto_statement "goto LAB_000161d0;" goto statement_identifier ;) })) (labeled_statement "LAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;" statement_identifier : (expression_statement "ppuVar6 = &PTR_DAT_0002c700;" (assignment_expression "ppuVar6 = &PTR_DAT_0002c700" identifier = (pointer_expression "&PTR_DAT_0002c700" & identifier)) ;)) (expression_statement "__printf_chk(1,"  %s [",puVar5);" (call_expression "__printf_chk(1,"  %s [",puVar5)" identifier (argument_list "(1,"  %s [",puVar5)" ( number_literal , (string_literal ""  %s ["" " string_content ") , identifier ))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "puVar5 = PTR_DAT_0002c700;" (assignment_expression "puVar5 = PTR_DAT_0002c700" identifier = identifier) ;) (while_statement "while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }" while (parenthesized_expression "(puVar5 != (undefined *)0x0)" ( (binary_expression "puVar5 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }" { (if_statement "if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }" if (parenthesized_expression "(ppuVar6[1] == puVar7)" ( (binary_expression "ppuVar6[1] == puVar7" (subscript_expression "ppuVar6[1]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }" { (expression_statement "puVar4 = &DAT_0001f995;" (assignment_expression "puVar4 = &DAT_0001f995" identifier = (pointer_expression "&DAT_0001f995" & identifier)) ;) (if_statement "if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n              puVar4 = &DAT_0001f084;\n            }" { (expression_statement "puVar4 = &DAT_0001f084;" (assignment_expression "puVar4 = &DAT_0001f084" identifier = (pointer_expression "&DAT_0001f084" & identifier)) ;) })) (expression_statement "__printf_chk(1,&DAT_0001f086,puVar4,puVar5);" (call_expression "__printf_chk(1,&DAT_0001f086,puVar4,puVar5)" identifier (argument_list "(1,&DAT_0001f086,puVar4,puVar5)" ( number_literal , (pointer_expression "&DAT_0001f086" & identifier) , identifier , identifier ))) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) })) (expression_statement "ppuVar6 = ppuVar6 + 2;" (assignment_expression "ppuVar6 = ppuVar6 + 2" identifier = (binary_expression "ppuVar6 + 2" identifier + number_literal)) ;) (expression_statement "puVar5 = *ppuVar6;" (assignment_expression "puVar5 = *ppuVar6" identifier = (pointer_expression "*ppuVar6" * identifier)) ;) })) (expression_statement "__printf_chk(1,"] [0x%x]\n",puVar7);" (call_expression "__printf_chk(1,"] [0x%x]\n",puVar7)" identifier (argument_list "(1,"] [0x%x]\n",puVar7)" ( number_literal , (string_literal ""] [0x%x]\n"" " string_content escape_sequence ") , identifier ))) ;) }))) (if_statement "if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }" if (parenthesized_expression "((byte *)(param_2 + param_3) == pbVar8)" ( (binary_expression "(byte *)(param_2 + param_3) == pbVar8" (cast_expression "(byte *)(param_2 + param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + param_3)" ( (binary_expression "param_2 + param_3" identifier + identifier) ))) == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = puVar7 <= (undefined *)(uint)bVar1;" (assignment_expression "bVar2 = puVar7 <= (undefined *)(uint)bVar1" identifier = (binary_expression "puVar7 <= (undefined *)(uint)bVar1" identifier <= (cast_expression "(undefined *)(uint)bVar1" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)))) ;) (expression_statement "puVar7 = (undefined *)(uint)bVar1;" (assignment_expression "puVar7 = (undefined *)(uint)bVar1" identifier = (cast_expression "(undefined *)(uint)bVar1" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) }) while (parenthesized_expression "(bVar2)" ( identifier )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( IDENT ))) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT ))) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) })) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;)) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) == IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }) while (parenthesized_expression ( IDENT )) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00016140(undefined4 param_1,int param_2,int param_3)\n\n{\n  byte bVar1;\n  bool bVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined **ppuVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  \n  __printf_chk(1,"%s:\n",param_1);\n  if (4 < param_3) {\n    pbVar8 = (byte *)(param_2 + 5);\n    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);\n    do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00016140(undefined4 param_1,int param_2,int param_3)" (identifier "FUN_00016140") (parameter_list "(undefined4 param_1,int param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  byte bVar1;\n  bool bVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined **ppuVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  \n  __printf_chk(1,"%s:\n",param_1);\n  if (4 < param_3) {\n    pbVar8 = (byte *)(param_2 + 5);\n    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);\n    do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);\n  }\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined **ppuVar6;" (type_identifier "undefined") (pointer_declarator "**ppuVar6" (* "*") (pointer_declarator "*ppuVar6" (* "*") (identifier "ppuVar6"))) (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (expression_statement "__printf_chk(1,"%s:\n",param_1);" (call_expression "__printf_chk(1,"%s:\n",param_1)" (identifier "__printf_chk") (argument_list "(1,"%s:\n",param_1)" (( "(") (number_literal "1") (, ",") (string_literal ""%s:\n"" (" """) (string_content "%s:") (escape_sequence "\n") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (4 < param_3) {\n    pbVar8 = (byte *)(param_2 + 5);\n    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);\n    do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);\n  }" (if "if") (parenthesized_expression "(4 < param_3)" (( "(") (binary_expression "4 < param_3" (number_literal "4") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    pbVar8 = (byte *)(param_2 + 5);\n    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);\n    do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);\n  }" ({ "{") (expression_statement "pbVar8 = (byte *)(param_2 + 5);" (assignment_expression "pbVar8 = (byte *)(param_2 + 5)" (identifier "pbVar8") (= "=") (cast_expression "(byte *)(param_2 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 5)" (( "(") (binary_expression "param_2 + 5" (identifier "param_2") (+ "+") (number_literal "5")) () ")")))) (; ";")) (expression_statement "puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);" (assignment_expression "puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4)" (identifier "puVar7") (= "=") (binary_expression "(undefined *)(uint)*(byte *)(param_2 + 4)" (cast_expression "(undefined *)(uint)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (cast_expression "(byte *)(param_2 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (do_statement "do {\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    } while (bVar2);" (do "do") (compound_statement "{\n      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }\n      if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }\n      bVar1 = *pbVar8;\n      pbVar8 = pbVar8 + 1;\n      bVar2 = puVar7 <= (undefined *)(uint)bVar1;\n      puVar7 = (undefined *)(uint)bVar1;\n    }" ({ "{") (if_statement "if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }\n      else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }" (if "if") (parenthesized_expression "(PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0)" (( "(") (binary_expression "PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0" (identifier "PTR_s_Supported_Diagnostic_Pages_0002c924") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);\n      }" ({ "{") (labeled_statement "LAB_000161d0:\n        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);" (statement_identifier "LAB_000161d0") (: ":") (expression_statement "__printf_chk(1,"  <unknown> [0x%x]\n",puVar7);" (call_expression "__printf_chk(1,"  <unknown> [0x%x]\n",puVar7)" (identifier "__printf_chk") (argument_list "(1,"  <unknown> [0x%x]\n",puVar7)" (( "(") (number_literal "1") (, ",") (string_literal ""  <unknown> [0x%x]\n"" (" """) (string_content "  <unknown> [0x%x]") (escape_sequence "\n") (" """)) (, ",") (identifier "puVar7") () ")"))) (; ";"))) (} "}")) (else_clause "else {\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }" (else "else") (compound_statement "{\n        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;\n        if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }\nLAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;\n        __printf_chk(1,"  %s [",puVar5);\n        bVar2 = false;\n        puVar5 = PTR_DAT_0002c700;\n        while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }\n        __printf_chk(1,"] [0x%x]\n",puVar7);\n      }" ({ "{") (expression_statement "puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;" (assignment_expression "puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924" (identifier "puVar5") (= "=") (identifier "PTR_s_Supported_Diagnostic_Pages_0002c924")) (; ";")) (if_statement "if (DAT_0002c920 != puVar7) {\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }" (if "if") (parenthesized_expression "(DAT_0002c920 != puVar7)" (( "(") (binary_expression "DAT_0002c920 != puVar7" (identifier "DAT_0002c920") (!= "!=") (identifier "puVar7")) () ")")) (compound_statement "{\n          if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }\n          goto LAB_000161d0;\n        }" ({ "{") (if_statement "if ((int)DAT_0002c920 <= (int)puVar7) {\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }" (if "if") (parenthesized_expression "((int)DAT_0002c920 <= (int)puVar7)" (( "(") (binary_expression "(int)DAT_0002c920 <= (int)puVar7" (cast_expression "(int)DAT_0002c920" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_0002c920")) (<= "<=") (cast_expression "(int)puVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar7"))) () ")")) (compound_statement "{\n            puVar3 = &DAT_0002c920;\n            do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);\n          }" ({ "{") (expression_statement "puVar3 = &DAT_0002c920;" (assignment_expression "puVar3 = &DAT_0002c920" (identifier "puVar3") (= "=") (pointer_expression "&DAT_0002c920" (& "&") (identifier "DAT_0002c920"))) (; ";")) (do_statement "do {\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            } while ((int)puVar4 <= (int)puVar7);" (do "do") (compound_statement "{\n              puVar5 = (undefined *)puVar3[3];\n              if (puVar5 == (undefined *)0x0) break;\n              puVar4 = (undefined *)puVar3[2];\n              if (puVar4 == puVar7) goto LAB_00016208;\n              puVar3 = puVar3 + 2;\n            }" ({ "{") (expression_statement "puVar5 = (undefined *)puVar3[3];" (assignment_expression "puVar5 = (undefined *)puVar3[3]" (identifier "puVar5") (= "=") (cast_expression "(undefined *)puVar3[3]" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar3[3]" (identifier "puVar3") ([ "[") (number_literal "3") (] "]")))) (; ";")) (if_statement "if (puVar5 == (undefined *)0x0) break;" (if "if") (parenthesized_expression "(puVar5 == (undefined *)0x0)" (( "(") (binary_expression "puVar5 == (undefined *)0x0" (identifier "puVar5") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar4 = (undefined *)puVar3[2];" (assignment_expression "puVar4 = (undefined *)puVar3[2]" (identifier "puVar4") (= "=") (cast_expression "(undefined *)puVar3[2]" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (puVar4 == puVar7) goto LAB_00016208;" (if "if") (parenthesized_expression "(puVar4 == puVar7)" (( "(") (binary_expression "puVar4 == puVar7" (identifier "puVar4") (== "==") (identifier "puVar7")) () ")")) (goto_statement "goto LAB_00016208;" (goto "goto") (statement_identifier "LAB_00016208") (; ";"))) (expression_statement "puVar3 = puVar3 + 2;" (assignment_expression "puVar3 = puVar3 + 2" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 2" (identifier "puVar3") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)puVar4 <= (int)puVar7)" (( "(") (binary_expression "(int)puVar4 <= (int)puVar7" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (<= "<=") (cast_expression "(int)puVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar7"))) () ")")) (; ";")) (} "}"))) (goto_statement "goto LAB_000161d0;" (goto "goto") (statement_identifier "LAB_000161d0") (; ";")) (} "}"))) (labeled_statement "LAB_00016208:\n        ppuVar6 = &PTR_DAT_0002c700;" (statement_identifier "LAB_00016208") (: ":") (expression_statement "ppuVar6 = &PTR_DAT_0002c700;" (assignment_expression "ppuVar6 = &PTR_DAT_0002c700" (identifier "ppuVar6") (= "=") (pointer_expression "&PTR_DAT_0002c700" (& "&") (identifier "PTR_DAT_0002c700"))) (; ";"))) (expression_statement "__printf_chk(1,"  %s [",puVar5);" (call_expression "__printf_chk(1,"  %s [",puVar5)" (identifier "__printf_chk") (argument_list "(1,"  %s [",puVar5)" (( "(") (number_literal "1") (, ",") (string_literal ""  %s ["" (" """) (string_content "  %s [") (" """)) (, ",") (identifier "puVar5") () ")"))) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (expression_statement "puVar5 = PTR_DAT_0002c700;" (assignment_expression "puVar5 = PTR_DAT_0002c700" (identifier "puVar5") (= "=") (identifier "PTR_DAT_0002c700")) (; ";")) (while_statement "while (puVar5 != (undefined *)0x0) {\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }" (while "while") (parenthesized_expression "(puVar5 != (undefined *)0x0)" (( "(") (binary_expression "puVar5 != (undefined *)0x0" (identifier "puVar5") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }\n          ppuVar6 = ppuVar6 + 2;\n          puVar5 = *ppuVar6;\n        }" ({ "{") (if_statement "if (ppuVar6[1] == puVar7) {\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }" (if "if") (parenthesized_expression "(ppuVar6[1] == puVar7)" (( "(") (binary_expression "ppuVar6[1] == puVar7" (subscript_expression "ppuVar6[1]" (identifier "ppuVar6") ([ "[") (number_literal "1") (] "]")) (== "==") (identifier "puVar7")) () ")")) (compound_statement "{\n            puVar4 = &DAT_0001f995;\n            if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }\n            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);\n            bVar2 = true;\n          }" ({ "{") (expression_statement "puVar4 = &DAT_0001f995;" (assignment_expression "puVar4 = &DAT_0001f995" (identifier "puVar4") (= "=") (pointer_expression "&DAT_0001f995" (& "&") (identifier "DAT_0001f995"))) (; ";")) (if_statement "if (bVar2) {\n              puVar4 = &DAT_0001f084;\n            }" (if "if") (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")")) (compound_statement "{\n              puVar4 = &DAT_0001f084;\n            }" ({ "{") (expression_statement "puVar4 = &DAT_0001f084;" (assignment_expression "puVar4 = &DAT_0001f084" (identifier "puVar4") (= "=") (pointer_expression "&DAT_0001f084" (& "&") (identifier "DAT_0001f084"))) (; ";")) (} "}"))) (expression_statement "__printf_chk(1,&DAT_0001f086,puVar4,puVar5);" (call_expression "__printf_chk(1,&DAT_0001f086,puVar4,puVar5)" (identifier "__printf_chk") (argument_list "(1,&DAT_0001f086,puVar4,puVar5)" (( "(") (number_literal "1") (, ",") (pointer_expression "&DAT_0001f086" (& "&") (identifier "DAT_0001f086")) (, ",") (identifier "puVar4") (, ",") (identifier "puVar5") () ")"))) (; ";")) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (} "}"))) (expression_statement "ppuVar6 = ppuVar6 + 2;" (assignment_expression "ppuVar6 = ppuVar6 + 2" (identifier "ppuVar6") (= "=") (binary_expression "ppuVar6 + 2" (identifier "ppuVar6") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar5 = *ppuVar6;" (assignment_expression "puVar5 = *ppuVar6" (identifier "puVar5") (= "=") (pointer_expression "*ppuVar6" (* "*") (identifier "ppuVar6"))) (; ";")) (} "}"))) (expression_statement "__printf_chk(1,"] [0x%x]\n",puVar7);" (call_expression "__printf_chk(1,"] [0x%x]\n",puVar7)" (identifier "__printf_chk") (argument_list "(1,"] [0x%x]\n",puVar7)" (( "(") (number_literal "1") (, ",") (string_literal ""] [0x%x]\n"" (" """) (string_content "] [0x%x]") (escape_sequence "\n") (" """)) (, ",") (identifier "puVar7") () ")"))) (; ";")) (} "}")))) (if_statement "if ((byte *)(param_2 + param_3) == pbVar8) {\n        return;\n      }" (if "if") (parenthesized_expression "((byte *)(param_2 + param_3) == pbVar8)" (( "(") (binary_expression "(byte *)(param_2 + param_3) == pbVar8" (cast_expression "(byte *)(param_2 + param_3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + param_3)" (( "(") (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3")) () ")"))) (== "==") (identifier "pbVar8")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" (identifier "bVar1") (= "=") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (; ";")) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + 1" (identifier "pbVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar2 = puVar7 <= (undefined *)(uint)bVar1;" (assignment_expression "bVar2 = puVar7 <= (undefined *)(uint)bVar1" (identifier "bVar2") (= "=") (binary_expression "puVar7 <= (undefined *)(uint)bVar1" (identifier "puVar7") (<= "<=") (cast_expression "(undefined *)(uint)bVar1" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))))) (; ";")) (expression_statement "puVar7 = (undefined *)(uint)bVar1;" (assignment_expression "puVar7 = (undefined *)(uint)bVar1" (identifier "puVar7") (= "=") (cast_expression "(undefined *)(uint)bVar1" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(char *leadin,uint8_t *var_3,int var_2)

{
  type_1 var_10;
  type_2 var_6;
  bool bVar3;
  type_3 *var_7;
  type_4 *puVar5;
  char *var_5;
  type_5 *var_8;
  type_2 var_4;
  type_1 *var_9;
  
  var_1(1,"%s:\n",leadin);
  if (4 < var_2) {
    var_9 = var_3 + 5;
    var_4 = (type_2)var_3[4];
    do {
      if (dpc_arr[0].desc == (char *)0x0) {
LAB_000161d0:
        var_1(1,"  <unknown> [0x%x]\n",var_4);
      }
      else {
        var_5 = dpc_arr[0].desc;
        if (dpc_arr[0].page_code != var_4) {
          if (dpc_arr[0].page_code <= (int)var_4) {
            var_7 = dpc_arr;
            do {
              var_5 = var_7[1].desc;
              if (var_5 == (char *)0x0) break;
              var_6 = var_7[1].page_code;
              if (var_6 == var_4) goto LAB_00016208;
              var_7 = var_7 + 1;
            } while ((int)var_6 <= (int)var_4);
          }
          goto LAB_000161d0;
        }
LAB_00016208:
        var_8 = dp_abbrev;
        var_1(1,"  %s [",var_5);
        bVar3 = false;
        var_5 = dp_abbrev[0].abbrev;
        while (var_5 != (char *)0x0) {
          if (var_8->page_code == var_4) {
            puVar5 = &DAT_0001f995;
            if (bVar3) {
              puVar5 = &DAT_0001f084;
            }
            var_1(1,&DAT_0001f086,puVar5,var_5);
            bVar3 = true;
          }
          var_8 = var_8 + 1;
          var_5 = var_8->abbrev;
        }
        var_1(1,"] [0x%x]\n",var_4);
      }
      if (var_3 + var_2 == var_9) {
        return;
      }
      var_10 = *var_9;
      var_9 = var_9 + 1;
      bVar3 = var_4 <= var_10;
      var_4 = (type_2)var_10;
    } while (bVar3);
  }
  return;
}


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

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

void __regparm3 MASKED(undefined4 param_1,int param_2,int param_3)

{
  byte bVar1;
  bool bVar2;
  undefined4 *puVar3;
  undefined *puVar4;
  undefined *puVar5;
  undefined **ppuVar6;
  undefined *puVar7;
  byte *pbVar8;
  
  __printf_chk(1,"%s:\n",param_1);
  if (4 < param_3) {
    pbVar8 = (byte *)(param_2 + 5);
    puVar7 = (undefined *)(uint)*(byte *)(param_2 + 4);
    do {
      if (PTR_s_Supported_Diagnostic_Pages_0002c924 == (undefined *)0x0) {
LAB_000161d0:
        __printf_chk(1,"  <unknown> [0x%x]\n",puVar7);
      }
      else {
        puVar5 = PTR_s_Supported_Diagnostic_Pages_0002c924;
        if (DAT_0002c920 != puVar7) {
          if ((int)DAT_0002c920 <= (int)puVar7) {
            puVar3 = &DAT_0002c920;
            do {
              puVar5 = (undefined *)puVar3[3];
              if (puVar5 == (undefined *)0x0) break;
              puVar4 = (undefined *)puVar3[2];
              if (puVar4 == puVar7) goto LAB_00016208;
              puVar3 = puVar3 + 2;
            } while ((int)puVar4 <= (int)puVar7);
          }
          goto LAB_000161d0;
        }
LAB_00016208:
        ppuVar6 = &PTR_DAT_0002c700;
        __printf_chk(1,"  %s [",puVar5);
        bVar2 = false;
        puVar5 = PTR_DAT_0002c700;
        while (puVar5 != (undefined *)0x0) {
          if (ppuVar6[1] == puVar7) {
            puVar4 = &DAT_0001f995;
            if (bVar2) {
              puVar4 = &DAT_0001f084;
            }
            __printf_chk(1,&DAT_0001f086,puVar4,puVar5);
            bVar2 = true;
          }
          ppuVar6 = ppuVar6 + 2;
          puVar5 = *ppuVar6;
        }
        __printf_chk(1,"] [0x%x]\n",puVar7);
      }
      if ((byte *)(param_2 + param_3) == pbVar8) {
        return;
      }
      bVar1 = *pbVar8;
      pbVar8 = pbVar8 + 1;
      bVar2 = puVar7 <= (undefined *)(uint)bVar1;
      puVar7 = (undefined *)(uint)bVar1;
    } while (bVar2);
  }
  return;
}

