MCPcopy Index your code
hub / github.com/sql-js/sql.js / _RegisterExtensionFunctions

Function _RegisterExtensionFunctions

js/sql-debug.js:5801–5848  ·  view source on GitHub ↗
($0)

Source from the content-addressed store, hash-verified

5799}
5800
5801function _RegisterExtensionFunctions($0) {
5802 $0 = $0|0;
5803 var $$024 = 0, $$02527 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, label = 0, sp = 0;
5804 sp = STACKTOP;
5805 $$02527 = 0;
5806 while(1) {
5807 $1 = (((480 + (($$02527*12)|0)|0)) + 5|0);
5808 $2 = HEAP8[$1>>0]|0;
5809 switch ($2<<24>>24) {
5810 case 1: {
5811 $$024 = $0;
5812 break;
5813 }
5814 case 2: {
5815 $$024 = (-1);
5816 break;
5817 }
5818 default: {
5819 $$024 = 0;
5820 }
5821 }
5822 $3 = (480 + (($$02527*12)|0)|0);
5823 $4 = HEAP32[$3>>2]|0;
5824 $5 = (((480 + (($$02527*12)|0)|0)) + 4|0);
5825 $6 = HEAP8[$5>>0]|0;
5826 $7 = $6 << 24 >> 24;
5827 $8 = (((480 + (($$02527*12)|0)|0)) + 6|0);
5828 $9 = HEAP8[$8>>0]|0;
5829 $10 = $9&255;
5830 $11 = (((480 + (($$02527*12)|0)|0)) + 8|0);
5831 $12 = HEAP32[$11>>2]|0;
5832 (_sqlite3_create_function($0,$4,$7,$10,$$024,$12,0,0)|0);
5833 $13 = (($$02527) + 1)|0;
5834 $exitcond = ($13|0)==(40);
5835 if ($exitcond) {
5836 break;
5837 } else {
5838 $$02527 = $13;
5839 }
5840 }
5841 (_sqlite3_create_function($0,16097,1,1,0,0,222,142)|0);
5842 (_sqlite3_create_function($0,16103,1,1,0,0,222,143)|0);
5843 (_sqlite3_create_function($0,30266,1,1,0,0,223,144)|0);
5844 (_sqlite3_create_function($0,16112,1,1,0,0,223,145)|0);
5845 (_sqlite3_create_function($0,16119,1,1,0,0,223,146)|0);
5846 (_sqlite3_create_function($0,16134,1,1,0,0,223,147)|0);
5847 return 0;
5848}
5849function _acosFunc($0,$1,$2) {
5850 $0 = $0|0;
5851 $1 = $1|0;

Callers

nothing calls this directly

Calls 1

_sqlite3_create_functionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…