//
// Source
// ------------------------------------------

import androidx.compose.runtime.*

@Composable
fun <T> Ref(content: @Composable () -> T) {
    Ref<T>(::Fn)
    Ref(::IntFn)
}

//
// Transformed IR
// ------------------------------------------

@Composable
@FunctionKeyMeta(key = -176876488, startOffset = 84, endOffset = 199)
fun <T> Ref(content: Function2<Composer, Int, T>, %composer: Composer?, %changed: Int) {
  %composer = %composer.startRestartGroup(<>)
  sourceInformation(%composer, "C(Ref)N(content)<::Fn>,<Ref<T>...>,<::IntF...>,<Ref(::...>:Test.kt")
  if (%composer.shouldExecute(%changed and 0b0001 != 0, %changed and 0b0001)) {
    if (isTraceInProgress()) {
      traceEventStart(<>, %changed, -1, <>)
    }
    Ref(<block>{
      sourceInformationMarkerStart(%composer, <>, "CC(remember):Test.kt#9igjgp")
      val tmp0_group = %composer.cache(false) {
        @Composable
        fun <T> Fn(%composer: Composer?, %changed: Int): T {
          %composer.startReplaceGroup(<>)
          sourceInformation(%composer, "C(Fn):Test.kt")
          val tmp0 = Fn(null, %composer, 0, 0b0001)
          %composer.endReplaceGroup()
          return tmp0
        }
        ::Fn
      }
      sourceInformationMarkerEnd(%composer)
      tmp0_group
    }, %composer, 0b0110)
    Ref(<block>{
      sourceInformationMarkerStart(%composer, <>, "CC(remember):Test.kt#9igjgp")
      val tmp1_group = %composer.cache(false) {
        @Composable
        fun IntFn(%composer: Composer?, %changed: Int): Int {
          %composer.startReplaceGroup(<>)
          sourceInformation(%composer, "C(IntFn):Test.kt")
          val tmp0 = IntFn(0, %composer, 0, 0b0001)
          %composer.endReplaceGroup()
          return tmp0
        }
        ::IntFn
      }
      sourceInformationMarkerEnd(%composer)
      tmp1_group
    }, %composer, 0b0110)
    if (isTraceInProgress()) {
      traceEventEnd()
    }
  } else {
    %composer.skipToGroupEnd()
  }
  %composer.endRestartGroup()?.updateScope { %composer: Composer?, %force: Int ->
    Ref(content, %composer, updateChangedFlags(%changed or 0b0001))
  }
}
