
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void symbol_set_value_expression(symbolS *s,expressionS *exp)

{
  undefined1 *puVar1;
  byte bVar2;
  symbolS *psVar3;
  ushort uVar4;
  symbolS *psVar5;
  
  if (((uint)s->sy_flags & 1) == 0) {
    (s->sy_value).X_add_symbol = exp->X_add_symbol;
    (s->sy_value).X_op_symbol = exp->X_op_symbol;
    *(int *)&(s->sy_value).X_add_number = (int)exp->X_add_number;
    *(undefined4 *)((int)&(s->sy_value).X_add_number + 4) =
         *(undefined4 *)((int)&exp->X_add_number + 4);
    uVar4 = exp->X_md;
    *(undefined2 *)&(s->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10;
    (s->sy_value).X_md = uVar4;
  }
  else {
    if ((segT)s->bsym == reg_section) {
      psVar5 = (s->sy_value).X_op_symbol;
      bVar2 = *(byte *)&psVar5->sy_flags;
    }
    else {
      psVar5 = local_symbol_convert((local_symbol *)s);
      bVar2 = *(byte *)&psVar5->sy_flags;
    }
    (psVar5->sy_value).X_add_symbol = exp->X_add_symbol;
    psVar3 = exp->X_op_symbol;
    (psVar5->sy_value).X_op_symbol = psVar3;
    *(int *)&(psVar5->sy_value).X_add_number = (int)exp->X_add_number;
    *(undefined4 *)((int)&(psVar5->sy_value).X_add_number + 4) =
         *(undefined4 *)((int)&exp->X_add_number + 4);
    uVar4 = exp->X_md;
    *(undefined2 *)&(psVar5->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10;
    (psVar5->sy_value).X_md = uVar4;
    s = psVar5;
    if (((bVar2 & 1) != 0) && (s = psVar3, (segT)psVar5->bsym != reg_section)) {
      return;
    }
  }
  puVar1 = &(s->sy_flags).field_0x1;
  *puVar1 = *puVar1 & 0xfd;
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void FUN_0003a040(byte *param_1,undefined4 *param_2)

{
  byte bVar1;
  byte *pbVar2;
  byte *pbVar3;
  
  if ((*param_1 & 1) == 0) {
    *(undefined4 *)(param_1 + 8) = *param_2;
    *(undefined4 *)(param_1 + 0xc) = param_2[1];
    *(undefined4 *)(param_1 + 0x10) = param_2[2];
    *(undefined4 *)(param_1 + 0x14) = param_2[3];
    *(undefined4 *)(param_1 + 0x18) = param_2[4];
  }
  else {
    if (*(int *)(param_1 + 4) == DAT_00070e90) {
      pbVar3 = *(byte **)(param_1 + 0xc);
      bVar1 = *pbVar3;
    }
    else {
      pbVar3 = (byte *)FUN_00037770();
      bVar1 = *pbVar3;
    }
    *(undefined4 *)(pbVar3 + 8) = *param_2;
    pbVar2 = (byte *)param_2[1];
    *(byte **)(pbVar3 + 0xc) = pbVar2;
    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];
    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];
    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];
    param_1 = pbVar3;
    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {
      return;
    }
  }
  param_1[1] = param_1[1] & 0xfd;
  return;
}


