Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
registrar.m (Uno Platform)
#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 void native_to_managed_trampoline_2 (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 NSUInteger native_to_managed_trampoline_3 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIApplication * p0, UIWindow * 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;
NSUInteger 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 (created1) {
xamarin_dispose (mobj1, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
}
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 NSString * native_to_managed_trampoline_4 (id self, SEL _cmd, MonoMethod **managed_method_ptr, uint32_t token_ref)
{
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
NSString * 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 BOOL native_to_managed_trampoline_5 (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_6 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIView * 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_7 (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 BOOL native_to_managed_trampoline_8 (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 void native_to_managed_trampoline_9 (id self, SEL _cmd, MonoMethod **managed_method_ptr, BOOL p0, uint32_t token_ref)
{
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;
arg_ptrs [0] = &p0;
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, NSSet * p0, UIEvent * 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 CGSize native_to_managed_trampoline_11 (id self, SEL _cmd, MonoMethod **managed_method_ptr, CGSize p0, uint32_t token_ref)
{
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
CGSize 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] = &p0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(CGSize *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static CGRect native_to_managed_trampoline_12 (id self, SEL _cmd, MonoMethod **managed_method_ptr, uint32_t token_ref)
{
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
CGRect 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 = *(CGRect *) 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_13 (id self, SEL _cmd, MonoMethod **managed_method_ptr, CGRect p0, uint32_t token_ref)
{
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;
arg_ptrs [0] = &p0;
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 UIView * native_to_managed_trampoline_14 (id self, SEL _cmd, MonoMethod **managed_method_ptr, CGPoint p0, UIEvent * p1, uint32_t token_ref)
{
NSObject *nsobj1 = NULL;
MonoObject *mobj1 = NULL;
int32_t created1 = false;
MonoType *paramtype1 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
UIView * 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] = &p0;
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 NSString * native_to_managed_trampoline_15 (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;
NSString * 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 NSArray * native_to_managed_trampoline_16 (id self, SEL _cmd, MonoMethod **managed_method_ptr, CGRect p0, uint32_t token_ref)
{
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
NSArray * 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] = &p0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = xamarin_managed_nsobject_array_to_nsarray ((MonoArray *) retval, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
xamarin_framework_peer_lock ();
mt_dummy_use (retval);
xamarin_framework_peer_unlock ();
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static UICollectionViewLayoutAttributes * native_to_managed_trampoline_17 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSIndexPath * 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;
UICollectionViewLayoutAttributes * 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 UICollectionViewLayoutAttributes * native_to_managed_trampoline_18 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSString * p0, NSIndexPath * 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;
UICollectionViewLayoutAttributes * 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 CGSize native_to_managed_trampoline_19 (id self, SEL _cmd, MonoMethod **managed_method_ptr, uint32_t token_ref)
{
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
CGSize 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 = *(CGSize *) 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_20 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSArray * p0, uint32_t token_ref)
{
MonoArray *marr0 = NULL;
NSArray *arr0 = 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;
arr0 = p0;
marr0 = xamarin_nsarray_to_managed_nsobject_array (arr0, xamarin_get_parameter_type (managed_method, 0), NULL, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
arg_ptrs [0] = marr0;
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_21 (id self, SEL _cmd, MonoMethod **managed_method_ptr, CGRect p0, uint32_t token_ref)
{
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] = &p0;
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 UICollectionViewCell * native_to_managed_trampoline_22 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UICollectionView * p0, NSIndexPath * 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;
UICollectionViewCell * 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 NSInteger native_to_managed_trampoline_23 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UICollectionView * p0, NSInteger p1, 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 [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;
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 NSInteger native_to_managed_trampoline_24 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UICollectionView * 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 void native_to_managed_trampoline_25 (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 void native_to_managed_trampoline_26 (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_27 (id self, SEL _cmd, MonoMethod **managed_method_ptr, CGSize p0, uint32_t token_ref)
{
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;
arg_ptrs [0] = &p0;
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 UICollectionViewLayoutAttributes * native_to_managed_trampoline_28 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UICollectionViewLayoutAttributes * 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;
UICollectionViewLayoutAttributes * 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 NSString * native_to_managed_trampoline_29 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIPickerView * p0, NSInteger p1, NSInteger 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;
NSString * 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] = &p2;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
if (!retval) {
res = NULL;
} else {
res = xamarin_string_to_nsstring ((MonoString *) retval, false);
}
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static NSInteger native_to_managed_trampoline_30 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIPickerView * 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 NSInteger native_to_managed_trampoline_31 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIPickerView * p0, NSInteger p1, 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 [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;
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 CGFloat native_to_managed_trampoline_32 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIPickerView * p0, NSInteger p1, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
CGFloat 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;
arg_ptrs [1] = &p1;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(CGFloat *) 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_33 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIPickerView * p0, NSInteger p1, NSInteger p2, UIView * p3, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = NULL;
NSObject *nsobj3 = NULL;
MonoObject *mobj3 = NULL;
int32_t created3 = false;
MonoType *paramtype3 = NULL;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
UIView * 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;
arg_ptrs [1] = &p1;
arg_ptrs [2] = &p2;
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;
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, UIPickerView * p0, NSInteger p1, NSInteger 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_35 (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_36 (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_37 (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_38 (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 id native_to_managed_trampoline_39 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIViewController * 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;
id 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);
if (!retval) {
res = NULL;
} else {
id retobj;
retobj = xamarin_get_handle_for_inativeobject ((MonoObject *) retval, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
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 id native_to_managed_trampoline_40 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIViewController * 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;
id 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_handle_for_inativeobject ((MonoObject *) retval, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
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 NSInteger native_to_managed_trampoline_41 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSInteger p0, uint32_t token_ref)
{
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;
arg_ptrs [0] = &p0;
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_42 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UICollectionView * p0, NSIndexPath * 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_43 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UICollectionView * p0, UICollectionViewCell * p1, NSIndexPath * 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_44 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UICollectionView * p0, NSIndexPath * 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 UICollectionReusableView * native_to_managed_trampoline_45 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UICollectionView * p0, NSString * p1, NSIndexPath * 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;
UICollectionReusableView * 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);
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_46 (id self, SEL _cmd, MonoMethod **managed_method_ptr, CGPoint p0, BOOL p1, uint32_t token_ref)
{
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;
arg_ptrs [0] = &p0;
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_47 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSIndexSet * 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_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 NSString * native_to_managed_trampoline_49 (id self, SEL _cmd, MonoMethod **managed_method_ptr, uint32_t token_ref)
{
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
NSString * 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 {
res = xamarin_string_to_nsstring ((MonoString *) retval, false);
}
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static void native_to_managed_trampoline_50 (id self, SEL _cmd, MonoMethod **managed_method_ptr, NSString * p0, uint32_t token_ref)
{
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;
arg_ptrs [0] = xamarin_nsstring_to_string (NULL, p0);
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 UITextRange * native_to_managed_trampoline_51 (id self, SEL _cmd, MonoMethod **managed_method_ptr, uint32_t token_ref)
{
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
UITextRange * 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_52 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UITextRange * 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;
nsobj0 = [nsobj0 copy];
[nsobj0 autorelease];
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_53 (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 BOOL native_to_managed_trampoline_54 (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 void native_to_managed_trampoline_55 (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 CGRect native_to_managed_trampoline_56 (id self, SEL _cmd, MonoMethod **managed_method_ptr, CGRect p0, uint32_t token_ref)
{
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
CGRect 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] = &p0;
retval = mono_runtime_invoke (managed_method, mthis, arg_ptrs, NULL);
res = *(CGRect *) mono_object_unbox ((MonoObject *) retval);
exception_handling:;
MONO_THREAD_DETACH;
if (exception_gchandle != 0)
xamarin_process_managed_exception_gchandle (exception_gchandle);
return res;
}
static WKWebView * native_to_managed_trampoline_57 (id self, SEL _cmd, MonoMethod **managed_method_ptr, WKWebView * p0, WKWebViewConfiguration * p1, WKNavigationAction * p2, WKWindowFeatures * 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;
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
WKWebView * 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;
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;
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_58 (id self, SEL _cmd, MonoMethod **managed_method_ptr, WKWebView * p0, NSString * p1, WKFrameInfo * p2, id p3, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = 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 [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;
arg_ptrs [1] = xamarin_nsstring_to_string (NULL, p1);
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;
if (p3) {
arg_ptrs [3] = (void *) xamarin_get_delegate_for_block_parameter (managed_method, 0x33612 /* System.Action ObjCRuntime.Trampolines/NIDAction::Create(System.IntPtr) */ , 3, p3, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
} else {
arg_ptrs [3] = NULL;
}
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_59 (id self, SEL _cmd, MonoMethod **managed_method_ptr, WKWebView * p0, NSString * p1, NSString * p2, WKFrameInfo * p3, id p4, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = 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 [5];
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);
arg_ptrs [2] = xamarin_nsstring_to_string (NULL, p2);
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;
if (p4) {
arg_ptrs [4] = (void *) xamarin_get_delegate_for_block_parameter (managed_method, 0x39012 /* System.Action`1<System.String> ObjCRuntime.Trampolines/NIDActionArity1V55::Create(System.IntPtr) */ , 4, p4, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
} else {
arg_ptrs [4] = NULL;
}
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_60 (id self, SEL _cmd, MonoMethod **managed_method_ptr, WKWebView * p0, NSString * p1, WKFrameInfo * p2, id p3, uint32_t token_ref)
{
NSObject *nsobj0 = NULL;
MonoObject *mobj0 = NULL;
int32_t created0 = false;
MonoType *paramtype0 = 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 [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;
arg_ptrs [1] = xamarin_nsstring_to_string (NULL, p1);
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;
if (p3) {
arg_ptrs [3] = (void *) xamarin_get_delegate_for_block_parameter (managed_method, 0x38612 /* System.Action`1<System.Boolean> ObjCRuntime.Trampolines/NIDActionArity1V4::Create(System.IntPtr) */ , 3, p3, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
} else {
arg_ptrs [3] = NULL;
}
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_61 (id self, SEL _cmd, MonoMethod **managed_method_ptr, WKWebView * 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_62 (id self, SEL _cmd, MonoMethod **managed_method_ptr, WKWebView * p0, WKNavigationAction * 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;
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;
if (p2) {
arg_ptrs [2] = (void *) xamarin_get_delegate_for_block_parameter (managed_method, 0x3B812 /* System.Action`1<WebKit.WKNavigationActionPolicy> ObjCRuntime.Trampolines/NIDActionArity1V211::Create(System.IntPtr) */ , 2, p2, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
} else {
arg_ptrs [2] = NULL;
}
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_63 (id self, SEL _cmd, MonoMethod **managed_method_ptr, WKWebView * p0, WKNavigationResponse * 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;
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;
if (p2) {
arg_ptrs [2] = (void *) xamarin_get_delegate_for_block_parameter (managed_method, 0x3C212 /* System.Action`1<WebKit.WKNavigationResponsePolicy> ObjCRuntime.Trampolines/NIDActionArity1V212::Create(System.IntPtr) */ , 2, p2, &exception_gchandle);
if (exception_gchandle != 0) goto exception_handling;
} else {
arg_ptrs [2] = NULL;
}
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_64 (id self, SEL _cmd, MonoMethod **managed_method_ptr, WKWebView * p0, WKNavigation * 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_65 (id self, SEL _cmd, MonoMethod **managed_method_ptr, WKWebView * p0, WKNavigation * p1, NSError * 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 float native_to_managed_trampoline_66 (id self, SEL _cmd, MonoMethod **managed_method_ptr, uint32_t token_ref)
{
MonoObject *retval = NULL;
guint32 exception_gchandle = 0;
float 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 = *(float *) 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_67 (id self, SEL _cmd, MonoMethod **managed_method_ptr, float p0, uint32_t token_ref)
{
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;
arg_ptrs [0] = &p0;
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, UINavigationController * p0, UIViewController * p1, BOOL 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;