// Code generated by libc-gen v0.4.22. DO NOT EDIT.

package sqlite3_wasm

import (
	
	
	
	
	
	
)

func _acos( float64) float64     { return math.Acos() }
func _acosh( float64) float64    { return math.Acosh() }
func _asin( float64) float64     { return math.Asin() }
func _asinh( float64) float64    { return math.Asinh() }
func _atan( float64) float64     { return math.Atan() }
func _atan2(,  float64) float64 { return math.Atan2(, ) }
func _atanh( float64) float64    { return math.Atanh() }

func _cos( float64) float64  { return math.Cos() }
func _cosh( float64) float64 { return math.Cosh() }

func _exp( float64) float64 { return math.Exp() }

func _fmod(,  float64) float64 { return math.Mod(, ) }
func _storetime_r( []byte,  time.Time) {
	const  uint32 = 32 / 8
	var  uint32
	if .IsDST() {
		 = 1
	}
	,  := .Zone()

	store32(, 0*, uint32(.Second()))
	store32(, 1*, uint32(.Minute()))
	store32(, 2*, uint32(.Hour()))
	store32(, 3*, uint32(.Day()))
	store32(, 4*, uint32(.Month()-time.January))
	store32(, 5*, uint32(.Year()-1900))
	store32(, 6*, uint32(.Weekday()-time.Sunday))
	store32(, 7*, uint32(.YearDay()-1))
	store32(, 8*, )
	store32(, 9*, uint32())
	store32(, 10*, 0)
}
func ( *Module) (,  int32) int32 {
	 := load64((*.memory), uint32())
	_storetime_r((*.memory)[uint32():], time.Unix(int64(), 0))
	return 
}

func _log( float64) float64   { return math.Log() }
func _log10( float64) float64 { return math.Log10() }

func _log2( float64) float64 { return math.Log2() }
func ( *Module) ( int32,  int32,  int32) int32 {
	 := (*.memory)[uint32():]
	if uint64(uint32()) < uint64(len()) {
		 = [:uint32()]
	}
	if  := bytes.IndexByte(, byte());  >= 0 {
		return  + int32()
	}
	return 0
}

func ( *Module) (, ,  int32) int32 {
	if  ==  {
		return 0
	}
	,  := +, +
	 := (*.memory)[uint32():uint32():len((*.memory))]
	 := (*.memory)[uint32():uint32():len((*.memory))]
	return int32(bytes.Compare(, ))
}
func _pow(,  float64) float64 { return math.Pow(, ) }

func _sin( float64) float64  { return math.Sin() }
func _sinh( float64) float64 { return math.Sinh() }

func ( *Module) ( int32,  int32) int32 {
	for ,  := range (*.memory)[uint32():] {
		if  == 0 ||  == byte() {
			return  + int32()
		}
	}
	return -1
}
func ( *Module) ( int32,  int32) int32 {
	 = ._strchrnul(, )
	if (*.memory)[uint32()] == byte() {
		return 
	}
	return 0
}

func ( *Module) (,  int32) int32 {
	if  ==  {
		return 0
	}
	 := (*.memory)[uint32():]
	 := (*.memory)[uint32():]
	 := min(len(), len())
	if  := bytes.IndexByte([:], 0);  >= 0 {
		 =  + 1
	}
	return int32(bytes.Compare([:], [:]))
}

func _makeByteSet( []byte) ( [256 / bits.UintSize]uint) {
	for ,  := range  {
		if  == 0 {
			break
		}
		[/bits.UintSize] |= 1 << ( % bits.UintSize)
	}
	return 
}
func ( *Module) (,  int32) int32 {
	 := (*.memory)[uint32():]
	 := (*.memory)[uint32():]

	 := _makeByteSet()
	[0] |= 1
	for ,  := range  {
		if [/bits.UintSize]&(1<<(%bits.UintSize)) != 0 {
			return int32()
		}
	}
	return -1
}
func ( *Module) ( int32) int32 {
	return int32(bytes.IndexByte((*.memory)[uint32():], 0))
}

func ( *Module) (, ,  int32) int32 {
	if  ==  {
		return 0
	}
	 := (*.memory)[uint32():]
	 := (*.memory)[uint32():]
	 := int(min(uint64(len()), uint64(len()), uint64(uint32())))
	if  := bytes.IndexByte([:], 0);  >= 0 {
		 =  + 1
	}
	return int32(bytes.Compare([:], [:]))
}
func ( *Module) ( int32,  int32) int32 {
	 := (*.memory)[uint32():]
	 = [: bytes.IndexByte(, 0)+1 : len()]
	if  := bytes.LastIndexByte(, byte());  >= 0 {
		return  + int32()
	}
	return 0
}

func ( *Module) (,  int32) int32 {
	 := (*.memory)[uint32():]
	 := (*.memory)[uint32():]

	 := _makeByteSet()
	for ,  := range  {
		if [/bits.UintSize]&(1<<(%bits.UintSize)) == 0 {
			return int32()
		}
	}
	return -1
}
func ( *Module) (,  int32) int32 {
	 := (*.memory)[uint32():]
	 := (*.memory)[uint32():]
	 = [:bytes.IndexByte(, 0):len()]
	 = [:bytes.IndexByte(, 0):len()]
	if  := bytes.Index(, );  >= 0 {
		return  + int32()
	}
	return 0
}
func ( *Module) (,  int32,  int32,  int) int64 {
	 := (*.memory)[uint32():]
	 := bytes.TrimLeft(, " \t\n\v\f\r")

	 := 
	switch {
	case bytes.HasPrefix(, []byte("-")):
		fallthrough
	case bytes.HasPrefix(, []byte("+")):
		 = [1:]
	}

	 = bytes.TrimLeft(, "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
	 := len() - len()
	 := len() - len()

	var  int64
	for ;  > 0; -- {
		var  error
		 := unsafe.String(&[0], )
		,  = strconv.ParseInt(, int(), )
		if ,  := .(*strconv.NumError); ! || .Err == strconv.ErrRange {
			break
		}
	}

	if  != 0 {
		if  > 0 {
			 += int32( + )
		}
		store32((*.memory), uint32(), uint32())
	}
	return 
}
func ( *Module) (,  int32,  int32) int32 {
	return int32(._strtoll_helper(, , , 32))
}

func _tan( float64) float64  { return math.Tan() }
func _tanh( float64) float64 { return math.Tanh() }