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

import androidx.compose.runtime.*


private interface DefaultParamInterface {
    @Composable fun Content(
        content: @Composable () -> Unit = @Composable { ComposedContent { Text("default") } }
    )
    @Composable fun ComposedContent(
        content: @Composable () -> Unit = @Composable { Text("default") }
    )
}

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

private interface DefaultParamInterface {
  @Composable
  @FunctionKeyMeta(key = 1531877915, startOffset = 94, endOffset = 206)
  abstract fun Content(content: Function2<Composer, Int, Unit>, %composer: Composer?, %changed: Int)
  @Composable
  @FunctionKeyMeta(key = -57199539, startOffset = 223, endOffset = 323)
  abstract fun ComposedContent(content: Function2<Composer, Int, Unit>, %composer: Composer?, %changed: Int)
  class ComposeDefaultImpls {
    @Composable
    @ComposableInferredTarget(scheme = "[0[0]]")
    fun ComposedContent%default(content: Function2<Composer, Int, Unit>?, %this%: DefaultParamInterface, %composer: Composer?, %changed: Int, %default: Int) {
      %composer = %composer.startRestartGroup(<>)
      sourceInformation(%composer, "C(ComposedContent%default)N(content):Test.kt")
      val %dirty = %changed
      if (%default and 0b0001 != 0) {
        %dirty = %dirty or 0b0110
      } else if (%changed and 0b0110 == 0) {
        %dirty = %dirty or if (%composer.changedInstance(content)) 0b0100 else 0b0010
      }
      if (%changed and 0b00110000 == 0) {
        %dirty = %dirty or if (if (%changed and 0b01000000 == 0) {
          %composer.changed(%this%)
        } else {
          %composer.changedInstance(%this%)
        }
        ) 0b00100000 else 0b00010000
      }
      if (%composer.shouldExecute(%dirty and 0b00010011 != 0b00010010, %dirty and 0b0001)) {
        if (%default and 0b0001 != 0) {
          content = ComposableSingletons%TestKt.lambda%-1800837504
        }
        if (isTraceInProgress()) {
          traceEventStart(<>, %dirty, -1, <>)
        }
        %this%.ComposedContent(content as Function2<Composer, Int, Unit>, %composer, 0b1110 and %dirty or 0b01110000 and %dirty)
        if (isTraceInProgress()) {
          traceEventEnd()
        }
      } else {
        %composer.skipToGroupEnd()
      }
      %composer.endRestartGroup()?.updateScope { %composer: Composer?, %force: Int ->
        ComposedContent%default(content, %this%, %composer, updateChangedFlags(%changed or 0b0001), %default)
      }
    }
    @Composable
    @ComposableInferredTarget(scheme = "[0[0]]")
    fun Content%default(content: Function2<Composer, Int, Unit>?, %this%: DefaultParamInterface, %composer: Composer?, %changed: Int, %default: Int) {
      %composer = %composer.startRestartGroup(<>)
      sourceInformation(%composer, "C(Content%default)N(content)<{>:Test.kt")
      val %dirty = %changed
      if (%default and 0b0001 != 0) {
        %dirty = %dirty or 0b0110
      } else if (%changed and 0b0110 == 0) {
        %dirty = %dirty or if (%composer.changedInstance(content)) 0b0100 else 0b0010
      }
      if (%changed and 0b00110000 == 0) {
        %dirty = %dirty or if (if (%changed and 0b01000000 == 0) {
          %composer.changed(%this%)
        } else {
          %composer.changedInstance(%this%)
        }
        ) 0b00100000 else 0b00010000
      }
      if (%composer.shouldExecute(%dirty and 0b00010011 != 0b00010010, %dirty and 0b0001)) {
        if (%default and 0b0001 != 0) {
          content = rememberComposableLambda(<>, true, { %composer: Composer?, %changed: Int ->
            sourceInformation(%composer, "C<Compos...>:Test.kt")
            if (%composer.shouldExecute(%changed and 0b0011 != 0b0010, %changed and 0b0001)) {
              if (isTraceInProgress()) {
                traceEventStart(<>, %changed, -1, <>)
              }
              ComposedContent%default(ComposableSingletons%TestKt.lambda%-1311305486, %this%, %composer, 0b0110, 0)
              if (isTraceInProgress()) {
                traceEventEnd()
              }
            } else {
              %composer.skipToGroupEnd()
            }
          }, %composer, 0b00110110)
        }
        if (isTraceInProgress()) {
          traceEventStart(<>, %dirty, -1, <>)
        }
        %this%.Content(content as Function2<Composer, Int, Unit>, %composer, 0b1110 and %dirty or 0b01110000 and %dirty)
        if (isTraceInProgress()) {
          traceEventEnd()
        }
      } else {
        %composer.skipToGroupEnd()
      }
      %composer.endRestartGroup()?.updateScope { %composer: Composer?, %force: Int ->
        Content%default(content, %this%, %composer, updateChangedFlags(%changed or 0b0001), %default)
      }
    }
  }
}
internal object ComposableSingletons%TestKt {
  val lambda%-1800837504: Function2<Composer, Int, Unit> = composableLambdaInstance(<>, false) { %composer: Composer?, %changed: Int ->
    sourceInformation(%composer, "C<Text("...>:Test.kt")
    if (%composer.shouldExecute(%changed and 0b0011 != 0b0010, %changed and 0b0001)) {
      if (isTraceInProgress()) {
        traceEventStart(<>, %changed, -1, <>)
      }
      Text("default", %composer, 0b0110)
      if (isTraceInProgress()) {
        traceEventEnd()
      }
    } else {
      %composer.skipToGroupEnd()
    }
  }
  val lambda%-1311305486: Function2<Composer, Int, Unit> = composableLambdaInstance(<>, false) { %composer: Composer?, %changed: Int ->
    sourceInformation(%composer, "C<Text("...>:Test.kt")
    if (%composer.shouldExecute(%changed and 0b0011 != 0b0010, %changed and 0b0001)) {
      if (isTraceInProgress()) {
        traceEventStart(<>, %changed, -1, <>)
      }
      Text("default", %composer, 0b0110)
      if (isTraceInProgress()) {
        traceEventEnd()
      }
    } else {
      %composer.skipToGroupEnd()
    }
  }
}
