@file:kotlin.Suppress("DEPRECATION_ERROR")
@file:kotlin.native.internal.objc.BindClassToObjCName(operators.Foo::class, "22ExportedKotlinPackages9operatorsO4mainE3FooC")
@file:kotlin.native.internal.objc.BindClassToObjCName(operators.Foo.EmptyIterator::class, "22ExportedKotlinPackages9operatorsO4mainE3FooC13EmptyIteratorC")
@file:kotlin.native.internal.objc.BindClassToObjCName(overload.Foo::class, "22ExportedKotlinPackages8overloadO4mainE3FooC")
@file:kotlin.native.internal.objc.BindClassToObjCName(Foo::class, "4main3FooC")

import kotlin.native.internal.ExportedBridge
import kotlinx.cinterop.*
import kotlinx.cinterop.internal.convertBlockPtrToKotlinFunction
import operators.invoke as operators_invoke

@ExportedBridge("Foo_ext__TypesOfArguments__Swift_String__")
public fun Foo_ext__TypesOfArguments__Swift_String__(self: kotlin.native.internal.NativePtr, `receiver`: kotlin.native.internal.NativePtr): Unit {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as Foo
    val __receiver = interpretObjCPointer<kotlin.String>(`receiver`)
    __self.run { __receiver.ext() }
}

@ExportedBridge("Foo_extVal_get__TypesOfArguments__Swift_String__")
public fun Foo_extVal_get__TypesOfArguments__Swift_String__(self: kotlin.native.internal.NativePtr, `receiver`: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as Foo
    val __receiver = interpretObjCPointer<kotlin.String>(`receiver`)
    val _result = __self.run { __receiver.extVal }
    return _result.objcPtr()
}

@ExportedBridge("Foo_extVar_get__TypesOfArguments__Swift_String__")
public fun Foo_extVar_get__TypesOfArguments__Swift_String__(self: kotlin.native.internal.NativePtr, `receiver`: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as Foo
    val __receiver = interpretObjCPointer<kotlin.String>(`receiver`)
    val _result = __self.run { __receiver.extVar }
    return _result.objcPtr()
}

@ExportedBridge("Foo_extVar_set__TypesOfArguments__Swift_String_Swift_String__")
public fun Foo_extVar_set__TypesOfArguments__Swift_String_Swift_String__(self: kotlin.native.internal.NativePtr, `receiver`: kotlin.native.internal.NativePtr, v: kotlin.native.internal.NativePtr): Unit {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as Foo
    val __receiver = interpretObjCPointer<kotlin.String>(`receiver`)
    val __v = interpretObjCPointer<kotlin.String>(v)
    __self.run { __receiver.extVar = __v }
}

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

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

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

@ExportedBridge("__root___bar_get__TypesOfArguments__Swift_Optional_Swift_Int32___")
public fun __root___bar_get__TypesOfArguments__Swift_Optional_Swift_Int32___(`receiver`: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __receiver = if (`receiver` == kotlin.native.internal.NativePtr.NULL) null else interpretObjCPointer<Int>(`receiver`)
    val _result = __receiver.bar
    return _result.objcPtr()
}

@ExportedBridge("__root___bar_get__TypesOfArguments__main_Foo__")
public fun __root___bar_get__TypesOfArguments__main_Foo__(`receiver`: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __receiver = kotlin.native.internal.ref.dereferenceExternalRCRef(`receiver`) as Foo
    val _result = __receiver.bar
    return _result.objcPtr()
}

@ExportedBridge("__root___bar_get__TypesOfArguments__Swift_Optional_main_Foo___")
public fun __root___bar_get__TypesOfArguments__Swift_Optional_main_Foo___(`receiver`: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __receiver = if (`receiver` == kotlin.native.internal.NativePtr.NULL) null else kotlin.native.internal.ref.dereferenceExternalRCRef(`receiver`) as Foo
    val _result = __receiver.bar
    return _result.objcPtr()
}

@ExportedBridge("__root___foo__TypesOfArguments__Swift_Int32__")
public fun __root___foo__TypesOfArguments__Swift_Int32__(`receiver`: Int): Unit {
    val __receiver = `receiver`
    __receiver.foo()
}

