;;; Code for synchronizedmethod.SynchronizedMethod [type definition]
(type $synchronizedmethod.SynchronizedMethod.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_testIfStatementWithNonVoidBodyWithoutElse__boolean__boolean__void (ref $function.m_testIfStatementWithNonVoidBodyWithoutElse__boolean__boolean__void))
 (field $m_testNonStatic__void (ref $function.m_testNonStatic__void))
 (field $m_testReturn__boolean__int (ref $function.m_testReturn__boolean__int))
 ))
)
(type $synchronizedmethod.SynchronizedMethod (sub $java.lang.Object (struct
 (field $vtable (ref $synchronizedmethod.SynchronizedMethod.vtable))
 (field $itable (ref $itable))
 (field $$systemIdentityHashCode@java.lang.Object (mut i32))
 (field $a@synchronizedmethod.SynchronizedMethod (mut i32))
 (field $b@synchronizedmethod.SynchronizedMethod (mut i32))
 ))
)

;;; Code for synchronizedmethod.SynchronizedMethod [imports]

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

;;; Code for synchronizedmethod.SynchronizedMethod [vtable.init]
(global $synchronizedmethod.SynchronizedMethod.vtable (ref $synchronizedmethod.SynchronizedMethod.vtable)
 (struct.new $synchronizedmethod.SynchronizedMethod.vtable
  (ref.func $$getClassImpl__java_lang_Class@synchronizedmethod.SynchronizedMethod)
  (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_testIfStatementWithNonVoidBodyWithoutElse__boolean__boolean__void@synchronizedmethod.SynchronizedMethod)
  (ref.func $m_testNonStatic__void@synchronizedmethod.SynchronizedMethod)
  (ref.func $m_testReturn__boolean__int@synchronizedmethod.SynchronizedMethod)
 )
)

;;; Code for synchronizedmethod.SynchronizedMethod [methods]

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

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

;;; void SynchronizedMethod.testNonStatic()
(func $m_testNonStatic__void@synchronizedmethod.SynchronizedMethod
 (type $function.m_testNonStatic__void)
 (param $this.untyped (ref $java.lang.Object))
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:25:27
 (local $this (ref null $synchronizedmethod.SynchronizedMethod))
 (local.set $this (ref.cast (ref $synchronizedmethod.SynchronizedMethod) (local.get $this.untyped)))
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:26:4
  (struct.set $synchronizedmethod.SynchronizedMethod $a@synchronizedmethod.SynchronizedMethod (local.get $this) (i32.add (struct.get $synchronizedmethod.SynchronizedMethod $a@synchronizedmethod.SynchronizedMethod (local.get $this)) (i32.const 1)))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:27:4
  (struct.set $synchronizedmethod.SynchronizedMethod $b@synchronizedmethod.SynchronizedMethod (local.get $this) (i32.sub (struct.get $synchronizedmethod.SynchronizedMethod $b@synchronizedmethod.SynchronizedMethod (local.get $this)) (i32.const 1)))
 )
)
(elem declare func $m_testNonStatic__void@synchronizedmethod.SynchronizedMethod)

;;; void SynchronizedMethod.testStatic()
(func $m_testStatic__void@synchronizedmethod.SynchronizedMethod
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:30:34
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:30:47
  (call $$clinit__void_<once>_@synchronizedmethod.SynchronizedMethod )
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:31:4
  (global.set $sa@synchronizedmethod.SynchronizedMethod (i32.add (global.get $sa@synchronizedmethod.SynchronizedMethod) (i32.const 1)))
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:32:4
  (global.set $sb@synchronizedmethod.SynchronizedMethod (i32.sub (global.get $sb@synchronizedmethod.SynchronizedMethod) (i32.const 1)))
 )
)

