This is (should be) the exact equivalent of the Cilia code in C#:

Note
In C# int and 42 are 32 bits wide, not 64 bits.