code wiki / (root) / nx_cast_scope_capture_expanded_t181.nx

nx_cast_scope_capture_expanded_t181.nx

buildroot/runtime/nx_cast_scope_capture_expanded_t181.nx

262144 B3771 linesdepth 0pulls 0 transitivereach 0 importersview sourcekind orphan librarytopic cast
docsdependenciesstructsconstsfunctions

about

nx_cast_shader_src.nx -- THE CHARACTER CAST VERTEX STAGE, WRITTEN ONCE (gameengine S12c, 2026-09-05). The cast vertex shader that nx_game_page_emit ships as the hand-written GLSL literal MVS (extracted to the board as buildroot/knowledge/compare/cast_mvs_hand.glsl, 2,485 raw / 2,521 expanded / 3,097 canonical tokens) is transcribed here SLICE BY SLICE as shader-IR builder calls, so that BOTH dialects are emitted from one source: GLSL for the WebGL2 door (proven against the hand text by nx_glsl_tokdiff -- an emitted slice is accepted when its canonical token stream is a PREFIX of the hand's up to main's closing brace, slice_prefix=1, and the whole stage when the verdict reads IDENTICAL) and WGSL for the WebGPU door (the S12 cast pipeline). The vocabulary is nx_world_shader_src's ws_* shorthands over nx_shader_ir; nothing here re-implements a builder. RULES THAT KEEP THE CANONICAL FORM REACHABLE: a negative literal is sir_neg over the positive literal ((-999.0), never a "-999.0" literal); every literal is spelled with the hand's own digits, canonically (0.5 not .5, 0.930 not 0.93 -- the ruler canonicalises spelling, never value); a compound assignment is x=(x op (y)); left-associative chains are built left-nested exactly as the grammar parses them; the hand's grouping parentheses are simply the tree's shape. The f32 uniform arrays the hand declares (uOF uGB uGT uGN, float[12]) are declared EXACTLY as the hand does -- the uniform-space stride rule is a WGSL-dialect fact and belongs in the WGSL backend's lowering (S12c-2b), never in this source. SLICES (each measured, journaled on gameengine.plan under GE59): 1 declarations + hsh + the instance/lock prologue (through vII=ii;) -- MEASURED 602/3097 canonical, slice_prefix 2 dual-quaternion skinning off the joint table, garment displacement, the PASS-1 face cut, the y-up rotation and world placement (through vec3 wp=...;) 3 soft-body fields (hb2, sbo over the DYNA anchors, hair wind, dress inheritance, the body branch), wp+=sbo 4 garment degeneration, the cast-shadow projection, vW, the clip transform (gl_Position) license_tier: ORIGINAL No hw writes (Rule 26). nx_world_shader_src.nx -- THE WORLD SHADER, WRITTEN ONCE (gameengine GE44 R-G, 2026-09-04). The voxel world pass that nx_game_page_emit ships hand-written twice (a GLSL FSH for the WebGL2 door and a WGSL module for the WebGPU door) is authored here ONCE as shader-IR builder calls and emitted to BOTH dialects by nx_wgsl. Every function below is the hand WGSL, statement for statement (vx, h21, h31, pal9, sky, struct Hit, march, shade, the fragment entry); the vertex entry is the backend's own fullscreen triangle (shsrc_fullscreen_tri). Deliberate deltas from the hand text, all semantic no-ops: compound assignments are spelled x=(x+y); unsigned constants are casts (u32(0) / uint(0)) because the GLSL backend spells a u32 literal without its suffix and a bare 0 beside a uint is a GLSL type error; the WebGPU top-left fragment origin is carried as the uniform `yflip` (1 on the WebGPU door, 0 on WebGL2) instead of a per-dialect edit, so ONE source serves both doors. The uniform block is declared ONCE here (ws_world_uniforms) and `nx_wgsl layout` derives its memory layout from it. GE55 (2026-09-05): the world module now takes the sim's RAW state words as its uniform block (ws_world_uniforms_raw, the same 40-word table as nx_wasm_craft UR_*) and derives every float in upk() into module-scope private state, so the page packs nothing and computes nothing; ws_world_uniforms (the f32 block) stays as the R-F layout ruler fixture. license_tier: ORIGINAL nx_shader_ir.nx -- THE SHADER IR: ONE source of truth, N dialect backends. WHY THIS EXISTS (measured 2026-08-23). The estate's shaders are hand-written GLSL string literals inside nx_game_page_emit. Drawing characters on the WebGPU tier therefore demanded a SECOND HAND COPY in WGSL -- ~600 lines (dual-quaternion skinning off a joint texture, instance uniform arrays, the voxel occlusion march, the procedural anatomy/eye/hair/skin paint) of the

dependencies 0 imports · 0 importers

imports: none

imported by: nobody (leaf or entry point)

structs

none

consts

