
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: void set_options(Parameters * this, General_options * options) */

void __thiscall gold::Parameters::set_options(Parameters *this,General_options *options)

{
}



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

void __regparm3
FUN_0030ad00(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)

{
  char cVar1;
  char *__haystack;
  undefined4 uVar2;
  int iVar3;
  char *pcVar4;
  uint uVar5;
  undefined **ppuVar6;
  
  if (*(int *)(param_4 + 8) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);
  }
  *(int *)(param_4 + 8) = param_5;
  if (param_5 != 0) {
    __haystack = *(char **)(param_5 + 0xcc8);
    uVar5 = 0;
    pcVar4 = "task";
    ppuVar6 = (undefined **)&DAT_005d7b44;
    while( true ) {
      pcVar4 = strstr(__haystack,pcVar4);
      if (pcVar4 != (char *)0x0) {
        uVar5 = uVar5 | (uint)*ppuVar6;
      }
      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;
      pcVar4 = ppuVar6[1];
      ppuVar6 = ppuVar6 + 2;
    }
    uVar2 = *(undefined4 *)(param_5 + 0x5a10);
    cVar1 = *(char *)(param_5 + 0x4325);
    *(uint *)(param_4 + 0x14) = uVar5;
    *(undefined4 *)(param_4 + 0x18) = uVar2;
    if (cVar1 == '\0') {
      iVar3 = *(int *)(param_4 + 0xc);
    }
    else {
      iVar3 = *(int *)(param_4 + 0xc);
      *(uint *)(param_4 + 0x14) = uVar5 | 4;
    }
    if (iVar3 != 0) {
      FUN_0030ac50();
      return;
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x2df2f7
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [ESP + 0x34]
MOV EDI,dword ptr [ESI + 0x8]
TEST EDI,EDI
JNZ 0x0030ade3
MOV dword ptr [ESI + 0x8],EBP
TEST EBP,EBP
JZ 0x0030adcd
MOV EAX,dword ptr [EBP + 0xcc8]
XOR ECX,ECX
MOV dword ptr [ESP + 0xc],ESI
LEA EDI,[EBX + 0xfffedb44]
MOV ESI,ECX
MOV dword ptr [ESP + 0x4],EAX
LEA EAX,[EBX + 0xfffedb8c]
MOV dword ptr [ESP + 0x8],EAX
LEA EAX,[EBX + 0xffea0d25]
JMP 0x0030ad63
MOV EAX,dword ptr [EDI + -0x4]
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESP + 0x10]
CALL 0x00039170
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0030ad79
OR ESI,dword ptr [EDI]
ADD EDI,0x8
CMP EDI,dword ptr [ESP + 0x8]
JNZ 0x0030ad60
MOV ECX,ESI
MOV EAX,dword ptr [EBP + 0x5a10]
MOV ESI,dword ptr [ESP + 0xc]
CMP byte ptr [EBP + 0x4325],0x0
MOV dword ptr [ESI + 0x14],ECX
MOV dword ptr [ESI + 0x18],EAX
JNZ 0x0030adb8
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JZ 0x0030adc5
MOV dword ptr [ESP + 0x30],ESI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x0030ac50
MOV EAX,dword ptr [ESI + 0xc]
OR ECX,0x4
MOV dword ptr [ESI + 0x14],ECX
TEST EAX,EAX
JNZ 0x0030ada4
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xffeaa5b0]
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xffe5e26d]
PUSH 0x5c
PUSH EAX
CALL 0x002446e0
LEA EAX,[EBX + 0xffeaa5b8]
PUSH ECX
PUSH EAX
LEA EAX,[EBX + 0xffeaa426]
PUSH 0x5b
PUSH EAX
CALL 0x002446e0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3\nFUN_0030ad00(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  char cVar1;\n  char *__haystack;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  undefined **ppuVar6;\n  \n  if (*(int *)(param_4 + 8) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);\n  }\n  *(int *)(param_4 + 8) = param_5;\n  if (param_5 != 0) {\n    __haystack = *(char **)(param_5 + 0xcc8);\n    uVar5 = 0;\n    pcVar4 = "task";\n    ppuVar6 = (undefined **)&DAT_005d7b44;\n    while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }\n    uVar2 = *(undefined4 *)(param_5 + 0x5a10);\n    cVar1 = *(char *)(param_5 + 0x4325);\n    *(uint *)(param_4 + 0x14) = uVar5;\n    *(undefined4 *)(param_4 + 0x18) = uVar2;\n    if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }\n    if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2);\n}\n\n" comment (function_definition "void __regparm3\nFUN_0030ad00(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  char cVar1;\n  char *__haystack;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  undefined **ppuVar6;\n  \n  if (*(int *)(param_4 + 8) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);\n  }\n  *(int *)(param_4 + 8) = param_5;\n  if (param_5 != 0) {\n    __haystack = *(char **)(param_5 + 0xcc8);\n    uVar5 = 0;\n    pcVar4 = "task";\n    ppuVar6 = (undefined **)&DAT_005d7b44;\n    while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }\n    uVar2 = *(undefined4 *)(param_5 + 0x5a10);\n    cVar1 = *(char *)(param_5 + 0x4325);\n    *(uint *)(param_4 + 0x14) = uVar5;\n    *(undefined4 *)(param_4 + 0x18) = uVar2;\n    if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }\n    if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0030ad00(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  char *__haystack;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  undefined **ppuVar6;\n  \n  if (*(int *)(param_4 + 8) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);\n  }\n  *(int *)(param_4 + 8) = param_5;\n  if (param_5 != 0) {\n    __haystack = *(char **)(param_5 + 0xcc8);\n    uVar5 = 0;\n    pcVar4 = "task";\n    ppuVar6 = (undefined **)&DAT_005d7b44;\n    while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }\n    uVar2 = *(undefined4 *)(param_5 + 0x5a10);\n    cVar1 = *(char *)(param_5 + 0x4325);\n    *(uint *)(param_4 + 0x14) = uVar5;\n    *(undefined4 *)(param_4 + 0x18) = uVar2;\n    if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }\n    if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2);\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *__haystack;" primitive_type (pointer_declarator "*__haystack" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined **ppuVar6;" type_identifier (pointer_declarator "**ppuVar6" * (pointer_declarator "*ppuVar6" * identifier)) ;) (if_statement "if (*(int *)(param_4 + 8) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);\n  }" if (parenthesized_expression "(*(int *)(param_4 + 8) != 0)" ( (binary_expression "*(int *)(param_4 + 8) != 0" (pointer_expression "*(int *)(param_4 + 8)" * (cast_expression "(int *)(param_4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8)" ( (binary_expression "param_4 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);\n  }" { comment (expression_statement "FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);" (call_expression "FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3)" identifier (argument_list "("../../gold/parameters.cc",0x5b,"set_options",param_3)" ( (string_literal ""../../gold/parameters.cc"" " string_content ") , number_literal , (string_literal ""set_options"" " string_content ") , identifier ))) ;) })) (expression_statement "*(int *)(param_4 + 8) = param_5;" (assignment_expression "*(int *)(param_4 + 8) = param_5" (pointer_expression "*(int *)(param_4 + 8)" * (cast_expression "(int *)(param_4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8)" ( (binary_expression "param_4 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_5 != 0) {\n    __haystack = *(char **)(param_5 + 0xcc8);\n    uVar5 = 0;\n    pcVar4 = "task";\n    ppuVar6 = (undefined **)&DAT_005d7b44;\n    while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }\n    uVar2 = *(undefined4 *)(param_5 + 0x5a10);\n    cVar1 = *(char *)(param_5 + 0x4325);\n    *(uint *)(param_4 + 0x14) = uVar5;\n    *(undefined4 *)(param_4 + 0x18) = uVar2;\n    if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }\n    if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }\n    return;\n  }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n    __haystack = *(char **)(param_5 + 0xcc8);\n    uVar5 = 0;\n    pcVar4 = "task";\n    ppuVar6 = (undefined **)&DAT_005d7b44;\n    while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }\n    uVar2 = *(undefined4 *)(param_5 + 0x5a10);\n    cVar1 = *(char *)(param_5 + 0x4325);\n    *(uint *)(param_4 + 0x14) = uVar5;\n    *(undefined4 *)(param_4 + 0x18) = uVar2;\n    if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }\n    if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }\n    return;\n  }" { (expression_statement "__haystack = *(char **)(param_5 + 0xcc8);" (assignment_expression "__haystack = *(char **)(param_5 + 0xcc8)" identifier = (pointer_expression "*(char **)(param_5 + 0xcc8)" * (cast_expression "(char **)(param_5 + 0xcc8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_5 + 0xcc8)" ( (binary_expression "param_5 + 0xcc8" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "pcVar4 = "task";" (assignment_expression "pcVar4 = "task"" identifier = (string_literal ""task"" " string_content ")) ;) (expression_statement "ppuVar6 = (undefined **)&DAT_005d7b44;" (assignment_expression "ppuVar6 = (undefined **)&DAT_005d7b44" identifier = (cast_expression "(undefined **)&DAT_005d7b44" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&DAT_005d7b44" & identifier))) ;) (while_statement "while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }" { (expression_statement "pcVar4 = strstr(__haystack,pcVar4);" (assignment_expression "pcVar4 = strstr(__haystack,pcVar4)" identifier = (call_expression "strstr(__haystack,pcVar4)" identifier (argument_list "(__haystack,pcVar4)" ( identifier , identifier )))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }" { (expression_statement "uVar5 = uVar5 | (uint)*ppuVar6;" (assignment_expression "uVar5 = uVar5 | (uint)*ppuVar6" identifier = (binary_expression "uVar5 | (uint)*ppuVar6" identifier | (binary_expression "(uint)*ppuVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier))) ;) })) (if_statement "if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;" if (parenthesized_expression "(ppuVar6 + 2 == &PTR_PTR_005d7b8c)" ( (binary_expression "ppuVar6 + 2 == &PTR_PTR_005d7b8c" (binary_expression "ppuVar6 + 2" identifier + number_literal) == (pointer_expression "&PTR_PTR_005d7b8c" & identifier)) )) (break_statement "break;" break ;)) (expression_statement "pcVar4 = ppuVar6[1];" (assignment_expression "pcVar4 = ppuVar6[1]" identifier = (subscript_expression "ppuVar6[1]" identifier [ number_literal ])) ;) (expression_statement "ppuVar6 = ppuVar6 + 2;" (assignment_expression "ppuVar6 = ppuVar6 + 2" identifier = (binary_expression "ppuVar6 + 2" identifier + number_literal)) ;) })) (expression_statement "uVar2 = *(undefined4 *)(param_5 + 0x5a10);" (assignment_expression "uVar2 = *(undefined4 *)(param_5 + 0x5a10)" identifier = (pointer_expression "*(undefined4 *)(param_5 + 0x5a10)" * (cast_expression "(undefined4 *)(param_5 + 0x5a10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x5a10)" ( (binary_expression "param_5 + 0x5a10" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *(char *)(param_5 + 0x4325);" (assignment_expression "cVar1 = *(char *)(param_5 + 0x4325)" identifier = (pointer_expression "*(char *)(param_5 + 0x4325)" * (cast_expression "(char *)(param_5 + 0x4325)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x4325)" ( (binary_expression "param_5 + 0x4325" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(param_4 + 0x14) = uVar5;" (assignment_expression "*(uint *)(param_4 + 0x14) = uVar5" (pointer_expression "*(uint *)(param_4 + 0x14)" * (cast_expression "(uint *)(param_4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x14)" ( (binary_expression "param_4 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_4 + 0x18) = uVar2;" (assignment_expression "*(undefined4 *)(param_4 + 0x18) = uVar2" (pointer_expression "*(undefined4 *)(param_4 + 0x18)" * (cast_expression "(undefined4 *)(param_4 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x18)" ( (binary_expression "param_4 + 0x18" identifier + number_literal) )))) = identifier) ;) (if_statement "if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar3 = *(int *)(param_4 + 0xc);\n    }" { (expression_statement "iVar3 = *(int *)(param_4 + 0xc);" (assignment_expression "iVar3 = *(int *)(param_4 + 0xc)" identifier = (pointer_expression "*(int *)(param_4 + 0xc)" * (cast_expression "(int *)(param_4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }" else (compound_statement "{\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }" { (expression_statement "iVar3 = *(int *)(param_4 + 0xc);" (assignment_expression "iVar3 = *(int *)(param_4 + 0xc)" identifier = (pointer_expression "*(int *)(param_4 + 0xc)" * (cast_expression "(int *)(param_4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(param_4 + 0x14) = uVar5 | 4;" (assignment_expression "*(uint *)(param_4 + 0x14) = uVar5 | 4" (pointer_expression "*(uint *)(param_4 + 0x14)" * (cast_expression "(uint *)(param_4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x14)" ( (binary_expression "param_4 + 0x14" identifier + number_literal) )))) = (binary_expression "uVar5 | 4" identifier | number_literal)) ;) }))) (if_statement "if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_0030ac50();\n      return;\n    }" { (expression_statement "FUN_0030ac50();" (call_expression "FUN_0030ac50()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })) comment (expression_statement "FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2);" (call_expression "FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",param_2)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* WARNING: Enum "ELFOSABI": Some values do not have unique names */\n/* DWARF original prototype: void set_options(Parameters * this, General_options * options) */\n\nvoid __thiscall gold::Parameters::set_options(Parameters *this,General_options *options)\n\n{\n}\n\n" comment comment comment comment (function_definition "void __thiscall gold::Parameters::set_options(Parameters *this,General_options *options)\n\n{\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Parameters::" identifier : : identifier : :) (function_declarator "set_options(Parameters *this,General_options *options)" identifier (parameter_list "(Parameters *this,General_options *options)" ( (parameter_declaration "Parameters *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "General_options *options" type_identifier (pointer_declarator "*options" * identifier)) ))) (compound_statement "{\n}" { })))
(translation_unit "void __regparm3\nFUN_0030ad00(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  char cVar1;\n  char *__haystack;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  undefined **ppuVar6;\n  \n  if (*(int *)(param_4 + 8) != 0) {\n                    \n    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);\n  }\n  *(int *)(param_4 + 8) = param_5;\n  if (param_5 != 0) {\n    __haystack = *(char **)(param_5 + 0xcc8);\n    uVar5 = 0;\n    pcVar4 = "task";\n    ppuVar6 = (undefined **)&DAT_005d7b44;\n    while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }\n    uVar2 = *(undefined4 *)(param_5 + 0x5a10);\n    cVar1 = *(char *)(param_5 + 0x4325);\n    *(uint *)(param_4 + 0x14) = uVar5;\n    *(undefined4 *)(param_4 + 0x18) = uVar2;\n    if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }\n    if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }\n    return;\n  }\n                    \n  FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2);\n}\n\n" (function_definition "void __regparm3\nFUN_0030ad00(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  char cVar1;\n  char *__haystack;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  undefined **ppuVar6;\n  \n  if (*(int *)(param_4 + 8) != 0) {\n                    \n    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);\n  }\n  *(int *)(param_4 + 8) = param_5;\n  if (param_5 != 0) {\n    __haystack = *(char **)(param_5 + 0xcc8);\n    uVar5 = 0;\n    pcVar4 = "task";\n    ppuVar6 = (undefined **)&DAT_005d7b44;\n    while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }\n    uVar2 = *(undefined4 *)(param_5 + 0x5a10);\n    cVar1 = *(char *)(param_5 + 0x4325);\n    *(uint *)(param_4 + 0x14) = uVar5;\n    *(undefined4 *)(param_4 + 0x18) = uVar2;\n    if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }\n    if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }\n    return;\n  }\n                    \n  FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0030ad00(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  char *__haystack;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  undefined **ppuVar6;\n  \n  if (*(int *)(param_4 + 8) != 0) {\n                    \n    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);\n  }\n  *(int *)(param_4 + 8) = param_5;\n  if (param_5 != 0) {\n    __haystack = *(char **)(param_5 + 0xcc8);\n    uVar5 = 0;\n    pcVar4 = "task";\n    ppuVar6 = (undefined **)&DAT_005d7b44;\n    while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }\n    uVar2 = *(undefined4 *)(param_5 + 0x5a10);\n    cVar1 = *(char *)(param_5 + 0x4325);\n    *(uint *)(param_4 + 0x14) = uVar5;\n    *(undefined4 *)(param_4 + 0x18) = uVar2;\n    if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }\n    if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }\n    return;\n  }\n                    \n  FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2);\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *__haystack;" primitive_type (pointer_declarator "*__haystack" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined **ppuVar6;" type_identifier (pointer_declarator "**ppuVar6" * (pointer_declarator "*ppuVar6" * identifier)) ;) (if_statement "if (*(int *)(param_4 + 8) != 0) {\n                    \n    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);\n  }" if (parenthesized_expression "(*(int *)(param_4 + 8) != 0)" ( (binary_expression "*(int *)(param_4 + 8) != 0" (pointer_expression "*(int *)(param_4 + 8)" * (cast_expression "(int *)(param_4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8)" ( (binary_expression "param_4 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);\n  }" { (expression_statement "FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);" (call_expression "FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3)" identifier (argument_list "("../../gold/parameters.cc",0x5b,"set_options",param_3)" ( (string_literal ""../../gold/parameters.cc"" " string_content ") , number_literal , (string_literal ""set_options"" " string_content ") , identifier ))) ;) })) (expression_statement "*(int *)(param_4 + 8) = param_5;" (assignment_expression "*(int *)(param_4 + 8) = param_5" (pointer_expression "*(int *)(param_4 + 8)" * (cast_expression "(int *)(param_4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8)" ( (binary_expression "param_4 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_5 != 0) {\n    __haystack = *(char **)(param_5 + 0xcc8);\n    uVar5 = 0;\n    pcVar4 = "task";\n    ppuVar6 = (undefined **)&DAT_005d7b44;\n    while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }\n    uVar2 = *(undefined4 *)(param_5 + 0x5a10);\n    cVar1 = *(char *)(param_5 + 0x4325);\n    *(uint *)(param_4 + 0x14) = uVar5;\n    *(undefined4 *)(param_4 + 0x18) = uVar2;\n    if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }\n    if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }\n    return;\n  }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n    __haystack = *(char **)(param_5 + 0xcc8);\n    uVar5 = 0;\n    pcVar4 = "task";\n    ppuVar6 = (undefined **)&DAT_005d7b44;\n    while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }\n    uVar2 = *(undefined4 *)(param_5 + 0x5a10);\n    cVar1 = *(char *)(param_5 + 0x4325);\n    *(uint *)(param_4 + 0x14) = uVar5;\n    *(undefined4 *)(param_4 + 0x18) = uVar2;\n    if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }\n    if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }\n    return;\n  }" { (expression_statement "__haystack = *(char **)(param_5 + 0xcc8);" (assignment_expression "__haystack = *(char **)(param_5 + 0xcc8)" identifier = (pointer_expression "*(char **)(param_5 + 0xcc8)" * (cast_expression "(char **)(param_5 + 0xcc8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_5 + 0xcc8)" ( (binary_expression "param_5 + 0xcc8" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "pcVar4 = "task";" (assignment_expression "pcVar4 = "task"" identifier = (string_literal ""task"" " string_content ")) ;) (expression_statement "ppuVar6 = (undefined **)&DAT_005d7b44;" (assignment_expression "ppuVar6 = (undefined **)&DAT_005d7b44" identifier = (cast_expression "(undefined **)&DAT_005d7b44" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&DAT_005d7b44" & identifier))) ;) (while_statement "while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }" { (expression_statement "pcVar4 = strstr(__haystack,pcVar4);" (assignment_expression "pcVar4 = strstr(__haystack,pcVar4)" identifier = (call_expression "strstr(__haystack,pcVar4)" identifier (argument_list "(__haystack,pcVar4)" ( identifier , identifier )))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }" { (expression_statement "uVar5 = uVar5 | (uint)*ppuVar6;" (assignment_expression "uVar5 = uVar5 | (uint)*ppuVar6" identifier = (binary_expression "uVar5 | (uint)*ppuVar6" identifier | (binary_expression "(uint)*ppuVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier))) ;) })) (if_statement "if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;" if (parenthesized_expression "(ppuVar6 + 2 == &PTR_PTR_005d7b8c)" ( (binary_expression "ppuVar6 + 2 == &PTR_PTR_005d7b8c" (binary_expression "ppuVar6 + 2" identifier + number_literal) == (pointer_expression "&PTR_PTR_005d7b8c" & identifier)) )) (break_statement "break;" break ;)) (expression_statement "pcVar4 = ppuVar6[1];" (assignment_expression "pcVar4 = ppuVar6[1]" identifier = (subscript_expression "ppuVar6[1]" identifier [ number_literal ])) ;) (expression_statement "ppuVar6 = ppuVar6 + 2;" (assignment_expression "ppuVar6 = ppuVar6 + 2" identifier = (binary_expression "ppuVar6 + 2" identifier + number_literal)) ;) })) (expression_statement "uVar2 = *(undefined4 *)(param_5 + 0x5a10);" (assignment_expression "uVar2 = *(undefined4 *)(param_5 + 0x5a10)" identifier = (pointer_expression "*(undefined4 *)(param_5 + 0x5a10)" * (cast_expression "(undefined4 *)(param_5 + 0x5a10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x5a10)" ( (binary_expression "param_5 + 0x5a10" identifier + number_literal) ))))) ;) (expression_statement "cVar1 = *(char *)(param_5 + 0x4325);" (assignment_expression "cVar1 = *(char *)(param_5 + 0x4325)" identifier = (pointer_expression "*(char *)(param_5 + 0x4325)" * (cast_expression "(char *)(param_5 + 0x4325)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x4325)" ( (binary_expression "param_5 + 0x4325" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(param_4 + 0x14) = uVar5;" (assignment_expression "*(uint *)(param_4 + 0x14) = uVar5" (pointer_expression "*(uint *)(param_4 + 0x14)" * (cast_expression "(uint *)(param_4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x14)" ( (binary_expression "param_4 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_4 + 0x18) = uVar2;" (assignment_expression "*(undefined4 *)(param_4 + 0x18) = uVar2" (pointer_expression "*(undefined4 *)(param_4 + 0x18)" * (cast_expression "(undefined4 *)(param_4 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x18)" ( (binary_expression "param_4 + 0x18" identifier + number_literal) )))) = identifier) ;) (if_statement "if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar3 = *(int *)(param_4 + 0xc);\n    }" { (expression_statement "iVar3 = *(int *)(param_4 + 0xc);" (assignment_expression "iVar3 = *(int *)(param_4 + 0xc)" identifier = (pointer_expression "*(int *)(param_4 + 0xc)" * (cast_expression "(int *)(param_4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }" else (compound_statement "{\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }" { (expression_statement "iVar3 = *(int *)(param_4 + 0xc);" (assignment_expression "iVar3 = *(int *)(param_4 + 0xc)" identifier = (pointer_expression "*(int *)(param_4 + 0xc)" * (cast_expression "(int *)(param_4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(param_4 + 0x14) = uVar5 | 4;" (assignment_expression "*(uint *)(param_4 + 0x14) = uVar5 | 4" (pointer_expression "*(uint *)(param_4 + 0x14)" * (cast_expression "(uint *)(param_4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x14)" ( (binary_expression "param_4 + 0x14" identifier + number_literal) )))) = (binary_expression "uVar5 | 4" identifier | number_literal)) ;) }))) (if_statement "if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_0030ac50();\n      return;\n    }" { (expression_statement "FUN_0030ac50();" (call_expression "FUN_0030ac50()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })) (expression_statement "FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2);" (call_expression "FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",param_2)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression & IDENT))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression (parenthesized_expression ( IDENT )) * IDENT))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) == (pointer_expression & IDENT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT | LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "void __regparm3\nFUN_0030ad00(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  char cVar1;\n  char *__haystack;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  undefined **ppuVar6;\n  \n  if (*(int *)(param_4 + 8) != 0) {\n                    \n    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);\n  }\n  *(int *)(param_4 + 8) = param_5;\n  if (param_5 != 0) {\n    __haystack = *(char **)(param_5 + 0xcc8);\n    uVar5 = 0;\n    pcVar4 = "task";\n    ppuVar6 = (undefined **)&DAT_005d7b44;\n    while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }\n    uVar2 = *(undefined4 *)(param_5 + 0x5a10);\n    cVar1 = *(char *)(param_5 + 0x4325);\n    *(uint *)(param_4 + 0x14) = uVar5;\n    *(undefined4 *)(param_4 + 0x18) = uVar2;\n    if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }\n    if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }\n    return;\n  }\n                    \n  FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2);\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0030ad00(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" (identifier "FUN_0030ad00") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  char cVar1;\n  char *__haystack;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  uint uVar5;\n  undefined **ppuVar6;\n  \n  if (*(int *)(param_4 + 8) != 0) {\n                    \n    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);\n  }\n  *(int *)(param_4 + 8) = param_5;\n  if (param_5 != 0) {\n    __haystack = *(char **)(param_5 + 0xcc8);\n    uVar5 = 0;\n    pcVar4 = "task";\n    ppuVar6 = (undefined **)&DAT_005d7b44;\n    while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }\n    uVar2 = *(undefined4 *)(param_5 + 0x5a10);\n    cVar1 = *(char *)(param_5 + 0x4325);\n    *(uint *)(param_4 + 0x14) = uVar5;\n    *(undefined4 *)(param_4 + 0x18) = uVar2;\n    if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }\n    if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }\n    return;\n  }\n                    \n  FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2);\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char *__haystack;" (primitive_type "char") (pointer_declarator "*__haystack" (* "*") (identifier "__haystack")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined **ppuVar6;" (type_identifier "undefined") (pointer_declarator "**ppuVar6" (* "*") (pointer_declarator "*ppuVar6" (* "*") (identifier "ppuVar6"))) (; ";")) (if_statement "if (*(int *)(param_4 + 8) != 0) {\n                    \n    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_4 + 8) != 0)" (( "(") (binary_expression "*(int *)(param_4 + 8) != 0" (pointer_expression "*(int *)(param_4 + 8)" (* "*") (cast_expression "(int *)(param_4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 8)" (( "(") (binary_expression "param_4 + 8" (identifier "param_4") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);\n  }" ({ "{") (expression_statement "FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);" (call_expression "FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3)" (identifier "FUN_002446e0") (argument_list "("../../gold/parameters.cc",0x5b,"set_options",param_3)" (( "(") (string_literal ""../../gold/parameters.cc"" (" """) (string_content "../../gold/parameters.cc") (" """)) (, ",") (number_literal "0x5b") (, ",") (string_literal ""set_options"" (" """) (string_content "set_options") (" """)) (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}"))) (expression_statement "*(int *)(param_4 + 8) = param_5;" (assignment_expression "*(int *)(param_4 + 8) = param_5" (pointer_expression "*(int *)(param_4 + 8)" (* "*") (cast_expression "(int *)(param_4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 8)" (( "(") (binary_expression "param_4 + 8" (identifier "param_4") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (if_statement "if (param_5 != 0) {\n    __haystack = *(char **)(param_5 + 0xcc8);\n    uVar5 = 0;\n    pcVar4 = "task";\n    ppuVar6 = (undefined **)&DAT_005d7b44;\n    while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }\n    uVar2 = *(undefined4 *)(param_5 + 0x5a10);\n    cVar1 = *(char *)(param_5 + 0x4325);\n    *(uint *)(param_4 + 0x14) = uVar5;\n    *(undefined4 *)(param_4 + 0x18) = uVar2;\n    if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }\n    if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(param_5 != 0)" (( "(") (binary_expression "param_5 != 0" (identifier "param_5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    __haystack = *(char **)(param_5 + 0xcc8);\n    uVar5 = 0;\n    pcVar4 = "task";\n    ppuVar6 = (undefined **)&DAT_005d7b44;\n    while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }\n    uVar2 = *(undefined4 *)(param_5 + 0x5a10);\n    cVar1 = *(char *)(param_5 + 0x4325);\n    *(uint *)(param_4 + 0x14) = uVar5;\n    *(undefined4 *)(param_4 + 0x18) = uVar2;\n    if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }\n    if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }\n    return;\n  }" ({ "{") (expression_statement "__haystack = *(char **)(param_5 + 0xcc8);" (assignment_expression "__haystack = *(char **)(param_5 + 0xcc8)" (identifier "__haystack") (= "=") (pointer_expression "*(char **)(param_5 + 0xcc8)" (* "*") (cast_expression "(char **)(param_5 + 0xcc8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_5 + 0xcc8)" (( "(") (binary_expression "param_5 + 0xcc8" (identifier "param_5") (+ "+") (number_literal "0xcc8")) () ")"))))) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar4 = "task";" (assignment_expression "pcVar4 = "task"" (identifier "pcVar4") (= "=") (string_literal ""task"" (" """) (string_content "task") (" """))) (; ";")) (expression_statement "ppuVar6 = (undefined **)&DAT_005d7b44;" (assignment_expression "ppuVar6 = (undefined **)&DAT_005d7b44" (identifier "ppuVar6") (= "=") (cast_expression "(undefined **)&DAT_005d7b44" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "&DAT_005d7b44" (& "&") (identifier "DAT_005d7b44")))) (; ";")) (while_statement "while( true ) {\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      pcVar4 = strstr(__haystack,pcVar4);\n      if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }\n      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;\n      pcVar4 = ppuVar6[1];\n      ppuVar6 = ppuVar6 + 2;\n    }" ({ "{") (expression_statement "pcVar4 = strstr(__haystack,pcVar4);" (assignment_expression "pcVar4 = strstr(__haystack,pcVar4)" (identifier "pcVar4") (= "=") (call_expression "strstr(__haystack,pcVar4)" (identifier "strstr") (argument_list "(__haystack,pcVar4)" (( "(") (identifier "__haystack") (, ",") (identifier "pcVar4") () ")")))) (; ";")) (if_statement "if (pcVar4 != (char *)0x0) {\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }" (if "if") (parenthesized_expression "(pcVar4 != (char *)0x0)" (( "(") (binary_expression "pcVar4 != (char *)0x0" (identifier "pcVar4") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        uVar5 = uVar5 | (uint)*ppuVar6;\n      }" ({ "{") (expression_statement "uVar5 = uVar5 | (uint)*ppuVar6;" (assignment_expression "uVar5 = uVar5 | (uint)*ppuVar6" (identifier "uVar5") (= "=") (binary_expression "uVar5 | (uint)*ppuVar6" (identifier "uVar5") (| "|") (binary_expression "(uint)*ppuVar6" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "ppuVar6")))) (; ";")) (} "}"))) (if_statement "if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;" (if "if") (parenthesized_expression "(ppuVar6 + 2 == &PTR_PTR_005d7b8c)" (( "(") (binary_expression "ppuVar6 + 2 == &PTR_PTR_005d7b8c" (binary_expression "ppuVar6 + 2" (identifier "ppuVar6") (+ "+") (number_literal "2")) (== "==") (pointer_expression "&PTR_PTR_005d7b8c" (& "&") (identifier "PTR_PTR_005d7b8c"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar4 = ppuVar6[1];" (assignment_expression "pcVar4 = ppuVar6[1]" (identifier "pcVar4") (= "=") (subscript_expression "ppuVar6[1]" (identifier "ppuVar6") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "ppuVar6 = ppuVar6 + 2;" (assignment_expression "ppuVar6 = ppuVar6 + 2" (identifier "ppuVar6") (= "=") (binary_expression "ppuVar6 + 2" (identifier "ppuVar6") (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "uVar2 = *(undefined4 *)(param_5 + 0x5a10);" (assignment_expression "uVar2 = *(undefined4 *)(param_5 + 0x5a10)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_5 + 0x5a10)" (* "*") (cast_expression "(undefined4 *)(param_5 + 0x5a10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x5a10)" (( "(") (binary_expression "param_5 + 0x5a10" (identifier "param_5") (+ "+") (number_literal "0x5a10")) () ")"))))) (; ";")) (expression_statement "cVar1 = *(char *)(param_5 + 0x4325);" (assignment_expression "cVar1 = *(char *)(param_5 + 0x4325)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_5 + 0x4325)" (* "*") (cast_expression "(char *)(param_5 + 0x4325)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x4325)" (( "(") (binary_expression "param_5 + 0x4325" (identifier "param_5") (+ "+") (number_literal "0x4325")) () ")"))))) (; ";")) (expression_statement "*(uint *)(param_4 + 0x14) = uVar5;" (assignment_expression "*(uint *)(param_4 + 0x14) = uVar5" (pointer_expression "*(uint *)(param_4 + 0x14)" (* "*") (cast_expression "(uint *)(param_4 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x14)" (( "(") (binary_expression "param_4 + 0x14" (identifier "param_4") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "*(undefined4 *)(param_4 + 0x18) = uVar2;" (assignment_expression "*(undefined4 *)(param_4 + 0x18) = uVar2" (pointer_expression "*(undefined4 *)(param_4 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_4 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x18)" (( "(") (binary_expression "param_4 + 0x18" (identifier "param_4") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (cVar1 == '\0') {\n      iVar3 = *(int *)(param_4 + 0xc);\n    }\n    else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      iVar3 = *(int *)(param_4 + 0xc);\n    }" ({ "{") (expression_statement "iVar3 = *(int *)(param_4 + 0xc);" (assignment_expression "iVar3 = *(int *)(param_4 + 0xc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_4 + 0xc)" (* "*") (cast_expression "(int *)(param_4 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0xc)" (( "(") (binary_expression "param_4 + 0xc" (identifier "param_4") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }" (else "else") (compound_statement "{\n      iVar3 = *(int *)(param_4 + 0xc);\n      *(uint *)(param_4 + 0x14) = uVar5 | 4;\n    }" ({ "{") (expression_statement "iVar3 = *(int *)(param_4 + 0xc);" (assignment_expression "iVar3 = *(int *)(param_4 + 0xc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_4 + 0xc)" (* "*") (cast_expression "(int *)(param_4 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0xc)" (( "(") (binary_expression "param_4 + 0xc" (identifier "param_4") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*(uint *)(param_4 + 0x14) = uVar5 | 4;" (assignment_expression "*(uint *)(param_4 + 0x14) = uVar5 | 4" (pointer_expression "*(uint *)(param_4 + 0x14)" (* "*") (cast_expression "(uint *)(param_4 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x14)" (( "(") (binary_expression "param_4 + 0x14" (identifier "param_4") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "uVar5 | 4" (identifier "uVar5") (| "|") (number_literal "4"))) (; ";")) (} "}")))) (if_statement "if (iVar3 != 0) {\n      FUN_0030ac50();\n      return;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0030ac50();\n      return;\n    }" ({ "{") (expression_statement "FUN_0030ac50();" (call_expression "FUN_0030ac50()" (identifier "FUN_0030ac50") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2);" (call_expression "FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2)" (identifier "FUN_002446e0") (argument_list "("../../gold/parameters.h",0x5c,"options",param_2)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x5c") (, ",") (string_literal ""options"" (" """) (string_content "options") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: void set_options(Parameters * this, General_options * options) */

void __thiscall gold::type_1::function_1(type_1 *this,type_2 *options)

{
}


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

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

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

{
  char cVar1;
  char *__haystack;
  undefined4 uVar2;
  int iVar3;
  char *pcVar4;
  uint uVar5;
  undefined **ppuVar6;
  
  if (*(int *)(param_4 + 8) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_002446e0("../../gold/parameters.cc",0x5b,"set_options",param_3);
  }
  *(int *)(param_4 + 8) = param_5;
  if (param_5 != 0) {
    __haystack = *(char **)(param_5 + 0xcc8);
    uVar5 = 0;
    pcVar4 = "task";
    ppuVar6 = (undefined **)&DAT_005d7b44;
    while( true ) {
      pcVar4 = strstr(__haystack,pcVar4);
      if (pcVar4 != (char *)0x0) {
        uVar5 = uVar5 | (uint)*ppuVar6;
      }
      if (ppuVar6 + 2 == &PTR_PTR_005d7b8c) break;
      pcVar4 = ppuVar6[1];
      ppuVar6 = ppuVar6 + 2;
    }
    uVar2 = *(undefined4 *)(param_5 + 0x5a10);
    cVar1 = *(char *)(param_5 + 0x4325);
    *(uint *)(param_4 + 0x14) = uVar5;
    *(undefined4 *)(param_4 + 0x18) = uVar2;
    if (cVar1 == '\0') {
      iVar3 = *(int *)(param_4 + 0xc);
    }
    else {
      iVar3 = *(int *)(param_4 + 0xc);
      *(uint *)(param_4 + 0x14) = uVar5 | 4;
    }
    if (iVar3 != 0) {
      FUN_0030ac50();
      return;
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002446e0("../../gold/parameters.h",0x5c,"options",param_2);
}

