;;; Code for genericconstructor.GenericConstructor [type definition]
(type $genericconstructor.GenericConstructor.vtable (sub $java.lang.Object.vtable (struct
 (field $$getClassImpl__java_lang_Class (ref $function.$getClassImpl__java_lang_Class))
 (field $m_equals__java_lang_Object__boolean (ref $function.m_equals__java_lang_Object__boolean))
 (field $m_hashCode__int (ref $function.m_hashCode__int))
 (field $m_toString__java_lang_String (ref $function.m_toString__java_lang_String))
 (field $m_test__void (ref $function.m_test__void))
 ))
)
(type $genericconstructor.GenericConstructor (sub $java.lang.Object (struct
 (field $vtable (ref $genericconstructor.GenericConstructor.vtable))
 (field $itable (ref $itable))
 (field $$systemIdentityHashCode@java.lang.Object (mut i32))
 ))
)

;;; Code for genericconstructor.GenericConstructor [imports]

;;; Code for genericconstructor.GenericConstructor [static fields]
(global $$class-initialized@genericconstructor.GenericConstructor (mut i32)
 (i32.const 0)
)
(global $$class@genericconstructor.GenericConstructor (mut (ref null $java.lang.Class))
 (ref.null $java.lang.Class)
)

;;; Code for genericconstructor.GenericConstructor [vtable.init]
(global $genericconstructor.GenericConstructor.vtable (ref $genericconstructor.GenericConstructor.vtable)
 (struct.new $genericconstructor.GenericConstructor.vtable
  (ref.func $$getClassImpl__java_lang_Class@genericconstructor.GenericConstructor)
  (ref.func $m_equals__java_lang_Object__boolean@java.lang.Object)
  (ref.func $m_hashCode__int@java.lang.Object)
  (ref.func $m_toString__java_lang_String@java.lang.Object)
  (ref.func $m_test__void@genericconstructor.GenericConstructor)
 )
)

;;; Code for genericconstructor.GenericConstructor [methods]

;;; GenericConstructor<T> GenericConstructor.$create(S arg0, T arg1)
(func $$create__java_lang_Object__java_lang_Object@genericconstructor.GenericConstructor
 (param $arg0 (ref null $java.lang.Object))
 (param $arg1 (ref null $java.lang.Object))
 (result (ref null $genericconstructor.GenericConstructor))
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:20:13
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:20:13
  (call $$clinit__void_<once>_@genericconstructor.GenericConstructor )
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:20:13
  (return (call $$create_$private__java_lang_Object__java_lang_Object@genericconstructor.GenericConstructor (local.get $arg0)(local.get $arg1)))
 )
)

;;; GenericConstructor<T> GenericConstructor.$create_$private(S s, T t)
(func $$create_$private__java_lang_Object__java_lang_Object@genericconstructor.GenericConstructor
 (param $s (ref null $java.lang.Object))
 (param $t (ref null $java.lang.Object))
 (result (ref null $genericconstructor.GenericConstructor))
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:20:13
 (local $$instance (ref null $genericconstructor.GenericConstructor))
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:20:13
  (local.set $$instance (struct.new $genericconstructor.GenericConstructor (global.get $genericconstructor.GenericConstructor.vtable) (global.get $itable.empty) (i32.const 0)))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:20:13
  (call $$ctor__java_lang_Object__java_lang_Object__void_$p_genericconstructor_GenericConstructor@genericconstructor.GenericConstructor (ref.as_non_null (local.get $$instance))(local.get $s)(local.get $t))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:20:13
  (return (local.get $$instance))
 )
)

;;; void GenericConstructor.$ctor(S s, T t)
(func $$ctor__java_lang_Object__java_lang_Object__void_$p_genericconstructor_GenericConstructor@genericconstructor.GenericConstructor
 (param $this (ref null $genericconstructor.GenericConstructor))
 (param $s (ref null $java.lang.Object))
 (param $t (ref null $java.lang.Object))
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:20:13
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:20:42
  (call $$ctor__void_$p_java_lang_Object@java.lang.Object (ref.as_non_null (local.get $this)))
 )
)

;;; GenericConstructor<T> GenericConstructor.$create(T arg0)
(func $$create__java_lang_Object@genericconstructor.GenericConstructor
 (param $arg0 (ref null $java.lang.Object))
 (result (ref null $genericconstructor.GenericConstructor))
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:23:13
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:23:13
  (call $$clinit__void_<once>_@genericconstructor.GenericConstructor )
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:23:13
  (return (call $$create_$private__java_lang_Object@genericconstructor.GenericConstructor (local.get $arg0)))
 )
)