307const NX_BUF_TINY: nx_size = 64
308const NX_BUF_SMALL: nx_size = 256
309const NX_BUF_MEDIUM: nx_size = 4096
310const NX_BUF_LARGE: nx_size = 65536
311const NX_BUF_HUGE: nx_size = 1048576
315const NX_TIER_MCU: nx_int = 0
316const NX_TIER_SOVEREIGN_CHIP: nx_int = 1
317const NX_TIER_FAMILY_DEVICE: nx_int = 2
318const NX_TIER_WORKSTATION: nx_int = 3
319const NX_TIER_SERVER: nx_int = 4
320const NX_TIER_HPC: nx_int = 5
324const NX_NUM_N0_I32: nx_int = 0
325const NX_NUM_N1_I64: nx_int = 1
326const NX_NUM_N2_I128: nx_int = 2
327const NX_NUM_N3_I256: nx_int = 3
328const NX_NUM_N4_I512: nx_int = 4
329const NX_NUM_N5_BIGINT: nx_int = 5
337const NX_SIZEOF_NX_INT: nx_size = 8 // nx_int currently i64 -> 8 bytes
338const NX_SIZEOF_NX_SIZE: nx_size = 8 // nx_size always pointer-width
339const NX_SIZEOF_NX_IDX: nx_size = 8 // nx_idx alias of nx_size
343const NX_FD_STDIN: nx_fd = 0
344const NX_FD_STDOUT: nx_fd = 1
345const NX_FD_STDERR: nx_fd = 2
347const SYS_MAGIC_1024: i64 = 1024
348const SYS_MAGIC_1000000: i64 = 1000000
349const SYS_MAGIC_4294967296: i64 = 4294967296
351const SYS_READ_GROW_INIT: i64 = 65536
352const SYS_MAGIC_100000: i64 = 100000
370const SYS_READ: i64 = 0
371const SYS_WRITE: i64 = 1
372const SYS_CLOSE: i64 = 3
373const SYS_LSEEK: i64 = 8
374const SYS_OPENAT: i64 = 257
375const SYS_EXIT: i64 = 60
376const SYS_MMAP: i64 = 9
377const SYS_CLOCK_GETTIME: i64 = 228
378const SYS_IOCTL: i64 = 16
379const SYS_CLOCK_NANOSLEEP: i64 = 230
383const SYS_CHROOT: i64 = 161
384const SYS_MOUNT: i64 = 165
385const SYS_UNSHARE: i64 = 272
386const SYS_GETUID: i64 = 102
387const SYS_GETGID: i64 = 104
388const SYS_POLL: i64 = 7
392const SYS_READ: i64 = 63
393const SYS_WRITE: i64 = 64
394const SYS_CLOSE: i64 = 57
395const SYS_LSEEK: i64 = 62
396const SYS_OPENAT: i64 = 56
397const SYS_EXIT: i64 = 93
398const SYS_MMAP: i64 = 222
399const SYS_CLOCK_GETTIME: i64 = 113
400const SYS_IOCTL: i64 = 29
401const SYS_CLOCK_NANOSLEEP: i64 = 115
408const SYS_CHROOT: i64 = 51
409const SYS_MOUNT: i64 = 40
410const SYS_UNSHARE: i64 = 97
411const SYS_GETUID: i64 = 174
412const SYS_GETGID: i64 = 176
413const SYS_POLL: i64 = 73
471const SYS_PATH_MAX: i64 = 4096 // Linux PATH_MAX; getcwd returns -ERANGE below it
475const MODE_0755: i64 = 0x1ed // rwxr-xr-x : default mode for a created directory
490const AT_FDCWD: i64 = -100
595const NX_MO_RELAXED: i64 = 0
596const NX_MO_CONSUME: i64 = 1
597const NX_MO_ACQUIRE: i64 = 2
598const NX_MO_RELEASE: i64 = 3
599const NX_MO_ACQ_REL: i64 = 4
600const NX_MO_SEQ_CST: i64 = 5
602const NXA_SMALL_MAX: i64 = 256
603const NXA_CHUNK: i64 = 262144
604const NXA_ALIGN: i64 = 16
605const NXA_GAP: i64 = 16
606const NXA_STATE: i64 = 4096
612const NXA_RING: i64 = 128
613const NXA_RBASE: i64 = 64
648const NXA_LOCK: i64 = 4
656const NXA_LOCK_WARN: i64 = NXA_RING * 8
660const NXA_LOCK_WARNED: i64 = 5
662const NXA_CHUNKBASE: i64 = 320
663const NXA_CHUNKMAX: i64 = 192
684const NXA_MAP_INVALID:i64=0-22 // Linux EINVAL, a protocol value rather than a resource budget.
736const SYS_STATFS_X86_MEASURED: i64 = 137
737const STATFS_BUF_BYTES: i64 = 144
738const STATFS_I_BSIZE: i64 = 1
739const STATFS_I_BLOCKS: i64 = 2
740const STATFS_I_BAVAIL: i64 = 4
741const STATFS_PERMIL: i64 = 1000
742const STATFS_ERR: i64 = 0 - 1
1087const O_RDONLY: i64 = 0
1088const O_WRONLY_CT: i64 = 0x241 // O_CREAT | O_WRONLY | O_TRUNC
1089const O_WRONLY_CA: i64 = 0x441 // O_CREAT | O_WRONLY | O_APPEND
1097const O_RDWR_CREATE: i64 = 0x42
1118const MODE_0644: i64 = 0x1a4 // rw-r--r-- : default mode for a generated artifact
1123const MODE_0755: i64 = 0x1ed
1136const ACCEPT_TMO_S: i64 = 30
1143const O_WRONLY_CREATE_EXCLUSIVE: i64 = 0x1 | 0x40 | 0x80
1149const O_DIRECTORY: i64 = 0x10000
1163const O_CLOEXEC: i64 = 0x80000
1164const O_NOFOLLOW: i64 = 0x20000
1165const O_NONBLOCK: i64 = 0x800
1166const MODE_0600: i64 = 0x180
1231const SYS_LOCK_SH: i64 = 1
1232const SYS_LOCK_EX: i64 = 2
1233const SYS_LOCK_NB: i64 = 4
1234const SYS_LOCK_UN: i64 = 8
1279const SYS_SETPGID: i64 = 109
1282const SYS_SETPGID: i64 = 154
1305const RLIMIT_CPU: i64 = 0
1306const RLIMIT_AS: i64 = 9
1307const WNOHANG: i64 = 1
1401const SYS_CLONE: i64 = 56
1402const SYS_EXECVE: i64 = 59
1403const SYS_WAIT4: i64 = 61
1404const SYS_PIPE2: i64 = 293
1405const SYS_DUP3: i64 = 292
1409const SYS_CLONE: i64 = 220
1410const SYS_EXECVE: i64 = 221
1411const SYS_WAIT4: i64 = 260
1412const SYS_PIPE2: i64 = 59
1413const SYS_DUP3: i64 = 24
1419const CLONE_VM: i64 = 0x00000100
1420const CLONE_VFORK: i64 = 0x00004000
1421const SIGCHLD: i64 = 17
1471const NX_SYS_PRCTL: i64 = 167
1472const NX_PR_SET_PDEATHSIG: i64 = 1
1473const NX_PR_SET_CHILD_SUBREAPER: i64 = 36
1488const SYS_WAITID_PORTABLE: i64 = 95
1489const NX_WAIT_P_PID: i64 = 1
1490const NX_WAIT_EXITED: i64 = 4
1491const NX_WAIT_NOWAIT: i64 = 0x01000000
1492const NX_WAIT_SIGINFO_BYTES: i64 = 128
1499const NX_FD_DENT_BUFFER: i64 = 4096
1500const NX_SYS_CLOSE_RANGE: i64 = 436 // Linux x86_64 and asm-generic ABI
1501const NX_FD_UINT_MAX: i64 = 4294967295
1673const SYS_GETDENTS64: i64 = 217
1676const SYS_GETDENTS64: i64 = 61
1679const DT_UNKNOWN: i64 = 0
1680const DT_FIFO: i64 = 1
1681const DT_CHR: i64 = 2
1682const DT_DIR: i64 = 4
1683const DT_BLK: i64 = 6
1684const DT_REG: i64 = 8
1685const DT_LNK: i64 = 10
1686const DT_SOCK: i64 = 12
1874const SYS_SOCKET: i64 = 41
1875const SYS_BIND: i64 = 49
1876const SYS_LISTEN: i64 = 50
1877const SYS_ACCEPT: i64 = 43
1878const SYS_CONNECT: i64 = 42
1879const SYS_SETSOCKOPT: i64 = 54
1880const SYS_SENDTO: i64 = 44
1881const SYS_RECVFROM: i64 = 45
1882const SYS_SHUTDOWN: i64 = 48
1886const SYS_SOCKET: i64 = 198
1887const SYS_BIND: i64 = 200
1888const SYS_LISTEN: i64 = 201
1889const SYS_ACCEPT: i64 = 202
1890const SYS_CONNECT: i64 = 203
1891const SYS_SETSOCKOPT: i64 = 208
1892const SYS_SENDTO: i64 = 206
1893const SYS_RECVFROM: i64 = 207
1894const SYS_SHUTDOWN: i64 = 210
1898const SOL_SOCKET: i64 = 1
1899const SO_REUSEADDR: i64 = 2
1904const SO_SNDTIMEO: i64 = 21
1905const SO_RCVTIMEO: i64 = 20
1933const SYS_ALARM: i64 = 37
1936const AF_INET: i64 = 2
1937const SOCK_STREAM: i64 = 1
1938const SOCK_DGRAM: i64 = 2
2044const SYS_SENDMSG: i64 = 46
2045const SYS_RECVMSG: i64 = 47
2046const SYS_SOCKETPAIR: i64 = 53
2047const SCM_AF_UNIX: i64 = 1
2048const SCM_SOL_SOCKET: i64 = 1
2049const SCM_RIGHTS_TYPE: i64 = 1
2050const SCM_MSG_CMSG_CLOEXEC: i64 = 1073741824
2051const SCM_MSGHDR_BYTES: i64 = 56
2052const SCM_MSGHDR_OFF_IOV: i64 = 16
2053const SCM_MSGHDR_OFF_IOVLEN: i64 = 24
2054const SCM_MSGHDR_OFF_CTRL: i64 = 32
2055const SCM_MSGHDR_OFF_CTRLLEN: i64 = 40
2056const SCM_IOVEC_BYTES: i64 = 16
2057const SCM_IOVEC_OFF_BASE: i64 = 0
2058const SCM_IOVEC_OFF_LEN: i64 = 8
2059const SCM_CMSG_OFF_LEN: i64 = 0
2060const SCM_CMSG_OFF_LEVEL: i64 = 8
2061const SCM_CMSG_OFF_TYPE: i64 = 12
2062const SCM_CMSG_OFF_DATA: i64 = 16
2063const SCM_CMSG_LEN_1FD: i64 = 20
2064const SCM_CMSG_SPACE_1FD: i64 = 24
2065const SCM_IOV_COUNT_ONE: i64 = 1
2066const SCM_U32_BYTES: i64 = 4
2067const SCM_BYTE_RADIX: i64 = 256
2068const SCM_FDPAIR_BYTES: i64 = 8
2071const SCM_PAYLOAD_BYTES: i64 = 1
2072const SCM_PAYLOAD_BYTE: i64 = 70
2076const SCM_ERR_NO_CMSG: i64 = 0 - 901
2077const SCM_ERR_CMSG_LEN: i64 = 0 - 902
2078const SCM_ERR_CMSG_LEVEL: i64 = 0 - 903
2079const SCM_ERR_CMSG_TYPE: i64 = 0 - 904
2151const SCM_SUN_PATH_OFF: i64 = 2 // sockaddr_un = [sa_family: u16][sun_path: 108]
2152const SCM_SUN_BYTES: i64 = 110
2153const SCM_SUN_PATH_MAX: i64 = 107
2278const NX_FILE_PERMISSION_MASK:i64=511
2279const NX_FILE_DESCRIPTOR_INVALID:i64=0-22
2285const NX_STAT_X64_BYTES:i64=144
2286const NX_STAT_X64_MODE_OFFSET:i64=24
2287const NX_STAT_X64_BLOCK_OFFSET:i64=56
2288const NX_STAT_X64_SIZE_OFFSET:i64=48
2289const NX_STAT_X64_DEVICE_OFFSET:i64=0
2290const NX_STAT_X64_INODE_OFFSET:i64=8
2291const NX_STAT_TYPE_MASK:i64=61440
2292const NX_STAT_REGULAR_FILE:i64=32768
2306const SIR_SLOTS: i64 = 8
2311const SIR_MAXNODE: i64 = 16384
2312const SIR_POOLCAP: i64 = 65536
2314const SIR_KIND: i64 = 0
2315const SIR_TY: i64 = 1
2316const SIR_A: i64 = 2
2317const SIR_B: i64 = 3
2318const SIR_C: i64 = 4
2319const SIR_NAME: i64 = 5
2320const SIR_D: i64 = 6
2321const SIR_NEXT: i64 = 7
2324const M_NODES: i64 = 0
2325const M_NCOUNT: i64 = 1
2326const M_POOL: i64 = 2
2327const M_POOLUSED: i64 = 3
2328const M_DECLH: i64 = 4
2329const M_DECLT: i64 = 5
2330const M_FUNCH: i64 = 6
2331const M_FUNCT: i64 = 7
2332const M_REFUSE: i64 = 8
2333const M_OVER: i64 = 9
2338const M_CURFN: i64 = 10
2345const M_FRAGOUT: i64 = 11
2350const M_VIOMODE: i64 = 12
2355const M_USESII: i64 = 13
2362const M_WGFRAGOUT: i64 = 14
2368const M_BINDGROUP: i64 = 15
2371const M_CLIP_DEPTH: i64 = 16
2372const SIR_MODULE_WORDS: i64 = 17
2373const SIR_CLIP_NATIVE: i64 = 0
2374const SIR_CLIP_NEGATIVE_ONE_TO_ONE: i64 = 1
2376const SIR_LIT_USUFFIX: i64 = 1
2379const K_UNIFORM: i64 = 1
2380const K_ATTRIB: i64 = 2
2381const K_VARY: i64 = 3
2382const K_FUNC: i64 = 4
2383const K_PARAM: i64 = 5
2391const K_STORAGE: i64 = 6
2398const K_TEXTURE: i64 = 7
2409const K_FRAGOUT: i64 = 8
2417const K_STRUCT: i64 = 9
2418const S_RETURN: i64 = 10
2419const S_ASSIGN: i64 = 11
2420const S_VAR: i64 = 12
2421const S_IF: i64 = 13
2422const S_DISCARD: i64 = 14
2430const S_LOOP: i64 = 15
2431const S_BREAK: i64 = 16
2435const S_EXPR: i64 = 17
2436const E_LIT: i64 = 20
2437const E_IDENT: i64 = 21
2438const E_BIN: i64 = 22
2439const E_CALL: i64 = 23
2440const E_SWZ: i64 = 24
2441const E_INDEX: i64 = 25
2442const E_TEXLOAD: i64 = 26
2443const E_TEXSAMPLE: i64 = 27
2444const E_CTOR: i64 = 28
2448const E_CAST: i64 = 29
2449const E_BUILTIN: i64 = 30
2454const E_ATOMIC: i64 = 31
2460const E_SELECT: i64 = 32
2464const E_NEG: i64 = 33
2470const K_PRIVATE: i64 = 34
2476const E_NOT: i64 = 35
2479const T_VOID: i64 = 0
2480const T_F32: i64 = 1
2481const T_I32: i64 = 2
2482const T_U32: i64 = 3
2483const T_BOOL: i64 = 4
2484const T_V2F: i64 = 5
2485const T_V3F: i64 = 6
2486const T_V4F: i64 = 7
2487const T_V3I: i64 = 8
2488const T_TEX3U: i64 = 9
2489const T_TEX2F: i64 = 10
2491const T_V3U: i64 = 11
2494const T_V2I: i64 = 12
2498const T_M3F: i64 = 13
2499const T_MAX: i64 = 13
2650const P_PLAIN: i64 = 0
2651const P_BUILTIN_POSITION: i64 = 1
2733const SIR_VAR_CONST: i64 = 2
2772const SIR_VAR_LET: i64 = 1
3064const CB_BASE: *u8 = "180.0" // the incumbent sheet's height in blocks, now the slab base
3065const CB_TOP: *u8 = "300.0"
3066const CB_RLO: *u8 = "24.0" // density ramps in over this many blocks above the base
3067const CB_RHI: *u8 = "48.0" // and out over this many below the top
3068const CB_CELL: *u8 = "180.0" // one noise cell in blocks, horizontal
3069const CB_CELLY: *u8 = "120.0" // and vertical (flatter cells read as stratus)
3070const CB_DRIFT_X: *u8 = "240.0" // the incumbent sheet's drift divisors, kept so the motion does not change
3071const CB_DRIFT_Z: *u8 = "540.0"
3072const CB_THR0: *u8 = "0.78" // coverage threshold at cld=0
3073const CB_THRK: *u8 = "0.30" // and how far cld=1 lowers it
3074const CB_GAIN: *u8 = "1.4"
3075const CB_STEPS: *u8 = "48"
3076const CB_STEPS_F: *u8 = "48.0"
3077const CB_SIGMA: *u8 = "0.04" // extinction per block of unit density
3078const CB_LIT0: *u8 = "0.70" // ambient at the base
3079const CB_LIT1: *u8 = "0.30" // brighter toward the top
3080const CB_SUNK: *u8 = "0.15" // silver toward the sun
3084const CB_EROSION: *u8 = "0.22"
3085const CB_SUN_Y_MIN: *u8 = "0.01"
3086const CB_LIGHT_DISTANCE: *u8 = "480.0"
3087const CB_LIGHT_STEPS: *u8 = "6"
3088const CB_LIGHT_STEPS_F: *u8 = "6.0"
3089const CB_VIEW_DISTANCE: *u8 = "1400.0"
3090const CB_PHASE_G: *u8 = "0.35"
3091const CB_AMBIENT: *u8 = "0.85"
3092const CB_DIRECT: *u8 = "0.72"
3444const SD_GRAIN_PER_BLOCK: *u8 = "32.0" // facets per block edge: 3 cm at a 1 m block, coarse beach sand
3445const SD_GRAIN_SLOPE: *u8 = "1.2" // facet steepness as a normal slope
3446const SD_RIPPLE_PER_BLOCK: *u8 = "9.0" // wind ripples per block: an 11 cm wavelength at a 1 m block
3447const SD_RIPPLE_SLOPE: *u8 = "0.45" // crest slope
3448const SD_RIPPLE_DX: *u8 = "0.8" // ripple normal heading (unit): the wind heading, a data hook
3449const SD_RIPPLE_DZ: *u8 = "0.6"
3450const SD_PATCH: *u8 = "0.25" // ripple phase jitter per 4-block patch so the field is not one sine
3451const SD_TAU: *u8 = "6.2831853"
3452const SD_QUARTER_TURN: *u8 = "1.5707963"
3453const SD_EIGHTH_TURN: *u8 = "0.7853982"
3454const SD_RING_DIRS: *u8 = "8"
3455const SD_RING_STEPS: *u8 = "24" // SD_RING_DIRS x SD_WET_R
3456const SD_WET_R: *u8 = "3.0" // wet band reach in cells
3457const SD_WET_DRY: *u8 = "4.0" // SD_WET_R + 1: no water within reach
3458const SD_WET_DARK: *u8 = "0.55" // wet albedo multiplier
3459const SD_FILM_POW: *u8 = "48.0"
3460const SD_FILM_GAIN: *u8 = "0.55"
3461const SD_SHEEN_GAIN: *u8 = "0.10"
3462const SD_GLINT_POW: *u8 = "96.0"
3463const SD_GLINT_GAIN: *u8 = "0.35"
3464const SD_GLINT_FRAC: *u8 = "0.9" // facets whose hash exceeds this are quartz glints
3465const SD_NDV_FLOOR: *u8 = "0.15" // the footprint stretch floor at grazing angles
3466const SD_SHADOW_SPEC: *u8 = "0.2" // in a block shadow the film keeps its sky sheen and loses the sun
3467const SD_TWO: *u8 = "2.0"
3468const SD_HALF: *u8 = "0.5"

functions

416func sys_ioctl(fd: i64, request: i64, arg: i64) -> i64
427func sys_poll(fds: *u8, nfds: i64, timeout_ms: i64) -> i64
433func sys_write(fd: i64, buf: *u8, count: i64) -> i64
437func sys_read(fd: i64, buf: *u8, count: i64) -> i64
called by 1: sys_read_file
441func sys_close(fd: i64) -> i64
451func sys_chdir(path: *u8) -> i64
calls 1: sys_mmap
476func sys_getcwd(buf: *u8, cap: i64) -> i64
calls 1: sys_mmap
495func sys_unlinkat(path: *u8) -> i64
502func sys_fchmodat(path: *u8, mode: i64) -> i64
calls 1: sys_mmap
518func sys_exit_group(code: i64) -> i64
535func sys_setpriority(prio: i64) -> i64
543func sys_setpriority_of(pid: i64, prio: i64) -> i64
685func sys_munmap_direct(addr:*u8,len:i64)->i64
690func sys_munmap(addr: *u8, len: i64) -> i64
697func sys_lseek(fd: i64, offset: i64, whence: i64) -> i64
745func sys_statfs(path: *u8, buf: *i64) -> i64
750func sys_fs_avail_bytes(path: *u8) -> i64
759func sys_fs_used_permil(path: *u8) -> i64
768func sys_exit(code: i64) -> i64
called by 1: nxa_die
802func nxa_dump_printable(src: i64, n: i64) -> i64
called by 1: nxa_report_overrun calls 1: sys_write
823func nxa_dump_sizes() -> i64
called by 1: nxa_report_overrun calls 1: sys_write
848func nxa_report_overrun(sz: i64, gs: i64) -> i64
878func nxa_die(msg: *u8) -> i64
called by 1: sys_mmap calls 2: sys_writesys_exit
888func nxa_lock_addr() -> *i64
896func nxa_lock_take() -> i64
called by 1: sys_mmap calls 2: nxa_lock_addrsys_write
925func nxa_lock_give() -> i64
called by 1: sys_mmap calls 1: nxa_lock_addr
939func sys_mmap_try(size:i64)->*u8
946func sys_mmap(size: i64) -> *u8
1028func sys_arena_mark() -> i64
calls 1: sys_mmap
1042func sys_arena_reset() -> i64
1066func sys_mmap_shared(size: i64) -> *u8
1080func sys_madvise(addr: *u8, len: i64, advice: i64) -> i64
1091func sys_openat_rd(path: *u8) -> i64
1098func sys_openat_rdwr(path: *u8, mode: i64) -> i64
1137func sys_openat_wr(path: *u8, mode: i64) -> i64
1144func sys_openat_exclusive(path: *u8, mode: i64) -> i64
1150func sys_openat_directory(path: *u8) -> i64
1157func sys_openat_append(path: *u8, mode: i64) -> i64
1167func sys_openat_lock(path: *u8) -> i64
1175func sys_symlinkat(target: *u8, linkpath: *u8) -> i64
1187func sys_readlinkat(path: *u8, buf: *u8, cap: i64) -> i64
1204func sys_renameat(oldpath: *u8, newpath: *u8) -> i64
1217func sys_fsync(fd: i64) -> i64
1235func sys_flock(fd: i64, op: i64) -> i64
1243func sys_fstatat(path: *u8, statbuf: *u8) -> i64
1250func sys_utimensat(path: *u8, times: *i64) -> i64
1269func nx_kill(pid: i64, sig: i64) -> i64 { return __syscall(129, pid, sig, 0, 0, 0, 0) }
1284func sys_setpgid(pid: i64, pgid: i64) -> i64 { return __syscall(SYS_SETPGID, pid, pgid, 0, 0, 0, 0) }
1298func nx_prlimit(pid: i64, resource: i64, new_limit: *u8, old_limit: *u8) -> i64
1310func sys_mkdir(path: *u8, mode: i64) -> i64 { return __syscall(34, AT_FDCWD, path, mode, 0, 0, 0) }
1313func nx_chmod(path: *u8, mode: i64) -> i64 { return __syscall(53, AT_FDCWD, path, mode, 0, 0, 0) }
1317func nx_setsid() -> i64 { return __syscall(112, 0, 0, 0, 0, 0, 0) }
1321func sys_clock_gettime_mono(ts: *i64) -> i64
1329func sys_clock_gettime_real(ts: *i64) -> i64
1334func sys_now_realtime_sec() -> i64
1341func sys_now_realtime_ms() -> i64
1353func sys_now_realtime_us() -> i64
1362func sys_now_ms() -> i64
1373func sys_now_us() -> i64
1384func sys_clock_now_us() -> i64
calls 1: sys_now_us
1434func sys_unshare(flags: i64) -> i64
1437func sys_mount(source: *u8, target: *u8, fs_type: *u8, mountflags: i64, data: *u8) -> i64
1440func sys_chroot(path: *u8) -> i64
1443func sys_getuid() -> i64
1446func sys_getgid() -> i64
1450func sys_fork() -> i64
1474func sys_prctl(option: i64, arg: i64) -> i64
1477func sys_bind_parent_lifetime(expected_parent: i64, signal: i64) -> i64
calls 1: sys_prctl
1493func sys_waitid(idtype: i64, id: i64, info: *u8, options: i64) -> i64
1502func sys_close_inherited_proc(first: i64) -> i64
1543func sys_close_inherited(first: i64) -> i64
1549func sys_execve_clean(path: *u8, argv: *i64, envp: *i64) -> i64
1555func sys_execve(path: *u8, argv: *i64, envp: *i64) -> i64
called by 1: sys_execve_clean
1564func sys_wait4(pid: i64, status: *i64, options: i64) -> i64
1570func wait_exit_code(status: i64) -> i64
called by 1: wait_status_rc
1578func wait_term_signal(status: i64) -> i64
called by 1: wait_status_rc
1603func wait_status_rc(status: i64) -> i64
1626func sys_default_signal(sig: i64) -> i64
calls 1: sys_mmap
1635func sys_ignore_sigpipe() -> i64
calls 1: sys_mmap
1650func sys_pipe2(fds: *i64, flags: i64) -> i64
1656func sys_dup3(oldfd: i64, newfd: i64, flags: i64) -> i64
1690func sys_getdents64(fd: i64, buf: *u8, buf_len: i64) -> i64
1696func dirent_reclen(rec: *u8) -> i64
1703func dirent_type(rec: *u8) -> i64
1708func dirent_name(rec: *u8) -> *u8
1715func sys_read_file(path: *u8, out_len: *i64) -> *u8
1797func sys_free_file(buf: *u8, len: i64) -> i64
calls 1: sys_munmap
1808func sys_map_file(path: *u8, out_len: *i64) -> *u8
1826func sys_sleep_ms(ms: i64) -> i64
1910func sys_setsockopt(fd: i64, level: i64, optname: i64,
1920func sys_set_socket_timeout(fd: i64, secs: i64) -> i64
1934func sys_alarm(secs: i64) -> i64 { return __syscall(SYS_ALARM, secs, 0, 0, 0, 0, 0) }
1940func sys_socket(domain: i64, sock_type: i64, protocol: i64) -> i64
1952func sockaddr_in_init(addr: *u8, port: i64) -> i64
1975func sys_bind(fd: i64, addr: *u8, addr_len: i64) -> i64
called by 1: sys_unix_listen
1978func sys_listen(fd: i64, backlog: i64) -> i64
called by 1: sys_unix_listen
1985func sys_accept(fd: i64) -> i64
1988func sys_accept_with_addr(fd: i64, addr: *u8, addr_len: *i64) -> i64
1992func sys_shutdown(fd: i64, how: i64) -> i64
1995func sys_connect(fd: i64, addr: *u8, addr_len: i64) -> i64
called by 1: sys_unix_connect_fd
1998func sys_sendto(fd: i64, buf: *u8, n: i64, flags: i64,
2002func sys_recvfrom(fd: i64, buf: *u8, n: i64, flags: i64,
2081func scm_zero(base: *u8, n: i64) -> i64 { var i: i64 = 0; while i < n { base[i] = 0; i = i + 1 } return 0 }
2082func scm_put_i64(base: *u8, off: i64, v: i64) -> i64
2087func scm_get_i64(base: *u8, off: i64) -> i64
called by 1: sys_recv_fd
2094func scm_put_u32(base: *u8, off: i64, v: i64) -> i64
called by 1: sys_send_fd
2104func scm_get_u32(base: *u8, off: i64) -> i64
called by 1: sys_recv_fd
2116func sys_sendmsg(fd: i64, msg: *u8, flags: i64) -> i64
called by 1: sys_send_fd
2119func sys_recvmsg(fd: i64, msg: *u8, flags: i64) -> i64
called by 1: sys_recv_fd
2143func sys_socketpair(domain: i64, sock_type: i64, protocol: i64, sv: *u8) -> i64
2154func sys_unix_listen(path: *u8, backlog: i64) -> i64
2182func sys_unix_connect_fd(path: *u8) -> i64
2206func sys_send_fd(sock: i64, fd: i64) -> i64
2240func sys_recv_fd(sock: i64, flags: i64) -> i64
2280func sys_fchmod_fd(fd:i64,mode:i64)->i64
2293func sys_fstat_fd(fd:i64,stat:*u8)->i64
2297func sys_stat_permissions(stat:*u8)->i64
2501func sir_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: sir_streb_put
2503func sir_new() -> *i64
calls 1: sys_mmap
2520func sir_get(m: *i64, id: i64, k: i64) -> i64
2525func sir_set(m: *i64, id: i64, k: i64, v: i64) -> i64
2533func sir_str(m: *i64, s: *u8) -> i64
2547func sir_cstr(m: *i64, off: i64) -> *u8
2551func sir_node(m: *i64, kind: i64, ty: i64, a: i64, b: i64, c: i64, nameoff: i64) -> i64
2567func sir_chain(m: *i64, hw: i64, tw: i64, id: i64) -> i64
2577func sir_uniform(m: *i64, name: *u8, ty: i64, arraylen: i64) -> i64
2583func sir_private(m: *i64, name: *u8, ty: i64, arraylen: i64) -> i64
2588func sir_attrib(m: *i64, name: *u8, ty: i64, location: i64) -> i64
2593func sir_vary(m: *i64, name: *u8, ty: i64, location: i64, flat: i64) -> i64
2600func sir_storage(m: *i64, name: *u8, elemty: i64, binding: i64, readwrite: i64, atomic: i64) -> i64
2606func sir_texture(m: *i64, name: *u8, ty: i64) -> i64
2613func sir_fragout(m: *i64, name: *u8, ty: i64, location: i64) -> i64
called by 1: ws_fn_fs calls 3: sir_nodesir_strsir_chain
2623func sir_struct(m: *i64, name: *u8) -> i64
2627func sir_member(m: *i64, st: i64, name: *u8, ty: i64) -> i64 { return sir_param(m, st, name, ty) }
called by 1: ws_struct_hit calls 1: sir_param
2628func sir_struct_ty(st: i64) -> i64 { return SIR_MAXNODE + st }
2630func sir_struct_of(m: *i64, ty: i64) -> i64
calls 1: sir_get
2637func sir_member_of(m: *i64, base: i64, name: *u8, ty: i64) -> i64 { return sir_swz(m, base, name, ty) }
called by 1: ws_mem calls 1: sir_swz
2640func sir_func(m: *i64, name: *u8, rettype: i64) -> i64
2653func sir_param(m: *i64, fn: i64, name: *u8, ty: i64) -> i64
2662func sir_param_position(m: *i64, fn: i64, name: *u8) -> i64
called by 1: ws_fn_fs calls 2: sir_paramsir_set
2669func sir_stmt(m: *i64, fn: i64, st: i64) -> i64
called by 2: sir_for_untilws_st calls 2: sir_getsir_set
2678func sir_return(m: *i64, e: i64) -> i64 { return sir_node(m, S_RETURN, T_VOID, e, 0, 0, 0) }
called by 1: ws_ret calls 1: sir_node
2681func sir_return_depth(m: *i64, color: i64, depth: i64) -> i64
calls 1: sir_node
2685func sir_assign(m: *i64, lhs: i64, rhs: i64) -> i64 { return sir_node(m, S_ASSIGN, T_VOID, lhs, rhs, 0, 0) }
called by 3: ws_setws_opws_opx calls 1: sir_node
2686func sir_var(m: *i64, name: *u8, ty: i64, init: i64) -> i64 { return sir_node(m, S_VAR, ty, init, 0, 0, sir_str(m, name)) }
2687func sir_if(m: *i64, cond: i64, thenh: i64, elseh: i64) -> i64 { return sir_node(m, S_IF, T_VOID, cond, thenh, elseh, 0) }
called by 2: sir_for_untilws_if calls 1: sir_node
2688func sir_discard(m: *i64) -> i64 { return sir_node(m, S_DISCARD, T_VOID, 0, 0, 0, 0) }
calls 1: sir_node
2692func sir_loop(m: *i64, body: i64) -> i64 { return sir_node(m, S_LOOP, T_VOID, body, 0, 0, 0) }
2693func sir_break(m: *i64) -> i64 { return sir_node(m, S_BREAK, T_VOID, 0, 0, 0, 0) }
2695func sir_expr(m: *i64, e: i64) -> i64 { return sir_node(m, S_EXPR, T_VOID, e, 0, 0, 0) }
called by 1: ws_fn_fs calls 1: sir_node
2704func sir_for_until(m: *i64, fn: i64, init: i64, until: i64, step: i64, body: i64) -> i64
2713func sir_seq(m: *i64, a: i64, b: i64) -> i64
2722func sir_lit(m: *i64, text: *u8, ty: i64) -> i64 { return sir_node(m, E_LIT, ty, 0, 0, 0, sir_str(m, text)) }
2726func sir_lit_u(m: *i64, text: *u8) -> i64
calls 2: sir_litsir_set
2734func sir_const(m: *i64, name: *u8, ty: i64, init: i64) -> i64
calls 2: sir_varsir_set
2739func sir_ident(m: *i64, name: *u8, ty: i64) -> i64 { return sir_node(m, E_IDENT, ty, 0, 0, 0, sir_str(m, name)) }
2740func sir_bin(m: *i64, op: *u8, l: i64, r: i64, ty: i64) -> i64 { return sir_node(m, E_BIN, ty, l, r, 0, sir_str(m, op)) }
2741func sir_swz(m: *i64, base: i64, sel: *u8, ty: i64) -> i64 { return sir_node(m, E_SWZ, ty, base, 0, 0, sir_str(m, sel)) }
2742func sir_index(m: *i64, base: i64, idx: i64, ty: i64) -> i64 { return sir_node(m, E_INDEX, ty, base, idx, 0, 0) }
called by 2: ws_palws_fn_pal9 calls 1: sir_node
2746func sir_texload(m: *i64, tex: i64, coord: i64, lod: i64) -> i64
called by 2: ws_fn_vxws_fn_hq calls 2: sir_getsir_node
2751func sir_texsample(m: *i64, tex: i64, coord: i64) -> i64 { return sir_node(m, E_TEXSAMPLE, T_V4F, tex, coord, 0, 0) }
calls 1: sir_node
2754func sir_call(m: *i64, name: *u8, ty: i64) -> i64 { return sir_node(m, E_CALL, ty, 0, 0, 0, sir_str(m, name)) }
2755func sir_ctor(m: *i64, ty: i64) -> i64 { return sir_node(m, E_CTOR, ty, 0, 0, 0, 0) }
called by 4: ws_v1ws_vt2ws_vt3ws_v4 calls 1: sir_node
2756func sir_cast(m: *i64, e: i64, ty: i64) -> i64 { return sir_node(m, E_CAST, ty, e, 0, 0, 0) }
2757func sir_builtin(m: *i64, which: *u8, ty: i64) -> i64
calls 2: sir_nodesir_str
2763func sir_atomic(m: *i64, op: *u8, target: i64, val: i64, ty: i64) -> i64 { return sir_node(m, E_ATOMIC, ty, target, val, 0, sir_str(m, op)) }
calls 2: sir_nodesir_str
2765func sir_select(m: *i64, cond: i64, tval: i64, fval: i64, ty: i64) -> i64 { return sir_node(m, E_SELECT, ty, cond, tval, fval, 0) }
called by 2: ws_fn_upkws_dda_step calls 1: sir_node
2767func sir_neg(m: *i64, e: i64, ty: i64) -> i64 { return sir_node(m, E_NEG, ty, e, 0, 0, 0) }
called by 2: ws_fn_shadews_fn_fs calls 1: sir_node
2769func sir_not(m: *i64, e: i64) -> i64 { return sir_node(m, E_NOT, T_BOOL, e, 0, 0, 0) }
called by 1: ws_fn_shade calls 1: sir_node
2773func sir_let(m: *i64, name: *u8, ty: i64, init: i64) -> i64
2779func sir_arg(m: *i64, callid: i64, e: i64) -> i64
2796func sir_refuse(m: *i64, what: *u8) -> i64
calls 1: sir_str
2800func sir_refused(m: *i64) -> i64 { return m[M_REFUSE] }
2803func eb_put(out: *u8, pos: i64, cap: i64, s: *u8) -> i64
called by 1: eb_num calls 1: sir_slen
2811func eb_num(out: *u8, pos: i64, cap: i64, v: i64) -> i64
calls 2: eb_putsys_mmap
2828func tr_add(trace: *i64, tcap: i64, tn: *i64, id: i64) -> i64
2835func ws_f(m: *i64, s: *u8) -> i64 { return sir_lit(m, s, T_F32) }
2836func ws_i(m: *i64, s: *u8) -> i64 { return sir_lit(m, s, T_I32) }
2838func ws_u(m: *i64, s: *u8) -> i64 { return sir_cast(m, sir_lit(m, s, T_I32), T_U32) }
2839func ws_id(m: *i64, n: *u8, ty: i64) -> i64 { return sir_ident(m, n, ty) }
2840func ws_bin(m: *i64, op: *u8, a: i64, b: i64, ty: i64) -> i64 { return sir_bin(m, op, a, b, ty) }
2841func ws_cmp(m: *i64, op: *u8, a: i64, b: i64) -> i64 { return sir_bin(m, op, a, b, T_BOOL) }
2842func ws_and(m: *i64, a: i64, b: i64) -> i64 { return sir_bin(m, "&&" as *u8, a, b, T_BOOL) }
2843func ws_or(m: *i64, a: i64, b: i64) -> i64 { return sir_bin(m, "||" as *u8, a, b, T_BOOL) }
2844func ws_sw(m: *i64, a: i64, sel: *u8, ty: i64) -> i64 { return sir_swz(m, a, sel, ty) }
called by 3: ws_fn_vxws_fn_pal9ws_fn_hq calls 1: sir_swz
2846func ws_sx(m: *i64, n: *u8, nty: i64, sel: *u8, ty: i64) -> i64 { return sir_swz(m, sir_ident(m, n, nty), sel, ty) }
2847func ws_mem(m: *i64, a: i64, name: *u8, ty: i64) -> i64 { return sir_member_of(m, a, name, ty) }
2848func ws_c1(m: *i64, name: *u8, a: i64, ty: i64) -> i64 { let c: i64 = sir_call(m, name, ty); sir_arg(m, c, a); return c }
2849func ws_c2(m: *i64, name: *u8, a: i64, b: i64, ty: i64) -> i64 { let c: i64 = sir_call(m, name, ty); sir_arg(m, c, a); sir_arg(m, c, b); return c }
2850func ws_c3(m: *i64, name: *u8, a: i64, b: i64, c3: i64, ty: i64) -> i64 { let c: i64 = sir_call(m, name, ty); sir_arg(m, c, a); sir_arg(m, c, b); sir_arg(m, c, c3); return c }
2851func ws_c4(m: *i64, name: *u8, a: i64, b: i64, c3: i64, d: i64, ty: i64) -> i64 { let c: i64 = sir_call(m, name, ty); sir_arg(m, c, a); sir_arg(m, c, b); sir_arg(m, c, c3); sir_arg(m, c, d); return c }
2852func ws_c5(m: *i64, name: *u8, a: i64, b: i64, c3: i64, d: i64, e: i64, ty: i64) -> i64 { let c: i64 = sir_call(m, name, ty); sir_arg(m, c, a); sir_arg(m, c, b); sir_arg(m, c, c3); sir_arg(m, c, d); sir_arg(m, c, e); return c }
2853func ws_c6(m: *i64, name: *u8, a: i64, b: i64, c3: i64, d: i64, e: i64, g: i64, ty: i64) -> i64 { let c: i64 = sir_call(m, name, ty); sir_arg(m, c, a); sir_arg(m, c, b); sir_arg(m, c, c3); sir_arg(m, c, d); sir_arg(m, c, e); sir_arg(m, c, g); return c }
called by 1: ws_fn_fs calls 2: sir_callsir_arg
2854func ws_v1(m: *i64, ty: i64, a: i64) -> i64 { let c: i64 = sir_ctor(m, ty); sir_arg(m, c, a); return c }
2855func ws_vt2(m: *i64, ty: i64, a: i64, b: i64) -> i64 { let c: i64 = sir_ctor(m, ty); sir_arg(m, c, a); sir_arg(m, c, b); return c }
2856func ws_vt3(m: *i64, ty: i64, a: i64, b: i64, c3: i64) -> i64 { let c: i64 = sir_ctor(m, ty); sir_arg(m, c, a); sir_arg(m, c, b); sir_arg(m, c, c3); return c }
2857func ws_v2(m: *i64, a: i64, b: i64) -> i64 { return ws_vt2(m, T_V2F, a, b) }
2858func ws_v3(m: *i64, a: i64, b: i64, c3: i64) -> i64 { return ws_vt3(m, T_V3F, a, b, c3) }
2859func ws_v3i(m: *i64, a: i64, b: i64, c3: i64) -> i64 { return ws_vt3(m, T_V3I, a, b, c3) }
called by 1: ws_fn_vx calls 1: ws_vt3
2860func ws_v4(m: *i64, a: i64, b: i64, c3: i64, d: i64) -> i64 { let c: i64 = sir_ctor(m, T_V4F); sir_arg(m, c, a); sir_arg(m, c, b); sir_arg(m, c, c3); sir_arg(m, c, d); return c }
called by 1: ws_fn_upk calls 2: sir_ctorsir_arg
2862func ws_v2f(m: *i64, a: *u8, b: *u8) -> i64 { return ws_v2(m, ws_f(m, a), ws_f(m, b)) }
2863func ws_v3f(m: *i64, a: *u8, b: *u8, c3: *u8) -> i64 { return ws_v3(m, ws_f(m, a), ws_f(m, b), ws_f(m, c3)) }
2864func ws_q2(m: *i64, a: i64, b: i64) -> i64 { return sir_seq(m, a, b) }
2865func ws_q3(m: *i64, a: i64, b: i64, c: i64) -> i64 { return sir_seq(m, sir_seq(m, a, b), c) }
2866func ws_q4(m: *i64, a: i64, b: i64, c: i64, d: i64) -> i64 { return sir_seq(m, ws_q3(m, a, b, c), d) }
2867func ws_q5(m: *i64, a: i64, b: i64, c: i64, d: i64, e: i64) -> i64 { return sir_seq(m, ws_q4(m, a, b, c, d), e) }
2868func ws_set(m: *i64, lhs: i64, rhs: i64) -> i64 { return sir_assign(m, lhs, rhs) }
2870func ws_op(m: *i64, name: *u8, ty: i64, op: *u8, rhs: i64) -> i64 { return sir_assign(m, sir_ident(m, name, ty), sir_bin(m, op, sir_ident(m, name, ty), rhs, ty)) }
2872func ws_opx(m: *i64, name: *u8, nty: i64, sel: *u8, ty: i64, op: *u8, rhs: i64) -> i64 { return sir_assign(m, ws_sx(m, name, nty, sel, ty), sir_bin(m, op, ws_sx(m, name, nty, sel, ty), rhs, ty)) }
2873func ws_if(m: *i64, c: i64, t: i64, e: i64) -> i64 { return sir_if(m, c, t, e) }
2874func ws_ret(m: *i64, e: i64) -> i64 { return sir_return(m, e) }
2875func ws_st(m: *i64, f: i64, s: i64) -> i64 { return sir_stmt(m, f, s) }
2879func ws_world_uniforms(m: *i64) -> i64
calls 1: sir_uniform
2909func ws_ru(m: *i64, n: *u8, ty: i64) -> i64 { return sir_uniform(m, n, ty, 0) }
called by 1: ws_world_uniforms_raw calls 1: sir_uniform
2910func ws_world_uniforms_raw(m: *i64) -> i64
calls 1: ws_ru
2926func ws_world_privates(m: *i64) -> i64
calls 1: sir_private
2936func ws_fi(m: *i64, n: *u8) -> i64 { return sir_cast(m, sir_ident(m, n, T_I32), T_F32) }
2938func ws_fn_rgb9(m: *i64) -> i64
2948func ws_pal(m: *i64, f: i64, arr: *u8, k: *u8, rn: *u8) -> i64
2956func ws_fn_upk(m: *i64) -> i64
2994func ws_fn_vx(m: *i64) -> i64
3012func ws_fn_h21(m: *i64) -> i64
3021func ws_fn_h31(m: *i64) -> i64
3030func ws_fn_pal9(m: *i64) -> i64
3044func ws_noise2(m: *i64, iname: *u8, fname: *u8) -> i64
3093func ws_h31o(m: *i64, a: *u8, b: *u8, c: *u8) -> i64
called by 1: ws_fn_vn3 calls 4: ws_c1ws_binws_idws_v3f
3096func ws_fx(m: *i64, sel: *u8) -> i64 { return ws_sx(m, "f" as *u8, T_V3F, sel, T_F32) }
called by 1: ws_fn_vn3 calls 1: ws_sx
3097func ws_py(m: *i64) -> i64 { return ws_sx(m, "p" as *u8, T_V3F, "y" as *u8, T_F32) }
calls 1: ws_sx
3099func ws_fn_vn3(m: *i64) -> i64
3119func ws_fn_cvol(m: *i64) -> i64
3135func ws_fn_csun(m: *i64) -> i64
3148func ws_fn_cld3(m: *i64) -> i64
3180func ws_fn_sky(m: *i64) -> i64
3200func ws_struct_hit(m: *i64) -> i64
3210func ws_dda_step(m: *i64, ax: *u8, fneg: *u8, fpos: *u8) -> i64
3221func ws_fn_hq(m: *i64) -> i64
3237func ws_fn_surf(m: *i64) -> i64
3259func ws_fn_terrain(m: *i64) -> i64
3271func ws_fn_smarch(m: *i64) -> i64
3308func ws_fn_gnd(m: *i64) -> i64
3332func ws_fn_march(m: *i64, hty: i64) -> i64
3389func ws_face(m: *i64, sw: *u8, ax: *u8, op: *u8, nx: *u8, ny: *u8, nz: *u8) -> i64
3396func ws_li(m: *i64, k: *u8) -> i64 { return ws_op(m, "li" as *u8, T_F32, "*" as *u8, ws_f(m, k)) }
called by 2: ws_shdws_fn_shade calls 2: ws_opws_f
3398func ws_fce(m: *i64, k: *u8) -> i64 { return ws_cmp(m, "==" as *u8, ws_id(m, "fce" as *u8, T_I32), ws_i(m, k)) }
3400func ws_beq(m: *i64, k: *u8) -> i64 { return ws_cmp(m, "==" as *u8, ws_id(m, "b" as *u8, T_U32), ws_u(m, k)) }
3402func ws_ao(m: *i64, fa: *u8, cmp: *u8, edge: *u8, nudge: i64, gain: i64) -> i64
3409func ws_nb(m: *i64, ax: *u8, op: *u8) -> i64 { return ws_opx(m, "nb" as *u8, T_V3I, ax, T_I32, op, ws_i(m, "1" as *u8)) }
called by 1: ws_fn_shade calls 2: ws_opxws_i
3411func ws_topbot(m: *i64) -> i64 { return ws_or(m, ws_fce(m, "3" as *u8), ws_fce(m, "4" as *u8)) }
3416func ws_smooth(m: *i64) -> i64
3421func ws_cont_water(m: *i64) -> i64
3424func ws_cont_surface(m: *i64) -> i64 { return ws_or(m, ws_smooth(m), ws_cont_water(m)) }
3426func ws_step_down(m: *i64) -> i64
3470func ws_sd_pxz(m: *i64) -> i64 { return ws_sx(m, "hp" as *u8, T_V3F, "xz" as *u8, T_V2F) }
called by 2: ws_sd_surfws_fn_sand calls 1: ws_sx
3471func ws_sd_f(m: *i64, n: *u8) -> i64 { return ws_id(m, n, T_F32) }
3472func ws_sd_v3(m: *i64, n: *u8) -> i64 { return ws_id(m, n, T_V3F) }
called by 1: ws_fn_sand calls 1: ws_id
3474func ws_sd_surf(m: *i64, op: *u8, dx: *u8, dz: *u8) -> i64 { return ws_c1(m, "surf" as *u8, ws_bin(m, op, ws_sd_pxz(m), ws_v2f(m, dx, dz), T_V2F), T_F32) }
3476func ws_sd_g(m: *i64, dx: *u8, dz: *u8) -> i64 { return ws_c1(m, "h21" as *u8, ws_bin(m, "+" as *u8, ws_id(m, "gc" as *u8, T_V2F), ws_v2f(m, dx, dz), T_V2F), T_F32) }
called by 1: ws_fn_sand calls 4: ws_c1ws_binws_idws_v2f
3477func ws_sd_lt0(m: *i64, n: *u8) -> i64 { return ws_cmp(m, "<" as *u8, ws_id(m, n, T_F32), ws_f(m, "0.0" as *u8)) }
called by 1: ws_fn_sand calls 3: ws_cmpws_idws_f
3478func ws_sd_dk(m: *i64, n: *u8) -> i64 { return ws_bin(m, "*" as *u8, ws_id(m, n, T_I32), ws_id(m, "k" as *u8, T_I32), T_I32) }
called by 1: ws_sd_wat calls 2: ws_binws_id
3480func ws_sd_wat(m: *i64, y: *u8) -> i64 { return ws_cmp(m, "==" as *u8, ws_c1(m, "vx" as *u8, ws_bin(m, "+" as *u8, ws_id(m, "c" as *u8, T_V3I), ws_vt3(m, T_V3I, ws_sd_dk(m, "dx" as *u8), ws_i(m, y), ws_sd_dk(m, "dz" as *u8)), T_V3I), T_U32), ws_u(m, "4" as *u8)) }
3482func ws_sd_dir(m: *i64, shift: *u8) -> i64 { return sir_cast(m, ws_c1(m, "floor" as *u8, ws_bin(m, "+" as *u8, ws_c1(m, "sin" as *u8, ws_bin(m, "+" as *u8, ws_id(m, "a" as *u8, T_F32), ws_f(m, shift), T_F32), T_F32), ws_f(m, SD_HALF), T_F32), T_F32), T_I32) }
3484func ws_sd_fade(m: *i64, freq: *u8) -> i64 { return ws_c3(m, "clamp" as *u8, ws_bin(m, "-" as *u8, ws_f(m, "1.0" as *u8), ws_bin(m, "*" as *u8, ws_bin(m, "*" as *u8, ws_f(m, SD_TWO), ws_sd_f(m, "fp" as *u8), T_F32), ws_f(m, freq), T_F32), T_F32), ws_f(m, "0.0" as *u8), ws_f(m, "1.0" as *u8), T_F32) }
called by 1: ws_fn_sand calls 4: ws_c3ws_binws_fws_sd_f
3486func ws_sd_dslope(m: *i64, a: *u8, b: *u8, k: *u8) -> i64 { return ws_bin(m, "*" as *u8, ws_bin(m, "-" as *u8, ws_sd_f(m, a), ws_sd_f(m, b), T_F32), ws_f(m, k), T_F32) }
called by 1: ws_fn_sand calls 3: ws_binws_sd_fws_f
3488func ws_sd_tilt(m: *i64, s: *u8, g: *u8, rdk: *u8) -> i64
called by 1: ws_fn_sand calls 3: ws_binws_sd_fws_f
3495func ws_sandcls(m: *i64) -> i64 { return ws_or(m, ws_or(m, ws_beq(m, "1" as *u8), ws_beq(m, "2" as *u8)), ws_beq(m, "5" as *u8)) }
called by 2: ws_sandyws_fn_shade calls 2: ws_orws_beq
3496func ws_sandy(m: *i64) -> i64 { return ws_and(m, ws_smooth(m), ws_sandcls(m)) }
3498func ws_shd(m: *i64) -> i64 { return ws_q2(m, ws_li(m, "0.55" as *u8), ws_op(m, "sp" as *u8, T_F32, "*" as *u8, ws_f(m, SD_SHADOW_SPEC))) }
called by 1: ws_fn_shade calls 4: ws_q2ws_liws_opws_f
3499func ws_fn_sand(m: *i64) -> i64
3567func ws_fn_shade(m: *i64, hty: i64) -> i64
3665func ws_bt(m: *i64, k: *u8, v: *u8, els: i64) -> i64
3669func ws_pxo(m: *i64, a: *u8, op: *u8, e: i64) -> i64 { return ws_cmp(m, op, ws_sx(m, "px" as *u8, T_V2F, a, T_F32), ws_bin(m, "+" as *u8, ws_sx(m, "o" as *u8, T_V2F, a, T_F32), e, T_F32)) }
3675func ws_fn_water_hit(m: *i64, hty: i64) -> i64
3700func ws_fn_scene_hit(m: *i64, hty: i64) -> i64
3732func ws_fn_fs(m: *i64, hty: i64) -> i64