text: /*
   * Copyright (C) 2011-2021 Intel Corporation.
   * SPDX-License-Identifier: MIT
   */
  
  #include <assert.h>
  #include <stdio.h>
  #include "pin.H"
  
  ADDRINT globXmmVal;
  
  VOID AnalysisFunc(ADDRINT xmmVal) { globXmmVal = xmmVal; }
  
  VOID Instruction(INS ins, VOID* v)
  {
      INS_InsertCall(ins, IPOINT_BEFORE, (AFUNPTR)AnalysisFunc, IARG_REG_VALUE, REG_XMM0, IARG_END);
  }
  
  int main(int argc, char* argv[])
  {
      PIN_Init(argc, argv);
  
      INS_AddInstrumentFunction(Instruction, 0);
  
      PIN_StartProgram();
  
      return 0;
  }
  