;;; GenericConstructor<T> GenericConstructor.$create_$private(T t)
(func $$create_$private__java_lang_Object@genericconstructor.GenericConstructor
 (param $t (ref null $java.lang.Object))
 (result (ref null $genericconstructor.GenericConstructor))
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:23:13
 (local $$instance (ref null $genericconstructor.GenericConstructor))
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:23:13
  (local.set $$instance (struct.new $genericconstructor.GenericConstructor (global.get $genericconstructor.GenericConstructor.vtable) (global.get $itable.empty) (i32.const 0)))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:23:13
  (call $$ctor__java_lang_Object__void_$p_genericconstructor_GenericConstructor@genericconstructor.GenericConstructor (ref.as_non_null (local.get $$instance))(local.get $t))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:23:13
  (return (local.get $$instance))
 )
)

;;; void GenericConstructor.$ctor(T t)
(func $$ctor__java_lang_Object__void_$p_genericconstructor_GenericConstructor@genericconstructor.GenericConstructor
 (param $this (ref null $genericconstructor.GenericConstructor))
 (param $t (ref null $java.lang.Object))
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:23:13
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:23:37
  (call $$ctor__void_$p_java_lang_Object@java.lang.Object (ref.as_non_null (local.get $this)))
 )
)

;;; void GenericConstructor.test()
(func $m_test__void@genericconstructor.GenericConstructor
 (type $function.m_test__void)
 (param $this.untyped (ref $java.lang.Object))
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:25:14
 (local $this (ref null $genericconstructor.GenericConstructor))
 (local.set $this (ref.cast (ref $genericconstructor.GenericConstructor) (local.get $this.untyped)))
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:26:4
  (drop (call $$create_$private__java_lang_Object__java_lang_Object@genericconstructor.GenericConstructor (call $$create__@java.lang.Exception )(call $$create__@java.lang.Error )))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:27:4
  (drop (call $$create_$private__java_lang_Object@genericconstructor.GenericConstructor (call $$create__@java.lang.Exception )))
 )
)
(elem declare func $m_test__void@genericconstructor.GenericConstructor)

;;; void GenericConstructor.$clinit()
(func $$clinit__void_<once>_@genericconstructor.GenericConstructor
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:18:13
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:18:13
  (if (global.get $$class-initialized@genericconstructor.GenericConstructor)
   (then
    ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:18:13
    (return )
   )
  )
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:18:13
  (global.set $$class-initialized@genericconstructor.GenericConstructor (i32.const 1))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/genericconstructor/readable-j2wasm.js/genericconstructor/GenericConstructor.java:18:13
  (call $$clinit__void_<once>_@java.lang.Object )
 )
)

;;; Class<T> GenericConstructor.$getClassMetadata()
(func $$getClassMetadata__java_lang_Class_<once>_@genericconstructor.GenericConstructor
 (result (ref null $java.lang.Class))
 (block
  (if (i32.eqz (ref.is_null (global.get $$class@genericconstructor.GenericConstructor)))
   (then
    (return (global.get $$class@genericconstructor.GenericConstructor))
   )
  )
  (global.set $$class@genericconstructor.GenericConstructor (call $m_createForClass__java_lang_String__java_lang_Class__java_lang_Class@java.lang.Class (call $$getString_|genericconst...|__java_lang_String_<once>_@genericconstructor.GenericConstructor )(call $$getClassMetadata__java_lang_Class_<once>_@java.lang.Object )))
  (return (global.get $$class@genericconstructor.GenericConstructor))
 )
)

;;; Class<?> GenericConstructor.$getClassImpl()
(func $$getClassImpl__java_lang_Class@genericconstructor.GenericConstructor
 (type $function.$getClassImpl__java_lang_Class)
 (param $this.untyped (ref $java.lang.Object))
 (result (ref null $java.lang.Class))
 (local $this (ref null $genericconstructor.GenericConstructor))
 (local.set $this (ref.cast (ref $genericconstructor.GenericConstructor) (local.get $this.untyped)))
 (block
  (return (call $$getClassMetadata__java_lang_Class_<once>_@genericconstructor.GenericConstructor ))
 )
)
(elem declare func $$getClassImpl__java_lang_Class@genericconstructor.GenericConstructor)