@ExportedBridge("__root___foo__TypesOfArguments__Swift_Optional_Swift_Int32___")
public fun __root___foo__TypesOfArguments__Swift_Optional_Swift_Int32___(`receiver`: kotlin.native.internal.NativePtr): Unit {
    val __receiver = if (`receiver` == kotlin.native.internal.NativePtr.NULL) null else interpretObjCPointer<Int>(`receiver`)
    __receiver.foo()
}

@ExportedBridge("__root___foo__TypesOfArguments__main_Foo__")
public fun __root___foo__TypesOfArguments__main_Foo__(`receiver`: kotlin.native.internal.NativePtr): Unit {
    val __receiver = kotlin.native.internal.ref.dereferenceExternalRCRef(`receiver`) as Foo
    __receiver.foo()
}

@ExportedBridge("__root___foo__TypesOfArguments__Swift_Optional_main_Foo___")
public fun __root___foo__TypesOfArguments__Swift_Optional_main_Foo___(`receiver`: kotlin.native.internal.NativePtr): Unit {
    val __receiver = if (`receiver` == kotlin.native.internal.NativePtr.NULL) null else kotlin.native.internal.ref.dereferenceExternalRCRef(`receiver`) as Foo
    __receiver.foo()
}

@ExportedBridge("__root___foo")
public fun __root___foo(): Int {
    val _result = foo()
    return _result
}

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

@ExportedBridge("__root___foo_get__TypesOfArguments__Swift_Optional_Swift_Int32___")
public fun __root___foo_get__TypesOfArguments__Swift_Optional_Swift_Int32___(`receiver`: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __receiver = if (`receiver` == kotlin.native.internal.NativePtr.NULL) null else interpretObjCPointer<Int>(`receiver`)
    val _result = __receiver.foo
    return _result.objcPtr()
}

@ExportedBridge("__root___foo_get__TypesOfArguments__main_Foo__")
public fun __root___foo_get__TypesOfArguments__main_Foo__(`receiver`: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __receiver = kotlin.native.internal.ref.dereferenceExternalRCRef(`receiver`) as Foo
    val _result = __receiver.foo
    return _result.objcPtr()
}

@ExportedBridge("__root___foo_get__TypesOfArguments__Swift_Optional_main_Foo___")
public fun __root___foo_get__TypesOfArguments__Swift_Optional_main_Foo___(`receiver`: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __receiver = if (`receiver` == kotlin.native.internal.NativePtr.NULL) null else kotlin.native.internal.ref.dereferenceExternalRCRef(`receiver`) as Foo
    val _result = __receiver.foo
    return _result.objcPtr()
}

@ExportedBridge("__root___foo_set__TypesOfArguments__Swift_Int32_Swift_String__")
public fun __root___foo_set__TypesOfArguments__Swift_Int32_Swift_String__(`receiver`: Int, v: kotlin.native.internal.NativePtr): Unit {
    val __receiver = `receiver`
    val __v = interpretObjCPointer<kotlin.String>(v)
    __receiver.foo = __v
}

@ExportedBridge("__root___foo_set__TypesOfArguments__Swift_Optional_Swift_Int32__Swift_String__")
public fun __root___foo_set__TypesOfArguments__Swift_Optional_Swift_Int32__Swift_String__(`receiver`: kotlin.native.internal.NativePtr, v: kotlin.native.internal.NativePtr): Unit {
    val __receiver = if (`receiver` == kotlin.native.internal.NativePtr.NULL) null else interpretObjCPointer<Int>(`receiver`)
    val __v = interpretObjCPointer<kotlin.String>(v)
    __receiver.foo = __v
}

@ExportedBridge("__root___foo_set__TypesOfArguments__main_Foo_Swift_String__")
public fun __root___foo_set__TypesOfArguments__main_Foo_Swift_String__(`receiver`: kotlin.native.internal.NativePtr, v: kotlin.native.internal.NativePtr): Unit {
    val __receiver = kotlin.native.internal.ref.dereferenceExternalRCRef(`receiver`) as Foo
    val __v = interpretObjCPointer<kotlin.String>(v)
    __receiver.foo = __v
}

