Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
registrar.m (Xamarin.Forms)
#include <xamarin/xamarin.h>
#include "registrar.h"
extern "C" {
static id native_to_managed_trampoline_1 (id self, SEL _cmd, MonoMethod **managed_method_ptr, bool* call_super, uint32_t token_ref)
{
uint8_t flags = NSObjectFlagsNativeRef;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [0];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
bool has_nsobject = xamarin_has_nsobject (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
if (has_nsobject) {
*call_super = true;
goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
mthis = mono_object_new (mono_domain_get (), mono_method_get_class (managed_method));
xamarin_set_nsobject_handle (mthis, self);
xamarin_set_nsobject_flags (mthis, flags);
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
xamarin_create_managed_ref (self, mthis, true);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return self;
}
static UIWindow * native_to_managed_trampoline_2 (id self, SEL _cmd, MonoMethod **managed_method_ptr, uint32_t token_ref)
{
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
UIWindow * res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [0];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
if (!retval) {
res = NULL;
} else {
id retobj;
retobj = xamarin_get_nsobject_handle (retval);
xamarin_framework_peer_lock ();
[retobj retain];
xamarin_framework_peer_unlock ();
[retobj autorelease];
mt_dummy_use (retval);
res = retobj;
}
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static void native_to_managed_trampoline_3 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIWindow * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static BOOL native_to_managed_trampoline_4 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIApplication * p0, NSUserActivity * p1, id p2, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [3];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
if (p2) {
arg_ptrs [2] = (void *) xamarin_get_delegate_for_block_parameter (managed_method, 0x38C04 /* UIKit.UIApplicationRestorationHandler ObjCRuntime.Trampolines/NIDUIApplicationRestorationHandler::Create(System.IntPtr) */ , 2, p2, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
} else {
arg_ptrs [2] = NULL;
}
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static void native_to_managed_trampoline_5 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIApplication * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static BOOL native_to_managed_trampoline_6 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIApplication * p0, NSDictionary * p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static void native_to_managed_trampoline_7 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIApplication * p0, NSUserActivity * p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static BOOL native_to_managed_trampoline_8 (id self, SEL _cmd, MonoMethod **managed_method_ptr, void * p0, uint32_t token_ref)
{
void * a0 = p0;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
arg_ptrs [0] = &a0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static void native_to_managed_trampoline_9 (id self, SEL _cmd, MonoMethod **managed_method_ptr, uint32_t token_ref)
{
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [0];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_10 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSNotification * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_11 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSTimer * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static NSUInteger native_to_managed_trampoline_12 (id self, SEL _cmd, MonoMethod **managed_method_ptr, uint32_t token_ref)
{
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
NSUInteger res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [0];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(NSUInteger *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static NSInteger native_to_managed_trampoline_13 (id self, SEL _cmd, MonoMethod **managed_method_ptr, void * p0, NSUInteger p1, uint32_t token_ref)
{
void * a0 = p0;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
NSInteger res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
arg_ptrs [0] = &a0;
arg_ptrs [1] = &p1;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(NSInteger *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_14 (id self, SEL _cmd, MonoMethod **managed_method_ptr, uint32_t token_ref)
{
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [0];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_15 (id self, SEL _cmd, MonoMethod **managed_method_ptr, void ** p0, NSUInteger* p1, uint32_t token_ref)
{
void ** a0 = 0;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
arg_ptrs [0] = &a0;
arg_ptrs [1] = p1;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
*p0 = a0;
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static NSObject * native_to_managed_trampoline_16 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSString * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
NSObject * res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
if (!retval) {
res = NULL;
} else {
id retobj;
retobj = xamarin_get_nsobject_handle (retval);
xamarin_framework_peer_lock ();
[retobj retain];
xamarin_framework_peer_unlock ();
[retobj autorelease];
mt_dummy_use (retval);
res = retobj;
}
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_17 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSObject * p0, NSString * p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_18 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSUInteger p0, void * p1, void * p2, uint32_t token_ref)
{
unsigned long long nativeEnum0 = p0;
void * a1 = p1;
void * a2 = p2;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [3];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
arg_ptrs [0] = &nativeEnum0;
arg_ptrs [1] = &a1;
arg_ptrs [2] = &a2;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static void native_to_managed_trampoline_19 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSRunLoop * p0, NSString * p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
arg_ptrs [1] = xamarin_nsstring_to_string (NULL, p1);
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_20 (id self, SEL _cmd, MonoMethod **managed_method_ptr, GLKView * p0, CGRect p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
arg_ptrs [1] = &p1;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_21 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSObject * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static UIColor * native_to_managed_trampoline_22 (id self, SEL _cmd, MonoMethod **managed_method_ptr, uint32_t token_ref)
{
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
UIColor * res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [0];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
if (!retval) {
res = NULL;
} else {
id retobj;
retobj = xamarin_get_nsobject_handle (retval);
xamarin_framework_peer_lock ();
[retobj retain];
xamarin_framework_peer_unlock ();
[retobj autorelease];
mt_dummy_use (retval);
res = retobj;
}
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static UIImage * native_to_managed_trampoline_23 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSUInteger p0, uint32_t token_ref)
{
unsigned long long nativeEnum0 = p0;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
UIImage * res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
arg_ptrs [0] = &nativeEnum0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
if (!retval) {
res = NULL;
} else {
id retobj;
retobj = xamarin_get_nsobject_handle (retval);
xamarin_framework_peer_lock ();
[retobj retain];
xamarin_framework_peer_unlock ();
[retobj autorelease];
mt_dummy_use (retval);
res = retobj;
}
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static UIColor * native_to_managed_trampoline_24 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSUInteger p0, uint32_t token_ref)
{
unsigned long long nativeEnum0 = p0;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
UIColor * res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
arg_ptrs [0] = &nativeEnum0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
if (!retval) {
res = NULL;
} else {
id retobj;
retobj = xamarin_get_nsobject_handle (retval);
xamarin_framework_peer_lock ();
[retobj retain];
xamarin_framework_peer_unlock ();
[retobj autorelease];
mt_dummy_use (retval);
res = retobj;
}
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_25 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIGestureRecognizer * p0, UIGestureRecognizer * p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_26 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIGestureRecognizer * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_27 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIGestureRecognizer * p0, UIPress * p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_28 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIGestureRecognizer * p0, UITouch * p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static void native_to_managed_trampoline_29 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UILongPressGestureRecognizer * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_30 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITapGestureRecognizer * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_31 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIPanGestureRecognizer * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_32 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIPinchGestureRecognizer * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static NSDictionary * native_to_managed_trampoline_33 (id self, SEL _cmd, MonoMethod **managed_method_ptr, uint32_t token_ref)
{
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
NSDictionary * res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [0];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
if (!retval) {
res = NULL;
} else {
id retobj;
retobj = xamarin_get_nsobject_handle (retval);
xamarin_framework_peer_lock ();
[retobj retain];
xamarin_framework_peer_unlock ();
[retobj autorelease];
mt_dummy_use (retval);
res = retobj;
}
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static void native_to_managed_trampoline_34 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISearchBar * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_35 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISearchBar * p0, NSInteger p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
arg_ptrs [1] = &p1;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static BOOL native_to_managed_trampoline_36 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISearchBar * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_37 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISearchBar * p0, NSRange p1, NSString * p2, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [3];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
arg_ptrs [1] = &p1;
arg_ptrs [2] = xamarin_nsstring_to_string (NULL, p2);
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static void native_to_managed_trampoline_38 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISearchBar * p0, NSString * p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
arg_ptrs [1] = xamarin_nsstring_to_string (NULL, p1);
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_39 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISearchController * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_40 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITextField * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_41 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITextField * p0, NSInteger p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
long long nativeEnum1 = p1;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
arg_ptrs [1] = &nativeEnum1;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static BOOL native_to_managed_trampoline_42 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITextField * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_43 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITextField * p0, NSRange p1, NSString * p2, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [3];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
arg_ptrs [1] = &p1;
arg_ptrs [2] = xamarin_nsstring_to_string (NULL, p2);
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static void native_to_managed_trampoline_44 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIScrollView * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_45 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIScrollView * p0, BOOL p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
arg_ptrs [1] = &p1;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static BOOL native_to_managed_trampoline_46 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIScrollView * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static UIView * native_to_managed_trampoline_47 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIScrollView * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
UIView * res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
if (!retval) {
res = NULL;
} else {
id retobj;
retobj = xamarin_get_nsobject_handle (retval);
xamarin_framework_peer_lock ();
[retobj retain];
xamarin_framework_peer_unlock ();
[retobj autorelease];
mt_dummy_use (retval);
res = retobj;
}
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static void native_to_managed_trampoline_48 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIScrollView * p0, CGPoint p1, CGPoint* p2, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [3];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
arg_ptrs [1] = &p1;
arg_ptrs [2] = p2;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_49 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIScrollView * p0, UIView * p1, CGFloat p2, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [3];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
arg_ptrs [2] = &p2;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_50 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIScrollView * p0, UIView * p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_51 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITextView * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static BOOL native_to_managed_trampoline_52 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITextView * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_53 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITextView * p0, NSRange p1, NSString * p2, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [3];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
arg_ptrs [1] = &p1;
arg_ptrs [2] = xamarin_nsstring_to_string (NULL, p2);
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_54 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITextView * p0, NSTextAttachment * p1, NSRange p2, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [3];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
arg_ptrs [2] = &p2;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_55 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITextView * p0, NSTextAttachment * p1, NSRange p2, NSInteger p3, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
long long nativeEnum3 = p3;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [4];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
arg_ptrs [2] = &p2;
arg_ptrs [3] = &nativeEnum3;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_56 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITextView * p0, NSURL * p1, NSRange p2, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [3];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
arg_ptrs [2] = &p2;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_57 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITextView * p0, NSURL * p1, NSRange p2, NSInteger p3, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
long long nativeEnum3 = p3;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [4];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
arg_ptrs [2] = &p2;
arg_ptrs [3] = &nativeEnum3;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_58 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISplitViewController * p0, UIViewController * p1, UIViewController * p2, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
NSObject *nsobj2 = NULL;
MonoObject *mobj2 = NULL;
int32_t created2 = false;
MonoType *paramtype2 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [3];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
nsobj2 = (NSObject *) p2;
if (nsobj2) {
paramtype2 = xamarin_get_parameter_type (managed_method, 2);
mobj2 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj2, false, paramtype2, &created2, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype2, 2, true);
goto exception_handling;
}
}
arg_ptrs [2] = mobj2;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_59 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISplitViewController * p0, UIViewController * p1, NSObject * p2, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
NSObject *nsobj2 = NULL;
MonoObject *mobj2 = NULL;
int32_t created2 = false;
MonoType *paramtype2 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [3];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
nsobj2 = (NSObject *) p2;
if (nsobj2) {
paramtype2 = xamarin_get_parameter_type (managed_method, 2);
mobj2 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj2, false, paramtype2, &created2, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype2, 2, true);
goto exception_handling;
}
}
arg_ptrs [2] = mobj2;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static NSInteger native_to_managed_trampoline_60 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISplitViewController * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
NSInteger res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(NSInteger *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static UIViewController * native_to_managed_trampoline_61 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISplitViewController * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
UIViewController * res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
if (!retval) {
res = NULL;
} else {
id retobj;
retobj = xamarin_get_nsobject_handle (retval);
xamarin_framework_peer_lock ();
[retobj retain];
xamarin_framework_peer_unlock ();
[retobj autorelease];
mt_dummy_use (retval);
res = retobj;
}
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static UIViewController * native_to_managed_trampoline_62 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISplitViewController * p0, UIViewController * p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
UIViewController * res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
if (!retval) {
res = NULL;
} else {
id retobj;
retobj = xamarin_get_nsobject_handle (retval);
xamarin_framework_peer_lock ();
[retobj retain];
xamarin_framework_peer_unlock ();
[retobj autorelease];
mt_dummy_use (retval);
res = retobj;
}
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static BOOL native_to_managed_trampoline_63 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISplitViewController * p0, UIViewController * p1, NSInteger p2, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
long long nativeEnum2 = p2;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
BOOL res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [3];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
arg_ptrs [2] = &nativeEnum2;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(BOOL *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static NSUInteger native_to_managed_trampoline_64 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISplitViewController * p0, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
NSUInteger res = {0};
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [1];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(NSUInteger *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static void native_to_managed_trampoline_65 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISplitViewController * p0, NSInteger p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
long long nativeEnum1 = p1;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [2];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
arg_ptrs [1] = &nativeEnum1;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_66 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISplitViewController * p0, UIViewController * p1, UIBarButtonItem * p2, UIPopoverController * p3, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
NSObject *nsobj2 = NULL;
MonoObject *mobj2 = NULL;
int32_t created2 = false;
MonoType *paramtype2 = NULL;
NSObject *nsobj3 = NULL;
MonoObject *mobj3 = NULL;
int32_t created3 = false;
MonoType *paramtype3 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [4];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
nsobj2 = (NSObject *) p2;
if (nsobj2) {
paramtype2 = xamarin_get_parameter_type (managed_method, 2);
mobj2 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj2, false, paramtype2, &created2, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype2, 2, true);
goto exception_handling;
}
}
arg_ptrs [2] = mobj2;
nsobj3 = (NSObject *) p3;
if (nsobj3) {
paramtype3 = xamarin_get_parameter_type (managed_method, 3);
mobj3 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj3, false, paramtype3, &created3, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype3, 3, true);
goto exception_handling;
}
}
arg_ptrs [3] = mobj3;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_67 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISplitViewController * p0, UIPopoverController * p1, UIViewController * p2, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
NSObject *nsobj2 = NULL;
MonoObject *mobj2 = NULL;
int32_t created2 = false;
MonoType *paramtype2 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [3];
MONO_ASSERT_GC_SAFE;
MONO_THREAD_ATTACH;
MonoObject *mthis = NULL;
if (self) {
mthis = xamarin_get_managed_object_for_ptr_fast (self, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
if (!managed_method) {
MonoReflectionMethod *reflection_method = xamarin_get_method_from_token (token_ref, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
managed_method = xamarin_get_reflection_method_method (reflection_method);
*managed_method_ptr = managed_method;
}
xamarin_check_for_gced_object (mthis, _cmd, self, managed_method, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
nsobj0 = (NSObject *) p0;
if (nsobj0) {
paramtype0 = xamarin_get_parameter_type (managed_method, 0);
mobj0 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj0, false, paramtype0, &created0, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype0, 0, true);
goto exception_handling;
}
}
arg_ptrs [0] = mobj0;
nsobj1 = (NSObject *) p1;
if (nsobj1) {
paramtype1 = xamarin_get_parameter_type (managed_method, 1);
mobj1 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj1, false, paramtype1, &created1, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype1, 1, true);
goto exception_handling;
}
}
arg_ptrs [1] = mobj1;
nsobj2 = (NSObject *) p2;
if (nsobj2) {
paramtype2 = xamarin_get_parameter_type (managed_method, 2);
mobj2 = xamarin_get_nsobject_with_type_for_ptr_created (nsobj2, false, paramtype2, &created2, &exception_gchandle);
if (exception_gchandle != 0) {
exception_gchandle = xamarin_get_exception_for_parameter (8029, exception_gchandle, "Unable to marshal the parameter", _cmd, managed_method, paramtype2, 2, true);
goto exception_handling;
}
}
arg_ptrs [2] = mobj2;
mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return;
}
static void native_to_managed_trampoline_68 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UISplitViewController * p0, UIViewController * p1, UIBarButtonItem * p2, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
NSObject *nsobj2 = NULL;
MonoObject *mobj2 = NULL;
int32_t created2 = false;
MonoType *paramtype2 = NULL;
guint32 exception_gchandle = 0;
MonoMethod *managed_method = *managed_method_ptr;
void *arg_ptrs [3];