code: func decompressTxOutAmount(amount uint64) uint64 {
  	// No need to do any work if it's zero.
  	if amount == 0 {
  		return 0
  	}
  
  	// The decompressed amount is either of the following two equations:
  	// x = 1 + 10*(9*n + d - 1) + e
  	// x = 1 + 10*(n - 1)       + 9
  	amount--
  
  	// The decompressed amount is now one of the following two equations:
  	// x = 10*(9*n + d - 1) + e
  	// x = 10*(n - 1)       + 9
  	exponent := amount % 10
  	amount /= 10
  
  	// The decompressed amount is now one of the following two equations:
  	// x = 9*n + d - 1  | where e < 9
  	// x = n - 1        | where e = 9
  	n := uint64(0)
  	if exponent < 9 {
  		lastDigit := amount%9 + 1
  		amount /= 9
  		n = amount*10 + lastDigit
  	} else {
  		n = amount + 1
  	}
  
  	// Apply the exponent.
  	for ; exponent > 0; exponent-- {
  		n *= 10
  	}
  
  	return n
  }
docs: // decompressTxOutAmount returns the original amount the passed compressed
  // amount represents according to the domain specific compression algorithm
  // described above.