CALL 0x00015155
ADD EDX,0x2dfbb
PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x10]
MOV EBX,dword ptr [ESP + 0x14]
TEST byte ptr [EAX],0x1
JZ 0x0003a0a0
LEA ESI,[EDX + 0x8e90]
MOV ECX,dword ptr [ESI]
CMP dword ptr [EAX + 0x4],ECX
JZ 0x0003a0c8
CALL 0x00037770
MOVZX EDX,byte ptr [EAX]
AND EDX,0x1
MOV ECX,dword ptr [EBX]
MOV dword ptr [EAX + 0x8],ECX
MOV ECX,dword ptr [EBX + 0x4]
MOV dword ptr [EAX + 0xc],ECX
MOV EDI,dword ptr [EBX + 0x8]
MOV dword ptr [EAX + 0x10],EDI
MOV EDI,dword ptr [EBX + 0xc]
MOV dword ptr [EAX + 0x14],EDI
MOV EBX,dword ptr [EBX + 0x10]
MOV dword ptr [EAX + 0x18],EBX
TEST DL,DL
JZ 0x0003a0bd
MOV ESI,dword ptr [ESI]
CMP dword ptr [EAX + 0x4],ESI
JNZ 0x0003a0c1
MOV EAX,ECX
JMP 0x0003a0bd
MOV EDX,dword ptr [EBX]
MOV dword ptr [EAX + 0x8],EDX
MOV EDX,dword ptr [EBX + 0x4]
MOV dword ptr [EAX + 0xc],EDX
MOV EDX,dword ptr [EBX + 0x8]
MOV dword ptr [EAX + 0x10],EDX
MOV EDX,dword ptr [EBX + 0xc]
MOV dword ptr [EAX + 0x14],EDX
MOV EDX,dword ptr [EBX + 0x10]
MOV dword ptr [EAX + 0x18],EDX
AND byte ptr [EAX + 0x1],0xfd
POP EBX
POP ESI
POP EDI
RET
MOV EAX,dword ptr [EAX + 0xc]
MOVZX EDX,byte ptr [EAX]
AND EDX,0x1
JMP 0x0003a073
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid FUN_0003a040(byte *param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 8) = *param_2;\n    *(undefined4 *)(param_1 + 0xc) = param_2[1];\n    *(undefined4 *)(param_1 + 0x10) = param_2[2];\n    *(undefined4 *)(param_1 + 0x14) = param_2[3];\n    *(undefined4 *)(param_1 + 0x18) = param_2[4];\n  }\n  else {\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}\n\n" comment (function_definition "void FUN_0003a040(byte *param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 8) = *param_2;\n    *(undefined4 *)(param_1 + 0xc) = param_2[1];\n    *(undefined4 *)(param_1 + 0x10) = param_2[2];\n    *(undefined4 *)(param_1 + 0x14) = param_2[3];\n    *(undefined4 *)(param_1 + 0x18) = param_2[4];\n  }\n  else {\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}" primitive_type (function_declarator "FUN_0003a040(byte *param_1,undefined4 *param_2)" identifier (parameter_list "(byte *param_1,undefined4 *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 8) = *param_2;\n    *(undefined4 *)(param_1 + 0xc) = param_2[1];\n    *(undefined4 *)(param_1 + 0x10) = param_2[2];\n    *(undefined4 *)(param_1 + 0x14) = param_2[3];\n    *(undefined4 *)(param_1 + 0x18) = param_2[4];\n  }\n  else {\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (if_statement "if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 8) = *param_2;\n    *(undefined4 *)(param_1 + 0xc) = param_2[1];\n    *(undefined4 *)(param_1 + 0x10) = param_2[2];\n    *(undefined4 *)(param_1 + 0x14) = param_2[3];\n    *(undefined4 *)(param_1 + 0x18) = param_2[4];\n  }\n  else {\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }" if (parenthesized_expression "((*param_1 & 1) == 0)" ( (binary_expression "(*param_1 & 1) == 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 8) = *param_2;\n    *(undefined4 *)(param_1 + 0xc) = param_2[1];\n    *(undefined4 *)(param_1 + 0x10) = param_2[2];\n    *(undefined4 *)(param_1 + 0x14) = param_2[3];\n    *(undefined4 *)(param_1 + 0x18) = param_2[4];\n  }" { (expression_statement "*(undefined4 *)(param_1 + 8) = *param_2;" (assignment_expression "*(undefined4 *)(param_1 + 8) = *param_2" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = param_2[1];" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = param_2[1]" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = param_2[2];" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_2[2]" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = param_2[3];" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = param_2[3]" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = param_2[4];" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = param_2[4]" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }" else (compound_statement "{\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) == DAT_00070e90)" ( (binary_expression "*(int *)(param_1 + 4) == DAT_00070e90" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }" { (expression_statement "pbVar3 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar3 = *(byte **)(param_1 + 0xc)" identifier = (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) }) (else_clause "else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }" else (compound_statement "{\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }" { (expression_statement "pbVar3 = (byte *)FUN_00037770();" (assignment_expression "pbVar3 = (byte *)FUN_00037770()" identifier = (cast_expression "(byte *)FUN_00037770()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00037770()" identifier (argument_list "()" ( ))))) ;) (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) }))) (expression_statement "*(undefined4 *)(pbVar3 + 8) = *param_2;" (assignment_expression "*(undefined4 *)(pbVar3 + 8) = *param_2" (pointer_expression "*(undefined4 *)(pbVar3 + 8)" * (cast_expression "(undefined4 *)(pbVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 8)" ( (binary_expression "pbVar3 + 8" identifier + number_literal) )))) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "pbVar2 = (byte *)param_2[1];" (assignment_expression "pbVar2 = (byte *)param_2[1]" identifier = (cast_expression "(byte *)param_2[1]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "*(byte **)(pbVar3 + 0xc) = pbVar2;" (assignment_expression "*(byte **)(pbVar3 + 0xc) = pbVar2" (pointer_expression "*(byte **)(pbVar3 + 0xc)" * (cast_expression "(byte **)(pbVar3 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pbVar3 + 0xc)" ( (binary_expression "pbVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pbVar3 + 0x10) = param_2[2];" (assignment_expression "*(undefined4 *)(pbVar3 + 0x10) = param_2[2]" (pointer_expression "*(undefined4 *)(pbVar3 + 0x10)" * (cast_expression "(undefined4 *)(pbVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 0x10)" ( (binary_expression "pbVar3 + 0x10" identifier + number_literal) )))) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(pbVar3 + 0x14) = param_2[3];" (assignment_expression "*(undefined4 *)(pbVar3 + 0x14) = param_2[3]" (pointer_expression "*(undefined4 *)(pbVar3 + 0x14)" * (cast_expression "(undefined4 *)(pbVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 0x14)" ( (binary_expression "pbVar3 + 0x14" identifier + number_literal) )))) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(pbVar3 + 0x18) = param_2[4];" (assignment_expression "*(undefined4 *)(pbVar3 + 0x18) = param_2[4]" (pointer_expression "*(undefined4 *)(pbVar3 + 0x18)" * (cast_expression "(undefined4 *)(pbVar3 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 0x18)" ( (binary_expression "pbVar3 + 0x18" identifier + number_literal) )))) = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (expression_statement "param_1 = pbVar3;" (assignment_expression "param_1 = pbVar3" identifier = identifier) ;) (if_statement "if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }" if (parenthesized_expression "(((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90))" ( (binary_expression "((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)" (parenthesized_expression "((bVar1 & 1) != 0)" ( (binary_expression "(bVar1 & 1) != 0" (parenthesized_expression "(bVar1 & 1)" ( (binary_expression "bVar1 & 1" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)" ( (comma_expression "param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90" (assignment_expression "param_1 = pbVar2" identifier = identifier) , (binary_expression "*(int *)(pbVar3 + 4) != DAT_00070e90" (pointer_expression "*(int *)(pbVar3 + 4)" * (cast_expression "(int *)(pbVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 4)" ( (binary_expression "pbVar3 + 4" identifier + number_literal) )))) != identifier)) ))) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }))) (expression_statement "param_1[1] = param_1[1] & 0xfd;" (assignment_expression "param_1[1] = param_1[1] & 0xfd" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] & 0xfd" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid symbol_set_value_expression(symbolS *s,expressionS *exp)\n\n{\n  undefined1 *puVar1;\n  byte bVar2;\n  symbolS *psVar3;\n  ushort uVar4;\n  symbolS *psVar5;\n  \n  if (((uint)s->sy_flags & 1) == 0) {\n    (s->sy_value).X_add_symbol = exp->X_add_symbol;\n    (s->sy_value).X_op_symbol = exp->X_op_symbol;\n    *(int *)&(s->sy_value).X_add_number = (int)exp->X_add_number;\n    *(undefined4 *)((int)&(s->sy_value).X_add_number + 4) =\n         *(undefined4 *)((int)&exp->X_add_number + 4);\n    uVar4 = exp->X_md;\n    *(undefined2 *)&(s->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10;\n    (s->sy_value).X_md = uVar4;\n  }\n  else {\n    if ((segT)s->bsym == reg_section) {\n      psVar5 = (s->sy_value).X_op_symbol;\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }\n    else {\n      psVar5 = local_symbol_convert((local_symbol *)s);\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }\n    (psVar5->sy_value).X_add_symbol = exp->X_add_symbol;\n    psVar3 = exp->X_op_symbol;\n    (psVar5->sy_value).X_op_symbol = psVar3;\n    *(int *)&(psVar5->sy_value).X_add_number = (int)exp->X_add_number;\n    *(undefined4 *)((int)&(psVar5->sy_value).X_add_number + 4) =\n         *(undefined4 *)((int)&exp->X_add_number + 4);\n    uVar4 = exp->X_md;\n    *(undefined2 *)&(psVar5->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10;\n    (psVar5->sy_value).X_md = uVar4;\n    s = psVar5;\n    if (((bVar2 & 1) != 0) && (s = psVar3, (segT)psVar5->bsym != reg_section)) {\n      return;\n    }\n  }\n  puVar1 = &(s->sy_flags).field_0x1;\n  *puVar1 = *puVar1 & 0xfd;\n  return;\n}\n\n" comment (function_definition "void symbol_set_value_expression(symbolS *s,expressionS *exp)\n\n{\n  undefined1 *puVar1;\n  byte bVar2;\n  symbolS *psVar3;\n  ushort uVar4;\n  symbolS *psVar5;\n  \n  if (((uint)s->sy_flags & 1) == 0) {\n    (s->sy_value).X_add_symbol = exp->X_add_symbol;\n    (s->sy_value).X_op_symbol = exp->X_op_symbol;\n    *(int *)&(s->sy_value).X_add_number = (int)exp->X_add_number;\n    *(undefined4 *)((int)&(s->sy_value).X_add_number + 4) =\n         *(undefined4 *)((int)&exp->X_add_number + 4);\n    uVar4 = exp->X_md;\n    *(undefined2 *)&(s->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10;\n    (s->sy_value).X_md = uVar4;\n  }\n  else {\n    if ((segT)s->bsym == reg_section) {\n      psVar5 = (s->sy_value).X_op_symbol;\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }\n    else {\n      psVar5 = local_symbol_convert((local_symbol *)s);\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }\n    (psVar5->sy_value).X_add_symbol = exp->X_add_symbol;\n    psVar3 = exp->X_op_symbol;\n    (psVar5->sy_value).X_op_symbol = psVar3;\n    *(int *)&(psVar5->sy_value).X_add_number = (int)exp->X_add_number;\n    *(undefined4 *)((int)&(psVar5->sy_value).X_add_number + 4) =\n         *(undefined4 *)((int)&exp->X_add_number + 4);\n    uVar4 = exp->X_md;\n    *(undefined2 *)&(psVar5->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10;\n    (psVar5->sy_value).X_md = uVar4;\n    s = psVar5;\n    if (((bVar2 & 1) != 0) && (s = psVar3, (segT)psVar5->bsym != reg_section)) {\n      return;\n    }\n  }\n  puVar1 = &(s->sy_flags).field_0x1;\n  *puVar1 = *puVar1 & 0xfd;\n  return;\n}" primitive_type (function_declarator "symbol_set_value_expression(symbolS *s,expressionS *exp)" identifier (parameter_list "(symbolS *s,expressionS *exp)" ( (parameter_declaration "symbolS *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "expressionS *exp" type_identifier (pointer_declarator "*exp" * identifier)) ))) (compound_statement "{\n  undefined1 *puVar1;\n  byte bVar2;\n  symbolS *psVar3;\n  ushort uVar4;\n  symbolS *psVar5;\n  \n  if (((uint)s->sy_flags & 1) == 0) {\n    (s->sy_value).X_add_symbol = exp->X_add_symbol;\n    (s->sy_value).X_op_symbol = exp->X_op_symbol;\n    *(int *)&(s->sy_value).X_add_number = (int)exp->X_add_number;\n    *(undefined4 *)((int)&(s->sy_value).X_add_number + 4) =\n         *(undefined4 *)((int)&exp->X_add_number + 4);\n    uVar4 = exp->X_md;\n    *(undefined2 *)&(s->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10;\n    (s->sy_value).X_md = uVar4;\n  }\n  else {\n    if ((segT)s->bsym == reg_section) {\n      psVar5 = (s->sy_value).X_op_symbol;\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }\n    else {\n      psVar5 = local_symbol_convert((local_symbol *)s);\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }\n    (psVar5->sy_value).X_add_symbol = exp->X_add_symbol;\n    psVar3 = exp->X_op_symbol;\n    (psVar5->sy_value).X_op_symbol = psVar3;\n    *(int *)&(psVar5->sy_value).X_add_number = (int)exp->X_add_number;\n    *(undefined4 *)((int)&(psVar5->sy_value).X_add_number + 4) =\n         *(undefined4 *)((int)&exp->X_add_number + 4);\n    uVar4 = exp->X_md;\n    *(undefined2 *)&(psVar5->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10;\n    (psVar5->sy_value).X_md = uVar4;\n    s = psVar5;\n    if (((bVar2 & 1) != 0) && (s = psVar3, (segT)psVar5->bsym != reg_section)) {\n      return;\n    }\n  }\n  puVar1 = &(s->sy_flags).field_0x1;\n  *puVar1 = *puVar1 & 0xfd;\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "symbolS *psVar3;" type_identifier (pointer_declarator "*psVar3" * identifier) ;) (declaration "ushort uVar4;" type_identifier identifier ;) (declaration "symbolS *psVar5;" type_identifier (pointer_declarator "*psVar5" * identifier) ;) (if_statement "if (((uint)s->sy_flags & 1) == 0) {\n    (s->sy_value).X_add_symbol = exp->X_add_symbol;\n    (s->sy_value).X_op_symbol = exp->X_op_symbol;\n    *(int *)&(s->sy_value).X_add_number = (int)exp->X_add_number;\n    *(undefined4 *)((int)&(s->sy_value).X_add_number + 4) =\n         *(undefined4 *)((int)&exp->X_add_number + 4);\n    uVar4 = exp->X_md;\n    *(undefined2 *)&(s->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10;\n    (s->sy_value).X_md = uVar4;\n  }\n  else {\n    if ((segT)s->bsym == reg_section) {\n      psVar5 = (s->sy_value).X_op_symbol;\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }\n    else {\n      psVar5 = local_symbol_convert((local_symbol *)s);\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }\n    (psVar5->sy_value).X_add_symbol = exp->X_add_symbol;\n    psVar3 = exp->X_op_symbol;\n    (psVar5->sy_value).X_op_symbol = psVar3;\n    *(int *)&(psVar5->sy_value).X_add_number = (int)exp->X_add_number;\n    *(undefined4 *)((int)&(psVar5->sy_value).X_add_number + 4) =\n         *(undefined4 *)((int)&exp->X_add_number + 4);\n    uVar4 = exp->X_md;\n    *(undefined2 *)&(psVar5->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10;\n    (psVar5->sy_value).X_md = uVar4;\n    s = psVar5;\n    if (((bVar2 & 1) != 0) && (s = psVar3, (segT)psVar5->bsym != reg_section)) {\n      return;\n    }\n  }" if (parenthesized_expression "(((uint)s->sy_flags & 1) == 0)" ( (binary_expression "((uint)s->sy_flags & 1) == 0" (parenthesized_expression "((uint)s->sy_flags & 1)" ( (binary_expression "(uint)s->sy_flags & 1" (cast_expression "(uint)s->sy_flags" ( (type_descriptor "uint" type_identifier) ) (field_expression "s->sy_flags" identifier -> field_identifier)) & number_literal) )) == number_literal) )) (compound_statement "{\n    (s->sy_value).X_add_symbol = exp->X_add_symbol;\n    (s->sy_value).X_op_symbol = exp->X_op_symbol;\n    *(int *)&(s->sy_value).X_add_number = (int)exp->X_add_number;\n    *(undefined4 *)((int)&(s->sy_value).X_add_number + 4) =\n         *(undefined4 *)((int)&exp->X_add_number + 4);\n    uVar4 = exp->X_md;\n    *(undefined2 *)&(s->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10;\n    (s->sy_value).X_md = uVar4;\n  }" { (expression_statement "(s->sy_value).X_add_symbol = exp->X_add_symbol;" (assignment_expression "(s->sy_value).X_add_symbol = exp->X_add_symbol" (field_expression "(s->sy_value).X_add_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier) = (field_expression "exp->X_add_symbol" identifier -> field_identifier)) ;) (expression_statement "(s->sy_value).X_op_symbol = exp->X_op_symbol;" (assignment_expression "(s->sy_value).X_op_symbol = exp->X_op_symbol" (field_expression "(s->sy_value).X_op_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier) = (field_expression "exp->X_op_symbol" identifier -> field_identifier)) ;) (expression_statement "*(int *)&(s->sy_value).X_add_number = (int)exp->X_add_number;" (assignment_expression "*(int *)&(s->sy_value).X_add_number = (int)exp->X_add_number" (pointer_expression "*(int *)&(s->sy_value).X_add_number" * (cast_expression "(int *)&(s->sy_value).X_add_number" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(s->sy_value).X_add_number" & (field_expression "(s->sy_value).X_add_number" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier)))) = (cast_expression "(int)exp->X_add_number" ( (type_descriptor "int" primitive_type) ) (field_expression "exp->X_add_number" identifier -> field_identifier))) ;) (expression_statement "*(undefined4 *)((int)&(s->sy_value).X_add_number + 4) =\n         *(undefined4 *)((int)&exp->X_add_number + 4);" (assignment_expression "*(undefined4 *)((int)&(s->sy_value).X_add_number + 4) =\n         *(undefined4 *)((int)&exp->X_add_number + 4)" (pointer_expression "*(undefined4 *)((int)&(s->sy_value).X_add_number + 4)" * (cast_expression "(undefined4 *)((int)&(s->sy_value).X_add_number + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(s->sy_value).X_add_number + 4)" ( (binary_expression "(int)&(s->sy_value).X_add_number + 4" (cast_expression "(int)&(s->sy_value).X_add_number" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(s->sy_value).X_add_number" & (field_expression "(s->sy_value).X_add_number" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) = (pointer_expression "*(undefined4 *)((int)&exp->X_add_number + 4)" * (cast_expression "(undefined4 *)((int)&exp->X_add_number + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&exp->X_add_number + 4)" ( (binary_expression "(int)&exp->X_add_number + 4" (cast_expression "(int)&exp->X_add_number" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&exp->X_add_number" & (field_expression "exp->X_add_number" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "uVar4 = exp->X_md;" (assignment_expression "uVar4 = exp->X_md" identifier = (field_expression "exp->X_md" identifier -> field_identifier)) ;) (expression_statement "*(undefined2 *)&(s->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10;" (assignment_expression "*(undefined2 *)&(s->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10" (pointer_expression "*(undefined2 *)&(s->sy_value).field_0x10" * (cast_expression "(undefined2 *)&(s->sy_value).field_0x10" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(s->sy_value).field_0x10" & (field_expression "(s->sy_value).field_0x10" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier)))) = (pointer_expression "*(undefined2 *)&exp->field_0x10" * (cast_expression "(undefined2 *)&exp->field_0x10" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&exp->field_0x10" & (field_expression "exp->field_0x10" identifier -> field_identifier))))) ;) (expression_statement "(s->sy_value).X_md = uVar4;" (assignment_expression "(s->sy_value).X_md = uVar4" (field_expression "(s->sy_value).X_md" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier) = identifier) ;) }) (else_clause "else {\n    if ((segT)s->bsym == reg_section) {\n      psVar5 = (s->sy_value).X_op_symbol;\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }\n    else {\n      psVar5 = local_symbol_convert((local_symbol *)s);\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }\n    (psVar5->sy_value).X_add_symbol = exp->X_add_symbol;\n    psVar3 = exp->X_op_symbol;\n    (psVar5->sy_value).X_op_symbol = psVar3;\n    *(int *)&(psVar5->sy_value).X_add_number = (int)exp->X_add_number;\n    *(undefined4 *)((int)&(psVar5->sy_value).X_add_number + 4) =\n         *(undefined4 *)((int)&exp->X_add_number + 4);\n    uVar4 = exp->X_md;\n    *(undefined2 *)&(psVar5->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10;\n    (psVar5->sy_value).X_md = uVar4;\n    s = psVar5;\n    if (((bVar2 & 1) != 0) && (s = psVar3, (segT)psVar5->bsym != reg_section)) {\n      return;\n    }\n  }" else (compound_statement "{\n    if ((segT)s->bsym == reg_section) {\n      psVar5 = (s->sy_value).X_op_symbol;\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }\n    else {\n      psVar5 = local_symbol_convert((local_symbol *)s);\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }\n    (psVar5->sy_value).X_add_symbol = exp->X_add_symbol;\n    psVar3 = exp->X_op_symbol;\n    (psVar5->sy_value).X_op_symbol = psVar3;\n    *(int *)&(psVar5->sy_value).X_add_number = (int)exp->X_add_number;\n    *(undefined4 *)((int)&(psVar5->sy_value).X_add_number + 4) =\n         *(undefined4 *)((int)&exp->X_add_number + 4);\n    uVar4 = exp->X_md;\n    *(undefined2 *)&(psVar5->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10;\n    (psVar5->sy_value).X_md = uVar4;\n    s = psVar5;\n    if (((bVar2 & 1) != 0) && (s = psVar3, (segT)psVar5->bsym != reg_section)) {\n      return;\n    }\n  }" { (if_statement "if ((segT)s->bsym == reg_section) {\n      psVar5 = (s->sy_value).X_op_symbol;\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }\n    else {\n      psVar5 = local_symbol_convert((local_symbol *)s);\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }" if (parenthesized_expression "((segT)s->bsym == reg_section)" ( (binary_expression "(segT)s->bsym == reg_section" (cast_expression "(segT)s->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "s->bsym" identifier -> field_identifier)) == identifier) )) (compound_statement "{\n      psVar5 = (s->sy_value).X_op_symbol;\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }" { (expression_statement "psVar5 = (s->sy_value).X_op_symbol;" (assignment_expression "psVar5 = (s->sy_value).X_op_symbol" identifier = (field_expression "(s->sy_value).X_op_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "bVar2 = *(byte *)&psVar5->sy_flags;" (assignment_expression "bVar2 = *(byte *)&psVar5->sy_flags" identifier = (pointer_expression "*(byte *)&psVar5->sy_flags" * (cast_expression "(byte *)&psVar5->sy_flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psVar5->sy_flags" & (field_expression "psVar5->sy_flags" identifier -> field_identifier))))) ;) }) (else_clause "else {\n      psVar5 = local_symbol_convert((local_symbol *)s);\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }" else (compound_statement "{\n      psVar5 = local_symbol_convert((local_symbol *)s);\n      bVar2 = *(byte *)&psVar5->sy_flags;\n    }" { (expression_statement "psVar5 = local_symbol_convert((local_symbol *)s);" (assignment_expression "psVar5 = local_symbol_convert((local_symbol *)s)" identifier = (call_expression "local_symbol_convert((local_symbol *)s)" identifier (argument_list "((local_symbol *)s)" ( (cast_expression "(local_symbol *)s" ( (type_descriptor "local_symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "bVar2 = *(byte *)&psVar5->sy_flags;" (assignment_expression "bVar2 = *(byte *)&psVar5->sy_flags" identifier = (pointer_expression "*(byte *)&psVar5->sy_flags" * (cast_expression "(byte *)&psVar5->sy_flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psVar5->sy_flags" & (field_expression "psVar5->sy_flags" identifier -> field_identifier))))) ;) }))) (expression_statement "(psVar5->sy_value).X_add_symbol = exp->X_add_symbol;" (assignment_expression "(psVar5->sy_value).X_add_symbol = exp->X_add_symbol" (field_expression "(psVar5->sy_value).X_add_symbol" (parenthesized_expression "(psVar5->sy_value)" ( (field_expression "psVar5->sy_value" identifier -> field_identifier) )) . field_identifier) = (field_expression "exp->X_add_symbol" identifier -> field_identifier)) ;) (expression_statement "psVar3 = exp->X_op_symbol;" (assignment_expression "psVar3 = exp->X_op_symbol" identifier = (field_expression "exp->X_op_symbol" identifier -> field_identifier)) ;) (expression_statement "(psVar5->sy_value).X_op_symbol = psVar3;" (assignment_expression "(psVar5->sy_value).X_op_symbol = psVar3" (field_expression "(psVar5->sy_value).X_op_symbol" (parenthesized_expression "(psVar5->sy_value)" ( (field_expression "psVar5->sy_value" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "*(int *)&(psVar5->sy_value).X_add_number = (int)exp->X_add_number;" (assignment_expression "*(int *)&(psVar5->sy_value).X_add_number = (int)exp->X_add_number" (pointer_expression "*(int *)&(psVar5->sy_value).X_add_number" * (cast_expression "(int *)&(psVar5->sy_value).X_add_number" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(psVar5->sy_value).X_add_number" & (field_expression "(psVar5->sy_value).X_add_number" (parenthesized_expression "(psVar5->sy_value)" ( (field_expression "psVar5->sy_value" identifier -> field_identifier) )) . field_identifier)))) = (cast_expression "(int)exp->X_add_number" ( (type_descriptor "int" primitive_type) ) (field_expression "exp->X_add_number" identifier -> field_identifier))) ;) (expression_statement "*(undefined4 *)((int)&(psVar5->sy_value).X_add_number + 4) =\n         *(undefined4 *)((int)&exp->X_add_number + 4);" (assignment_expression "*(undefined4 *)((int)&(psVar5->sy_value).X_add_number + 4) =\n         *(undefined4 *)((int)&exp->X_add_number + 4)" (pointer_expression "*(undefined4 *)((int)&(psVar5->sy_value).X_add_number + 4)" * (cast_expression "(undefined4 *)((int)&(psVar5->sy_value).X_add_number + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(psVar5->sy_value).X_add_number + 4)" ( (binary_expression "(int)&(psVar5->sy_value).X_add_number + 4" (cast_expression "(int)&(psVar5->sy_value).X_add_number" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(psVar5->sy_value).X_add_number" & (field_expression "(psVar5->sy_value).X_add_number" (parenthesized_expression "(psVar5->sy_value)" ( (field_expression "psVar5->sy_value" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) = (pointer_expression "*(undefined4 *)((int)&exp->X_add_number + 4)" * (cast_expression "(undefined4 *)((int)&exp->X_add_number + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&exp->X_add_number + 4)" ( (binary_expression "(int)&exp->X_add_number + 4" (cast_expression "(int)&exp->X_add_number" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&exp->X_add_number" & (field_expression "exp->X_add_number" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "uVar4 = exp->X_md;" (assignment_expression "uVar4 = exp->X_md" identifier = (field_expression "exp->X_md" identifier -> field_identifier)) ;) (expression_statement "*(undefined2 *)&(psVar5->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10;" (assignment_expression "*(undefined2 *)&(psVar5->sy_value).field_0x10 = *(undefined2 *)&exp->field_0x10" (pointer_expression "*(undefined2 *)&(psVar5->sy_value).field_0x10" * (cast_expression "(undefined2 *)&(psVar5->sy_value).field_0x10" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(psVar5->sy_value).field_0x10" & (field_expression "(psVar5->sy_value).field_0x10" (parenthesized_expression "(psVar5->sy_value)" ( (field_expression "psVar5->sy_value" identifier -> field_identifier) )) . field_identifier)))) = (pointer_expression "*(undefined2 *)&exp->field_0x10" * (cast_expression "(undefined2 *)&exp->field_0x10" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&exp->field_0x10" & (field_expression "exp->field_0x10" identifier -> field_identifier))))) ;) (expression_statement "(psVar5->sy_value).X_md = uVar4;" (assignment_expression "(psVar5->sy_value).X_md = uVar4" (field_expression "(psVar5->sy_value).X_md" (parenthesized_expression "(psVar5->sy_value)" ( (field_expression "psVar5->sy_value" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "s = psVar5;" (assignment_expression "s = psVar5" identifier = identifier) ;) (if_statement "if (((bVar2 & 1) != 0) && (s = psVar3, (segT)psVar5->bsym != reg_section)) {\n      return;\n    }" if (parenthesized_expression "(((bVar2 & 1) != 0) && (s = psVar3, (segT)psVar5->bsym != reg_section))" ( (binary_expression "((bVar2 & 1) != 0) && (s = psVar3, (segT)psVar5->bsym != reg_section)" (parenthesized_expression "((bVar2 & 1) != 0)" ( (binary_expression "(bVar2 & 1) != 0" (parenthesized_expression "(bVar2 & 1)" ( (binary_expression "bVar2 & 1" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(s = psVar3, (segT)psVar5->bsym != reg_section)" ( (comma_expression "s = psVar3, (segT)psVar5->bsym != reg_section" (assignment_expression "s = psVar3" identifier = identifier) , (binary_expression "(segT)psVar5->bsym != reg_section" (cast_expression "(segT)psVar5->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "psVar5->bsym" identifier -> field_identifier)) != identifier)) ))) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }))) (expression_statement "puVar1 = &(s->sy_flags).field_0x1;" (assignment_expression "puVar1 = &(s->sy_flags).field_0x1" identifier = (pointer_expression "&(s->sy_flags).field_0x1" & (field_expression "(s->sy_flags).field_0x1" (parenthesized_expression "(s->sy_flags)" ( (field_expression "s->sy_flags" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "*puVar1 = *puVar1 & 0xfd;" (assignment_expression "*puVar1 = *puVar1 & 0xfd" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 & 0xfd" (pointer_expression "*puVar1" * identifier) & number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0003a040(byte *param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 8) = *param_2;\n    *(undefined4 *)(param_1 + 0xc) = param_2[1];\n    *(undefined4 *)(param_1 + 0x10) = param_2[2];\n    *(undefined4 *)(param_1 + 0x14) = param_2[3];\n    *(undefined4 *)(param_1 + 0x18) = param_2[4];\n  }\n  else {\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}\n\n" (function_definition "void FUN_0003a040(byte *param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 8) = *param_2;\n    *(undefined4 *)(param_1 + 0xc) = param_2[1];\n    *(undefined4 *)(param_1 + 0x10) = param_2[2];\n    *(undefined4 *)(param_1 + 0x14) = param_2[3];\n    *(undefined4 *)(param_1 + 0x18) = param_2[4];\n  }\n  else {\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}" primitive_type (function_declarator "FUN_0003a040(byte *param_1,undefined4 *param_2)" identifier (parameter_list "(byte *param_1,undefined4 *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 8) = *param_2;\n    *(undefined4 *)(param_1 + 0xc) = param_2[1];\n    *(undefined4 *)(param_1 + 0x10) = param_2[2];\n    *(undefined4 *)(param_1 + 0x14) = param_2[3];\n    *(undefined4 *)(param_1 + 0x18) = param_2[4];\n  }\n  else {\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (if_statement "if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 8) = *param_2;\n    *(undefined4 *)(param_1 + 0xc) = param_2[1];\n    *(undefined4 *)(param_1 + 0x10) = param_2[2];\n    *(undefined4 *)(param_1 + 0x14) = param_2[3];\n    *(undefined4 *)(param_1 + 0x18) = param_2[4];\n  }\n  else {\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }" if (parenthesized_expression "((*param_1 & 1) == 0)" ( (binary_expression "(*param_1 & 1) == 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 8) = *param_2;\n    *(undefined4 *)(param_1 + 0xc) = param_2[1];\n    *(undefined4 *)(param_1 + 0x10) = param_2[2];\n    *(undefined4 *)(param_1 + 0x14) = param_2[3];\n    *(undefined4 *)(param_1 + 0x18) = param_2[4];\n  }" { (expression_statement "*(undefined4 *)(param_1 + 8) = *param_2;" (assignment_expression "*(undefined4 *)(param_1 + 8) = *param_2" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = param_2[1];" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = param_2[1]" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = param_2[2];" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_2[2]" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = param_2[3];" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = param_2[3]" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = param_2[4];" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = param_2[4]" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }" else (compound_statement "{\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) == DAT_00070e90)" ( (binary_expression "*(int *)(param_1 + 4) == DAT_00070e90" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }" { (expression_statement "pbVar3 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar3 = *(byte **)(param_1 + 0xc)" identifier = (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) }) (else_clause "else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }" else (compound_statement "{\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }" { (expression_statement "pbVar3 = (byte *)FUN_00037770();" (assignment_expression "pbVar3 = (byte *)FUN_00037770()" identifier = (cast_expression "(byte *)FUN_00037770()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00037770()" identifier (argument_list "()" ( ))))) ;) (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) }))) (expression_statement "*(undefined4 *)(pbVar3 + 8) = *param_2;" (assignment_expression "*(undefined4 *)(pbVar3 + 8) = *param_2" (pointer_expression "*(undefined4 *)(pbVar3 + 8)" * (cast_expression "(undefined4 *)(pbVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 8)" ( (binary_expression "pbVar3 + 8" identifier + number_literal) )))) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "pbVar2 = (byte *)param_2[1];" (assignment_expression "pbVar2 = (byte *)param_2[1]" identifier = (cast_expression "(byte *)param_2[1]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "*(byte **)(pbVar3 + 0xc) = pbVar2;" (assignment_expression "*(byte **)(pbVar3 + 0xc) = pbVar2" (pointer_expression "*(byte **)(pbVar3 + 0xc)" * (cast_expression "(byte **)(pbVar3 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pbVar3 + 0xc)" ( (binary_expression "pbVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pbVar3 + 0x10) = param_2[2];" (assignment_expression "*(undefined4 *)(pbVar3 + 0x10) = param_2[2]" (pointer_expression "*(undefined4 *)(pbVar3 + 0x10)" * (cast_expression "(undefined4 *)(pbVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 0x10)" ( (binary_expression "pbVar3 + 0x10" identifier + number_literal) )))) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(pbVar3 + 0x14) = param_2[3];" (assignment_expression "*(undefined4 *)(pbVar3 + 0x14) = param_2[3]" (pointer_expression "*(undefined4 *)(pbVar3 + 0x14)" * (cast_expression "(undefined4 *)(pbVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 0x14)" ( (binary_expression "pbVar3 + 0x14" identifier + number_literal) )))) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(pbVar3 + 0x18) = param_2[4];" (assignment_expression "*(undefined4 *)(pbVar3 + 0x18) = param_2[4]" (pointer_expression "*(undefined4 *)(pbVar3 + 0x18)" * (cast_expression "(undefined4 *)(pbVar3 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 0x18)" ( (binary_expression "pbVar3 + 0x18" identifier + number_literal) )))) = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (expression_statement "param_1 = pbVar3;" (assignment_expression "param_1 = pbVar3" identifier = identifier) ;) (if_statement "if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }" if (parenthesized_expression "(((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90))" ( (binary_expression "((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)" (parenthesized_expression "((bVar1 & 1) != 0)" ( (binary_expression "(bVar1 & 1) != 0" (parenthesized_expression "(bVar1 & 1)" ( (binary_expression "bVar1 & 1" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)" ( (comma_expression "param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90" (assignment_expression "param_1 = pbVar2" identifier = identifier) , (binary_expression "*(int *)(pbVar3 + 4) != DAT_00070e90" (pointer_expression "*(int *)(pbVar3 + 4)" * (cast_expression "(int *)(pbVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 4)" ( (binary_expression "pbVar3 + 4" identifier + number_literal) )))) != identifier)) ))) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }))) (expression_statement "param_1[1] = param_1[1] & 0xfd;" (assignment_expression "param_1[1] = param_1[1] & 0xfd" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] & 0xfd" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (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 = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT)) ))) )) (compound_statement { (return_statement return ;) })) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) & LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_0003a040(byte *param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 8) = *param_2;\n    *(undefined4 *)(param_1 + 0xc) = param_2[1];\n    *(undefined4 *)(param_1 + 0x10) = param_2[2];\n    *(undefined4 *)(param_1 + 0x14) = param_2[3];\n    *(undefined4 *)(param_1 + 0x18) = param_2[4];\n  }\n  else {\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0003a040(byte *param_1,undefined4 *param_2)" (identifier "FUN_0003a040") (parameter_list "(byte *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  \n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 8) = *param_2;\n    *(undefined4 *)(param_1 + 0xc) = param_2[1];\n    *(undefined4 *)(param_1 + 0x10) = param_2[2];\n    *(undefined4 *)(param_1 + 0x14) = param_2[3];\n    *(undefined4 *)(param_1 + 0x18) = param_2[4];\n  }\n  else {\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (if_statement "if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 8) = *param_2;\n    *(undefined4 *)(param_1 + 0xc) = param_2[1];\n    *(undefined4 *)(param_1 + 0x10) = param_2[2];\n    *(undefined4 *)(param_1 + 0x14) = param_2[3];\n    *(undefined4 *)(param_1 + 0x18) = param_2[4];\n  }\n  else {\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((*param_1 & 1) == 0)" (( "(") (binary_expression "(*param_1 & 1) == 0" (parenthesized_expression "(*param_1 & 1)" (( "(") (binary_expression "*param_1 & 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 8) = *param_2;\n    *(undefined4 *)(param_1 + 0xc) = param_2[1];\n    *(undefined4 *)(param_1 + 0x10) = param_2[2];\n    *(undefined4 *)(param_1 + 0x14) = param_2[3];\n    *(undefined4 *)(param_1 + 0x18) = param_2[4];\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 8) = *param_2;" (assignment_expression "*(undefined4 *)(param_1 + 8) = *param_2" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xc) = param_2[1];" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = param_2[1]" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = param_2[2];" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_2[2]" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x14) = param_2[3];" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = param_2[3]" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x18) = param_2[4];" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = param_2[4]" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }" (else "else") (compound_statement "{\n    if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }\n    *(undefined4 *)(pbVar3 + 8) = *param_2;\n    pbVar2 = (byte *)param_2[1];\n    *(byte **)(pbVar3 + 0xc) = pbVar2;\n    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];\n    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];\n    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];\n    param_1 = pbVar3;\n    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 4) == DAT_00070e90) {\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }\n    else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) == DAT_00070e90)" (( "(") (binary_expression "*(int *)(param_1 + 4) == DAT_00070e90" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (identifier "DAT_00070e90")) () ")")) (compound_statement "{\n      pbVar3 = *(byte **)(param_1 + 0xc);\n      bVar1 = *pbVar3;\n    }" ({ "{") (expression_statement "pbVar3 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar3 = *(byte **)(param_1 + 0xc)" (identifier "pbVar3") (= "=") (pointer_expression "*(byte **)(param_1 + 0xc)" (* "*") (cast_expression "(byte **)(param_1 + 0xc)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" (identifier "bVar1") (= "=") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3"))) (; ";")) (} "}")) (else_clause "else {\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }" (else "else") (compound_statement "{\n      pbVar3 = (byte *)FUN_00037770();\n      bVar1 = *pbVar3;\n    }" ({ "{") (expression_statement "pbVar3 = (byte *)FUN_00037770();" (assignment_expression "pbVar3 = (byte *)FUN_00037770()" (identifier "pbVar3") (= "=") (cast_expression "(byte *)FUN_00037770()" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00037770()" (identifier "FUN_00037770") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "bVar1 = *pbVar3;" (assignment_expression "bVar1 = *pbVar3" (identifier "bVar1") (= "=") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3"))) (; ";")) (} "}")))) (expression_statement "*(undefined4 *)(pbVar3 + 8) = *param_2;" (assignment_expression "*(undefined4 *)(pbVar3 + 8) = *param_2" (pointer_expression "*(undefined4 *)(pbVar3 + 8)" (* "*") (cast_expression "(undefined4 *)(pbVar3 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar3 + 8)" (( "(") (binary_expression "pbVar3 + 8" (identifier "pbVar3") (+ "+") (number_literal "8")) () ")")))) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "pbVar2 = (byte *)param_2[1];" (assignment_expression "pbVar2 = (byte *)param_2[1]" (identifier "pbVar2") (= "=") (cast_expression "(byte *)param_2[1]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "*(byte **)(pbVar3 + 0xc) = pbVar2;" (assignment_expression "*(byte **)(pbVar3 + 0xc) = pbVar2" (pointer_expression "*(byte **)(pbVar3 + 0xc)" (* "*") (cast_expression "(byte **)(pbVar3 + 0xc)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pbVar3 + 0xc)" (( "(") (binary_expression "pbVar3 + 0xc" (identifier "pbVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "pbVar2")) (; ";")) (expression_statement "*(undefined4 *)(pbVar3 + 0x10) = param_2[2];" (assignment_expression "*(undefined4 *)(pbVar3 + 0x10) = param_2[2]" (pointer_expression "*(undefined4 *)(pbVar3 + 0x10)" (* "*") (cast_expression "(undefined4 *)(pbVar3 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar3 + 0x10)" (( "(") (binary_expression "pbVar3 + 0x10" (identifier "pbVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(pbVar3 + 0x14) = param_2[3];" (assignment_expression "*(undefined4 *)(pbVar3 + 0x14) = param_2[3]" (pointer_expression "*(undefined4 *)(pbVar3 + 0x14)" (* "*") (cast_expression "(undefined4 *)(pbVar3 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar3 + 0x14)" (( "(") (binary_expression "pbVar3 + 0x14" (identifier "pbVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(pbVar3 + 0x18) = param_2[4];" (assignment_expression "*(undefined4 *)(pbVar3 + 0x18) = param_2[4]" (pointer_expression "*(undefined4 *)(pbVar3 + 0x18)" (* "*") (cast_expression "(undefined4 *)(pbVar3 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar3 + 0x18)" (( "(") (binary_expression "pbVar3 + 0x18" (identifier "pbVar3") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "param_1 = pbVar3;" (assignment_expression "param_1 = pbVar3" (identifier "param_1") (= "=") (identifier "pbVar3")) (; ";")) (if_statement "if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {\n      return;\n    }" (if "if") (parenthesized_expression "(((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90))" (( "(") (binary_expression "((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)" (parenthesized_expression "((bVar1 & 1) != 0)" (( "(") (binary_expression "(bVar1 & 1) != 0" (parenthesized_expression "(bVar1 & 1)" (( "(") (binary_expression "bVar1 & 1" (identifier "bVar1") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)" (( "(") (comma_expression "param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90" (assignment_expression "param_1 = pbVar2" (identifier "param_1") (= "=") (identifier "pbVar2")) (, ",") (binary_expression "*(int *)(pbVar3 + 4) != DAT_00070e90" (pointer_expression "*(int *)(pbVar3 + 4)" (* "*") (cast_expression "(int *)(pbVar3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar3 + 4)" (( "(") (binary_expression "pbVar3 + 4" (identifier "pbVar3") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (identifier "DAT_00070e90"))) () ")"))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (expression_statement "param_1[1] = param_1[1] & 0xfd;" (assignment_expression "param_1[1] = param_1[1] & 0xfd" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_1[1] & 0xfd" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "0xfd"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void function_1(type_1 *s,type_2 *exp)

{
  type_3 *puVar1;
  type_4 var_3;
  type_1 *psVar3;
  type_5 uVar4;
  type_1 *psVar5;
  
  if (((type_6)s->sy_flags & 1) == 0) {
    (s->sy_value).X_add_symbol = exp->X_add_symbol;
    (s->sy_value).X_op_symbol = exp->X_op_symbol;
    *(int *)&(s->sy_value).X_add_number = (int)exp->X_add_number;
    *(type_7 *)((int)&(s->sy_value).X_add_number + 4) =
         *(type_7 *)((int)&exp->X_add_number + 4);
    uVar4 = exp->X_md;
    *(type_8 *)&(s->sy_value).field_0x10 = *(type_8 *)&exp->field_0x10;
    (s->sy_value).X_md = uVar4;
  }
  else {
    if ((type_9)s->bsym == var_1) {
      psVar5 = (s->sy_value).X_op_symbol;
      var_3 = *(type_4 *)&psVar5->sy_flags;
    }
    else {
      psVar5 = var_2((type_10 *)s);
      var_3 = *(type_4 *)&psVar5->sy_flags;
    }
    (psVar5->sy_value).X_add_symbol = exp->X_add_symbol;
    psVar3 = exp->X_op_symbol;
    (psVar5->sy_value).X_op_symbol = psVar3;
    *(int *)&(psVar5->sy_value).X_add_number = (int)exp->X_add_number;
    *(type_7 *)((int)&(psVar5->sy_value).X_add_number + 4) =
         *(type_7 *)((int)&exp->X_add_number + 4);
    uVar4 = exp->X_md;
    *(type_8 *)&(psVar5->sy_value).field_0x10 = *(type_8 *)&exp->field_0x10;
    (psVar5->sy_value).X_md = uVar4;
    s = psVar5;
    if (((var_3 & 1) != 0) && (s = psVar3, (type_9)psVar5->bsym != var_1)) {
      return;
    }
  }
  puVar1 = &(s->sy_flags).field_0x1;
  *puVar1 = *puVar1 & 0xfd;
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void MASKED(byte *param_1,undefined4 *param_2)

{
  byte bVar1;
  byte *pbVar2;
  byte *pbVar3;
  
  if ((*param_1 & 1) == 0) {
    *(undefined4 *)(param_1 + 8) = *param_2;
    *(undefined4 *)(param_1 + 0xc) = param_2[1];
    *(undefined4 *)(param_1 + 0x10) = param_2[2];
    *(undefined4 *)(param_1 + 0x14) = param_2[3];
    *(undefined4 *)(param_1 + 0x18) = param_2[4];
  }
  else {
    if (*(int *)(param_1 + 4) == DAT_00070e90) {
      pbVar3 = *(byte **)(param_1 + 0xc);
      bVar1 = *pbVar3;
    }
    else {
      pbVar3 = (byte *)FUN_00037770();
      bVar1 = *pbVar3;
    }
    *(undefined4 *)(pbVar3 + 8) = *param_2;
    pbVar2 = (byte *)param_2[1];
    *(byte **)(pbVar3 + 0xc) = pbVar2;
    *(undefined4 *)(pbVar3 + 0x10) = param_2[2];
    *(undefined4 *)(pbVar3 + 0x14) = param_2[3];
    *(undefined4 *)(pbVar3 + 0x18) = param_2[4];
    param_1 = pbVar3;
    if (((bVar1 & 1) != 0) && (param_1 = pbVar2, *(int *)(pbVar3 + 4) != DAT_00070e90)) {
      return;
    }
  }
  param_1[1] = param_1[1] & 0xfd;
  return;
}

