(module (import "func" "internalize" (func $func.internalize (param i32 i32))) (import "test" "check" (func $check (param i32 i32))) (import "module" "self" (func $self (result i32))) (import "module" "export" (func $exports (param i32 i32) (result i32))) (import "memory" "externalize" (func $mem.externalize (param i32 i32) (result i32))) (memory (export "memory") 1) (data (i32.const 0) "callback") (table (export "table") 1 1 anyfunc) (func $main (call $func.internalize (i32.const 0) (call $exports (call $self) (call $mem.externalize (i32.const 0) (i32.const 8)) ) ) (call_indirect (param i64) (i64.const 8) (i32.const 0)) ) (func $callback (param i64) (i32.const 8) (i32.wrap/i64 (get_local 0)) call $check ) (export "main" (func $main)) (export "callback" (func $callback)))