@ExportedBridge("__root___foo_set__TypesOfArguments__Swift_Optional_main_Foo__Swift_String__")
public fun __root___foo_set__TypesOfArguments__Swift_Optional_main_Foo__Swift_String__(`receiver`: kotlin.native.internal.NativePtr, v: kotlin.native.internal.NativePtr): Unit {
    val __receiver = if (`receiver` == kotlin.native.internal.NativePtr.NULL) null else kotlin.native.internal.ref.dereferenceExternalRCRef(`receiver`) as Foo
    val __v = interpretObjCPointer<kotlin.String>(v)
    __receiver.foo = __v
}

@ExportedBridge("__root___return_any_should_append_runtime_import")
public fun __root___return_any_should_append_runtime_import(): kotlin.native.internal.NativePtr {
    val _result = return_any_should_append_runtime_import()
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("namespace1_bar")
public fun namespace1_bar(): Int {
    val _result = namespace1.bar()
    return _result
}

@ExportedBridge("namespace1_local_functions_foo")
public fun namespace1_local_functions_foo(): Unit {
    namespace1.local_functions.foo()
}

@ExportedBridge("namespace1_main_all_args__TypesOfArguments__Swift_Bool_Swift_Int8_Swift_Int16_Swift_Int32_Swift_Int64_Swift_UInt8_Swift_UInt16_Swift_UInt32_Swift_UInt64_Swift_Float_Swift_Double_Swift_Unicode_UTF16_CodeUnit__")
public fun namespace1_main_all_args__TypesOfArguments__Swift_Bool_Swift_Int8_Swift_Int16_Swift_Int32_Swift_Int64_Swift_UInt8_Swift_UInt16_Swift_UInt32_Swift_UInt64_Swift_Float_Swift_Double_Swift_Unicode_UTF16_CodeUnit__(arg1: Boolean, arg2: Byte, arg3: Short, arg4: Int, arg5: Long, arg6: UByte, arg7: UShort, arg8: UInt, arg9: ULong, arg10: Float, arg11: Double, arg12: Char): Unit {
    val __arg1 = arg1
    val __arg2 = arg2
    val __arg3 = arg3
    val __arg4 = arg4
    val __arg5 = arg5
    val __arg6 = arg6
    val __arg7 = arg7
    val __arg8 = arg8
    val __arg9 = arg9
    val __arg10 = arg10
    val __arg11 = arg11
    val __arg12 = arg12
    namespace1.main.all_args(__arg1, __arg2, __arg3, __arg4, __arg5, __arg6, __arg7, __arg8, __arg9, __arg10, __arg11, __arg12)
}

@ExportedBridge("namespace1_main_foobar__TypesOfArguments__Swift_Int32__")
public fun namespace1_main_foobar__TypesOfArguments__Swift_Int32__(`param`: Int): Int {
    val __param = `param`
    val _result = namespace1.main.foobar(__param)
    return _result
}

@ExportedBridge("namespace2_foo__TypesOfArguments__Swift_Int32__")
public fun namespace2_foo__TypesOfArguments__Swift_Int32__(arg1: Int): Int {
    val __arg1 = arg1
    val _result = namespace2.foo(__arg1)
    return _result
}

@ExportedBridge("namespace3_bar_get")
public fun namespace3_bar_get(): Unit {
    namespace3.bar
}

@ExportedBridge("namespace3_foo__TypesOfArguments__Swift_Void__")
public fun namespace3_foo__TypesOfArguments__Swift_Void__(): Unit {
    val __faux = Unit
    namespace3.foo(__faux)
}

@ExportedBridge("namespace3_foo__TypesOfArguments__Swift_Int32_Swift_Void__")
public fun namespace3_foo__TypesOfArguments__Swift_Int32_Swift_Void__(arg1: Int): Unit {
    val __arg1 = arg1
    val __faux = Unit
    namespace3.foo(__arg1, __faux)
}

@ExportedBridge("operators_Foo_EmptyIterator_get")
public fun operators_Foo_EmptyIterator_get(): kotlin.native.internal.NativePtr {
    val _result = operators.Foo.EmptyIterator
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_EmptyIterator_hasNext")
public fun operators_Foo_EmptyIterator_hasNext(self: kotlin.native.internal.NativePtr): Boolean {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo.EmptyIterator
    val _result = __self.hasNext()
    return _result
}

@ExportedBridge("operators_Foo_EmptyIterator_next")
public fun operators_Foo_EmptyIterator_next(self: kotlin.native.internal.NativePtr): Int {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo.EmptyIterator
    val _result = __self.next()
    return _result
}

@ExportedBridge("operators_Foo_compareTo__TypesOfArguments__ExportedKotlinPackages_operators_Foo__")
public fun operators_Foo_compareTo__TypesOfArguments__ExportedKotlinPackages_operators_Foo__(self: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): Int {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __other = kotlin.native.internal.ref.dereferenceExternalRCRef(other) as operators.Foo
    val _result = __self.compareTo(__other)
    return _result
}

@ExportedBridge("operators_Foo_contains__TypesOfArguments__ExportedKotlinPackages_operators_Foo__")
public fun operators_Foo_contains__TypesOfArguments__ExportedKotlinPackages_operators_Foo__(self: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): Boolean {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __other = kotlin.native.internal.ref.dereferenceExternalRCRef(other) as operators.Foo
    val _result = __self.contains(__other)
    return _result
}

@ExportedBridge("operators_Foo_copy__TypesOfArguments__Swift_Int32__")
public fun operators_Foo_copy__TypesOfArguments__Swift_Int32__(self: kotlin.native.internal.NativePtr, value: Int): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __value = value
    val _result = __self.copy(__value)
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_dec")
public fun operators_Foo_dec(self: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val _result = __self.dec()
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_div__TypesOfArguments__ExportedKotlinPackages_operators_Foo__")
public fun operators_Foo_div__TypesOfArguments__ExportedKotlinPackages_operators_Foo__(self: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __other = kotlin.native.internal.ref.dereferenceExternalRCRef(other) as operators.Foo
    val _result = __self.div(__other)
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_divAssign__TypesOfArguments__ExportedKotlinPackages_operators_Foo__")
public fun operators_Foo_divAssign__TypesOfArguments__ExportedKotlinPackages_operators_Foo__(self: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): Unit {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __other = kotlin.native.internal.ref.dereferenceExternalRCRef(other) as operators.Foo
    __self.divAssign(__other)
}

@ExportedBridge("operators_Foo_equals__TypesOfArguments__Swift_Optional_KotlinRuntime_KotlinBase___")
public fun operators_Foo_equals__TypesOfArguments__Swift_Optional_KotlinRuntime_KotlinBase___(self: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): Boolean {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __other = if (other == kotlin.native.internal.NativePtr.NULL) null else kotlin.native.internal.ref.dereferenceExternalRCRef(other) as kotlin.Any
    val _result = __self.equals(__other)
    return _result
}

@ExportedBridge("operators_Foo_get__TypesOfArguments__Swift_Int32__")
public fun operators_Foo_get__TypesOfArguments__Swift_Int32__(self: kotlin.native.internal.NativePtr, index: Int): Int {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __index = index
    val _result = __self.`get`(__index)
    return _result
}

@ExportedBridge("operators_Foo_hashCode")
public fun operators_Foo_hashCode(self: kotlin.native.internal.NativePtr): Int {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val _result = __self.hashCode()
    return _result
}

@ExportedBridge("operators_Foo_inc")
public fun operators_Foo_inc(self: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val _result = __self.inc()
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_init_allocate")
public fun operators_Foo_init_allocate(): kotlin.native.internal.NativePtr {
    val _result = kotlin.native.internal.createUninitializedInstance<operators.Foo>()
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_init_initialize__TypesOfArguments__Swift_UnsafeMutableRawPointer_Swift_Int32__")
public fun operators_Foo_init_initialize__TypesOfArguments__Swift_UnsafeMutableRawPointer_Swift_Int32__(__kt: kotlin.native.internal.NativePtr, value: Int): Unit {
    val ____kt = kotlin.native.internal.ref.dereferenceExternalRCRef(__kt)!!
    val __value = value
    kotlin.native.internal.initInstance(____kt, operators.Foo(__value))
}

@ExportedBridge("operators_Foo_invoke")
public fun operators_Foo_invoke(self: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val _result = __self.invoke()
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_iterator")
public fun operators_Foo_iterator(self: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val _result = __self.iterator()
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_minus__TypesOfArguments__ExportedKotlinPackages_operators_Foo__")
public fun operators_Foo_minus__TypesOfArguments__ExportedKotlinPackages_operators_Foo__(self: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __other = kotlin.native.internal.ref.dereferenceExternalRCRef(other) as operators.Foo
    val _result = __self.minus(__other)
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_minusAssign__TypesOfArguments__ExportedKotlinPackages_operators_Foo__")
public fun operators_Foo_minusAssign__TypesOfArguments__ExportedKotlinPackages_operators_Foo__(self: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): Unit {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __other = kotlin.native.internal.ref.dereferenceExternalRCRef(other) as operators.Foo
    __self.minusAssign(__other)
}

@ExportedBridge("operators_Foo_not")
public fun operators_Foo_not(self: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val _result = __self.not()
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_plus__TypesOfArguments__ExportedKotlinPackages_operators_Foo__")
public fun operators_Foo_plus__TypesOfArguments__ExportedKotlinPackages_operators_Foo__(self: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __other = kotlin.native.internal.ref.dereferenceExternalRCRef(other) as operators.Foo
    val _result = __self.plus(__other)
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_plusAssign__TypesOfArguments__ExportedKotlinPackages_operators_Foo__")
public fun operators_Foo_plusAssign__TypesOfArguments__ExportedKotlinPackages_operators_Foo__(self: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): Unit {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __other = kotlin.native.internal.ref.dereferenceExternalRCRef(other) as operators.Foo
    __self.plusAssign(__other)
}

@ExportedBridge("operators_Foo_rangeTo__TypesOfArguments__ExportedKotlinPackages_operators_Foo__")
public fun operators_Foo_rangeTo__TypesOfArguments__ExportedKotlinPackages_operators_Foo__(self: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __other = kotlin.native.internal.ref.dereferenceExternalRCRef(other) as operators.Foo
    val _result = __self.rangeTo(__other)
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_rangeUntil__TypesOfArguments__ExportedKotlinPackages_operators_Foo__")
public fun operators_Foo_rangeUntil__TypesOfArguments__ExportedKotlinPackages_operators_Foo__(self: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __other = kotlin.native.internal.ref.dereferenceExternalRCRef(other) as operators.Foo
    val _result = __self.rangeUntil(__other)
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_rem__TypesOfArguments__ExportedKotlinPackages_operators_Foo__")
public fun operators_Foo_rem__TypesOfArguments__ExportedKotlinPackages_operators_Foo__(self: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __other = kotlin.native.internal.ref.dereferenceExternalRCRef(other) as operators.Foo
    val _result = __self.rem(__other)
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_remAssign__TypesOfArguments__ExportedKotlinPackages_operators_Foo__")
public fun operators_Foo_remAssign__TypesOfArguments__ExportedKotlinPackages_operators_Foo__(self: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): Unit {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __other = kotlin.native.internal.ref.dereferenceExternalRCRef(other) as operators.Foo
    __self.remAssign(__other)
}

@ExportedBridge("operators_Foo_set__TypesOfArguments__Swift_Int32_Swift_Int32__")
public fun operators_Foo_set__TypesOfArguments__Swift_Int32_Swift_Int32__(self: kotlin.native.internal.NativePtr, index: Int, value: Int): Unit {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __index = index
    val __value = value
    __self.`set`(__index, __value)
}

@ExportedBridge("operators_Foo_times__TypesOfArguments__ExportedKotlinPackages_operators_Foo__")
public fun operators_Foo_times__TypesOfArguments__ExportedKotlinPackages_operators_Foo__(self: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __other = kotlin.native.internal.ref.dereferenceExternalRCRef(other) as operators.Foo
    val _result = __self.times(__other)
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_timesAssign__TypesOfArguments__ExportedKotlinPackages_operators_Foo__")
public fun operators_Foo_timesAssign__TypesOfArguments__ExportedKotlinPackages_operators_Foo__(self: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): Unit {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __other = kotlin.native.internal.ref.dereferenceExternalRCRef(other) as operators.Foo
    __self.timesAssign(__other)
}

@ExportedBridge("operators_Foo_toString")
public fun operators_Foo_toString(self: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val _result = __self.toString()
    return _result.objcPtr()
}

@ExportedBridge("operators_Foo_unaryMinus")
public fun operators_Foo_unaryMinus(self: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val _result = __self.unaryMinus()
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_unaryPlus")
public fun operators_Foo_unaryPlus(self: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val _result = __self.unaryPlus()
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("operators_Foo_value_get")
public fun operators_Foo_value_get(self: kotlin.native.internal.NativePtr): Int {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val _result = __self.value
    return _result
}

@ExportedBridge("operators_Foo_value_set__TypesOfArguments__Swift_Int32__")
public fun operators_Foo_value_set__TypesOfArguments__Swift_Int32__(self: kotlin.native.internal.NativePtr, newValue: Int): Unit {
    val __self = kotlin.native.internal.ref.dereferenceExternalRCRef(self) as operators.Foo
    val __newValue = newValue
    __self.value = __newValue
}

@ExportedBridge("operators_invoke__TypesOfArguments__ExportedKotlinPackages_operators_Foo_ExportedKotlinPackages_operators_Foo__")
public fun operators_invoke__TypesOfArguments__ExportedKotlinPackages_operators_Foo_ExportedKotlinPackages_operators_Foo__(`receiver`: kotlin.native.internal.NativePtr, other: kotlin.native.internal.NativePtr): kotlin.native.internal.NativePtr {
    val __receiver = kotlin.native.internal.ref.dereferenceExternalRCRef(`receiver`) as operators.Foo
    val __other = kotlin.native.internal.ref.dereferenceExternalRCRef(other) as operators.Foo
    val _result = __receiver.operators_invoke(__other)
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("overload_Foo_init_allocate")
public fun overload_Foo_init_allocate(): kotlin.native.internal.NativePtr {
    val _result = kotlin.native.internal.createUninitializedInstance<overload.Foo>()
    return kotlin.native.internal.ref.createRetainedExternalRCRef(_result)
}

@ExportedBridge("overload_Foo_init_initialize__TypesOfArguments__Swift_UnsafeMutableRawPointer__")
public fun overload_Foo_init_initialize__TypesOfArguments__Swift_UnsafeMutableRawPointer__(__kt: kotlin.native.internal.NativePtr): Unit {
    val ____kt = kotlin.native.internal.ref.dereferenceExternalRCRef(__kt)!!
    kotlin.native.internal.initInstance(____kt, overload.Foo())
}

@ExportedBridge("overload_foo__TypesOfArguments__Swift_Int32__")
public fun overload_foo__TypesOfArguments__Swift_Int32__(arg1: Int): Int {
    val __arg1 = arg1
    val _result = overload.foo(__arg1)
    return _result
}

@ExportedBridge("overload_foo__TypesOfArguments__Swift_Double__")
public fun overload_foo__TypesOfArguments__Swift_Double__(arg1: Double): Int {
    val __arg1 = arg1
    val _result = overload.foo(__arg1)
    return _result
}

@ExportedBridge("overload_foo__TypesOfArguments__ExportedKotlinPackages_overload_Foo__")
public fun overload_foo__TypesOfArguments__ExportedKotlinPackages_overload_Foo__(arg1: kotlin.native.internal.NativePtr): Unit {
    val __arg1 = kotlin.native.internal.ref.dereferenceExternalRCRef(arg1) as overload.Foo
    overload.foo(__arg1)
}

@ExportedBridge("overload_foo__TypesOfArguments__Swift_Optional_ExportedKotlinPackages_overload_Foo___")
public fun overload_foo__TypesOfArguments__Swift_Optional_ExportedKotlinPackages_overload_Foo___(arg1: kotlin.native.internal.NativePtr): Unit {
    val __arg1 = if (arg1 == kotlin.native.internal.NativePtr.NULL) null else kotlin.native.internal.ref.dereferenceExternalRCRef(arg1) as overload.Foo
    overload.foo(__arg1)
}
