@file:kotlin.Suppress("DEPRECATION_ERROR")
@file:kotlin.native.internal.objc.BindClassToObjCName(org.kotlin.foo.Clazz::class, "22ExportedKotlinPackages3orgO6kotlinO3fooO4mainE5ClazzC")

import kotlin.native.internal.ExportedBridge
import kotlinx.cinterop.*
import kotlinx.cinterop.internal.convertBlockPtrToKotlinFunction
import org.kotlin.foo.x as org_kotlin_foo_x
import org.kotlin.foo.y as org_kotlin_foo_y

@ExportedBridge("org_kotlin_foo_Clazz_init_allocate")
public fun org_kotlin_foo_Clazz_init_allocate(): kotlin.native.internal.NativePtr {
    val _result = kotlin.native.internal.createUninitializedInstance<org.kotlin.foo.Clazz>()
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("org_kotlin_foo_Clazz_init_initialize__TypesOfArguments__Swift_UnsafeMutableRawPointer__")
public fun org_kotlin_foo_Clazz_init_initialize__TypesOfArguments__Swift_UnsafeMutableRawPointer__(__kt: kotlin.native.internal.NativePtr): Unit {
    val ____kt = kotlin.native.internal.ref.dereferenceExternalRCRef(__kt)!!
    kotlin.native.internal.initInstance(____kt, org.kotlin.foo.Clazz())
}

@ExportedBridge("org_kotlin_foo_constant_get")
public fun org_kotlin_foo_constant_get(): Int {
    val _result = org.kotlin.foo.constant
    return _result
}

@ExportedBridge("org_kotlin_foo_function__TypesOfArguments__Swift_Int32__")
public fun org_kotlin_foo_function__TypesOfArguments__Swift_Int32__(arg: Int): Int {
    val __arg = arg
    val _result = org.kotlin.foo.function(__arg)
    return _result
}

@ExportedBridge("org_kotlin_foo_variable_get")
public fun org_kotlin_foo_variable_get(): Int {
    val _result = org.kotlin.foo.variable
    return _result
}

@ExportedBridge("org_kotlin_foo_variable_set__TypesOfArguments__Swift_Int32__")
public fun org_kotlin_foo_variable_set__TypesOfArguments__Swift_Int32__(newValue: Int): Unit {
    val __newValue = newValue
    org.kotlin.foo.variable = __newValue
}

@ExportedBridge("org_kotlin_foo_x_get__TypesOfArguments__Swift_Int32__")
public fun org_kotlin_foo_x_get__TypesOfArguments__Swift_Int32__(`receiver`: Int): kotlin.native.internal.NativePtr {
    val __receiver = `receiver`
    val _result = __receiver.org_kotlin_foo_x
    return _result.objcPtr()
}

@ExportedBridge("org_kotlin_foo_y__TypesOfArguments__Swift_String__")
public fun org_kotlin_foo_y__TypesOfArguments__Swift_String__(`receiver`: kotlin.native.internal.NativePtr): Int {
    val __receiver = interpretObjCPointer<kotlin.String>(`receiver`)
    val _result = __receiver.org_kotlin_foo_y()
    return _result
}
