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

void S_SET_VALUE(symbolS *s,valueT val)

{
  undefined1 *puVar1;
  segT paVar2;
  
  paVar2 = reg_section;
  if (((uint)s->sy_flags & 1) == 0) {
    (s->sy_value).X_add_number = val;
    *(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2;
  }
  else {
    if ((segT)s->bsym != reg_section) {
      (s->sy_value).X_add_number = val;
      return;
    }
    s = (s->sy_value).X_op_symbol;
    (s->sy_value).X_add_number = val;
    *(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2;
    if (((uint)s->sy_flags & 1) != 0) {
      if (paVar2 != (segT)s->bsym) {
        return;
      }
      s = (s->sy_value).X_op_symbol;
    }
  }
  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_00037fc0(byte *param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = DAT_00077d90;
  if ((*param_1 & 1) == 0) {
    *(undefined4 *)(param_1 + 0x10) = param_2;
    *(undefined4 *)(param_1 + 0x14) = param_3;
    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;
  }
  else {
    if (*(int *)(param_1 + 4) != DAT_00077d90) {
      *(undefined4 *)(param_1 + 0x10) = param_2;
      *(undefined4 *)(param_1 + 0x14) = param_3;
      return;
    }
    param_1 = *(byte **)(param_1 + 0xc);
    *(undefined4 *)(param_1 + 0x10) = param_2;
    *(undefined4 *)(param_1 + 0x14) = param_3;
    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;
    if ((*param_1 & 1) != 0) {
      if (iVar1 != *(int *)(param_1 + 4)) {
        return;
      }
      param_1 = *(byte **)(param_1 + 0xc);
    }
  }
  param_1[1] = param_1[1] & 0xfd;
  return;
}


CALL 0x000161c5
ADD EDX,0x3703b
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x10]
MOV EBX,dword ptr [ESP + 0x14]
TEST byte ptr [EAX],0x1
JNZ 0x00038000
MOVZX EDX,word ptr [EAX + 0x18]
MOV dword ptr [EAX + 0x10],ECX
MOV dword ptr [EAX + 0x14],EBX
AND DX,0xfe00
OR EDX,0x2
MOV word ptr [EAX + 0x18],DX
AND byte ptr [EAX + 0x1],0xfd
POP EBX
POP ESI
RET
LEA EDX,[EDX + 0x8d90]
MOV ESI,dword ptr [EDX]
CMP dword ptr [EAX + 0x4],ESI
JZ 0x00038020
MOV dword ptr [EAX + 0x10],ECX
MOV dword ptr [EAX + 0x14],EBX
POP EBX
POP ESI
RET
MOV EAX,dword ptr [EAX + 0xc]
MOVZX EDX,word ptr [EAX + 0x18]
MOV dword ptr [EAX + 0x10],ECX
MOV dword ptr [EAX + 0x14],EBX
AND DX,0xfe00
OR EDX,0x2
MOV word ptr [EAX + 0x18],DX
TEST byte ptr [EAX],0x1
JZ 0x00037ff4
CMP ESI,dword ptr [EAX + 0x4]
JNZ 0x00037ff8
MOV EAX,dword ptr [EAX + 0xc]
JMP 0x00037ff4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid FUN_00037fc0(byte *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = DAT_00077d90;\n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n  }\n  else {\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}\n\n" comment (function_definition "void FUN_00037fc0(byte *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = DAT_00077d90;\n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n  }\n  else {\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}" primitive_type (function_declarator "FUN_00037fc0(byte *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(byte *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = DAT_00077d90;\n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n  }\n  else {\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = DAT_00077d90;" (assignment_expression "iVar1 = DAT_00077d90" identifier = identifier) ;) (if_statement "if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n  }\n  else {\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\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 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_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) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = param_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) )))) = identifier) ;) (expression_statement "*(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;" (assignment_expression "*(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2" (pointer_expression "*(ushort *)(param_1 + 0x18)" * (cast_expression "(ushort *)(param_1 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(ushort *)(param_1 + 0x18) & 0xfe00 | 2" (binary_expression "*(ushort *)(param_1 + 0x18) & 0xfe00" (pointer_expression "*(ushort *)(param_1 + 0x18)" * (cast_expression "(ushort *)(param_1 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) & number_literal) | number_literal)) ;) }) (else_clause "else {\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n  }" else (compound_statement "{\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) != DAT_00077d90)" ( (binary_expression "*(int *)(param_1 + 4) != DAT_00077d90" (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      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_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) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = param_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) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "param_1 = *(byte **)(param_1 + 0xc);" (assignment_expression "param_1 = *(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 "*(undefined4 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_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) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = param_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) )))) = identifier) ;) (expression_statement "*(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;" (assignment_expression "*(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2" (pointer_expression "*(ushort *)(param_1 + 0x18)" * (cast_expression "(ushort *)(param_1 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(ushort *)(param_1 + 0x18) & 0xfe00 | 2" (binary_expression "*(ushort *)(param_1 + 0x18) & 0xfe00" (pointer_expression "*(ushort *)(param_1 + 0x18)" * (cast_expression "(ushort *)(param_1 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (if_statement "if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\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      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }" { (if_statement "if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }" if (parenthesized_expression "(iVar1 != *(int *)(param_1 + 4))" ( (binary_expression "iVar1 != *(int *)(param_1 + 4)" identifier != (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) ))))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "param_1 = *(byte **)(param_1 + 0xc);" (assignment_expression "param_1 = *(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 "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 S_SET_VALUE(symbolS *s,valueT val)\n\n{\n  undefined1 *puVar1;\n  segT paVar2;\n  \n  paVar2 = reg_section;\n  if (((uint)s->sy_flags & 1) == 0) {\n    (s->sy_value).X_add_number = val;\n    *(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2;\n  }\n  else {\n    if ((segT)s->bsym != reg_section) {\n      (s->sy_value).X_add_number = val;\n      return;\n    }\n    s = (s->sy_value).X_op_symbol;\n    (s->sy_value).X_add_number = val;\n    *(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2;\n    if (((uint)s->sy_flags & 1) != 0) {\n      if (paVar2 != (segT)s->bsym) {\n        return;\n      }\n      s = (s->sy_value).X_op_symbol;\n    }\n  }\n  puVar1 = &(s->sy_flags).field_0x1;\n  *puVar1 = *puVar1 & 0xfd;\n  return;\n}\n\n" comment (function_definition "void S_SET_VALUE(symbolS *s,valueT val)\n\n{\n  undefined1 *puVar1;\n  segT paVar2;\n  \n  paVar2 = reg_section;\n  if (((uint)s->sy_flags & 1) == 0) {\n    (s->sy_value).X_add_number = val;\n    *(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2;\n  }\n  else {\n    if ((segT)s->bsym != reg_section) {\n      (s->sy_value).X_add_number = val;\n      return;\n    }\n    s = (s->sy_value).X_op_symbol;\n    (s->sy_value).X_add_number = val;\n    *(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2;\n    if (((uint)s->sy_flags & 1) != 0) {\n      if (paVar2 != (segT)s->bsym) {\n        return;\n      }\n      s = (s->sy_value).X_op_symbol;\n    }\n  }\n  puVar1 = &(s->sy_flags).field_0x1;\n  *puVar1 = *puVar1 & 0xfd;\n  return;\n}" primitive_type (function_declarator "S_SET_VALUE(symbolS *s,valueT val)" identifier (parameter_list "(symbolS *s,valueT val)" ( (parameter_declaration "symbolS *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "valueT val" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  segT paVar2;\n  \n  paVar2 = reg_section;\n  if (((uint)s->sy_flags & 1) == 0) {\n    (s->sy_value).X_add_number = val;\n    *(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2;\n  }\n  else {\n    if ((segT)s->bsym != reg_section) {\n      (s->sy_value).X_add_number = val;\n      return;\n    }\n    s = (s->sy_value).X_op_symbol;\n    (s->sy_value).X_add_number = val;\n    *(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2;\n    if (((uint)s->sy_flags & 1) != 0) {\n      if (paVar2 != (segT)s->bsym) {\n        return;\n      }\n      s = (s->sy_value).X_op_symbol;\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 "segT paVar2;" type_identifier identifier ;) (expression_statement "paVar2 = reg_section;" (assignment_expression "paVar2 = reg_section" identifier = identifier) ;) (if_statement "if (((uint)s->sy_flags & 1) == 0) {\n    (s->sy_value).X_add_number = val;\n    *(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2;\n  }\n  else {\n    if ((segT)s->bsym != reg_section) {\n      (s->sy_value).X_add_number = val;\n      return;\n    }\n    s = (s->sy_value).X_op_symbol;\n    (s->sy_value).X_add_number = val;\n    *(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2;\n    if (((uint)s->sy_flags & 1) != 0) {\n      if (paVar2 != (segT)s->bsym) {\n        return;\n      }\n      s = (s->sy_value).X_op_symbol;\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_number = val;\n    *(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2;\n  }" { (expression_statement "(s->sy_value).X_add_number = val;" (assignment_expression "(s->sy_value).X_add_number = val" (field_expression "(s->sy_value).X_add_number" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "*(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2;" (assignment_expression "*(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2" (pointer_expression "*(ushort *)&(s->sy_value).field_0x10" * (cast_expression "(ushort *)&(s->sy_value).field_0x10" ( (type_descriptor "ushort *" 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)))) = (binary_expression "*(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2" (binary_expression "*(ushort *)&(s->sy_value).field_0x10 & 0xfe00" (pointer_expression "*(ushort *)&(s->sy_value).field_0x10" * (cast_expression "(ushort *)&(s->sy_value).field_0x10" ( (type_descriptor "ushort *" 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)))) & number_literal) | number_literal)) ;) }) (else_clause "else {\n    if ((segT)s->bsym != reg_section) {\n      (s->sy_value).X_add_number = val;\n      return;\n    }\n    s = (s->sy_value).X_op_symbol;\n    (s->sy_value).X_add_number = val;\n    *(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2;\n    if (((uint)s->sy_flags & 1) != 0) {\n      if (paVar2 != (segT)s->bsym) {\n        return;\n      }\n      s = (s->sy_value).X_op_symbol;\n    }\n  }" else (compound_statement "{\n    if ((segT)s->bsym != reg_section) {\n      (s->sy_value).X_add_number = val;\n      return;\n    }\n    s = (s->sy_value).X_op_symbol;\n    (s->sy_value).X_add_number = val;\n    *(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2;\n    if (((uint)s->sy_flags & 1) != 0) {\n      if (paVar2 != (segT)s->bsym) {\n        return;\n      }\n      s = (s->sy_value).X_op_symbol;\n    }\n  }" { (if_statement "if ((segT)s->bsym != reg_section) {\n      (s->sy_value).X_add_number = val;\n      return;\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      (s->sy_value).X_add_number = val;\n      return;\n    }" { (expression_statement "(s->sy_value).X_add_number = val;" (assignment_expression "(s->sy_value).X_add_number = val" (field_expression "(s->sy_value).X_add_number" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "s = (s->sy_value).X_op_symbol;" (assignment_expression "s = (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 "(s->sy_value).X_add_number = val;" (assignment_expression "(s->sy_value).X_add_number = val" (field_expression "(s->sy_value).X_add_number" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "*(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2;" (assignment_expression "*(ushort *)&(s->sy_value).field_0x10 = *(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2" (pointer_expression "*(ushort *)&(s->sy_value).field_0x10" * (cast_expression "(ushort *)&(s->sy_value).field_0x10" ( (type_descriptor "ushort *" 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)))) = (binary_expression "*(ushort *)&(s->sy_value).field_0x10 & 0xfe00 | 2" (binary_expression "*(ushort *)&(s->sy_value).field_0x10 & 0xfe00" (pointer_expression "*(ushort *)&(s->sy_value).field_0x10" * (cast_expression "(ushort *)&(s->sy_value).field_0x10" ( (type_descriptor "ushort *" 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)))) & number_literal) | number_literal)) ;) (if_statement "if (((uint)s->sy_flags & 1) != 0) {\n      if (paVar2 != (segT)s->bsym) {\n        return;\n      }\n      s = (s->sy_value).X_op_symbol;\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      if (paVar2 != (segT)s->bsym) {\n        return;\n      }\n      s = (s->sy_value).X_op_symbol;\n    }" { (if_statement "if (paVar2 != (segT)s->bsym) {\n        return;\n      }" if (parenthesized_expression "(paVar2 != (segT)s->bsym)" ( (binary_expression "paVar2 != (segT)s->bsym" identifier != (cast_expression "(segT)s->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "s->bsym" identifier -> field_identifier))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "s = (s->sy_value).X_op_symbol;" (assignment_expression "s = (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 "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_00037fc0(byte *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = DAT_00077d90;\n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n  }\n  else {\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}\n\n" (function_definition "void FUN_00037fc0(byte *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = DAT_00077d90;\n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n  }\n  else {\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}" primitive_type (function_declarator "FUN_00037fc0(byte *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(byte *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = DAT_00077d90;\n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n  }\n  else {\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = DAT_00077d90;" (assignment_expression "iVar1 = DAT_00077d90" identifier = identifier) ;) (if_statement "if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n  }\n  else {\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\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 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_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) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = param_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) )))) = identifier) ;) (expression_statement "*(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;" (assignment_expression "*(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2" (pointer_expression "*(ushort *)(param_1 + 0x18)" * (cast_expression "(ushort *)(param_1 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(ushort *)(param_1 + 0x18) & 0xfe00 | 2" (binary_expression "*(ushort *)(param_1 + 0x18) & 0xfe00" (pointer_expression "*(ushort *)(param_1 + 0x18)" * (cast_expression "(ushort *)(param_1 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) & number_literal) | number_literal)) ;) }) (else_clause "else {\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n  }" else (compound_statement "{\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) != DAT_00077d90)" ( (binary_expression "*(int *)(param_1 + 4) != DAT_00077d90" (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      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_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) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = param_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) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "param_1 = *(byte **)(param_1 + 0xc);" (assignment_expression "param_1 = *(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 "*(undefined4 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_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) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = param_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) )))) = identifier) ;) (expression_statement "*(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;" (assignment_expression "*(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2" (pointer_expression "*(ushort *)(param_1 + 0x18)" * (cast_expression "(ushort *)(param_1 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(ushort *)(param_1 + 0x18) & 0xfe00 | 2" (binary_expression "*(ushort *)(param_1 + 0x18) & 0xfe00" (pointer_expression "*(ushort *)(param_1 + 0x18)" * (cast_expression "(ushort *)(param_1 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (if_statement "if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\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      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }" { (if_statement "if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }" if (parenthesized_expression "(iVar1 != *(int *)(param_1 + 4))" ( (binary_expression "iVar1 != *(int *)(param_1 + 4)" identifier != (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) ))))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "param_1 = *(byte **)(param_1 + 0xc);" (assignment_expression "param_1 = *(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 "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 IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = 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) )))) = IDENT) ;) (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) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | 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 (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) ;) (return_statement return ;) })) (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 (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) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (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 (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) & LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00037fc0(byte *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = DAT_00077d90;\n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n  }\n  else {\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00037fc0(byte *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00037fc0") (parameter_list "(byte *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (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")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = DAT_00077d90;\n  if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n  }\n  else {\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n  }\n  param_1[1] = param_1[1] & 0xfd;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = DAT_00077d90;" (assignment_expression "iVar1 = DAT_00077d90" (identifier "iVar1") (= "=") (identifier "DAT_00077d90")) (; ";")) (if_statement "if ((*param_1 & 1) == 0) {\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n  }\n  else {\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\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 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_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")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x14) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = param_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")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;" (assignment_expression "*(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2" (pointer_expression "*(ushort *)(param_1 + 0x18)" (* "*") (cast_expression "(ushort *)(param_1 + 0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "*(ushort *)(param_1 + 0x18) & 0xfe00 | 2" (binary_expression "*(ushort *)(param_1 + 0x18) & 0xfe00" (pointer_expression "*(ushort *)(param_1 + 0x18)" (* "*") (cast_expression "(ushort *)(param_1 + 0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (& "&") (number_literal "0xfe00")) (| "|") (number_literal "2"))) (; ";")) (} "}")) (else_clause "else {\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n  }" (else "else") (compound_statement "{\n    if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0xc);\n    *(undefined4 *)(param_1 + 0x10) = param_2;\n    *(undefined4 *)(param_1 + 0x14) = param_3;\n    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;\n    if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 4) != DAT_00077d90) {\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) != DAT_00077d90)" (( "(") (binary_expression "*(int *)(param_1 + 4) != DAT_00077d90" (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_00077d90")) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x10) = param_2;\n      *(undefined4 *)(param_1 + 0x14) = param_3;\n      return;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_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")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x14) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = param_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")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_1 = *(byte **)(param_1 + 0xc);" (assignment_expression "param_1 = *(byte **)(param_1 + 0xc)" (identifier "param_1") (= "=") (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 "*(undefined4 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_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")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x14) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = param_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")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;" (assignment_expression "*(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2" (pointer_expression "*(ushort *)(param_1 + 0x18)" (* "*") (cast_expression "(ushort *)(param_1 + 0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "*(ushort *)(param_1 + 0x18) & 0xfe00 | 2" (binary_expression "*(ushort *)(param_1 + 0x18) & 0xfe00" (pointer_expression "*(ushort *)(param_1 + 0x18)" (* "*") (cast_expression "(ushort *)(param_1 + 0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (& "&") (number_literal "0xfe00")) (| "|") (number_literal "2"))) (; ";")) (if_statement "if ((*param_1 & 1) != 0) {\n      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\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      if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n    }" ({ "{") (if_statement "if (iVar1 != *(int *)(param_1 + 4)) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar1 != *(int *)(param_1 + 4))" (( "(") (binary_expression "iVar1 != *(int *)(param_1 + 4)" (identifier "iVar1") (!= "!=") (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")) () ")"))))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_1 = *(byte **)(param_1 + 0xc);" (assignment_expression "param_1 = *(byte **)(param_1 + 0xc)" (identifier "param_1") (= "=") (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 "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 val)

{
  type_3 *puVar1;
  type_4 var_2;
  
  var_2 = var_1;
  if (((type_5)s->sy_flags & 1) == 0) {
    (s->sy_value).X_add_number = val;
    *(type_6 *)&(s->sy_value).field_0x10 = *(type_6 *)&(s->sy_value).field_0x10 & 0xfe00 | 2;
  }
  else {
    if ((type_4)s->bsym != var_1) {
      (s->sy_value).X_add_number = val;
      return;
    }
    s = (s->sy_value).X_op_symbol;
    (s->sy_value).X_add_number = val;
    *(type_6 *)&(s->sy_value).field_0x10 = *(type_6 *)&(s->sy_value).field_0x10 & 0xfe00 | 2;
    if (((type_5)s->sy_flags & 1) != 0) {
      if (var_2 != (type_4)s->bsym) {
        return;
      }
      s = (s->sy_value).X_op_symbol;
    }
  }
  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: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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: (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))) (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: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (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: (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))) (return_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: (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))) (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: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (number_literal)))) (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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_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: (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,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = DAT_00077d90;
  if ((*param_1 & 1) == 0) {
    *(undefined4 *)(param_1 + 0x10) = param_2;
    *(undefined4 *)(param_1 + 0x14) = param_3;
    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;
  }
  else {
    if (*(int *)(param_1 + 4) != DAT_00077d90) {
      *(undefined4 *)(param_1 + 0x10) = param_2;
      *(undefined4 *)(param_1 + 0x14) = param_3;
      return;
    }
    param_1 = *(byte **)(param_1 + 0xc);
    *(undefined4 *)(param_1 + 0x10) = param_2;
    *(undefined4 *)(param_1 + 0x14) = param_3;
    *(ushort *)(param_1 + 0x18) = *(ushort *)(param_1 + 0x18) & 0xfe00 | 2;
    if ((*param_1 & 1) != 0) {
      if (iVar1 != *(int *)(param_1 + 4)) {
        return;
      }
      param_1 = *(byte **)(param_1 + 0xc);
    }
  }
  param_1[1] = param_1[1] & 0xfd;
  return;
}

