;;; Code for systemgetproperty.Main [type definition]
(type $systemgetproperty.Main.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))
 ))
)
(type $systemgetproperty.Main (sub $java.lang.Object (struct
 (field $vtable (ref $systemgetproperty.Main.vtable))
 (field $itable (ref $itable))
 (field $$systemIdentityHashCode@java.lang.Object (mut i32))
 ))
)

;;; Code for systemgetproperty.Main [imports]

;;; Code for systemgetproperty.Main [static fields]
(global $property@systemgetproperty.Main (mut (ref null $java.lang.String))
 (ref.null $java.lang.String)
)
(global $propertyWithDefault@systemgetproperty.Main (mut (ref null $java.lang.String))
 (ref.null $java.lang.String)
)
(global $$class-initialized@systemgetproperty.Main (mut i32)
 (i32.const 0)
)
(global $$class@systemgetproperty.Main (mut (ref null $java.lang.Class))
 (ref.null $java.lang.Class)
)

;;; Code for systemgetproperty.Main [vtable.init]
(global $systemgetproperty.Main.vtable (ref $systemgetproperty.Main.vtable)
 (struct.new $systemgetproperty.Main.vtable
  (ref.func $$getClassImpl__java_lang_Class@systemgetproperty.Main)
  (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)
 )
)

;;; Code for systemgetproperty.Main [methods]

;;; Main Main.$create()
(func $$create__@systemgetproperty.Main
 (result (ref null $systemgetproperty.Main))
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:18:13
 (local $$instance (ref null $systemgetproperty.Main))
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:18:13
  (call $$clinit__void_<once>_@systemgetproperty.Main )
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:18:13
  (local.set $$instance (struct.new $systemgetproperty.Main (global.get $systemgetproperty.Main.vtable) (global.get $itable.empty) (i32.const 0)))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:18:13
  (call $$ctor__void_$p_systemgetproperty_Main@systemgetproperty.Main (ref.as_non_null (local.get $$instance)))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:18:13
  (return (local.get $$instance))
 )
)

;;; void Main.$ctor()
(func $$ctor__void_$p_systemgetproperty_Main@systemgetproperty.Main
 (param $this (ref null $systemgetproperty.Main))
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:18:13
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:18:13
  (call $$ctor__void_$p_java_lang_Object@java.lang.Object (ref.as_non_null (local.get $this)))
 )
)

;;; void Main.main(String[] args)
(func $m_main__arrayOf_java_lang_String__void@systemgetproperty.Main
 (param $args (ref null $javaemul.internal.WasmArray.OfObject))
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:24:21
 (local $x i32)
 (local $$propertyValue (ref null $java.lang.String))
 (local $$defaultValue (ref null $java.lang.String))
 (local $$propertyValue_1 (ref null $java.lang.String))
 (local $$defaultValue_1 (ref null $java.lang.String))
 (local $$propertyValue_2 (ref null $java.lang.String))
 (local $$defaultValue_2 (ref null $java.lang.String))
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:24:41
  (call $$clinit__void_<once>_@systemgetproperty.Main )
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:25:4
  
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:26:4
  (local.set $x (ref.eq (global.get $property@systemgetproperty.Main) (call $$getString_|SIMPLE|__java_lang_String_<once>_@systemgetproperty.Main )))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:27:4
  (local.set $x (call $m_equals__java_lang_Object__boolean@java.lang.String (ref.as_non_null (global.get $property@systemgetproperty.Main))(call $$getString_|SIMPLE|__java_lang_String_<once>_@systemgetproperty.Main )))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:28:4
  (local.set $x (call $m_equalsIgnoreCase__java_lang_String__boolean@java.lang.String (ref.as_non_null (global.get $property@systemgetproperty.Main))(call $$getString_|SIMPLE|__java_lang_String_<once>_@systemgetproperty.Main )))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:29:4
  (local.set $x (ref.eq (global.get $property@systemgetproperty.Main) (call $$getString_|NOTSIMPLE|__java_lang_String_<once>_@systemgetproperty.Main )))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:31:4
  (local.set $x (call $m_equals__java_lang_Object__boolean@java.lang.String (ref.as_non_null (global.get $propertyWithDefault@systemgetproperty.Main))(call $$getString_|SIMPLE|__java_lang_String_<once>_@systemgetproperty.Main )))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:32:4
  (local.set $x (call $m_equals__java_lang_Object__boolean@java.lang.String (ref.as_non_null (block (result (ref null $java.lang.String))
   (local.set $$propertyValue (call $$jre.bar__java_lang_String_<once>_@javaemul.internal.SystemPropertyPool ))
   (local.set $$defaultValue (call $$getString_|bar|__java_lang_String_<once>_@systemgetproperty.Main ))
   (if (result (ref null $java.lang.String)) (ref.is_null (local.get $$propertyValue)) (then (local.get $$defaultValue)) (else (local.get $$propertyValue)))
  ))(call $$getString_|bar|__java_lang_String_<once>_@systemgetproperty.Main )))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:33:4
  (local.set $x (call $m_equals__java_lang_Object__boolean@java.lang.String (ref.as_non_null (block (result (ref null $java.lang.String))
   (local.set $$propertyValue_1 (call $$jre.classMetadata__java_lang_String_<once>_@javaemul.internal.SystemPropertyPool ))
   (local.set $$defaultValue_1 (call $m_mightHaveSideEffects__java_lang_String@systemgetproperty.Main ))
   (if (result (ref null $java.lang.String)) (ref.is_null (local.get $$propertyValue_1)) (then (local.get $$defaultValue_1)) (else (local.get $$propertyValue_1)))
  ))(call $$getString_|SIMPLE|__java_lang_String_<once>_@systemgetproperty.Main )))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:34:4
  (local.set $x (call $m_equals__java_lang_Object__boolean@java.lang.String (ref.as_non_null (block (result (ref null $java.lang.String))
   (local.set $$propertyValue_2 (call $$unset.property__java_lang_String_<once>_@javaemul.internal.SystemPropertyPool ))
   (local.set $$defaultValue_2 (call $m_mightHaveSideEffects__java_lang_String@systemgetproperty.Main ))
   (if (result (ref null $java.lang.String)) (ref.is_null (local.get $$propertyValue_2)) (then (local.get $$defaultValue_2)) (else (local.get $$propertyValue_2)))
  ))(call $$getString_|foo|__java_lang_String_<once>_@systemgetproperty.Main )))
 )
)

;;; String Main.mightHaveSideEffects()
(func $m_mightHaveSideEffects__java_lang_String@systemgetproperty.Main
 (result (ref null $java.lang.String))
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:37:24
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:38:4
  (return (call $$getString_|Foo|__java_lang_String_<once>_@systemgetproperty.Main ))
 )
)

;;; void Main.$clinit()
(func $$clinit__void_<once>_@systemgetproperty.Main
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:18:13
 (local $$propertyValue (ref null $java.lang.String))
 (local $$defaultValue (ref null $java.lang.String))
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:18:13
  (if (global.get $$class-initialized@systemgetproperty.Main)
   (then
    ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:18:13
    (return )
   )
  )
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:18:13
  (global.set $$class-initialized@systemgetproperty.Main (i32.const 1))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:18:13
  (call $$clinit__void_<once>_@java.lang.Object )
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:20:2
  (global.set $property@systemgetproperty.Main (call $$jre.classMetadata__java_lang_String_<once>_@javaemul.internal.SystemPropertyPool ))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/systemgetproperty/readable-j2wasm.js/systemgetproperty/Main.java:21:2
  (global.set $propertyWithDefault@systemgetproperty.Main (block (result (ref null $java.lang.String))
   (local.set $$propertyValue (call $$jre.classMetadata__java_lang_String_<once>_@javaemul.internal.SystemPropertyPool ))
   (local.set $$defaultValue (call $$getString_|default|__java_lang_String_<once>_@systemgetproperty.Main ))
   (if (result (ref null $java.lang.String)) (ref.is_null (local.get $$propertyValue)) (then (local.get $$defaultValue)) (else (local.get $$propertyValue)))
  ))
 )
)

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

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