Skip to content

Instantly share code, notes, and snippets.

@rolfbjarne

rolfbjarne/a Secret

Created August 17, 2023 05:54
Show Gist options
  • Save rolfbjarne/383f0feaa2b291ddf420cdb7083edb52 to your computer and use it in GitHub Desktop.
Save rolfbjarne/383f0feaa2b291ddf420cdb7083edb52 to your computer and use it in GitHub Desktop.
maccatalyst, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
System.Void Program::<Main>$ (System.String[] args) (private compilercontrolled hidebysig reuseslot static) // Token: [Method:0x0001]
IL_0000: ldc.r8 1
IL_0009: ldsfld System.Action`1<Foundation.NSTimer> Program/<>c::<>9__0_0
IL_000e: dup
IL_000f: brtrue.s IL_0028
IL_0011: pop
IL_0012: ldsfld Program/<>c Program/<>c::<>9
IL_0017: ldftn System.Void Program/<>c::<<Main>$>b__0_0(Foundation.NSTimer)
IL_001d: newobj System.Void System.Action`1<Foundation.NSTimer>::.ctor(System.Object,System.IntPtr)
IL_0022: dup
IL_0023: stsfld System.Action`1<Foundation.NSTimer> Program/<>c::<>9__0_0
IL_0028: call Foundation.NSTimer Foundation.NSTimer::CreateScheduledTimer(System.Double,System.Action`1<Foundation.NSTimer>)
IL_002d: pop
IL_002e: ldarg.0
IL_002f: ldnull
IL_0030: ldtoken maccatalyst.AppDelegate
IL_0035: call System.Type System.Type::GetTypeFromHandle(System.RuntimeTypeHandle)
IL_003a: call System.Void UIKit.UIApplication::Main(System.String[],System.Type,System.Type)
IL_003f: nop
IL_0040: ret
No exception handlers.
System.Void Program::.ctor () (public compilercontrolled hidebysig reuseslot rtspecialname specialname) // Token: [Method:0x0002]
IL_0000: ldarg.0
IL_0001: call System.Void System.Object::.ctor()
IL_0006: nop
IL_0007: ret
No exception handlers.
System.Void Program/<>c::.cctor () (private compilercontrolled hidebysig reuseslot rtspecialname specialname static) // Token: [Method:0x0010]
IL_0000: newobj System.Void Program/<>c::.ctor()
IL_0005: stsfld Program/<>c Program/<>c::<>9
IL_000a: ret
No exception handlers.
System.Void Program/<>c::.ctor () (public compilercontrolled hidebysig reuseslot rtspecialname specialname) // Token: [Method:0x0011]
IL_0000: ldarg.0
IL_0001: call System.Void System.Object::.ctor()
IL_0006: nop
IL_0007: ret
No exception handlers.
System.Void Program/<>c::<<Main>$>b__0_0 (Foundation.NSTimer v) (internal compilercontrolled hidebysig reuseslot) // Token: [Method:0x0012]
IL_0000: nop
IL_0001: ldstr "MAGIC_WORD"
IL_0006: call System.String System.Environment::GetEnvironmentVariable(System.String)
IL_000b: call System.Void System.Console::WriteLine(System.String)
IL_0010: nop
IL_0011: ldc.i4.0
IL_0012: call System.Void System.Environment::Exit(System.Int32)
IL_0017: nop
IL_0018: ret
No exception handlers.
UIKit.UIWindow maccatalyst.AppDelegate::get_Window () (public compilercontrolled hidebysig reuseslot specialname virtual) // Token: [Method:0x0003]
IL_0000: ldarg.0
IL_0001: ldfld UIKit.UIWindow maccatalyst.AppDelegate::<Window>k__BackingField
IL_0006: ret
No exception handlers.
System.Void maccatalyst.AppDelegate::set_Window (UIKit.UIWindow value) (public compilercontrolled hidebysig reuseslot specialname virtual) // Token: [Method:0x0004]
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: stfld UIKit.UIWindow maccatalyst.AppDelegate::<Window>k__BackingField
IL_0007: ret
No exception handlers.
System.Boolean maccatalyst.AppDelegate::FinishedLaunching (UIKit.UIApplication application, Foundation.NSDictionary launchOptions) (public compilercontrolled hidebysig reuseslot virtual) // Token: [Method:0x0005]
2 local variables:
UIKit.UIViewController V_0
System.Boolean V_1
IL_0000: nop
IL_0001: ldarg.0
IL_0002: call UIKit.UIScreen UIKit.UIScreen::get_MainScreen()
IL_0007: callvirt CoreGraphics.CGRect UIKit.UIScreen::get_Bounds()
IL_000c: newobj System.Void UIKit.UIWindow::.ctor(CoreGraphics.CGRect)
IL_0011: callvirt System.Void UIKit.UIApplicationDelegate::set_Window(UIKit.UIWindow)
IL_0016: nop
IL_0017: newobj System.Void UIKit.UIViewController::.ctor()
IL_001c: stloc.0
IL_001d: ldloc.0
IL_001e: callvirt UIKit.UIView UIKit.UIViewController::get_View()
IL_0023: ldarg.0
IL_0024: callvirt UIKit.UIWindow UIKit.UIApplicationDelegate::get_Window()
IL_0029: callvirt CoreGraphics.CGRect UIKit.UIView::get_Frame()
IL_002e: newobj System.Void UIKit.UILabel::.ctor(CoreGraphics.CGRect)
IL_0033: dup
IL_0034: call UIKit.UIColor UIKit.UIColor::get_SystemBackground()
IL_0039: callvirt System.Void UIKit.UIView::set_BackgroundColor(UIKit.UIColor)
IL_003e: nop
IL_003f: dup
IL_0040: ldc.i4.1
IL_0041: conv.i8
IL_0042: callvirt System.Void UIKit.UILabel::set_TextAlignment(UIKit.UITextAlignment)
IL_0047: nop
IL_0048: dup
IL_0049: ldstr "Hello, Mac Catalyst!"
IL_004e: callvirt System.Void UIKit.UILabel::set_Text(System.String)
IL_0053: nop
IL_0054: dup
IL_0055: ldc.i4.s 63
IL_0057: conv.i8
IL_0058: callvirt System.Void UIKit.UIView::set_AutoresizingMask(UIKit.UIViewAutoresizing)
IL_005d: nop
IL_005e: callvirt System.Void UIKit.UIView::AddSubview(UIKit.UIView)
IL_0063: nop
IL_0064: ldarg.0
IL_0065: callvirt UIKit.UIWindow UIKit.UIApplicationDelegate::get_Window()
IL_006a: ldloc.0
IL_006b: callvirt System.Void UIKit.UIWindow::set_RootViewController(UIKit.UIViewController)
IL_0070: nop
IL_0071: ldarg.0
IL_0072: callvirt UIKit.UIWindow UIKit.UIApplicationDelegate::get_Window()
IL_0077: callvirt System.Void UIKit.UIWindow::MakeKeyAndVisible()
IL_007c: nop
IL_007d: ldc.i4.1
IL_007e: stloc.1
IL_007f: br.s IL_0081
IL_0081: ldloc.1
IL_0082: ret
No exception handlers.
System.Void maccatalyst.AppDelegate::.ctor () (public compilercontrolled hidebysig reuseslot rtspecialname specialname) // Token: [Method:0x0006]
IL_0000: ldarg.0
IL_0001: call System.Void UIKit.UIApplicationDelegate::.ctor()
IL_0006: nop
IL_0007: ret
No exception handlers.
UIKit.UIWindow maccatalyst.SceneDelegate::get_Window () (public compilercontrolled hidebysig reuseslot specialname) // Token: [Method:0x0007]
IL_0000: ldarg.0
IL_0001: ldfld UIKit.UIWindow maccatalyst.SceneDelegate::<Window>k__BackingField
IL_0006: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::set_Window (UIKit.UIWindow value) (public compilercontrolled hidebysig reuseslot specialname) // Token: [Method:0x0008]
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: stfld UIKit.UIWindow maccatalyst.SceneDelegate::<Window>k__BackingField
IL_0007: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::WillConnect (UIKit.UIScene scene, UIKit.UISceneSession session, UIKit.UISceneConnectionOptions connectionOptions) (public compilercontrolled hidebysig reuseslot) // Token: [Method:0x0009]
IL_0000: nop
IL_0001: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::DidDisconnect (UIKit.UIScene scene) (public compilercontrolled hidebysig reuseslot) // Token: [Method:0x000a]
IL_0000: nop
IL_0001: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::DidBecomeActive (UIKit.UIScene scene) (public compilercontrolled hidebysig reuseslot) // Token: [Method:0x000b]
IL_0000: nop
IL_0001: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::WillResignActive (UIKit.UIScene scene) (public compilercontrolled hidebysig reuseslot) // Token: [Method:0x000c]
IL_0000: nop
IL_0001: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::WillEnterForeground (UIKit.UIScene scene) (public compilercontrolled hidebysig reuseslot) // Token: [Method:0x000d]
IL_0000: nop
IL_0001: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::DidEnterBackground (UIKit.UIScene scene) (public compilercontrolled hidebysig reuseslot) // Token: [Method:0x000e]
IL_0000: nop
IL_0001: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::.ctor () (public compilercontrolled hidebysig reuseslot rtspecialname specialname) // Token: [Method:0x000f]
IL_0000: ldarg.0
IL_0001: call System.Void UIKit.UIResponder::.ctor()
IL_0006: nop
IL_0007: ret
No exception handlers.
--- a 2023-08-17 07:48:22
+++ b 2023-08-17 07:48:18
@@ -1,24 +1,12 @@
maccatalyst, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
System.Void Program::<Main>$ (System.String[] args) (private compilercontrolled hidebysig reuseslot static) // Token: [Method:0x0001]
- IL_0000: ldc.r8 1
- IL_0009: ldsfld System.Action`1<Foundation.NSTimer> Program/<>c::<>9__0_0
- IL_000e: dup
- IL_000f: brtrue.s IL_0028
- IL_0011: pop
- IL_0012: ldsfld Program/<>c Program/<>c::<>9
- IL_0017: ldftn System.Void Program/<>c::<<Main>$>b__0_0(Foundation.NSTimer)
- IL_001d: newobj System.Void System.Action`1<Foundation.NSTimer>::.ctor(System.Object,System.IntPtr)
- IL_0022: dup
- IL_0023: stsfld System.Action`1<Foundation.NSTimer> Program/<>c::<>9__0_0
- IL_0028: call Foundation.NSTimer Foundation.NSTimer::CreateScheduledTimer(System.Double,System.Action`1<Foundation.NSTimer>)
- IL_002d: pop
- IL_002e: ldarg.0
- IL_002f: ldnull
- IL_0030: ldtoken maccatalyst.AppDelegate
- IL_0035: call System.Type System.Type::GetTypeFromHandle(System.RuntimeTypeHandle)
- IL_003a: call System.Void UIKit.UIApplication::Main(System.String[],System.Type,System.Type)
- IL_003f: nop
- IL_0040: ret
+ IL_0000: ldarg.0
+ IL_0001: ldnull
+ IL_0002: ldtoken maccatalyst.AppDelegate
+ IL_0007: call System.Type System.Type::GetTypeFromHandle(System.RuntimeTypeHandle)
+ IL_000c: call System.Void UIKit.UIApplication::Main(System.String[],System.Type,System.Type)
+ IL_0011: nop
+ IL_0012: ret
No exception handlers.
System.Void Program::.ctor () (public compilercontrolled hidebysig reuseslot rtspecialname specialname) // Token: [Method:0x0002]
IL_0000: ldarg.0
@@ -26,28 +14,6 @@
IL_0006: nop
IL_0007: ret
No exception handlers.
- System.Void Program/<>c::.cctor () (private compilercontrolled hidebysig reuseslot rtspecialname specialname static) // Token: [Method:0x0010]
- IL_0000: newobj System.Void Program/<>c::.ctor()
- IL_0005: stsfld Program/<>c Program/<>c::<>9
- IL_000a: ret
- No exception handlers.
- System.Void Program/<>c::.ctor () (public compilercontrolled hidebysig reuseslot rtspecialname specialname) // Token: [Method:0x0011]
- IL_0000: ldarg.0
- IL_0001: call System.Void System.Object::.ctor()
- IL_0006: nop
- IL_0007: ret
- No exception handlers.
- System.Void Program/<>c::<<Main>$>b__0_0 (Foundation.NSTimer v) (internal compilercontrolled hidebysig reuseslot) // Token: [Method:0x0012]
- IL_0000: nop
- IL_0001: ldstr "MAGIC_WORD"
- IL_0006: call System.String System.Environment::GetEnvironmentVariable(System.String)
- IL_000b: call System.Void System.Console::WriteLine(System.String)
- IL_0010: nop
- IL_0011: ldc.i4.0
- IL_0012: call System.Void System.Environment::Exit(System.Int32)
- IL_0017: nop
- IL_0018: ret
- No exception handlers.
UIKit.UIWindow maccatalyst.AppDelegate::get_Window () (public compilercontrolled hidebysig reuseslot specialname virtual) // Token: [Method:0x0003]
IL_0000: ldarg.0
IL_0001: ldfld UIKit.UIWindow maccatalyst.AppDelegate::<Window>k__BackingField
maccatalyst, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
System.Void Program::<Main>$ (System.String[] args) (private compilercontrolled hidebysig reuseslot static) // Token: [Method:0x0001]
IL_0000: ldarg.0
IL_0001: ldnull
IL_0002: ldtoken maccatalyst.AppDelegate
IL_0007: call System.Type System.Type::GetTypeFromHandle(System.RuntimeTypeHandle)
IL_000c: call System.Void UIKit.UIApplication::Main(System.String[],System.Type,System.Type)
IL_0011: nop
IL_0012: ret
No exception handlers.
System.Void Program::.ctor () (public compilercontrolled hidebysig reuseslot rtspecialname specialname) // Token: [Method:0x0002]
IL_0000: ldarg.0
IL_0001: call System.Void System.Object::.ctor()
IL_0006: nop
IL_0007: ret
No exception handlers.
UIKit.UIWindow maccatalyst.AppDelegate::get_Window () (public compilercontrolled hidebysig reuseslot specialname virtual) // Token: [Method:0x0003]
IL_0000: ldarg.0
IL_0001: ldfld UIKit.UIWindow maccatalyst.AppDelegate::<Window>k__BackingField
IL_0006: ret
No exception handlers.
System.Void maccatalyst.AppDelegate::set_Window (UIKit.UIWindow value) (public compilercontrolled hidebysig reuseslot specialname virtual) // Token: [Method:0x0004]
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: stfld UIKit.UIWindow maccatalyst.AppDelegate::<Window>k__BackingField
IL_0007: ret
No exception handlers.
System.Boolean maccatalyst.AppDelegate::FinishedLaunching (UIKit.UIApplication application, Foundation.NSDictionary launchOptions) (public compilercontrolled hidebysig reuseslot virtual) // Token: [Method:0x0005]
2 local variables:
UIKit.UIViewController V_0
System.Boolean V_1
IL_0000: nop
IL_0001: ldarg.0
IL_0002: call UIKit.UIScreen UIKit.UIScreen::get_MainScreen()
IL_0007: callvirt CoreGraphics.CGRect UIKit.UIScreen::get_Bounds()
IL_000c: newobj System.Void UIKit.UIWindow::.ctor(CoreGraphics.CGRect)
IL_0011: callvirt System.Void UIKit.UIApplicationDelegate::set_Window(UIKit.UIWindow)
IL_0016: nop
IL_0017: newobj System.Void UIKit.UIViewController::.ctor()
IL_001c: stloc.0
IL_001d: ldloc.0
IL_001e: callvirt UIKit.UIView UIKit.UIViewController::get_View()
IL_0023: ldarg.0
IL_0024: callvirt UIKit.UIWindow UIKit.UIApplicationDelegate::get_Window()
IL_0029: callvirt CoreGraphics.CGRect UIKit.UIView::get_Frame()
IL_002e: newobj System.Void UIKit.UILabel::.ctor(CoreGraphics.CGRect)
IL_0033: dup
IL_0034: call UIKit.UIColor UIKit.UIColor::get_SystemBackground()
IL_0039: callvirt System.Void UIKit.UIView::set_BackgroundColor(UIKit.UIColor)
IL_003e: nop
IL_003f: dup
IL_0040: ldc.i4.1
IL_0041: conv.i8
IL_0042: callvirt System.Void UIKit.UILabel::set_TextAlignment(UIKit.UITextAlignment)
IL_0047: nop
IL_0048: dup
IL_0049: ldstr "Hello, Mac Catalyst!"
IL_004e: callvirt System.Void UIKit.UILabel::set_Text(System.String)
IL_0053: nop
IL_0054: dup
IL_0055: ldc.i4.s 63
IL_0057: conv.i8
IL_0058: callvirt System.Void UIKit.UIView::set_AutoresizingMask(UIKit.UIViewAutoresizing)
IL_005d: nop
IL_005e: callvirt System.Void UIKit.UIView::AddSubview(UIKit.UIView)
IL_0063: nop
IL_0064: ldarg.0
IL_0065: callvirt UIKit.UIWindow UIKit.UIApplicationDelegate::get_Window()
IL_006a: ldloc.0
IL_006b: callvirt System.Void UIKit.UIWindow::set_RootViewController(UIKit.UIViewController)
IL_0070: nop
IL_0071: ldarg.0
IL_0072: callvirt UIKit.UIWindow UIKit.UIApplicationDelegate::get_Window()
IL_0077: callvirt System.Void UIKit.UIWindow::MakeKeyAndVisible()
IL_007c: nop
IL_007d: ldc.i4.1
IL_007e: stloc.1
IL_007f: br.s IL_0081
IL_0081: ldloc.1
IL_0082: ret
No exception handlers.
System.Void maccatalyst.AppDelegate::.ctor () (public compilercontrolled hidebysig reuseslot rtspecialname specialname) // Token: [Method:0x0006]
IL_0000: ldarg.0
IL_0001: call System.Void UIKit.UIApplicationDelegate::.ctor()
IL_0006: nop
IL_0007: ret
No exception handlers.
UIKit.UIWindow maccatalyst.SceneDelegate::get_Window () (public compilercontrolled hidebysig reuseslot specialname) // Token: [Method:0x0007]
IL_0000: ldarg.0
IL_0001: ldfld UIKit.UIWindow maccatalyst.SceneDelegate::<Window>k__BackingField
IL_0006: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::set_Window (UIKit.UIWindow value) (public compilercontrolled hidebysig reuseslot specialname) // Token: [Method:0x0008]
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: stfld UIKit.UIWindow maccatalyst.SceneDelegate::<Window>k__BackingField
IL_0007: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::WillConnect (UIKit.UIScene scene, UIKit.UISceneSession session, UIKit.UISceneConnectionOptions connectionOptions) (public compilercontrolled hidebysig reuseslot) // Token: [Method:0x0009]
IL_0000: nop
IL_0001: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::DidDisconnect (UIKit.UIScene scene) (public compilercontrolled hidebysig reuseslot) // Token: [Method:0x000a]
IL_0000: nop
IL_0001: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::DidBecomeActive (UIKit.UIScene scene) (public compilercontrolled hidebysig reuseslot) // Token: [Method:0x000b]
IL_0000: nop
IL_0001: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::WillResignActive (UIKit.UIScene scene) (public compilercontrolled hidebysig reuseslot) // Token: [Method:0x000c]
IL_0000: nop
IL_0001: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::WillEnterForeground (UIKit.UIScene scene) (public compilercontrolled hidebysig reuseslot) // Token: [Method:0x000d]
IL_0000: nop
IL_0001: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::DidEnterBackground (UIKit.UIScene scene) (public compilercontrolled hidebysig reuseslot) // Token: [Method:0x000e]
IL_0000: nop
IL_0001: ret
No exception handlers.
System.Void maccatalyst.SceneDelegate::.ctor () (public compilercontrolled hidebysig reuseslot rtspecialname specialname) // Token: [Method:0x000f]
IL_0000: ldarg.0
IL_0001: call System.Void UIKit.UIResponder::.ctor()
IL_0006: nop
IL_0007: ret
No exception handlers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment