(module ;; Coni String Array (UTF-8 Characters) (type $coni_string (array (mut i8))) ;; Native Wasm-GC Float32 Array (type $coni_f32_array (array (mut f32))) ;; Boxed Dynamic Variable (Wasm-GC Struct) ;; - tag: Indicates Type (0=Nil, 1=Bool, 2=Int, 3=Float, etc) ;; - num: Stores integers or floats as raw binary data without allocations (i64 block) ;; - ref: Stores references to strings, lists, maps, or closures (anyref) ;; - fn: Stores executable func pointers (funcref) (type $coni_val (struct (field $tag i32) (field $num (mut i64)) (field $ref (mut anyref)) (field $fn (mut funcref)) )) ;; Linked List Node for S-Expressions (type $coni_list_node (struct (field $value (mut (ref null $coni_val))) (field $next (mut (ref null $coni_list_node))) )) ;; Dynamic Vector Array (type $coni_vector (array (mut (ref null $coni_val)))) ;; Closure Environment Array (type $coni_env (array (mut (ref null any)))) ;; Function signature for any generated Coni Anonymous Function (type $coni_fn (func (param (ref null $coni_vector)) (result (ref null $coni_val)))) ;; Host Imports & JS Interop bindings (import "env" "println" (func $host_println (param (ref null $coni_vector)) (result (ref null $coni_val)))) (import "env" "js_get" (func $host_js_get (param (ref null $coni_vector)) (result (ref null $coni_val)))) (import "env" "js_set" (func $host_js_set (param (ref null $coni_vector)) (result (ref null $coni_val)))) (import "env" "js_call" (func $host_js_call (param (ref null $coni_vector)) (result (ref null $coni_val)))) (import "env" "js_new" (func $host_js_new (param (ref null $coni_vector)) (result (ref null $coni_val)))) (import "env" "js_obj" (func $host_js_obj (param (ref null $coni_vector)) (result (ref null $coni_val)))) (import "env" "js_global" (func $host_js_global (param (ref null $coni_val)) (result (ref null $coni_val)))) (import "env" "core_str" (func $host_core_str (param (ref null $coni_vector)) (result (ref null $coni_val)))) (import "env" "core_get" (func $host_core_get (param (ref null $coni_val)) (param (ref null $coni_val)) (result (ref null $coni_val)))) (import "env" "core_type" (func $host_core_type (param (ref null $coni_val)) (result (ref null $coni_val)))) (import "env" "core_count" (func $host_core_count (param (ref null $coni_val)) (result (ref null $coni_val)))) (import "env" "core_assoc" (func $host_core_assoc (param (ref null $coni_val)) (param (ref null $coni_val)) (param (ref null $coni_val)) (result (ref null $coni_val)))) (import "env" "core_conj" (func $host_core_conj (param (ref null $coni_val)) (param (ref null $coni_val)) (result (ref null $coni_val)))) (import "env" "core_lib" (func $host_core_lib (param (ref null $coni_vector)) (result (ref null $coni_val)))) (import "env" "core_notify_watchers" (func $host_core_notify_watchers (param (ref null $coni_val)) (param (ref null $coni_val)) (param (ref null $coni_val)))) (import "env" "js_on_event" (func $host_js_on_event (param (ref null $coni_vector)) (result (ref null $coni_val)))) (import "env" "math_sin" (func $host_math_sin (param (ref null $coni_val)) (result (ref null $coni_val)))) (import "env" "math_cos" (func $host_math_cos (param (ref null $coni_val)) (result (ref null $coni_val)))) (import "env" "math_abs" (func $host_math_abs (param (ref null $coni_val)) (result (ref null $coni_val)))) (import "env" "math_floor" (func $host_math_floor (param (ref null $coni_val)) (result (ref null $coni_val)))) (import "env" "math_parseInt" (func $host_math_parseInt (param (ref null $coni_val)) (result (ref null $coni_val)))) (import "env" "math_sqrt" (func $host_math_sqrt (param (ref null $coni_val)) (result (ref null $coni_val)))) (import "env" "math_min" (func $host_math_min (param (ref null $coni_val)) (param (ref null $coni_val)) (result (ref null $coni_val)))) (import "env" "math_max" (func $host_math_max (param (ref null $coni_val)) (param (ref null $coni_val)) (result (ref null $coni_val)))) (import "env" "math_mod" (func $host_math_mod (param (ref null $coni_val)) (param (ref null $coni_val)) (result (ref null $coni_val)))) (import "env" "math_random" (func $host_math_random (result (ref null $coni_val)))) ;; Globals Space (global $current_env (mut (ref null any)) (ref.null any)) (global $global_println (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_js_get (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_js_set (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_js_call (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_js_new (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_js_obj (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_js_global (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_get (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_assoc (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_conj (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_count (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_core_lib (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_window (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_document (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_E (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_PI (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_abs (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_signum (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_copy-sign (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_clamp (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_max (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_min (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_sum (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_product (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_ceil (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_floor (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_round (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_rint (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_exp (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_expm1 (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_pow (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_sqrt (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_cbrt (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_hypot (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_log (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_log10 (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_log1p (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_log2 (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_sin (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_cos (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_tan (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_asin (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_acos (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_atan (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_atan2 (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_to-degrees (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_to-radians (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_sinh (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_cosh (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_tanh (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_asinh (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_acosh (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_atanh (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_remainder (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_rem (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_mod (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_random (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_random-int (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_next-after (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_w (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_h (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_cols (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_rows (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_scl (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_terrain (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global__proj_ (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_cam-state (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_num-particles (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_particles-x (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_particles-y (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_particles-z (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_init-particles (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_update-mouse_ (mut (ref null $coni_val)) (ref.null $coni_val)) (global $global_render-frame (mut (ref null $coni_val)) (ref.null $coni_val)) ;; Functions Space (func (export "get_window") (result i64) (struct.get $coni_val $num (global.get $global_window)) ) (func (export "get_document") (result i64) (struct.get $coni_val $num (global.get $global_document)) ) (func (export "get_E") (result i64) (struct.get $coni_val $num (global.get $global_E)) ) (func (export "get_PI") (result i64) (struct.get $coni_val $num (global.get $global_PI)) ) (func $fn_1 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_1))) (block (result (ref null $coni_val)) (call $host_math_abs (local.get $local_0_a)) ) ) (func (export "get_abs") (result i64) (struct.get $coni_val $num (global.get $global_abs)) ) (func $fn_2 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_2))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 11 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 115) (i32.const 105) (i32.const 103) (i32.const 110) (i32.const 117) (i32.const 109)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_signum") (result i64) (struct.get $coni_val $num (global.get $global_signum)) ) (func $fn_3 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_b (ref null $coni_val)) (local $local_2_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_b (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_b (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_2_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_3))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 13 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 99) (i32.const 111) (i32.const 112) (i32.const 121) (i32.const 115) (i32.const 105) (i32.const 103) (i32.const 110)) (ref.null func)) (local.get $local_0_a) (local.get $local_1_b)) (ref.null func))))) ) ) (func (export "get_copy-sign") (result i64) (struct.get $coni_val $num (global.get $global_copy-sign)) ) (func $fn_4 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_b (ref null $coni_val)) (local $local_2_c (ref null $coni_val)) (local $local_3_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_b (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_b (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 2) (array.len (local.get $args))) (then (local.set $local_2_c (array.get $coni_vector (local.get $args) (i32.const 2)))) (else (local.set $local_2_c (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_3_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_4))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 4 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 10 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 99) (i32.const 108) (i32.const 97) (i32.const 109) (i32.const 112)) (ref.null func)) (local.get $local_0_a) (local.get $local_1_b) (local.get $local_2_c)) (ref.null func))))) ) ) (func (export "get_clamp") (result i64) (struct.get $coni_val $num (global.get $global_clamp)) ) (func $fn_5 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_b (ref null $coni_val)) (local $local_2_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_b (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_b (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_2_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_5))) (block (result (ref null $coni_val)) (if (result (ref null $coni_val)) (call $coni_truthy (call $val_gt (local.get $local_0_a) (local.get $local_1_b))) (then (local.get $local_0_a)) (else (local.get $local_1_b)) ) ) ) (func (export "get_max") (result i64) (struct.get $coni_val $num (global.get $global_max)) ) (func $fn_6 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_b (ref null $coni_val)) (local $local_2_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_b (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_b (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_2_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_6))) (block (result (ref null $coni_val)) (if (result (ref null $coni_val)) (call $coni_truthy (call $val_lt (local.get $local_0_a) (local.get $local_1_b))) (then (local.get $local_0_a)) (else (local.get $local_1_b)) ) ) ) (func (export "get_min") (result i64) (struct.get $coni_val $num (global.get $global_min)) ) (func $fn_8 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_b (ref null $coni_val)) (local $local_2_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_b (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_b (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_2_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_8))) (block (result (ref null $coni_val)) (call $val_add (local.get $local_0_a) (local.get $local_1_b)) ) ) (func $fn_7 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_xs (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_xs (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_xs (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_7))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 4 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 114) (i32.const 101) (i32.const 100) (i32.const 117) (i32.const 99) (i32.const 101)) (ref.null func)) (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_8)) (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func)) (local.get $local_0_xs)) (ref.null func))))) ) ) (func (export "get_sum") (result i64) (struct.get $coni_val $num (global.get $global_sum)) ) (func $fn_10 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_b (ref null $coni_val)) (local $local_2_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_b (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_b (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_2_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_10))) (block (result (ref null $coni_val)) (call $val_mul (local.get $local_0_a) (local.get $local_1_b)) ) ) (func $fn_9 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_xs (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_xs (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_xs (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_9))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 4 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 114) (i32.const 101) (i32.const 100) (i32.const 117) (i32.const 99) (i32.const 101)) (ref.null func)) (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_10)) (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func)) (local.get $local_0_xs)) (ref.null func))))) ) ) (func (export "get_product") (result i64) (struct.get $coni_val $num (global.get $global_product)) ) (func $fn_11 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_11))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 99) (i32.const 101) (i32.const 105) (i32.const 108)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_ceil") (result i64) (struct.get $coni_val $num (global.get $global_ceil)) ) (func $fn_12 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_12))) (block (result (ref null $coni_val)) (call $host_math_floor (local.get $local_0_a)) ) ) (func (export "get_floor") (result i64) (struct.get $coni_val $num (global.get $global_floor)) ) (func $fn_13 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_13))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 10 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 114) (i32.const 111) (i32.const 117) (i32.const 110) (i32.const 100)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_round") (result i64) (struct.get $coni_val $num (global.get $global_round)) ) (func $fn_14 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_14))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 114) (i32.const 105) (i32.const 110) (i32.const 116)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_rint") (result i64) (struct.get $coni_val $num (global.get $global_rint)) ) (func $fn_15 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_15))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 8 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 101) (i32.const 120) (i32.const 112)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_exp") (result i64) (struct.get $coni_val $num (global.get $global_exp)) ) (func $fn_16 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_16))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 10 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 101) (i32.const 120) (i32.const 112) (i32.const 109) (i32.const 49)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_expm1") (result i64) (struct.get $coni_val $num (global.get $global_expm1)) ) (func $fn_17 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_b (ref null $coni_val)) (local $local_2_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_b (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_b (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_2_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_17))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 8 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 112) (i32.const 111) (i32.const 119)) (ref.null func)) (local.get $local_0_a) (local.get $local_1_b)) (ref.null func))))) ) ) (func (export "get_pow") (result i64) (struct.get $coni_val $num (global.get $global_pow)) ) (func $fn_18 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_18))) (block (result (ref null $coni_val)) (call $host_math_sqrt (local.get $local_0_a)) ) ) (func (export "get_sqrt") (result i64) (struct.get $coni_val $num (global.get $global_sqrt)) ) (func $fn_19 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_19))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 99) (i32.const 98) (i32.const 114) (i32.const 116)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_cbrt") (result i64) (struct.get $coni_val $num (global.get $global_cbrt)) ) (func $fn_20 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_b (ref null $coni_val)) (local $local_2_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_b (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_b (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_2_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_20))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 10 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 104) (i32.const 121) (i32.const 112) (i32.const 111) (i32.const 116)) (ref.null func)) (local.get $local_0_a) (local.get $local_1_b)) (ref.null func))))) ) ) (func (export "get_hypot") (result i64) (struct.get $coni_val $num (global.get $global_hypot)) ) (func $fn_21 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_21))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 8 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 108) (i32.const 111) (i32.const 103)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_log") (result i64) (struct.get $coni_val $num (global.get $global_log)) ) (func $fn_22 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_22))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 10 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 108) (i32.const 111) (i32.const 103) (i32.const 49) (i32.const 48)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_log10") (result i64) (struct.get $coni_val $num (global.get $global_log10)) ) (func $fn_23 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_23))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 10 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 108) (i32.const 111) (i32.const 103) (i32.const 49) (i32.const 112)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_log1p") (result i64) (struct.get $coni_val $num (global.get $global_log1p)) ) (func $fn_24 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_24))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 108) (i32.const 111) (i32.const 103) (i32.const 50)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_log2") (result i64) (struct.get $coni_val $num (global.get $global_log2)) ) (func $fn_25 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_25))) (block (result (ref null $coni_val)) (call $host_math_sin (local.get $local_0_a)) ) ) (func (export "get_sin") (result i64) (struct.get $coni_val $num (global.get $global_sin)) ) (func $fn_26 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_26))) (block (result (ref null $coni_val)) (call $host_math_cos (local.get $local_0_a)) ) ) (func (export "get_cos") (result i64) (struct.get $coni_val $num (global.get $global_cos)) ) (func $fn_27 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_27))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 8 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 116) (i32.const 97) (i32.const 110)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_tan") (result i64) (struct.get $coni_val $num (global.get $global_tan)) ) (func $fn_28 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_28))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 97) (i32.const 115) (i32.const 105) (i32.const 110)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_asin") (result i64) (struct.get $coni_val $num (global.get $global_asin)) ) (func $fn_29 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_29))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 97) (i32.const 99) (i32.const 111) (i32.const 115)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_acos") (result i64) (struct.get $coni_val $num (global.get $global_acos)) ) (func $fn_30 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_30))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 97) (i32.const 116) (i32.const 97) (i32.const 110)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_atan") (result i64) (struct.get $coni_val $num (global.get $global_atan)) ) (func $fn_31 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_b (ref null $coni_val)) (local $local_2_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_b (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_b (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_2_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_31))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 10 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 97) (i32.const 116) (i32.const 97) (i32.const 110) (i32.const 50)) (ref.null func)) (local.get $local_0_a) (local.get $local_1_b)) (ref.null func))))) ) ) (func (export "get_atan2") (result i64) (struct.get $coni_val $num (global.get $global_atan2)) ) (func $fn_32 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_rad (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_rad (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_rad (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_32))) (block (result (ref null $coni_val)) (call $val_mul (local.get $local_0_rad) (call $val_div (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 180)) (ref.null any) (ref.null func)) (global.get $global_PI))) ) ) (func (export "get_to-degrees") (result i64) (struct.get $coni_val $num (global.get $global_to-degrees)) ) (func $fn_33 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_deg (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_deg (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_deg (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_33))) (block (result (ref null $coni_val)) (call $val_mul (local.get $local_0_deg) (call $val_div (global.get $global_PI) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 180)) (ref.null any) (ref.null func)))) ) ) (func (export "get_to-radians") (result i64) (struct.get $coni_val $num (global.get $global_to-radians)) ) (func $fn_34 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_34))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 115) (i32.const 105) (i32.const 110) (i32.const 104)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_sinh") (result i64) (struct.get $coni_val $num (global.get $global_sinh)) ) (func $fn_35 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_35))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 99) (i32.const 111) (i32.const 115) (i32.const 104)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_cosh") (result i64) (struct.get $coni_val $num (global.get $global_cosh)) ) (func $fn_36 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_36))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 116) (i32.const 97) (i32.const 110) (i32.const 104)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_tanh") (result i64) (struct.get $coni_val $num (global.get $global_tanh)) ) (func $fn_37 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_37))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 10 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 97) (i32.const 115) (i32.const 105) (i32.const 110) (i32.const 104)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_asinh") (result i64) (struct.get $coni_val $num (global.get $global_asinh)) ) (func $fn_38 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_38))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 10 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 97) (i32.const 99) (i32.const 111) (i32.const 115) (i32.const 104)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_acosh") (result i64) (struct.get $coni_val $num (global.get $global_acosh)) ) (func $fn_39 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_39))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 10 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 97) (i32.const 116) (i32.const 97) (i32.const 110) (i32.const 104)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_atanh") (result i64) (struct.get $coni_val $num (global.get $global_atanh)) ) (func $fn_40 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_b (ref null $coni_val)) (local $local_2_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_b (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_b (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_2_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_40))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 14 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 114) (i32.const 101) (i32.const 109) (i32.const 97) (i32.const 105) (i32.const 110) (i32.const 100) (i32.const 101) (i32.const 114)) (ref.null func)) (local.get $local_0_a) (local.get $local_1_b)) (ref.null func))))) ) ) (func (export "get_remainder") (result i64) (struct.get $coni_val $num (global.get $global_remainder)) ) (func $fn_41 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_b (ref null $coni_val)) (local $local_2_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_b (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_b (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_2_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_41))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 14 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 114) (i32.const 101) (i32.const 109) (i32.const 97) (i32.const 105) (i32.const 110) (i32.const 100) (i32.const 101) (i32.const 114)) (ref.null func)) (local.get $local_0_a) (local.get $local_1_b)) (ref.null func))))) ) ) (func (export "get_rem") (result i64) (struct.get $coni_val $num (global.get $global_rem)) ) (func $fn_42 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_num (ref null $coni_val)) (local $local_1_div (ref null $coni_val)) (local $local_2_loop-fn (ref null $coni_val)) (local $local_3_fn_tmp (ref null $coni_val)) (local $local_4_arg_val (ref null $coni_val)) (local $local_5_arg_val (ref null $coni_val)) (local $local_6_m (ref null $coni_val)) (local $local_7_or_ (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_num (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_num (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_div (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_div (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_2_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_42))) (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (local.set $local_6_m (block (result (ref null $coni_val)) (local.set $local_3_fn_tmp (global.get $global_remainder)) (local.set $local_4_arg_val (local.get $local_0_num)) (local.set $local_5_arg_val (local.get $local_1_div)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_3_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 2 (local.get $local_4_arg_val) (local.get $local_5_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_3_fn_tmp)))) )) (if (result (ref null $coni_val)) (call $coni_truthy (block (result (ref null $coni_val)) (local.set $local_7_or_ (struct.new $coni_val (i32.const 1) (i64.extend_i32_s (call $val_eq (local.get $local_6_m) (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func)))) (ref.null any) (ref.null func))) (if (result (ref null $coni_val)) (call $coni_truthy (local.get $local_7_or_)) (then (local.get $local_7_or_)) (else (struct.new $coni_val (i32.const 1) (i64.extend_i32_s (call $val_eq (call $val_gt (local.get $local_0_num) (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))) (call $val_gt (local.get $local_1_div) (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))))) (ref.null any) (ref.null func))) ) )) (then (local.get $local_6_m)) (else (call $val_add (local.get $local_6_m) (local.get $local_1_div))) ) ) ) ) (func (export "get_mod") (result i64) (struct.get $coni_val $num (global.get $global_mod)) ) (func $fn_43 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_loop-fn (ref null $coni_val)) (local.set $local_0_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_43))) (block (result (ref null $coni_val)) (call $host_math_random) ) ) (func (export "get_random") (result i64) (struct.get $coni_val $num (global.get $global_random)) ) (func $fn_44 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_44))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 15 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 114) (i32.const 97) (i32.const 110) (i32.const 100) (i32.const 111) (i32.const 109) (i32.const 45) (i32.const 105) (i32.const 110) (i32.const 116)) (ref.null func)) (local.get $local_0_a)) (ref.null func))))) ) ) (func (export "get_random-int") (result i64) (struct.get $coni_val $num (global.get $global_random-int)) ) (func $fn_45 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_a (ref null $coni_val)) (local $local_1_b (ref null $coni_val)) (local $local_2_loop-fn (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_a (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_a (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_b (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_b (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_2_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_45))) (block (result (ref null $coni_val)) (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 14 (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 104) (i32.const 45) (i32.const 110) (i32.const 101) (i32.const 120) (i32.const 116) (i32.const 97) (i32.const 102) (i32.const 116) (i32.const 101) (i32.const 114)) (ref.null func)) (local.get $local_0_a) (local.get $local_1_b)) (ref.null func))))) ) ) (func (export "get_next-after") (result i64) (struct.get $coni_val $num (global.get $global_next-after)) ) (func (export "get_w") (result i64) (struct.get $coni_val $num (global.get $global_w)) ) (func (export "get_h") (result i64) (struct.get $coni_val $num (global.get $global_h)) ) (func (export "get_cols") (result i64) (struct.get $coni_val $num (global.get $global_cols)) ) (func (export "get_rows") (result i64) (struct.get $coni_val $num (global.get $global_rows)) ) (func (export "get_scl") (result i64) (struct.get $coni_val $num (global.get $global_scl)) ) (func (export "get_terrain") (result i64) (struct.get $coni_val $num (global.get $global_terrain)) ) (func (export "get__proj_") (result i64) (struct.get $coni_val $num (global.get $global__proj_)) ) (func (export "get_cam-state") (result i64) (struct.get $coni_val $num (global.get $global_cam-state)) ) (func (export "get_num-particles") (result i64) (struct.get $coni_val $num (global.get $global_num-particles)) ) (func (export "get_particles-x") (result i64) (struct.get $coni_val $num (global.get $global_particles-x)) ) (func (export "get_particles-y") (result i64) (struct.get $coni_val $num (global.get $global_particles-y)) ) (func (export "get_particles-z") (result i64) (struct.get $coni_val $num (global.get $global_particles-z)) ) (func $fn_46 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_loop-fn (ref null $coni_val)) (local $local_1_i (ref null $coni_val)) (local $local_3_recur_tmp_0 (ref null $coni_val)) (local.set $local_0_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_46))) (block (result (ref null $coni_val)) (block $loop_end_2 (result (ref null $coni_val)) (local.set $local_1_i (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))) (loop $loop_start_2 (result (ref null $coni_val)) (block (result (ref null $coni_val)) (if (result (ref null $coni_val)) (call $coni_truthy (call $val_lt (local.get $local_1_i) (global.get $global_num-particles))) (then (block (result (ref null $coni_val)) (drop (block (result (ref null $coni_val)) (array.set $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global_particles-x))) (i32.trunc_f64_s (call $unwrap_float (local.get $local_1_i))) (f32.demote_f64 (call $unwrap_float (call $val_sub (call $val_mul (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 1 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 4 (i32.const 114) (i32.const 97) (i32.const 110) (i32.const 100)) (ref.null func))) (ref.null func))))) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 6000)) (ref.null any) (ref.null func))) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 3000)) (ref.null any) (ref.null func)))))) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) (drop (block (result (ref null $coni_val)) (array.set $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global_particles-y))) (i32.trunc_f64_s (call $unwrap_float (local.get $local_1_i))) (f32.demote_f64 (call $unwrap_float (call $val_add (call $val_mul (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 1 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 4 (i32.const 114) (i32.const 97) (i32.const 110) (i32.const 100)) (ref.null func))) (ref.null func))))) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2000)) (ref.null any) (ref.null func))) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 300)) (ref.null any) (ref.null func)))))) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) (drop (block (result (ref null $coni_val)) (array.set $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global_particles-z))) (i32.trunc_f64_s (call $unwrap_float (local.get $local_1_i))) (f32.demote_f64 (call $unwrap_float (call $val_sub (call $val_mul (call $host_core_lib (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 1 (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 4 (i32.const 114) (i32.const 97) (i32.const 110) (i32.const 100)) (ref.null func))) (ref.null func))))) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 6000)) (ref.null any) (ref.null func))) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 3000)) (ref.null any) (ref.null func)))))) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) (block (result (ref null $coni_val)) (local.set $local_3_recur_tmp_0 (call $val_add (local.get $local_1_i) (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func)))) (local.set $local_1_i (local.get $local_3_recur_tmp_0)) (br $loop_start_2) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)) ) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) ) ) ) ) ) ) (func (export "get_init-particles") (result i64) (struct.get $coni_val $num (global.get $global_init-particles)) ) (func $fn_47 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_x (ref null $coni_val)) (local $local_1_y (ref null $coni_val)) (local $local_2_cw (ref null $coni_val)) (local $local_3_ch (ref null $coni_val)) (local $local_4_loop-fn (ref null $coni_val)) (local $local_5_nx (ref null $coni_val)) (local $local_6_ny (ref null $coni_val)) (local $local_7_reset_col (ref null $coni_val)) (local $local_8_reset_old (ref null $coni_val)) (local $local_9_reset_new (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_x (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_x (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_y (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_y (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 2) (array.len (local.get $args))) (then (local.set $local_2_cw (array.get $coni_vector (local.get $args) (i32.const 2)))) (else (local.set $local_2_cw (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 3) (array.len (local.get $args))) (then (local.set $local_3_ch (array.get $coni_vector (local.get $args) (i32.const 3)))) (else (local.set $local_3_ch (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_4_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_47))) (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (local.set $local_5_nx (call $val_sub (call $val_mul (call $val_div (local.get $local_0_x) (local.get $local_2_cw)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func))) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 1)) (ref.null any) (ref.null func)))) (local.set $local_6_ny (call $val_sub (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 1)) (ref.null any) (ref.null func)) (call $val_mul (call $val_div (local.get $local_1_y) (local.get $local_3_ch)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func))))) (block (result (ref null $coni_val)) (local.set $local_7_reset_col (global.get $global_cam-state)) (local.set $local_9_reset_new (call $host_core_assoc (call $host_core_assoc (array.get $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (global.get $global_cam-state))) (i32.const 0)) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 109) (i32.const 111) (i32.const 117) (i32.const 115) (i32.const 101) (i32.const 45) (i32.const 120)) (ref.null func)) (local.get $local_5_nx)) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 109) (i32.const 111) (i32.const 117) (i32.const 115) (i32.const 101) (i32.const 45) (i32.const 121)) (ref.null func)) (local.get $local_6_ny))) (local.set $local_8_reset_old (array.get $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_7_reset_col))) (i32.const 0))) (array.set $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_7_reset_col))) (i32.const 0) (local.get $local_9_reset_new)) (call $host_core_notify_watchers (local.get $local_7_reset_col) (local.get $local_8_reset_old) (local.get $local_9_reset_new)) (local.get $local_9_reset_new)) ) ) ) (func (export "get_update-mouse_") (result i64) (struct.get $coni_val $num (global.get $global_update-mouse_)) ) (func $fn_48 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_e (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (local $local_2_cx (ref null $coni_val)) (local $local_3_cy (ref null $coni_val)) (local $local_4_cw (ref null $coni_val)) (local $local_5_ch (ref null $coni_val)) (local $local_6_fn_tmp (ref null $coni_val)) (local $local_7_arg_val (ref null $coni_val)) (local $local_8_arg_val (ref null $coni_val)) (local $local_9_arg_val (ref null $coni_val)) (local $local_10_arg_val (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_e (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_e (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_48))) (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (local.set $local_2_cx (call $host_js_get (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (local.get $local_0_e) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 99) (i32.const 108) (i32.const 105) (i32.const 101) (i32.const 110) (i32.const 116) (i32.const 88)) (ref.null func))) (ref.null func)))))) (local.set $local_3_cy (call $host_js_get (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (local.get $local_0_e) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 99) (i32.const 108) (i32.const 105) (i32.const 101) (i32.const 110) (i32.const 116) (i32.const 89)) (ref.null func))) (ref.null func)))))) (local.set $local_4_cw (call $host_js_get (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (global.get $global_window) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 10 (i32.const 105) (i32.const 110) (i32.const 110) (i32.const 101) (i32.const 114) (i32.const 87) (i32.const 105) (i32.const 100) (i32.const 116) (i32.const 104)) (ref.null func))) (ref.null func)))))) (local.set $local_5_ch (call $host_js_get (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (global.get $global_window) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 11 (i32.const 105) (i32.const 110) (i32.const 110) (i32.const 101) (i32.const 114) (i32.const 72) (i32.const 101) (i32.const 105) (i32.const 103) (i32.const 104) (i32.const 116)) (ref.null func))) (ref.null func)))))) (block (result (ref null $coni_val)) (local.set $local_6_fn_tmp (global.get $global_update-mouse_)) (local.set $local_7_arg_val (local.get $local_2_cx)) (local.set $local_8_arg_val (local.get $local_3_cy)) (local.set $local_9_arg_val (local.get $local_4_cw)) (local.set $local_10_arg_val (local.get $local_5_ch)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_6_fn_tmp))) (return_call_ref $coni_fn (array.new_fixed $coni_vector 4 (local.get $local_7_arg_val) (local.get $local_8_arg_val) (local.get $local_9_arg_val) (local.get $local_10_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_6_fn_tmp)))) ) ) ) ) (func $fn_49 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_e (ref null $coni_val)) (local $local_1_loop-fn (ref null $coni_val)) (local $local_2_touches (ref null $coni_val)) (local $local_3_t0 (ref null $coni_val)) (local $local_4_cx (ref null $coni_val)) (local $local_5_cy (ref null $coni_val)) (local $local_6_cw (ref null $coni_val)) (local $local_7_ch (ref null $coni_val)) (local $local_8_fn_tmp (ref null $coni_val)) (local $local_9_arg_val (ref null $coni_val)) (local $local_10_arg_val (ref null $coni_val)) (local $local_11_arg_val (ref null $coni_val)) (local $local_12_arg_val (ref null $coni_val)) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_e (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_e (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_1_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_49))) (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (local.set $local_2_touches (call $host_js_get (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (local.get $local_0_e) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 116) (i32.const 111) (i32.const 117) (i32.const 99) (i32.const 104) (i32.const 101) (i32.const 115)) (ref.null func))) (ref.null func)))))) (if (result (ref null $coni_val)) (call $coni_truthy (call $val_gt (call $host_js_get (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (local.get $local_2_touches) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 108) (i32.const 101) (i32.const 110) (i32.const 103) (i32.const 116) (i32.const 104)) (ref.null func))) (ref.null func))))) (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func)))) (then (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (local.set $local_3_t0 (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (local.get $local_2_touches) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 4 (i32.const 105) (i32.const 116) (i32.const 101) (i32.const 109)) (ref.null func)) (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))) (ref.null func)))))) (local.set $local_4_cx (call $host_js_get (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (local.get $local_3_t0) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 99) (i32.const 108) (i32.const 105) (i32.const 101) (i32.const 110) (i32.const 116) (i32.const 88)) (ref.null func))) (ref.null func)))))) (local.set $local_5_cy (call $host_js_get (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (local.get $local_3_t0) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 99) (i32.const 108) (i32.const 105) (i32.const 101) (i32.const 110) (i32.const 116) (i32.const 89)) (ref.null func))) (ref.null func)))))) (local.set $local_6_cw (call $host_js_get (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (global.get $global_window) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 10 (i32.const 105) (i32.const 110) (i32.const 110) (i32.const 101) (i32.const 114) (i32.const 87) (i32.const 105) (i32.const 100) (i32.const 116) (i32.const 104)) (ref.null func))) (ref.null func)))))) (local.set $local_7_ch (call $host_js_get (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (global.get $global_window) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 11 (i32.const 105) (i32.const 110) (i32.const 110) (i32.const 101) (i32.const 114) (i32.const 72) (i32.const 101) (i32.const 105) (i32.const 103) (i32.const 104) (i32.const 116)) (ref.null func))) (ref.null func)))))) (block (result (ref null $coni_val)) (local.set $local_8_fn_tmp (global.get $global_update-mouse_)) (local.set $local_9_arg_val (local.get $local_4_cx)) (local.set $local_10_arg_val (local.get $local_5_cy)) (local.set $local_11_arg_val (local.get $local_6_cw)) (local.set $local_12_arg_val (local.get $local_7_ch)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_8_fn_tmp))) (return_call_ref $coni_fn (array.new_fixed $coni_vector 4 (local.get $local_9_arg_val) (local.get $local_10_arg_val) (local.get $local_11_arg_val) (local.get $local_12_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_8_fn_tmp)))) ) ) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) ) ) ) ) (func $fn_51 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $my_env (ref null $coni_env)) (local $local_0_wx (ref null $coni_val)) (local $local_1_wy (ref null $coni_val)) (local $local_2_wz (ref null $coni_val)) (local $local_3_loop-fn (ref null $coni_val)) (local $local_4_dx (ref null $coni_val)) (local $local_5_dy (ref null $coni_val)) (local $local_6_dz (ref null $coni_val)) (local $local_7_x1 (ref null $coni_val)) (local $local_8_z1 (ref null $coni_val)) (local $local_9_y1 (ref null $coni_val)) (local $local_10_y2 (ref null $coni_val)) (local $local_11_z2 (ref null $coni_val)) (local.set $my_env (ref.cast (ref null $coni_env) (global.get $current_env))) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_wx (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_wx (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_wy (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_wy (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 2) (array.len (local.get $args))) (then (local.set $local_2_wz (array.get $coni_vector (local.get $args) (i32.const 2)))) (else (local.set $local_2_wz (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_3_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (array.new_fixed $coni_env 10 (array.get $coni_env (local.get $my_env) (i32.const 0)) (array.get $coni_env (local.get $my_env) (i32.const 1)) (array.get $coni_env (local.get $my_env) (i32.const 2)) (array.get $coni_env (local.get $my_env) (i32.const 3)) (array.get $coni_env (local.get $my_env) (i32.const 4)) (array.get $coni_env (local.get $my_env) (i32.const 5)) (array.get $coni_env (local.get $my_env) (i32.const 6)) (array.get $coni_env (local.get $my_env) (i32.const 7)) (array.get $coni_env (local.get $my_env) (i32.const 8)) (array.get $coni_env (local.get $my_env) (i32.const 9))) (ref.func $fn_51))) (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (local.set $local_4_dx (call $val_sub (local.get $local_0_wx) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 0))))) (local.set $local_5_dy (call $val_sub (local.get $local_1_wy) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 3))))) (local.set $local_6_dz (call $val_sub (local.get $local_2_wz) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 1))))) (local.set $local_7_x1 (call $val_add (call $val_mul (local.get $local_4_dx) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 4)))) (call $val_mul (local.get $local_6_dz) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 6)))))) (local.set $local_8_z1 (call $val_sub (call $val_mul (local.get $local_6_dz) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 4)))) (call $val_mul (local.get $local_4_dx) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 6)))))) (local.set $local_9_y1 (local.get $local_5_dy)) (local.set $local_10_y2 (call $val_sub (call $val_mul (local.get $local_9_y1) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 7)))) (call $val_mul (local.get $local_8_z1) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 8)))))) (local.set $local_11_z2 (call $val_add (call $val_mul (local.get $local_8_z1) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 7)))) (call $val_mul (local.get $local_9_y1) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 8)))))) (if (result (ref null $coni_val)) (call $coni_truthy (call $val_gt (local.get $local_11_z2) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 10)) (ref.null any) (ref.null func)))) (then (block (result (ref null $coni_val)) (drop (block (result (ref null $coni_val)) (array.set $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global__proj_))) (i32.trunc_f64_s (call $unwrap_float (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func)))) (f32.demote_f64 (call $unwrap_float (call $val_add (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 2))) (call $val_mul (call $val_div (local.get $local_7_x1) (local.get $local_11_z2)) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 9)))))))) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) (drop (block (result (ref null $coni_val)) (array.set $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global__proj_))) (i32.trunc_f64_s (call $unwrap_float (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func)))) (f32.demote_f64 (call $unwrap_float (call $val_add (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 5))) (call $val_mul (call $val_div (local.get $local_10_y2) (local.get $local_11_z2)) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 9)))))))) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) (drop (block (result (ref null $coni_val)) (array.set $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global__proj_))) (i32.trunc_f64_s (call $unwrap_float (struct.new $coni_val (i32.const 2) (i64.const 2) (ref.null any) (ref.null func)))) (f32.demote_f64 (call $unwrap_float (local.get $local_11_z2)))) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) (struct.new $coni_val (i32.const 1) (i64.const 1) (ref.null any) (ref.null func)) )) (else (struct.new $coni_val (i32.const 1) (i64.const 0) (ref.null any) (ref.null func))) ) ) ) ) (func $fn_52 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $my_env (ref null $coni_env)) (local $local_0_stroke-style (ref null $coni_val)) (local $local_1_line-width (ref null $coni_val)) (local $local_2_loop-fn (ref null $coni_val)) (local $local_3_y (ref null $coni_val)) (local $local_5_valid (ref null $coni_val)) (local $local_6_x (ref null $coni_val)) (local $local_8_world-x (ref null $coni_val)) (local $local_9_world-z (ref null $coni_val)) (local $local_10_world-y (ref null $coni_val)) (local $local_11_fn_tmp (ref null $coni_val)) (local $local_12_arg_val (ref null $coni_val)) (local $local_13_arg_val (ref null $coni_val)) (local $local_14_arg_val (ref null $coni_val)) (local $local_15_px (ref null $coni_val)) (local $local_16_py (ref null $coni_val)) (local $local_17_and_ (ref null $coni_val)) (local $local_18_and_ (ref null $coni_val)) (local $local_19_and_ (ref null $coni_val)) (local $local_20_reset_col (ref null $coni_val)) (local $local_21_reset_old (ref null $coni_val)) (local $local_22_reset_new (ref null $coni_val)) (local $local_23_reset_col (ref null $coni_val)) (local $local_24_reset_old (ref null $coni_val)) (local $local_25_reset_new (ref null $coni_val)) (local $local_26_reset_col (ref null $coni_val)) (local $local_27_reset_old (ref null $coni_val)) (local $local_28_reset_new (ref null $coni_val)) (local $local_29_recur_tmp_0 (ref null $coni_val)) (local $local_30_recur_tmp_0 (ref null $coni_val)) (local $local_31_x (ref null $coni_val)) (local $local_33_valid (ref null $coni_val)) (local $local_34_y (ref null $coni_val)) (local $local_36_world-x (ref null $coni_val)) (local $local_37_world-z (ref null $coni_val)) (local $local_38_world-y (ref null $coni_val)) (local $local_39_fn_tmp (ref null $coni_val)) (local $local_40_arg_val (ref null $coni_val)) (local $local_41_arg_val (ref null $coni_val)) (local $local_42_arg_val (ref null $coni_val)) (local $local_43_px (ref null $coni_val)) (local $local_44_py (ref null $coni_val)) (local $local_45_and_ (ref null $coni_val)) (local $local_46_and_ (ref null $coni_val)) (local $local_47_and_ (ref null $coni_val)) (local $local_48_reset_col (ref null $coni_val)) (local $local_49_reset_old (ref null $coni_val)) (local $local_50_reset_new (ref null $coni_val)) (local $local_51_reset_col (ref null $coni_val)) (local $local_52_reset_old (ref null $coni_val)) (local $local_53_reset_new (ref null $coni_val)) (local $local_54_reset_col (ref null $coni_val)) (local $local_55_reset_old (ref null $coni_val)) (local $local_56_reset_new (ref null $coni_val)) (local $local_57_recur_tmp_0 (ref null $coni_val)) (local $local_58_recur_tmp_0 (ref null $coni_val)) (local.set $my_env (ref.cast (ref null $coni_env) (global.get $current_env))) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_stroke-style (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_stroke-style (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_line-width (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_line-width (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_2_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (array.new_fixed $coni_env 4 (array.get $coni_env (local.get $my_env) (i32.const 0)) (array.get $coni_env (local.get $my_env) (i32.const 1)) (array.get $coni_env (local.get $my_env) (i32.const 2)) (array.get $coni_env (local.get $my_env) (i32.const 3))) (ref.func $fn_52))) (block (result (ref null $coni_val)) (drop (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 0))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 11 (i32.const 115) (i32.const 116) (i32.const 114) (i32.const 111) (i32.const 107) (i32.const 101) (i32.const 83) (i32.const 116) (i32.const 121) (i32.const 108) (i32.const 101)) (ref.null func)) (local.get $local_0_stroke-style)) (ref.null func)))))) (drop (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 0))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 108) (i32.const 105) (i32.const 110) (i32.const 101) (i32.const 87) (i32.const 105) (i32.const 100) (i32.const 116) (i32.const 104)) (ref.null func)) (local.get $local_1_line-width)) (ref.null func)))))) (drop (block $loop_end_4 (result (ref null $coni_val)) (local.set $local_3_y (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))) (loop $loop_start_4 (result (ref null $coni_val)) (block (result (ref null $coni_val)) (if (result (ref null $coni_val)) (call $coni_truthy (call $val_lt (local.get $local_3_y) (global.get $global_rows))) (then (block (result (ref null $coni_val)) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 0))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 98) (i32.const 101) (i32.const 103) (i32.const 105) (i32.const 110) (i32.const 80) (i32.const 97) (i32.const 116) (i32.const 104)) (ref.null func))) (ref.null func)))))) (drop (block (result (ref null $coni_val)) (local.set $local_5_valid (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 1 (struct.new $coni_val (i32.const 1) (i64.const 0) (ref.null any) (ref.null func))) (ref.null func))) (block $loop_end_7 (result (ref null $coni_val)) (local.set $local_6_x (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))) (loop $loop_start_7 (result (ref null $coni_val)) (block (result (ref null $coni_val)) (if (result (ref null $coni_val)) (call $coni_truthy (call $val_lt (local.get $local_6_x) (global.get $global_cols))) (then (block (result (ref null $coni_val)) (drop (block (result (ref null $coni_val)) (local.set $local_8_world-x (call $val_add (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 2))) (call $val_sub (local.get $local_6_x) (call $val_div (global.get $global_cols) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func)))))) (local.set $local_9_world-z (call $val_add (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 3))) (call $val_sub (local.get $local_3_y) (call $val_div (global.get $global_rows) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func)))))) (local.set $local_10_world-y (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global_terrain))) (i32.trunc_f64_s (call $unwrap_float (call $val_add (local.get $local_6_x) (call $val_mul (local.get $local_3_y) (global.get $global_cols)))))))) (ref.null any) (ref.null func))) (if (result (ref null $coni_val)) (call $coni_truthy (block (result (ref null $coni_val)) (local.set $local_11_fn_tmp (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 1)))) (local.set $local_12_arg_val (call $val_mul (local.get $local_8_world-x) (global.get $global_scl))) (local.set $local_13_arg_val (local.get $local_10_world-y)) (local.set $local_14_arg_val (call $val_mul (local.get $local_9_world-z) (global.get $global_scl))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_11_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 3 (local.get $local_12_arg_val) (local.get $local_13_arg_val) (local.get $local_14_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_11_fn_tmp)))) )) (then (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (local.set $local_15_px (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global__proj_))) (i32.trunc_f64_s (call $unwrap_float (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))))))) (ref.null any) (ref.null func))) (local.set $local_16_py (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global__proj_))) (i32.trunc_f64_s (call $unwrap_float (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func))))))) (ref.null any) (ref.null func))) (if (result (ref null $coni_val)) (call $coni_truthy (block (result (ref null $coni_val)) (local.set $local_17_and_ (call $val_gt (local.get $local_15_px) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const -5000)) (ref.null any) (ref.null func)))) (if (result (ref null $coni_val)) (call $coni_truthy (local.get $local_17_and_)) (then (block (result (ref null $coni_val)) (local.set $local_18_and_ (call $val_lt (local.get $local_15_px) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 5000)) (ref.null any) (ref.null func)))) (if (result (ref null $coni_val)) (call $coni_truthy (local.get $local_18_and_)) (then (block (result (ref null $coni_val)) (local.set $local_19_and_ (call $val_gt (local.get $local_16_py) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const -5000)) (ref.null any) (ref.null func)))) (if (result (ref null $coni_val)) (call $coni_truthy (local.get $local_19_and_)) (then (call $val_lt (local.get $local_16_py) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 5000)) (ref.null any) (ref.null func)))) (else (local.get $local_19_and_)) ) )) (else (local.get $local_18_and_)) ) )) (else (local.get $local_17_and_)) ) )) (then (if (result (ref null $coni_val)) (call $coni_truthy (array.get $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_5_valid))) (i32.const 0))) (then (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 4 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 0))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 108) (i32.const 105) (i32.const 110) (i32.const 101) (i32.const 84) (i32.const 111)) (ref.null func)) (local.get $local_15_px) (local.get $local_16_py)) (ref.null func)))))) (else (block (result (ref null $coni_val)) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 4 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 0))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 109) (i32.const 111) (i32.const 118) (i32.const 101) (i32.const 84) (i32.const 111)) (ref.null func)) (local.get $local_15_px) (local.get $local_16_py)) (ref.null func)))))) (block (result (ref null $coni_val)) (local.set $local_20_reset_col (local.get $local_5_valid)) (local.set $local_22_reset_new (struct.new $coni_val (i32.const 1) (i64.const 1) (ref.null any) (ref.null func))) (local.set $local_21_reset_old (array.get $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_20_reset_col))) (i32.const 0))) (array.set $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_20_reset_col))) (i32.const 0) (local.get $local_22_reset_new)) (call $host_core_notify_watchers (local.get $local_20_reset_col) (local.get $local_21_reset_old) (local.get $local_22_reset_new)) (local.get $local_22_reset_new)) )) )) (else (block (result (ref null $coni_val)) (local.set $local_23_reset_col (local.get $local_5_valid)) (local.set $local_25_reset_new (struct.new $coni_val (i32.const 1) (i64.const 0) (ref.null any) (ref.null func))) (local.set $local_24_reset_old (array.get $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_23_reset_col))) (i32.const 0))) (array.set $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_23_reset_col))) (i32.const 0) (local.get $local_25_reset_new)) (call $host_core_notify_watchers (local.get $local_23_reset_col) (local.get $local_24_reset_old) (local.get $local_25_reset_new)) (local.get $local_25_reset_new))) ) ) )) (else (block (result (ref null $coni_val)) (local.set $local_26_reset_col (local.get $local_5_valid)) (local.set $local_28_reset_new (struct.new $coni_val (i32.const 1) (i64.const 0) (ref.null any) (ref.null func))) (local.set $local_27_reset_old (array.get $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_26_reset_col))) (i32.const 0))) (array.set $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_26_reset_col))) (i32.const 0) (local.get $local_28_reset_new)) (call $host_core_notify_watchers (local.get $local_26_reset_col) (local.get $local_27_reset_old) (local.get $local_28_reset_new)) (local.get $local_28_reset_new))) ) )) (block (result (ref null $coni_val)) (local.set $local_29_recur_tmp_0 (call $val_add (local.get $local_6_x) (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func)))) (local.set $local_6_x (local.get $local_29_recur_tmp_0)) (br $loop_start_7) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)) ) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) ) ) ) ) )) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 0))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 115) (i32.const 116) (i32.const 114) (i32.const 111) (i32.const 107) (i32.const 101)) (ref.null func))) (ref.null func)))))) (block (result (ref null $coni_val)) (local.set $local_30_recur_tmp_0 (call $val_add (local.get $local_3_y) (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func)))) (local.set $local_3_y (local.get $local_30_recur_tmp_0)) (br $loop_start_4) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)) ) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) ) ) ) )) (block $loop_end_32 (result (ref null $coni_val)) (local.set $local_31_x (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))) (loop $loop_start_32 (result (ref null $coni_val)) (block (result (ref null $coni_val)) (if (result (ref null $coni_val)) (call $coni_truthy (call $val_lt (local.get $local_31_x) (global.get $global_cols))) (then (block (result (ref null $coni_val)) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 0))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 98) (i32.const 101) (i32.const 103) (i32.const 105) (i32.const 110) (i32.const 80) (i32.const 97) (i32.const 116) (i32.const 104)) (ref.null func))) (ref.null func)))))) (drop (block (result (ref null $coni_val)) (local.set $local_33_valid (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 1 (struct.new $coni_val (i32.const 1) (i64.const 0) (ref.null any) (ref.null func))) (ref.null func))) (block $loop_end_35 (result (ref null $coni_val)) (local.set $local_34_y (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))) (loop $loop_start_35 (result (ref null $coni_val)) (block (result (ref null $coni_val)) (if (result (ref null $coni_val)) (call $coni_truthy (call $val_lt (local.get $local_34_y) (global.get $global_rows))) (then (block (result (ref null $coni_val)) (drop (block (result (ref null $coni_val)) (local.set $local_36_world-x (call $val_add (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 2))) (call $val_sub (local.get $local_31_x) (call $val_div (global.get $global_cols) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func)))))) (local.set $local_37_world-z (call $val_add (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 3))) (call $val_sub (local.get $local_34_y) (call $val_div (global.get $global_rows) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func)))))) (local.set $local_38_world-y (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global_terrain))) (i32.trunc_f64_s (call $unwrap_float (call $val_add (local.get $local_31_x) (call $val_mul (local.get $local_34_y) (global.get $global_cols)))))))) (ref.null any) (ref.null func))) (if (result (ref null $coni_val)) (call $coni_truthy (block (result (ref null $coni_val)) (local.set $local_39_fn_tmp (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 1)))) (local.set $local_40_arg_val (call $val_mul (local.get $local_36_world-x) (global.get $global_scl))) (local.set $local_41_arg_val (local.get $local_38_world-y)) (local.set $local_42_arg_val (call $val_mul (local.get $local_37_world-z) (global.get $global_scl))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_39_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 3 (local.get $local_40_arg_val) (local.get $local_41_arg_val) (local.get $local_42_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_39_fn_tmp)))) )) (then (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (local.set $local_43_px (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global__proj_))) (i32.trunc_f64_s (call $unwrap_float (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))))))) (ref.null any) (ref.null func))) (local.set $local_44_py (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global__proj_))) (i32.trunc_f64_s (call $unwrap_float (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func))))))) (ref.null any) (ref.null func))) (if (result (ref null $coni_val)) (call $coni_truthy (block (result (ref null $coni_val)) (local.set $local_45_and_ (call $val_gt (local.get $local_43_px) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const -5000)) (ref.null any) (ref.null func)))) (if (result (ref null $coni_val)) (call $coni_truthy (local.get $local_45_and_)) (then (block (result (ref null $coni_val)) (local.set $local_46_and_ (call $val_lt (local.get $local_43_px) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 5000)) (ref.null any) (ref.null func)))) (if (result (ref null $coni_val)) (call $coni_truthy (local.get $local_46_and_)) (then (block (result (ref null $coni_val)) (local.set $local_47_and_ (call $val_gt (local.get $local_44_py) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const -5000)) (ref.null any) (ref.null func)))) (if (result (ref null $coni_val)) (call $coni_truthy (local.get $local_47_and_)) (then (call $val_lt (local.get $local_44_py) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 5000)) (ref.null any) (ref.null func)))) (else (local.get $local_47_and_)) ) )) (else (local.get $local_46_and_)) ) )) (else (local.get $local_45_and_)) ) )) (then (if (result (ref null $coni_val)) (call $coni_truthy (array.get $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_33_valid))) (i32.const 0))) (then (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 4 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 0))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 108) (i32.const 105) (i32.const 110) (i32.const 101) (i32.const 84) (i32.const 111)) (ref.null func)) (local.get $local_43_px) (local.get $local_44_py)) (ref.null func)))))) (else (block (result (ref null $coni_val)) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 4 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 0))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 109) (i32.const 111) (i32.const 118) (i32.const 101) (i32.const 84) (i32.const 111)) (ref.null func)) (local.get $local_43_px) (local.get $local_44_py)) (ref.null func)))))) (block (result (ref null $coni_val)) (local.set $local_48_reset_col (local.get $local_33_valid)) (local.set $local_50_reset_new (struct.new $coni_val (i32.const 1) (i64.const 1) (ref.null any) (ref.null func))) (local.set $local_49_reset_old (array.get $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_48_reset_col))) (i32.const 0))) (array.set $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_48_reset_col))) (i32.const 0) (local.get $local_50_reset_new)) (call $host_core_notify_watchers (local.get $local_48_reset_col) (local.get $local_49_reset_old) (local.get $local_50_reset_new)) (local.get $local_50_reset_new)) )) )) (else (block (result (ref null $coni_val)) (local.set $local_51_reset_col (local.get $local_33_valid)) (local.set $local_53_reset_new (struct.new $coni_val (i32.const 1) (i64.const 0) (ref.null any) (ref.null func))) (local.set $local_52_reset_old (array.get $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_51_reset_col))) (i32.const 0))) (array.set $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_51_reset_col))) (i32.const 0) (local.get $local_53_reset_new)) (call $host_core_notify_watchers (local.get $local_51_reset_col) (local.get $local_52_reset_old) (local.get $local_53_reset_new)) (local.get $local_53_reset_new))) ) ) )) (else (block (result (ref null $coni_val)) (local.set $local_54_reset_col (local.get $local_33_valid)) (local.set $local_56_reset_new (struct.new $coni_val (i32.const 1) (i64.const 0) (ref.null any) (ref.null func))) (local.set $local_55_reset_old (array.get $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_54_reset_col))) (i32.const 0))) (array.set $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_54_reset_col))) (i32.const 0) (local.get $local_56_reset_new)) (call $host_core_notify_watchers (local.get $local_54_reset_col) (local.get $local_55_reset_old) (local.get $local_56_reset_new)) (local.get $local_56_reset_new))) ) )) (block (result (ref null $coni_val)) (local.set $local_57_recur_tmp_0 (call $val_add (local.get $local_34_y) (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func)))) (local.set $local_34_y (local.get $local_57_recur_tmp_0)) (br $loop_start_35) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)) ) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) ) ) ) ) )) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 0))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 115) (i32.const 116) (i32.const 114) (i32.const 111) (i32.const 107) (i32.const 101)) (ref.null func))) (ref.null func)))))) (block (result (ref null $coni_val)) (local.set $local_58_recur_tmp_0 (call $val_add (local.get $local_31_x) (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func)))) (local.set $local_31_x (local.get $local_58_recur_tmp_0)) (br $loop_start_32) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)) ) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) ) ) ) ) ) ) (func $fn_53 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $my_env (ref null $coni_env)) (local $local_0_stroke-style (ref null $coni_val)) (local $local_1_line-width (ref null $coni_val)) (local $local_2_loop-fn (ref null $coni_val)) (local $local_3_i (ref null $coni_val)) (local $local_5_px (ref null $coni_val)) (local $local_6_py (ref null $coni_val)) (local $local_7_pz (ref null $coni_val)) (local $local_8_dx (ref null $coni_val)) (local $local_9_dy (ref null $coni_val)) (local $local_10_dz (ref null $coni_val)) (local $local_11_fn_tmp (ref null $coni_val)) (local $local_12_arg_val (ref null $coni_val)) (local $local_13_arg_val (ref null $coni_val)) (local $local_14_arg_val (ref null $coni_val)) (local $local_15_valid1 (ref null $coni_val)) (local $local_16_px1 (ref null $coni_val)) (local $local_17_py1 (ref null $coni_val)) (local $local_18_fn_tmp (ref null $coni_val)) (local $local_19_arg_val (ref null $coni_val)) (local $local_20_arg_val (ref null $coni_val)) (local $local_21_arg_val (ref null $coni_val)) (local $local_22_valid2 (ref null $coni_val)) (local $local_23_px2 (ref null $coni_val)) (local $local_24_py2 (ref null $coni_val)) (local $local_25_and_ (ref null $coni_val)) (local $local_26_and_ (ref null $coni_val)) (local $local_27_and_ (ref null $coni_val)) (local $local_28_recur_tmp_0 (ref null $coni_val)) (local.set $my_env (ref.cast (ref null $coni_env) (global.get $current_env))) (if (i32.lt_u (i32.const 0) (array.len (local.get $args))) (then (local.set $local_0_stroke-style (array.get $coni_vector (local.get $args) (i32.const 0)))) (else (local.set $local_0_stroke-style (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.lt_u (i32.const 1) (array.len (local.get $args))) (then (local.set $local_1_line-width (array.get $coni_vector (local.get $args) (i32.const 1)))) (else (local.set $local_1_line-width (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $local_2_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (array.new_fixed $coni_env 8 (array.get $coni_env (local.get $my_env) (i32.const 0)) (array.get $coni_env (local.get $my_env) (i32.const 1)) (array.get $coni_env (local.get $my_env) (i32.const 2)) (array.get $coni_env (local.get $my_env) (i32.const 3)) (array.get $coni_env (local.get $my_env) (i32.const 4)) (array.get $coni_env (local.get $my_env) (i32.const 5)) (array.get $coni_env (local.get $my_env) (i32.const 6)) (array.get $coni_env (local.get $my_env) (i32.const 7))) (ref.func $fn_53))) (block (result (ref null $coni_val)) (drop (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 5))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 11 (i32.const 115) (i32.const 116) (i32.const 114) (i32.const 111) (i32.const 107) (i32.const 101) (i32.const 83) (i32.const 116) (i32.const 121) (i32.const 108) (i32.const 101)) (ref.null func)) (local.get $local_0_stroke-style)) (ref.null func)))))) (drop (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 5))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 108) (i32.const 105) (i32.const 110) (i32.const 101) (i32.const 87) (i32.const 105) (i32.const 100) (i32.const 116) (i32.const 104)) (ref.null func)) (local.get $local_1_line-width)) (ref.null func)))))) (block $loop_end_4 (result (ref null $coni_val)) (local.set $local_3_i (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))) (loop $loop_start_4 (result (ref null $coni_val)) (block (result (ref null $coni_val)) (if (result (ref null $coni_val)) (call $coni_truthy (call $val_lt (local.get $local_3_i) (global.get $global_num-particles))) (then (block (result (ref null $coni_val)) (drop (block (result (ref null $coni_val)) (local.set $local_5_px (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global_particles-x))) (i32.trunc_f64_s (call $unwrap_float (local.get $local_3_i)))))) (ref.null any) (ref.null func))) (local.set $local_6_py (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global_particles-y))) (i32.trunc_f64_s (call $unwrap_float (local.get $local_3_i)))))) (ref.null any) (ref.null func))) (local.set $local_7_pz (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global_particles-z))) (i32.trunc_f64_s (call $unwrap_float (local.get $local_3_i)))))) (ref.null any) (ref.null func))) (local.set $local_8_dx (call $val_sub (local.get $local_5_px) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 3))))) (local.set $local_9_dy (call $val_sub (local.get $local_6_py) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 6))))) (local.set $local_10_dz (call $val_sub (local.get $local_7_pz) (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 4))))) (drop (if (result (ref null $coni_val)) (call $coni_truthy (call $val_gt (local.get $local_8_dx) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 3000)) (ref.null any) (ref.null func)))) (then (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (array.set $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global_particles-x))) (i32.trunc_f64_s (call $unwrap_float (local.get $local_3_i))) (f32.demote_f64 (call $unwrap_float (call $val_sub (local.get $local_5_px) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 6000)) (ref.null any) (ref.null func)))))) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) )) (drop (if (result (ref null $coni_val)) (call $coni_truthy (call $val_lt (local.get $local_8_dx) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const -3000)) (ref.null any) (ref.null func)))) (then (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (array.set $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global_particles-x))) (i32.trunc_f64_s (call $unwrap_float (local.get $local_3_i))) (f32.demote_f64 (call $unwrap_float (call $val_add (local.get $local_5_px) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 6000)) (ref.null any) (ref.null func)))))) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) )) (drop (if (result (ref null $coni_val)) (call $coni_truthy (call $val_gt (local.get $local_9_dy) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2000)) (ref.null any) (ref.null func)))) (then (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (array.set $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global_particles-y))) (i32.trunc_f64_s (call $unwrap_float (local.get $local_3_i))) (f32.demote_f64 (call $unwrap_float (call $val_sub (local.get $local_6_py) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 4000)) (ref.null any) (ref.null func)))))) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) )) (drop (if (result (ref null $coni_val)) (call $coni_truthy (call $val_lt (local.get $local_9_dy) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const -2000)) (ref.null any) (ref.null func)))) (then (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (array.set $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global_particles-y))) (i32.trunc_f64_s (call $unwrap_float (local.get $local_3_i))) (f32.demote_f64 (call $unwrap_float (call $val_add (local.get $local_6_py) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 4000)) (ref.null any) (ref.null func)))))) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) )) (drop (if (result (ref null $coni_val)) (call $coni_truthy (call $val_gt (local.get $local_10_dz) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 3000)) (ref.null any) (ref.null func)))) (then (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (array.set $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global_particles-z))) (i32.trunc_f64_s (call $unwrap_float (local.get $local_3_i))) (f32.demote_f64 (call $unwrap_float (call $val_sub (local.get $local_7_pz) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 6000)) (ref.null any) (ref.null func)))))) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) )) (drop (if (result (ref null $coni_val)) (call $coni_truthy (call $val_lt (local.get $local_10_dz) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const -3000)) (ref.null any) (ref.null func)))) (then (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (array.set $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global_particles-z))) (i32.trunc_f64_s (call $unwrap_float (local.get $local_3_i))) (f32.demote_f64 (call $unwrap_float (call $val_add (local.get $local_7_pz) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 6000)) (ref.null any) (ref.null func)))))) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) )) (block (result (ref null $coni_val)) (local.set $local_15_valid1 (block (result (ref null $coni_val)) (local.set $local_11_fn_tmp (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 7)))) (local.set $local_12_arg_val (local.get $local_5_px)) (local.set $local_13_arg_val (local.get $local_6_py)) (local.set $local_14_arg_val (local.get $local_7_pz)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_11_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 3 (local.get $local_12_arg_val) (local.get $local_13_arg_val) (local.get $local_14_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_11_fn_tmp)))) )) (if (result (ref null $coni_val)) (call $coni_truthy (local.get $local_15_valid1)) (then (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (local.set $local_16_px1 (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global__proj_))) (i32.trunc_f64_s (call $unwrap_float (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))))))) (ref.null any) (ref.null func))) (local.set $local_17_py1 (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global__proj_))) (i32.trunc_f64_s (call $unwrap_float (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func))))))) (ref.null any) (ref.null func))) (local.set $local_22_valid2 (block (result (ref null $coni_val)) (local.set $local_18_fn_tmp (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 7)))) (local.set $local_19_arg_val (call $val_sub (local.get $local_5_px) (call $val_mul (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 0))) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 4)) (ref.null any) (ref.null func))))) (local.set $local_20_arg_val (call $val_sub (local.get $local_6_py) (call $val_mul (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 1))) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 4)) (ref.null any) (ref.null func))))) (local.set $local_21_arg_val (call $val_sub (local.get $local_7_pz) (call $val_mul (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 2))) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 4)) (ref.null any) (ref.null func))))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_18_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 3 (local.get $local_19_arg_val) (local.get $local_20_arg_val) (local.get $local_21_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_18_fn_tmp)))) )) (if (result (ref null $coni_val)) (call $coni_truthy (local.get $local_22_valid2)) (then (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (local.set $local_23_px2 (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global__proj_))) (i32.trunc_f64_s (call $unwrap_float (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))))))) (ref.null any) (ref.null func))) (local.set $local_24_py2 (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global__proj_))) (i32.trunc_f64_s (call $unwrap_float (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func))))))) (ref.null any) (ref.null func))) (if (result (ref null $coni_val)) (call $coni_truthy (block (result (ref null $coni_val)) (local.set $local_25_and_ (call $val_gt (local.get $local_16_px1) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const -5000)) (ref.null any) (ref.null func)))) (if (result (ref null $coni_val)) (call $coni_truthy (local.get $local_25_and_)) (then (block (result (ref null $coni_val)) (local.set $local_26_and_ (call $val_lt (local.get $local_16_px1) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 5000)) (ref.null any) (ref.null func)))) (if (result (ref null $coni_val)) (call $coni_truthy (local.get $local_26_and_)) (then (block (result (ref null $coni_val)) (local.set $local_27_and_ (call $val_gt (local.get $local_23_px2) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const -5000)) (ref.null any) (ref.null func)))) (if (result (ref null $coni_val)) (call $coni_truthy (local.get $local_27_and_)) (then (call $val_lt (local.get $local_23_px2) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 5000)) (ref.null any) (ref.null func)))) (else (local.get $local_27_and_)) ) )) (else (local.get $local_26_and_)) ) )) (else (local.get $local_25_and_)) ) )) (then (block (result (ref null $coni_val)) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 5))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 98) (i32.const 101) (i32.const 103) (i32.const 105) (i32.const 110) (i32.const 80) (i32.const 97) (i32.const 116) (i32.const 104)) (ref.null func))) (ref.null func)))))) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 4 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 5))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 109) (i32.const 111) (i32.const 118) (i32.const 101) (i32.const 84) (i32.const 111)) (ref.null func)) (local.get $local_16_px1) (local.get $local_17_py1)) (ref.null func)))))) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 4 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 5))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 108) (i32.const 105) (i32.const 110) (i32.const 101) (i32.const 84) (i32.const 111)) (ref.null func)) (local.get $local_23_px2) (local.get $local_24_py2)) (ref.null func)))))) (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (ref.cast (ref null $coni_val) (array.get $coni_env (local.get $my_env) (i32.const 5))) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 115) (i32.const 116) (i32.const 114) (i32.const 111) (i32.const 107) (i32.const 101)) (ref.null func))) (ref.null func))))) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) ) ) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) ) ) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) ) ) )) (block (result (ref null $coni_val)) (local.set $local_28_recur_tmp_0 (call $val_add (local.get $local_3_i) (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func)))) (local.set $local_3_i (local.get $local_28_recur_tmp_0)) (br $loop_start_4) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)) ) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) ) ) ) ) ) ) (func $fn_50 (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (local $local_0_loop-fn (ref null $coni_val)) (local $local_1_canvas (ref null $coni_val)) (local $local_2_ctx (ref null $coni_val)) (local $local_3_cx (ref null $coni_val)) (local $local_4_cy (ref null $coni_val)) (local $local_5_state (ref null $coni_val)) (local $local_6_tyaw (ref null $coni_val)) (local $local_7_tpitch (ref null $coni_val)) (local $local_8_tpitch (ref null $coni_val)) (local $local_9_tpitch (ref null $coni_val)) (local $local_10_fn_tmp (ref null $coni_val)) (local $local_11_arg_val (ref null $coni_val)) (local $local_12_fn_tmp (ref null $coni_val)) (local $local_13_arg_val (ref null $coni_val)) (local $local_14_vx (ref null $coni_val)) (local $local_15_fn_tmp (ref null $coni_val)) (local $local_16_arg_val (ref null $coni_val)) (local $local_17_vy (ref null $coni_val)) (local $local_18_fn_tmp (ref null $coni_val)) (local $local_19_arg_val (ref null $coni_val)) (local $local_20_fn_tmp (ref null $coni_val)) (local $local_21_arg_val (ref null $coni_val)) (local $local_22_vz (ref null $coni_val)) (local $local_23_nx-val (ref null $coni_val)) (local $local_24_nx (ref null $coni_val)) (local $local_25_nz-val (ref null $coni_val)) (local $local_26_nz (ref null $coni_val)) (local $local_27_ny-val (ref null $coni_val)) (local $local_28_ny (ref null $coni_val)) (local $local_29_wx (ref null $coni_val)) (local $local_30_wz (ref null $coni_val)) (local $local_31_fn_tmp (ref null $coni_val)) (local $local_32_arg_val (ref null $coni_val)) (local $local_33_fn_tmp (ref null $coni_val)) (local $local_34_arg_val (ref null $coni_val)) (local $local_35_fn_tmp (ref null $coni_val)) (local $local_36_arg_val (ref null $coni_val)) (local $local_37_ground-v (ref null $coni_val)) (local $local_38_ground-y (ref null $coni_val)) (local $local_39_min-y (ref null $coni_val)) (local $local_40_ny (ref null $coni_val)) (local $local_41_reset_col (ref null $coni_val)) (local $local_42_reset_old (ref null $coni_val)) (local $local_43_reset_new (ref null $coni_val)) (local $local_44_grad (ref null $coni_val)) (local $local_45_fn_tmp (ref null $coni_val)) (local $local_46_arg_val (ref null $coni_val)) (local $local_47_cyaw (ref null $coni_val)) (local $local_48_fn_tmp (ref null $coni_val)) (local $local_49_arg_val (ref null $coni_val)) (local $local_50_syaw (ref null $coni_val)) (local $local_51_fn_tmp (ref null $coni_val)) (local $local_52_arg_val (ref null $coni_val)) (local $local_53_cpitch (ref null $coni_val)) (local $local_54_fn_tmp (ref null $coni_val)) (local $local_55_arg_val (ref null $coni_val)) (local $local_56_spitch (ref null $coni_val)) (local $local_57_fov (ref null $coni_val)) (local $local_58_project-3d (ref null $coni_val)) (local $local_59_sphere-dist (ref null $coni_val)) (local $local_60_fn_tmp (ref null $coni_val)) (local $local_61_arg_val (ref null $coni_val)) (local $local_62_sx (ref null $coni_val)) (local $local_63_fn_tmp (ref null $coni_val)) (local $local_64_arg_val (ref null $coni_val)) (local $local_65_sz (ref null $coni_val)) (local $local_66_fn_tmp (ref null $coni_val)) (local $local_67_arg_val (ref null $coni_val)) (local $local_68_sy (ref null $coni_val)) (local $local_69_fn_tmp (ref null $coni_val)) (local $local_70_arg_val (ref null $coni_val)) (local $local_71_arg_val (ref null $coni_val)) (local $local_72_arg_val (ref null $coni_val)) (local $local_73_px (ref null $coni_val)) (local $local_74_py (ref null $coni_val)) (local $local_75_pz (ref null $coni_val)) (local $local_76_r (ref null $coni_val)) (local $local_77_i (ref null $coni_val)) (local $local_79_fn_tmp (ref null $coni_val)) (local $local_80_arg_val (ref null $coni_val)) (local $local_81_fn_tmp (ref null $coni_val)) (local $local_82_arg_val (ref null $coni_val)) (local $local_83_recur_tmp_0 (ref null $coni_val)) (local $local_84_i (ref null $coni_val)) (local $local_86_fn_tmp (ref null $coni_val)) (local $local_87_arg_val (ref null $coni_val)) (local $local_88_fn_tmp (ref null $coni_val)) (local $local_89_arg_val (ref null $coni_val)) (local $local_90_recur_tmp_0 (ref null $coni_val)) (local $local_91_fn_tmp (ref null $coni_val)) (local $local_92_arg_val (ref null $coni_val)) (local $local_93_cx-grid (ref null $coni_val)) (local $local_94_fn_tmp (ref null $coni_val)) (local $local_95_arg_val (ref null $coni_val)) (local $local_96_cz-grid (ref null $coni_val)) (local $local_97_y (ref null $coni_val)) (local $local_99_world-z (ref null $coni_val)) (local $local_100_x (ref null $coni_val)) (local $local_102_world-x (ref null $coni_val)) (local $local_103_fn_tmp (ref null $coni_val)) (local $local_104_arg_val (ref null $coni_val)) (local $local_105_fn_tmp (ref null $coni_val)) (local $local_106_arg_val (ref null $coni_val)) (local $local_107_fn_tmp (ref null $coni_val)) (local $local_108_arg_val (ref null $coni_val)) (local $local_109_v (ref null $coni_val)) (local $local_110_recur_tmp_0 (ref null $coni_val)) (local $local_111_recur_tmp_0 (ref null $coni_val)) (local $local_112_draw-grid (ref null $coni_val)) (local $local_113_fn_tmp (ref null $coni_val)) (local $local_114_arg_val (ref null $coni_val)) (local $local_115_arg_val (ref null $coni_val)) (local $local_116_fn_tmp (ref null $coni_val)) (local $local_117_arg_val (ref null $coni_val)) (local $local_118_arg_val (ref null $coni_val)) (local $local_119_draw-particles (ref null $coni_val)) (local $local_120_fn_tmp (ref null $coni_val)) (local $local_121_arg_val (ref null $coni_val)) (local $local_122_arg_val (ref null $coni_val)) (local $local_123_fn_tmp (ref null $coni_val)) (local $local_124_arg_val (ref null $coni_val)) (local $local_125_arg_val (ref null $coni_val)) (local.set $local_0_loop-fn (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_50))) (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (local.set $local_1_canvas (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (global.get $global_document) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 14 (i32.const 103) (i32.const 101) (i32.const 116) (i32.const 69) (i32.const 108) (i32.const 101) (i32.const 109) (i32.const 101) (i32.const 110) (i32.const 116) (i32.const 66) (i32.const 121) (i32.const 73) (i32.const 100)) (ref.null func)) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 11 (i32.const 103) (i32.const 97) (i32.const 109) (i32.const 101) (i32.const 45) (i32.const 99) (i32.const 97) (i32.const 110) (i32.const 118) (i32.const 97) (i32.const 115)) (ref.null func))) (ref.null func)))))) (local.set $local_2_ctx (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (local.get $local_1_canvas) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 10 (i32.const 103) (i32.const 101) (i32.const 116) (i32.const 67) (i32.const 111) (i32.const 110) (i32.const 116) (i32.const 101) (i32.const 120) (i32.const 116)) (ref.null func)) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 2 (i32.const 50) (i32.const 100)) (ref.null func))) (ref.null func)))))) (local.set $local_3_cx (call $val_div (global.get $global_w) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func)))) (local.set $local_4_cy (call $val_div (global.get $global_h) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func)))) (local.set $local_5_state (array.get $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (global.get $global_cam-state))) (i32.const 0))) (local.set $local_6_tyaw (call $val_add (call $host_core_get (local.get $local_5_state) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 3 (i32.const 121) (i32.const 97) (i32.const 119)) (ref.null func))) (call $val_mul (call $host_core_get (local.get $local_5_state) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 109) (i32.const 111) (i32.const 117) (i32.const 115) (i32.const 101) (i32.const 45) (i32.const 120)) (ref.null func))) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const -0.02)) (ref.null any) (ref.null func))))) (local.set $local_7_tpitch (call $val_add (call $host_core_get (local.get $local_5_state) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 5 (i32.const 112) (i32.const 105) (i32.const 116) (i32.const 99) (i32.const 104)) (ref.null func))) (call $val_mul (call $host_core_get (local.get $local_5_state) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 109) (i32.const 111) (i32.const 117) (i32.const 115) (i32.const 101) (i32.const 45) (i32.const 121)) (ref.null func))) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.02)) (ref.null any) (ref.null func))))) (local.set $local_8_tpitch (if (result (ref null $coni_val)) (call $coni_truthy (call $val_gt (local.get $local_7_tpitch) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 1)) (ref.null any) (ref.null func)))) (then (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 1)) (ref.null any) (ref.null func))) (else (local.get $local_7_tpitch)) )) (local.set $local_9_tpitch (if (result (ref null $coni_val)) (call $coni_truthy (call $val_lt (local.get $local_8_tpitch) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const -1)) (ref.null any) (ref.null func)))) (then (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const -1)) (ref.null any) (ref.null func))) (else (local.get $local_8_tpitch)) )) (local.set $local_14_vx (call $val_mul (call $val_mul (block (result (ref null $coni_val)) (local.set $local_10_fn_tmp (global.get $global_sin)) (local.set $local_11_arg_val (local.get $local_6_tyaw)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_10_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_11_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_10_fn_tmp)))) ) (block (result (ref null $coni_val)) (local.set $local_12_fn_tmp (global.get $global_cos)) (local.set $local_13_arg_val (local.get $local_9_tpitch)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_12_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_13_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_12_fn_tmp)))) )) (call $host_core_get (local.get $local_5_state) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 5 (i32.const 115) (i32.const 112) (i32.const 101) (i32.const 101) (i32.const 100)) (ref.null func))))) (local.set $local_17_vy (call $val_mul (block (result (ref null $coni_val)) (local.set $local_15_fn_tmp (global.get $global_sin)) (local.set $local_16_arg_val (local.get $local_9_tpitch)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_15_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_16_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_15_fn_tmp)))) ) (call $host_core_get (local.get $local_5_state) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 5 (i32.const 115) (i32.const 112) (i32.const 101) (i32.const 101) (i32.const 100)) (ref.null func))))) (local.set $local_22_vz (call $val_mul (call $val_mul (block (result (ref null $coni_val)) (local.set $local_18_fn_tmp (global.get $global_cos)) (local.set $local_19_arg_val (local.get $local_6_tyaw)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_18_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_19_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_18_fn_tmp)))) ) (block (result (ref null $coni_val)) (local.set $local_20_fn_tmp (global.get $global_cos)) (local.set $local_21_arg_val (local.get $local_9_tpitch)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_20_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_21_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_20_fn_tmp)))) )) (call $host_core_get (local.get $local_5_state) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 5 (i32.const 115) (i32.const 112) (i32.const 101) (i32.const 101) (i32.const 100)) (ref.null func))))) (local.set $local_23_nx-val (call $val_add (call $host_core_get (local.get $local_5_state) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 1 (i32.const 120)) (ref.null func))) (local.get $local_14_vx))) (local.set $local_24_nx (if (result (ref null $coni_val)) (call $coni_truthy (if (result (ref null $coni_val)) (call $coni_truthy (struct.new $coni_val (i32.const 1) (i64.extend_i32_s (call $val_eq (local.get $local_23_nx-val) (local.get $local_23_nx-val))) (ref.null any) (ref.null func))) (then (struct.new $coni_val (i32.const 1) (i64.const 0) (ref.null any) (ref.null func))) (else (struct.new $coni_val (i32.const 1) (i64.const 1) (ref.null any) (ref.null func))) )) (then (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func))) (else (local.get $local_23_nx-val)) )) (local.set $local_25_nz-val (call $val_add (call $host_core_get (local.get $local_5_state) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 1 (i32.const 122)) (ref.null func))) (local.get $local_22_vz))) (local.set $local_26_nz (if (result (ref null $coni_val)) (call $coni_truthy (if (result (ref null $coni_val)) (call $coni_truthy (struct.new $coni_val (i32.const 1) (i64.extend_i32_s (call $val_eq (local.get $local_25_nz-val) (local.get $local_25_nz-val))) (ref.null any) (ref.null func))) (then (struct.new $coni_val (i32.const 1) (i64.const 0) (ref.null any) (ref.null func))) (else (struct.new $coni_val (i32.const 1) (i64.const 1) (ref.null any) (ref.null func))) )) (then (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func))) (else (local.get $local_25_nz-val)) )) (local.set $local_27_ny-val (call $val_add (call $host_core_get (local.get $local_5_state) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 1 (i32.const 121)) (ref.null func))) (local.get $local_17_vy))) (local.set $local_28_ny (if (result (ref null $coni_val)) (call $coni_truthy (if (result (ref null $coni_val)) (call $coni_truthy (struct.new $coni_val (i32.const 1) (i64.extend_i32_s (call $val_eq (local.get $local_27_ny-val) (local.get $local_27_ny-val))) (ref.null any) (ref.null func))) (then (struct.new $coni_val (i32.const 1) (i64.const 0) (ref.null any) (ref.null func))) (else (struct.new $coni_val (i32.const 1) (i64.const 1) (ref.null any) (ref.null func))) )) (then (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 200)) (ref.null any) (ref.null func))) (else (local.get $local_27_ny-val)) )) (local.set $local_29_wx (call $val_div (local.get $local_24_nx) (global.get $global_scl))) (local.set $local_30_wz (call $val_div (local.get $local_26_nz) (global.get $global_scl))) (local.set $local_37_ground-v (call $val_add (call $val_add (call $val_mul (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.5)) (ref.null any) (ref.null func)) (block (result (ref null $coni_val)) (local.set $local_31_fn_tmp (global.get $global_sin)) (local.set $local_32_arg_val (call $val_add (call $val_mul (local.get $local_29_wx) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.1)) (ref.null any) (ref.null func))) (call $val_mul (local.get $local_30_wz) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.1)) (ref.null any) (ref.null func))))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_31_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_32_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_31_fn_tmp)))) )) (call $val_mul (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.25)) (ref.null any) (ref.null func)) (block (result (ref null $coni_val)) (local.set $local_33_fn_tmp (global.get $global_sin)) (local.set $local_34_arg_val (call $val_add (call $val_mul (local.get $local_29_wx) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.22)) (ref.null any) (ref.null func))) (call $val_mul (local.get $local_30_wz) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.31)) (ref.null any) (ref.null func))))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_33_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_34_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_33_fn_tmp)))) ))) (call $val_mul (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.125)) (ref.null any) (ref.null func)) (block (result (ref null $coni_val)) (local.set $local_35_fn_tmp (global.get $global_sin)) (local.set $local_36_arg_val (call $val_add (call $val_mul (local.get $local_29_wx) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.5)) (ref.null any) (ref.null func))) (call $val_mul (local.get $local_30_wz) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.1)) (ref.null any) (ref.null func))))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_35_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_36_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_35_fn_tmp)))) )))) (local.set $local_38_ground-y (call $val_mul (local.get $local_37_ground-v) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 400)) (ref.null any) (ref.null func)))) (local.set $local_39_min-y (call $val_add (local.get $local_38_ground-y) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 80)) (ref.null any) (ref.null func)))) (local.set $local_40_ny (if (result (ref null $coni_val)) (call $coni_truthy (call $val_lt (local.get $local_28_ny) (local.get $local_39_min-y))) (then (call $val_add (local.get $local_28_ny) (call $val_mul (call $val_sub (local.get $local_39_min-y) (local.get $local_28_ny)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.1)) (ref.null any) (ref.null func))))) (else (local.get $local_28_ny)) )) (drop (block (result (ref null $coni_val)) (local.set $local_41_reset_col (global.get $global_cam-state)) (local.set $local_43_reset_new (call $host_core_assoc (call $host_core_assoc (call $host_core_assoc (call $host_core_assoc (call $host_core_assoc (array.get $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (global.get $global_cam-state))) (i32.const 0)) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 1 (i32.const 120)) (ref.null func)) (local.get $local_24_nx)) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 1 (i32.const 121)) (ref.null func)) (local.get $local_40_ny)) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 1 (i32.const 122)) (ref.null func)) (local.get $local_26_nz)) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 3 (i32.const 121) (i32.const 97) (i32.const 119)) (ref.null func)) (if (result (ref null $coni_val)) (call $coni_truthy (if (result (ref null $coni_val)) (call $coni_truthy (struct.new $coni_val (i32.const 1) (i64.extend_i32_s (call $val_eq (local.get $local_6_tyaw) (local.get $local_6_tyaw))) (ref.null any) (ref.null func))) (then (struct.new $coni_val (i32.const 1) (i64.const 0) (ref.null any) (ref.null func))) (else (struct.new $coni_val (i32.const 1) (i64.const 1) (ref.null any) (ref.null func))) )) (then (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func))) (else (local.get $local_6_tyaw)) )) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 5 (i32.const 112) (i32.const 105) (i32.const 116) (i32.const 99) (i32.const 104)) (ref.null func)) (if (result (ref null $coni_val)) (call $coni_truthy (if (result (ref null $coni_val)) (call $coni_truthy (struct.new $coni_val (i32.const 1) (i64.extend_i32_s (call $val_eq (local.get $local_9_tpitch) (local.get $local_9_tpitch))) (ref.null any) (ref.null func))) (then (struct.new $coni_val (i32.const 1) (i64.const 0) (ref.null any) (ref.null func))) (else (struct.new $coni_val (i32.const 1) (i64.const 1) (ref.null any) (ref.null func))) )) (then (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const -0.1)) (ref.null any) (ref.null func))) (else (local.get $local_9_tpitch)) ))) (local.set $local_42_reset_old (array.get $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_41_reset_col))) (i32.const 0))) (array.set $coni_vector (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $local_41_reset_col))) (i32.const 0) (local.get $local_43_reset_new)) (call $host_core_notify_watchers (local.get $local_41_reset_col) (local.get $local_42_reset_old) (local.get $local_43_reset_new)) (local.get $local_43_reset_new))) (drop (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 24 (i32.const 103) (i32.const 108) (i32.const 111) (i32.const 98) (i32.const 97) (i32.const 108) (i32.const 67) (i32.const 111) (i32.const 109) (i32.const 112) (i32.const 111) (i32.const 115) (i32.const 105) (i32.const 116) (i32.const 101) (i32.const 79) (i32.const 112) (i32.const 101) (i32.const 114) (i32.const 97) (i32.const 116) (i32.const 105) (i32.const 111) (i32.const 110)) (ref.null func)) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 11 (i32.const 115) (i32.const 111) (i32.const 117) (i32.const 114) (i32.const 99) (i32.const 101) (i32.const 45) (i32.const 111) (i32.const 118) (i32.const 101) (i32.const 114)) (ref.null func))) (ref.null func)))))) (drop (block (result (ref null $coni_val)) (local.set $local_44_grad (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 6 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 20 (i32.const 99) (i32.const 114) (i32.const 101) (i32.const 97) (i32.const 116) (i32.const 101) (i32.const 76) (i32.const 105) (i32.const 110) (i32.const 101) (i32.const 97) (i32.const 114) (i32.const 71) (i32.const 114) (i32.const 97) (i32.const 100) (i32.const 105) (i32.const 101) (i32.const 110) (i32.const 116)) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (global.get $global_h)) (ref.null func)))))) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 4 (local.get $local_44_grad) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 12 (i32.const 97) (i32.const 100) (i32.const 100) (i32.const 67) (i32.const 111) (i32.const 108) (i32.const 111) (i32.const 114) (i32.const 83) (i32.const 116) (i32.const 111) (i32.const 112)) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 35) (i32.const 48) (i32.const 53) (i32.const 48) (i32.const 48) (i32.const 49) (i32.const 97)) (ref.null func))) (ref.null func)))))) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 4 (local.get $local_44_grad) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 12 (i32.const 97) (i32.const 100) (i32.const 100) (i32.const 67) (i32.const 111) (i32.const 108) (i32.const 111) (i32.const 114) (i32.const 83) (i32.const 116) (i32.const 111) (i32.const 112)) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.5)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 35) (i32.const 50) (i32.const 48) (i32.const 48) (i32.const 48) (i32.const 51) (i32.const 48)) (ref.null func))) (ref.null func)))))) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 4 (local.get $local_44_grad) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 12 (i32.const 97) (i32.const 100) (i32.const 100) (i32.const 67) (i32.const 111) (i32.const 108) (i32.const 111) (i32.const 114) (i32.const 83) (i32.const 116) (i32.const 111) (i32.const 112)) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 1)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 35) (i32.const 48) (i32.const 48) (i32.const 48) (i32.const 48) (i32.const 48) (i32.const 48)) (ref.null func))) (ref.null func)))))) (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 102) (i32.const 105) (i32.const 108) (i32.const 108) (i32.const 83) (i32.const 116) (i32.const 121) (i32.const 108) (i32.const 101)) (ref.null func)) (local.get $local_44_grad)) (ref.null func))))) )) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 6 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 8 (i32.const 102) (i32.const 105) (i32.const 108) (i32.const 108) (i32.const 82) (i32.const 101) (i32.const 99) (i32.const 116)) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (global.get $global_w) (global.get $global_h)) (ref.null func)))))) (block (result (ref null $coni_val)) (local.set $local_47_cyaw (block (result (ref null $coni_val)) (local.set $local_45_fn_tmp (global.get $global_cos)) (local.set $local_46_arg_val (local.get $local_6_tyaw)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_45_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_46_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_45_fn_tmp)))) )) (local.set $local_50_syaw (block (result (ref null $coni_val)) (local.set $local_48_fn_tmp (global.get $global_sin)) (local.set $local_49_arg_val (local.get $local_6_tyaw)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_48_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_49_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_48_fn_tmp)))) )) (local.set $local_53_cpitch (block (result (ref null $coni_val)) (local.set $local_51_fn_tmp (global.get $global_cos)) (local.set $local_52_arg_val (local.get $local_9_tpitch)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_51_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_52_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_51_fn_tmp)))) )) (local.set $local_56_spitch (block (result (ref null $coni_val)) (local.set $local_54_fn_tmp (global.get $global_sin)) (local.set $local_55_arg_val (local.get $local_9_tpitch)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_54_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_55_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_54_fn_tmp)))) )) (local.set $local_57_fov (call $val_add (local.get $local_4_cy) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 300)) (ref.null any) (ref.null func)))) (local.set $local_58_project-3d (struct.new $coni_val (i32.const 10) (i64.const 0) (array.new_fixed $coni_env 10 (local.get $local_24_nx) (local.get $local_26_nz) (local.get $local_3_cx) (local.get $local_40_ny) (local.get $local_47_cyaw) (local.get $local_4_cy) (local.get $local_50_syaw) (local.get $local_53_cpitch) (local.get $local_56_spitch) (local.get $local_57_fov)) (ref.func $fn_51))) (drop (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 24 (i32.const 103) (i32.const 108) (i32.const 111) (i32.const 98) (i32.const 97) (i32.const 108) (i32.const 67) (i32.const 111) (i32.const 109) (i32.const 112) (i32.const 111) (i32.const 115) (i32.const 105) (i32.const 116) (i32.const 101) (i32.const 79) (i32.const 112) (i32.const 101) (i32.const 114) (i32.const 97) (i32.const 116) (i32.const 105) (i32.const 111) (i32.const 110)) (ref.null func)) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 108) (i32.const 105) (i32.const 103) (i32.const 104) (i32.const 116) (i32.const 101) (i32.const 114)) (ref.null func))) (ref.null func)))))) (drop (block (result (ref null $coni_val)) (local.set $local_59_sphere-dist (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 4000)) (ref.null any) (ref.null func))) (local.set $local_62_sx (call $val_add (local.get $local_24_nx) (call $val_mul (block (result (ref null $coni_val)) (local.set $local_60_fn_tmp (global.get $global_sin)) (local.set $local_61_arg_val (local.get $local_6_tyaw)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_60_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_61_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_60_fn_tmp)))) ) (local.get $local_59_sphere-dist)))) (local.set $local_65_sz (call $val_add (local.get $local_26_nz) (call $val_mul (block (result (ref null $coni_val)) (local.set $local_63_fn_tmp (global.get $global_cos)) (local.set $local_64_arg_val (local.get $local_6_tyaw)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_63_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_64_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_63_fn_tmp)))) ) (local.get $local_59_sphere-dist)))) (local.set $local_68_sy (call $val_add (local.get $local_40_ny) (call $val_mul (block (result (ref null $coni_val)) (local.set $local_66_fn_tmp (global.get $global_sin)) (local.set $local_67_arg_val (local.get $local_9_tpitch)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_66_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_67_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_66_fn_tmp)))) ) (local.get $local_59_sphere-dist)))) (if (result (ref null $coni_val)) (call $coni_truthy (block (result (ref null $coni_val)) (local.set $local_69_fn_tmp (local.get $local_58_project-3d)) (local.set $local_70_arg_val (local.get $local_62_sx)) (local.set $local_71_arg_val (local.get $local_68_sy)) (local.set $local_72_arg_val (local.get $local_65_sz)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_69_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 3 (local.get $local_70_arg_val) (local.get $local_71_arg_val) (local.get $local_72_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_69_fn_tmp)))) )) (then (block (result (ref null $coni_val)) (block (result (ref null $coni_val)) (local.set $local_73_px (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global__proj_))) (i32.trunc_f64_s (call $unwrap_float (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))))))) (ref.null any) (ref.null func))) (local.set $local_74_py (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global__proj_))) (i32.trunc_f64_s (call $unwrap_float (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func))))))) (ref.null any) (ref.null func))) (local.set $local_75_pz (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.promote_f32 (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global__proj_))) (i32.trunc_f64_s (call $unwrap_float (struct.new $coni_val (i32.const 2) (i64.const 2) (ref.null any) (ref.null func))))))) (ref.null any) (ref.null func))) (local.set $local_76_r (call $val_div (call $val_mul (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 1500)) (ref.null any) (ref.null func)) (local.get $local_57_fov)) (local.get $local_75_pz))) (drop (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 11 (i32.const 115) (i32.const 116) (i32.const 114) (i32.const 111) (i32.const 107) (i32.const 101) (i32.const 83) (i32.const 116) (i32.const 121) (i32.const 108) (i32.const 101)) (ref.null func)) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 22 (i32.const 114) (i32.const 103) (i32.const 98) (i32.const 97) (i32.const 40) (i32.const 48) (i32.const 44) (i32.const 32) (i32.const 50) (i32.const 53) (i32.const 53) (i32.const 44) (i32.const 32) (i32.const 50) (i32.const 53) (i32.const 53) (i32.const 44) (i32.const 32) (i32.const 48) (i32.const 46) (i32.const 51) (i32.const 41)) (ref.null func))) (ref.null func)))))) (drop (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 108) (i32.const 105) (i32.const 110) (i32.const 101) (i32.const 87) (i32.const 105) (i32.const 100) (i32.const 116) (i32.const 104)) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 8)) (ref.null any) (ref.null func))) (ref.null func)))))) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 98) (i32.const 101) (i32.const 103) (i32.const 105) (i32.const 110) (i32.const 80) (i32.const 97) (i32.const 116) (i32.const 104)) (ref.null func))) (ref.null func)))))) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 7 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 3 (i32.const 97) (i32.const 114) (i32.const 99)) (ref.null func)) (local.get $local_73_px) (local.get $local_74_py) (local.get $local_76_r) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (call $val_mul (global.get $global_PI) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func)))) (ref.null func)))))) (drop (block $loop_end_78 (result (ref null $coni_val)) (local.set $local_77_i (struct.new $coni_val (i32.const 2) (i64.const -4) (ref.null any) (ref.null func))) (loop $loop_start_78 (result (ref null $coni_val)) (block (result (ref null $coni_val)) (if (result (ref null $coni_val)) (call $coni_truthy (call $val_le (local.get $local_77_i) (struct.new $coni_val (i32.const 2) (i64.const 4) (ref.null any) (ref.null func)))) (then (block (result (ref null $coni_val)) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 4 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 109) (i32.const 111) (i32.const 118) (i32.const 101) (i32.const 84) (i32.const 111)) (ref.null func)) (local.get $local_73_px) (local.get $local_74_py)) (ref.null func)))))) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 9 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 101) (i32.const 108) (i32.const 108) (i32.const 105) (i32.const 112) (i32.const 115) (i32.const 101)) (ref.null func)) (local.get $local_73_px) (local.get $local_74_py) (local.get $local_76_r) (call $val_mul (local.get $local_76_r) (block (result (ref null $coni_val)) (local.set $local_79_fn_tmp (global.get $global_abs)) (local.set $local_80_arg_val (call $val_div (local.get $local_77_i) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 4)) (ref.null any) (ref.null func)))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_79_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_80_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_79_fn_tmp)))) )) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (call $val_mul (global.get $global_PI) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func)))) (ref.null func)))))) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 9 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 101) (i32.const 108) (i32.const 108) (i32.const 105) (i32.const 112) (i32.const 115) (i32.const 101)) (ref.null func)) (local.get $local_73_px) (local.get $local_74_py) (call $val_mul (local.get $local_76_r) (block (result (ref null $coni_val)) (local.set $local_81_fn_tmp (global.get $global_abs)) (local.set $local_82_arg_val (call $val_div (local.get $local_77_i) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 4)) (ref.null any) (ref.null func)))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_81_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_82_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_81_fn_tmp)))) )) (local.get $local_76_r) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (call $val_mul (global.get $global_PI) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func)))) (ref.null func)))))) (block (result (ref null $coni_val)) (local.set $local_83_recur_tmp_0 (call $val_add (local.get $local_77_i) (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func)))) (local.set $local_77_i (local.get $local_83_recur_tmp_0)) (br $loop_start_78) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)) ) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) ) ) ) )) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 115) (i32.const 116) (i32.const 114) (i32.const 111) (i32.const 107) (i32.const 101)) (ref.null func))) (ref.null func)))))) (drop (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 11 (i32.const 115) (i32.const 116) (i32.const 114) (i32.const 111) (i32.const 107) (i32.const 101) (i32.const 83) (i32.const 116) (i32.const 121) (i32.const 108) (i32.const 101)) (ref.null func)) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 35) (i32.const 48) (i32.const 48) (i32.const 102) (i32.const 102) (i32.const 102) (i32.const 102)) (ref.null func))) (ref.null func)))))) (drop (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 108) (i32.const 105) (i32.const 110) (i32.const 101) (i32.const 87) (i32.const 105) (i32.const 100) (i32.const 116) (i32.const 104)) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func))) (ref.null func)))))) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 98) (i32.const 101) (i32.const 103) (i32.const 105) (i32.const 110) (i32.const 80) (i32.const 97) (i32.const 116) (i32.const 104)) (ref.null func))) (ref.null func)))))) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 7 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 3 (i32.const 97) (i32.const 114) (i32.const 99)) (ref.null func)) (local.get $local_73_px) (local.get $local_74_py) (local.get $local_76_r) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (call $val_mul (global.get $global_PI) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func)))) (ref.null func)))))) (drop (block $loop_end_85 (result (ref null $coni_val)) (local.set $local_84_i (struct.new $coni_val (i32.const 2) (i64.const -4) (ref.null any) (ref.null func))) (loop $loop_start_85 (result (ref null $coni_val)) (block (result (ref null $coni_val)) (if (result (ref null $coni_val)) (call $coni_truthy (call $val_le (local.get $local_84_i) (struct.new $coni_val (i32.const 2) (i64.const 4) (ref.null any) (ref.null func)))) (then (block (result (ref null $coni_val)) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 4 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 109) (i32.const 111) (i32.const 118) (i32.const 101) (i32.const 84) (i32.const 111)) (ref.null func)) (local.get $local_73_px) (local.get $local_74_py)) (ref.null func)))))) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 9 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 101) (i32.const 108) (i32.const 108) (i32.const 105) (i32.const 112) (i32.const 115) (i32.const 101)) (ref.null func)) (local.get $local_73_px) (local.get $local_74_py) (local.get $local_76_r) (call $val_mul (local.get $local_76_r) (block (result (ref null $coni_val)) (local.set $local_86_fn_tmp (global.get $global_abs)) (local.set $local_87_arg_val (call $val_div (local.get $local_84_i) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 4)) (ref.null any) (ref.null func)))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_86_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_87_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_86_fn_tmp)))) )) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (call $val_mul (global.get $global_PI) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func)))) (ref.null func)))))) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 9 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 101) (i32.const 108) (i32.const 108) (i32.const 105) (i32.const 112) (i32.const 115) (i32.const 101)) (ref.null func)) (local.get $local_73_px) (local.get $local_74_py) (call $val_mul (local.get $local_76_r) (block (result (ref null $coni_val)) (local.set $local_88_fn_tmp (global.get $global_abs)) (local.set $local_89_arg_val (call $val_div (local.get $local_84_i) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 4)) (ref.null any) (ref.null func)))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_88_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_89_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_88_fn_tmp)))) )) (local.get $local_76_r) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (call $val_mul (global.get $global_PI) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func)))) (ref.null func)))))) (block (result (ref null $coni_val)) (local.set $local_90_recur_tmp_0 (call $val_add (local.get $local_84_i) (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func)))) (local.set $local_84_i (local.get $local_90_recur_tmp_0)) (br $loop_start_85) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)) ) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) ) ) ) )) (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 115) (i32.const 116) (i32.const 114) (i32.const 111) (i32.const 107) (i32.const 101)) (ref.null func))) (ref.null func))))) ) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) ) )) (drop (block (result (ref null $coni_val)) (local.set $local_93_cx-grid (block (result (ref null $coni_val)) (local.set $local_91_fn_tmp (global.get $global_floor)) (local.set $local_92_arg_val (call $val_div (local.get $local_24_nx) (global.get $global_scl))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_91_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_92_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_91_fn_tmp)))) )) (local.set $local_96_cz-grid (block (result (ref null $coni_val)) (local.set $local_94_fn_tmp (global.get $global_floor)) (local.set $local_95_arg_val (call $val_div (local.get $local_26_nz) (global.get $global_scl))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_94_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_95_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_94_fn_tmp)))) )) (drop (block $loop_end_98 (result (ref null $coni_val)) (local.set $local_97_y (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))) (loop $loop_start_98 (result (ref null $coni_val)) (block (result (ref null $coni_val)) (if (result (ref null $coni_val)) (call $coni_truthy (call $val_lt (local.get $local_97_y) (global.get $global_rows))) (then (block (result (ref null $coni_val)) (drop (block (result (ref null $coni_val)) (local.set $local_99_world-z (call $val_add (local.get $local_96_cz-grid) (call $val_sub (local.get $local_97_y) (call $val_div (global.get $global_rows) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func)))))) (block $loop_end_101 (result (ref null $coni_val)) (local.set $local_100_x (struct.new $coni_val (i32.const 2) (i64.const 0) (ref.null any) (ref.null func))) (loop $loop_start_101 (result (ref null $coni_val)) (block (result (ref null $coni_val)) (if (result (ref null $coni_val)) (call $coni_truthy (call $val_lt (local.get $local_100_x) (global.get $global_cols))) (then (block (result (ref null $coni_val)) (drop (block (result (ref null $coni_val)) (local.set $local_102_world-x (call $val_add (local.get $local_93_cx-grid) (call $val_sub (local.get $local_100_x) (call $val_div (global.get $global_cols) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2)) (ref.null any) (ref.null func)))))) (local.set $local_109_v (call $val_add (call $val_add (call $val_mul (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.5)) (ref.null any) (ref.null func)) (block (result (ref null $coni_val)) (local.set $local_103_fn_tmp (global.get $global_sin)) (local.set $local_104_arg_val (call $val_add (call $val_mul (local.get $local_102_world-x) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.1)) (ref.null any) (ref.null func))) (call $val_mul (local.get $local_99_world-z) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.1)) (ref.null any) (ref.null func))))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_103_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_104_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_103_fn_tmp)))) )) (call $val_mul (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.25)) (ref.null any) (ref.null func)) (block (result (ref null $coni_val)) (local.set $local_105_fn_tmp (global.get $global_sin)) (local.set $local_106_arg_val (call $val_add (call $val_mul (local.get $local_102_world-x) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.22)) (ref.null any) (ref.null func))) (call $val_mul (local.get $local_99_world-z) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.31)) (ref.null any) (ref.null func))))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_105_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_106_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_105_fn_tmp)))) ))) (call $val_mul (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.125)) (ref.null any) (ref.null func)) (block (result (ref null $coni_val)) (local.set $local_107_fn_tmp (global.get $global_sin)) (local.set $local_108_arg_val (call $val_add (call $val_mul (local.get $local_102_world-x) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.5)) (ref.null any) (ref.null func))) (call $val_mul (local.get $local_99_world-z) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0.1)) (ref.null any) (ref.null func))))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_107_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 1 (local.get $local_108_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_107_fn_tmp)))) )))) (block (result (ref null $coni_val)) (array.set $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (global.get $global_terrain))) (i32.trunc_f64_s (call $unwrap_float (call $val_add (local.get $local_100_x) (call $val_mul (local.get $local_97_y) (global.get $global_cols))))) (f32.demote_f64 (call $unwrap_float (call $val_mul (local.get $local_109_v) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 400)) (ref.null any) (ref.null func)))))) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) )) (block (result (ref null $coni_val)) (local.set $local_110_recur_tmp_0 (call $val_add (local.get $local_100_x) (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func)))) (local.set $local_100_x (local.get $local_110_recur_tmp_0)) (br $loop_start_101) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)) ) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) ) ) ) ) )) (block (result (ref null $coni_val)) (local.set $local_111_recur_tmp_0 (call $val_add (local.get $local_97_y) (struct.new $coni_val (i32.const 2) (i64.const 1) (ref.null any) (ref.null func)))) (local.set $local_97_y (local.get $local_111_recur_tmp_0)) (br $loop_start_98) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)) ) )) (else (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) ) ) ) )) (drop (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 24 (i32.const 103) (i32.const 108) (i32.const 111) (i32.const 98) (i32.const 97) (i32.const 108) (i32.const 67) (i32.const 111) (i32.const 109) (i32.const 112) (i32.const 111) (i32.const 115) (i32.const 105) (i32.const 116) (i32.const 101) (i32.const 79) (i32.const 112) (i32.const 101) (i32.const 114) (i32.const 97) (i32.const 116) (i32.const 105) (i32.const 111) (i32.const 110)) (ref.null func)) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 11 (i32.const 115) (i32.const 111) (i32.const 117) (i32.const 114) (i32.const 99) (i32.const 101) (i32.const 45) (i32.const 111) (i32.const 118) (i32.const 101) (i32.const 114)) (ref.null func))) (ref.null func)))))) (drop (block (result (ref null $coni_val)) (local.set $local_112_draw-grid (struct.new $coni_val (i32.const 10) (i64.const 0) (array.new_fixed $coni_env 4 (local.get $local_2_ctx) (local.get $local_58_project-3d) (local.get $local_93_cx-grid) (local.get $local_96_cz-grid)) (ref.func $fn_52))) (drop (block (result (ref null $coni_val)) (local.set $local_113_fn_tmp (local.get $local_112_draw-grid)) (local.set $local_114_arg_val (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 22 (i32.const 114) (i32.const 103) (i32.const 98) (i32.const 97) (i32.const 40) (i32.const 50) (i32.const 53) (i32.const 53) (i32.const 44) (i32.const 32) (i32.const 48) (i32.const 44) (i32.const 32) (i32.const 49) (i32.const 50) (i32.const 55) (i32.const 44) (i32.const 32) (i32.const 48) (i32.const 46) (i32.const 50) (i32.const 41)) (ref.null func))) (local.set $local_115_arg_val (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 6)) (ref.null any) (ref.null func))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_113_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 2 (local.get $local_114_arg_val) (local.get $local_115_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_113_fn_tmp)))) )) (block (result (ref null $coni_val)) (local.set $local_116_fn_tmp (local.get $local_112_draw-grid)) (local.set $local_117_arg_val (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 22 (i32.const 114) (i32.const 103) (i32.const 98) (i32.const 97) (i32.const 40) (i32.const 50) (i32.const 53) (i32.const 53) (i32.const 44) (i32.const 32) (i32.const 48) (i32.const 44) (i32.const 32) (i32.const 49) (i32.const 50) (i32.const 55) (i32.const 44) (i32.const 32) (i32.const 48) (i32.const 46) (i32.const 56) (i32.const 41)) (ref.null func))) (local.set $local_118_arg_val (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 1.5)) (ref.null any) (ref.null func))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_116_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 2 (local.get $local_117_arg_val) (local.get $local_118_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_116_fn_tmp)))) ) )) (drop (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (local.get $local_2_ctx) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 24 (i32.const 103) (i32.const 108) (i32.const 111) (i32.const 98) (i32.const 97) (i32.const 108) (i32.const 67) (i32.const 111) (i32.const 109) (i32.const 112) (i32.const 111) (i32.const 115) (i32.const 105) (i32.const 116) (i32.const 101) (i32.const 79) (i32.const 112) (i32.const 101) (i32.const 114) (i32.const 97) (i32.const 116) (i32.const 105) (i32.const 111) (i32.const 110)) (ref.null func)) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 108) (i32.const 105) (i32.const 103) (i32.const 104) (i32.const 116) (i32.const 101) (i32.const 114)) (ref.null func))) (ref.null func)))))) (block (result (ref null $coni_val)) (local.set $local_119_draw-particles (struct.new $coni_val (i32.const 10) (i64.const 0) (array.new_fixed $coni_env 8 (local.get $local_14_vx) (local.get $local_17_vy) (local.get $local_22_vz) (local.get $local_24_nx) (local.get $local_26_nz) (local.get $local_2_ctx) (local.get $local_40_ny) (local.get $local_58_project-3d)) (ref.func $fn_53))) (drop (block (result (ref null $coni_val)) (local.set $local_120_fn_tmp (local.get $local_119_draw-particles)) (local.set $local_121_arg_val (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 22 (i32.const 114) (i32.const 103) (i32.const 98) (i32.const 97) (i32.const 40) (i32.const 48) (i32.const 44) (i32.const 32) (i32.const 50) (i32.const 53) (i32.const 53) (i32.const 44) (i32.const 32) (i32.const 50) (i32.const 53) (i32.const 53) (i32.const 44) (i32.const 32) (i32.const 48) (i32.const 46) (i32.const 50) (i32.const 41)) (ref.null func))) (local.set $local_122_arg_val (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 5)) (ref.null any) (ref.null func))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_120_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 2 (local.get $local_121_arg_val) (local.get $local_122_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_120_fn_tmp)))) )) (block (result (ref null $coni_val)) (local.set $local_123_fn_tmp (local.get $local_119_draw-particles)) (local.set $local_124_arg_val (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 22 (i32.const 114) (i32.const 103) (i32.const 98) (i32.const 97) (i32.const 40) (i32.const 48) (i32.const 44) (i32.const 32) (i32.const 50) (i32.const 53) (i32.const 53) (i32.const 44) (i32.const 32) (i32.const 50) (i32.const 53) (i32.const 53) (i32.const 44) (i32.const 32) (i32.const 48) (i32.const 46) (i32.const 56) (i32.const 41)) (ref.null func))) (local.set $local_125_arg_val (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 1.5)) (ref.null any) (ref.null func))) (global.set $current_env (struct.get $coni_val $ref (local.get $local_123_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 2 (local.get $local_124_arg_val) (local.get $local_125_arg_val)) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_123_fn_tmp)))) ) ) )) (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (global.get $global_window) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 21 (i32.const 114) (i32.const 101) (i32.const 113) (i32.const 117) (i32.const 101) (i32.const 115) (i32.const 116) (i32.const 65) (i32.const 110) (i32.const 105) (i32.const 109) (i32.const 97) (i32.const 116) (i32.const 105) (i32.const 111) (i32.const 110) (i32.const 70) (i32.const 114) (i32.const 97) (i32.const 109) (i32.const 101)) (ref.null func)) (global.get $global_render-frame)) (ref.null func))))) ) ) ) ) (func (export "get_render-frame") (result i64) (struct.get $coni_val $num (global.get $global_render-frame)) ) (func (export "main") (local $local_0_canvas (ref null $coni_val)) (local $local_1_fn_tmp (ref null $coni_val)) (local $local_2_update-touch (ref null $coni_val)) (local $local_3_obj_ (ref null $coni_val)) (local $local_4_obj_ (ref null $coni_val)) (local $local_5_fn_tmp (ref null $coni_val)) (local $local_6_c (ref null $coni_val)) (global.set $global_println (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $host_println))) (global.set $global_js_get (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $host_js_get))) (global.set $global_js_set (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $host_js_set))) (global.set $global_js_call (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $host_js_call))) (global.set $global_js_new (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $host_js_new))) (global.set $global_js_obj (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $host_js_obj))) (global.set $global_js_global (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $host_js_global))) (global.set $global_get (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $host_core_get))) (global.set $global_assoc (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $host_core_assoc))) (global.set $global_conj (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $host_core_conj))) (global.set $global_count (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $host_core_count))) (global.set $global_core_lib (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $host_core_lib))) (drop (ref.null $coni_val)) (drop (block (result (ref null $coni_val)) (global.set $global_window (call $host_js_global (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 119) (i32.const 105) (i32.const 110) (i32.const 100) (i32.const 111) (i32.const 119)) (ref.null func)))) (global.get $global_window))) (drop (block (result (ref null $coni_val)) (global.set $global_document (call $host_js_global (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 8 (i32.const 100) (i32.const 111) (i32.const 99) (i32.const 117) (i32.const 109) (i32.const 101) (i32.const 110) (i32.const 116)) (ref.null func)))) (global.get $global_document))) (drop (block (result (ref null $coni_val)) (global.set $global_E (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 2.718281828459045)) (ref.null any) (ref.null func))) (global.get $global_E))) (drop (block (result (ref null $coni_val)) (global.set $global_PI (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 3.141592653589793)) (ref.null any) (ref.null func))) (global.get $global_PI))) (drop (block (result (ref null $coni_val)) (global.set $global_abs (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_1))) (global.get $global_abs))) (drop (block (result (ref null $coni_val)) (global.set $global_signum (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_2))) (global.get $global_signum))) (drop (block (result (ref null $coni_val)) (global.set $global_copy-sign (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_3))) (global.get $global_copy-sign))) (drop (block (result (ref null $coni_val)) (global.set $global_clamp (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_4))) (global.get $global_clamp))) (drop (block (result (ref null $coni_val)) (global.set $global_max (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_5))) (global.get $global_max))) (drop (block (result (ref null $coni_val)) (global.set $global_min (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_6))) (global.get $global_min))) (drop (block (result (ref null $coni_val)) (global.set $global_sum (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_7))) (global.get $global_sum))) (drop (block (result (ref null $coni_val)) (global.set $global_product (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_9))) (global.get $global_product))) (drop (block (result (ref null $coni_val)) (global.set $global_ceil (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_11))) (global.get $global_ceil))) (drop (block (result (ref null $coni_val)) (global.set $global_floor (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_12))) (global.get $global_floor))) (drop (block (result (ref null $coni_val)) (global.set $global_round (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_13))) (global.get $global_round))) (drop (block (result (ref null $coni_val)) (global.set $global_rint (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_14))) (global.get $global_rint))) (drop (block (result (ref null $coni_val)) (global.set $global_exp (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_15))) (global.get $global_exp))) (drop (block (result (ref null $coni_val)) (global.set $global_expm1 (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_16))) (global.get $global_expm1))) (drop (block (result (ref null $coni_val)) (global.set $global_pow (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_17))) (global.get $global_pow))) (drop (block (result (ref null $coni_val)) (global.set $global_sqrt (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_18))) (global.get $global_sqrt))) (drop (block (result (ref null $coni_val)) (global.set $global_cbrt (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_19))) (global.get $global_cbrt))) (drop (block (result (ref null $coni_val)) (global.set $global_hypot (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_20))) (global.get $global_hypot))) (drop (block (result (ref null $coni_val)) (global.set $global_log (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_21))) (global.get $global_log))) (drop (block (result (ref null $coni_val)) (global.set $global_log10 (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_22))) (global.get $global_log10))) (drop (block (result (ref null $coni_val)) (global.set $global_log1p (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_23))) (global.get $global_log1p))) (drop (block (result (ref null $coni_val)) (global.set $global_log2 (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_24))) (global.get $global_log2))) (drop (block (result (ref null $coni_val)) (global.set $global_sin (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_25))) (global.get $global_sin))) (drop (block (result (ref null $coni_val)) (global.set $global_cos (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_26))) (global.get $global_cos))) (drop (block (result (ref null $coni_val)) (global.set $global_tan (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_27))) (global.get $global_tan))) (drop (block (result (ref null $coni_val)) (global.set $global_asin (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_28))) (global.get $global_asin))) (drop (block (result (ref null $coni_val)) (global.set $global_acos (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_29))) (global.get $global_acos))) (drop (block (result (ref null $coni_val)) (global.set $global_atan (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_30))) (global.get $global_atan))) (drop (block (result (ref null $coni_val)) (global.set $global_atan2 (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_31))) (global.get $global_atan2))) (drop (block (result (ref null $coni_val)) (global.set $global_to-degrees (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_32))) (global.get $global_to-degrees))) (drop (block (result (ref null $coni_val)) (global.set $global_to-radians (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_33))) (global.get $global_to-radians))) (drop (block (result (ref null $coni_val)) (global.set $global_sinh (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_34))) (global.get $global_sinh))) (drop (block (result (ref null $coni_val)) (global.set $global_cosh (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_35))) (global.get $global_cosh))) (drop (block (result (ref null $coni_val)) (global.set $global_tanh (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_36))) (global.get $global_tanh))) (drop (block (result (ref null $coni_val)) (global.set $global_asinh (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_37))) (global.get $global_asinh))) (drop (block (result (ref null $coni_val)) (global.set $global_acosh (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_38))) (global.get $global_acosh))) (drop (block (result (ref null $coni_val)) (global.set $global_atanh (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_39))) (global.get $global_atanh))) (drop (block (result (ref null $coni_val)) (global.set $global_remainder (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_40))) (global.get $global_remainder))) (drop (block (result (ref null $coni_val)) (global.set $global_rem (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_41))) (global.get $global_rem))) (drop (block (result (ref null $coni_val)) (global.set $global_mod (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_42))) (global.get $global_mod))) (drop (block (result (ref null $coni_val)) (global.set $global_random (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_43))) (global.get $global_random))) (drop (block (result (ref null $coni_val)) (global.set $global_random-int (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_44))) (global.get $global_random-int))) (drop (block (result (ref null $coni_val)) (global.set $global_next-after (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_45))) (global.get $global_next-after))) (drop (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) (drop (block (result (ref null $coni_val)) (global.set $global_w (call $host_js_get (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (global.get $global_window) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 10 (i32.const 105) (i32.const 110) (i32.const 110) (i32.const 101) (i32.const 114) (i32.const 87) (i32.const 105) (i32.const 100) (i32.const 116) (i32.const 104)) (ref.null func))) (ref.null func)))))) (global.get $global_w))) (drop (block (result (ref null $coni_val)) (global.set $global_h (call $host_js_get (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 2 (global.get $global_window) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 11 (i32.const 105) (i32.const 110) (i32.const 110) (i32.const 101) (i32.const 114) (i32.const 72) (i32.const 101) (i32.const 105) (i32.const 103) (i32.const 104) (i32.const 116)) (ref.null func))) (ref.null func)))))) (global.get $global_h))) (drop (block (result (ref null $coni_val)) (local.set $local_0_canvas (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (global.get $global_document) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 14 (i32.const 103) (i32.const 101) (i32.const 116) (i32.const 69) (i32.const 108) (i32.const 101) (i32.const 109) (i32.const 101) (i32.const 110) (i32.const 116) (i32.const 66) (i32.const 121) (i32.const 73) (i32.const 100)) (ref.null func)) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 11 (i32.const 103) (i32.const 97) (i32.const 109) (i32.const 101) (i32.const 45) (i32.const 99) (i32.const 97) (i32.const 110) (i32.const 118) (i32.const 97) (i32.const 115)) (ref.null func))) (ref.null func)))))) (drop (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (local.get $local_0_canvas) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 5 (i32.const 119) (i32.const 105) (i32.const 100) (i32.const 116) (i32.const 104)) (ref.null func)) (global.get $global_w)) (ref.null func)))))) (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (local.get $local_0_canvas) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 104) (i32.const 101) (i32.const 105) (i32.const 103) (i32.const 104) (i32.const 116)) (ref.null func)) (global.get $global_h)) (ref.null func))))) )) (drop (block (result (ref null $coni_val)) (global.set $global_cols (struct.new $coni_val (i32.const 2) (i64.const 60) (ref.null any) (ref.null func))) (global.get $global_cols))) (drop (block (result (ref null $coni_val)) (global.set $global_rows (struct.new $coni_val (i32.const 2) (i64.const 60) (ref.null any) (ref.null func))) (global.get $global_rows))) (drop (block (result (ref null $coni_val)) (global.set $global_scl (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 200)) (ref.null any) (ref.null func))) (global.get $global_scl))) (drop (block (result (ref null $coni_val)) (global.set $global_terrain (struct.new $coni_val (i32.const 12) (i64.const 0) (array.new_default $coni_f32_array (i32.wrap_i64 (struct.get $coni_val $num (call $val_mul (global.get $global_cols) (global.get $global_rows))))) (ref.null func))) (global.get $global_terrain))) (drop (block (result (ref null $coni_val)) (global.set $global__proj_ (struct.new $coni_val (i32.const 12) (i64.const 0) (array.new_default $coni_f32_array (i32.wrap_i64 (struct.get $coni_val $num (struct.new $coni_val (i32.const 2) (i64.const 3) (ref.null any) (ref.null func))))) (ref.null func))) (global.get $global__proj_))) (drop (block (result (ref null $coni_val)) (global.set $global_cam-state (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 1 (struct.new $coni_val (i32.const 9) (i64.const 0) (array.new_fixed $coni_vector 16 (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 1 (i32.const 120)) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 1 (i32.const 121)) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 200)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 1 (i32.const 122)) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 3 (i32.const 121) (i32.const 97) (i32.const 119)) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 5 (i32.const 112) (i32.const 105) (i32.const 116) (i32.const 99) (i32.const 104)) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const -0.1)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 5 (i32.const 115) (i32.const 112) (i32.const 101) (i32.const 101) (i32.const 100)) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 30)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 109) (i32.const 111) (i32.const 117) (i32.const 115) (i32.const 101) (i32.const 45) (i32.const 120)) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func)) (struct.new $coni_val (i32.const 6) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 109) (i32.const 111) (i32.const 117) (i32.const 115) (i32.const 101) (i32.const 45) (i32.const 121)) (ref.null func)) (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.const 0)) (ref.null any) (ref.null func))) (ref.null func))) (ref.null func))) (global.get $global_cam-state))) (drop (block (result (ref null $coni_val)) (global.set $global_num-particles (struct.new $coni_val (i32.const 2) (i64.const 300) (ref.null any) (ref.null func))) (global.get $global_num-particles))) (drop (block (result (ref null $coni_val)) (global.set $global_particles-x (struct.new $coni_val (i32.const 12) (i64.const 0) (array.new_default $coni_f32_array (i32.wrap_i64 (struct.get $coni_val $num (global.get $global_num-particles)))) (ref.null func))) (global.get $global_particles-x))) (drop (block (result (ref null $coni_val)) (global.set $global_particles-y (struct.new $coni_val (i32.const 12) (i64.const 0) (array.new_default $coni_f32_array (i32.wrap_i64 (struct.get $coni_val $num (global.get $global_num-particles)))) (ref.null func))) (global.get $global_particles-y))) (drop (block (result (ref null $coni_val)) (global.set $global_particles-z (struct.new $coni_val (i32.const 12) (i64.const 0) (array.new_default $coni_f32_array (i32.wrap_i64 (struct.get $coni_val $num (global.get $global_num-particles)))) (ref.null func))) (global.get $global_particles-z))) (drop (block (result (ref null $coni_val)) (global.set $global_init-particles (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_46))) (global.get $global_init-particles))) (drop (block (result (ref null $coni_val)) (local.set $local_1_fn_tmp (global.get $global_init-particles)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_1_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 0 ) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_1_fn_tmp)))) )) (drop (block (result (ref null $coni_val)) (global.set $global_update-mouse_ (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_47))) (global.get $global_update-mouse_))) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 4 (global.get $global_window) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 16 (i32.const 97) (i32.const 100) (i32.const 100) (i32.const 69) (i32.const 118) (i32.const 101) (i32.const 110) (i32.const 116) (i32.const 76) (i32.const 105) (i32.const 115) (i32.const 116) (i32.const 101) (i32.const 110) (i32.const 101) (i32.const 114)) (ref.null func)) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 109) (i32.const 111) (i32.const 117) (i32.const 115) (i32.const 101) (i32.const 109) (i32.const 111) (i32.const 118) (i32.const 101)) (ref.null func)) (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_48))) (ref.null func)))))) (drop (block (result (ref null $coni_val)) (local.set $local_2_update-touch (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_49))) (drop (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 5 (global.get $global_window) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 16 (i32.const 97) (i32.const 100) (i32.const 100) (i32.const 69) (i32.const 118) (i32.const 101) (i32.const 110) (i32.const 116) (i32.const 76) (i32.const 105) (i32.const 115) (i32.const 116) (i32.const 101) (i32.const 110) (i32.const 101) (i32.const 114)) (ref.null func)) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 10 (i32.const 116) (i32.const 111) (i32.const 117) (i32.const 99) (i32.const 104) (i32.const 115) (i32.const 116) (i32.const 97) (i32.const 114) (i32.const 116)) (ref.null func)) (local.get $local_2_update-touch) (block (result (ref null $coni_val)) (local.set $local_3_obj_ (call $host_js_new (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 1 (call $host_js_global (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 79) (i32.const 98) (i32.const 106) (i32.const 101) (i32.const 99) (i32.const 116)) (ref.null func)))) (ref.null func)))))) (drop (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (local.get $local_3_obj_) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 112) (i32.const 97) (i32.const 115) (i32.const 115) (i32.const 105) (i32.const 118) (i32.const 101)) (ref.null func)) (struct.new $coni_val (i32.const 1) (i64.const 0) (ref.null any) (ref.null func))) (ref.null func)))))) (local.get $local_3_obj_) )) (ref.null func)))))) (call $host_js_call (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 5 (global.get $global_window) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 16 (i32.const 97) (i32.const 100) (i32.const 100) (i32.const 69) (i32.const 118) (i32.const 101) (i32.const 110) (i32.const 116) (i32.const 76) (i32.const 105) (i32.const 115) (i32.const 116) (i32.const 101) (i32.const 110) (i32.const 101) (i32.const 114)) (ref.null func)) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 9 (i32.const 116) (i32.const 111) (i32.const 117) (i32.const 99) (i32.const 104) (i32.const 109) (i32.const 111) (i32.const 118) (i32.const 101)) (ref.null func)) (local.get $local_2_update-touch) (block (result (ref null $coni_val)) (local.set $local_4_obj_ (call $host_js_new (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 1 (call $host_js_global (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 6 (i32.const 79) (i32.const 98) (i32.const 106) (i32.const 101) (i32.const 99) (i32.const 116)) (ref.null func)))) (ref.null func)))))) (drop (call $host_js_set (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (struct.new $coni_val (i32.const 8) (i64.const 0) (array.new_fixed $coni_vector 3 (local.get $local_4_obj_) (struct.new $coni_val (i32.const 4) (i64.const 0) (array.new_fixed $coni_string 7 (i32.const 112) (i32.const 97) (i32.const 115) (i32.const 115) (i32.const 105) (i32.const 118) (i32.const 101)) (ref.null func)) (struct.new $coni_val (i32.const 1) (i64.const 0) (ref.null any) (ref.null func))) (ref.null func)))))) (local.get $local_4_obj_) )) (ref.null func))))) )) (drop (block (result (ref null $coni_val)) (global.set $global_render-frame (struct.new $coni_val (i32.const 10) (i64.const 0) (ref.null any) (ref.func $fn_50))) (global.get $global_render-frame))) (drop (block (result (ref null $coni_val)) (local.set $local_5_fn_tmp (global.get $global_render-frame)) (global.set $current_env (struct.get $coni_val $ref (local.get $local_5_fn_tmp))) (call_ref $coni_fn (array.new_fixed $coni_vector 0 ) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $local_5_fn_tmp)))) )) (drop (block (result (ref null $coni_val)) (local.set $local_6_c (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func))) (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)) )) ) ;; WasmGC Unpacking Helpers for Host Integrations (func (export "string_len") (param $str (ref null $coni_val)) (result i32) (array.len (ref.cast (ref null $coni_string) (struct.get $coni_val $ref (local.get $str)))) ) (func (export "string_get") (param $str (ref null $coni_val)) (param $idx i32) (result i32) (array.get_u $coni_string (ref.cast (ref null $coni_string) (struct.get $coni_val $ref (local.get $str))) (local.get $idx)) ) (func (export "vector_len") (param $vec (ref null $coni_vector)) (result i32) (array.len (local.get $vec)) ) (func (export "vector_get") (param $vec (ref null $coni_vector)) (param $idx i32) (result (ref null $coni_val)) (array.get $coni_vector (local.get $vec) (local.get $idx)) ) (func (export "vector_set") (param $vec (ref null $coni_vector)) (param $idx i32) (param $val (ref null $coni_val)) (array.set $coni_vector (local.get $vec) (local.get $idx) (local.get $val)) ) (func (export "val_unwrap_vector") (param $val (ref null $coni_val)) (result (ref null $coni_vector)) (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $val))) ) (func (export "f32_array_len") (param $arr (ref null $coni_val)) (result i32) (array.len (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (local.get $arr)))) ) (func (export "f32_array_get") (param $arr (ref null $coni_val)) (param $idx i32) (result f32) (array.get $coni_f32_array (ref.cast (ref null $coni_f32_array) (struct.get $coni_val $ref (local.get $arr))) (local.get $idx)) ) (func (export "val_alloc_vector") (param $len i32) (result (ref null $coni_vector)) (array.new_default $coni_vector (local.get $len)) ) (func (export "val_box_vector") (param $tag i32) (param $vec (ref null $coni_vector)) (result (ref null $coni_val)) (struct.new $coni_val (local.get $tag) (i64.const 0) (local.get $vec) (ref.null func)) ) (func $val_alloc_string (export "val_alloc_string") (param $len i32) (result (ref null $coni_string)) (array.new_default $coni_string (local.get $len)) ) (func $string_set (export "string_set") (param $str (ref null $coni_string)) (param $idx i32) (param $val i32) (array.set $coni_string (local.get $str) (local.get $idx) (local.get $val)) ) (func $val_box_string (export "val_box_string") (param $str (ref null $coni_string)) (result (ref null $coni_val)) (struct.new $coni_val (i32.const 4) (i64.const 0) (local.get $str) (ref.null func)) ) (func (export "val_box_num") (param $tag i32) (param $num i64) (result (ref null $coni_val)) (struct.new $coni_val (local.get $tag) (local.get $num) (ref.null any) (ref.null func)) ) (func (export "val_box_extern") (param $obj (ref null any)) (result (ref null $coni_val)) (struct.new $coni_val (i32.const 99) (i64.const 0) (local.get $obj) (ref.null func)) ) ;; Clojure truthiness: only nil (tag=0) and false (tag=1, num=0) are falsy (func $coni_truthy (export "coni_truthy") (param $val (ref null $coni_val)) (result i32) (if (ref.is_null (local.get $val)) (then (return (i32.const 0)))) (if (i32.eqz (struct.get $coni_val $tag (local.get $val))) (then (return (i32.const 0)))) (if (i32.and (i32.eq (struct.get $coni_val $tag (local.get $val)) (i32.const 1)) (i64.eqz (struct.get $coni_val $num (local.get $val)))) (then (return (i32.const 0)))) (i32.const 1) ) (func $val_eq (export "val_eq") (param $a (ref null $coni_val)) (param $b (ref null $coni_val)) (result i32) (local $tag_a i32) (local $tag_b i32) (local $len_a i32) (local $len_b i32) (local $i i32) (local $j i32) (local $str_a (ref null $coni_string)) (local $str_b (ref null $coni_string)) (local $vec_a (ref null $coni_vector)) (local $vec_b (ref null $coni_vector)) (local $k_a (ref null $coni_val)) (local $v_a (ref null $coni_val)) (local $found_in_b i32) (local $f_a f64) (local $f_b f64) (local.set $tag_a (struct.get $coni_val $tag (local.get $a))) (local.set $tag_b (struct.get $coni_val $tag (local.get $b))) ;; If tags differ but both are numeric (TagInt=2 or TagFloat=3), compare as f64 (if (i32.and (i32.ne (local.get $tag_a) (local.get $tag_b)) (i32.and (i32.or (i32.eq (local.get $tag_a) (i32.const 2)) (i32.eq (local.get $tag_a) (i32.const 3))) (i32.or (i32.eq (local.get $tag_b) (i32.const 2)) (i32.eq (local.get $tag_b) (i32.const 3))))) (then (local.set $f_a (if (result f64) (i32.eq (local.get $tag_a) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $a)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $a)))))) (local.set $f_b (if (result f64) (i32.eq (local.get $tag_b) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $b)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $b)))))) (return (f64.eq (local.get $f_a) (local.get $f_b))))) (if (i32.ne (local.get $tag_a) (local.get $tag_b)) (then (return (i32.const 0))) ) ;; If tags are equal, handle numeric types natively without falling through (if (i32.or (i32.eq (local.get $tag_a) (i32.const 2)) (i32.eq (local.get $tag_a) (i32.const 3))) (then (return (i64.eq (struct.get $coni_val $num (local.get $a)) (struct.get $coni_val $num (local.get $b)))))) ;; if it's string (TagString = 4) (if (i32.eq (local.get $tag_a) (i32.const 4)) (then (local.set $str_a (ref.cast (ref null $coni_string) (struct.get $coni_val $ref (local.get $a)))) (local.set $str_b (ref.cast (ref null $coni_string) (struct.get $coni_val $ref (local.get $b)))) (local.set $len_a (array.len (local.get $str_a))) (local.set $len_b (array.len (local.get $str_b))) (if (i32.ne (local.get $len_a) (local.get $len_b)) (then (return (i32.const 0))) ) (local.set $i (i32.const 0)) (loop $str_loop (if (i32.ge_u (local.get $i) (local.get $len_a)) (then (return (i32.const 1))) ) (if (i32.ne (array.get_u $coni_string (local.get $str_a) (local.get $i)) (array.get_u $coni_string (local.get $str_b) (local.get $i))) (then (return (i32.const 0))) ) (local.set $i (i32.add (local.get $i) (i32.const 1))) (br $str_loop) ) ) ) ;; Keywords (TagKeyword=6) and Symbols (TagSymbol=5) also store name in $ref as $coni_string (if (i32.or (i32.eq (local.get $tag_a) (i32.const 6)) (i32.eq (local.get $tag_a) (i32.const 5))) (then (local.set $str_a (ref.cast (ref null $coni_string) (struct.get $coni_val $ref (local.get $a)))) (local.set $str_b (ref.cast (ref null $coni_string) (struct.get $coni_val $ref (local.get $b)))) (local.set $len_a (array.len (local.get $str_a))) (local.set $len_b (array.len (local.get $str_b))) (if (i32.ne (local.get $len_a) (local.get $len_b)) (then (return (i32.const 0))) ) (local.set $i (i32.const 0)) (loop $kw_loop (if (i32.ge_u (local.get $i) (local.get $len_a)) (then (return (i32.const 1))) ) (if (i32.ne (array.get_u $coni_string (local.get $str_a) (local.get $i)) (array.get_u $coni_string (local.get $str_b) (local.get $i))) (then (return (i32.const 0))) ) (local.set $i (i32.add (local.get $i) (i32.const 1))) (br $kw_loop) ) ) ) ;; Vectors (TagVector=8) and Lists (TagList=7) (if (i32.or (i32.eq (local.get $tag_a) (i32.const 8)) (i32.eq (local.get $tag_a) (i32.const 7))) (then (local.set $vec_a (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $a)))) (local.set $vec_b (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $b)))) (local.set $len_a (array.len (local.get $vec_a))) (local.set $len_b (array.len (local.get $vec_b))) (if (i32.ne (local.get $len_a) (local.get $len_b)) (then (return (i32.const 0))) ) (local.set $i (i32.const 0)) (loop $vec_loop (if (i32.ge_u (local.get $i) (local.get $len_a)) (then (return (i32.const 1))) ) (if (i32.eqz (call $val_eq (array.get $coni_vector (local.get $vec_a) (local.get $i)) (array.get $coni_vector (local.get $vec_b) (local.get $i)))) (then (return (i32.const 0))) ) (local.set $i (i32.add (local.get $i) (i32.const 1))) (br $vec_loop) ) ) ) ;; Maps (TagMap=9) (if (i32.eq (local.get $tag_a) (i32.const 9)) (then (local.set $vec_a (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $a)))) (local.set $vec_b (ref.cast (ref null $coni_vector) (struct.get $coni_val $ref (local.get $b)))) (local.set $len_a (array.len (local.get $vec_a))) (local.set $len_b (array.len (local.get $vec_b))) (if (i32.ne (local.get $len_a) (local.get $len_b)) (then (return (i32.const 0))) ) (local.set $i (i32.const 0)) (loop $map_outer_loop (if (i32.ge_u (local.get $i) (local.get $len_a)) (then (return (i32.const 1))) ) (local.set $k_a (array.get $coni_vector (local.get $vec_a) (local.get $i))) (local.set $v_a (array.get $coni_vector (local.get $vec_a) (i32.add (local.get $i) (i32.const 1)))) (local.set $found_in_b (i32.const 0)) (local.set $j (i32.const 0)) (block $found_block (loop $map_inner_loop (if (i32.ge_u (local.get $j) (local.get $len_b)) (then (br $found_block)) ) (if (call $val_eq (local.get $k_a) (array.get $coni_vector (local.get $vec_b) (local.get $j))) (then (if (call $val_eq (local.get $v_a) (array.get $coni_vector (local.get $vec_b) (i32.add (local.get $j) (i32.const 1)))) (then (local.set $found_in_b (i32.const 1))) ) (br $found_block) ) ) (local.set $j (i32.add (local.get $j) (i32.const 2))) (br $map_inner_loop) ) ) (if (i32.eqz (local.get $found_in_b)) (then (return (i32.const 0))) ) (local.set $i (i32.add (local.get $i) (i32.const 2))) (br $map_outer_loop) ) ) ) ;; fallback to number eq (return (i64.eq (struct.get $coni_val $num (local.get $a)) (struct.get $coni_val $num (local.get $b)))) ) (func $unwrap_float (param $val (ref null $coni_val)) (result f64) (if (result f64) (i32.eq (struct.get $coni_val $tag (local.get $val)) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $val)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $val)))) ) ) (func $val_add (param $a (ref null $coni_val)) (param $b (ref null $coni_val)) (result (ref null $coni_val)) (local $tag_a i32) (local $tag_b i32) (local $f_a f64) (local $f_b f64) (local.set $tag_a (struct.get $coni_val $tag (local.get $a))) (local.set $tag_b (struct.get $coni_val $tag (local.get $b))) (if (i32.or (i32.eq (local.get $tag_a) (i32.const 3)) (i32.eq (local.get $tag_b) (i32.const 3))) (then (local.set $f_a (if (result f64) (i32.eq (local.get $tag_a) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $a)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $a)))))) (local.set $f_b (if (result f64) (i32.eq (local.get $tag_b) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $b)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $b)))))) (return (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.add (local.get $f_a) (local.get $f_b))) (ref.null any) (ref.null func))) ) ) (return (struct.new $coni_val (i32.const 2) (i64.add (struct.get $coni_val $num (local.get $a)) (struct.get $coni_val $num (local.get $b))) (ref.null any) (ref.null func))) ) (func $val_sub (param $a (ref null $coni_val)) (param $b (ref null $coni_val)) (result (ref null $coni_val)) (local $tag_a i32) (local $tag_b i32) (local $f_a f64) (local $f_b f64) (local.set $tag_a (struct.get $coni_val $tag (local.get $a))) (local.set $tag_b (struct.get $coni_val $tag (local.get $b))) (if (i32.or (i32.eq (local.get $tag_a) (i32.const 3)) (i32.eq (local.get $tag_b) (i32.const 3))) (then (local.set $f_a (if (result f64) (i32.eq (local.get $tag_a) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $a)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $a)))))) (local.set $f_b (if (result f64) (i32.eq (local.get $tag_b) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $b)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $b)))))) (return (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.sub (local.get $f_a) (local.get $f_b))) (ref.null any) (ref.null func))) ) ) (return (struct.new $coni_val (i32.const 2) (i64.sub (struct.get $coni_val $num (local.get $a)) (struct.get $coni_val $num (local.get $b))) (ref.null any) (ref.null func))) ) (func $val_mul (param $a (ref null $coni_val)) (param $b (ref null $coni_val)) (result (ref null $coni_val)) (local $tag_a i32) (local $tag_b i32) (local $f_a f64) (local $f_b f64) (local.set $tag_a (struct.get $coni_val $tag (local.get $a))) (local.set $tag_b (struct.get $coni_val $tag (local.get $b))) (if (i32.or (i32.eq (local.get $tag_a) (i32.const 3)) (i32.eq (local.get $tag_b) (i32.const 3))) (then (local.set $f_a (if (result f64) (i32.eq (local.get $tag_a) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $a)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $a)))))) (local.set $f_b (if (result f64) (i32.eq (local.get $tag_b) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $b)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $b)))))) (return (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.mul (local.get $f_a) (local.get $f_b))) (ref.null any) (ref.null func))) ) ) (return (struct.new $coni_val (i32.const 2) (i64.mul (struct.get $coni_val $num (local.get $a)) (struct.get $coni_val $num (local.get $b))) (ref.null any) (ref.null func))) ) (func $val_div (param $a (ref null $coni_val)) (param $b (ref null $coni_val)) (result (ref null $coni_val)) (local $tag_a i32) (local $tag_b i32) (local $f_a f64) (local $f_b f64) (local.set $tag_a (struct.get $coni_val $tag (local.get $a))) (local.set $tag_b (struct.get $coni_val $tag (local.get $b))) ;; Guard: if divisor is nil (tag 0) or zero, return nil to avoid traps (if (i32.eq (local.get $tag_b) (i32.const 0)) (then (return (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (if (i32.and (i32.eq (local.get $tag_b) (i32.const 2)) (i64.eqz (struct.get $coni_val $num (local.get $b)))) (then (return (struct.new $coni_val (i32.const 0) (i64.const 0) (ref.null any) (ref.null func)))) ) (local.set $f_a (if (result f64) (i32.eq (local.get $tag_a) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $a)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $a)))))) (local.set $f_b (if (result f64) (i32.eq (local.get $tag_b) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $b)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $b)))))) (return (struct.new $coni_val (i32.const 3) (i64.reinterpret_f64 (f64.div (local.get $f_a) (local.get $f_b))) (ref.null any) (ref.null func))) ) (func $val_lt (param $a (ref null $coni_val)) (param $b (ref null $coni_val)) (result (ref null $coni_val)) (local $tag_a i32) (local $tag_b i32) (local $f_a f64) (local $f_b f64) (local.set $tag_a (struct.get $coni_val $tag (local.get $a))) (local.set $tag_b (struct.get $coni_val $tag (local.get $b))) (if (i32.or (i32.eq (local.get $tag_a) (i32.const 3)) (i32.eq (local.get $tag_b) (i32.const 3))) (then (local.set $f_a (if (result f64) (i32.eq (local.get $tag_a) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $a)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $a)))))) (local.set $f_b (if (result f64) (i32.eq (local.get $tag_b) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $b)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $b)))))) (return (struct.new $coni_val (i32.const 1) (i64.extend_i32_s (f64.lt (local.get $f_a) (local.get $f_b))) (ref.null any) (ref.null func))) ) ) (return (struct.new $coni_val (i32.const 1) (i64.extend_i32_s (i64.lt_s (struct.get $coni_val $num (local.get $a)) (struct.get $coni_val $num (local.get $b)))) (ref.null any) (ref.null func))) ) (func $val_gt (param $a (ref null $coni_val)) (param $b (ref null $coni_val)) (result (ref null $coni_val)) (local $tag_a i32) (local $tag_b i32) (local $f_a f64) (local $f_b f64) (local.set $tag_a (struct.get $coni_val $tag (local.get $a))) (local.set $tag_b (struct.get $coni_val $tag (local.get $b))) (if (i32.or (i32.eq (local.get $tag_a) (i32.const 3)) (i32.eq (local.get $tag_b) (i32.const 3))) (then (local.set $f_a (if (result f64) (i32.eq (local.get $tag_a) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $a)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $a)))))) (local.set $f_b (if (result f64) (i32.eq (local.get $tag_b) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $b)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $b)))))) (return (struct.new $coni_val (i32.const 1) (i64.extend_i32_s (f64.gt (local.get $f_a) (local.get $f_b))) (ref.null any) (ref.null func))) ) ) (return (struct.new $coni_val (i32.const 1) (i64.extend_i32_s (i64.gt_s (struct.get $coni_val $num (local.get $a)) (struct.get $coni_val $num (local.get $b)))) (ref.null any) (ref.null func))) ) (func $val_le (param $a (ref null $coni_val)) (param $b (ref null $coni_val)) (result (ref null $coni_val)) (local $tag_a i32) (local $tag_b i32) (local $f_a f64) (local $f_b f64) (local.set $tag_a (struct.get $coni_val $tag (local.get $a))) (local.set $tag_b (struct.get $coni_val $tag (local.get $b))) (if (i32.or (i32.eq (local.get $tag_a) (i32.const 3)) (i32.eq (local.get $tag_b) (i32.const 3))) (then (local.set $f_a (if (result f64) (i32.eq (local.get $tag_a) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $a)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $a)))))) (local.set $f_b (if (result f64) (i32.eq (local.get $tag_b) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $b)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $b)))))) (return (struct.new $coni_val (i32.const 1) (i64.extend_i32_s (f64.le (local.get $f_a) (local.get $f_b))) (ref.null any) (ref.null func))) ) ) (return (struct.new $coni_val (i32.const 1) (i64.extend_i32_s (i64.le_s (struct.get $coni_val $num (local.get $a)) (struct.get $coni_val $num (local.get $b)))) (ref.null any) (ref.null func))) ) (func $val_ge (param $a (ref null $coni_val)) (param $b (ref null $coni_val)) (result (ref null $coni_val)) (local $tag_a i32) (local $tag_b i32) (local $f_a f64) (local $f_b f64) (local.set $tag_a (struct.get $coni_val $tag (local.get $a))) (local.set $tag_b (struct.get $coni_val $tag (local.get $b))) (if (i32.or (i32.eq (local.get $tag_a) (i32.const 3)) (i32.eq (local.get $tag_b) (i32.const 3))) (then (local.set $f_a (if (result f64) (i32.eq (local.get $tag_a) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $a)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $a)))))) (local.set $f_b (if (result f64) (i32.eq (local.get $tag_b) (i32.const 3)) (then (f64.reinterpret_i64 (struct.get $coni_val $num (local.get $b)))) (else (f64.convert_i64_s (struct.get $coni_val $num (local.get $b)))))) (return (struct.new $coni_val (i32.const 1) (i64.extend_i32_s (f64.ge (local.get $f_a) (local.get $f_b))) (ref.null any) (ref.null func))) ) ) (return (struct.new $coni_val (i32.const 1) (i64.extend_i32_s (i64.ge_s (struct.get $coni_val $num (local.get $a)) (struct.get $coni_val $num (local.get $b)))) (ref.null any) (ref.null func))) ) (func (export "invoke_func") (param $fn (ref null $coni_val)) (param $args (ref null $coni_vector)) (result (ref null $coni_val)) (global.set $current_env (struct.get $coni_val $ref (local.get $fn))) (call_ref $coni_fn (local.get $args) (ref.cast (ref null $coni_fn) (struct.get $coni_val $fn (local.get $fn)))) ) (func (export "val_tag") (param $val (ref null $coni_val)) (result i32) (struct.get $coni_val $tag (local.get $val)) ) (func (export "val_num") (param $val (ref null $coni_val)) (result i64) (struct.get $coni_val $num (local.get $val)) ) (func (export "val_ref") (param $val (ref null $coni_val)) (result (ref null any)) (struct.get $coni_val $ref (local.get $val)) ) ;; Table / Element Space for Call_ref (elem declare func $host_println $host_js_get $host_js_set $host_js_call $host_js_new $host_js_obj $host_js_global $host_js_on_event $host_core_get $host_core_type $host_core_count $host_core_assoc $host_core_conj $host_core_lib $host_core_notify_watchers $host_math_sin $host_math_cos $host_math_abs $host_math_floor $host_math_parseInt $host_math_sqrt $host_math_min $host_math_max $host_math_mod $host_math_random $fn_1 $fn_2 $fn_3 $fn_4 $fn_5 $fn_6 $fn_7 $fn_8 $fn_9 $fn_10 $fn_11 $fn_12 $fn_13 $fn_14 $fn_15 $fn_16 $fn_17 $fn_18 $fn_19 $fn_20 $fn_21 $fn_22 $fn_23 $fn_24 $fn_25 $fn_26 $fn_27 $fn_28 $fn_29 $fn_30 $fn_31 $fn_32 $fn_33 $fn_34 $fn_35 $fn_36 $fn_37 $fn_38 $fn_39 $fn_40 $fn_41 $fn_42 $fn_43 $fn_44 $fn_45 $fn_46 $fn_47 $fn_48 $fn_49 $fn_50 $fn_51 $fn_52 $fn_53) )