text: // Autogenerated from CppHeaderCreator
  // Created by Sc2ad
  // =========================================================================
  #pragma once
  // Begin includes
  #include "beatsaber-hook/shared/utils/typedefs.h"
  #include "beatsaber-hook/shared/utils/byref.hpp"
  // Including type: ConnectedPlayerManager
  #include "GlobalNamespace/ConnectedPlayerManager.hpp"
  // Including type: System.ValueType
  #include "System/ValueType.hpp"
  // Including type: System.Runtime.CompilerServices.IAsyncStateMachine
  #include "System/Runtime/CompilerServices/IAsyncStateMachine.hpp"
  // Including type: System.Runtime.CompilerServices.AsyncVoidMethodBuilder
  #include "System/Runtime/CompilerServices/AsyncVoidMethodBuilder.hpp"
  // Including type: System.Runtime.CompilerServices.TaskAwaiter`1
  #include "System/Runtime/CompilerServices/TaskAwaiter_1.hpp"
  // Including type: EncryptionUtility
  #include "GlobalNamespace/EncryptionUtility.hpp"
  #include "beatsaber-hook/shared/utils/typedefs-array.hpp"
  // Completed includes
  #include "beatsaber-hook/shared/utils/il2cpp-type-check.hpp"
  DEFINE_IL2CPP_ARG_TYPE(::GlobalNamespace::ConnectedPlayerManager::$InitializePlayerEncryption$d__126, "", "ConnectedPlayerManager/<InitializePlayerEncryption>d__126");
  // Type namespace: 
  namespace GlobalNamespace {
    // WARNING Size may be invalid!
    // Autogenerated type: ConnectedPlayerManager/<InitializePlayerEncryption>d__126
    // [TokenAttribute] Offset: FFFFFFFF
    // [CompilerGeneratedAttribute] Offset: FFFFFFFF
    struct ConnectedPlayerManager::$InitializePlayerEncryption$d__126/*, public ::System::ValueType, public ::System::Runtime::CompilerServices::IAsyncStateMachine*/ {
      public:
      public:
      // public System.Int32 <>1__state
      // Size: 0x4
      // Offset: 0x0
      int $$1__state;
      // Field size check
      static_assert(sizeof(int) == 0x4);
      // public System.Runtime.CompilerServices.AsyncVoidMethodBuilder <>t__builder
      // Size: 0x20
      // Offset: 0x8
      ::System::Runtime::CompilerServices::AsyncVoidMethodBuilder $$t__builder;
      // Field size check
      static_assert(sizeof(::System::Runtime::CompilerServices::AsyncVoidMethodBuilder) == 0x20);
      // public ConnectedPlayerManager <>4__this
      // Size: 0x8
      // Offset: 0x28
      ::GlobalNamespace::ConnectedPlayerManager* $$4__this;
      // Field size check
      static_assert(sizeof(::GlobalNamespace::ConnectedPlayerManager*) == 0x8);
      // public ConnectedPlayerManager/ConnectedPlayer player
      // Size: 0x8
      // Offset: 0x30
      ::GlobalNamespace::ConnectedPlayerManager::ConnectedPlayer* player;
      // Field size check
      static_assert(sizeof(::GlobalNamespace::ConnectedPlayerManager::ConnectedPlayer*) == 0x8);
      // private System.Boolean <isClient>5__2
      // Size: 0x1
      // Offset: 0x38
      bool $isClient$5__2;
      // Field size check
      static_assert(sizeof(bool) == 0x1);
      // private System.Runtime.CompilerServices.TaskAwaiter`1<System.Byte[]> <>u__1
      // Size: 0xFFFFFFFF
      // Offset: 0x40
      ::System::Runtime::CompilerServices::TaskAwaiter_1<::ArrayW<uint8_t>> $$u__1;
      // private System.Runtime.CompilerServices.TaskAwaiter`1<EncryptionUtility/IEncryptionState> <>u__2
      // Size: 0xFFFFFFFF
      // Offset: 0x48
      ::System::Runtime::CompilerServices::TaskAwaiter_1<::GlobalNamespace::EncryptionUtility::IEncryptionState*> $$u__2;
      public:
      // Creating value type constructor for type: $InitializePlayerEncryption$d__126
      constexpr $InitializePlayerEncryption$d__126(int $$1__state_ = {}, ::System::Runtime::CompilerServices::AsyncVoidMethodBuilder $$t__builder_ = {}, ::GlobalNamespace::ConnectedPlayerManager* $$4__this_ = {}, ::GlobalNamespace::ConnectedPlayerManager::ConnectedPlayer* player_ = {}, bool $isClient$5__2_ = {}, ::System::Runtime::CompilerServices::TaskAwaiter_1<::ArrayW<uint8_t>> $$u__1_ = {}, ::System::Runtime::CompilerServices::TaskAwaiter_1<::GlobalNamespace::EncryptionUtility::IEncryptionState*> $$u__2_ = {}) noexcept : $$1__state{$$1__state_}, $$t__builder{$$t__builder_}, $$4__this{$$4__this_}, player{player_}, $isClient$5__2{$isClient$5__2_}, $$u__1{$$u__1_}, $$u__2{$$u__2_} {}
      // Creating interface conversion operator: operator ::System::ValueType
      operator ::System::ValueType() noexcept {
        return *reinterpret_cast<::System::ValueType*>(this);
      }
      // Creating interface conversion operator: operator ::System::Runtime::CompilerServices::IAsyncStateMachine
      operator ::System::Runtime::CompilerServices::IAsyncStateMachine() noexcept {
        return *reinterpret_cast<::System::Runtime::CompilerServices::IAsyncStateMachine*>(this);
      }
      // Get instance field reference: public System.Int32 <>1__state
      int& dyn_$$1__state();
      // Get instance field reference: public System.Runtime.CompilerServices.AsyncVoidMethodBuilder <>t__builder
      ::System::Runtime::CompilerServices::AsyncVoidMethodBuilder& dyn_$$t__builder();
      // Get instance field reference: public ConnectedPlayerManager <>4__this
      ::GlobalNamespace::ConnectedPlayerManager*& dyn_$$4__this();
      // Get instance field reference: public ConnectedPlayerManager/ConnectedPlayer player
      ::GlobalNamespace::ConnectedPlayerManager::ConnectedPlayer*& dyn_player();
      // Get instance field reference: private System.Boolean <isClient>5__2
      bool& dyn_$isClient$5__2();
      // Get instance field reference: private System.Runtime.CompilerServices.TaskAwaiter`1<System.Byte[]> <>u__1
      ::System::Runtime::CompilerServices::TaskAwaiter_1<::ArrayW<uint8_t>>& dyn_$$u__1();
      // Get instance field reference: private System.Runtime.CompilerServices.TaskAwaiter`1<EncryptionUtility/IEncryptionState> <>u__2
      ::System::Runtime::CompilerServices::TaskAwaiter_1<::GlobalNamespace::EncryptionUtility::IEncryptionState*>& dyn_$$u__2();
      // private System.Void MoveNext()
      // Offset: 0x163C24C
      void MoveNext();
      // private System.Void SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine stateMachine)
      // Offset: 0x163C7CC
      void SetStateMachine(::System::Runtime::CompilerServices::IAsyncStateMachine* stateMachine);
    }; // ConnectedPlayerManager/<InitializePlayerEncryption>d__126
    // WARNING Not writing size check since size may be invalid!
  }
  #include "beatsaber-hook/shared/utils/il2cpp-utils-methods.hpp"
  // Writing MetadataGetter for method: GlobalNamespace::ConnectedPlayerManager::$InitializePlayerEncryption$d__126::MoveNext
  // Il2CppName: MoveNext
  template<>
  struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<void (GlobalNamespace::ConnectedPlayerManager::$InitializePlayerEncryption$d__126::*)()>(&GlobalNamespace::ConnectedPlayerManager::$InitializePlayerEncryption$d__126::MoveNext)> {
    static const MethodInfo* get() {
      return ::il2cpp_utils::FindMethod(classof(GlobalNamespace::ConnectedPlayerManager::$InitializePlayerEncryption$d__126), "MoveNext", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{});
    }
  };
  // Writing MetadataGetter for method: GlobalNamespace::ConnectedPlayerManager::$InitializePlayerEncryption$d__126::SetStateMachine
  // Il2CppName: SetStateMachine
  template<>
  struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<void (GlobalNamespace::ConnectedPlayerManager::$InitializePlayerEncryption$d__126::*)(::System::Runtime::CompilerServices::IAsyncStateMachine*)>(&GlobalNamespace::ConnectedPlayerManager::$InitializePlayerEncryption$d__126::SetStateMachine)> {
    static const MethodInfo* get() {
      static auto* stateMachine = &::il2cpp_utils::GetClassFromName("System.Runtime.CompilerServices", "IAsyncStateMachine")->byval_arg;
      return ::il2cpp_utils::FindMethod(classof(GlobalNamespace::ConnectedPlayerManager::$InitializePlayerEncryption$d__126), "SetStateMachine", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{stateMachine});
    }
  };
  