;;; int SynchronizedMethod.testReturn(boolean bool)
(func $m_testReturn__boolean__int@synchronizedmethod.SynchronizedMethod
 (type $function.m_testReturn__boolean__int)
 (param $this.untyped (ref $java.lang.Object))
 (param $bool i32)
 (result i32)
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:35:26
 (local $$value i32)
 (local $$value_1 i32)
 (local $this (ref null $synchronizedmethod.SynchronizedMethod))
 (local.set $this (ref.cast (ref $synchronizedmethod.SynchronizedMethod) (local.get $this.untyped)))
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:36:4
  (if (local.get $bool)
   (then
    (block
     ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:37:6
     (return (block (result i32)
      (local.set $$value (struct.get $synchronizedmethod.SynchronizedMethod $a@synchronizedmethod.SynchronizedMethod (local.get $this)))
      (struct.set $synchronizedmethod.SynchronizedMethod $a@synchronizedmethod.SynchronizedMethod (local.get $this) (i32.add (struct.get $synchronizedmethod.SynchronizedMethod $a@synchronizedmethod.SynchronizedMethod (local.get $this)) (i32.const 1)))
      (local.get $$value)
     ))
    )
   )
  )
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:39:4
  (return (block (result i32)
   (local.set $$value_1 (struct.get $synchronizedmethod.SynchronizedMethod $b@synchronizedmethod.SynchronizedMethod (local.get $this)))
   (struct.set $synchronizedmethod.SynchronizedMethod $b@synchronizedmethod.SynchronizedMethod (local.get $this) (i32.sub (struct.get $synchronizedmethod.SynchronizedMethod $b@synchronizedmethod.SynchronizedMethod (local.get $this)) (i32.const 1)))
   (local.get $$value_1)
  ))
 )
)
(elem declare func $m_testReturn__boolean__int@synchronizedmethod.SynchronizedMethod)

;;; void SynchronizedMethod.testIfStatementWithNonVoidBodyWithoutElse(boolean b1, boolean b2)
(func $m_testIfStatementWithNonVoidBodyWithoutElse__boolean__boolean__void@synchronizedmethod.SynchronizedMethod
 (type $function.m_testIfStatementWithNonVoidBodyWithoutElse__boolean__boolean__void)
 (param $this.untyped (ref $java.lang.Object))
 (param $b1 i32)
 (param $b2 i32)
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:42:27
 (local $this (ref null $synchronizedmethod.SynchronizedMethod))
 (local.set $this (ref.cast (ref $synchronizedmethod.SynchronizedMethod) (local.get $this.untyped)))
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:43:4
  (if (local.get $b1)
   (then
    (block
     ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:44:6
     (drop (call $m_apply__java_lang_String__java_lang_String_$p_synchronizedmethod_SynchronizedMethod@synchronizedmethod.SynchronizedMethod (ref.as_non_null (local.get $this))(call $$getString_|foo|__java_lang_String_<once>_@synchronizedmethod.SynchronizedMethod )))
    )
   )(else
    ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:45:11
    (if (local.get $b2)
     (then
      (block
       ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:46:6
       (drop (call $m_apply__java_lang_String__java_lang_String_$p_synchronizedmethod_SynchronizedMethod@synchronizedmethod.SynchronizedMethod (ref.as_non_null (local.get $this))(call $$getString_|bar|__java_lang_String_<once>_@synchronizedmethod.SynchronizedMethod )))
      )
     )
    )
   )
  )
 )
)
(elem declare func $m_testIfStatementWithNonVoidBodyWithoutElse__boolean__boolean__void@synchronizedmethod.SynchronizedMethod)

;;; String SynchronizedMethod.apply(String string)
(func $m_apply__java_lang_String__java_lang_String_$p_synchronizedmethod_SynchronizedMethod@synchronizedmethod.SynchronizedMethod
 (param $this (ref null $synchronizedmethod.SynchronizedMethod))
 (param $string (ref null $java.lang.String))
 (result (ref null $java.lang.String))
 ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:50:17
 (block
  ;;@ transpiler/javatests/com/google/j2cl/readable/java/synchronizedmethod/readable-j2wasm.js/synchronizedmethod/SynchronizedMethod.java:51:4
  (return (local.get $string))
 )
)

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

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

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