function divmod32(uint32Array, divisor) {
  let carry = 0;
  for (let i = uint32Array.length - 1; i >= 0; i--) {
    const value = carry * 0x100000000 + uint32Array[i];
    carry = value % divisor;
    uint32Array[i] = Math.floor(value / divisor);
  }
  return carry;
}
@param {Uint32Array} uint32Array Treated as a long base-0x100000000 number, little endian
@param {number} divisor The divisor
@return {number} Modulo (remainder) of the division