hexsha
stringlengths 40
40
| size
int64 7
1.05M
| ext
stringclasses 13
values | lang
stringclasses 1
value | max_stars_repo_path
stringlengths 4
269
| max_stars_repo_name
stringlengths 5
109
| max_stars_repo_head_hexsha
stringlengths 40
40
| max_stars_repo_licenses
listlengths 1
9
| max_stars_count
int64 1
191k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 4
269
| max_issues_repo_name
stringlengths 5
116
| max_issues_repo_head_hexsha
stringlengths 40
40
| max_issues_repo_licenses
listlengths 1
9
| max_issues_count
int64 1
48.5k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 4
269
| max_forks_repo_name
stringlengths 5
116
| max_forks_repo_head_hexsha
stringlengths 40
40
| max_forks_repo_licenses
listlengths 1
9
| max_forks_count
int64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 7
1.05M
| avg_line_length
float64 1.21
330k
| max_line_length
int64 6
990k
| alphanum_fraction
float64 0.01
0.99
| author_id
stringlengths 2
40
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12df926a4afd224c8e4ba65a64e9adbdd1b08582
| 18,020
|
cpp
|
C++
|
frontends/ygas.cpp
|
path64/assembler
|
32ade96bc087d3a3e015e03d69fa48c41a7071a6
|
[
"BSD-2-Clause"
] | 1
|
2016-06-03T20:02:45.000Z
|
2016-06-03T20:02:45.000Z
|
frontends/ygas.cpp
|
path64/assembler
|
32ade96bc087d3a3e015e03d69fa48c41a7071a6
|
[
"BSD-2-Clause"
] | null | null | null |
frontends/ygas.cpp
|
path64/assembler
|
32ade96bc087d3a3e015e03d69fa48c41a7071a6
|
[
"BSD-2-Clause"
] | null | null | null |
//
// GNU AS-like frontend
//
// Copyright (C) 2001-2010 Peter Johnson
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND OTHER CONTRIBUTORS ``AS IS''
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//
#include "config.h"
#include <memory>
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include "yasmx/Basic/Diagnostic.h"
#include "yasmx/Basic/FileManager.h"
#include "yasmx/Basic/SourceManager.h"
#include "yasmx/Frontend/DiagnosticOptions.h"
#include "yasmx/Frontend/TextDiagnosticPrinter.h"
#include "yasmx/Parse/HeaderSearch.h"
#include "yasmx/Parse/Parser.h"
#include "yasmx/Support/registry.h"
#include "yasmx/System/plugin.h"
#include "yasmx/Arch.h"
#include "yasmx/Assembler.h"
#include "yasmx/DebugFormat.h"
#include "yasmx/Expr.h"
#include "yasmx/IntNum.h"
#include "yasmx/ListFormat.h"
#include "yasmx/Module.h"
#include "yasmx/Object.h"
#include "yasmx/ObjectFormat.h"
#include "yasmx/Symbol.h"
#ifdef HAVE_LIBGEN_H
#include <libgen.h>
#endif
#include "frontends/license.cpp"
// Preprocess-only buffer size
#define PREPROC_BUF_SIZE 16384
using namespace yasm;
namespace cl = llvm::cl;
static std::auto_ptr<raw_ostream> errfile;
// version message
static const char* full_version =
PACKAGE_NAME " " PACKAGE_VERSION;
void
PrintVersion()
{
llvm::outs()
<< full_version << '\n'
<< "Compiled on " __DATE__ ".\n"
<< "Copyright (c) 2009-2011 PathScale Inc. and others. All Rights Reserved.\n"
<< "You can find complete copyright, patent and legal notices in the "
<< "corresponding documentation.\n";
}
// extra help messages
static cl::extrahelp help_tail(
"\n"
"Files are asm sources to be assembled.\n"
"\n"
"Sample invocation:\n"
" pathas -32 -o object.o source.s\n"
"\n"
"Report bugs to support@pathscale.com\n");
static cl::opt<std::string> in_filename(cl::Positional,
cl::desc("file"));
// -32
static cl::list<bool> bits_32("32",
cl::desc("set 32-bit output"));
// -64
static cl::list<bool> bits_64("64",
cl::desc("set 64-bit output"));
// -defsym
static cl::list<std::string> defsym("defsym",
cl::desc("define symbol"));
// -D (ignored)
static cl::list<std::string> ignored_D("D",
cl::desc("Ignored"),
cl::Prefix,
cl::Hidden);
// -dump-object
static cl::opt<Assembler::ObjectDumpTime> dump_object("dump-object",
cl::desc("Dump object in XML after this phase:"),
cl::values(
clEnumValN(Assembler::DUMP_NEVER, "never", "never dump"),
clEnumValN(Assembler::DUMP_AFTER_PARSE, "parsed",
"after parse phase"),
clEnumValN(Assembler::DUMP_AFTER_FINALIZE, "finalized",
"after finalization"),
clEnumValN(Assembler::DUMP_AFTER_OPTIMIZE, "optimized",
"after optimization"),
clEnumValN(Assembler::DUMP_AFTER_OUTPUT, "output",
"after output"),
clEnumValEnd));
// --execstack, --noexecstack
static cl::list<bool> execstack("execstack",
cl::desc("require executable stack for this object"));
static cl::list<bool> noexecstack("noexecstack",
cl::desc("don't require executable stack for this object"));
// -J
static cl::list<bool> no_signed_overflow("J",
cl::desc("don't warn about signed overflow"));
// -I
static cl::list<std::string> include_paths("I",
cl::desc("Add include path"),
cl::value_desc("path"),
cl::Prefix);
// --license
static cl::opt<bool> show_license("license",
cl::desc("Show license text"));
// --plugin
#ifndef BUILD_STATIC
static cl::list<std::string> plugin_names("plugin",
cl::desc("Load plugin module"),
cl::value_desc("plugin"));
#endif
// -o
static cl::opt<std::string> obj_filename("o",
cl::desc("Name of object-file output"),
cl::value_desc("filename"),
cl::Prefix);
// -w
static cl::opt<bool> ignored_w("w",
cl::desc("Ignored"),
cl::ZeroOrMore,
cl::Hidden);
// -x
static cl::opt<bool> ignored_x("x",
cl::desc("Ignored"),
cl::ZeroOrMore,
cl::Hidden);
// -Qy
static cl::opt<bool> ignored_qy("Qy",
cl::desc("Ignored"),
cl::ZeroOrMore,
cl::Hidden);
// -Qn
static cl::opt<bool> ignored_qn("Qn",
cl::desc("Ignored"),
cl::ZeroOrMore,
cl::Hidden);
// -W, --no-warn
static cl::list<bool> inhibit_warnings("W",
cl::desc("Suppress warning messages"));
static cl::alias inhibit_warnings_long("no-warn",
cl::desc("Alias for -W"),
cl::aliasopt(inhibit_warnings));
// --fatal-warnings
static cl::list<bool> fatal_warnings("fatal-warnings",
cl::desc("Suppress warning messages"));
// --warn
static cl::list<bool> enable_warnings("warn",
cl::desc("Don't suppress warning messages or treat them as errors"));
// sink to warn instead of error on unrecognized options
static cl::list<std::string> unknown_options(cl::Sink);
static void
ApplyWarningSettings(DiagnosticsEngine& diags)
{
// Disable init-nobits and uninit-contents by default.
diags.setDiagnosticGroupMapping("init-nobits", diag::MAP_IGNORE);
diags.setDiagnosticGroupMapping("uninit-contents", diag::MAP_IGNORE);
// Walk through inhibit_warnings, fatal_warnings, enable_warnings, and
// no_signed_overflow in parallel, ordering by command line argument
// position.
unsigned int inhibit_pos = 0, inhibit_num = 0;
unsigned int enable_pos = 0, enable_num = 0;
unsigned int fatal_pos = 0, fatal_num = 0;
unsigned int signed_pos = 0, signed_num = 0;
for (;;)
{
if (inhibit_num < inhibit_warnings.size())
inhibit_pos = inhibit_warnings.getPosition(inhibit_num);
else
inhibit_pos = 0;
if (enable_num < enable_warnings.size())
enable_pos = enable_warnings.getPosition(enable_num);
else
enable_pos = 0;
if (fatal_num < fatal_warnings.size())
fatal_pos = fatal_warnings.getPosition(fatal_num);
else
fatal_pos = 0;
if (signed_num < no_signed_overflow.size())
signed_pos = no_signed_overflow.getPosition(signed_num);
else
signed_pos = 0;
if (inhibit_pos != 0 &&
(enable_pos == 0 || inhibit_pos < enable_pos) &&
(fatal_pos == 0 || inhibit_pos < fatal_pos) &&
(signed_pos == 0 || inhibit_pos < signed_pos))
{
// Handle inhibit option
++inhibit_num;
diags.setIgnoreAllWarnings(true);
}
else if (enable_pos != 0 &&
(inhibit_pos == 0 || enable_pos < inhibit_pos) &&
(fatal_pos == 0 || enable_pos < fatal_pos) &&
(signed_pos == 0 || enable_pos < signed_pos))
{
// Handle enable option
++enable_num;
diags.setIgnoreAllWarnings(false);
diags.setWarningsAsErrors(false);
diags.setDiagnosticGroupMapping("signed-overflow",
diag::MAP_WARNING);
}
else if (fatal_pos != 0 &&
(enable_pos == 0 || fatal_pos < enable_pos) &&
(inhibit_pos == 0 || fatal_pos < inhibit_pos) &&
(signed_pos == 0 || fatal_pos < signed_pos))
{
// Handle fatal option
++fatal_num;
diags.setWarningsAsErrors(true);
}
else if (signed_pos != 0 &&
(enable_pos == 0 || signed_pos < enable_pos) &&
(fatal_pos == 0 || signed_pos < fatal_pos) &&
(inhibit_pos == 0 || signed_pos < inhibit_pos))
{
// Handle signed option
++signed_num;
diags.setDiagnosticGroupMapping("signed-overflow",
diag::MAP_IGNORE);
}
else
break; // we're done with the list
}
}
static std::string
GetBitsSetting()
{
std::string bits = YGAS_OBJFMT_BITS;
// Walk through bits_32 and bits_64 in parallel, ordering by command line
// argument position.
unsigned int bits32_pos = 0, bits32_num = 0;
unsigned int bits64_pos = 0, bits64_num = 0;
for (;;)
{
if (bits32_num < bits_32.size())
bits32_pos = bits_32.getPosition(bits32_num);
else
bits32_pos = 0;
if (bits64_num < bits_64.size())
bits64_pos = bits_64.getPosition(bits64_num);
else
bits64_pos = 0;
if (bits32_pos != 0 && (bits64_pos == 0 || bits32_pos < bits64_pos))
{
// Handle bits32 option
++bits32_num;
bits = "32";
}
else if (bits64_pos != 0 &&
(bits32_pos == 0 || bits64_pos < bits32_pos))
{
// Handle bits64 option
++bits64_num;
bits = "64";
}
else
break; // we're done with the list
}
return bits;
}
static void
ConfigureObject(Object& object)
{
Object::Config& config = object.getConfig();
// Walk through execstack and noexecstack in parallel, ordering by command
// line argument position.
unsigned int exec_pos = 0, exec_num = 0;
unsigned int noexec_pos = 0, noexec_num = 0;
for (;;)
{
if (exec_num < execstack.size())
exec_pos = execstack.getPosition(exec_num);
else
exec_pos = 0;
if (noexec_num < noexecstack.size())
noexec_pos = noexecstack.getPosition(noexec_num);
else
noexec_pos = 0;
if (exec_pos != 0 && (noexec_pos == 0 || exec_pos < noexec_pos))
{
// Handle exec option
++exec_num;
config.ExecStack = true;
config.NoExecStack = false;
}
else if (noexec_pos != 0 && (exec_pos == 0 || noexec_pos < exec_pos))
{
// Handle noexec option
++noexec_num;
config.ExecStack = false;
config.NoExecStack = true;
}
else
break; // we're done with the list
}
}
static int
do_assemble(SourceManager& source_mgr, DiagnosticsEngine& diags)
{
// Apply warning settings
ApplyWarningSettings(diags);
// Determine objfmt_bits based on -32 and -64 options
std::string objfmt_bits = GetBitsSetting();
FileManager& file_mgr = source_mgr.getFileManager();
Assembler assembler("x86", YGAS_OBJFMT_BASE + objfmt_bits, diags,
dump_object);
HeaderSearch headers(file_mgr);
if (diags.hasFatalErrorOccurred())
return EXIT_FAILURE;
// Set object filename if specified.
if (!obj_filename.empty())
assembler.setObjectFilename(obj_filename);
// Set parser.
assembler.setParser("gas", diags);
if (diags.hasFatalErrorOccurred())
return EXIT_FAILURE;
// Set debug format to dwarf2pass if it's legal for this object format.
if (assembler.isOkDebugFormat("dwarf2pass"))
{
assembler.setDebugFormat("dwarf2pass", diags);
if (diags.hasFatalErrorOccurred())
return EXIT_FAILURE;
}
// open the input file or STDIN (for filename of "-")
if (in_filename == "-")
{
OwningPtr<MemoryBuffer> my_stdin;
if (llvm::error_code err = MemoryBuffer::getSTDIN(my_stdin))
{
diags.Report(SourceLocation(), diag::fatal_file_open)
<< in_filename << err.message();
return EXIT_FAILURE;
}
source_mgr.createMainFileIDForMemBuffer(my_stdin.take());
}
else
{
const FileEntry* in = file_mgr.getFile(in_filename);
if (!in)
{
diags.Report(SourceLocation(), diag::fatal_file_open)
<< in_filename;
return EXIT_FAILURE;
}
source_mgr.createMainFileID(in);
}
// Initialize the object.
if (!assembler.InitObject(source_mgr, diags))
return EXIT_FAILURE;
// Configure object per command line parameters.
ConfigureObject(*assembler.getObject());
// Predefine symbols.
for (std::vector<std::string>::const_iterator i=defsym.begin(),
end=defsym.end(); i != end; ++i)
{
StringRef str(*i);
size_t equalpos = str.find('=');
if (equalpos == StringRef::npos)
{
diags.Report(diag::fatal_bad_defsym) << str;
continue;
}
StringRef name = str.slice(0, equalpos);
StringRef vstr = str.slice(equalpos+1, StringRef::npos);
IntNum value;
if (!vstr.empty())
{
// determine radix
unsigned int radix;
if (vstr[0] == '0' && vstr.size() > 1 &&
(vstr[1] == 'x' || vstr[1] == 'X'))
{
vstr = vstr.substr(2);
radix = 16;
}
else if (vstr[0] == '0')
{
vstr = vstr.substr(1);
radix = 8;
}
else
radix = 10;
// check validity
const char* ptr = vstr.begin();
const char* end = vstr.end();
if (radix == 16)
{
while (ptr != end && isxdigit(*ptr))
++ptr;
}
else if (radix == 8)
{
while (ptr != end && (*ptr >= '0' && *ptr <= '7'))
++ptr;
}
else
{
while (ptr != end && isdigit(*ptr))
++ptr;
}
if (ptr != end)
{
diags.Report(diag::fatal_bad_defsym) << name;
continue;
}
value.setStr(vstr, radix);
}
// define equ
assembler.getObject()->getSymbol(name)->DefineEqu(Expr(value));
}
if (diags.hasFatalErrorOccurred())
return EXIT_FAILURE;
// Initialize the parser.
assembler.InitParser(source_mgr, diags, headers);
// Assemble the input.
if (!assembler.Assemble(source_mgr, diags))
{
// An error occurred during assembly.
return EXIT_FAILURE;
}
// open the object file for output
std::string err;
raw_fd_ostream out(assembler.getObjectFilename().str().c_str(),
err, raw_fd_ostream::F_Binary);
if (!err.empty())
{
diags.Report(SourceLocation(), diag::err_cannot_open_file)
<< obj_filename << err;
return EXIT_FAILURE;
}
if (!assembler.Output(out, diags))
{
// An error occurred during output.
// If we had an error at this point, we also need to delete the output
// object file (to make sure it's not left newer than the source).
out.close();
remove(assembler.getObjectFilename().str().c_str());
return EXIT_FAILURE;
}
// close object file
out.close();
return EXIT_SUCCESS;
}
// main function
int
main(int argc, char* argv[])
{
llvm::llvm_shutdown_obj llvm_manager(false);
cl::SetVersionPrinter(&PrintVersion);
cl::ParseCommandLineOptions(argc, argv, "", true);
// Handle special exiting options
if (show_license)
{
for (std::size_t i=0; i<sizeof(license_msg)/sizeof(license_msg[0]); i++)
llvm::outs() << license_msg[i] << '\n';
return EXIT_SUCCESS;
}
DiagnosticOptions diag_opts;
diag_opts.ShowOptionNames = 1;
diag_opts.ShowSourceRanges = 1;
TextDiagnosticPrinter diag_printer(llvm::errs(), diag_opts);
IntrusiveRefCntPtr<DiagnosticIDs> diagids(new DiagnosticIDs);
DiagnosticsEngine diags(diagids, &diag_printer, false);
FileSystemOptions opts;
FileManager file_mgr(opts);
SourceManager source_mgr(diags, file_mgr);
diags.setSourceManager(&source_mgr);
diag_printer.setPrefix("ygas");
for (std::vector<std::string>::const_iterator i=unknown_options.begin(),
end=unknown_options.end(); i != end; ++i)
{
diags.Report(diag::warn_unknown_command_line_option) << *i;
}
// Load standard modules
if (!LoadStandardPlugins())
{
diags.Report(diag::fatal_standard_modules);
return EXIT_FAILURE;
}
#ifndef BUILD_STATIC
// Load plugins
for (std::vector<std::string>::const_iterator i=plugin_names.begin(),
end=plugin_names.end(); i != end; ++i)
{
if (!LoadPlugin(*i))
diags.Report(diag::warn_plugin_load) << *i;
}
#endif
// Default to stdin if no filename specified.
if (in_filename.empty())
in_filename = "-";
return do_assemble(source_mgr, diags);
}
| 30.439189
| 86
| 0.600999
|
path64
|
12f130ef27758fd5d78ce2b82dda5d14b4110b0c
| 59,925
|
cpp
|
C++
|
Official Windows Platform Sample/Windows 8.1 Store app samples/[C++]-Windows 8.1 Store app samples/Media capture using capture device sample/C++/AdvancedCapture.xaml.cpp
|
zzgchina888/msdn-code-gallery-microsoft
|
21cb9b6bc0da3b234c5854ecac449cb3bd261f29
|
[
"MIT"
] | 2
|
2022-01-21T01:40:58.000Z
|
2022-01-21T01:41:10.000Z
|
Official Windows Platform Sample/Windows 8.1 Store app samples/[C++]-Windows 8.1 Store app samples/Media capture using capture device sample/C++/AdvancedCapture.xaml.cpp
|
zzgchina888/msdn-code-gallery-microsoft
|
21cb9b6bc0da3b234c5854ecac449cb3bd261f29
|
[
"MIT"
] | 1
|
2022-03-15T04:21:41.000Z
|
2022-03-15T04:21:41.000Z
|
Official Windows Platform Sample/Windows 8.1 Store app samples/[C++]-Windows 8.1 Store app samples/Media capture using capture device sample/C++/AdvancedCapture.xaml.cpp
|
zzgchina888/msdn-code-gallery-microsoft
|
21cb9b6bc0da3b234c5854ecac449cb3bd261f29
|
[
"MIT"
] | null | null | null |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************************************
//
// AdvancedCapture.xaml.cpp
// Implementation of the AdvancedCapture class
//
#include "pch.h"
#include "AdvancedCapture.xaml.h"
using namespace SDKSample::MediaCapture;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml::Navigation;
using namespace Windows::UI::Xaml::Data;
using namespace Windows::System;
using namespace Windows::Foundation;
using namespace Platform;
using namespace Windows::UI;
using namespace Windows::UI::Core;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml::Controls;
using namespace Windows::UI::Xaml::Data;
using namespace Windows::UI::Xaml::Media;
using namespace Windows::Storage;
using namespace Windows::Media::MediaProperties;
using namespace Windows::Storage::Streams;
using namespace Windows::System;
using namespace Windows::UI::Xaml::Media::Imaging;
using namespace Windows::Devices::Enumeration;
using namespace Windows::Media;
using namespace Windows::Media::Capture;
ref class ReencodeState sealed
{
public:
ReencodeState()
{
}
virtual ~ReencodeState()
{
if (InputStream != nullptr)
{
delete InputStream;
}
if (OutputStream != nullptr)
{
delete OutputStream;
}
}
internal:
Windows::Storage::Streams::IRandomAccessStream ^InputStream;
Windows::Storage::Streams::IRandomAccessStream ^OutputStream;
Windows::Storage::StorageFile ^PhotoStorage;
Windows::Graphics::Imaging::BitmapDecoder ^Decoder;
Windows::Graphics::Imaging::BitmapEncoder ^Encoder;
};
AdvancedCapture::AdvancedCapture()
{
InitializeComponent();
ScenarioInit();
}
/// <summary>
/// Invoked when this page is about to be displayed in a Frame.
/// </summary>
/// <param name="e">Event data that describes how this page was reached. The Parameter
/// property is typically used to configure the page.</param>
void AdvancedCapture::OnNavigatedTo(NavigationEventArgs^ e)
{
// A pointer back to the main page. This is needed if you want to call methods in MainPage such
// as NotifyUser()
rootPage = MainPage::Current;
SystemMediaTransportControls^ systemMediaControls = SystemMediaTransportControls::GetForCurrentView();
m_eventRegistrationToken = systemMediaControls->PropertyChanged += ref new TypedEventHandler<SystemMediaTransportControls^, SystemMediaTransportControlsPropertyChangedEventArgs^>(this, &AdvancedCapture::SystemMediaControlsPropertyChanged);
Windows::Graphics::Display::DisplayInformation^ displayInfo =
Windows::Graphics::Display::DisplayInformation::GetForCurrentView();
m_displayOrientation = displayInfo->CurrentOrientation;
m_orientationChangedEventToken = displayInfo->OrientationChanged += ref new TypedEventHandler<Windows::Graphics::Display::DisplayInformation^, Platform::Object^>(this, &AdvancedCapture::DisplayInfo_OrientationChanged);
}
void AdvancedCapture::OnNavigatedFrom(NavigationEventArgs^ e)
{
SystemMediaTransportControls^ systemMediaControls = SystemMediaTransportControls::GetForCurrentView();
systemMediaControls->PropertyChanged -= m_eventRegistrationToken;
Windows::Graphics::Display::DisplayInformation::GetForCurrentView()->OrientationChanged -= m_orientationChangedEventToken;
ScenarioClose();
}
void AdvancedCapture::ScenarioInit()
{
rootPage = MainPage::Current;
btnStartDevice2->IsEnabled = true;
btnStartPreview2->IsEnabled = false;
btnStartStopRecord2->IsEnabled = false;
btnStartStopRecord2->Content = "StartRecord";
btnTakePhoto2->IsEnabled = false;
btnTakePhoto2->Content = "TakePhoto";
m_bRecording = false;
m_bPreviewing = false;
m_bEffectAdded = false;
m_bSuspended = false;
m_bLowLagPrepared = false;
chkAddRemoveEffect->IsChecked = false;
chkAddRemoveEffect->IsEnabled = false;
radTakePhoto->IsEnabled = false;
radRecord->IsEnabled = false;
radTakePhoto->IsChecked = false;
radRecord->IsChecked = false;
previewElement2->Source = nullptr;
playbackElement2->Source = nullptr;
imageElement2->Source = nullptr;
ShowStatusMessage("");
EnumerateWebcamsAsync();
EnumerateMicrophonesAsync();
SceneModeList2->SelectedIndex = -1;
SceneModeList2->Items->Clear();
m_rotHeight = previewElement2->Width;
m_rotWidth = previewElement2->Height;
}
task<void> AdvancedCapture::StopLowLagPhotoAsync()
{
btnTakePhoto2->IsEnabled = false;
if (m_bLowLagPrepared)
{
ShowStatusMessage("Stopping LowLagPhoto");
m_bLowLagPrepared = false;
return create_task(m_lowLagPhoto->FinishAsync()).then([this](task<void> Task)
{
try
{
Task.get();
m_lowLagPhoto = nullptr;
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
}
});
}
else
{
task_completion_event<void> emptyTask;
emptyTask.set();
return create_task(emptyTask);
}
}
task<void> AdvancedCapture::StopLowLagRecordAsync()
{
btnStartStopRecord2->IsEnabled = false;
if (m_bRecording)
{
ShowStatusMessage("Stopping LowLagRecord");
m_bRecording = false;
if (safe_cast<String^>(btnStartStopRecord2->Content) == "StartRecord")
{
m_recordStorageFile->DeleteAsync();
}
return create_task(m_lowLagRecord->FinishAsync())
.then([this](task<void> Task)
{
try
{
Task.get();
m_lowLagRecord = nullptr;
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
}
});
}
else
{
task_completion_event<void> emptyTask;
emptyTask.set();
return create_task(emptyTask);
}
}
void AdvancedCapture::ScenarioClose()
{
create_task(StopLowLagPhotoAsync())
.then([this](task<void> StopLowLagPhotoTask)
{
StopLowLagPhotoTask.get();
return StopLowLagRecordAsync();
//If StopLowLagPhotoAsync() returns empty task, it may spin off the UI thread and come back with differnt thread number
//use "task_continuation_context::use_current()" to keep running within the same thread
}, task_continuation_context::use_current()).then([this](task<void> StopLowLagRecordTask)
{
try
{
StopLowLagRecordTask.get();
ShowStatusMessage("Stopping Preview and Camera");
previewElement2->Source = nullptr;
if (m_mediaCaptureMgr.Get() != nullptr)
{
delete(m_mediaCaptureMgr.Get());
m_bPreviewing = false;
}
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
}
//If StopLowLagRecordAsync() returns empty task, it may spin off the UI thread and come back with differnt thread number
//use "task_continuation_context::use_current()" to keep running within the same thread
}, task_continuation_context::use_current());
}
void AdvancedCapture::SystemMediaControlsPropertyChanged(SystemMediaTransportControls^ sender, SystemMediaTransportControlsPropertyChangedEventArgs^ e)
{
switch (e->Property)
{
case SystemMediaTransportControlsProperty::SoundLevel:
create_task(Dispatcher->RunAsync(Windows::UI::Core::CoreDispatcherPriority::High, ref new Windows::UI::Core::DispatchedHandler([this, sender]()
{
if (sender->SoundLevel != SoundLevel::Muted)
{
ScenarioInit();
}
else
{
ScenarioClose();
}
})));
break;
default:
break;
}
}
void AdvancedCapture::RecordLimitationExceeded(Windows::Media::Capture::MediaCapture ^currentCaptureObject)
{
if (safe_cast<String^>(btnStartStopRecord2->Content) == "StopRecord")
{
create_task(Dispatcher->RunAsync(Windows::UI::Core::CoreDispatcherPriority::High, ref new Windows::UI::Core::DispatchedHandler([this]()
{
ShowStatusMessage("Stopping Record on exceeding max record duration");
btnStartStopRecord2->IsEnabled = false;
}))).then([this]()
{
return m_lowLagRecord->FinishAsync();
}).then([this](task<void> recordTask)
{
try
{
recordTask.get();
m_bRecording = false;
ShowStatusMessage("Stopped record on exceeding max record duration:" + m_recordStorageFile->Path);
if (!m_mediaCaptureMgr->MediaCaptureSettings->ConcurrentRecordAndPhotoSupported)
{
//if camera does not support lowlag record and lowlag photo at the same time
//enable the checkbox
radTakePhoto->IsEnabled = true;
radRecord->IsEnabled = true;
}
//Prepare lowlag record for next round;
PrepareLowLagRecordAsync();
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
m_bRecording = false;
btnStartStopRecord2->Content = "StartRecord";
btnStartStopRecord2->IsEnabled = true;
}
});
}
}
void AdvancedCapture::Failed(Windows::Media::Capture::MediaCapture ^currentCaptureObject, Windows::Media::Capture::MediaCaptureFailedEventArgs^ currentFailure)
{
String ^message = "Fatal error" + currentFailure->Message;
create_task(Dispatcher->RunAsync(Windows::UI::Core::CoreDispatcherPriority::High,
ref new Windows::UI::Core::DispatchedHandler([this, message]()
{
ShowStatusMessage(message);
})));
}
void AdvancedCapture::PrepareLowLagRecordAsync()
{
if (m_bRecording == false)
{
PrepareForVideoRecording();
create_task(KnownFolders::VideosLibrary->CreateFileAsync(VIDEO_FILE_NAME, Windows::Storage::CreationCollisionOption::GenerateUniqueName))
.then([this](task<StorageFile^> fileTask)
{
this->m_recordStorageFile = fileTask.get();
ShowStatusMessage("Create record file successful");
MediaEncodingProfile^ recordProfile = nullptr;
recordProfile = MediaEncodingProfile::CreateMp4(Windows::Media::MediaProperties::VideoEncodingQuality::Auto);
return m_mediaCaptureMgr->PrepareLowLagRecordToStorageFileAsync(recordProfile, m_recordStorageFile);
}).then([this](LowLagMediaRecording ^lowLagRecord)
{
try
{
m_lowLagRecord = lowLagRecord;
btnStartStopRecord2->IsEnabled = true;
m_bRecording = true;
btnStartStopRecord2->Content = "StartRecord";
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
}
});
}
}
void AdvancedCapture::btnStartDevice_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
{
try
{
btnStartDevice2->IsEnabled = false;
m_bReversePreviewRotation = false;
ShowStatusMessage("Starting device");
auto mediaCapture = ref new Windows::Media::Capture::MediaCapture();
m_mediaCaptureMgr = mediaCapture;
auto settings = ref new Windows::Media::Capture::MediaCaptureInitializationSettings();
auto chosenDevInfo = m_devInfoCollection->GetAt(EnumedDeviceList2->SelectedIndex);
settings->VideoDeviceId = chosenDevInfo->Id;
if (EnumedMicrophonesList2->SelectedIndex >= 0 && m_microPhoneInfoCollection->Size > 0)
{
auto chosenMicrophoneInfo = m_microPhoneInfoCollection->GetAt(EnumedMicrophonesList2->SelectedIndex);
settings->AudioDeviceId = chosenMicrophoneInfo->Id;
}
if (chosenDevInfo->EnclosureLocation != nullptr && chosenDevInfo->EnclosureLocation->Panel == Windows::Devices::Enumeration::Panel::Back)
{
m_bRotateVideoOnOrientationChange = true;
m_bReversePreviewRotation = false;
}
else if (chosenDevInfo->EnclosureLocation != nullptr && chosenDevInfo->EnclosureLocation->Panel == Windows::Devices::Enumeration::Panel::Front)
{
m_bRotateVideoOnOrientationChange = true;
m_bReversePreviewRotation = true;
}
else
{
m_bRotateVideoOnOrientationChange = false;
}
create_task(mediaCapture->InitializeAsync(settings))
.then([this](task<void> initTask)
{
try
{
initTask.get();
auto mediaCapture = m_mediaCaptureMgr.Get();
if (mediaCapture->MediaCaptureSettings->VideoDeviceId != nullptr && mediaCapture->MediaCaptureSettings->AudioDeviceId != nullptr)
{
btnStartPreview2->IsEnabled = true;
ShowStatusMessage("Device initialized successful");
chkAddRemoveEffect->IsEnabled = true;
chkAddRemoveEffect->IsChecked = false;
mediaCapture->RecordLimitationExceeded += ref new Windows::Media::Capture::RecordLimitationExceededEventHandler(this, &AdvancedCapture::RecordLimitationExceeded);
mediaCapture->Failed += ref new Windows::Media::Capture::MediaCaptureFailedEventHandler(this, &AdvancedCapture::Failed);
if (!m_mediaCaptureMgr->MediaCaptureSettings->ConcurrentRecordAndPhotoSupported)
{
radTakePhoto->IsEnabled = true;
radRecord->IsEnabled = true;
//choose TakePhoto Mode as default
radTakePhoto->IsChecked = true;
}
else
{
//prepare lowlag photo, then prepare lowlag record
create_task(m_mediaCaptureMgr->PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties::CreateJpeg()))
.then([this](LowLagPhotoCapture ^photoCapture)
{
try
{
m_lowLagPhoto = photoCapture;
btnTakePhoto2->IsEnabled = true;
m_bLowLagPrepared = true;
PrepareLowLagRecordAsync();
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
}
});
//disable check options
radTakePhoto->IsEnabled = false;
radRecord->IsEnabled = false;
}
EnumerateSceneModeAsync();
}
else
{
btnStartDevice2->IsEnabled = true;
ShowStatusMessage("No VideoDevice/AudioDevice Found");
}
}
catch (Exception ^ e)
{
ShowExceptionMessage(e);
}
});
}
catch (Platform::Exception^ e)
{
ShowExceptionMessage(e);
}
}
void AdvancedCapture::btnStartPreview_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
{
m_bPreviewing = false;
try
{
ShowStatusMessage("Starting preview");
btnStartPreview2->IsEnabled = false;
auto mediaCapture = m_mediaCaptureMgr.Get();
previewCanvas2->Visibility = Windows::UI::Xaml::Visibility::Visible;
previewCanvas2->Background->Opacity = 0;
previewElement2->Source = mediaCapture;
create_task(mediaCapture->StartPreviewAsync())
.then([this](task<void> previewTask)
{
try
{
previewTask.get();
m_bPreviewing = true;
OrientationChanged();
ShowStatusMessage("Start preview successful");
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
}
});
}
catch (Platform::Exception^ e)
{
m_bPreviewing = false;
previewElement2->Source = nullptr;
btnStartPreview2->IsEnabled = true;
ShowExceptionMessage(e);
}
}
void AdvancedCapture::btnTakePhoto_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
{
try
{
ShowStatusMessage("Taking photo");
btnTakePhoto2->IsEnabled = false;
if (!m_mediaCaptureMgr->MediaCaptureSettings->ConcurrentRecordAndPhotoSupported)
{
//disable check box while taking photo
radTakePhoto->IsEnabled = false;
radRecord->IsEnabled = false;
}
create_task(m_lowLagPhoto->CaptureAsync()).then([this](CapturedPhoto ^photo)
{
auto currentRotation = GetCurrentPhotoRotation();
return ReencodePhotoAsync(photo->Frame->CloneStream(), currentRotation);
}).then([this](task<StorageFile^> reencodeImageTask)
{
auto photoStorageFile = reencodeImageTask.get();
btnTakePhoto2->IsEnabled = true;
ShowStatusMessage("Photo taken");
return photoStorageFile->OpenAsync(FileAccessMode::Read);
}).then([this](task<IRandomAccessStream^> getStreamTask)
{
try
{
auto photoStream = getStreamTask.get();
ShowStatusMessage("File open successful");
auto bmpimg = ref new BitmapImage();
bmpimg->SetSource(photoStream);
imageElement2->Source = bmpimg;
if (!m_mediaCaptureMgr->MediaCaptureSettings->ConcurrentRecordAndPhotoSupported)
{
//reset check options
radTakePhoto->IsEnabled = true;
radTakePhoto->IsChecked = true;
radRecord->IsEnabled = true;
}
}
catch (Exception^ e)
{
ShowExceptionMessage(e);
btnTakePhoto2->IsEnabled = true;
}
});
}
catch (Platform::Exception^ e)
{
ShowExceptionMessage(e);
btnTakePhoto2->IsEnabled = true;
}
}
void AdvancedCapture::btnStartStopRecord_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
{
try
{
if (safe_cast<String^>(btnStartStopRecord2->Content) == "StartRecord")
{
if (!m_mediaCaptureMgr->MediaCaptureSettings->ConcurrentRecordAndPhotoSupported)
{
//disable check box while recording
radTakePhoto->IsEnabled = false;
radRecord->IsEnabled = false;
}
btnStartStopRecord2->IsEnabled = false;
ShowStatusMessage("Starting Record");
create_task(m_lowLagRecord->StartAsync()).then([this]()
{
btnStartStopRecord2->Content = "StopRecord";
btnStartStopRecord2->IsEnabled = true;
playbackElement2->Source = nullptr;
});
}
else
{
ShowStatusMessage("Stopping Record");
btnStartStopRecord2->IsEnabled = false;
create_task(m_lowLagRecord->FinishAsync()).then([this](task<void> recordTask)
{
try
{
recordTask.get();
ShowStatusMessage("Stop record successful");
if (!m_bSuspended)
{
create_task(this->m_recordStorageFile->OpenAsync(FileAccessMode::Read)).then([this](task<IRandomAccessStream^> streamTask)
{
try
{
auto stream = streamTask.get();
ShowStatusMessage("Record file opened");
ShowStatusMessage(this->m_recordStorageFile->Path);
playbackElement2->AutoPlay = true;
playbackElement2->SetSource(stream, this->m_recordStorageFile->FileType);
playbackElement2->Play();
}
catch (Exception ^e)
{
btnStartStopRecord2->Content = "StartRecord";
btnStartStopRecord2->IsEnabled = true;
ShowExceptionMessage(e);
}
});
}
if (!m_mediaCaptureMgr->MediaCaptureSettings->ConcurrentRecordAndPhotoSupported)
{
//reset check options
radTakePhoto->IsEnabled = true;
radRecord->IsEnabled = true;
radRecord->IsChecked = true;
}
//prepare lowlag record for next round
m_bRecording = false;
PrepareLowLagRecordAsync();
}
catch (Exception ^e)
{
btnStartStopRecord2->Content = "StartRecord";
btnStartStopRecord2->IsEnabled = true;
ShowExceptionMessage(e);
}
});
}
}
catch (Platform::Exception^ e)
{
ShowExceptionMessage(e);
}
}
void AdvancedCapture::lstEnumedDevices_SelectionChanged(Platform::Object^ sender, Windows::UI::Xaml::Controls::SelectionChangedEventArgs^ e)
{
ScenarioClose();
btnStartDevice2->IsEnabled = true;
btnStartPreview2->IsEnabled = false;
btnStartStopRecord2->IsEnabled = false;
btnStartStopRecord2->Content = "StartRecord";
btnTakePhoto2->IsEnabled = false;
m_bRecording = false;
m_bPreviewing = false;
m_bEffectAdded = false;
m_bSuspended = false;
m_bLowLagPrepared = false;
chkAddRemoveEffect->IsEnabled = false;
radTakePhoto->IsEnabled = false;
radRecord->IsEnabled = false;
radTakePhoto->IsChecked = false;
radRecord->IsChecked = false;
previewCanvas2->Background->Opacity = 100;
previewElement2->Source = nullptr;
playbackElement2->Source = nullptr;
imageElement2->Source = nullptr;
m_bEffectAddedToRecord = false;
m_bEffectAddedToPhoto = false;
SceneModeList2->SelectedIndex = -1;
SceneModeList2->Items->Clear();
ShowStatusMessage("Device changed, Initialize");
}
void AdvancedCapture::EnumerateWebcamsAsync()
{
ShowStatusMessage("Enumerating Webcams...");
m_devInfoCollection = nullptr;
EnumedDeviceList2->Items->Clear();
create_task(DeviceInformation::FindAllAsync(DeviceClass::VideoCapture)).then([this](task<DeviceInformationCollection^> findTask)
{
try
{
m_devInfoCollection = findTask.get();
if (m_devInfoCollection == nullptr || m_devInfoCollection->Size == 0)
{
ShowStatusMessage("No WebCams found.");
}
else
{
for (unsigned int i = 0; i < m_devInfoCollection->Size; i++)
{
auto devInfo = m_devInfoCollection->GetAt(i);
auto location = devInfo->EnclosureLocation;
if (location != nullptr)
{
if (location->Panel == Windows::Devices::Enumeration::Panel::Front)
{
EnumedDeviceList2->Items->Append(devInfo->Name + "-Front");
}
else if (location->Panel == Windows::Devices::Enumeration::Panel::Back)
{
EnumedDeviceList2->Items->Append(devInfo->Name + "-Back");
}
else{
EnumedDeviceList2->Items->Append(devInfo->Name);
}
}
else{
EnumedDeviceList2->Items->Append(devInfo->Name);
}
}
EnumedDeviceList2->SelectedIndex = 0;
ShowStatusMessage("Enumerating Webcams completed successfully.");
btnStartDevice2->IsEnabled = true;
}
}
catch (Platform::Exception^ e)
{
ShowExceptionMessage(e);
}
});
}
void AdvancedCapture::EnumerateMicrophonesAsync()
{
ShowStatusMessage("Enumerating Microphones...");
m_microPhoneInfoCollection = nullptr;
EnumedMicrophonesList2->Items->Clear();
create_task(DeviceInformation::FindAllAsync(DeviceClass::AudioCapture)).then([this](task<DeviceInformationCollection^> findTask)
{
try
{
m_microPhoneInfoCollection = findTask.get();
if (m_microPhoneInfoCollection == nullptr || m_microPhoneInfoCollection->Size == 0)
{
ShowStatusMessage("No Microphones found.");
}
else
{
for (unsigned int i = 0; i < m_microPhoneInfoCollection->Size; i++)
{
auto devInfo = m_microPhoneInfoCollection->GetAt(i);
auto location = devInfo->EnclosureLocation;
if (location != nullptr)
{
if (location->Panel == Windows::Devices::Enumeration::Panel::Front)
{
EnumedMicrophonesList2->Items->Append(devInfo->Name + "-Front");
}
else if (location->Panel == Windows::Devices::Enumeration::Panel::Back)
{
EnumedMicrophonesList2->Items->Append(devInfo->Name + "-Back");
}
else{
EnumedMicrophonesList2->Items->Append(devInfo->Name);
}
}
else
{
EnumedMicrophonesList2->Items->Append(devInfo->Name);
}
}
EnumedMicrophonesList2->SelectedIndex = 0;
ShowStatusMessage("Enumerating Microphones completed successfully.");
}
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
}
});
}
void AdvancedCapture::EnumerateSceneModeAsync()
{
try
{
ShowStatusMessage("Enumerating SceneMode...");
SceneModeList2->Items->Clear();
auto sceneModes = m_mediaCaptureMgr->VideoDeviceController->SceneModeControl->SupportedModes;
for (auto mode : sceneModes)
{
String^ modeName = nullptr;
switch (mode)
{
case Windows::Media::Devices::CaptureSceneMode::Auto:
modeName = ref new String(L"Auto");
break;
case Windows::Media::Devices::CaptureSceneMode::Macro:
modeName = ref new String(L"Macro");
break;
case Windows::Media::Devices::CaptureSceneMode::Portrait:
modeName = ref new String(L"Portrait");
break;
case Windows::Media::Devices::CaptureSceneMode::Sport:
modeName = ref new String(L"Sport");
break;
case Windows::Media::Devices::CaptureSceneMode::Snow:
modeName = ref new String(L"Snow");
break;
case Windows::Media::Devices::CaptureSceneMode::Night:
modeName = ref new String(L"Night");
break;
case Windows::Media::Devices::CaptureSceneMode::Beach:
modeName = ref new String(L"Beach");
break;
case Windows::Media::Devices::CaptureSceneMode::Sunset:
modeName = ref new String(L"Sunset");
break;
case Windows::Media::Devices::CaptureSceneMode::Candlelight:
modeName = ref new String(L"Candlelight");
break;
case Windows::Media::Devices::CaptureSceneMode::Landscape:
modeName = ref new String(L"Landscape");
break;
case Windows::Media::Devices::CaptureSceneMode::NightPortrait:
modeName = ref new String(L"Night portrait");
break;
case Windows::Media::Devices::CaptureSceneMode::Backlit:
modeName = ref new String(L"Backlit");
break;
}
if (modeName != nullptr)
{
SceneModeList2->Items->Append(modeName);
}
}
if (sceneModes->Size > 0)
{
SceneModeList2->SelectedIndex = 0;
}
}
catch (Exception^ e)
{
ShowExceptionMessage(e);
}
}
void AdvancedCapture::SceneMode_SelectionChanged(Platform::Object^ sender, Windows::UI::Xaml::Controls::SelectionChangedEventArgs^ e)
{
if (SceneModeList2->SelectedIndex > -1)
{
auto modeName = safe_cast<String^>(SceneModeList2->Items->GetAt(SceneModeList2->SelectedIndex));
auto mode = Windows::Media::Devices::CaptureSceneMode::Auto;
if (modeName == L"Macro")
{
mode = Windows::Media::Devices::CaptureSceneMode::Macro;
}
else if (modeName == L"Portrait")
{
mode = Windows::Media::Devices::CaptureSceneMode::Portrait;
}
else if (modeName == L"Sport")
{
mode = Windows::Media::Devices::CaptureSceneMode::Sport;
}
else if (modeName == L"Snow")
{
mode = Windows::Media::Devices::CaptureSceneMode::Snow;
}
else if (modeName == L"Night")
{
mode = Windows::Media::Devices::CaptureSceneMode::Night;
}
else if (modeName == L"Beach")
{
mode = Windows::Media::Devices::CaptureSceneMode::Beach;
}
else if (modeName == L"Sunset")
{
mode = Windows::Media::Devices::CaptureSceneMode::Sunset;
}
else if (modeName == L"Candlelight")
{
mode = Windows::Media::Devices::CaptureSceneMode::Candlelight;
}
else if (modeName == L"Landscape")
{
mode = Windows::Media::Devices::CaptureSceneMode::Landscape;
}
else if (modeName == L"Night portrait")
{
mode = Windows::Media::Devices::CaptureSceneMode::NightPortrait;
}
else if (modeName == L"Backlight")
{
mode = Windows::Media::Devices::CaptureSceneMode::Backlit;
}
create_task(m_mediaCaptureMgr->VideoDeviceController->SceneModeControl->SetValueAsync(mode)).then([this, modeName](task<void> setSceneModeTask)
{
try
{
setSceneModeTask.get();
auto message = "SceneMode is set to " + modeName;
ShowStatusMessage(message);
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
}
});
}
}
void AdvancedCapture::AddEffectToImageStream()
{
try
{
auto mediaCapture = m_mediaCaptureMgr.Get();
Windows::Media::Capture::VideoDeviceCharacteristic charecteristic = mediaCapture->MediaCaptureSettings->VideoDeviceCharacteristic;
if ((charecteristic != Windows::Media::Capture::VideoDeviceCharacteristic::AllStreamsIdentical) &&
(charecteristic != Windows::Media::Capture::VideoDeviceCharacteristic::PreviewPhotoStreamsIdentical) &&
(charecteristic != Windows::Media::Capture::VideoDeviceCharacteristic::RecordPhotoStreamsIdentical))
{
Windows::Media::MediaProperties::IMediaEncodingProperties ^props = mediaCapture->VideoDeviceController->GetMediaStreamProperties(Windows::Media::Capture::MediaStreamType::Photo);
if (props->Type->Equals("Image"))
{
//Switch to a video media type instead since we cant add an effect to a image media type
Windows::Foundation::Collections::IVectorView<Windows::Media::MediaProperties::IMediaEncodingProperties^>^ supportedPropsList = mediaCapture->VideoDeviceController->GetAvailableMediaStreamProperties(Windows::Media::Capture::MediaStreamType::Photo);
{
unsigned int i = 0;
while (i < supportedPropsList->Size)
{
Windows::Media::MediaProperties::IMediaEncodingProperties^ props = supportedPropsList->GetAt(i);
String^ s = props->Type;
if (props->Type->Equals("Video"))
{
auto bLowLagPrepare_tmp = m_bLowLagPrepared;
//it is necessary to un-prepare the lowlag photo before adding effect, since adding effect needs to change mediaType if it was not "Video" type;
create_task(StopLowLagPhotoAsync())
.then([this, props](task<void> stopLowLagPhotoTask)
{
stopLowLagPhotoTask.get();
return m_mediaCaptureMgr->VideoDeviceController->SetMediaStreamPropertiesAsync(Windows::Media::Capture::MediaStreamType::Photo, props);
}, task_continuation_context::use_current()).then([this](task<void> changeTypeTask)
{
changeTypeTask.get();
ShowStatusMessage("Change type on photo stream successful");
//Now add the effect on the image pin
return m_mediaCaptureMgr->AddEffectAsync(Windows::Media::Capture::MediaStreamType::Photo, "GrayscaleTransform.GrayscaleEffect", nullptr);
}).then([this, bLowLagPrepare_tmp](task<void> effectTask3)
{
try
{
effectTask3.get();
m_bEffectAddedToPhoto = true;
ShowStatusMessage("Adding effect to photo stream successful");
chkAddRemoveEffect->IsEnabled = true;
//Prepare LowLag Photo again if LowLag Photo was prepared before adding effect;
if (bLowLagPrepare_tmp)
{
create_task(m_mediaCaptureMgr->PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties::CreateJpeg()))
.then([this](LowLagPhotoCapture ^photoCapture)
{
try
{
m_lowLagPhoto = photoCapture;
btnTakePhoto2->IsEnabled = true;
m_bLowLagPrepared = true;
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
}
});
}
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
chkAddRemoveEffect->IsEnabled = true;
chkAddRemoveEffect->IsChecked = false;
}
});
break;
}
i++;
}
}
}
else
{
//Add the effect to the image pin if the type is already "Video"
create_task(mediaCapture->AddEffectAsync(Windows::Media::Capture::MediaStreamType::Photo, "GrayscaleTransform.GrayscaleEffect", nullptr))
.then([this](task<void> effectTask3)
{
try
{
effectTask3.get();
m_bEffectAddedToPhoto = true;
ShowStatusMessage("Adding effect to photo stream successful");
chkAddRemoveEffect->IsEnabled = true;
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
chkAddRemoveEffect->IsEnabled = true;
chkAddRemoveEffect->IsChecked = false;
}
});
}
}
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
chkAddRemoveEffect->IsEnabled = true;
chkAddRemoveEffect->IsChecked = false;
}
}
void AdvancedCapture::chkAddRemoveEffect_Checked(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
{
chkAddRemoveEffect->IsEnabled = false;
m_bEffectAdded = true;
create_task(m_mediaCaptureMgr->AddEffectAsync(Windows::Media::Capture::MediaStreamType::VideoPreview, "GrayscaleTransform.GrayscaleEffect", nullptr))
.then([this](task<void> effectTask)
{
try
{
effectTask.get();
auto mediaCapture = m_mediaCaptureMgr.Get();
Windows::Media::Capture::VideoDeviceCharacteristic charecteristic = mediaCapture->MediaCaptureSettings->VideoDeviceCharacteristic;
ShowStatusMessage("Add effect successful to preview stream successful");
if ((charecteristic != Windows::Media::Capture::VideoDeviceCharacteristic::AllStreamsIdentical) &&
(charecteristic != Windows::Media::Capture::VideoDeviceCharacteristic::PreviewRecordStreamsIdentical))
{
Windows::Media::MediaProperties::IMediaEncodingProperties ^props = mediaCapture->VideoDeviceController->GetMediaStreamProperties(Windows::Media::Capture::MediaStreamType::VideoRecord);
Windows::Media::MediaProperties::VideoEncodingProperties ^videoEncodingProperties = static_cast<Windows::Media::MediaProperties::VideoEncodingProperties ^>(props);
if (!videoEncodingProperties->Subtype->Equals("H264")) //Cant add an effect to an H264 stream
{
create_task(mediaCapture->AddEffectAsync(Windows::Media::Capture::MediaStreamType::VideoRecord, "GrayscaleTransform.GrayscaleEffect", nullptr))
.then([this](task<void> effectTask2)
{
try
{
effectTask2.get();
ShowStatusMessage("Add effect successful to record stream successful");
m_bEffectAddedToRecord = true;
AddEffectToImageStream();
chkAddRemoveEffect->IsEnabled = true;
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
chkAddRemoveEffect->IsEnabled = true;
chkAddRemoveEffect->IsChecked = false;
}
});
}
else
{
AddEffectToImageStream();
chkAddRemoveEffect->IsEnabled = true;
}
}
else
{
AddEffectToImageStream();
chkAddRemoveEffect->IsEnabled = true;
}
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
chkAddRemoveEffect->IsEnabled = true;
chkAddRemoveEffect->IsChecked = false;
}
});
}
void AdvancedCapture::chkAddRemoveEffect_Unchecked(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
{
chkAddRemoveEffect->IsEnabled = false;
m_bEffectAdded = false;
create_task(m_mediaCaptureMgr->ClearEffectsAsync(Windows::Media::Capture::MediaStreamType::VideoPreview))
.then([this](task<void> effectTask)
{
try
{
effectTask.get();
ShowStatusMessage("Remove effect from video preview stream successful");
if (m_bEffectAddedToRecord)
{
create_task(m_mediaCaptureMgr->ClearEffectsAsync(Windows::Media::Capture::MediaStreamType::VideoRecord))
.then([this](task<void> effectTask)
{
try
{
effectTask.get();
ShowStatusMessage("Remove effect from video record stream successful");
m_bEffectAddedToRecord = false;
if (m_bEffectAddedToPhoto)
{
create_task(m_mediaCaptureMgr->ClearEffectsAsync(Windows::Media::Capture::MediaStreamType::Photo))
.then([this](task<void> effectTask)
{
try
{
effectTask.get();
ShowStatusMessage("Remove effect from Photo stream successful");
m_bEffectAddedToPhoto = false;
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
chkAddRemoveEffect->IsEnabled = true;
chkAddRemoveEffect->IsChecked = true;
}
});
}
else
{
}
chkAddRemoveEffect->IsEnabled = true;
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
chkAddRemoveEffect->IsEnabled = true;
chkAddRemoveEffect->IsChecked = true;
}
});
}
else if (m_bEffectAddedToPhoto)
{
create_task(m_mediaCaptureMgr->ClearEffectsAsync(Windows::Media::Capture::MediaStreamType::Photo)).then([this](task<void> effectTask)
{
try
{
effectTask.get();
ShowStatusMessage("Remove effect from Photo stream successful");
m_bEffectAddedToPhoto = false;
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
chkAddRemoveEffect->IsEnabled = true;
chkAddRemoveEffect->IsChecked = true;
}
});
}
else
{
chkAddRemoveEffect->IsEnabled = true;
}
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
chkAddRemoveEffect->IsEnabled = true;
chkAddRemoveEffect->IsChecked = true;
}
});
}
void AdvancedCapture::radTakePhoto_Checked(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
{
if (!m_bLowLagPrepared)
{
//if camera does not support lowlag record and lowlag photo at the same time
//disable all buttons while preparing lowlag photo
btnStartStopRecord2->IsEnabled = false;
btnTakePhoto2->IsEnabled = false;
//uncheck record Mode
radRecord->IsChecked = false;
//disable check option while preparing lowlag photo
radTakePhoto->IsEnabled = false;
radRecord->IsEnabled = false;
if (m_bRecording)
{
//if camera does not support lowlag record and lowlag photo at the same time
//but lowlag record is already prepared, un-prepare lowlag record first, before preparing lowlag photo
create_task(m_lowLagRecord->FinishAsync()).then([this](task<void> recordTask)
{
recordTask.get();
m_bRecording = false;
ShowStatusMessage("Stopped record on preparing lowlag Photo:" + m_recordStorageFile->Path);
return m_mediaCaptureMgr->PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties::CreateJpeg());
}).then([this](LowLagPhotoCapture ^photoCapture)
{
try
{
m_lowLagPhoto = photoCapture;
btnTakePhoto2->IsEnabled = true;
m_bLowLagPrepared = true;
//re-enable check option, after lowlag record finish preparing
radTakePhoto->IsEnabled = true;
radRecord->IsEnabled = true;
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
radTakePhoto->IsEnabled = true;
radRecord->IsEnabled = true;
}
});
}
else //(!m_bRecording)
{
//if camera does not support lowlag record and lowlag photo at the same time
//lowlag record is not prepared, go ahead to prepare lowlag photo
create_task(m_mediaCaptureMgr->PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties::CreateJpeg())).then([this](LowLagPhotoCapture ^photoCapture)
{
try
{
m_lowLagPhoto = photoCapture;
btnTakePhoto2->IsEnabled = true;
m_bLowLagPrepared = true;
//re-enable check option, after lowlag record finish preparing
radTakePhoto->IsEnabled = true;
radRecord->IsEnabled = true;
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
radTakePhoto->IsEnabled = true;
radRecord->IsEnabled = true;
}
});
}
}
}
void AdvancedCapture::radRecord_Checked(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
{
if (!m_bRecording)
{
//if camera does not support lowlag record and lowlag photo at the same time
//disable all buttons while preparing lowlag record
btnTakePhoto2->IsEnabled = false;
btnStartStopRecord2->IsEnabled = false;
//uncheck TakePhoto Mode
radTakePhoto->IsChecked = false;
//disable check option while preparing lowlag record
radTakePhoto->IsEnabled = false;
radRecord->IsEnabled = false;
if (m_bLowLagPrepared)
{
//if camera does not support lowlag record and lowlag photo at the same time
//but lowlag photo is already prepared, un-prepare lowlag photo first, before preparing lowlag record
create_task(m_lowLagPhoto->FinishAsync()).then([this](task<void> Task)
{
m_bLowLagPrepared = false;
//prepare lowlag record
PrepareForVideoRecording();
return KnownFolders::VideosLibrary->CreateFileAsync(VIDEO_FILE_NAME, Windows::Storage::CreationCollisionOption::GenerateUniqueName);
}).then([this](task<StorageFile^> fileTask)
{
this->m_recordStorageFile = fileTask.get();
ShowStatusMessage("Create record file successful");
MediaEncodingProfile^ recordProfile = nullptr;
recordProfile = MediaEncodingProfile::CreateMp4(Windows::Media::MediaProperties::VideoEncodingQuality::Auto);
return m_mediaCaptureMgr->PrepareLowLagRecordToStorageFileAsync(recordProfile, m_recordStorageFile);
}).then([this](LowLagMediaRecording ^lowLagRecord)
{
try
{
m_lowLagRecord = lowLagRecord;
btnStartStopRecord2->IsEnabled = true;
m_bRecording = true;
btnStartStopRecord2->Content = "StartRecord";
//re-enable check option, after lowlag record finish preparing
radTakePhoto->IsEnabled = true;
radRecord->IsEnabled = true;
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
}
});
}
else //(!m_bLowLagPrepared)
{
//if camera does not support lowlag record and lowlag photo at the same time
//lowlag photo is not prepared, go ahead to prepare lowlag record
PrepareForVideoRecording();
create_task(KnownFolders::VideosLibrary->CreateFileAsync(VIDEO_FILE_NAME, Windows::Storage::CreationCollisionOption::GenerateUniqueName))
.then([this](task<StorageFile^> fileTask)
{
this->m_recordStorageFile = fileTask.get();
ShowStatusMessage("Create record file successful");
MediaEncodingProfile^ recordProfile = nullptr;
recordProfile = MediaEncodingProfile::CreateMp4(Windows::Media::MediaProperties::VideoEncodingQuality::Auto);
return m_mediaCaptureMgr->PrepareLowLagRecordToStorageFileAsync(recordProfile, m_recordStorageFile);
}).then([this](LowLagMediaRecording ^lowLagRecord)
{
try
{
m_lowLagRecord = lowLagRecord;
btnStartStopRecord2->IsEnabled = true;
m_bRecording = true;
btnStartStopRecord2->Content = "StartRecord";
//re-enable check option, after lowlag record finish preparing
radTakePhoto->IsEnabled = true;
radRecord->IsEnabled = true;
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
}
});
}
}
}
void AdvancedCapture::ShowStatusMessage(Platform::String^ text)
{
rootPage->NotifyUser(text, NotifyType::StatusMessage);
}
void AdvancedCapture::ShowExceptionMessage(Platform::Exception^ ex)
{
rootPage->NotifyUser(ex->Message, NotifyType::ErrorMessage);
}
task<Windows::Storage::StorageFile^> AdvancedCapture::ReencodePhotoAsync(
Windows::Storage::Streams::IRandomAccessStream ^stream,
Windows::Storage::FileProperties::PhotoOrientation photoRotation)
{
ReencodeState ^state = ref new ReencodeState();
state->InputStream = stream;
return create_task(Windows::Graphics::Imaging::BitmapDecoder::CreateAsync(state->InputStream)).then([state](Windows::Graphics::Imaging::BitmapDecoder ^decoder)
{
state->Decoder = decoder;
return Windows::Storage::KnownFolders::PicturesLibrary->CreateFileAsync(PHOTO_FILE_NAME, Windows::Storage::CreationCollisionOption::GenerateUniqueName);
}).then([state](Windows::Storage::StorageFile ^storageFile)
{
state->PhotoStorage = storageFile;
return state->PhotoStorage->OpenAsync(Windows::Storage::FileAccessMode::ReadWrite);
}).then([state](Windows::Storage::Streams::IRandomAccessStream ^stream)
{
state->OutputStream = stream;
state->OutputStream->Size = 0;
return Windows::Graphics::Imaging::BitmapEncoder::CreateForTranscodingAsync(state->OutputStream, state->Decoder);
}).then([state, photoRotation](Windows::Graphics::Imaging::BitmapEncoder ^encoder)
{
state->Encoder = encoder;
auto properties = ref new Windows::Graphics::Imaging::BitmapPropertySet();
properties->Insert("System.Photo.Orientation",
ref new Windows::Graphics::Imaging::BitmapTypedValue((unsigned short) photoRotation, Windows::Foundation::PropertyType::UInt16));
return state->Encoder->BitmapProperties->SetPropertiesAsync(properties);
}).then([state]()
{
return state->Encoder->FlushAsync();
}).then([state](task<void> previousTask)
{
auto result = state->PhotoStorage;
delete state;
previousTask.get();
return result;
});
}
Windows::Storage::FileProperties::PhotoOrientation AdvancedCapture::GetCurrentPhotoRotation()
{
bool counterclockwiseRotation = m_bReversePreviewRotation;
if (m_bRotateVideoOnOrientationChange)
{
return PhotoRotationLookup(m_displayOrientation, counterclockwiseRotation);
}
else
{
return Windows::Storage::FileProperties::PhotoOrientation::Normal;
}
}
void AdvancedCapture::PrepareForVideoRecording()
{
try
{
Windows::Media::Capture::MediaCapture ^mediaCapture = m_mediaCaptureMgr.Get();
if (mediaCapture == nullptr)
{
return;
}
bool counterclockwiseRotation = m_bReversePreviewRotation;
if (m_bRotateVideoOnOrientationChange)
{
mediaCapture->SetRecordRotation(VideoRotationLookup(m_displayOrientation, counterclockwiseRotation));
}
else
{
mediaCapture->SetRecordRotation(Windows::Media::Capture::VideoRotation::None);
}
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
}
}
void AdvancedCapture::OrientationChanged()
{
try
{
Windows::Media::Capture::MediaCapture ^mediaCapture = m_mediaCaptureMgr.Get();
if (mediaCapture == nullptr)
{
return;
}
auto videoEncodingProperties = m_mediaCaptureMgr->VideoDeviceController->GetMediaStreamProperties(Windows::Media::Capture::MediaStreamType::VideoPreview);
//Get the media type set on the device
static const GUID rotGUID = { 0xC380465D, 0x2271, 0x428C, { 0x9B, 0x83, 0xEC, 0xEA, 0x3B, 0x4A, 0x85, 0xC1 } };
bool previewMirroring = mediaCapture->GetPreviewMirroring();
bool counterclockwiseRotation = (previewMirroring && !m_bReversePreviewRotation) ||
(!previewMirroring && m_bReversePreviewRotation);
if (m_bRotateVideoOnOrientationChange && m_bPreviewing)
{
auto rotDegree = VideoPreviewRotationLookup(m_displayOrientation, counterclockwiseRotation);
videoEncodingProperties->Properties->Insert(rotGUID, rotDegree);
create_task(m_mediaCaptureMgr->SetEncodingPropertiesAsync(Windows::Media::Capture::MediaStreamType::VideoPreview, videoEncodingProperties, nullptr))
.then([this, rotDegree](task<void> rotTask)
{
try
{
rotTask.get();
if (rotDegree == 90 || rotDegree == 270)
{
previewElement2->Height = m_rotHeight;
previewElement2->Width = m_rotWidth;
}
else
{
previewElement2->Height = m_rotWidth;
previewElement2->Width = m_rotHeight;
}
}
catch (Exception^ e)
{
ShowExceptionMessage(e);
}
});
}
}
catch (Exception ^e)
{
ShowExceptionMessage(e);
}
}
void AdvancedCapture::DisplayInfo_OrientationChanged(
_In_ Windows::Graphics::Display::DisplayInformation^ sender, _In_ Platform::Object^ args)
{
m_displayOrientation = sender->CurrentOrientation;
OrientationChanged();
}
Windows::Storage::FileProperties::PhotoOrientation AdvancedCapture::PhotoRotationLookup(
Windows::Graphics::Display::DisplayOrientations displayOrientation, bool counterclockwise)
{
switch (displayOrientation)
{
case Windows::Graphics::Display::DisplayOrientations::Landscape:
return Windows::Storage::FileProperties::PhotoOrientation::Normal;
case Windows::Graphics::Display::DisplayOrientations::Portrait:
return (counterclockwise) ? Windows::Storage::FileProperties::PhotoOrientation::Rotate90 :
Windows::Storage::FileProperties::PhotoOrientation::Rotate270;
case Windows::Graphics::Display::DisplayOrientations::LandscapeFlipped:
return Windows::Storage::FileProperties::PhotoOrientation::Rotate180;
case Windows::Graphics::Display::DisplayOrientations::PortraitFlipped:
return (counterclockwise) ? Windows::Storage::FileProperties::PhotoOrientation::Rotate270 :
Windows::Storage::FileProperties::PhotoOrientation::Rotate90;
default:
return Windows::Storage::FileProperties::PhotoOrientation::Unspecified;
}
}
Windows::Media::Capture::VideoRotation AdvancedCapture::VideoRotationLookup(
Windows::Graphics::Display::DisplayOrientations displayOrientation, bool counterclockwise)
{
switch (displayOrientation)
{
case Windows::Graphics::Display::DisplayOrientations::Landscape:
return Windows::Media::Capture::VideoRotation::None;
case Windows::Graphics::Display::DisplayOrientations::Portrait:
return (counterclockwise) ? Windows::Media::Capture::VideoRotation::Clockwise270Degrees :
Windows::Media::Capture::VideoRotation::Clockwise90Degrees;
case Windows::Graphics::Display::DisplayOrientations::LandscapeFlipped:
return Windows::Media::Capture::VideoRotation::Clockwise180Degrees;
case Windows::Graphics::Display::DisplayOrientations::PortraitFlipped:
return (counterclockwise) ? Windows::Media::Capture::VideoRotation::Clockwise90Degrees :
Windows::Media::Capture::VideoRotation::Clockwise270Degrees;
default:
return Windows::Media::Capture::VideoRotation::None;
}
}
unsigned int AdvancedCapture::VideoPreviewRotationLookup(
Windows::Graphics::Display::DisplayOrientations displayOrientation, bool counterclockwise)
{
switch (displayOrientation)
{
case Windows::Graphics::Display::DisplayOrientations::Landscape:
return 0;
case Windows::Graphics::Display::DisplayOrientations::Portrait:
return (counterclockwise) ? 270 : 90;
case Windows::Graphics::Display::DisplayOrientations::LandscapeFlipped:
return 180;
case Windows::Graphics::Display::DisplayOrientations::PortraitFlipped:
return (counterclockwise) ? 90 : 270;
default:
return 0;
}
}
| 37.807571
| 264
| 0.564572
|
zzgchina888
|
12f780a688706ff1929b2c64eb478082df497c21
| 3,330
|
cc
|
C++
|
arccore/src/base/arccore/base/NotImplementedException.cc
|
cedricga91/framework
|
143eeccb5bf375df4a3f11b888681f84f60380c6
|
[
"Apache-2.0"
] | 16
|
2021-09-20T12:37:01.000Z
|
2022-03-18T09:19:14.000Z
|
arccore/src/base/arccore/base/NotImplementedException.cc
|
cedricga91/framework
|
143eeccb5bf375df4a3f11b888681f84f60380c6
|
[
"Apache-2.0"
] | 66
|
2021-09-17T13:49:39.000Z
|
2022-03-30T16:24:07.000Z
|
arccore/src/base/arccore/base/NotImplementedException.cc
|
cedricga91/framework
|
143eeccb5bf375df4a3f11b888681f84f60380c6
|
[
"Apache-2.0"
] | 11
|
2021-09-27T16:48:55.000Z
|
2022-03-23T19:06:56.000Z
|
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2.0
//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/
/* NotImplementedException.cc (C) 2000-2018 */
/* */
/* Exception lorsqu'une fonction n'est pas implémentée. */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
#include "arccore/base/String.h"
#include "arccore/base/NotImplementedException.h"
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
namespace Arccore
{
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
NotImplementedException::
NotImplementedException(const String& where)
: Exception("NotImplemented",where)
{
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
NotImplementedException::
NotImplementedException(const String& where,const String& message)
: Exception("NotImplemented",where)
, m_message(message)
{
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
NotImplementedException::
NotImplementedException(const TraceInfo& where)
: Exception("NotImplemented",where)
{
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
NotImplementedException::
NotImplementedException(const TraceInfo& where,const String& message)
: Exception("NotImplemented",where)
, m_message(message)
{
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
NotImplementedException::
NotImplementedException(const NotImplementedException& rhs) ARCCORE_NOEXCEPT
: Exception(rhs)
, m_message(rhs.m_message)
{
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void NotImplementedException::
explain(std::ostream& m) const
{
m << "function not implemented.";
if (!m_message.null())
m << "Message: " << m_message << '\n';
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
} // End namespace Arccore
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
| 36.593407
| 79
| 0.306306
|
cedricga91
|
12fa2e4360808bdffdc7f10013bde325fa937c53
| 1,573
|
hpp
|
C++
|
libs/ml/include/ml/optimisation/learning_rate_params.hpp
|
chr15murray/ledger
|
85be05221f19598de8c6c58652139a1f2d9e362f
|
[
"Apache-2.0"
] | 96
|
2018-08-23T16:49:05.000Z
|
2021-11-25T00:47:16.000Z
|
libs/ml/include/ml/optimisation/learning_rate_params.hpp
|
chr15murray/ledger
|
85be05221f19598de8c6c58652139a1f2d9e362f
|
[
"Apache-2.0"
] | 1,011
|
2018-08-17T12:25:21.000Z
|
2021-11-18T09:30:19.000Z
|
libs/ml/include/ml/optimisation/learning_rate_params.hpp
|
chr15murray/ledger
|
85be05221f19598de8c6c58652139a1f2d9e362f
|
[
"Apache-2.0"
] | 65
|
2018-08-20T20:05:40.000Z
|
2022-02-26T23:54:35.000Z
|
#pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
//------------------------------------------------------------------------------
namespace fetch {
namespace ml {
namespace optimisers {
/**
* Training annealing config
* @tparam T
*/
template <typename T>
struct LearningRateParam
{
using DataType = T;
enum class LearningRateDecay : uint8_t
{
EXPONENTIAL,
LINEAR,
NONE
};
LearningRateDecay mode = LearningRateDecay::NONE;
DataType starting_learning_rate = fetch::math::Type<DataType>("0.001");
DataType ending_learning_rate = starting_learning_rate / static_cast<DataType>(10000);
DataType linear_decay_rate = starting_learning_rate / static_cast<DataType>(10000);
DataType exponential_decay_rate = fetch::math::Type<DataType>("0.999");
};
} // namespace optimisers
} // namespace ml
} // namespace fetch
| 33.468085
| 99
| 0.623013
|
chr15murray
|
12ffb5933cb317375a6054fb50d17e7d943f3dd0
| 17,644
|
cpp
|
C++
|
Sources/Samples/Viewer/SampleViewer.cpp
|
jdelezenne/Sonata
|
fb1b1b64a78874a0ab2809995be4b6f14f9e4d56
|
[
"MIT"
] | null | null | null |
Sources/Samples/Viewer/SampleViewer.cpp
|
jdelezenne/Sonata
|
fb1b1b64a78874a0ab2809995be4b6f14f9e4d56
|
[
"MIT"
] | null | null | null |
Sources/Samples/Viewer/SampleViewer.cpp
|
jdelezenne/Sonata
|
fb1b1b64a78874a0ab2809995be4b6f14f9e4d56
|
[
"MIT"
] | null | null | null |
/*=============================================================================
SampleViewer.cpp
Project: Sonata Engine
Author: Julien Delezenne
=============================================================================*/
#include <EntryPoint.h>
#include "SampleViewer.h"
//#define SKINNING_HW
static const int maxBoneCount = 60;
SampleViewer::SampleViewer() :
_hasEffect(false),
_isSkinned(false),
_skinIndex(-1),
_morphIndex(-1)
{
}
SampleViewer::~SampleViewer()
{
}
bool SampleViewer::CreateScene()
{
SceneApplication::CreateScene();
SkyBox* skyBox = new SkyBox();
skyBox->Create();
skyBox->SetPlaneTexture(SkyBoxPlane_Left, GetTexture(_T("Textures\\Skies\\skybox1XN.bmp")));
skyBox->SetPlaneTexture(SkyBoxPlane_Right, GetTexture(_T("Textures\\Skies\\skybox1XP.bmp")));
skyBox->SetPlaneTexture(SkyBoxPlane_Top, GetTexture(_T("Textures\\Skies\\skybox1YN.bmp")));
skyBox->SetPlaneTexture(SkyBoxPlane_Bottom, GetTexture(_T("Textures\\Skies\\skybox1YP.bmp")));
skyBox->SetPlaneTexture(SkyBoxPlane_Front, GetTexture(_T("Textures\\Skies\\skybox1ZN.bmp")));
skyBox->SetPlaneTexture(SkyBoxPlane_Back, GetTexture(_T("Textures\\Skies\\skybox1ZP.bmp")));
skyBox->SetDistance(5000.0);
_scene->SetSky(skyBox);
return true;
}
bool SampleViewer::CreateCamera()
{
SceneApplication::CreateCamera();
SceneManager::Instance()->SetCamera(_camera);
_cameraController = new OrbitCameraController();
_cameraController->SetCamera(_camera);
return true;
}
bool SampleViewer::OnInitialize()
{
_renderSystem->SetClearColor(Color32::CornflowerBlue);
UI::UISystem::Instance()->Create();
String fontName = FileSystem::Instance()->GetFullPath("Fonts\\defaultfont.dds");
UI::UISystem::Instance()->SetDefaultFont(GetFont(fontName));
_axisShape.SetAxisSize(10.0f);
_axisShape.Build();
_viewAxisShape.SetShape(&_axisShape);
_viewAxisShape.SetCamera(_camera);
_gridShape.SetGridPlanes(GridPlane_ZX);
_gridShape.SetColor(Color32::Magenta);
_gridShape.Build();
_hasEffect = false;
_isSkinned = false;
#if 1
//_model = GetModel("Models\\Cup\\cup.obj");
//_model = GetModel("Models\\arrow.x");
//_model = GetModel("Models\\teapot.x");
//_model = GetModel("Models\\tiger.x");
_model = GetModel("Models\\bigship.x");
//_model = GetModel("Models\\ChairScene\\room.x");
//_model = GetModel("Models\\camera.x");
//_model = GetModel("Models\\Crypt\\crypt.sdkmesh");
//_model = GetModel("Models\\Quake\\player.mdl");
//_model = GetModel("Models\\Warrior\\warrior.sdkmesh");
//_model = GetModel("Models\\Quake\\soldier\\tris.md2");
//_model = GetModel("Models\\Quake\\sarge\\head.md3");
#elif 1
_model = GetModel("Models\\Dwarf\\dwarf.x");
_hasEffect = true;
#elif 1
_model = GetModel("Models\\Tiny\\tiny.x", 0.1);
//_model = GetModel("Models\\Soldier\\soldier.sdkmesh");
_isSkinned = true;
#else
GetUnrealModel("Models\\UDN\\Male.PSK", 0.1,
"Models\\UDN\\cloth.tga", "Models\\UDN\\skin.tga", "Models\\UDN\\hair.tga");
_isSkinned = true;
#endif
if (_model == NULL)
{
return true;
}
InitSkin();
_modelNode = new ModelNode();
_modelNode->SetModel(_model);
_scene->GetRoot()->AddChild(_modelNode);
_scene->AddObject(_modelNode);
_cameraController->SetTarget(_modelNode);
_cameraController->SetDistance(50.0);
_cameraController->SetElevationAngle(20.0);
_cameraController->SetAzimuthAngle(180.0);
#if 1
ApplyShader(_model, "Shaders\\Cartoon.fx");
#endif
return true;
}
void SampleViewer::ApplyShader(Model* model, const String& shaderName)
{
Model::MeshList::Iterator it = model->GetMeshIterator();
while (it.Next())
{
ApplyShader(it.Current(), shaderName);
}
}
void SampleViewer::ApplyShader(Mesh* mesh, const String& shaderName)
{
MeshPart* meshPart = NULL;
FFPPass* oldPass = NULL;
Mesh::MeshPartList::Iterator it = mesh->GetMeshPartIterator();
while (it.Next())
{
meshPart = it.Current();
EffectShader* effectShader = GetEffectShader(shaderName);
if (effectShader != NULL)
{
_shaders.AddLast(effectShader);
#if !defined(SKINNING_HW)
if (!_hasEffect)
{
DefaultMaterial* oldShader = NULL;
oldShader = (DefaultMaterial*)meshPart->GetShader();
if (oldShader != NULL)
{
FFPTechnique* oldTechnique = (FFPTechnique*)oldShader->GetTechnique();
oldPass = (FFPPass*)oldTechnique->GetPassByIndex(0);
}
}
#endif
EffectMaterial* shader = new EffectMaterial();
shader->SetEffectShader(effectShader);
meshPart->SetShader(shader);
#if !defined(SKINNING_HW)
if (!_hasEffect)
{
if (oldPass != NULL && oldPass->GetSamplerStateCount() > 0)
{
if (oldPass->GetSamplerStateByIndex(0)->GetTexture() != NULL)
{
EffectParameter* diffuseTextureParam = effectShader->GetParameterByName("DiffuseTexture");
diffuseTextureParam->SetValue(((TexturePtr)oldPass->GetSamplerStateByIndex(0)->GetTexture()).Get());
shader->SetTechnique("CartoonTextured");
}
else
{
EffectParameter* diffuseColorParam = effectShader->GetParameterByName("DiffuseColor");
diffuseColorParam->SetValue(&oldPass->MaterialState.DiffuseColor);
shader->SetTechnique("Cartoon");
}
}
}
else
{
EffectParameter* diffuseColorParam = effectShader->GetParameterByName("DiffuseColor");
diffuseColorParam->SetValue((void*)&Color32::Yellow);
shader->SetTechnique("Cartoon");
}
}
#endif
EffectParameter* rampTextureParam = effectShader->GetParameterByName("RampTexture");
rampTextureParam->SetValue(GetTexture("Shaders\\toonshade.dds"));
}
}
void SampleViewer::OnTerminate()
{
}
void SampleViewer::UpdateAnimationSet(AnimationSet* animationSet, int& sequenceIndex)
{
InputKeyboard* keyboard = (InputKeyboard*)InputSystem::Current()->
GetInputDeviceByType(InputDeviceType_Keyboard);
if (keyboard->IsKeyToggled(Key_Space) || keyboard->IsKeyToggled(Key_LeftBracket) || keyboard->IsKeyToggled(Key_RightBracket))
{
if (sequenceIndex != -1)
{
animationSet->GetAnimationSequenceByIndex(sequenceIndex)->Stop();
}
}
if (keyboard->IsKeyToggled(Key_Space))
{
sequenceIndex = -1;
}
else if (keyboard->IsKeyToggled(Key_LeftBracket))
{
sequenceIndex--;
if (sequenceIndex < 0)
{
sequenceIndex = animationSet->GetAnimationSequenceCount() - 1;
}
animationSet->GetAnimationSequenceByIndex(sequenceIndex)->SetLooping(true);
animationSet->GetAnimationSequenceByIndex(sequenceIndex)->Start();
}
else if (keyboard->IsKeyToggled(Key_RightBracket))
{
sequenceIndex++;
if (sequenceIndex >= animationSet->GetAnimationSequenceCount())
{
sequenceIndex = 0;
}
animationSet->GetAnimationSequenceByIndex(sequenceIndex)->SetLooping(true);
animationSet->GetAnimationSequenceByIndex(sequenceIndex)->Start();
}
if (keyboard->IsKeyToggled(Key_Space) || keyboard->IsKeyToggled(Key_LeftBracket) || keyboard->IsKeyToggled(Key_RightBracket))
{
if (sequenceIndex == -1)
{
Logger::Current()->Log("<Rest>");
}
else
{
Logger::Current()->Log(animationSet->GetAnimationSequenceByIndex(sequenceIndex)->GetName());
}
}
}
void SampleViewer::OnIdle()
{
real64 elapsed = (real64)_elapsedTime;
InputKeyboard* keyboard = (InputKeyboard*)InputSystem::Current()->
GetInputDeviceByType(InputDeviceType_Keyboard);
if (keyboard->IsKeyDown(Key_Escape))
{
Application::Current()->Exit();
return;
}
if (_model != NULL)
{
AnimationSet* animationSet;
if (_model->GetSkeleton() != NULL)
{
animationSet = _model->GetSkeleton()->GetAnimationSet();
if (animationSet != NULL)
{
UpdateAnimationSet(animationSet, _skinIndex);
}
}
animationSet = _model->GetAnimationSet();
if (animationSet != NULL)
{
UpdateAnimationSet(animationSet, _morphIndex);
}
}
SceneManager::Instance()->Update(_runTime);
UI::UISystem::Instance()->Update(elapsed);
UpdateCamera(elapsed);
if (_model != NULL)
{
UpdateSkin();
}
SceneState* sceneState = SceneManager::Instance()->GetSceneState();
BaseList<EffectShader*>::Iterator it = _shaders.GetIterator();
while (it.Next())
{
EffectShader* effectShader = it.Current();
Matrix4 world = _modelNode->GetWorldTransform() * _model->GetTransform();
Matrix4 viewProj = _camera->GetProjection() * _camera->GetView();
Matrix4 worldView = _camera->GetView() * world;
EffectParameter* worldViewParam = effectShader->GetParameterByName("WorldView");
worldViewParam->SetValue(&worldView);
Matrix4 worldViewProj = viewProj * world;
EffectParameter* worldViewProjParam = effectShader->GetParameterByName("WorldViewProj");
worldViewProjParam->SetValue(&worldViewProj);
Vector3 lightDirection = Quaternion::Rotate(_camera->GetWorldOrientation(), Vector3::Forward);
EffectParameter* lightDirectionParam = effectShader->GetParameterByName("LightDirection");
lightDirectionParam->SetValue(&lightDirection);
}
}
void SampleViewer::OnDraw()
{
SceneManager::Instance()->Render();
for (int i = 0; i < _skeletonShapes.Count(); i++)
{
if (_skeletonShapes[i]->GetMesh() != NULL)
{
SceneManager::Instance()->RenderMesh(_skeletonShapes[i]->GetMesh(),
_modelNode->GetWorldTransform() * _model->GetTransform());
}
}
SceneManager::Instance()->RenderMesh(_axisShape.GetMesh());
_viewAxisShape.Render();
UI::UISystem::Instance()->Render();
}
void SampleViewer::GetUnrealModel(const String& model, real scale, const String& body, const String& skin, const String& hair)
{
_model = GetModel(model, scale);
if (_model == NULL)
return;
_isSkinned = true;
Mesh* mesh = _model->GetMeshByIndex(0);
if (mesh == NULL)
return;
if (mesh->GetMeshPartCount() > 2)
{
DefaultMaterial* effect = (DefaultMaterial*)mesh->GetMeshPart(2)->GetShader();
((FFPPass*)effect->GetTechnique()->GetPassByIndex(0))->GetSamplerStateByIndex(0)->SetTexture(GetTexture(hair));
}
if (mesh->GetMeshPartCount() > 1)
{
DefaultMaterial* effect = (DefaultMaterial*)mesh->GetMeshPart(1)->GetShader();
((FFPPass*)effect->GetTechnique()->GetPassByIndex(0))->GetSamplerStateByIndex(0)->SetTexture(GetTexture(skin));
}
if (mesh->GetMeshPartCount() > 0)
{
DefaultMaterial* effect = (DefaultMaterial*)mesh->GetMeshPart(0)->GetShader();
((FFPPass*)effect->GetTechnique()->GetPassByIndex(0))->GetSamplerStateByIndex(0)->SetTexture(GetTexture(body));
}
//_model->GetSkeleton()->GetRootBone()->SetLocalOrientation(
// Quaternion::CreateFromAxisAngle(Vector3::UnitY, -Math::Pi / 2) *
// _model->GetSkeleton()->GetRootBone()->GetLocalOrientation());
}
void SampleViewer::UpdateCamera(real64 elapsed)
{
InputKeyboard* keyboard = (InputKeyboard*)InputSystem::Current()->
GetInputDeviceByType(InputDeviceType_Keyboard);
if (keyboard->IsKeyDown(Key_Subtract))
_camera->SetFOV(Math::Max(_camera->GetFOV() - 0.2f, 15.0f));
if (keyboard->IsKeyDown(Key_Add))
_camera->SetFOV(Math::Min(_camera->GetFOV() + 0.2f, 135.0f));
if (keyboard->IsKeyDown(Key_Multiply))
_camera->SetFOV(45.0f);
SceneObject* node = _cameraController->GetTarget();
if (keyboard->IsKeyDown(Key_W))
{
node->RotateLocal(Vector3::UnitX, -Math::Pi * 0.5 * elapsed);
}
if (keyboard->IsKeyDown(Key_S))
{
node->RotateLocal(Vector3::UnitX, Math::Pi * 0.5 * elapsed);
}
if (keyboard->IsKeyDown(Key_A))
{
node->RotateLocal(Vector3::UnitZ, Math::Pi * 0.5 * elapsed);
}
if (keyboard->IsKeyDown(Key_D))
{
node->RotateLocal(Vector3::UnitZ, -Math::Pi * 0.5 * elapsed);
}
if (keyboard->IsKeyDown(Key_Q))
{
node->RotateLocal(Vector3::UnitY, -Math::Pi * 0.5 * elapsed);
}
if (keyboard->IsKeyDown(Key_E))
{
node->RotateLocal(Vector3::UnitY, Math::Pi * 0.5 * elapsed);
}
if (keyboard->IsKeyDown(Key_PageUp))
{
_cameraController->SetDistance(_cameraController->GetDistance() - 1);
}
if (keyboard->IsKeyDown(Key_PageDown))
{
_cameraController->SetDistance(_cameraController->GetDistance() + 1);
}
if (keyboard->IsKeyDown(Key_Up))
{
_cameraController->SetElevationAngle(_cameraController->GetElevationAngle() + 5);
}
if (keyboard->IsKeyDown(Key_Down))
{
_cameraController->SetElevationAngle(_cameraController->GetElevationAngle() - 5);
}
if (keyboard->IsKeyDown(Key_Left))
{
_cameraController->SetAzimuthAngle(_cameraController->GetAzimuthAngle() - 5);
}
if (keyboard->IsKeyDown(Key_Right))
{
_cameraController->SetAzimuthAngle(_cameraController->GetAzimuthAngle() + 5);
}
_cameraController->HandleMessage(Message(Entity::Message_Update));
}
void SampleViewer::InitSkin()
{
if (_isSkinned)
{
if (_model->GetSkeleton() != NULL)
{
Bone* rootBone = _model->GetSkeleton()->GetRootBone();
for (int i = 0; i < _model->GetMeshCount(); ++i)
{
if (_model->GetMeshByIndex(i)->GetSkin() != NULL)
{
SkeletonShape* skeletonShape = new SkeletonShape();
skeletonShape->SetSkeleton(_model->GetSkeleton());
skeletonShape->SetSkin(_model->GetMeshByIndex(i)->GetSkin());
skeletonShape->SetColor(Color32::Red);
skeletonShape->Build();
_skeletonShapes.Add(skeletonShape);
}
}
}
}
#ifdef SKINNING_HW
InitSkin();
for (int i = 0; i < _model->GetMeshCount(); ++i)
{
Mesh* mesh = _model->GetMeshByIndex(i);
for (int j = 0; j < mesh->GetMeshPartCount(); ++j)
{
InitSkin(mesh->GetMeshPart(j));
}
}
#endif
}
void SampleViewer::InitSkin(MeshPart* meshPart)
{
if (_hasEffect)
{
return;
}
DefaultMaterial* oldShader = NULL;
FFPPass* oldPass = NULL;
oldShader = (DefaultMaterial*)meshPart->GetShader();
if (oldShader != NULL)
{
FFPTechnique* oldTechnique = (FFPTechnique*)oldShader->GetTechnique();
oldPass = (FFPPass*)oldTechnique->GetPassByIndex(0);
}
EffectShader* effectShader = GetEffectShader("Shaders\\Skinning.fx");
EffectMaterial* shader = new EffectMaterial();
shader->SetEffectShader(effectShader);
meshPart->SetShader(shader);
EffectParameter* diffuseTextureParam = effectShader->GetParameterByName("DiffuseTexture");
if (oldPass != NULL && oldPass->GetSamplerStateCount() > 0)
{
diffuseTextureParam->SetValue(((TexturePtr)oldPass->GetSamplerStateByIndex(0)->GetTexture()).Get());
}
if (_isSkinned)
{
shader->SetTechnique("Skin");
}
else
{
shader->SetTechnique("Transform");
}
_skinShaders.Add(shader);
}
void SampleViewer::UpdateSkin()
{
if (_isSkinned)
{
for (int i = 0; i < _skeletonShapes.Count(); i++)
{
_skeletonShapes[i]->Update();
}
}
#ifdef SKINNING_HW
if (_hasEffect)
{
return;
}
Skeleton* skeleton = _model->GetSkeleton();
Matrix4* boneMatrices = NULL;
for (int i = 0; i < _model->GetMeshCount(); ++i)
{
Mesh* mesh = _model->GetMeshByIndex(i);
Skin* skin = mesh->GetSkin();
if (_isSkinned && skin != NULL)
{
int boneCount = Math::Min(maxBoneCount, skin->SkinVertices.Count());
boneMatrices = new Matrix4[maxBoneCount];
for (int j = 0; j < boneCount; ++j)
{
Bone* bone = skeleton->GetBoneByIndex(skin->SkinVertices[j].BoneIndex);
boneMatrices[j] = bone->GetSkinTransform();
//boneMatrices[j].M0 = matrix.GetRow(0);
//boneMatrices[j].M1 = matrix.GetRow(1);
//boneMatrices[j].M2 = matrix.GetRow(2);
}
}
for (int j = 0; j < mesh->GetMeshPartCount(); ++j)
{
UpdateSkin_HW(mesh, mesh->GetMeshPart(j)->GetShader(), boneMatrices);
}
SE_DELETE_ARRAY(boneMatrices);
}
#endif
}
void SampleViewer::UpdateSkin(Mesh* mesh, ShaderMaterial* skinShader, Matrix4* boneMatrices)
{
EffectShader* effect = ((EffectMaterial*)skinShader)->GetEffectShader();
EffectTechnique* technique = effect->GetTechniqueByIndex(0);
EffectPass* pass = technique->GetPassByIndex(0);
Matrix4 world = _modelNode->GetWorldTransform() * _model->GetTransform();
Matrix4 worldViewProj = world * _camera->GetView() * _camera->GetProjection();
EffectParameter* worldViewProjParam = effect->GetParameterByName("WorldViewProj");
worldViewProjParam->SetValue(&worldViewProj);
if (boneMatrices != NULL)
{
EffectParameter* boneMatricesParam = effect->GetParameterByName("BoneMatrices");
boneMatricesParam->SetValue(boneMatrices);
}
Vector3 objCameraPosition = _camera->GetWorldPosition();
EffectParameter* objCameraPositionParam = effect->GetParameterByName("ObjCameraPosition");
objCameraPositionParam->SetValue(&objCameraPosition);
Color32 materialDiffuseColor = Color32::Red;
EffectParameter* materialDiffuseColorParam = effect->GetParameterByName("MaterialDiffuseColor");
materialDiffuseColorParam->SetValue(&materialDiffuseColor);
Color32 materialSpecularColor = Color32::White;
EffectParameter* materialSpecularColorParam = effect->GetParameterByName("MaterialSpecularColor");
materialSpecularColorParam->SetValue(&materialSpecularColor);
Vector3 directionalLightDirection = -Quaternion::Rotate(_camera->GetWorldOrientation(), Vector3::Forward);
EffectParameter* directionalLightDirectionParam = effect->GetParameterByName("DirectionalLightDirection");
directionalLightDirectionParam->SetValue(&directionalLightDirection);
Color32 directionalLightColor = Color32::White;
EffectParameter* directionalLightColorParam = effect->GetParameterByName("DirectionalLightColor");
directionalLightColorParam->SetValue(&directionalLightColor);
Color32 ambientLightColor = Color32::Black;
EffectParameter* ambientLightColorParam = effect->GetParameterByName("AmbientLightColor");
ambientLightColorParam->SetValue(&ambientLightColor);
}
void EntryPoint()
{
Console::WriteLine("Viewer Sample");
Console::WriteLine("=============");
try
{
SampleViewer::SetCurrent(new SampleViewer());
Application* theApp = SampleViewer::Current();
if (!theApp->Create())
{
Console::Read();
}
else
{
theApp->Start();
}
theApp->Destroy();
}
catch (const Exception& e)
{
Console::Error()->WriteLine(e.GetMessage());
Console::Read();
}
}
| 27.698587
| 126
| 0.713217
|
jdelezenne
|
4201c63cc305931eba5bda3ddaf7d640606dfe0a
| 3,244
|
hpp
|
C++
|
bench/juice-variant/include/juice/mpl.hpp
|
reuk/strict-variant
|
7d0f1433d5126951b1af350213a0c7e75575fab0
|
[
"BSL-1.0"
] | 62
|
2016-08-02T05:15:16.000Z
|
2020-02-14T18:02:34.000Z
|
bench/juice-variant/include/juice/mpl.hpp
|
reuk/strict-variant
|
7d0f1433d5126951b1af350213a0c7e75575fab0
|
[
"BSL-1.0"
] | 6
|
2016-12-07T03:00:46.000Z
|
2018-12-03T22:03:27.000Z
|
bench/juice-variant/include/juice/mpl.hpp
|
reuk/strict-variant
|
7d0f1433d5126951b1af350213a0c7e75575fab0
|
[
"BSL-1.0"
] | 6
|
2016-12-10T18:59:18.000Z
|
2019-11-05T08:11:11.000Z
|
/* Meta-programming utility.
Copyright (C) 2013 Jarryd Beck
This file is part of Juice.
Distributed under the Boost Software License, Version 1.0
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#ifndef JUICE_MPL_HPP_INCLUDED
#define JUICE_MPL_HPP_INCLUDED
#include <type_traits>
#include <cstdlib>
namespace juice
{
namespace detail
{
template
<
template <typename> class Size,
typename SoFar,
typename... Args
>
struct max_helper;
template
<
template <typename> class Size,
typename SoFar
>
struct max_helper<Size, SoFar>
{
static constexpr decltype(Size<SoFar>::value) value =
Size<SoFar>::value;
typedef SoFar type;
};
template
<
template <typename> class Size,
typename SoFar,
typename Next,
typename... Args
>
struct max_helper<Size, SoFar, Next, Args...>
{
private:
typedef typename std::conditional
<
(Size<Next>::value > Size<SoFar>::value),
max_helper<Size, Next, Args...>,
max_helper<Size, SoFar, Args...>
>::type m_next;
public:
static constexpr decltype(Size<SoFar>::value) value =
m_next::value;
typedef typename m_next::type type;
};
template <typename... Types>
struct pack_first;
template <typename First, typename... Types>
struct pack_first<First, Types...>
{
typedef First type;
};
}
template <template <typename> class Size, typename... Args>
struct max;
template
<
template <typename> class Size,
typename First,
typename... Args
>
struct max<Size, First, Args...>
{
private:
typedef decltype(Size<First>::value) m_size_type;
typedef detail::max_helper
<
Size,
First,
Args...
> m_helper;
public:
static constexpr m_size_type value = m_helper::value;
typedef typename m_helper::type type;
};
}
#endif
| 25.952
| 77
| 0.68434
|
reuk
|
4206e2ce7ff8190164a5af491b6040fb4a7739d9
| 27,559
|
cpp
|
C++
|
tests/n22_wilson_kcycle_adaptive/wilson_kcycle.cpp
|
weinbe2/quantum-mg
|
4e9be616124dc5b1b8e3a743d51350b26ebe36e8
|
[
"MIT"
] | null | null | null |
tests/n22_wilson_kcycle_adaptive/wilson_kcycle.cpp
|
weinbe2/quantum-mg
|
4e9be616124dc5b1b8e3a743d51350b26ebe36e8
|
[
"MIT"
] | null | null | null |
tests/n22_wilson_kcycle_adaptive/wilson_kcycle.cpp
|
weinbe2/quantum-mg
|
4e9be616124dc5b1b8e3a743d51350b26ebe36e8
|
[
"MIT"
] | 1
|
2021-09-01T21:11:06.000Z
|
2021-09-01T21:11:06.000Z
|
// Copyright (c) 2017 Evan S Weinberg
// A test of a K-cycle for the interacting
// Wilson operator. Null vector generation
// based on https://arxiv.org/pdf/1307.6101.pdf.
#include <iostream>
#include <iomanip>
#include <complex>
#include <cmath>
#include <random>
#include <vector>
using namespace std;
// QLINALG
#include "blas/generic_vector.h"
#include "inverters/generic_gcr.h"
#include "inverters/generic_gcr_var_precond.h"
#include "inverters/generic_bicgstab_l.h"
#include "inverters/generic_richardson.h"
#include "inverters/generic_minres.h"
#include "interfaces/arpack/generic_arpack.h"
// QMG
#include "lattice/lattice.h"
#include "transfer/transfer.h"
#include "stencil/stencil_2d.h"
#include "multigrid/stateful_multigrid.h"
// Grab Wilson operator (we just use unit gauge fields -> free laplace)
#include "operators/wilson.h"
#include "u1/u1_utils.h"
// Build new coarse levels by restricting+relaxing test vectors from upper levels.
// See better documentation below.
TransferMG* build_coarse_by_restrict(StatefulMultigridMG* mg_object, complex<double>*** test_vectors, int fine_level, Lattice2D* coarse_lat, StatefulMultigridMG::LevelSolveMG* new_level_solve, bool fresh_build, std::mt19937& generator, inversion_verbose_struct verb);
int main(int argc, char** argv)
{
if (argc != 6)
{
std::cout << "Error: ./wilson_kcycle expects five arguments, L, mass, beta, n_refine, and n_setup. Try mass = -0.075 for beta 6.0.\n";
return -1;
}
// Iterators.
int i,j,k,m;
// Check the spectrum?
const bool do_spectrum = false;
// Set output precision to be long.
cout << setprecision(20);
// Random number generator.
std::mt19937 generator (1337u);
// Basic information for fine level.
const int x_len = stoi(argv[1]);
const int y_len = stoi(argv[1]);
const double beta = stod(argv[3]);
const int dof = Wilson2D::get_dof();
// Information on the Wilson operator.
double mass = stod(argv[2]); // -0.075 is m_crit at beta = 6
// Blocking size.
const int x_block = 4;
const int y_block = 4;
// Number of null vectors.
int coarse_dof = 8;
// How many times to refine.
const int n_refine = stoi(argv[4]);
// Number of setup iterations.
const int n_setup = stoi(argv[5]);
// Information about the outermost solve.
const double tol = 1e-10;
const int max_iter = 1000;
const int restart_freq = 64;
// Information about intermediate solves.
const double inner_tol = 0.2;
const int inner_max_iter = 1000;
const int inner_restart_freq = 32;
// Information about pre- and post-smooths.
const int n_pre_smooth = 2;
const double pre_smooth_tol = 1e-15; // never
const int n_post_smooth = 2;
const double post_smooth_tol = 1e-15; // never
// Information about the coarsest solve.
const double coarsest_tol = 0.2;
const int coarsest_max_iter = 1000;
const int coarsest_restart_freq = 32;
// Somewhere to solve inversion info.
inversion_info invif;
// Verbosity.
inversion_verbose_struct verb;
verb.verbosity = VERB_DETAIL;
verb.verb_prefix = "Level 0: ";
verb.precond_verbosity = VERB_DETAIL;
verb.precond_verb_prefix = "Prec ";
// Create a lattice object for the fine lattice.
Lattice2D** lats = new Lattice2D*[n_refine+1];
lats[0] = new Lattice2D(x_len, y_len, dof);
// Prepare the gauge field.
Lattice2D* lat_gauge = new Lattice2D(x_len, y_len, 1); // hack...
complex<double>* gauge_field = allocate_vector<complex<double>>(lat_gauge->get_size_gauge());
bool need_heatbath = false;
if (beta == 6.0)
{
switch (x_len)
{
case 32:
read_gauge_u1(gauge_field, lat_gauge, "../common_cfgs_u1/l32t32b60_heatbath.dat");
break;
case 64:
read_gauge_u1(gauge_field, lat_gauge, "../common_cfgs_u1/l64t64b60_heatbath.dat");
break;
case 128:
read_gauge_u1(gauge_field, lat_gauge, "../common_cfgs_u1/l128t128b60_heatbath.dat");
break;
case 192:
read_gauge_u1(gauge_field, lat_gauge, "../common_cfgs_u1/l192t192b60_heatbath.dat");
break;
case 256:
read_gauge_u1(gauge_field, lat_gauge, "../common_cfgs_u1/l256t256b60_heatbath.dat");
break;
default:
need_heatbath = true;
break;
}
}
else if (beta == 10.0)
{
switch (x_len)
{
case 32:
read_gauge_u1(gauge_field, lat_gauge, "../common_cfgs_u1/l32t32b100_heatbath.dat");
break;
case 64:
read_gauge_u1(gauge_field, lat_gauge, "../common_cfgs_u1/l64t64b100_heatbath.dat");
break;
case 128:
read_gauge_u1(gauge_field, lat_gauge, "../common_cfgs_u1/l128t128b100_heatbath.dat");
break;
case 192:
read_gauge_u1(gauge_field, lat_gauge, "../common_cfgs_u1/l192t192b100_heatbath.dat");
break;
default:
need_heatbath = true;
break;
}
}
else
need_heatbath = true;
if (need_heatbath)
{
std::cout << "[QMG-NOTE]: L = " << x_len << " beta = " << beta << " requires heatbath generation.\n";
int n_therm = 4000; // how many heatbath steps to perform.
int n_meas = 100; // how often to measure the plaquette, topo.
double* phases = allocate_vector<double>(lat_gauge->get_size_gauge());
zero_vector(phases, lat_gauge->get_size_gauge());
double plaq = 0.0; // track along the way
double topo = 0.0;
for (int i = 0; i < n_therm; i += n_meas)
{
// Perform non-compact update.
heatbath_noncompact_update(phases, lat_gauge, beta, n_therm/n_meas, generator);
// Get compact links.
polar_vector(phases, gauge_field, lat_gauge->get_size_gauge());
plaq = std::real(get_plaquette_u1(gauge_field, lat_gauge));
topo = std::real(get_topo_u1(gauge_field, lat_gauge));
std::cout << "[QMG-HEATBATH]: Update " << i << " Plaq " << plaq << " Topo " << topo << "\n";
}
// Acquire final gauge field.
polar_vector(phases, gauge_field, lat_gauge->get_size_gauge());
// Clean up.
deallocate_vector(&phases);
}
delete lat_gauge;
// Create a Wilson stencil.
Wilson2D* wilson_op = new Wilson2D(lats[0], mass, gauge_field);
// Prepare level solve objects for the top level.
StatefulMultigridMG::LevelSolveMG** level_solve_objs = new StatefulMultigridMG::LevelSolveMG*[n_refine];
// Prepare coarsest solve object for the coarsest level.
StatefulMultigridMG::CoarsestSolveMG* coarsest_solve_obj = new StatefulMultigridMG::CoarsestSolveMG;
coarsest_solve_obj->coarsest_stencil_app = QMG_MATVEC_ORIGINAL;
coarsest_solve_obj->coarsest_tol = coarsest_tol;
coarsest_solve_obj->coarsest_iters = coarsest_max_iter;
coarsest_solve_obj->coarsest_restart_freq = coarsest_restart_freq;
// Create a MultigridMG object, push top level onto it!
StatefulMultigridMG* mg_object = new StatefulMultigridMG(lats[0], wilson_op, coarsest_solve_obj);
// Create coarse lattices, transfer objects.
// Push into MultigridMG object.
int curr_x_len = x_len;
int curr_y_len = y_len;
TransferMG** transfer_objs = new TransferMG*[n_refine];
complex<double>*** test_vectors = new complex<double>**[n_refine]; // gross. I need better data structures.
// Initial setup.
for (i = 0; i < n_refine; i++)
{
const int fine_idx = i; // Index the fine level.
const int coarse_idx = i+1; // Index the coarse level.
// Update to the new lattice size.
curr_x_len /= x_block;
curr_y_len /= y_block;
// Create a new lattice object.
lats[coarse_idx] = new Lattice2D(curr_x_len, curr_y_len, coarse_dof);
// Create space for test vectors.
test_vectors[fine_idx] = new complex<double>*[coarse_dof/2];
for (j = 0; j < coarse_dof/2; j++)
{
test_vectors[fine_idx][j] = allocate_vector<complex<double> >(lats[fine_idx]->get_size_cv());
zero_vector(test_vectors[fine_idx][j], lats[fine_idx]->get_size_cv());
}
// Zero out transfer object.
transfer_objs[fine_idx] = 0;
// Prepare a new LevelSolveMG object for each level.
level_solve_objs[fine_idx] = new StatefulMultigridMG::LevelSolveMG;
level_solve_objs[fine_idx]->fine_stencil_app = QMG_MATVEC_ORIGINAL;
level_solve_objs[fine_idx]->intermediate_tol = 1e-10; //inner_tol;
level_solve_objs[fine_idx]->intermediate_iters = 8; //inner_max_iter;
level_solve_objs[fine_idx]->intermediate_restart_freq = 1024;//inner_restart_freq;
level_solve_objs[fine_idx]->pre_tol = pre_smooth_tol;
level_solve_objs[fine_idx]->pre_iters = n_pre_smooth;
level_solve_objs[fine_idx]->post_tol = post_smooth_tol;
level_solve_objs[fine_idx]->post_iters = n_post_smooth;
}
// Throw and relax initial test vectors.
{
const int fine_idx = 0;
const int coarse_idx = 1;
// Create a new null vectors. These are copied into local memory in the
// transfer object, so we can create and destroy these in this loop.
complex<double>** null_vectors = new complex<double>*[coarse_dof];
// First level of setup. Smooth vectors.
for (j = 0; j < coarse_dof/2; j++)
{
// Update verbosity string.
verb.verb_prefix = "Level " + to_string(fine_idx) + " Init, Null Vector " + to_string(j) + " ";
// Will become up chiral projection
null_vectors[j] = allocate_vector<complex<double> >(lats[fine_idx]->get_size_cv());
null_vectors[j+coarse_dof/2] = allocate_vector<complex<double> >(lats[fine_idx]->get_size_cv());
zero_vector(null_vectors[j], lats[fine_idx]->get_size_cv());
zero_vector(null_vectors[j+coarse_dof/2], lats[fine_idx]->get_size_cv());
// Grab a temporary.
complex<double>* temp_rand = mg_object->get_storage(fine_idx)->check_out();
// Fill with random numbers on the top level.
gaussian(temp_rand, lats[fine_idx]->get_size_cv(), generator);
// Smooth with MR, 10 hits.
//minv_vector_bicgstab_l(test_vectors[fine_idx][j], temp_rand, lats[fine_idx]->get_size_cv(), 100, 1e-10, 8, apply_stencil_2D_M, (void*)mg_object->get_stencil(fine_idx), &verb);
invif = minv_vector_richardson(test_vectors[fine_idx][j], temp_rand, lats[fine_idx]->get_size_cv(), 10, 1e-10, 0.33, 250, apply_stencil_2D_M, (void*)mg_object->get_stencil(fine_idx), &verb);
//invif = minv_vector_gcr(test_vectors[fine_idx][j], temp_rand, lats[fine_idx]->get_size_cv(), 10, 1e-10, apply_stencil_2D_M, (void*)mg_object->get_stencil(fine_idx), &verb);
//invif = minv_vector_minres(test_vectors[fine_idx][j], temp_rand, lats[fine_idx]->get_size_cv(), 10, 1e-15, 0.66, apply_stencil_2D_M, (void*)mg_object->get_stencil(fine_idx), &verb);
mg_object->add_tracker_count(QMG_DSLASH_TYPE_NULLVEC, invif.ops_count, fine_idx);
mg_object->get_storage(fine_idx)->check_in(temp_rand);
// Orthogonalize against previous vectors.
for (k = 0; k < j; k++)
orthogonal(test_vectors[fine_idx][j], test_vectors[fine_idx][k], lats[fine_idx]->get_size_cv());
normalize(test_vectors[fine_idx][j], lats[fine_idx]->get_size_cv());
copy_vector(null_vectors[j], test_vectors[fine_idx][j], lats[fine_idx]->get_size_cv());
mg_object->get_stencil(fine_idx)->chiral_projection_both(null_vectors[j], null_vectors[j+coarse_dof/2]);
}
// Create a first transfer object.
// Create and populate a transfer object.
// Fine lattice, coarse lattice, null vector(s), perform the block ortho, don't save Cholesky, doubled by projection
transfer_objs[fine_idx] = new TransferMG(lats[fine_idx], lats[coarse_idx], null_vectors, true, false, QMG_DOUBLE_PROJECTION);
// Push a new level on the multigrid object! Also, save the global null vector.
// Arg 1: New lattice
// Arg 2: New transfer object (between new and prev lattice)
// Arg 3: Level solve object (specifies how to do intermediate solves and smooths)
// Arg 3: Should we construct the coarse stencil?
// Arg 4: Is the operator chiral? (True for Wilson)
// Arg 5: What should we construct the coarse stencil from? (Not relevant yet.)
// Arg 6: Non-block-orthogonalized null vector.
mg_object->push_level(lats[coarse_idx], transfer_objs[fine_idx], level_solve_objs[fine_idx], true, true, MultigridMG::QMG_MULTIGRID_PRECOND_ORIGINAL, null_vectors);
// Clean up a bit.
for (j = 0; j < coarse_dof; j++)
deallocate_vector(&null_vectors[j]);
delete[] null_vectors;
}
// Prepare initial levels.
for (i = 1; i < n_refine; i++)
{
const int fine_idx = i;
const int coarse_idx = i+1;
transfer_objs[fine_idx] = build_coarse_by_restrict(mg_object, test_vectors, fine_idx, lats[coarse_idx], level_solve_objs[fine_idx], true, generator, verb);
}
// Alright, initial setup is done. Let's do a setup update.
for (m = 0; m < n_setup; m++)
{
for (i = 0; i < n_refine; i++)
{
std::cout << "\n\n";
const int fine_idx = i; // Index the fine level.
const int coarse_idx = i+1; // Index the coarse level.
// Create a new null vectors. These are copied into local memory in the
// transfer object, so we can create and destroy these in this loop.
complex<double>** null_vectors = new complex<double>*[coarse_dof];
// Smooth each test vector using a K-cycle.
for (j = 0; j < coarse_dof/2; j++)
{
verb.verb_prefix = "Level " + to_string(fine_idx) + " Update " + to_string(m) + ", Null Vector " + to_string(j) + " ";
null_vectors[j] = allocate_vector<complex<double> >(lats[fine_idx]->get_size_cv());
null_vectors[j+coarse_dof/2] = allocate_vector<complex<double> >(lats[fine_idx]->get_size_cv());
zero_vector(null_vectors[j], lats[fine_idx]->get_size_cv());
zero_vector(null_vectors[j+coarse_dof/2], lats[fine_idx]->get_size_cv());
complex<double>* temp_rand = mg_object->get_storage(fine_idx)->check_out();
// if on the top level, grab the old test vector. Otherwise restrict from a level up.
if (i == 0)
{
copy_vector(temp_rand, test_vectors[fine_idx][j], lats[fine_idx]->get_size_cv());
}
else
{
zero_vector(temp_rand, lats[fine_idx]->get_size_cv());
mg_object->get_transfer(fine_idx-1)->restrict_f2c(test_vectors[fine_idx-1][j], temp_rand);
}
zero_vector(test_vectors[fine_idx][j], lats[fine_idx]->get_size_cv());
invif = minv_vector_gcr_var_precond(test_vectors[fine_idx][j], temp_rand, lats[fine_idx]->get_size_cv(),
10, 1e-10,
apply_stencil_2D_M, (void*)mg_object->get_stencil(fine_idx),
StatefulMultigridMG::mg_preconditioner, (void*)mg_object, &verb);
mg_object->get_storage(fine_idx)->check_in(temp_rand);
mg_object->add_tracker_count(QMG_DSLASH_TYPE_NULLVEC, invif.ops_count+1, fine_idx);
// Update null vectors.
zero_vector(null_vectors[j], lats[fine_idx]->get_size_cv());
zero_vector(null_vectors[j+coarse_dof/2], lats[fine_idx]->get_size_cv());
// Orthogonalize against previous vectors.
for (k = 0; k < j; k++)
orthogonal(test_vectors[fine_idx][j], test_vectors[fine_idx][k], lats[fine_idx]->get_size_cv());
normalize(test_vectors[fine_idx][j], lats[fine_idx]->get_size_cv());
copy_vector(null_vectors[j], test_vectors[fine_idx][j], lats[fine_idx]->get_size_cv());
mg_object->get_stencil(fine_idx)->chiral_projection_both(null_vectors[j], null_vectors[j+coarse_dof/2]);
std::cout << "\n";
}
// Build a new transfer object,
delete transfer_objs[fine_idx];
transfer_objs[fine_idx] = new TransferMG(lats[fine_idx], lats[coarse_idx], null_vectors, true, false, QMG_DOUBLE_PROJECTION);
// Update a level.
mg_object->update_level(coarse_idx, lats[coarse_idx], transfer_objs[fine_idx], level_solve_objs[fine_idx], true, true, MultigridMG::QMG_MULTIGRID_PRECOND_ORIGINAL, null_vectors);
// Rebuild all lower levels.
for (j = i+1; j < n_refine; j++)
{
const int fine_idx = j;
const int coarse_idx = j+1;
delete transfer_objs[fine_idx];
transfer_objs[fine_idx] = build_coarse_by_restrict(mg_object, test_vectors, fine_idx, lats[coarse_idx], level_solve_objs[fine_idx], false, generator, verb);
}
for (j = 0; j < coarse_dof; j++)
deallocate_vector(&null_vectors[j]);
delete[] null_vectors;
// Need to rebuild all lower levels, too. I guess I can just pop instead of updating.
// Go down a level.
if (i < n_refine-1)
mg_object->go_coarser();
}
// Pop back up.
for (i = 0; i < n_refine-1; i++)
mg_object->go_finer();
}
// Shift tracker to null vector counts.
for (i = 0; i <= n_refine; i++)
{
mg_object->shift_all_to_nullvec(i);
}
// Do the actual solve differently from the setup.
// Initial setup.
for (i = 0; i < n_refine; i++)
{
const int fine_idx = i; // Index the fine level.
const int coarse_idx = i+1; // Index the coarse level.
level_solve_objs[fine_idx]->fine_stencil_app = QMG_MATVEC_ORIGINAL;
level_solve_objs[fine_idx]->intermediate_tol = inner_tol;
level_solve_objs[fine_idx]->intermediate_iters = inner_max_iter;
level_solve_objs[fine_idx]->intermediate_restart_freq = inner_restart_freq;
level_solve_objs[fine_idx]->pre_tol = pre_smooth_tol;
level_solve_objs[fine_idx]->pre_iters = n_pre_smooth;
level_solve_objs[fine_idx]->post_tol = post_smooth_tol;
level_solve_objs[fine_idx]->post_iters = n_post_smooth;
}
// Prepare storage and a guess right hand side.
// Create a right hand side, fill with gaussian random numbers.
//complex<double>* b = allocate_vector<complex<double>>(lats[0]->get_size_cv());
complex<double>* b = mg_object->check_out(0);
gaussian(b, lats[0]->get_size_cv(), generator);
double bnorm = sqrt(norm2sq(b, lats[0]->get_size_cv()));
// Create a place to accumulate a solution. Assume a zero initial guess.
complex<double>* x = mg_object->check_out(0);
zero_vector(x, lats[0]->get_size_cv());
// Create a place to compute Ax. Since we have a zero initial guess, this
// starts as zero.
complex<double>* Ax = mg_object->check_out(0);
zero_vector(Ax, lats[0]->get_size_cv());
///////////////////
// Non-MG solve! //
///////////////////
/*invif = minv_vector_gcr_restart(x, b, lats[0]->get_size_cv(),
max_iter, tol, restart_freq,
apply_stencil_2D_M, (void*)mg_object->get_stencil(0));
cout << "Simple GCR solve " << (invif.success ? "converged" : "failed to converge")
<< " in " << invif.iter << " iterations with alleged tolerance "
<< sqrt(invif.resSq)/bnorm << ".\n";
zero_vector(Ax, lats[0]->get_size_cv());
mg_object->apply_stencil(Ax, x, 0);
cout << "Check tolerance " << sqrt(diffnorm2sq(b, Ax, lats[0]->get_size_cv()))/bnorm << "\n";
*/
////////////////////
// K-cycle solve! //
////////////////////
// Reset values.
zero_vector(x, lats[0]->get_size_cv());
zero_vector(Ax, lats[0]->get_size_cv());
// Run a VPGCR solve!
std::cout << "\n";
verb.verb_prefix = "[QMG-MG-SOLVE-INFO]: Level 0 ";
invif = minv_vector_gcr_var_precond_restart(x, b, lats[0]->get_size_cv(),
max_iter, tol, restart_freq,
apply_stencil_2D_M, (void*)mg_object->get_stencil(0),
StatefulMultigridMG::mg_preconditioner, (void*)mg_object, &verb);
mg_object->add_tracker_count(QMG_DSLASH_TYPE_KRYLOV, invif.ops_count, 0);
mg_object->add_iterations_count(invif.iter, 0);
cout << "Multigrid " << (invif.success ? "converged" : "failed to converge")
<< " in " << invif.iter << " iterations with alleged tolerance "
<< sqrt(invif.resSq)/bnorm << ".\n";
// Print stats for each level.
for (i = 0; i < n_refine+1; i++)
{
std::cout << "[QMG-OPS-STATS]: Level " << i << " NullVec " << mg_object->get_tracker_count(QMG_DSLASH_TYPE_NULLVEC, i)
<< " PreSmooth " << mg_object->get_tracker_count(QMG_DSLASH_TYPE_PRESMOOTH, i)
<< " Krylov " << mg_object->get_tracker_count(QMG_DSLASH_TYPE_KRYLOV, i)
<< " PostSmooth " << mg_object->get_tracker_count(QMG_DSLASH_TYPE_PRESMOOTH, i)
<< " Total " << mg_object->get_total_count(i)
<< "\n";
}
// Query average number of iterations on each level.
std::cout << "\n";
std::vector<double> avg_iter = mg_object->query_average_iterations();
for (i = 0; i < n_refine+1; i++)
{
std::cout << "[QMG-ITER-STATS]: Level " << i << " AverageIters " << avg_iter[i] << "\n";
}
// Check solution.
zero_vector(Ax, lats[0]->get_size_cv());
mg_object->apply_stencil(Ax, x, 0);
cout << "Check tolerance " << sqrt(diffnorm2sq(b, Ax, lats[0]->get_size_cv()))/bnorm << "\n";
// Check vectors back in.
mg_object->check_in(Ax, 0);
mg_object->check_in(x, 0);
mg_object->check_in(b, 0);
/////////////////////////
// Check the spectrum. //
/////////////////////////
if (do_spectrum)
{
// Declare an arpack object and some storage.
arpack_dcn* arpack;
complex<double>* eigs;
// Get spectrum of Wilson op.
arpack = new arpack_dcn(lats[0]->get_size_cv(), 4000, 1e-7, apply_stencil_2D_M, (void*)mg_object->get_stencil(0));
eigs = new complex<double>[lats[0]->get_size_cv()];
/*evecs = new complex<double>*(lats[1]->get_size_cv());
for (i = 0; i < lats[1]->get_size_cv())
{
evecs[i] = allocate_vector<complex<double> >(lats[1]->get_size_cv());
}*/
arpack->get_entire_eigensystem(eigs, arpack_dcn::ARPACK_SMALLEST_REAL);
for (i = 0; i < lats[0]->get_size_cv(); i++)
std::cout << "[ORIG-SPECTRUM]: " << i << " " << real(eigs[i]) << " + I " << imag(eigs[i]) << "\n";
delete[] eigs;
delete arpack;
// Get spectrum of coarsened op.
arpack = new arpack_dcn(lats[1]->get_size_cv(), 4000, 1e-7, apply_stencil_2D_M, (void*)mg_object->get_stencil(1));
eigs = new complex<double>[lats[1]->get_size_cv()];
/*evecs = new complex<double>*(lats[1]->get_size_cv());
for (i = 0; i < lats[1]->get_size_cv())
{
evecs[i] = allocate_vector<complex<double> >(lats[1]->get_size_cv());
}*/
arpack->get_entire_eigensystem(eigs, arpack_dcn::ARPACK_SMALLEST_REAL);
for (i = 0; i < lats[1]->get_size_cv(); i++)
std::cout << "[COARSE-SPECTRUM]: " << i << " " << real(eigs[i]) << " + I " << imag(eigs[i]) << "\n";
delete[] eigs;
delete arpack;
}
///////////////
// Clean up. //
///////////////
deallocate_vector(&gauge_field);
// Delete MultigridMG.
delete mg_object;
// Delete transfer objects.
for (i = 0; i < n_refine; i++)
{
delete transfer_objs[i];
}
delete[] transfer_objs;
// Delete stencil.
delete wilson_op;
// Delete coarsest solve objects.
delete coarsest_solve_obj;
// Delete level solve objects.
for (i = 0; i < n_refine; i++)
{
delete level_solve_objs[i];
}
delete[] level_solve_objs;
// Delete lattices.
for (i = 0; i <= n_refine; i++)
{
delete lats[i];
}
delete[] lats;
return 0;
}
// Build a new level by restricting then smoothing vectors
// from a level up.
// Arg 1: MG object.
// Arg 2: the current fine level.
// Arg 3: new coarse lattice.
// Arg 4: level solve object
// Arg 5: if true: this is a fresh build of the new level. if false: need to do it via update.
// Arg 6: random number generator.
// Arg 7: verbosity object
TransferMG* build_coarse_by_restrict(StatefulMultigridMG* mg_object, complex<double>*** test_vectors, int fine_level, Lattice2D* coarse_lat, StatefulMultigridMG::LevelSolveMG* new_level_solve, bool fresh_build, std::mt19937& generator, inversion_verbose_struct verb)
{
int j,k;
const int fine_idx = fine_level;
const int coarse_idx = fine_level+1;
const int coarse_dof = coarse_lat->get_nc();
const int fine_size_cv = mg_object->get_lattice(fine_idx)->get_size_cv();
// Somewhere to solve inversion info.
inversion_info invif;
// Create a new null vectors. These are copied into local memory in the
// transfer object, so we can create and destroy these in this loop.
complex<double>** null_vectors = new complex<double>*[coarse_dof];
// First level of setup. Smooth restricted vectors.
for (j = 0; j < coarse_dof/2; j++)
{
// Update verbosity string.
verb.verb_prefix = "Level " + to_string(fine_idx) + " Init, Null Vector " + to_string(j) + " ";
// Will become up chiral projection
null_vectors[j] = allocate_vector<complex<double> >(fine_size_cv);
null_vectors[j+coarse_dof/2] = allocate_vector<complex<double> >(fine_size_cv);
zero_vector(null_vectors[j], fine_size_cv);
zero_vector(null_vectors[j+coarse_dof/2], fine_size_cv);
// Grab a temporary.
complex<double>* temp_rand = mg_object->get_storage(fine_idx)->check_out();
// Fill with random numbers on the top level.
gaussian(temp_rand, fine_size_cv, generator);
// Smooth with MR, 10 hits.
//minv_vector_bicgstab_l(test_vectors[fine_idx][j], temp_rand, fine_size_cv, 100, 1e-10, 8, apply_stencil_2D_M, (void*)mg_object->get_stencil(fine_idx), &verb);
invif = minv_vector_richardson(test_vectors[fine_idx][j], temp_rand, fine_size_cv, 10, 1e-10, 0.33, 250, apply_stencil_2D_M, (void*)mg_object->get_stencil(fine_idx), &verb);
//invif = minv_vector_gcr(test_vectors[fine_idx][j], temp_rand, fine_size_cv, 10, 1e-10, apply_stencil_2D_M, (void*)mg_object->get_stencil(fine_idx), &verb);
//invif = minv_vector_minres(test_vectors[fine_idx][j], temp_rand, fine_size_cv, 10, 1e-15, 0.66, apply_stencil_2D_M, (void*)mg_object->get_stencil(fine_idx), &verb);
mg_object->add_tracker_count(QMG_DSLASH_TYPE_NULLVEC, invif.ops_count, fine_idx);
mg_object->get_storage(fine_idx)->check_in(temp_rand);
// Orthogonalize against previous vectors.
for (k = 0; k < j; k++)
orthogonal(test_vectors[fine_idx][j], test_vectors[fine_idx][k], fine_size_cv);
normalize(test_vectors[fine_idx][j], fine_size_cv);
copy_vector(null_vectors[j], test_vectors[fine_idx][j], fine_size_cv);
mg_object->get_stencil(fine_idx)->chiral_projection_both(null_vectors[j], null_vectors[j+coarse_dof/2]);
}
// Build a new transfer object.
TransferMG* transfer_obj = new TransferMG(mg_object->get_lattice(fine_idx), coarse_lat, null_vectors, true);
if (fresh_build)
{
// Push a new level on the multigrid object! Also, save the global null vector.
// Arg 1: New lattice
// Arg 2: New transfer object (between new and prev lattice)
// Arg 3: Level solve object (specifies how to do intermediate solves and smooths)
// Arg 3: Should we construct the coarse stencil?
// Arg 4: Is the operator chiral? (True for Wilson)
// Arg 5: What should we construct the coarse stencil from? (Not relevant yet.)
// Arg 6: Non-block-orthogonalized null vector.
mg_object->push_level(coarse_lat, transfer_obj, new_level_solve, true, true, MultigridMG::QMG_MULTIGRID_PRECOND_ORIGINAL, null_vectors);
}
else
{
// Update a level.
mg_object->update_level(coarse_idx, coarse_lat, transfer_obj, new_level_solve, true, true, MultigridMG::QMG_MULTIGRID_PRECOND_ORIGINAL, null_vectors);
}
// Clean up a bit.
for (j = 0; j < coarse_dof; j++)
deallocate_vector(&null_vectors[j]);
delete[] null_vectors;
return transfer_obj;
}
| 38.980198
| 267
| 0.670344
|
weinbe2
|
420841016695612ca2c8db36d2a8948247b12dab
| 1,057
|
cpp
|
C++
|
euler062.cpp
|
suihan74/ProjectEuler
|
0ccd2470206a606700ab5c2a7162b2a3d3de2f8d
|
[
"MIT"
] | null | null | null |
euler062.cpp
|
suihan74/ProjectEuler
|
0ccd2470206a606700ab5c2a7162b2a3d3de2f8d
|
[
"MIT"
] | null | null | null |
euler062.cpp
|
suihan74/ProjectEuler
|
0ccd2470206a606700ab5c2a7162b2a3d3de2f8d
|
[
"MIT"
] | null | null | null |
/**
* Problem 62 「立方数置換」
* 立方数 41063625 (345^3) は, 桁の順番を入れ替えると2つの立方数になる: 56623104 (384^3) と 66430125 (405^3) である.
* 41063625は, 立方数になるような桁の置換をちょうど3つもつ最小の立方数である.
*
* 立方数になるような桁の置換をちょうど5つもつ最小の立方数を求めよ.
*/
#include <algorithm>
#include <array>
#include <cstdint>
#include <iostream>
#include <string>
using uInt = std::uint_fast64_t; // 32bitだと溢れる
int main(void)
{
// 予め上限を決めて,立方数とその各桁に含まれる数字と文字列化・ソートしたもののペアでできた配列を作っておく
constexpr uInt MAX = 10000;
std::array<std::pair<uInt, std::string>, MAX> arr;
for (uInt i = 0; i < MAX; i++) {
const uInt i3 = i * i * i;
auto str = std::to_string(i3);
std::sort(str.begin(), str.end());
arr.at(i) = std::make_pair(i3, std::move(str));
}
for (uInt i = 0; i < MAX; i++) {
uInt count = 1; // 0ではなく1なのは,予め自分自身をカウントしているため
for (uInt j = i + 1; j < MAX; j++) {
if (arr[i].second == arr[j].second) { // ソート後文字列が一致すれば置換で表せる
count++;
}
}
if (count == 5) {
std::cout << "Euler062: " << arr[i].first << std::endl;
break;
}
}
return 0;
}
| 24.022727
| 89
| 0.598865
|
suihan74
|
420962aeb091c03f2c94c77f171ec6432e884c2d
| 3,724
|
cpp
|
C++
|
src/YVM.cpp
|
Freshman585/yvm
|
cf350a8a4260294fcd64a56296c6ab1940740463
|
[
"MIT"
] | 2
|
2020-05-14T15:48:15.000Z
|
2020-06-19T05:48:15.000Z
|
src/YVM.cpp
|
chrrg/yvm
|
cf350a8a4260294fcd64a56296c6ab1940740463
|
[
"MIT"
] | null | null | null |
src/YVM.cpp
|
chrrg/yvm
|
cf350a8a4260294fcd64a56296c6ab1940740463
|
[
"MIT"
] | 1
|
2020-09-17T13:38:18.000Z
|
2020-09-17T13:38:18.000Z
|
#include "YVM.h"
#include "MethodArea.h"
#include "JavaClass.h"
#include "Utils.h"
#include "JavaHeap.h"
#include "Descriptor.h"
#include "Option.h"
#include "Debug.h"
#include "NativeMethod.h"
#include "RuntimeEnv.h"
#include "GC.h"
YVM::ExecutorThreadPool YVM::executor;
#define FORCE(x) (reinterpret_cast<char*>(x))
/**
* \brief {class_name,method_name,descriptor_name,function_pointer}
*/
static const char*((nativeFunctionTable[])[4]) = {
{"ydk/lang/IO", "print", "(Ljava/lang/String;)V", FORCE(ydk_lang_IO_print_str)},
{"ydk/lang/IO", "print", "(I)V", FORCE(ydk_lang_IO_print_I)},
{"ydk/lang/IO", "print", "(C)V", FORCE(ydk_lang_IO_print_C)},
{"java/lang/Math", "random", "()D", FORCE(ydk_lang_Math_random)},
{"java/lang/StringBuilder", "append", "(I)Ljava/lang/StringBuilder;", FORCE(java_lang_stringbuilder_append_I)},
{"java/lang/StringBuilder", "append", "(C)Ljava/lang/StringBuilder;", FORCE(java_lang_stringbuilder_append_C)},
{
"java/lang/StringBuilder", "append", "(Ljava/lang/String;)Ljava/lang/StringBuilder;",
FORCE(java_lang_stringbuilder_append_str)
},
{"java/lang/StringBuilder", "toString", "()Ljava/lang/String;", FORCE(java_lang_stringbuilder_tostring)},
{"java/lang/Thread", "start", "()V", FORCE(java_lang_thread_start)}
};
YVM::YVM() {
#ifdef YVM_DEBUG_SHOW_SIZEOF_ALL_TYPE
Inspector::printSizeofInternalTypes();
#endif
}
bool YVM::loadClass(const char* name) {
return yrt.ma->loadJavaClass(name);
}
bool YVM::linkClass(const char* name) {
if (!yrt.ma->findJavaClass(name)) {
// It's not an logical endurable error, so we throw and linkage exception to denote it;
throw std::runtime_error("LinkageException: Class haven't been loaded into YVM yet!");
}
yrt.ma->linkJavaClass(name);
return true;
}
bool YVM::initClass(CodeExecution& exec, const char* name) {
if (!yrt.ma->findJavaClass(name)) {
// It's not an logical endurable error, so we throw and linkage exception to denote it;
throw std::runtime_error("InitializationException: Class haven't been loaded into YVM yet!");
}
yrt.ma->initClassIfAbsent(exec, name);
return true;
}
void YVM::callMain(const char* name) {
executor.initialize(1);
std::future<void> mainFuture = executor.submit([=]()->void {
#ifdef YVM_DEBUG_SHOW_THREAD_NAME
std::cout << "[Main Executing Thread] ID:" << std::this_thread::get_id() << "\n";
#endif
auto* jc = yrt.ma->loadClassIfAbsent(name);
yrt.ma->linkClassIfAbsent(name);
// For each execution thread, we have a code execution engine
CodeExecution exec{};
yrt.ma->initClassIfAbsent(exec, name);
exec.invokeByName(jc, "main", "([Ljava/lang/String;)V");
});
// Block untile all sub threads accomplished its task
for (const auto& start : executor.getTaskFutures()) {
start.get();
}
// Block until main thread accomplished;
mainFuture.get();
// Close garbage collection. This is optional since operation system would release all resources when process exited
yrt.gc->terminateGC();
// Terminate virtual machine normally
return;
}
void YVM::warmUp(const std::vector<std::string> & libPaths) {
int p = sizeof nativeFunctionTable / sizeof nativeFunctionTable[0];
for (int i = 0; i < p; i++) {
registerNativeMethod(
nativeFunctionTable[i][0],
nativeFunctionTable[i][1],
nativeFunctionTable[i][2],
reinterpret_cast<JType *(*)(RuntimeEnv*)>(
const_cast<char*>(nativeFunctionTable[i][3])));
}
// initialize runtime environment's search paths
yrt.ma = new MethodArea(libPaths);
}
| 35.132075
| 120
| 0.669173
|
Freshman585
|
420b1bd998c9161724bd3124295c81e711d7d1d9
| 1,368
|
hpp
|
C++
|
android-28/android/graphics/BitmapRegionDecoder.hpp
|
YJBeetle/QtAndroidAPI
|
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
|
[
"Apache-2.0"
] | 12
|
2020-03-26T02:38:56.000Z
|
2022-03-14T08:17:26.000Z
|
android-28/android/graphics/BitmapRegionDecoder.hpp
|
YJBeetle/QtAndroidAPI
|
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
|
[
"Apache-2.0"
] | 1
|
2021-01-27T06:07:45.000Z
|
2021-11-13T19:19:43.000Z
|
android-30/android/graphics/BitmapRegionDecoder.hpp
|
YJBeetle/QtAndroidAPI
|
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
|
[
"Apache-2.0"
] | 3
|
2021-02-02T12:34:55.000Z
|
2022-03-08T07:45:57.000Z
|
#pragma once
#include "../../JObject.hpp"
class JByteArray;
namespace android::graphics
{
class Bitmap;
}
namespace android::graphics
{
class BitmapFactory_Options;
}
namespace android::graphics
{
class Rect;
}
namespace java::io
{
class FileDescriptor;
}
namespace java::io
{
class InputStream;
}
class JString;
namespace android::graphics
{
class BitmapRegionDecoder : public JObject
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit BitmapRegionDecoder(const char *className, const char *sig, Ts...agv) : JObject(className, sig, std::forward<Ts>(agv)...) {}
BitmapRegionDecoder(QJniObject obj);
// Constructors
// Methods
static android::graphics::BitmapRegionDecoder newInstance(java::io::FileDescriptor arg0, jboolean arg1);
static android::graphics::BitmapRegionDecoder newInstance(java::io::InputStream arg0, jboolean arg1);
static android::graphics::BitmapRegionDecoder newInstance(JString arg0, jboolean arg1);
static android::graphics::BitmapRegionDecoder newInstance(JByteArray arg0, jint arg1, jint arg2, jboolean arg3);
android::graphics::Bitmap decodeRegion(android::graphics::Rect arg0, android::graphics::BitmapFactory_Options arg1) const;
jint getHeight() const;
jint getWidth() const;
jboolean isRecycled() const;
void recycle() const;
};
} // namespace android::graphics
| 25.333333
| 160
| 0.752193
|
YJBeetle
|
420fbdddf9212ffc8b331827b562079588a85f53
| 9,588
|
cpp
|
C++
|
Tools/CreateNormalMap/CreateNormalMap.cpp
|
wjezxujian/WildMagic4
|
249a17f8c447cf57c6283408e01009039810206a
|
[
"BSL-1.0"
] | 3
|
2021-08-02T04:03:03.000Z
|
2022-01-04T07:31:20.000Z
|
Tools/CreateNormalMap/CreateNormalMap.cpp
|
wjezxujian/WildMagic4
|
249a17f8c447cf57c6283408e01009039810206a
|
[
"BSL-1.0"
] | null | null | null |
Tools/CreateNormalMap/CreateNormalMap.cpp
|
wjezxujian/WildMagic4
|
249a17f8c447cf57c6283408e01009039810206a
|
[
"BSL-1.0"
] | 5
|
2019-10-13T02:44:19.000Z
|
2021-08-02T04:03:10.000Z
|
// Geometric Tools, Inc.
// http://www.geometrictools.com
// Copyright (c) 1998-2006. All Rights Reserved
//
// The Wild Magic Version 4 Restricted Libraries source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4RestrictedLicense.pdf
// and may not be copied or disclosed except in accordance with the terms
// of that agreement.
#include <windows.h>
#include "CreateNormalMap.h"
using namespace std;
WM4_CONSOLE_APPLICATION(CreateNormalMap);
//----------------------------------------------------------------------------
void CreateNormalMap::Usage ()
{
//cout << endl;
//cout << "To convert Windows BITMAP format to Wild Magic Image" << endl;
//cout << "Format (wmif), use" << endl;
//cout << " CreateNormalMap myfile.bmp [myfile.alpha.bmp]" << endl;
//cout << "The BITMAP myfile.bmp is a 24-bit image that stores RGB" << endl;
//cout << "components. If you want an alpha channel, supply" << endl;
//cout << "myfile.alpha.bmp, a 24-bit BITMAP image that is gray" << endl;
//cout << "scale (R = G = B). The common channel value is used as" << endl;
//cout << "the alpha channel of the output image, myfile.wmif." << endl;
}
//----------------------------------------------------------------------------
int CreateNormalMap::GetImage (const char* acBMPName, int& riWidth,
int& riHeight, unsigned char*& raucData)
{
riWidth = 0;
riHeight = 0;
raucData = 0;
HBITMAP hImage = (HBITMAP) LoadImage(NULL,acBMPName,IMAGE_BITMAP,0,0,
LR_LOADFROMFILE | LR_CREATEDIBSECTION);
if (!hImage)
{
return -2;
}
DIBSECTION dibSection;
GetObject(hImage,sizeof(DIBSECTION),&dibSection);
riWidth = dibSection.dsBm.bmWidth;
riHeight = dibSection.dsBm.bmHeight;
if (dibSection.dsBm.bmBitsPixel != 24)
{
return -3;
}
// Windows pads the rows of the BMP to be 4-byte aligned.
int iRowSize = 3*riWidth;
if ((iRowSize % 4) != 0)
{
iRowSize += 4 - (riWidth % 4);
}
// allocate the WMIF image
raucData = WM4_NEW unsigned char[3*riWidth*riHeight];
memset(raucData,0,3*riWidth*riHeight);
// Windows BMP stores BGR, need to invert to RGB.
unsigned char* aucOldRow = (unsigned char*)dibSection.dsBm.bmBits;
unsigned char* aucNewRow = raucData;
for (int iY = 0; iY < riHeight; iY++)
{
System::Memcpy(aucNewRow,3*riWidth,aucOldRow,3*riWidth);
for (int iX = 0; iX < riWidth; iX++)
{
unsigned char ucB = aucNewRow[3*iX ];
unsigned char ucR = aucNewRow[3*iX+2];
aucNewRow[3*iX ] = ucR;
aucNewRow[3*iX+2] = ucB;
}
aucOldRow += iRowSize;
aucNewRow += 3*riWidth;
}
DeleteObject(hImage);
return 0;
}
//----------------------------------------------------------------------------
void CreateNormalMap::SaveImage (const char* acBMPName, int iWidth,
int iHeight, unsigned char* aucData)
{
int iQuantity = iWidth*iHeight;
int iDataBytes = 3*iQuantity;
// Reverse byte order (Windows stores BGR (lowest byte to highest byte,
// MIF stores RGB).
for (int i = 0; i < iQuantity; i++)
{
unsigned char ucB = aucData[3*i ];
unsigned char ucR = aucData[3*i+2];
aucData[3*i ] = ucR;
aucData[3*i+2] = ucB;
}
// Windows expects 4-byte alignment for rows of the bitmap. Add padding
// if the input image does not satisfy this constraint.
int iNewWidth, iNewDataBytes;
unsigned char* aucNewData;
if ((iWidth % 4) != 0)
{
int iExtra = 4 - (iWidth % 4);
iNewWidth = iWidth + iExtra;
iNewDataBytes = 3*iNewWidth*iHeight;
aucNewData = WM4_NEW unsigned char[iNewDataBytes];
memset(aucNewData,0,iNewDataBytes*sizeof(unsigned char));
unsigned char* aucOldRow = aucData;
unsigned char* aucNewRow = aucNewData;
for (int iY = 0; iY < iHeight; iY++)
{
System::Memcpy(aucNewRow,3*iNewWidth,aucOldRow,3*iWidth);
aucOldRow += 3*iWidth;
aucNewRow += 3*iNewWidth;
}
}
else
{
iNewWidth = iWidth;
iNewDataBytes = iDataBytes;
aucNewData = aucData;
}
BITMAPFILEHEADER kFileHeader;
kFileHeader.bfType = 0x4d42; // "BM"
kFileHeader.bfSize =
sizeof(BITMAPFILEHEADER) +
sizeof(BITMAPINFOHEADER) +
iNewDataBytes;
kFileHeader.bfReserved1 = 0;
kFileHeader.bfReserved2 = 0;
kFileHeader.bfOffBits =
sizeof(BITMAPFILEHEADER) +
sizeof(BITMAPINFOHEADER);
BITMAPINFOHEADER kInfoHeader;
kInfoHeader.biSize = sizeof(BITMAPINFOHEADER);
kInfoHeader.biWidth = iNewWidth;
kInfoHeader.biHeight = iHeight;
kInfoHeader.biPlanes = 1;
kInfoHeader.biBitCount = 24;
kInfoHeader.biCompression = BI_RGB;
kInfoHeader.biSizeImage = 0;
kInfoHeader.biXPelsPerMeter = 0;
kInfoHeader.biYPelsPerMeter = 0;
kInfoHeader.biClrUsed = 0;
kInfoHeader.biClrImportant = 0;
std::ofstream kOStr(acBMPName,ios::out|ios::binary);
kOStr.write((const char*)&kFileHeader,sizeof(BITMAPFILEHEADER));
kOStr.write((const char*)&kInfoHeader,sizeof(BITMAPINFOHEADER));
kOStr.write((const char*)aucNewData,
iNewDataBytes*sizeof(unsigned char));
if (aucNewData != aucData)
{
WM4_DELETE[] aucNewData;
}
}
//----------------------------------------------------------------------------
unsigned char* CreateNormalMap::GenerateNormals (int iXMax, int iYMax,
float* afHeight, float fXScale, float fYScale)
{
// The values afHeight[i] are required to be in [0,1].
int iXMaxM1 = iXMax -1, iYMaxM1 = iYMax - 1;
unsigned char* aucNormal = WM4_NEW unsigned char[3*iXMax*iYMax];
for (int iY = 0; iY < iYMax; iY++)
{
// Use wrap-around.
int iYm1 = (iY > 0 ? iY-1 : iYMaxM1);
int iYp1 = (iY < iYMaxM1 ? iY+1 : 0);
for (int iX = 0; iX < iXMax; iX++)
{
// Use wrap-around.
int iXm1 = (iX > 0 ? iX-1 : iXMaxM1);
int iXp1 = (iX < iXMaxM1 ? iX+1 : 0);
// The approximation dH/dx is in [-xscale,xscale] and the
// approximation dH/dy is in [-yscale,yscale] since H is in
// [0,1].
float fHXm1Y = afHeight[iXm1 + iY*iXMax];
float fHXp1Y = afHeight[iXp1 + iY*iXMax];
float fHXYm1 = afHeight[iX + iYm1*iXMax];
float fHXYp1 = afHeight[iX + iYp1*iXMax];
float fDHDX = fXScale*(fHXp1Y - fHXm1Y);
float fDHDY = fYScale*(fHXYp1 - fHXYm1);
// Left-handed (x,y,z) coordinates are used, so no minus sign
// occurs in the first two components of the normal vector.
Vector3f kNormal(fDHDX,fDHDY,1.0f);
kNormal.Normalize();
// Transform the normal vector from [-1,1]^3 to [0,255]^3 so it
// can be stored as a color value.
unsigned char* aucCompressed = &aucNormal[3*(iX+iY*iXMax)];
aucCompressed[0] = (unsigned char)(127.5f*(kNormal[0]+1.0f));
aucCompressed[1] = (unsigned char)(127.5f*(kNormal[1]+1.0f));
aucCompressed[2] = (unsigned char)(127.5f*(kNormal[2]+1.0f));
}
}
return aucNormal;
}
//----------------------------------------------------------------------------
int CreateNormalMap::Main (int iArgQuantity, char** aacArgument)
{
if (iArgQuantity != 2)
{
Usage();
return -1;
}
// Get RGB input file. The filename must have extension ".bmp", so the
// filename is at least 5 characters long.
const char* acInFile = aacArgument[1];
const size_t uiInFileSize = strlen(acInFile);
if (uiInFileSize < 5)
{
return -2;
}
const char* acInFileExt = acInFile + uiInFileSize - 4;
if (acInFileExt[0] != '.'
|| tolower(acInFileExt[1]) != 'b'
|| tolower(acInFileExt[2]) != 'm'
|| tolower(acInFileExt[3]) != 'p')
{
return -3;
}
std::string kInName(acInFile);
// Extract the BMP data. The output width is guaranteed to be a multiple
// of four.
int iXMax, iYMax;
unsigned char* aucHeight;
int iErrorCode = GetImage(acInFile,iXMax,iYMax,aucHeight);
if (iErrorCode != 0)
{
WM4_DELETE[] aucHeight;
return iErrorCode;
}
// Convert to gray scale: I = 0.2125*R + 0.7154*G + 0.0721*B
int iQuantity = iXMax*iYMax;
float* afIntensity = WM4_NEW float[iQuantity];
int i;
for (i = 0; i < iQuantity; i++)
{
afIntensity[i] = 0.2125f*aucHeight[3*i] + 0.7154f*aucHeight[3*i+1] +
0.0721f*aucHeight[3*i+2];
unsigned char ucIntensity = (unsigned char)afIntensity[i];
aucHeight[3*i] = ucIntensity;
aucHeight[3*i+1] = ucIntensity;
aucHeight[3*i+2] = ucIntensity;
afIntensity[i] /= 255.0f; // in [0,1]
}
std::string kIntensityName = std::string("intensity.") + kInName;
SaveImage(kIntensityName.c_str(),iXMax,iYMax,aucHeight);
// Compute normals.
float fXScale = 4.0f, fYScale = 4.0f;
unsigned char* aucNormal = GenerateNormals(iXMax,iYMax,afIntensity,
fXScale,fYScale);
std::string kNormalName = std::string("normal.") + kInName;
SaveImage(kNormalName.c_str(),iXMax,iYMax,aucNormal);
WM4_DELETE[] aucNormal;
WM4_DELETE[] afIntensity;
WM4_DELETE[] aucHeight;
return 0;
}
//----------------------------------------------------------------------------
| 33.407666
| 80
| 0.581352
|
wjezxujian
|
421922df4eb9065a53435976509fe8b31ea3a661
| 1,782
|
cpp
|
C++
|
57_02_ContinuousSquenceWithSum/ContinuousSquenceWithSum.cpp
|
darkkiller123/-offer
|
a0859f469e5c8caef52d5ff145753ad46eda6aaa
|
[
"BSD-3-Clause"
] | 1
|
2019-05-07T12:18:46.000Z
|
2019-05-07T12:18:46.000Z
|
57_02_ContinuousSquenceWithSum/ContinuousSquenceWithSum.cpp
|
YihengJiang/CodingInterviewChinese2-master
|
0cc556b14b9096211683dd8e445935b7515e25e8
|
[
"BSD-3-Clause"
] | null | null | null |
57_02_ContinuousSquenceWithSum/ContinuousSquenceWithSum.cpp
|
YihengJiang/CodingInterviewChinese2-master
|
0cc556b14b9096211683dd8e445935b7515e25e8
|
[
"BSD-3-Clause"
] | null | null | null |
/*******************************************************************
Copyright(c) 2016, Harry He
All rights reserved.
Distributed under the BSD license.
(See accompanying file LICENSE.txt at
https://github.com/zhedahht/CodingInterviewChinese2/blob/master/LICENSE.txt)
*******************************************************************/
//==================================================================
// 《剑指Offer——名企面试官精讲典型编程题》代码
// 作者:何海涛
//==================================================================
// 面试题57(二):为s的连续正数序列
// 题目:输入一个正数s,打印出所有和为s的连续正数序列(至少含有两个数)。
// 例如输入15,由于1+2+3+4+5=4+5+6=7+8=15,所以结果打印出3个连续序列1~5、
// 4~6和7~8。
#include <cstdio>
void PrintContinuousSequence(int small, int big);
void FindContinuousSequence(int sum)
{
if(sum < 3)
return;
int small = 1;
int big = 2;
int middle = (1 + sum) / 2;
int curSum = small + big;
while(small < middle)
{
if(curSum == sum)
PrintContinuousSequence(small, big);
while(curSum > sum && small < middle)
{
curSum -= small;
small ++;
if(curSum == sum)
PrintContinuousSequence(small, big);
}
big ++;
curSum += big;
}
}
void PrintContinuousSequence(int small, int big)
{
for(int i = small; i <= big; ++ i)
printf("%d ", i);
printf("\n");
}
// ====================测试代码====================
void Test(const char* testName, int sum)
{
if(testName != nullptr)
printf("%s for %d begins: \n", testName, sum);
FindContinuousSequence(sum);
}
int main(int argc, char* argv[])
{
Test("test1", 1);
Test("test2", 3);
Test("test3", 4);
Test("test4", 9);
Test("test5", 15);
Test("test6", 100);
return 0;
}
| 21.731707
| 76
| 0.473625
|
darkkiller123
|
421e90a20e518feec3adc1e1fdde2fa4bca7fa14
| 2,309
|
hh
|
C++
|
src/Titon/Intl/Bag/InflectionBag.hh
|
ciklon-z/framework
|
cbf44729173d3a83b91a2b0a217c6b3827512e44
|
[
"BSD-2-Clause"
] | 206
|
2015-01-02T20:01:12.000Z
|
2021-04-15T09:49:56.000Z
|
src/Titon/Intl/Bag/InflectionBag.hh
|
ciklon-z/framework
|
cbf44729173d3a83b91a2b0a217c6b3827512e44
|
[
"BSD-2-Clause"
] | 44
|
2015-01-02T06:03:43.000Z
|
2017-11-20T18:29:06.000Z
|
src/Titon/Intl/Bag/InflectionBag.hh
|
titon/framework
|
cbf44729173d3a83b91a2b0a217c6b3827512e44
|
[
"BSD-2-Clause"
] | 27
|
2015-01-03T05:51:29.000Z
|
2022-02-21T13:50:40.000Z
|
<?hh // strict
/**
* @copyright 2010-2015, The Titon Project
* @license http://opensource.org/licenses/bsd-license.php
* @link http://titon.io
*/
namespace Titon\Intl\Bag;
use Titon\Common\Bag\AbstractBag;
/**
* A bag for locale specific inflection rules.
*
* @package Titon\Intl\Bag
*/
class InflectionBag extends AbstractBag<string, mixed> {
/**
* Return the irregular words map.
*
* @return Map<string, string>
*/
public function getIrregularWords(): Map<string, string> {
$irregular = $this->get('irregular');
if ($irregular instanceof Map) {
return $irregular;
}
return Map {};
}
/**
* Return the ordinal suffixes map.
*
* @return Map<string, string>
*/
public function getOrdinalSuffixes(): Map<string, string> {
$suffixes = $this->get('ordinal');
if ($suffixes instanceof Map) {
return $suffixes;
}
return Map {};
}
/**
* Return the plural patterns map.
*
* @return Map<string, string>
*/
public function getPluralPatterns(): Map<string, string> {
$patterns = $this->get('plural');
if ($patterns instanceof Map) {
return $patterns;
}
return Map {};
}
/**
* Return the singular patterns map.
*
* @return Map<string, string>
*/
public function getSingularPatterns(): Map<string, string> {
$patterns = $this->get('singular');
if ($patterns instanceof Map) {
return $patterns;
}
return Map {};
}
/**
* Return the transliterations map.
*
* @return Map<string, string>
*/
public function getTransliterations(): Map<string, string> {
$transliterations = $this->get('transliteration');
if ($transliterations instanceof Map) {
return $transliterations;
}
return Map {};
}
/**
* Return the uninflected words list.
*
* @return Set<string>
*/
public function getUninflectedWords(): Set<string> {
$uninflected = $this->get('uninflected');
if ($uninflected instanceof Set) {
return $uninflected;
}
return Set {};
}
}
| 20.990909
| 64
| 0.550022
|
ciklon-z
|
42261d6f1d9d0354ca6174b3cfa4135ecc978736
| 286
|
cpp
|
C++
|
ieee_sep/double.cpp
|
Tylores/ieee_sep
|
1928bed8076f4bfe702d34e436c6a85f197b0832
|
[
"BSD-2-Clause"
] | null | null | null |
ieee_sep/double.cpp
|
Tylores/ieee_sep
|
1928bed8076f4bfe702d34e436c6a85f197b0832
|
[
"BSD-2-Clause"
] | null | null | null |
ieee_sep/double.cpp
|
Tylores/ieee_sep
|
1928bed8076f4bfe702d34e436c6a85f197b0832
|
[
"BSD-2-Clause"
] | null | null | null |
///////////////////////////////////////////////////////////
// double.cpp
// Implementation of the Class double
// Created on: 13-Apr-2020 2:51:27 PM
///////////////////////////////////////////////////////////
#include "double.h"
double::double(){
}
double::~double(){
}
| 15.888889
| 59
| 0.356643
|
Tylores
|
4226410a86a21c19f5d9ce2cd4f7f2b177d35cb3
| 3,875
|
hh
|
C++
|
elements/analysis/packetmemstats.hh
|
BorisPis/asplos22-nicmem-fastclick
|
ab4df08ee056ed48a4c534ec5f8536a958f756b5
|
[
"BSD-3-Clause-Clear"
] | 129
|
2015-10-08T14:38:35.000Z
|
2022-03-06T14:54:44.000Z
|
elements/analysis/packetmemstats.hh
|
BorisPis/asplos22-nicmem-fastclick
|
ab4df08ee056ed48a4c534ec5f8536a958f756b5
|
[
"BSD-3-Clause-Clear"
] | 241
|
2016-02-17T16:17:58.000Z
|
2022-03-15T09:08:33.000Z
|
elements/analysis/packetmemstats.hh
|
BorisPis/asplos22-nicmem-fastclick
|
ab4df08ee056ed48a4c534ec5f8536a958f756b5
|
[
"BSD-3-Clause-Clear"
] | 61
|
2015-12-17T01:46:58.000Z
|
2022-02-07T22:25:19.000Z
|
// -*- c-basic-offset: 4 -*-
#ifndef CLICK_PACKETMEMSTATS_HH
#define CLICK_PACKETMEMSTATS_HH
#include <click/batchelement.hh>
#include <click/multithread.hh>
#define DEF_ALIGN 64
CLICK_DECLS
/*
=c
PacketMemStats([ALIGN_STRIDE])
=s counters
keep statistics about packet memory
=d
Expects Ethernet packets as input. Checks whether input packets are aligned
with respect to the ALIGN_STRIDE argument and counts aligned and total packets.
Reports the ratio of aligned/total and unaligned/total packets.
Keyword arguments are:
=over 1
=item ALIGN_STRIDE
Unsigned integer. Defines the stride of the alignment. Defaults to 64 (usual cache line length).
=e
FromDevice(eth0) -> PacketMemStats() -> ...
=h align_stride read-only
Returns the stride of the alignment.
=h aligned_pkts read-only
Returns the number of aligned packets with respect to the stride.
=h unaligned_pkts read-only
Returns the number of unaligned packets with respect to the stride.
=h total_pkts read-only
Returns the total number of packets seen so far.
=h align_stride write-only
Updates the alignment stride.
=a BatchStats */
class PacketMemStats : public BatchElement {
public:
PacketMemStats() CLICK_COLD;
PacketMemStats(unsigned align) CLICK_COLD;
~PacketMemStats() CLICK_COLD;
const char *class_name() const override { return "PacketMemStats"; }
const char *port_count() const override { return PORTS_1_1; }
int configure(Vector<String> &, ErrorHandler *) CLICK_COLD;
int initialize(ErrorHandler *) CLICK_COLD;
void cleanup(CleanupStage) CLICK_COLD;
Packet *simple_action(Packet *) override;
#if HAVE_BATCH
PacketBatch *simple_action_batch(PacketBatch *) override;
#endif
inline unsigned get_align() {
return _align;
}
inline void set_align(unsigned align) {
if (align != _align)
click_chatter("[%s] Updating alignment from %u to: %u", class_name(), _align, align);
_align = align;
}
void get_counter_status(uint64_t &tot_aligned, uint64_t &tot_unaligned, uint64_t &total);
void add_handlers();
private:
struct MemStats {
uint64_t aligned_pkt_count;
uint64_t total_pkt_count;
MemStats() : aligned_pkt_count(0), total_pkt_count(0) {
}
inline uint64_t get_aligned_pkts() {
return aligned_pkt_count;
}
inline uint64_t get_unaligned_pkts() {
assert(total_pkt_count >= aligned_pkt_count);
return (total_pkt_count - aligned_pkt_count);
}
inline uint64_t get_total_pkts() {
return total_pkt_count;
}
void update_aligned_pkts(uint64_t ap = (uint64_t)1) {
aligned_pkt_count += ap;
}
void update_total_pkts(uint64_t tp = (uint64_t)1) {
total_pkt_count += tp;
}
void report_stats(unsigned thread_id) {
click_chatter(
"[Thread %u] Aligned: %" PRIu64 ", Unaligned: %" PRIu64 ", Total: %" PRIu64,
thread_id, get_aligned_pkts(), get_unaligned_pkts(), get_total_pkts()
);
}
};
unsigned _align;
per_thread<PacketMemStats::MemStats *> _stats;
enum{
h_aligned = 0, h_unaligned, h_total, h_align_stride, h_aligned_ratio, h_unaligned_ratio
};
inline bool mem_is_aligned(void *p, unsigned k = DEF_ALIGN) {
return ((uintptr_t)p % k == 0);
}
static String read_handler(Element *e, void *thunk);
static int write_handler(const String &, Element *, void *, ErrorHandler *) CLICK_COLD;
};
CLICK_ENDDECLS
#endif
| 25.833333
| 101
| 0.634839
|
BorisPis
|
4226dc123faeaca272cd2f0c0c6cfa299ab2408c
| 1,059
|
cpp
|
C++
|
N0116-Populating-Next-Right-Pointers-in-Each-Node/solution1.cpp
|
loyio/leetcode
|
366393c29a434a621592ef6674a45795a3086184
|
[
"CC0-1.0"
] | null | null | null |
N0116-Populating-Next-Right-Pointers-in-Each-Node/solution1.cpp
|
loyio/leetcode
|
366393c29a434a621592ef6674a45795a3086184
|
[
"CC0-1.0"
] | null | null | null |
N0116-Populating-Next-Right-Pointers-in-Each-Node/solution1.cpp
|
loyio/leetcode
|
366393c29a434a621592ef6674a45795a3086184
|
[
"CC0-1.0"
] | 2
|
2022-01-25T05:31:31.000Z
|
2022-02-26T07:22:23.000Z
|
/*
// Definition for a Node.
class Node {
public:
int val;
Node* left;
Node* right;
Node* next;
Node() : val(0), left(NULL), right(NULL), next(NULL) {}
Node(int _val) : val(_val), left(NULL), right(NULL), next(NULL) {}
Node(int _val, Node* _left, Node* _right, Node* _next)
: val(_val), left(_left), right(_right), next(_next) {}
};
*/
class Solution {
public:
Node* connect(Node* root) {
if(root == nullptr){
return root;
}
queue<Node*> que;
que.push(root);
while(!que.empty()){
int size = que.size();
for(int i = 0; i < size; i++){
Node* node = que.front();
que.pop();
if(i < size-1){
node->next = que.front();
}
if(node->left){
que.push(node->left);
}
if(node->right){
que.push(node->right);
}
}
}
return root;
}
};
| 23.021739
| 70
| 0.423041
|
loyio
|
42290ded5c83a60591a2c3aa02e8eb91d28a4fed
| 206
|
cpp
|
C++
|
code/save_before/0730/6.cpp
|
EGyeom/BlogMaker
|
7b319a19bb23786c55a0539be86e1c3246e62240
|
[
"MIT"
] | 1
|
2021-06-03T13:44:27.000Z
|
2021-06-03T13:44:27.000Z
|
code/save_before/0730/6.cpp
|
EGyeom/BlogMaker
|
7b319a19bb23786c55a0539be86e1c3246e62240
|
[
"MIT"
] | null | null | null |
code/save_before/0730/6.cpp
|
EGyeom/BlogMaker
|
7b319a19bb23786c55a0539be86e1c3246e62240
|
[
"MIT"
] | null | null | null |
#include <iostream>
#include <vector>
using namespace std;
int solutions(vector<int> priorities)
{
vector<int>::iterator it = priorities.begin();
for(it; it != priorities.end(); ++it)
{
}
}
| 18.727273
| 50
| 0.640777
|
EGyeom
|
422c03c95860f9314a30feb780a89c6d0418ec53
| 9,476
|
cpp
|
C++
|
libcoreprio/ServiceManager.cpp
|
jeremycollake/coreprio
|
b66308263f1142428a21d041080cba5854743437
|
[
"MIT"
] | 33
|
2019-05-28T01:57:30.000Z
|
2021-11-24T09:47:20.000Z
|
libcoreprio/ServiceManager.cpp
|
jeremycollake/coreprio
|
b66308263f1142428a21d041080cba5854743437
|
[
"MIT"
] | 2
|
2020-06-16T00:00:58.000Z
|
2020-12-05T12:40:17.000Z
|
libcoreprio/ServiceManager.cpp
|
jeremycollake/coreprio
|
b66308263f1142428a21d041080cba5854743437
|
[
"MIT"
] | 4
|
2019-05-29T14:15:37.000Z
|
2021-09-22T15:42:06.000Z
|
/*
* Part of the CorePrio project
* (c)2019 Jeremy Collake <jeremy@bitsum.com>, Bitsum LLC
* https://bitsum.com/portfolio/coreprio
* See LICENSE.TXT
*
* ! LEGACY CODE WARNING (15+ years)
*
*/
#include "stdafx.h"
#include "ServiceManager.h"
bool ServiceManager::EnsureServiceIsEnabled(const WCHAR *ptszServiceName)
{
SC_HANDLE scServiceManager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
if (!scServiceManager)
{
return false;
}
// now open the target service
SC_HANDLE scTargetService = OpenService(scServiceManager, ptszServiceName, SERVICE_ALL_ACCESS);
if (!scTargetService)
{
CloseServiceHandle(scServiceManager);
return false;
}
// see if is enabled in its boot config, if not then enable it
DWORD dwBytesNeeded = 0;
QueryServiceConfig(scTargetService, NULL, 0, &dwBytesNeeded);
if(GetLastError() != ERROR_INSUFFICIENT_BUFFER)
{
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return false;
}
QUERY_SERVICE_CONFIG *pServiceConfig = reinterpret_cast<QUERY_SERVICE_CONFIG *>(new BYTE[dwBytesNeeded]);
memset(pServiceConfig, 0, dwBytesNeeded);
if (!QueryServiceConfig(scTargetService, pServiceConfig, dwBytesNeeded, &dwBytesNeeded))
{
delete pServiceConfig;
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return false;
}
if (pServiceConfig->dwStartType == SERVICE_DISABLED)
{
pServiceConfig->dwStartType = SERVICE_DEMAND_START;
if (!ChangeServiceConfig(scTargetService,
pServiceConfig->dwServiceType,
pServiceConfig->dwStartType,
pServiceConfig->dwErrorControl,
pServiceConfig->lpBinaryPathName,
pServiceConfig->lpLoadOrderGroup,
&pServiceConfig->dwTagId,
pServiceConfig->lpDependencies,
pServiceConfig->lpServiceStartName,
NULL,
pServiceConfig->lpDisplayName))
{
delete pServiceConfig;
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return false;
}
NotifyBootConfigStatus(TRUE);
}
delete pServiceConfig;
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return true;
}
bool ServiceManager::DoesServiceExist(const WCHAR *ptszServiceName)
{
SC_HANDLE scServiceManager = OpenSCManager(NULL, NULL, STANDARD_RIGHTS_READ | SC_MANAGER_CONNECT);
if (!scServiceManager)
{
return false;
}
// now open the target service
SC_HANDLE scTargetService = OpenService(scServiceManager, ptszServiceName, SERVICE_INTERROGATE | SERVICE_QUERY_STATUS);
if (!scTargetService)
{
CloseServiceHandle(scServiceManager);
return false;
}
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return true;
}
bool ServiceManager::Stop(const WCHAR *ptszServiceName, const unsigned int nMaxWaitMs)
{
SC_HANDLE scServiceManager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
if (!scServiceManager)
{
return false;
}
// now open the target service
SC_HANDLE scTargetService = OpenService(scServiceManager, ptszServiceName, SERVICE_ALL_ACCESS);
if (!scTargetService)
{
CloseServiceHandle(scServiceManager);
return false;
}
// see if is started already or not .. try to start if so
SERVICE_STATUS serviceStatus;
memset(&serviceStatus, 0, sizeof(SERVICE_STATUS));
if (!QueryServiceStatus(scTargetService, &serviceStatus))
{
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return false;
}
if (serviceStatus.dwCurrentState != SERVICE_STOPPED && serviceStatus.dwCurrentState != SERVICE_STOP_PENDING)
{
if (!ControlService(scTargetService, SERVICE_CONTROL_STOP, &serviceStatus))
{
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return false;
}
}
bool bR = nMaxWaitMs ? false : true; // return true (success) if we aren't waiting
if (nMaxWaitMs)
{
// service handles are NOT waitable objects
// MSDN says to use polling, so we will
// there a time to wait hint provided in the service config, but unreliable
for (unsigned int nI = 0; nI < nMaxWaitMs/recheckStatusIntervalMs; nI++)
{
if (IsServiceStopped(ptszServiceName))
{
bR = true;
break;
}
Sleep(recheckStatusIntervalMs);
}
}
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return bR;
}
bool ServiceManager::Start(const WCHAR *ptszServiceName, const unsigned int nMaxWaitMs)
{
SC_HANDLE scServiceManager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
if (!scServiceManager)
{
return false;
}
// now open the target service
SC_HANDLE scTargetService = OpenService(scServiceManager, ptszServiceName, SERVICE_ALL_ACCESS);
if (!scTargetService)
{
CloseServiceHandle(scServiceManager);
return false;
}
// see if is started already or not .. try to start if so
SERVICE_STATUS serviceStatus;
memset(&serviceStatus, 0, sizeof(SERVICE_STATUS));
if (!QueryServiceStatus(scTargetService, &serviceStatus))
{
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return false;
}
if (serviceStatus.dwCurrentState != SERVICE_RUNNING)
{
if (serviceStatus.dwCurrentState != SERVICE_START_PENDING)
{
if (!StartService(scTargetService, 0, NULL))
{
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return false;
}
}
}
bool bR = nMaxWaitMs ? false : true; // return true (success) if we aren't waiting
if (nMaxWaitMs)
{
DEBUG_PRINT(L"ServiceManager - waiting for start to complete");
// service handles are NOT waitable objects
// MSDN says to use polling, so we will
// there a time to wait hint provided in the service config, but unreliable
for (unsigned int nI = 0; nI < nMaxWaitMs/recheckStatusIntervalMs; nI++)
{
if (IsServiceStarted(ptszServiceName))
{
bR = true;
break;
}
Sleep(recheckStatusIntervalMs);
}
}
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return true;
}
bool ServiceManager::IsServiceDisabled(const WCHAR *ptszServiceName)
{
SC_HANDLE scServiceManager = OpenSCManager(NULL, NULL, SC_MANAGER_CONNECT);
if (!scServiceManager)
{
return false;
}
SC_HANDLE scTargetService = OpenService(scServiceManager, ptszServiceName, STANDARD_RIGHTS_READ | SERVICE_QUERY_CONFIG);
if (!scTargetService)
{
CloseServiceHandle(scServiceManager);
return false;
}
DWORD dwBytesNeeded = 0;
QueryServiceConfig(scTargetService, NULL, 0, &dwBytesNeeded);
if(GetLastError() != ERROR_INSUFFICIENT_BUFFER)
{
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return false;
}
QUERY_SERVICE_CONFIG *pServiceConfig = reinterpret_cast<QUERY_SERVICE_CONFIG*>(new BYTE[dwBytesNeeded]);
memset(pServiceConfig, 0, dwBytesNeeded);
if (!QueryServiceConfig(scTargetService, pServiceConfig, dwBytesNeeded, &dwBytesNeeded))
{
delete pServiceConfig;
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return false;
}
if (pServiceConfig->dwStartType == SERVICE_DISABLED)
{
delete pServiceConfig;
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return true;
}
delete pServiceConfig;
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return false;
}
bool ServiceManager::IsServiceStopped(const WCHAR *ptszServiceName)
{
SC_HANDLE scServiceManager = OpenSCManager(NULL, NULL, STANDARD_RIGHTS_READ | SC_MANAGER_CONNECT);
if (!scServiceManager)
{
return false;
}
// now open the target service
SC_HANDLE scTargetService = OpenService(scServiceManager, ptszServiceName, SERVICE_INTERROGATE | SERVICE_QUERY_STATUS);
if (!scTargetService)
{
CloseServiceHandle(scServiceManager);
return false;
}
// see if is started already or not .. try to start if so
SERVICE_STATUS serviceStatus;
memset(&serviceStatus, 0, sizeof(SERVICE_STATUS));
if (!QueryServiceStatus(scTargetService, &serviceStatus))
{
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return false;
}
// don't allow pending because want to know if it is done stopping
if (serviceStatus.dwCurrentState != SERVICE_STOPPED) //|| serviceStatus.dwCurrentState!=SERVICE_START_PENDING)
{
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return false;
}
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return true;
}
bool ServiceManager::IsServiceStarted(const WCHAR *ptszServiceName)
{
SC_HANDLE scServiceManager = OpenSCManager(NULL, NULL, STANDARD_RIGHTS_READ | SC_MANAGER_CONNECT);
if (!scServiceManager)
{
return false;
}
// now open the target service
SC_HANDLE scTargetService = OpenService(scServiceManager, ptszServiceName, SERVICE_INTERROGATE | SERVICE_QUERY_STATUS);
if (!scTargetService)
{
CloseServiceHandle(scServiceManager);
return false;
}
// see if is started already or not .. try to start if so
SERVICE_STATUS serviceStatus;
memset(&serviceStatus, 0, sizeof(SERVICE_STATUS));
if (!QueryServiceStatus(scTargetService, &serviceStatus))
{
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return false;
}
// don't allow pending because want to know if it is done starting
if (serviceStatus.dwCurrentState != SERVICE_RUNNING) //|| serviceStatus.dwCurrentState!=SERVICE_START_PENDING)
{
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return false;
}
CloseServiceHandle(scTargetService);
CloseServiceHandle(scServiceManager);
return true;
}
| 30.08254
| 121
| 0.772056
|
jeremycollake
|
422d8a6ea1709a1ba3cd88d4275aecfc41941017
| 836
|
cpp
|
C++
|
C++/uva10474.cpp
|
MrinmoiHossain/Uva-Solution
|
85602085b7c8e1d4711e679b8f5636678459b2c5
|
[
"MIT"
] | 1
|
2017-04-17T21:51:54.000Z
|
2017-04-17T21:51:54.000Z
|
C++/uva10474.cpp
|
MrinmoiHossain/Uva-Solution
|
85602085b7c8e1d4711e679b8f5636678459b2c5
|
[
"MIT"
] | 1
|
2020-06-24T23:43:11.000Z
|
2020-06-24T23:43:11.000Z
|
C++/uva10474.cpp
|
MrinmoiHossain/Uva-Solution
|
85602085b7c8e1d4711e679b8f5636678459b2c5
|
[
"MIT"
] | 2
|
2018-12-14T12:57:51.000Z
|
2020-01-03T09:00:07.000Z
|
//Accepted
#include <bits/stdc++.h>
using namespace std;
int main(void)
{
int n, m, pos = 1;
while(cin >> m >> n){
if(m == 0 && n == 0)
break;
vector<int> x(m);
vector<int> a(n);
for(int i = 0; i < m; i++)
cin >> x[i];
sort(x.begin(), x.end());
for(int i = 0; i < n; i++)
cin >> a[i];
cout << "CASE# " << pos << ":" << endl;
bool c = true;
for(int i = 0; i < n; i++){
c = true;
for(int j = 0; j < m; j++)
if(a[i] == x[j]){
cout << a[i] << " found at " << j + 1 << endl;
c = false;
break;
}
if(c)
cout << a[i] << " not found" << endl;
}
pos++;
}
}
| 22
| 66
| 0.312201
|
MrinmoiHossain
|
42313794d5d8480207d22e3b02daed08def74958
| 563
|
cpp
|
C++
|
C++/implement-queue-by-two-stacks.cpp
|
xenron/sandbox-dev-lintcode
|
114145723af43eafc84ff602ad3ac7b353a9fc38
|
[
"MIT"
] | 695
|
2015-04-18T16:11:56.000Z
|
2022-03-11T13:28:44.000Z
|
C++/implement-queue-by-two-stacks.cpp
|
Abd-Elrazek/LintCode
|
8f6ee0ff38cb7cf8bf9fca800243823931604155
|
[
"MIT"
] | 4
|
2015-07-04T13:07:35.000Z
|
2020-08-11T11:32:29.000Z
|
C++/implement-queue-by-two-stacks.cpp
|
Abd-Elrazek/LintCode
|
8f6ee0ff38cb7cf8bf9fca800243823931604155
|
[
"MIT"
] | 338
|
2015-04-28T04:39:03.000Z
|
2022-03-16T03:00:15.000Z
|
// Time: O(1), amortized
// Space: O(n)
class Queue {
public:
stack<int> stack1;
stack<int> stack2;
Queue() {
// do intialization if necessary
}
void push(int element) {
stack1.emplace(element);
}
int pop() {
int element = top();
stack2.pop();
return element;
}
int top() {
if (stack2.empty()) {
while (!stack1.empty()) {
stack2.emplace(stack1.top());
stack1.pop();
}
}
return stack2.top();
}
};
| 16.558824
| 45
| 0.456483
|
xenron
|
42340792ab7703c3a889adda66a6e0e3ff4affb8
| 678
|
cpp
|
C++
|
shakutori/abc130_d.cpp
|
Takumi1122/data-structure-algorithm
|
6b9f26e4dbba981f034518a972ecfc698b86d837
|
[
"MIT"
] | null | null | null |
shakutori/abc130_d.cpp
|
Takumi1122/data-structure-algorithm
|
6b9f26e4dbba981f034518a972ecfc698b86d837
|
[
"MIT"
] | null | null | null |
shakutori/abc130_d.cpp
|
Takumi1122/data-structure-algorithm
|
6b9f26e4dbba981f034518a972ecfc698b86d837
|
[
"MIT"
] | null | null | null |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
/*
参考リンク
ABC 130 D - Enough Array
https://atcoder.jp/contests/abc130/tasks/abc130_d
*/
int main() {
ll n, k;
cin >> n >> k;
vector<ll> a(n);
rep(i, n) cin >> a[i];
ll res = 0;
int right = 0;
ll sum = 0;
for (int left = 0; left < n; ++left) {
while (right < n && sum + a[right] < k) {
sum += a[right];
++right;
}
res += (right - left);
if (right == left)
++right;
else
sum -= a[left];
}
ll ans = n * (n + 1) / 2 - res;
cout << ans << endl;
return 0;
}
| 18.324324
| 55
| 0.489676
|
Takumi1122
|
4236247841accb517ab359e0ce3ff4c347d22f3f
| 899
|
cpp
|
C++
|
10849.cpp
|
felikjunvianto/kfile-uvaoj-submissions
|
5bd8b3b413ca8523abe412b0a0545f766f70ce63
|
[
"MIT"
] | null | null | null |
10849.cpp
|
felikjunvianto/kfile-uvaoj-submissions
|
5bd8b3b413ca8523abe412b0a0545f766f70ce63
|
[
"MIT"
] | null | null | null |
10849.cpp
|
felikjunvianto/kfile-uvaoj-submissions
|
5bd8b3b413ca8523abe412b0a0545f766f70ce63
|
[
"MIT"
] | null | null | null |
#include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#define eps 1e-9
#define PII pair<int,int>
#define PDD pair<double,double>
#define LL long long
#define INF 1000000000
using namespace std;
int C, T, N;
int r1, r2, c1, c2;
int main()
{
scanf("%d",&C);
while(C--)
{
scanf("%d",&T);
scanf("%d",&N);
while(T--)
{
scanf("%d %d %d %d\n",&r1, &c1, &r2, &c2);
if(abs(r1 - c1)%2 != abs(r2 - c2)%2) printf("no move\n"); else
if(r1 == r2 && c1 == c2) printf("0\n"); else
if(r1 - c1 == r2 - c2 || r1 + c1 == r2 + c2) printf("1\n"); else
printf("2\n");
}
}
return 0;
}
| 18.346939
| 70
| 0.561735
|
felikjunvianto
|
4236f34ba1a5886d1f92d06833a31e4ac53f1c62
| 1,080
|
hpp
|
C++
|
include/core/scope.hpp
|
aethelwerka/astraea
|
cf700a854d4183a263c7185b8ee3ab5d496215dc
|
[
"BSD-3-Clause"
] | 4
|
2021-08-22T17:27:05.000Z
|
2021-08-24T22:30:48.000Z
|
include/core/scope.hpp
|
aethelwerka/astraea
|
cf700a854d4183a263c7185b8ee3ab5d496215dc
|
[
"BSD-3-Clause"
] | null | null | null |
include/core/scope.hpp
|
aethelwerka/astraea
|
cf700a854d4183a263c7185b8ee3ab5d496215dc
|
[
"BSD-3-Clause"
] | null | null | null |
/*
* Copyright 2020 Krayfaus
* All rights reserved.
*
* This source code is licensed under the BSD-style license that can be
* found in the LICENSE file in the root directory of this source tree.
*/
#pragma once
#include "include/core/ast.hpp"
#include "include/utils/types.hpp"
namespace astraea {
struct Scope {
AstFunction **function_definitions;
uint32_t num_function_definitions;
AstType **type_definitions;
uint32_t num_type_definitions;
AstVariable **variable_definitions;
uint32_t num_variable_definitions;
};
Scope *scope_init();
AstFunction *scope_add_function_definition(Scope *scope, AstFunction *fdef);
AstFunction *scope_get_function_definition(Scope *scope, const char *fname);
AstType *scope_add_typedef(Scope *scope, AstType *type_def);
AstType *scope_get_typedef(Scope *scope, std::string_view type_name);
AstVariable *scope_add_variable_definition(Scope *scope, AstVariable *vdef);
AstVariable *scope_get_variable_definition(Scope *scope, const char *name);
} // namespace astraea
| 27.692308
| 77
| 0.748148
|
aethelwerka
|
42387ad7c2ca432406a63aaf21babf94b8a0ad58
| 271
|
hpp
|
C++
|
protocols/posix/include/protocols/posix/data.hpp
|
kITerE/managarm
|
e6d1229a0bed68cb672a9cad300345a9006d78c1
|
[
"MIT"
] | 935
|
2018-05-23T14:56:18.000Z
|
2022-03-29T07:27:20.000Z
|
protocols/posix/include/protocols/posix/data.hpp
|
kITerE/managarm
|
e6d1229a0bed68cb672a9cad300345a9006d78c1
|
[
"MIT"
] | 314
|
2018-05-04T15:58:06.000Z
|
2022-03-30T16:24:17.000Z
|
protocols/posix/include/protocols/posix/data.hpp
|
kITerE/managarm
|
e6d1229a0bed68cb672a9cad300345a9006d78c1
|
[
"MIT"
] | 65
|
2019-04-21T14:26:51.000Z
|
2022-03-12T03:16:41.000Z
|
#pragma once
#include <hel.h>
namespace posix {
struct ManagarmProcessData {
HelHandle posixLane;
HelHandle mbusLane;
void *threadPage;
HelHandle *fileTable;
void *clockTrackerPage;
};
struct ManagarmServerData {
HelHandle controlLane;
};
} // namespace posix
| 13.55
| 28
| 0.756458
|
kITerE
|
4239fe892bf29c8c96b7b92a19a01c0c66a76a1e
| 7,323
|
hpp
|
C++
|
nImO/nImOchunkArray.hpp
|
opendragon/nImO
|
cf1ca52781bf03e82a5886dafc16ec39b1e29ba5
|
[
"BSD-3-Clause"
] | null | null | null |
nImO/nImOchunkArray.hpp
|
opendragon/nImO
|
cf1ca52781bf03e82a5886dafc16ec39b1e29ba5
|
[
"BSD-3-Clause"
] | null | null | null |
nImO/nImOchunkArray.hpp
|
opendragon/nImO
|
cf1ca52781bf03e82a5886dafc16ec39b1e29ba5
|
[
"BSD-3-Clause"
] | null | null | null |
//--------------------------------------------------------------------------------------------------
//
// File: nImO/nImOchunkArray.hpp
//
// Project: nImO
//
// Contains: The class declaration for a string buffer.
//
// Written by: Norman Jaffe
//
// Copyright: (c) 2016 by OpenDragon.
//
// All rights reserved. Redistribution and use in source and binary forms, with or
// without modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright notice, this list
// of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright notice, this
// list of conditions and the following disclaimer in the documentation and / or
// other materials provided with the distribution.
// * Neither the name of the copyright holders nor the names of its contributors may
// be used to endorse or promote products derived from this software without
// specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
// SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
// DAMAGE.
//
// Created: 2016-05-03
//
//--------------------------------------------------------------------------------------------------
#if (! defined(nImOchunkArray_HPP_))
# define nImOchunkArray_HPP_ /* Header guard */
# include <nImOcommon.hpp>
# if defined(__APPLE__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wunknown-pragmas"
# pragma clang diagnostic ignored "-Wdocumentation-unknown-command"
# endif // defined(__APPLE__)
/*! @file
@brief The class declaration for an array of chunks. */
# if defined(__APPLE__)
# pragma clang diagnostic pop
# endif // defined(__APPLE__)
namespace nImO
{
/*! @brief The data constituting an array of chunks. */
class ChunkArray
{
public :
// Public type definitions.
protected :
// Protected type definitions.
private :
// Private type definitions.
public :
// Public methods.
/*! @brief The constructor.
@param[in] padWithNull @c true if the data needs to be @c nullptr-terminated. */
ChunkArray
(const bool padWithNull = false);
/*! @brief The copy constructor.
@param[in] other The object to be copied. */
ChunkArray
(const ChunkArray & other) = delete;
/*! @brief The move constructor.
@param[in] other The object to be moved. */
ChunkArray
(ChunkArray && other)
noexcept;
/*! @brief The destructor. */
virtual
~ChunkArray
(void);
/*! @brief Add some bytes to the buffer.
@param[in] data The bytes to be added.
@param[in] numBytes The number of bytes to add. */
virtual void
appendBytes
(const uint8_t * data,
const size_t numBytes);
/*! @brief Add some bytes to the buffer.
@param[in] data The bytes to be added.
@param[in] numBytes The number of bytes to add. */
inline void
appendBytes
(const DataKind * data,
const size_t numBytes)
{
appendBytes(ReinterpretCast(const uint8_t *, data), numBytes);
} // appendBytes
/*! @brief Return @c true if a particular index is past the end of the buffer.
@param[in] index The zero-based location in the buffer.
@return @c true if the index is past the end of the buffer. */
bool
atEnd
(const size_t index)
const;
/*! @brief Return the byte found at a particular index.
@param[in] index The zero-based location in the buffer.
@param[out] atEnd @c true if the index is past the end of the buffer.
@return The byte found at the provided index. */
int
getByte
(const size_t index,
bool & atEnd)
const;
/*! @brief Return a copy of the bytes in the buffer.
@return A copy of the bytes in the buffer. */
virtual std::string
getBytes
(void);
/*! @brief Return the number of valid bytes in the buffer.
@return The number of valid bytes in the buffer. */
virtual size_t
getLength
(void)
const;
/*! @brief The copy assignment operator.
@param[in] other The object to be copied.
@return The updated object. */
ChunkArray &
operator =
(const ChunkArray & other) = delete;
/*! @brief The move assignment operator.
@param[in] other The object to be moved.
@return The updated object. */
ChunkArray &
operator =
(ChunkArray && other)
noexcept;
/*! @brief Prepare the buffer for reuse.
@return The ChunkArray object so that cascading can be done. */
virtual ChunkArray &
reset
(void);
protected :
// Protected methods.
/*! @brief Return a chunk.
@param[in] index The index of a chunk.
@return The selected chunk. */
inline BufferChunk *
getBufferChunk
(const size_t index)
const
{
return _buffers[index];
} // getBufferChunk
/*! @brief Return the number of chunks.
@return The number of chunks. */
inline size_t
getNumChunks
(void)
const
{
return _numChunks;
} // getNumChunks
private :
// Private methods.
public :
// Public fields.
protected :
// Protected fields.
private :
// Private fields.
/*! @brief The internal buffers used to hold the assembled text. */
BufferChunk ** _buffers;
/*! @brief @c true if the buffers will have an extra byte for @c NULL termination and
@c false otherwise. */
bool _buffersArePadded;
/*! @brief The cached value of the buffer. */
std::string _cachedString;
/*! @brief The number of buffer chunks being used. */
size_t _numChunks;
}; // ChunkArray
} // nImO
#endif // ! defined(nImOchunkArray_HPP_)
| 33.591743
| 100
| 0.570668
|
opendragon
|
423c5bcf1366fa84cb3ac7f0163970adcf0d75be
| 4,016
|
cpp
|
C++
|
src/qt4_in_gtk2.cpp
|
ventosus/suil
|
d0252036f46ff5eb606973695cb975319e88821b
|
[
"0BSD"
] | null | null | null |
src/qt4_in_gtk2.cpp
|
ventosus/suil
|
d0252036f46ff5eb606973695cb975319e88821b
|
[
"0BSD"
] | null | null | null |
src/qt4_in_gtk2.cpp
|
ventosus/suil
|
d0252036f46ff5eb606973695cb975319e88821b
|
[
"0BSD"
] | null | null | null |
/*
Copyright 2011-2015 David Robillard <http://drobilla.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <gtk/gtk.h>
#include <QApplication>
#include <QX11EmbedWidget>
#include <QVBoxLayout>
#include "./suil_internal.h"
extern "C" {
#define SUIL_TYPE_QT_WRAPPER (suil_qt_wrapper_get_type())
#define SUIL_QT_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), SUIL_TYPE_QT_WRAPPER, SuilQtWrapper))
typedef struct _SuilQtWrapper SuilQtWrapper;
typedef struct _SuilQtWrapperClass SuilQtWrapperClass;
struct _SuilQtWrapper {
GtkSocket socket;
QApplication* app;
QX11EmbedWidget* qembed;
SuilWrapper* wrapper;
SuilInstance* instance;
};
struct _SuilQtWrapperClass {
GtkSocketClass parent_class;
};
GType suil_qt_wrapper_get_type(void); // Accessor for SUIL_TYPE_QT_WRAPPER
G_DEFINE_TYPE(SuilQtWrapper, suil_qt_wrapper, GTK_TYPE_SOCKET)
static void
suil_qt_wrapper_finalize(GObject* gobject)
{
SuilQtWrapper* const self = SUIL_QT_WRAPPER(gobject);
if (self->instance->handle) {
self->instance->descriptor->cleanup(self->instance->handle);
self->instance->handle = NULL;
}
delete self->qembed;
self->qembed = NULL;
self->app = NULL;
self->wrapper->impl = NULL;
G_OBJECT_CLASS(suil_qt_wrapper_parent_class)->finalize(gobject);
}
static void
suil_qt_wrapper_class_init(SuilQtWrapperClass* klass)
{
GObjectClass* const gobject_class = G_OBJECT_CLASS(klass);
gobject_class->finalize = suil_qt_wrapper_finalize;
}
static void
suil_qt_wrapper_init(SuilQtWrapper* self)
{
self->app = NULL;
self->qembed = NULL;
self->instance = NULL;
}
static void
suil_qt_wrapper_realize(GtkWidget* w, gpointer data)
{
SuilQtWrapper* const wrap = SUIL_QT_WRAPPER(w);
GtkSocket* const s = GTK_SOCKET(w);
gtk_socket_add_id(s, wrap->qembed->winId());
wrap->qembed->show();
}
static int
wrapper_wrap(SuilWrapper* wrapper,
SuilInstance* instance)
{
SuilQtWrapper* const wrap = SUIL_QT_WRAPPER(wrapper->impl);
wrap->qembed = new QX11EmbedWidget();
wrap->wrapper = wrapper;
wrap->instance = instance;
QWidget* qwidget = (QWidget*)instance->ui_widget;
QVBoxLayout* layout = new QVBoxLayout(wrap->qembed);
layout->addWidget(qwidget);
qwidget->setParent(wrap->qembed);
g_signal_connect_after(G_OBJECT(wrap),
"realize",
G_CALLBACK(suil_qt_wrapper_realize),
NULL);
instance->host_widget = GTK_WIDGET(wrap);
return 0;
}
static void
wrapper_free(SuilWrapper* wrapper)
{
if (wrapper->impl) {
SuilQtWrapper* const wrap = SUIL_QT_WRAPPER(wrapper->impl);
gtk_object_destroy(GTK_OBJECT(wrap));
}
}
SUIL_LIB_EXPORT
SuilWrapper*
suil_wrapper_new(SuilHost* host,
const char* host_type_uri,
const char* ui_type_uri,
LV2_Feature*** features,
unsigned n_features)
{
SuilWrapper* wrapper = (SuilWrapper*)calloc(1, sizeof(SuilWrapper));
wrapper->wrap = wrapper_wrap;
wrapper->free = wrapper_free;
SuilQtWrapper* const wrap = SUIL_QT_WRAPPER(
g_object_new(SUIL_TYPE_QT_WRAPPER, NULL));
if (qApp) {
wrap->app = qApp;
} else {
static int argc = 0;
wrap->app = new QApplication(argc, NULL, true);
}
wrap->wrapper = NULL;
wrapper->impl = wrap;
return wrapper;
}
} // extern "C"
| 25.1
| 101
| 0.72261
|
ventosus
|
423f23f540b1339203ff52e00695f9d593cc1855
| 1,283
|
cpp
|
C++
|
Source/ALSV4_CPP/Private/Character/QuatPlayerCameraManager.cpp
|
StomatoGod/ALSV4_CPP
|
9c9acbc7f7167194d241016efd4abd5d94e7e41f
|
[
"MIT"
] | null | null | null |
Source/ALSV4_CPP/Private/Character/QuatPlayerCameraManager.cpp
|
StomatoGod/ALSV4_CPP
|
9c9acbc7f7167194d241016efd4abd5d94e7e41f
|
[
"MIT"
] | null | null | null |
Source/ALSV4_CPP/Private/Character/QuatPlayerCameraManager.cpp
|
StomatoGod/ALSV4_CPP
|
9c9acbc7f7167194d241016efd4abd5d94e7e41f
|
[
"MIT"
] | null | null | null |
// Fill out your copyright notice in the Description page of Project Settings.
#include "Character/QuatPlayerCameraManager.h"
#include "Character/ALSBaseCharacter.h"
#include "Camera/CameraComponent.h"
#include "Components/StaticMeshComponent.h"
bool AQuatPlayerCameraManager::IsGravityWalker()
{
return true;
}
UCameraComponent* AQuatPlayerCameraManager::GetGravityPlayerCameraComponent()
{
if (AALSBaseCharacter* Character = Cast<AALSBaseCharacter>(GetViewTargetPawn()))
{
return Character->GetFirstPersonCamera();
return nullptr;
}
else
{
return nullptr;
}
}
void AQuatPlayerCameraManager::RotateComponents(FRotator DeltaRotation)
{
FQuat DeltaQuatPitch = FRotator(DeltaRotation.Pitch, 0.f, 0.f).Quaternion();
FQuat DeltaQuatYaw = FRotator(0.f, DeltaRotation.Yaw, 0.f).Quaternion();
if (AALSBaseCharacter* Character = Cast<AALSBaseCharacter>(GetViewTargetPawn()))
{
Character->GetCameraPoll()->AddLocalRotation(DeltaQuatYaw);
Character->GetFirstPersonCamera()->AddLocalRotation(DeltaQuatPitch);
}
}
void AQuatPlayerCameraManager::UpdateViewlRotationWithCameraRotation(FRotator& OutViewRotation)
{
if (AALSBaseCharacter* Character = Cast<AALSBaseCharacter>(GetViewTargetPawn()))
{
OutViewRotation = Character->CameraRotation;
}
}
| 22.508772
| 95
| 0.781761
|
StomatoGod
|
4242bff7ceb0a98469171e3cade6c75dedff938f
| 398
|
cc
|
C++
|
bitlinuxosnetworkclass/lesson21/demo1/mysignal.cc
|
DanteIoVeYou/Linux_Study
|
701a54caad3d65c511716111430ca08ada78f088
|
[
"MIT"
] | null | null | null |
bitlinuxosnetworkclass/lesson21/demo1/mysignal.cc
|
DanteIoVeYou/Linux_Study
|
701a54caad3d65c511716111430ca08ada78f088
|
[
"MIT"
] | null | null | null |
bitlinuxosnetworkclass/lesson21/demo1/mysignal.cc
|
DanteIoVeYou/Linux_Study
|
701a54caad3d65c511716111430ca08ada78f088
|
[
"MIT"
] | null | null | null |
#include <iostream>
#include <unistd.h>
#include <sys/types.h>
#include <signal.h>
void handler(int signo) {
std::cout << " helloworld: " << signo << std::endl;
}
int main() {
// sighandler_t sig = signal(SIGINT, handler);
for(int i = 1; i < 32; i++) {
signal(i, handler);
}
while(true) {
std::cout << "I am a process: " << getpid() << std::endl;
sleep(1);
}
return 0;
}
| 19.9
| 61
| 0.570352
|
DanteIoVeYou
|
42494f026bea6a696cd485ff8f032a78e2204360
| 1,592
|
cc
|
C++
|
pmemds/tests/pmemds_shareded_pq.cc
|
huangvincent170/cyclone
|
737af617ab1472dfb16e6c20a079e88dccf85850
|
[
"Apache-2.0"
] | 2
|
2019-04-16T01:33:36.000Z
|
2021-02-23T08:34:38.000Z
|
pmemds/tests/pmemds_shareded_pq.cc
|
huangvincent170/cyclone
|
737af617ab1472dfb16e6c20a079e88dccf85850
|
[
"Apache-2.0"
] | null | null | null |
pmemds/tests/pmemds_shareded_pq.cc
|
huangvincent170/cyclone
|
737af617ab1472dfb16e6c20a079e88dccf85850
|
[
"Apache-2.0"
] | 4
|
2020-03-27T18:06:33.000Z
|
2021-03-24T09:56:17.000Z
|
#include "../include/pmemds-client.h"
#include "../include/priority_queue/priority_queue-client.h"
#include "test_client.h"
#include "gtest/gtest.h"
#include "test_common.hpp"
namespace {
uint8_t partition_callback(void *){
return 0;
}
// testing concurrent HashMap impl with our routing bits
class pmemdsShardedPQTest : public ::testing::Test {
protected:
const uint16_t sharded_pq = 0;
void SetUp() override {
/* server side data-structure creation */
pmLib = new pmemds::PMLib(pmem_path,1);
shardedTestClient = new pmemdsclient::ShardedTestClient(pmLib, partition_callback);
shardedTestClient->open("testApp"); // TODO: move to pmlib
}
/* Code here will be called immediately after each test (right
before the destructor). */
void TearDown() override {
shardedTestClient->close();
delete (shardedTestClient);
delete (pmLib);
}
// Objects declared here can be used by all tests in the test case for Foo.
pm_rpc_t request, response;
pmemdsclient::ShardedTestClient *shardedTestClient;
pmemds::PMLib *pmLib;
};
TEST_F(pmemdsShardedPQTest, BasicWTest) {
pmemdsclient::PriorityQueueEngine *pq = new pmemdsclient::PriorityQueueEngine(shardedTestClient, sharded_pq, 1024 * 1024 * 8, 0UL);
ASSERT_EQ(pq->create(PM_CREAT), OK);
ASSERT_EQ(pq->insert(1234UL, 10UL), OK);
ASSERT_EQ(pq->close(), OK);
//ASSERT_EQ(pq->remove(), OK);
}
}
| 28.945455
| 139
| 0.63505
|
huangvincent170
|
424c3bb3e09b26c9ae9fea22e2aa597a5e32fd3f
| 6,386
|
hpp
|
C++
|
libs/Delphi/src/Syntax/Declarations/DelphiClassTypeDeclarationSyntax.hpp
|
henrikfroehling/interlinck
|
d9d947b890d9286c6596c687fcfcf016ef820d6b
|
[
"MIT"
] | null | null | null |
libs/Delphi/src/Syntax/Declarations/DelphiClassTypeDeclarationSyntax.hpp
|
henrikfroehling/interlinck
|
d9d947b890d9286c6596c687fcfcf016ef820d6b
|
[
"MIT"
] | 19
|
2021-12-01T20:37:23.000Z
|
2022-02-14T21:05:43.000Z
|
libs/Delphi/src/Syntax/Declarations/DelphiClassTypeDeclarationSyntax.hpp
|
henrikfroehling/interlinck
|
d9d947b890d9286c6596c687fcfcf016ef820d6b
|
[
"MIT"
] | null | null | null |
#ifndef ARGOS_DELPHI_SYNTAX_DECLARATIONS_DELPHICLASSTYPEDECLARATIONSYNTAX_H
#define ARGOS_DELPHI_SYNTAX_DECLARATIONS_DELPHICLASSTYPEDECLARATIONSYNTAX_H
#include <string>
#include <argos-Core/Syntax/SyntaxVariant.hpp>
#include <argos-Core/Types.hpp>
#include "Syntax/Declarations/DelphiTypeDeclarationSyntax.hpp"
namespace argos::Core::Syntax { class ISyntaxToken; }
namespace argos::Delphi::Syntax
{
class DelphiAncestorSyntax;
class DelphiTypeIdentifierSyntax;
// ----------------------------------------------------------------------------
// DelphiEmptyClassTypeDeclarationSyntax
// ----------------------------------------------------------------------------
class DelphiEmptyClassTypeDeclarationSyntax : public DelphiTypeDeclarationBaseSyntax
{
public:
DelphiEmptyClassTypeDeclarationSyntax() = delete;
explicit DelphiEmptyClassTypeDeclarationSyntax(Core::Syntax::SyntaxVariantList&& attributes,
const DelphiTypeIdentifierSyntax* typeIdentifer,
const Core::Syntax::ISyntaxToken* equalSign,
const Core::Syntax::ISyntaxToken* classKeyword,
const Core::Syntax::ISyntaxToken* endKeyword,
const Core::Syntax::ISyntaxToken* semiColonToken) noexcept;
~DelphiEmptyClassTypeDeclarationSyntax() noexcept override = default;
const Core::Syntax::ISyntaxToken* classKeyword() const noexcept;
const Core::Syntax::ISyntaxToken* endKeyword() const noexcept;
const Core::Syntax::ISyntaxToken* semiColonToken() const noexcept;
argos_size childCount() const noexcept override;
Core::Syntax::SyntaxVariant child(argos_size index) const noexcept override;
Core::Syntax::SyntaxVariant first() const noexcept override;
Core::Syntax::SyntaxVariant last() const noexcept override;
std::string typeName() const noexcept override;
private:
const Core::Syntax::ISyntaxToken* _classKeyword;
const Core::Syntax::ISyntaxToken* _endKeyword;
const Core::Syntax::ISyntaxToken* _semiColonToken;
};
// ----------------------------------------------------------------------------
// DelphiSimpleClassTypeDeclarationSyntax
// ----------------------------------------------------------------------------
class DelphiSimpleClassTypeDeclarationSyntax : public DelphiTypeDeclarationBaseSyntax
{
public:
DelphiSimpleClassTypeDeclarationSyntax() = delete;
explicit DelphiSimpleClassTypeDeclarationSyntax(Core::Syntax::SyntaxVariantList&& attributes,
const DelphiTypeIdentifierSyntax* typeIdentifer,
const Core::Syntax::ISyntaxToken* equalSign,
const Core::Syntax::ISyntaxToken* classKeyword,
const DelphiAncestorSyntax* ancestors,
const Core::Syntax::ISyntaxToken* semiColonToken) noexcept;
~DelphiSimpleClassTypeDeclarationSyntax() noexcept override = default;
const Core::Syntax::ISyntaxToken* classKeyword() const noexcept;
const DelphiAncestorSyntax* ancestors() const noexcept;
const Core::Syntax::ISyntaxToken* semiColonToken() const noexcept;
argos_size childCount() const noexcept override;
Core::Syntax::SyntaxVariant child(argos_size index) const noexcept override;
Core::Syntax::SyntaxVariant first() const noexcept override;
Core::Syntax::SyntaxVariant last() const noexcept override;
std::string typeName() const noexcept override;
private:
const Core::Syntax::ISyntaxToken* _classKeyword;
const DelphiAncestorSyntax* _ancestors;
const Core::Syntax::ISyntaxToken* _semiColonToken;
};
// ----------------------------------------------------------------------------
// DelphiClassTypeDeclarationSyntax
// ----------------------------------------------------------------------------
class DelphiClassTypeDeclarationSyntax : public DelphiTypeDeclarationBaseSyntax
{
public:
DelphiClassTypeDeclarationSyntax() = delete;
explicit DelphiClassTypeDeclarationSyntax(Core::Syntax::SyntaxVariantList&& attributes,
const DelphiTypeIdentifierSyntax* typeIdentifer,
const Core::Syntax::ISyntaxToken* equalSign,
const Core::Syntax::ISyntaxToken* classKeyword,
Core::Syntax::SyntaxVariantList&& classMembers,
const Core::Syntax::ISyntaxToken* endKeyword,
const Core::Syntax::ISyntaxToken* semiColonToken,
const Core::Syntax::ISyntaxToken* classStateKeyword = nullptr,
const DelphiAncestorSyntax* ancestors = nullptr) noexcept;
~DelphiClassTypeDeclarationSyntax() noexcept override = default;
const Core::Syntax::ISyntaxToken* classKeyword() const noexcept;
const Core::Syntax::ISyntaxToken* classStateKeyword() const noexcept;
const DelphiAncestorSyntax* ancestors() const noexcept;
const Core::Syntax::SyntaxVariantList& classMembers() const noexcept;
const Core::Syntax::ISyntaxToken* endKeyword() const noexcept;
const Core::Syntax::ISyntaxToken* semiColonToken() const noexcept;
argos_size childCount() const noexcept override;
Core::Syntax::SyntaxVariant child(argos_size index) const noexcept override;
Core::Syntax::SyntaxVariant first() const noexcept override;
Core::Syntax::SyntaxVariant last() const noexcept override;
std::string typeName() const noexcept override;
private:
const Core::Syntax::ISyntaxToken* _classKeyword;
const Core::Syntax::ISyntaxToken* _classStateKeyword; // optional
const DelphiAncestorSyntax* _ancestors; // optional
Core::Syntax::SyntaxVariantList _classMembers;
const Core::Syntax::ISyntaxToken* _endKeyword;
const Core::Syntax::ISyntaxToken* _semiColonToken;
};
} // end namespace argos::Delphi::Syntax
#endif // ARGOS_DELPHI_SYNTAX_DECLARATIONS_DELPHICLASSTYPEDECLARATIONSYNTAX_H
| 46.955882
| 111
| 0.626997
|
henrikfroehling
|
425261577fd755971ea0aa0da905eb9ada4e5947
| 6,533
|
cc
|
C++
|
mace/ops/arm/base/bias_add.cc
|
zhangzhimin/mace
|
c28f093d719fd650a4308895cd045c26d0f198f6
|
[
"Apache-2.0"
] | 1
|
2021-08-02T12:17:58.000Z
|
2021-08-02T12:17:58.000Z
|
mace/ops/arm/base/bias_add.cc
|
zhangzhimin/mace
|
c28f093d719fd650a4308895cd045c26d0f198f6
|
[
"Apache-2.0"
] | null | null | null |
mace/ops/arm/base/bias_add.cc
|
zhangzhimin/mace
|
c28f093d719fd650a4308895cd045c26d0f198f6
|
[
"Apache-2.0"
] | 1
|
2021-08-02T12:18:00.000Z
|
2021-08-02T12:18:00.000Z
|
// Copyright 2020 The MACE Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "mace/ops/arm/base/bias_add.h"
#include <functional>
#include <vector>
#include "mace/ops/arm/base/common_neon.h"
namespace mace {
namespace ops {
namespace arm {
extern template void BiasAdd<uint8_t>::AddBiasNCHW<1>(
utils::ThreadPool *, const Tensor *, const Tensor *, Tensor *);
extern template void BiasAdd<uint8_t>::AddBiasNCHW<2>(
utils::ThreadPool *, const Tensor *, const Tensor *, Tensor *);
extern template void BiasAdd<uint8_t>::AddBiasNHWC<1>(
utils::ThreadPool *, const Tensor *, const Tensor *, Tensor *);
extern template void BiasAdd<uint8_t>::AddBiasNHWC<2>(
utils::ThreadPool *, const Tensor *, const Tensor *, Tensor *);
template<typename T>
MaceStatus BiasAdd<T>::Compute(const OpContext *context,
const Tensor *input,
const Tensor *bias,
Tensor *output,
const bool isNCHW) {
if (input != output) {
if (bias == nullptr) {
output->Copy(*input);
} else {
MACE_RETURN_IF_ERROR(output->ResizeLike(input));
Tensor::MappingGuard input_guard(input);
Tensor::MappingGuard bias_guard(bias);
Tensor::MappingGuard output_guard(output);
AddBias(context, input, bias, output, isNCHW);
}
} else {
if (bias != nullptr) {
Tensor::MappingGuard input_guard(input);
Tensor::MappingGuard bias_guard(bias);
AddBias(context, input, bias, output, isNCHW);
}
}
return MaceStatus::MACE_SUCCESS;
}
template<typename T>
void BiasAdd<T>::AddBias(const OpContext *context,
const Tensor *input,
const Tensor *bias,
mace::Tensor *output,
const bool isNCHW) {
utils::ThreadPool
&thread_pool = context->device()->cpu_runtime()->thread_pool();
if (isNCHW) {
if (bias->dim_size() == 1) {
AddBiasNCHW<1>(&thread_pool, input, bias, output);
} else {
AddBiasNCHW<2>(&thread_pool, input, bias, output);
}
} else {
if (bias->dim_size() == 1) {
AddBiasNHWC<1>(&thread_pool, input, bias, output);
} else {
AddBiasNHWC<2>(&thread_pool, input, bias, output);
}
}
}
template <typename T>
template <int Dim>
void BiasAdd<T>::AddBiasNCHW(utils::ThreadPool *thread_pool,
const Tensor *input,
const Tensor *bias,
Tensor *output) {
const auto input_data = input->data<T>();
const auto bias_data = bias->data<T>();
auto output_data = output->mutable_data<T>();
const index_t batch = input->dim(0);
const index_t channels = input->dim(1);
const index_t image_size = input->dim(2) * input->dim(3);
const index_t block_count = image_size / 4;
const index_t remain = image_size % 4;
thread_pool->Compute2D(
[=](index_t start0, index_t end0, index_t step0, index_t start1,
index_t end1, index_t step1) {
for (index_t b = start0; b < end0; b += step0) {
const index_t b_offset = b * channels;
for (index_t c = start1; c < end1; c += step1) {
const index_t offset = (b_offset + c) * image_size;
auto input_ptr = input_data + offset;
auto output_ptr = output_data + offset;
const float bias = bias_data[bias_index<Dim>(b_offset, c)];
float32x4_t vbias = vdupq_n_f32(bias);
for (index_t i = 0; i < block_count; ++i) {
float32x4_t v = vld1q(input_ptr);
v = vaddq_f32(v, vbias);
vst1q(output_ptr, v);
input_ptr += 4;
output_ptr += 4;
}
for (index_t i = 0; i < remain; ++i) {
(*output_ptr++) = (*input_ptr++) + bias;
}
}
}
},
0, batch, 1, 0, channels, 1);
}
template <typename T>
template <int Dim>
void BiasAdd<T>::AddBiasNHWC(utils::ThreadPool *thread_pool,
const Tensor *input,
const Tensor *bias,
Tensor *output) {
const auto input_ptr = input->data<T>();
const auto bias_ptr = bias->data<T>();
auto output_ptr = output->mutable_data<T>();
const std::vector<index_t> &shape = input->shape();
const index_t channels = *shape.rbegin();
const auto batch = shape[0];
if (Dim == 2) {
MACE_CHECK(batch == bias->shape()[0]);
}
const index_t fused_hw = std::accumulate(shape.begin() + 1, shape.end() - 1,
1, std::multiplies<index_t>());
thread_pool->Compute2D(
[=](index_t start0, index_t end0, index_t step0, index_t start1,
index_t end1, index_t step1) {
for (index_t i = start0; i < end0; i += step0) {
auto offset = i * fused_hw;
auto bias_offset = i * channels;
for (index_t j = start1; j < end1; j += step1) {
index_t pos = (offset + j) * channels;
for (index_t c = 0; c < channels; ++c, ++pos) {
output_ptr[pos] =
input_ptr[pos] + bias_ptr[bias_index<Dim>(bias_offset, c)];
}
}
}
},
0, batch, 1, 0, fused_hw, 1);
}
void RegisterBiasAddDelegator(OpDelegatorRegistry *registry) {
MACE_REGISTER_DELEGATOR(
registry, BiasAdd<float>, DelegatorParam,
MACE_DELEGATOR_KEY(BiasAdd, DeviceType::CPU, float, ImplType::NEON));
#ifdef MACE_ENABLE_QUANTIZE
MACE_REGISTER_DELEGATOR(
registry, BiasAdd<uint8_t>, DelegatorParam,
MACE_DELEGATOR_KEY(BiasAdd, DeviceType::CPU, uint8_t, ImplType::NEON));
#endif // MACE_ENABLE_QUANTIZE
MACE_REGISTER_BF16_DELEGATOR(
registry, BiasAdd<BFloat16>, DelegatorParam,
MACE_DELEGATOR_KEY(BiasAdd, DeviceType::CPU, BFloat16, ImplType::NEON));
}
} // namespace arm
} // namespace ops
} // namespace mace
| 35.123656
| 78
| 0.597888
|
zhangzhimin
|
425790b8cc56c9b7ffe37dccebaac93948543201
| 6,650
|
cpp
|
C++
|
src/Engine/Physics/PhysicsHandler.cpp
|
robbiehammond/Game-Console
|
e7869ddc52bcf506c20d8be6c7b8d2df534a7ace
|
[
"MIT"
] | null | null | null |
src/Engine/Physics/PhysicsHandler.cpp
|
robbiehammond/Game-Console
|
e7869ddc52bcf506c20d8be6c7b8d2df534a7ace
|
[
"MIT"
] | null | null | null |
src/Engine/Physics/PhysicsHandler.cpp
|
robbiehammond/Game-Console
|
e7869ddc52bcf506c20d8be6c7b8d2df534a7ace
|
[
"MIT"
] | null | null | null |
#include "PhysicsHandler.h"
Adafruit_ST7735* PhysicsHandler::screen = nullptr;
bool PhysicsHandler::screenInitialized = false;
int PhysicsHandler::screenHeight = 0;
int PhysicsHandler::screenWidth = 0;
Vec2D PhysicsHandler::playerVelocity = Vec2D(2,2);
Vec2D PhysicsHandler::playerCoords = Vec2D(0,0); //dependent on player, not vice versa
bool PhysicsHandler::toggleGravity = false;
bool PhysicsHandler::toggleBouncyWalls = false;
bool PhysicsHandler::shouldTrackPlayer = false;
void PhysicsHandler::update(Entity *obj, GameType type) {
switch (type) {
case FALLING_PHYSICS:
fallingPhysicsUpdate(obj);
break;
case MINIMAL:
minimalUpdate(obj);
default:
break;
}
}
void PhysicsHandler::reset(Entity **objects, int len) {
//TODO
}
void PhysicsHandler::initialize(Adafruit_ST7735 *s, int stageWidth) {
screen = s;
screenHeight = screen->height() - 10;
//default to stage being screen size if stageWidth left blank
if (stageWidth == 0)
screenWidth = screen->width();
else
screenWidth = stageWidth;
}
void PhysicsHandler::fallingPhysicsUpdate(Entity *curObj) {
//pre-op checks/updates: where exactly the object is; is it out of bounds?
curObj->boundsCheck(screenHeight, screenWidth);
curObj->setCurVelocity(0, 0); //stop to update
if (curObj->isPlayer()) {
playerCoords = curObj->getOriginPos();
movePlayer(curObj);
}
else if (curObj->isEnemy() && shouldTrackPlayer) {
applyEnemyTracking(curObj);
}
//apply effects
if (toggleBouncyWalls) {
applyBouncyWallsEffect(curObj);
}
if (toggleGravity) {
applyGravityEffect(curObj);
}
//update the position
curObj->setOriginPos(curObj->getOriginPos() + curObj->getCurVelocity());
}
void PhysicsHandler::applyBouncyWallsEffect(Entity* obj) {
//Maybe include some kind of "energy loss" field that can be toggled later on?
if (obj->isOOBBottom() || obj->isOOBTop()) {
//if it top or bottom of screen, flip y direction
obj->setCurVelocity(obj->getCurVelocity().x, obj->getCurVelocity().y * -1);
}
if (obj->isOOBRight() || obj->isOOBLeft()) {
obj->setCurVelocity(obj->getCurVelocity().x * -1, obj->getCurVelocity().y);
}
}
void PhysicsHandler::applyGravityEffect(Entity *obj) {
}
//USE: If you just want the buttons to control a single player
void PhysicsHandler::movePlayer(Entity *obj) {
//Probably should move the "would be" checks to setOriginPos
if (IOHandler::leftPressed())
moveLeft(obj);
if (IOHandler::upPressed())
moveUp(obj);
if (IOHandler::rightPressed())
moveRight(obj);
if (IOHandler::downPressed())
moveDown(obj);
}
void PhysicsHandler::applyEnemyTracking(Entity *obj) {
float xdir = playerCoords.x - obj->getOriginPos().x;
float ydir = playerCoords.y - obj->getOriginPos().y;
Vec2D vel(0,0);
if (xdir > 0) //player to right
vel.x += obj->getDefaultVelocity().x;
else if (xdir < 0)
vel.x -= obj->getDefaultVelocity().x;
if (ydir > 0) //player to bototm
vel.y += obj->getDefaultVelocity().y;
else if (ydir < 0)
vel.y -= obj->getDefaultVelocity().y;
obj->setCurVelocity(vel);
}
bool PhysicsHandler::detectCollision(Entity *obj1, Entity *obj2) {
if (obj1->getOriginPos().x == obj2->getOriginPos().x || obj1->getOriginPos().y == obj2->getOriginPos().y
|| obj1->getOriginPos().x + obj1->getGeneralWidth() == obj2->getOriginPos().x + obj2->getGeneralWidth()
|| obj1->getOriginPos().y + obj1->getGeneralHeight() == obj2->getOriginPos().y + obj2->getGeneralHeight())
return false;
if (obj1->getOriginPos().x >= obj2->getOriginPos().x + obj2->getGeneralWidth() ||
obj2->getOriginPos().x >= obj1->getOriginPos().x + obj1->getGeneralWidth())
return false;
if (obj1->getOriginPos().y >= obj2->getOriginPos().y + obj2->getGeneralHeight() ||
obj2->getOriginPos().y >= obj1->getOriginPos().y + obj1->getGeneralHeight())
return false;
return true;
}
void PhysicsHandler::minimalUpdate(Entity *curObj) {
curObj->boundsCheck(screenHeight, screenWidth);
curObj->setOriginPos(curObj->getOriginPos() + curObj->getCurVelocity());
if (curObj->isPlayer())
curObj->setCurVelocity(Vec2D(0,0));
else { //everything that isn't a player
;
}
}
//INDIVIDUAL USE: If each buttons need to control different entities, use these
void PhysicsHandler::moveLeft(Entity *obj) {
if (!(obj->wouldBeOOBLeft(-1 * obj->getDefaultVelocity().x, 0, screenHeight, screenWidth)))
obj->setCurVelocity(obj->getDefaultVelocity().x * -1, obj->getCurVelocity().y);
}
void PhysicsHandler::moveRight(Entity *obj) {
if (!(obj->wouldBeOOBRight(obj->getDefaultVelocity().x, 0, screenHeight, screenWidth)))
obj->setCurVelocity(obj->getDefaultVelocity().x, obj->getCurVelocity().y);
}
void PhysicsHandler::moveUp(Entity *obj) {
if (!(obj->wouldBeOOBTop(0, -1 * obj->getDefaultVelocity().y, screenHeight, screenWidth))) {
obj->setCurVelocity(obj->getCurVelocity().x, obj->getDefaultVelocity().y * -1);
}
}
void PhysicsHandler::moveDown(Entity *obj) {
if (!(obj->wouldBeOOBBottom(0, obj->getDefaultVelocity().y, screenHeight, screenWidth))) {
obj->setCurVelocity(obj->getCurVelocity().x, obj->getDefaultVelocity().y);
}
}
void PhysicsHandler::reverseVelocity(Entity *obj) {
obj->setCurVelocity(-1 * obj->getCurVelocity().x, -1 * obj->getCurVelocity().y);
}
void PhysicsHandler::reverseHorizontalVelocity(Entity *obj) {
obj->setCurVelocity(-1 * obj->getCurVelocity().x, obj->getCurVelocity().y);
}
void PhysicsHandler::reverseVerticalVelocity(Entity *obj) {
obj->setCurVelocity(obj->getCurVelocity().x, -1 * obj->getCurVelocity().y);
}
bool PhysicsHandler::detectCollision(Entity *obj, ScreenEdge edge) {
switch (edge) {
case TOPEDGE:
return obj->getAbsoluteTop() == 10;
case BOTTOMEDGE:
return obj->getAbsoluteBottom() == screenHeight - 10;
case LEFTEDGE:
return obj->getAbsoluteLeft() == 0;
case RIGHTEDGE:
return obj->getAbsoluteRight() == screenWidth;
default:
return false;
}
}
//Nothing at all technical here
void PhysicsHandler::transferMomentumFrom(Entity *obj1, Entity *obj2) {
Vec2D velSrc = obj1->getCurVelocity();
obj2->setCurVelocity((.5 * velSrc.x) + obj2->getCurVelocity().x, (.5 * velSrc.y) + obj2->getCurVelocity().y);
}
| 32.125604
| 113
| 0.656992
|
robbiehammond
|
425a01d6312f42073ded29551288feda8dae1677
| 1,142
|
hpp
|
C++
|
GettingStartedStatsWriter.hpp
|
ot4i/iib-stats-writer-gettingstarted
|
530ed63be7369a2089cc51b6a6f9970b826eb397
|
[
"MIT"
] | 3
|
2017-06-14T15:53:08.000Z
|
2020-01-20T21:01:41.000Z
|
GettingStartedStatsWriter.hpp
|
ot4i/iib-stats-writer-gettingstarted
|
530ed63be7369a2089cc51b6a6f9970b826eb397
|
[
"MIT"
] | null | null | null |
GettingStartedStatsWriter.hpp
|
ot4i/iib-stats-writer-gettingstarted
|
530ed63be7369a2089cc51b6a6f9970b826eb397
|
[
"MIT"
] | null | null | null |
/********************************************************* {COPYRIGHT-TOP} ***
* Copyright 2016 IBM Corporation
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the MIT License
* which accompanies this distribution, and is available at
* http://opensource.org/licenses/MIT
********************************************************** {COPYRIGHT-END} **/
#ifndef GettingStartedStatsWriter_hpp
#define GettingStartedStatsWriter_hpp
#include <BipCsi.h>
#include <string>
class GettingStartedStatsWriter {
public:
GettingStartedStatsWriter();
~GettingStartedStatsWriter();
CciSize getAttributeName(int* rc, int index, CciChar* buffer, CciSize bufferLength) const;
CciSize getAttribute(int* rc, const CciChar* name, CciChar* buffer, CciSize bufferLength) const;
void setAttribute(int* rc, const CciChar* name, const CciChar* value);
void write(const CsiStatsRecord* record);
CsiStatsWriter* writer() const { return iWriter; }
private:
CsiStatsWriter* iWriter;
std::u16string iProperty1;
std::u16string iProperty2;
};
#endif // GettingStartedStatsWriter_hpp
| 28.55
| 98
| 0.692644
|
ot4i
|
425b9cc2c152908a144e35e177bdb78f2d95e6ff
| 12,785
|
cc
|
C++
|
extern/glow/src/glow/util/DefaultShaderParser.cc
|
rovedit/Fort-Candle
|
445fb94852df56c279c71b95c820500e7fb33cf7
|
[
"MIT"
] | null | null | null |
extern/glow/src/glow/util/DefaultShaderParser.cc
|
rovedit/Fort-Candle
|
445fb94852df56c279c71b95c820500e7fb33cf7
|
[
"MIT"
] | null | null | null |
extern/glow/src/glow/util/DefaultShaderParser.cc
|
rovedit/Fort-Candle
|
445fb94852df56c279c71b95c820500e7fb33cf7
|
[
"MIT"
] | null | null | null |
#include "DefaultShaderParser.hh"
#include <algorithm>
#include <fstream>
#include <iterator>
#include <set>
#include <sstream>
#include <glow/common/log.hh>
#include <glow/common/shader_endings.hh>
#include <glow/common/str_utils.hh>
#include <glow/common/stream_readall.hh>
#include <glow/glow.hh>
#include <glow/objects/Shader.hh>
using namespace glow;
std::vector<std::string> DefaultShaderParser::sIncludePaths = {"."};
std::unordered_map<std::string, std::string> DefaultShaderParser::sIncludeResources;
std::unordered_map<std::string, std::string> DefaultShaderParser::sVirtualFiles;
std::unordered_map<std::string, DefaultShaderParser::PragmaCallback> DefaultShaderParser::sPragmaCallbacks;
void DefaultShaderParser::parseWithInclude(Shader* shader,
std::stringstream& parsedSrc,
const std::string& source,
int sourceIdx,
int& nextSrcIdx,
std::set<std::string>& includes,
const std::string& relativePath,
bool isVirtualFile)
{
auto src = source;
// replace \r by \n for consistent line endings
replace(begin(src), end(src), '\r', '\n');
// add __LINE__ and __FILE__ info to src
parsedSrc << "#line 1 " << sourceIdx << "\n";
std::stringstream ss(src);
std::string line;
auto lineIdx = 0u;
while (getline(ss, line, '\n'))
{
++lineIdx;
// skip #version tags (and empty strings)
if (line.find("#version ") == line.find_first_not_of(" \t"))
{
parsedSrc << "\n";
continue;
}
// resolve custom pragmas
if (line.find("#glow ") == line.find_first_not_of(" \t"))
{
std::vector<std::string> wordsInLine;
std::istringstream wordStream(line);
std::copy(std::istream_iterator<std::string>(wordStream), std::istream_iterator<std::string>(), std::back_inserter(wordsInLine));
if (wordsInLine.size() == 3)
{
auto& keyword = wordsInLine[1];
auto& instruction = wordsInLine[2];
auto foundPragmaCallback = sPragmaCallbacks.find(keyword);
if (foundPragmaCallback != sPragmaCallbacks.end())
{
CallbackShaderWriter writer(parsedSrc);
if (!foundPragmaCallback->second(instruction, writer))
{
error() << "Instruction #glow " << keyword << " " << instruction << " not recognized by callback.";
}
}
else
{
error() << "Keyword #glow " << keyword << " not registered.";
}
}
else
{
error() << "Pragma `" << line << "' malformed.";
}
parsedSrc << "#line " << lineIdx << " " << sourceIdx << "\n";
parsedSrc << "\n";
continue;
}
// resolve includes
if (line.find("#include ") == line.find_first_not_of(" \t"))
{
// perform include
// absolute
if (line.find('<') != std::string::npos)
{
auto p0 = line.find('<');
auto p1 = line.find('>');
if (p0 > p1 || p1 == std::string::npos)
error() << "Include `" << line << "' not recognized/invalid.";
else
{
auto path = line.substr(p0 + 1, p1 - p0 - 1);
auto virtualFileIt = sVirtualFiles.find(path);
if (virtualFileIt != sVirtualFiles.end())
{
// Found virtual file for path which overrides real files
auto incIdx = nextSrcIdx;
++nextSrcIdx;
parseWithInclude(shader, parsedSrc, virtualFileIt->second, incIdx, nextSrcIdx, includes, "NONE_VIRTUAL", true);
}
else
{
// Resolve real file path
auto absfile = resolve(path, "");
if (absfile.empty())
error() << "Could not resolve `" << line << "'.";
else
{
if (includes.insert(absfile).second) // pragma once
{
addDependency(shader, absfile);
std::ifstream fs(absfile);
auto incIdx = nextSrcIdx;
++nextSrcIdx;
parseWithInclude(shader, parsedSrc, util::readall(fs), incIdx, nextSrcIdx, includes, util::pathOf(absfile));
}
}
}
}
}
// relative
else if (line.find('"'))
{
auto p0 = line.find('"');
auto p1 = line.rfind('"');
if (p0 > p1 || p1 == std::string::npos)
error() << "Include `" << line << "' not recognized/invalid.";
else if (isVirtualFile)
error() << "Relative include `" << line << "' invalid: File is virtual";
else
{
auto path = line.substr(p0 + 1, p1 - p0 - 1);
auto absfile = resolve(path, relativePath);
if (absfile.empty())
error() << "Could not resolve `" << line << "'.";
else
{
if (includes.insert(absfile).second) // pragma once
{
addDependency(shader, absfile);
std::ifstream fs(absfile);
auto incIdx = nextSrcIdx;
++nextSrcIdx;
parseWithInclude(shader, parsedSrc, util::readall(fs), incIdx, nextSrcIdx, includes, util::pathOf(absfile));
}
}
}
}
// internal
else if (line.find(':') != std::string::npos)
{
auto p = line.find(':');
auto file = line.substr(p + 1);
while (!file.empty() && (file.back() == ' ' || file.back() == '\t' || file.back() == '\r' || file.back() == '\n'))
file.pop_back();
if (sIncludeResources.count(file))
{
auto const& directSrc = sIncludeResources[file];
if (includes.insert(file).second) // pragma once
{
auto incIdx = nextSrcIdx;
++nextSrcIdx;
parseWithInclude(shader, parsedSrc, directSrc, incIdx, nextSrcIdx, includes, "<internal resource>");
}
}
else
error() << "Include `" << line << "' is not a registered resource (forgot to call DefaultShaderParser::addIncludeResource(...)).";
}
else
error() << "Include `" << line << "' not recognized/invalid.";
// resume file
parsedSrc << "#line " << lineIdx << " " << sourceIdx << "\n";
parsedSrc << "\n";
continue;
}
parsedSrc << line << "\n";
}
}
std::string DefaultShaderParser::resolve(const std::string& filename, const std::string& relPath)
{
if (filename.empty())
{
error() << "Empty include path";
return "";
}
if (filename[0] == '/' || filename[0] == '\\')
{
error() << "Filename `" << filename << "' is absolute. Not supported.";
return "";
}
// check rel path
if (!relPath.empty() && std::ifstream(relPath + "/" + filename).good())
return relPath + "/" + filename;
// check inc paths
for (auto const& path : sIncludePaths)
if (std::ifstream(path + "/" + filename).good())
return path + "/" + filename;
return "";
}
DefaultShaderParser::DefaultShaderParser() {}
void DefaultShaderParser::setIncludePaths(const std::vector<std::string>& paths) { sIncludePaths = paths; }
void DefaultShaderParser::addIncludePath(const std::string& path)
{
for (auto const& p : sIncludePaths)
if (p == path)
return;
sIncludePaths.push_back(path);
}
void DefaultShaderParser::addIncludeResource(const std::string& file, const std::string& content) { sIncludeResources[file] = content; }
void DefaultShaderParser::addVirtualFile(const std::string& path, const std::string& content) { sVirtualFiles[path] = content; }
void DefaultShaderParser::addVirtualFile(const std::string& path, const unsigned char content[])
{
std::stringstream ss;
ss << content;
addVirtualFile(path, ss.str());
}
void DefaultShaderParser::registerCustomPragma(const std::string& keyword, const DefaultShaderParser::PragmaCallback& callback)
{
auto foundCallback = sPragmaCallbacks.find(keyword);
if (foundCallback != sPragmaCallbacks.end())
{
error() << "Shader pragma " << keyword << " is already registered";
return;
}
sPragmaCallbacks.insert({keyword, callback});
}
std::vector<std::string> DefaultShaderParser::getIncludePaths() { return sIncludePaths; }
std::vector<std::string> DefaultShaderParser::getIncludeResources()
{
std::vector<std::string> r;
for (auto const& kvp : sIncludeResources)
r.push_back(kvp.first);
return r;
}
std::vector<std::string> DefaultShaderParser::parse(Shader* shader, const std::vector<std::string>& sources)
{
// may be empty
auto sFilename = shader->getFileName();
auto relPath = util::pathOf(sFilename);
if (!sFilename.empty() && relPath.empty())
relPath = ".";
std::set<std::string> includes;
std::stringstream parsedSrc;
#ifdef GLOW_OPENGL_PROFILE_CORE
parsedSrc << "#version " + std::to_string(glow::OGLVersion.total * 10) + " core\n";
#else
parsedSrc << "#version " + std::to_string(glow::OGLVersion.total * 10) + "\n";
#endif
int nextSrcIdx = int(sources.size());
for (auto sIdx = 0u; sIdx < sources.size(); ++sIdx)
parseWithInclude(shader, parsedSrc, sources[sIdx], int(sIdx), nextSrcIdx, includes, relPath);
return {parsedSrc.str()};
}
bool DefaultShaderParser::resolveFile(std::string_view name, GLenum& shaderType, std::string& content, std::string& realFileName)
{
if (name.empty())
return false;
// detect shader type
auto found = false;
for (auto const& kvp : glow::shaderEndingToType)
if (util::endswith(name, kvp.first))
{
found = true;
shaderType = kvp.second;
break;
}
auto nameString = std::string(name);
// virtual file match
auto virtualFileIt = sVirtualFiles.find(nameString);
if (virtualFileIt != sVirtualFiles.end())
{
realFileName = "";
content = virtualFileIt->second;
return true;
}
// direct match
if (std::ifstream(nameString).good())
{
if (!found) // has to be done here, because non-existant files should fail silently
{
error() << "Could not deduce shader type of Shader file " << name << ".";
return false;
}
realFileName = name;
std::ifstream fs(realFileName);
content = util::readall(fs);
return true;
}
// includes if not absolute
if (name[0] != '/')
{
for (auto const& inc : sIncludePaths)
{
if (std::ifstream(inc + "/" + nameString).good())
{
if (!found) // has to be done here, because non-existant files should fail silently
{
error() << "Could not deduce shader type of Shader file " << name << ".";
return false;
}
realFileName = inc + "/" + nameString;
std::ifstream fs(realFileName);
content = util::readall(fs);
return true;
}
}
}
return false;
}
DefaultShaderParser::CallbackShaderWriter::CallbackShaderWriter(std::stringstream& stream) : mStream(stream) {}
void DefaultShaderParser::CallbackShaderWriter::emitText(const std::string& content) { mStream << content; }
| 34.741848
| 150
| 0.506844
|
rovedit
|
425e2bf5f548decc6ef31b067ef9cfec9c28f8ac
| 1,887
|
cpp
|
C++
|
branch/MSP432/SaltyOS/Kernel/GUI/Picture/DirectDataPic.cpp
|
wtywtykk/STM32Framework_SaltyProject
|
ba52576006a9c4bdb3c0e6b0dbef2d261359da50
|
[
"MIT"
] | 1
|
2019-04-03T12:17:25.000Z
|
2019-04-03T12:17:25.000Z
|
trunk/SaltyOS/Kernel/GUI/Picture/DirectDataPic.cpp
|
wtywtykk/STM32Framework_SaltyProject
|
ba52576006a9c4bdb3c0e6b0dbef2d261359da50
|
[
"MIT"
] | null | null | null |
trunk/SaltyOS/Kernel/GUI/Picture/DirectDataPic.cpp
|
wtywtykk/STM32Framework_SaltyProject
|
ba52576006a9c4bdb3c0e6b0dbef2d261359da50
|
[
"MIT"
] | 1
|
2021-06-09T11:20:08.000Z
|
2021-06-09T11:20:08.000Z
|
#include "Kernel\GUI\GUICommon.h"
#include "Kernel\GUI\DC\DC.h"
#include "Kernel\GUI\Picture\DirectDataPic.h"
#include <assert.h>
#include <stdlib.h>
DIRECTDATAPIC::DIRECTDATAPIC(GUIPOS PicWidth, GUIPOS PicHeight, const PIXEL* PicData)
{
assert(PicWidth > 0);
assert(PicHeight > 0);
assert(Data != NULL);
Width = PicWidth;
Height = PicHeight;
Data = PicData;
}
DIRECTDATAPIC::~DIRECTDATAPIC(void)
{
}
void DIRECTDATAPIC::Draw(DC * dc, GUIPOS X, GUIPOS Y)
{
if (X < 0 || Y < 0)
{
DrawWithNegativeCoord(dc, X, Y);
}
else
{
if (dc->SupportNativeClip())
{
DrawWithNativeClip(dc, X, Y);
}
else
{
DrawWithoutNativeClip(dc, X, Y);
}
}
}
PIXEL DIRECTDATAPIC::GetPixel(GUIPOS X, GUIPOS Y)
{
if (CheckCoord(X, Y))
{
return Data[X + Y * Width];
}
else
{
return 0;
}
}
bool DIRECTDATAPIC::CheckCoord(GUIPOS X, GUIPOS Y)
{
if (X >= 0 && Y >= 0 && X < Width && Y < Height)
{
return true;
}
else
{
return false;
}
}
void DIRECTDATAPIC::DrawWithNativeClip(DC* dc, GUIPOS X, GUIPOS Y)
{
dc->StartNativeClip(X, Y, X + Width, Y + Height);
dc->BlockWrite(Data, Width * Height);
dc->EndNativeClip();
}
void DIRECTDATAPIC::DrawWithoutNativeClip(DC* dc, GUIPOS X, GUIPOS Y)
{
GUIPOS EndY = Y + Height;
const PIXEL* BufCur = Data;
for (GUIPOS CurY = Y; CurY < EndY; CurY++)
{
dc->SetPos(X, CurY);
for (GUIPOS CurX = 0; CurX < Width; CurX++)
{
dc->SequenceWrite(*BufCur);
BufCur++;
}
}
}
void DIRECTDATAPIC::DrawWithNegativeCoord(DC* dc, GUIPOS X, GUIPOS Y)
{
GUIPOS CurY = Y;
GUIPOS EndY = Y + Height;
if (CurY < 0)
{
CurY = 0;
}
for (; CurY < EndY; CurY++)
{
GUIPOS CurX = X;
GUIPOS EndX = X + Width;
if (CurX < 0)
{
CurX = 0;
}
const PIXEL* BufCur = Data + (CurY - Y) * Width + (CurX - X);
dc->SetPos(CurX, CurY);
for (; CurX < EndX; CurX++)
{
dc->SequenceWrite(*BufCur);
BufCur++;
}
}
}
| 17
| 85
| 0.618442
|
wtywtykk
|
42643b568bfec12ada1ae26dfc64a75a205dc171
| 11,421
|
hpp
|
C++
|
include/System/GC.hpp
|
v0idp/virtuoso-codegen
|
6f560f04822c67f092d438a3f484249072c1d21d
|
[
"Unlicense"
] | null | null | null |
include/System/GC.hpp
|
v0idp/virtuoso-codegen
|
6f560f04822c67f092d438a3f484249072c1d21d
|
[
"Unlicense"
] | null | null | null |
include/System/GC.hpp
|
v0idp/virtuoso-codegen
|
6f560f04822c67f092d438a3f484249072c1d21d
|
[
"Unlicense"
] | 1
|
2022-03-30T21:07:35.000Z
|
2022-03-30T21:07:35.000Z
|
// 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: System.Runtime.CompilerServices.Ephemeron
#include "System/Runtime/CompilerServices/Ephemeron.hpp"
#include "beatsaber-hook/shared/utils/typedefs-array.hpp"
// Completed includes
// Type namespace: System
namespace System {
// Forward declaring type: GC
class GC;
}
#include "beatsaber-hook/shared/utils/il2cpp-type-check.hpp"
NEED_NO_BOX(::System::GC);
DEFINE_IL2CPP_ARG_TYPE(::System::GC*, "System", "GC");
// Type namespace: System
namespace System {
// Size: 0x10
#pragma pack(push, 1)
// Autogenerated type: System.GC
// [TokenAttribute] Offset: FFFFFFFF
class GC : public ::Il2CppObject {
public:
// Get static field: static readonly System.Object EPHEMERON_TOMBSTONE
static ::Il2CppObject* _get_EPHEMERON_TOMBSTONE();
// Set static field: static readonly System.Object EPHEMERON_TOMBSTONE
static void _set_EPHEMERON_TOMBSTONE(::Il2CppObject* value);
// static public System.Int32 get_MaxGeneration()
// Offset: 0x14545A8
static int get_MaxGeneration();
// static private System.Void .cctor()
// Offset: 0x145478C
static void _cctor();
// static private System.Int32 GetCollectionCount(System.Int32 generation)
// Offset: 0x1454538
static int GetCollectionCount(int generation);
// static private System.Int32 GetMaxGeneration()
// Offset: 0x145453C
static int GetMaxGeneration();
// static private System.Void InternalCollect(System.Int32 generation)
// Offset: 0x1454540
static void InternalCollect(int generation);
// static System.Void register_ephemeron_array(System.Runtime.CompilerServices.Ephemeron[] array)
// Offset: 0x1454544
static void register_ephemeron_array(::ArrayW<::System::Runtime::CompilerServices::Ephemeron> array);
// static private System.Object get_ephemeron_tombstone()
// Offset: 0x1454548
static ::Il2CppObject* get_ephemeron_tombstone();
// static public System.Void Collect()
// Offset: 0x145454C
static void Collect();
// static public System.Int32 CollectionCount(System.Int32 generation)
// Offset: 0x1454600
static int CollectionCount(int generation);
// static public System.Void KeepAlive(System.Object obj)
// Offset: 0x14546C8
static void KeepAlive(::Il2CppObject* obj);
// static public System.Void WaitForPendingFinalizers()
// Offset: 0x14546CC
static void WaitForPendingFinalizers();
// static private System.Void _SuppressFinalize(System.Object o)
// Offset: 0x14546D0
static void _SuppressFinalize(::Il2CppObject* o);
// static public System.Void SuppressFinalize(System.Object obj)
// Offset: 0x14512B8
static void SuppressFinalize(::Il2CppObject* obj);
// static private System.Void _ReRegisterForFinalize(System.Object o)
// Offset: 0x14546D4
static void _ReRegisterForFinalize(::Il2CppObject* o);
// static public System.Void ReRegisterForFinalize(System.Object obj)
// Offset: 0x14546D8
static void ReRegisterForFinalize(::Il2CppObject* obj);
// static public System.Int64 GetTotalMemory(System.Boolean forceFullCollection)
// Offset: 0x1454784
static int64_t GetTotalMemory(bool forceFullCollection);
}; // System.GC
#pragma pack(pop)
}
#include "beatsaber-hook/shared/utils/il2cpp-utils-methods.hpp"
// Writing MetadataGetter for method: System::GC::get_MaxGeneration
// Il2CppName: get_MaxGeneration
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<int (*)()>(&System::GC::get_MaxGeneration)> {
static const MethodInfo* get() {
return ::il2cpp_utils::FindMethod(classof(System::GC*), "get_MaxGeneration", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{});
}
};
// Writing MetadataGetter for method: System::GC::_cctor
// Il2CppName: .cctor
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<void (*)()>(&System::GC::_cctor)> {
static const MethodInfo* get() {
return ::il2cpp_utils::FindMethod(classof(System::GC*), ".cctor", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{});
}
};
// Writing MetadataGetter for method: System::GC::GetCollectionCount
// Il2CppName: GetCollectionCount
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<int (*)(int)>(&System::GC::GetCollectionCount)> {
static const MethodInfo* get() {
static auto* generation = &::il2cpp_utils::GetClassFromName("System", "Int32")->byval_arg;
return ::il2cpp_utils::FindMethod(classof(System::GC*), "GetCollectionCount", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{generation});
}
};
// Writing MetadataGetter for method: System::GC::GetMaxGeneration
// Il2CppName: GetMaxGeneration
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<int (*)()>(&System::GC::GetMaxGeneration)> {
static const MethodInfo* get() {
return ::il2cpp_utils::FindMethod(classof(System::GC*), "GetMaxGeneration", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{});
}
};
// Writing MetadataGetter for method: System::GC::InternalCollect
// Il2CppName: InternalCollect
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<void (*)(int)>(&System::GC::InternalCollect)> {
static const MethodInfo* get() {
static auto* generation = &::il2cpp_utils::GetClassFromName("System", "Int32")->byval_arg;
return ::il2cpp_utils::FindMethod(classof(System::GC*), "InternalCollect", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{generation});
}
};
// Writing MetadataGetter for method: System::GC::register_ephemeron_array
// Il2CppName: register_ephemeron_array
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<void (*)(::ArrayW<::System::Runtime::CompilerServices::Ephemeron>)>(&System::GC::register_ephemeron_array)> {
static const MethodInfo* get() {
static auto* array = &il2cpp_functions::array_class_get(::il2cpp_utils::GetClassFromName("System.Runtime.CompilerServices", "Ephemeron"), 1)->byval_arg;
return ::il2cpp_utils::FindMethod(classof(System::GC*), "register_ephemeron_array", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{array});
}
};
// Writing MetadataGetter for method: System::GC::get_ephemeron_tombstone
// Il2CppName: get_ephemeron_tombstone
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<::Il2CppObject* (*)()>(&System::GC::get_ephemeron_tombstone)> {
static const MethodInfo* get() {
return ::il2cpp_utils::FindMethod(classof(System::GC*), "get_ephemeron_tombstone", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{});
}
};
// Writing MetadataGetter for method: System::GC::Collect
// Il2CppName: Collect
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<void (*)()>(&System::GC::Collect)> {
static const MethodInfo* get() {
return ::il2cpp_utils::FindMethod(classof(System::GC*), "Collect", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{});
}
};
// Writing MetadataGetter for method: System::GC::CollectionCount
// Il2CppName: CollectionCount
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<int (*)(int)>(&System::GC::CollectionCount)> {
static const MethodInfo* get() {
static auto* generation = &::il2cpp_utils::GetClassFromName("System", "Int32")->byval_arg;
return ::il2cpp_utils::FindMethod(classof(System::GC*), "CollectionCount", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{generation});
}
};
// Writing MetadataGetter for method: System::GC::KeepAlive
// Il2CppName: KeepAlive
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<void (*)(::Il2CppObject*)>(&System::GC::KeepAlive)> {
static const MethodInfo* get() {
static auto* obj = &::il2cpp_utils::GetClassFromName("System", "Object")->byval_arg;
return ::il2cpp_utils::FindMethod(classof(System::GC*), "KeepAlive", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{obj});
}
};
// Writing MetadataGetter for method: System::GC::WaitForPendingFinalizers
// Il2CppName: WaitForPendingFinalizers
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<void (*)()>(&System::GC::WaitForPendingFinalizers)> {
static const MethodInfo* get() {
return ::il2cpp_utils::FindMethod(classof(System::GC*), "WaitForPendingFinalizers", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{});
}
};
// Writing MetadataGetter for method: System::GC::_SuppressFinalize
// Il2CppName: _SuppressFinalize
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<void (*)(::Il2CppObject*)>(&System::GC::_SuppressFinalize)> {
static const MethodInfo* get() {
static auto* o = &::il2cpp_utils::GetClassFromName("System", "Object")->byval_arg;
return ::il2cpp_utils::FindMethod(classof(System::GC*), "_SuppressFinalize", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{o});
}
};
// Writing MetadataGetter for method: System::GC::SuppressFinalize
// Il2CppName: SuppressFinalize
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<void (*)(::Il2CppObject*)>(&System::GC::SuppressFinalize)> {
static const MethodInfo* get() {
static auto* obj = &::il2cpp_utils::GetClassFromName("System", "Object")->byval_arg;
return ::il2cpp_utils::FindMethod(classof(System::GC*), "SuppressFinalize", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{obj});
}
};
// Writing MetadataGetter for method: System::GC::_ReRegisterForFinalize
// Il2CppName: _ReRegisterForFinalize
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<void (*)(::Il2CppObject*)>(&System::GC::_ReRegisterForFinalize)> {
static const MethodInfo* get() {
static auto* o = &::il2cpp_utils::GetClassFromName("System", "Object")->byval_arg;
return ::il2cpp_utils::FindMethod(classof(System::GC*), "_ReRegisterForFinalize", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{o});
}
};
// Writing MetadataGetter for method: System::GC::ReRegisterForFinalize
// Il2CppName: ReRegisterForFinalize
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<void (*)(::Il2CppObject*)>(&System::GC::ReRegisterForFinalize)> {
static const MethodInfo* get() {
static auto* obj = &::il2cpp_utils::GetClassFromName("System", "Object")->byval_arg;
return ::il2cpp_utils::FindMethod(classof(System::GC*), "ReRegisterForFinalize", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{obj});
}
};
// Writing MetadataGetter for method: System::GC::GetTotalMemory
// Il2CppName: GetTotalMemory
template<>
struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<int64_t (*)(bool)>(&System::GC::GetTotalMemory)> {
static const MethodInfo* get() {
static auto* forceFullCollection = &::il2cpp_utils::GetClassFromName("System", "Boolean")->byval_arg;
return ::il2cpp_utils::FindMethod(classof(System::GC*), "GetTotalMemory", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{forceFullCollection});
}
};
| 51.445946
| 178
| 0.732773
|
v0idp
|
426729417896de439c226d0677c129bd5d4c3fdc
| 2,444
|
cpp
|
C++
|
test/test_dynamic_matrix_initialize.cpp
|
AMatrix/AMatrix
|
325c3b59d99605f0b50b6e7be3556dd23881992c
|
[
"MIT"
] | 24
|
2017-10-31T17:22:09.000Z
|
2020-05-20T21:16:41.000Z
|
test/test_dynamic_matrix_initialize.cpp
|
AMatrix/AMatrix
|
325c3b59d99605f0b50b6e7be3556dd23881992c
|
[
"MIT"
] | 8
|
2017-10-28T07:27:44.000Z
|
2019-01-24T16:38:15.000Z
|
test/test_dynamic_matrix_initialize.cpp
|
AMatrix/AMatrix
|
325c3b59d99605f0b50b6e7be3556dd23881992c
|
[
"MIT"
] | 7
|
2018-04-22T18:12:08.000Z
|
2019-01-16T10:39:41.000Z
|
#include "amatrix.h"
#include "checks.h"
template <std::size_t TSize1, std::size_t TSize2>
int TestMatrixInitializeToZero() {
AMatrix::Matrix<double, AMatrix::dynamic, AMatrix::dynamic> a_matrix(
AMatrix::ZeroMatrix<double>(TSize1, TSize2));
for (std::size_t i = 0; i < a_matrix.size1(); i++)
for (std::size_t j = 0; j < a_matrix.size2(); j++)
AMATRIX_CHECK_EQUAL(a_matrix(i, j), 0.00);
return 0; // not failed
}
int TestMatrixInitialize1() {
AMatrix::Matrix<double, AMatrix::dynamic, AMatrix::dynamic> a_matrix{1.2};
AMATRIX_CHECK_EQUAL(a_matrix.size1(), 1);
AMATRIX_CHECK_EQUAL(a_matrix.size2(), 1);
AMATRIX_CHECK_EQUAL(a_matrix(0, 0), 1.2);
return 0; // not failed
}
int TestMatrixInitialize2() {
AMatrix::Matrix<double, AMatrix::dynamic, AMatrix::dynamic> a_matrix{1.2, 2.3};
AMATRIX_CHECK_EQUAL(a_matrix.size1(), 1);
AMATRIX_CHECK_EQUAL(a_matrix.size2(), 2);
AMATRIX_CHECK_EQUAL(a_matrix(0, 0), 1.2);
AMATRIX_CHECK_EQUAL(a_matrix(0, 1), 2.3);
return 0; // not failed
}
int TestMatrixInitialize3() {
AMatrix::Matrix<double, AMatrix::dynamic, AMatrix::dynamic> a_matrix{ 1.2, 2.3, 3.4 };
AMATRIX_CHECK_EQUAL(a_matrix.size1(), 1);
AMATRIX_CHECK_EQUAL(a_matrix.size2(), 3);
AMATRIX_CHECK_EQUAL(a_matrix(0, 0), 1.2);
AMATRIX_CHECK_EQUAL(a_matrix(0, 1), 2.3);
AMATRIX_CHECK_EQUAL(a_matrix(0, 2), 3.4);
return 0; // not failed
}
int main() {
int number_of_failed_tests = 0;
number_of_failed_tests += TestMatrixInitializeToZero<1, 1>();
number_of_failed_tests += TestMatrixInitializeToZero<1, 2>();
number_of_failed_tests += TestMatrixInitializeToZero<2, 1>();
number_of_failed_tests += TestMatrixInitializeToZero<2, 2>();
number_of_failed_tests += TestMatrixInitializeToZero<3, 1>();
number_of_failed_tests += TestMatrixInitializeToZero<3, 2>();
number_of_failed_tests += TestMatrixInitializeToZero<3, 3>();
number_of_failed_tests += TestMatrixInitializeToZero<1, 3>();
number_of_failed_tests += TestMatrixInitializeToZero<2, 3>();
number_of_failed_tests += TestMatrixInitializeToZero<3, 3>();
number_of_failed_tests += TestMatrixInitialize1();
number_of_failed_tests += TestMatrixInitialize2();
number_of_failed_tests += TestMatrixInitialize3();
std::cout << number_of_failed_tests << "tests failed" << std::endl;
return number_of_failed_tests;
}
| 33.944444
| 90
| 0.699673
|
AMatrix
|
426922a7fa67c65a77906cad72cc83dfc7694741
| 493
|
hpp
|
C++
|
ParamedicCommander.hpp
|
elad11310/Matala4_C_Plus_Plus_WarGame
|
bb929ff64900ef6f9d7e6f8746944875322fd81e
|
[
"MIT"
] | null | null | null |
ParamedicCommander.hpp
|
elad11310/Matala4_C_Plus_Plus_WarGame
|
bb929ff64900ef6f9d7e6f8746944875322fd81e
|
[
"MIT"
] | null | null | null |
ParamedicCommander.hpp
|
elad11310/Matala4_C_Plus_Plus_WarGame
|
bb929ff64900ef6f9d7e6f8746944875322fd81e
|
[
"MIT"
] | null | null | null |
//
// Created by elad on 24/05/2020.
//
#ifndef MATALA4_WARGAME_PARAMEDICCOMMANDER_H
#define MATALA4_WARGAME_PARAMEDICCOMMANDER_H
#endif //MATALA4_WARGAME_PARAMEDICCOMMANDER_H
#include "Soldier.hpp"
class ParamedicCommander : public Soldier {
public:
ParamedicCommander(int player) : Soldier(200, "ParamedicCommander", player){}
virtual void move(std::vector<std::vector<Soldier *>> &board, std::pair<int, int> _currentPos) override;
virtual ~ParamedicCommander();
};
| 18.259259
| 108
| 0.750507
|
elad11310
|
426a1b1187ffb952c6f2edf9429e4fd1be2cb9fb
| 6,926
|
hpp
|
C++
|
Source/opennwa/WeightGen.hpp
|
jusito/WALi-OpenNWA
|
2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99
|
[
"MIT"
] | 15
|
2015-03-07T17:25:57.000Z
|
2022-02-04T20:17:00.000Z
|
Source/opennwa/WeightGen.hpp
|
jusito/WALi-OpenNWA
|
2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99
|
[
"MIT"
] | 1
|
2018-03-03T05:58:55.000Z
|
2018-03-03T12:26:10.000Z
|
Source/opennwa/WeightGen.hpp
|
jusito/WALi-OpenNWA
|
2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99
|
[
"MIT"
] | 15
|
2015-09-25T17:44:35.000Z
|
2021-07-18T18:25:38.000Z
|
#ifndef wali_nwa_WeightGen_GUARD
#define wali_nwa_WeightGen_GUARD 1
/**
* @author Amanda Burton, Evan Driscoll, Aditya Thakur
*/
#include "opennwa/ClientInfo.hpp"
#include "wali/Reach.hpp"
#include "wali/ShortestPathSemiring.hpp"
namespace opennwa
{
using wali::Key; // TODO remove
using wali::sem_elem_t;
using wali::Reach;
/**
*
* This class is used in NWA::NWAtoPDS and NWA::NWAtoBackwardsPDS. It is used to
* compute the weights for the rules added to the WPDS and must be extended to
* incorporate the desired semiring in order to use either of these methods.
*
*/
//TODO: we may want to split getWeight into getCallWeight/getInternalWeight/getReturnWeight
class WeightGen
{
public:
//The kinds of edges that need to be considered.
// INTRA: corresponds to an Internal transition in the NWA
// CALL_TO_ENTRY: corresponds to a Call transition in the NWA
// EXIT_TO_RET: corresponds to the exit-to-return part of a Return transition in the NWA
// CALL_TO_RET: corresponds to the call-to-return part of a Return transition in the NWA
enum Kind {INTRA, CALL_TO_ENTRY, EXIT_TO_RET, CALL_TO_RET};
typedef ref_ptr<ClientInfo> ClientInfoRefPtr;
//
// Methods
//
public:
//Constructors and Destructor
WeightGen( ) { }
virtual ~WeightGen() {}
/**
*
* @brief access the One of the desired semiring
*
* This method returns the One of the desired semiring.
*
* @return the One of the desired semiring
*
*/
virtual sem_elem_t getOne( ) const = 0;
/**
*
* @brief computes the weight(in the desired semiring) for a rule of the WPDS from
* the given edge
*
* This method computes the weight(in the desired semiring) for a WPDS rule from
* the (kind) edge between 'src' and 'tgt' labeled with symbol 'sym'.
* Note: The kind will never be CALL_TO_RET, this case is never needed.
*
* @param - src: the source of the edge
* @param - srcInfo: the clientInfo associated with src
* @param - sym: the symbol labeling the edge
* @param - kind: the variety of edge
* @param - tgt: the target of the edge
* @param - tgtInfo: the clientInfo associated with tgt
* @return the weight to put on the rule corresponding to the given edge
*
*/
virtual sem_elem_t getWeight( Key src, ClientInfoRefPtr srcInfo, Key sym, Kind kind, Key tgt, ClientInfoRefPtr tgtInfo ) const = 0;
/**
*
* @brief computes the weight(in the desired semiring) for the return rule of the
* WPDS associated with the given exit
*
* This method computes the weight(in the desired semiring) for the return rule of
* the WPDS corresponding to the exit 'src'.
* Note: This value is generally the same as getOne().
*
* @param - src: the source of the exit edge
* @param - srcInfo: the clientInfo associated with src
* @return the weight to put on the return rule corresponding to the given exit
*
*/
virtual sem_elem_t getExitWeight( Key src, ClientInfoRefPtr srcInfo ) const
{
(void) src;
(void) srcInfo;
return getOne();
}
/**
*
* @brief computes the weight(in the desired semiring) for a rule when the symbol
* labeling the corresponding edge in the NWA is the wild symbol
*
* This method computes the weight(in the desired semiring) for a WPDS rule from
* the edge between 'src' and 'tgt' labeled with the wild symbol.
*
* @param - src: the source of the edge
* @param - srcInfo: the clientInfo associated with src
* @param - tgt: the target of the edge
* @param - tgtInfo: the clientInfo associated with tgt
* @return the weight to put on the rule corresponding to the given edge
*
*/
virtual sem_elem_t getWildWeight( Key src, ClientInfoRefPtr srcInfo, Key tgt, ClientInfoRefPtr tgtInfo ) const
{
assert(false);
(void) src;
(void) srcInfo;
(void) tgt;
(void) tgtInfo;
return getOne();
}
};
class ReachGen : public WeightGen
{
public:
//
// Methods
//
public:
sem_elem_t getOne( ) const
{
static const Reach r(true);
return r.one();
}
sem_elem_t getWeight( Key src, ClientInfoRefPtr srcInfo, Key sym, Kind kind, Key tgt, ClientInfoRefPtr tgtInfo ) const
{
(void) src;
(void) srcInfo;
(void) sym;
(void) kind;
(void) tgt;
(void) tgtInfo;
return getOne();
}
};
class ShortestPathGen : public WeightGen
{
public:
sem_elem_t getOne( ) const
{
static const wali::ShortestPathSemiring r;
return r.one();
}
sem_elem_t getUnitWeight() const
{
static const sem_elem_t r = new wali::ShortestPathSemiring(1);
return r;
}
virtual sem_elem_t getWeight( Key src, ClientInfoRefPtr srcInfo, Key sym, Kind kind, Key tgt, ClientInfoRefPtr tgtInfo ) const
{
(void) src;
(void) srcInfo;
(void) sym;
(void) kind;
(void) tgt;
(void) tgtInfo;
return getUnitWeight();
}
virtual sem_elem_t getExitWeight( Key src, ClientInfoRefPtr srcInfo ) const
{
(void) src;
(void) srcInfo;
return getUnitWeight();
}
virtual sem_elem_t getWildWeight( Key src, ClientInfoRefPtr srcInfo, Key tgt, ClientInfoRefPtr tgtInfo ) const
{
(void) src;
(void) srcInfo;
(void) tgt;
(void) tgtInfo;
return getUnitWeight();
}
};
class ShortestWordGen : public WeightGen
{
public:
// Semiring 1 is length 0
sem_elem_t getOne( ) const
{
static const wali::ShortestPathSemiring r;
return r.one();
}
sem_elem_t getUnitWeight() const
{
static const sem_elem_t r = new wali::ShortestPathSemiring(1);
return r;
}
virtual sem_elem_t getWeight( Key src, ClientInfoRefPtr srcInfo, Key sym, Kind kind, Key tgt, ClientInfoRefPtr tgtInfo ) const
{
(void) src;
(void) srcInfo;
(void) kind;
(void) tgt;
(void) tgtInfo;
if (sym != EPSILON) {
return getUnitWeight();
}
else {
return getOne();
}
}
virtual sem_elem_t getExitWeight( Key src, ClientInfoRefPtr srcInfo ) const
{
(void) src;
(void) srcInfo;
return getUnitWeight();
}
virtual sem_elem_t getWildWeight( Key src, ClientInfoRefPtr srcInfo, Key tgt, ClientInfoRefPtr tgtInfo ) const
{
(void) src;
(void) srcInfo;
(void) tgt;
(void) tgtInfo;
return getUnitWeight();
}
};
}
// Yo, Emacs!
// Local Variables:
// c-file-style: "ellemtel"
// c-basic-offset: 2
// End:
#endif
| 26.638462
| 135
| 0.621282
|
jusito
|
426ce960a045e395889778be8417a7ca22705632
| 6,142
|
cpp
|
C++
|
AtuadorLinear/AtuadorLinear.cpp
|
rebeca53/Motor-and-Sensors-Libraries
|
75bd1191fdf299008f09284efe3cef9a1198d505
|
[
"MIT"
] | null | null | null |
AtuadorLinear/AtuadorLinear.cpp
|
rebeca53/Motor-and-Sensors-Libraries
|
75bd1191fdf299008f09284efe3cef9a1198d505
|
[
"MIT"
] | null | null | null |
AtuadorLinear/AtuadorLinear.cpp
|
rebeca53/Motor-and-Sensors-Libraries
|
75bd1191fdf299008f09284efe3cef9a1198d505
|
[
"MIT"
] | null | null | null |
#include "AtuadorLinear.h"
#include "math.h"
#include "mbed.h"
// Public Methods /////////////////////////////////
// Construtor
AtuadorLinear::AtuadorLinear(PinName habilitaPin, PinName sentidoPin, PinName feedbackPin) : _habilitaPin(habilitaPin), _sentidoPin(sentidoPin), _feedbackPin(feedbackPin){
_habilitaPin = 0;
_sentidoPin = 0;
max_leitura = 0.820f; //0.810
min_leitura = 0.200f; //0.190
amplitude = max_leitura - min_leitura;
resolucao = amplitude/105.0f; //103.0
//tolerancia = floor(resolucao*1000.0) / 1000.0; //for 1mm
//tolerancia = 0.005;
tolerancia = 0.002;
//tolerancia = 0.007;
iterador = 0;
printf("tolerancia %f\r\n", tolerancia);
}
// Verifica leitura do potenciometro interno do Atuador
float AtuadorLinear::getFeedback(){
float feed_vector[50];
for (int i=0; i< 50; i++){
feed_vector[i] = _feedbackPin.read();
//printf("feed_vector %f\r\n", feed_vector[i]);
}
// Utiliza moda para ignorar eventuais leituras erradas
feedback_atual = moda(feed_vector);
printf("Feedback: %f\r\n", feedback_atual);
return feedback_atual;
}
// Verificar comprimento atual do Atuad0.or em milimetros
float AtuadorLinear::getComprimento(){
getFeedback();
comprimento_atual = (feedback_atual - min_leitura)/resolucao;
if (comprimento_atual < 0) comprimento_atual = 0; //ignorando leituras negativas
printf("Comprimento: %f\r\n", comprimento_atual);
printf("Feed: %f\r\n", feedback_atual);
return comprimento_atual;
}
// Retrair atuador
void AtuadorLinear::retrair(float comprimento_em_milimetros){
getFeedback();
// valor_alvo = 0.0060408*comprimento_em_milimetros+0.191161;
valor_alvo = resolucao*comprimento_em_milimetros+min_leitura;
printf("valor_alvo %f\r\n", valor_alvo);
//ACIONAMENTO STRAIGHTFORWARD:
_habilitaPin = 1;
while (feedback_atual - valor_alvo > tolerancia){
getFeedback();
_sentidoPin = 0;
// _habilitaPin = 0;
}
// wait_ms(100);
// _sentidoPin = 0; //nova placa recebe 1
//ACIONAMENTO DE 3 RELES:
_habilitaPin = 0;
printf("retraiu ate %f\r\n", feedback_atual);
printf("done retrair\r\n\r\n");
}
// Estender atuador
void AtuadorLinear::estender(float comprimento_em_milimetros){
getFeedback();
//valor_alvo = 0.00595003*comprimento_em_milimetros+0.176624;
valor_alvo = resolucao*comprimento_em_milimetros+min_leitura;
printf("valor_alvo: %f\r\n", valor_alvo);
//ACIONAMENTO STRAIGHTFORWARD:
_habilitaPin = 1;
while(valor_alvo - feedback_atual > tolerancia) {
//_habilitaPin = 0;
//wait_ms();
getFeedback();
_sentidoPin = 1;
// _habilitaPin = 1;
//wait(0.025);
//quebra_loop++;
}
// wait_ms(100);
_habilitaPin = 0;
//getFeedback();
printf("estendeu ate: %f\r\n", feedback_atual);
printf("done estender\r\n\r\n");
}
// Definir novo comprimento do Atuador
float AtuadorLinear::setComprimento(float comprimento_em_milimetros){
if (comprimento_em_milimetros > 103.0f) comprimento_em_milimetros = 103.0f;
if (comprimento_em_milimetros < 0.0f) comprimento_em_milimetros = 0.0f;
valor_alvo = resolucao*comprimento_em_milimetros+min_leitura;
printf("valor alvo: %f\r\n",valor_alvo);
//valor_alvo = 0.00598632*comprimento_em_milimetros+0.184311;
getComprimento();
int quebra_loop = 0;
// while(abs(comprimento_em_milimetros - comprimento_atual) > 1.0f){
//tolerancia anterior 1.5*tolerancia
while ((fabs(valor_alvo - feedback_atual) > 1.5*tolerancia) && (quebra_loop < 3)){
wait_ms(100);
if (comprimento_em_milimetros > comprimento_atual){
estender(comprimento_em_milimetros);
}
else {
retrair(comprimento_em_milimetros);
}
comprimento_atual = getComprimento();
quebra_loop++;
}
//getComprimento();
printf("done setComprimento\r\n\r\n");
return feedback_atual;
}
float AtuadorLinear::setAngulo(float angulo_em_graus){
if (angulo_em_graus > 40.0f) angulo_em_graus = 40.0f;
if (angulo_em_graus < 0.0f) angulo_em_graus = 0.0f;
float coef1, coef2, coef3, coef4;
coef1 = -0.000679;
coef2 = 0.040733;
coef3 = 0.915889;
coef4 = 7;
float comprimento_alvo = coef1*(pow(angulo_em_graus,3.0)) + coef2*(pow(angulo_em_graus,2.0)) + coef3*angulo_em_graus + coef4;
printf("comprimento_alvo: %f\r\n", comprimento_alvo);
getComprimento();
int quebra_loop = 0;
while( (fabs(comprimento_alvo - comprimento_atual) > 0.75) && (quebra_loop < 4)){
setComprimento(comprimento_alvo);
getComprimento();
quebra_loop++;
}
float a1,a2,a3,a4;
a1 = 0.000139;
a2 = -0.014777;
a3 = 1.085297;
a4 = -6.150323;
float angulo_estimado = a1*(pow(comprimento_atual,3.0)) + a2*(pow(comprimento_atual,2.0)) + a3*comprimento_atual + a4;
printf("angulo_estimado %f\r\n", angulo_estimado);
printf("done setAngulo\r\n\r\n");
return angulo_estimado;
}
// Variar comprimento
void AtuadorLinear::variar_comprimento(float variacao_em_milimetros){
float novo_comprimento = getComprimento() + variacao_em_milimetros;
if (novo_comprimento > 103.0f) novo_comprimento = 103.0f;
if (novo_comprimento < 0.0f) novo_comprimento = 0.0f;
printf("novo_comprimento %f\r\n", novo_comprimento);
setComprimento(novo_comprimento);
}
// Private Methods //////////////////////////////////////////
//funcao de moda utilizada por getFeedback()
float AtuadorLinear::moda(float *vetor){
int tamanho = 10;
int freq_posicao[tamanho];
for (int k=0; k<tamanho; k++){
freq_posicao[k]=0;
}
int j, k;
for (j=0; j<tamanho; j++){
if(vetor[j] != 0){
for( k=0; k<tamanho; k++){
if(vetor[j] == vetor[k]){
freq_posicao[j]++;
}
}
}
}
int posicao_moda = 0;
for( j=0; j<tamanho; j++){
//printf("freq_posicao: %d\n", freq_posicao[j]);
if (freq_posicao[posicao_moda] < freq_posicao[j]){
posicao_moda = j;
}
}
return vetor[posicao_moda];
}
| 31.497436
| 174
| 0.655812
|
rebeca53
|
f119162fc69ae52ee4b20b8c8ab09d38fd60c236
| 926
|
cpp
|
C++
|
array/628_maximum_product_of_three_numbers.cpp
|
rspezialetti/leetcode
|
4614ffe2a4923aae02f93096b6200239e6f201c1
|
[
"MIT"
] | 1
|
2019-08-21T21:25:34.000Z
|
2019-08-21T21:25:34.000Z
|
array/628_maximum_product_of_three_numbers.cpp
|
rspezialetti/leetcode
|
4614ffe2a4923aae02f93096b6200239e6f201c1
|
[
"MIT"
] | null | null | null |
array/628_maximum_product_of_three_numbers.cpp
|
rspezialetti/leetcode
|
4614ffe2a4923aae02f93096b6200239e6f201c1
|
[
"MIT"
] | null | null | null |
class Solution {
public:
int maximumProduct(vector<int>& nums)
{
int min_1 = INT_MAX;
int min_2 = INT_MAX;
int max_1 = INT_MIN;
int max_2 = INT_MIN;
int max_3 = INT_MIN;
for(auto i : nums)
{
if(i >= max_1)
{
max_3 = max_2;
max_2 = max_1;
max_1 = i;
}
else if(i >= max_2)
{
max_3 = max_2;
max_2 = i;
}else if(i >= max_3)
{
max_3 = i;
}
if(i <= min_1)
{
min_2 = min_1;
min_1 = i;
}
else if(i <= min_2)
{
min_2 = i;
}
}
return max(min_1 * min_2 * max_1, max_1 * max_2 * max_3);
}
};
| 21.045455
| 65
| 0.320734
|
rspezialetti
|
f11ae4bcdb6e093d9a57adac68272cb92c11316c
| 20,120
|
cpp
|
C++
|
lib/bullet/src/src/Bullet3OpenCL/ParallelPrimitives/b3RadixSort32CL.cpp
|
mtesseracttech/CustomEngine
|
1a9ed564408ae29fe49681a810b851403d71f486
|
[
"Apache-2.0"
] | 360
|
2015-01-26T08:15:01.000Z
|
2021-07-11T16:30:58.000Z
|
thirdparty/bullet/Bullet3OpenCL/ParallelPrimitives/b3RadixSort32CL.cpp
|
Abd-Elrazek/godot
|
10e9221c49eddc05cb36c0b582060cac9e4c8cef
|
[
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 73
|
2015-04-14T09:39:05.000Z
|
2020-11-11T21:49:10.000Z
|
thirdparty/bullet/Bullet3OpenCL/ParallelPrimitives/b3RadixSort32CL.cpp
|
Abd-Elrazek/godot
|
10e9221c49eddc05cb36c0b582060cac9e4c8cef
|
[
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 82
|
2015-01-25T18:02:35.000Z
|
2022-03-05T12:28:17.000Z
|
#include "b3RadixSort32CL.h"
#include "b3LauncherCL.h"
#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h"
#include "b3PrefixScanCL.h"
#include "b3FillCL.h"
#define RADIXSORT32_PATH "src/Bullet3OpenCL/ParallelPrimitives/kernels/RadixSort32Kernels.cl"
#include "kernels/RadixSort32KernelsCL.h"
b3RadixSort32CL::b3RadixSort32CL(cl_context ctx, cl_device_id device, cl_command_queue queue, int initialCapacity)
:m_commandQueue(queue)
{
b3OpenCLDeviceInfo info;
b3OpenCLUtils::getDeviceInfo(device,&info);
m_deviceCPU = (info.m_deviceType & CL_DEVICE_TYPE_CPU)!=0;
m_workBuffer1 = new b3OpenCLArray<unsigned int>(ctx,queue);
m_workBuffer2 = new b3OpenCLArray<unsigned int>(ctx,queue);
m_workBuffer3 = new b3OpenCLArray<b3SortData>(ctx,queue);
m_workBuffer3a = new b3OpenCLArray<unsigned int>(ctx,queue);
m_workBuffer4 = new b3OpenCLArray<b3SortData>(ctx,queue);
m_workBuffer4a = new b3OpenCLArray<unsigned int>(ctx,queue);
if (initialCapacity>0)
{
m_workBuffer1->resize(initialCapacity);
m_workBuffer3->resize(initialCapacity);
m_workBuffer3a->resize(initialCapacity);
m_workBuffer4->resize(initialCapacity);
m_workBuffer4a->resize(initialCapacity);
}
m_scan = new b3PrefixScanCL(ctx,device,queue);
m_fill = new b3FillCL(ctx,device,queue);
const char* additionalMacros = "";
cl_int pErrNum;
const char* kernelSource = radixSort32KernelsCL;
cl_program sortProg = b3OpenCLUtils::compileCLProgramFromString( ctx, device, kernelSource, &pErrNum,additionalMacros, RADIXSORT32_PATH);
b3Assert(sortProg);
m_streamCountSortDataKernel = b3OpenCLUtils::compileCLKernelFromString( ctx, device, kernelSource, "StreamCountSortDataKernel", &pErrNum, sortProg,additionalMacros );
b3Assert(m_streamCountSortDataKernel );
m_streamCountKernel = b3OpenCLUtils::compileCLKernelFromString( ctx, device, kernelSource, "StreamCountKernel", &pErrNum, sortProg,additionalMacros );
b3Assert(m_streamCountKernel);
if (m_deviceCPU)
{
m_sortAndScatterSortDataKernel = b3OpenCLUtils::compileCLKernelFromString( ctx, device, kernelSource, "SortAndScatterSortDataKernelSerial", &pErrNum, sortProg,additionalMacros );
b3Assert(m_sortAndScatterSortDataKernel);
m_sortAndScatterKernel = b3OpenCLUtils::compileCLKernelFromString( ctx, device, kernelSource, "SortAndScatterKernelSerial", &pErrNum, sortProg,additionalMacros );
b3Assert(m_sortAndScatterKernel);
} else
{
m_sortAndScatterSortDataKernel = b3OpenCLUtils::compileCLKernelFromString( ctx, device, kernelSource, "SortAndScatterSortDataKernel", &pErrNum, sortProg,additionalMacros );
b3Assert(m_sortAndScatterSortDataKernel);
m_sortAndScatterKernel = b3OpenCLUtils::compileCLKernelFromString( ctx, device, kernelSource, "SortAndScatterKernel", &pErrNum, sortProg,additionalMacros );
b3Assert(m_sortAndScatterKernel);
}
m_prefixScanKernel = b3OpenCLUtils::compileCLKernelFromString( ctx, device, kernelSource, "PrefixScanKernel", &pErrNum, sortProg,additionalMacros );
b3Assert(m_prefixScanKernel);
}
b3RadixSort32CL::~b3RadixSort32CL()
{
delete m_scan;
delete m_fill;
delete m_workBuffer1;
delete m_workBuffer2;
delete m_workBuffer3;
delete m_workBuffer3a;
delete m_workBuffer4;
delete m_workBuffer4a;
clReleaseKernel(m_streamCountSortDataKernel);
clReleaseKernel(m_streamCountKernel);
clReleaseKernel(m_sortAndScatterSortDataKernel);
clReleaseKernel(m_sortAndScatterKernel);
clReleaseKernel(m_prefixScanKernel);
}
void b3RadixSort32CL::executeHost(b3AlignedObjectArray<b3SortData>& inout, int sortBits /* = 32 */)
{
int n = inout.size();
const int BITS_PER_PASS = 8;
const int NUM_TABLES = (1<<BITS_PER_PASS);
int tables[NUM_TABLES];
int counter[NUM_TABLES];
b3SortData* src = &inout[0];
b3AlignedObjectArray<b3SortData> workbuffer;
workbuffer.resize(inout.size());
b3SortData* dst = &workbuffer[0];
int count=0;
for(int startBit=0; startBit<sortBits; startBit+=BITS_PER_PASS)
{
for(int i=0; i<NUM_TABLES; i++)
{
tables[i] = 0;
}
for(int i=0; i<n; i++)
{
int tableIdx = (src[i].m_key >> startBit) & (NUM_TABLES-1);
tables[tableIdx]++;
}
//#define TEST
#ifdef TEST
printf("histogram size=%d\n",NUM_TABLES);
for (int i=0;i<NUM_TABLES;i++)
{
if (tables[i]!=0)
{
printf("tables[%d]=%d]\n",i,tables[i]);
}
}
#endif //TEST
// prefix scan
int sum = 0;
for(int i=0; i<NUM_TABLES; i++)
{
int iData = tables[i];
tables[i] = sum;
sum += iData;
counter[i] = 0;
}
// distribute
for(int i=0; i<n; i++)
{
int tableIdx = (src[i].m_key >> startBit) & (NUM_TABLES-1);
dst[tables[tableIdx] + counter[tableIdx]] = src[i];
counter[tableIdx] ++;
}
b3Swap( src, dst );
count++;
}
if (count&1)
{
b3Assert(0);//need to copy
}
}
void b3RadixSort32CL::executeHost(b3OpenCLArray<b3SortData>& keyValuesInOut, int sortBits /* = 32 */)
{
b3AlignedObjectArray<b3SortData> inout;
keyValuesInOut.copyToHost(inout);
executeHost(inout,sortBits);
keyValuesInOut.copyFromHost(inout);
}
void b3RadixSort32CL::execute(b3OpenCLArray<unsigned int>& keysIn, b3OpenCLArray<unsigned int>& keysOut, b3OpenCLArray<unsigned int>& valuesIn,
b3OpenCLArray<unsigned int>& valuesOut, int n, int sortBits)
{
}
//#define DEBUG_RADIXSORT
//#define DEBUG_RADIXSORT2
void b3RadixSort32CL::execute(b3OpenCLArray<b3SortData>& keyValuesInOut, int sortBits /* = 32 */)
{
int originalSize = keyValuesInOut.size();
int workingSize = originalSize;
int dataAlignment = DATA_ALIGNMENT;
#ifdef DEBUG_RADIXSORT2
b3AlignedObjectArray<b3SortData> test2;
keyValuesInOut.copyToHost(test2);
printf("numElem = %d\n",test2.size());
for (int i=0;i<test2.size();i++)
{
printf("test2[%d].m_key=%d\n",i,test2[i].m_key);
printf("test2[%d].m_value=%d\n",i,test2[i].m_value);
}
#endif //DEBUG_RADIXSORT2
b3OpenCLArray<b3SortData>* src = 0;
if (workingSize%dataAlignment)
{
workingSize += dataAlignment-(workingSize%dataAlignment);
m_workBuffer4->copyFromOpenCLArray(keyValuesInOut);
m_workBuffer4->resize(workingSize);
b3SortData fillValue;
fillValue.m_key = 0xffffffff;
fillValue.m_value = 0xffffffff;
#define USE_BTFILL
#ifdef USE_BTFILL
m_fill->execute((b3OpenCLArray<b3Int2>&)*m_workBuffer4,(b3Int2&)fillValue,workingSize-originalSize,originalSize);
#else
//fill the remaining bits (very slow way, todo: fill on GPU/OpenCL side)
for (int i=originalSize; i<workingSize;i++)
{
m_workBuffer4->copyFromHostPointer(&fillValue,1,i);
}
#endif//USE_BTFILL
src = m_workBuffer4;
} else
{
src = &keyValuesInOut;
m_workBuffer4->resize(0);
}
b3Assert( workingSize%DATA_ALIGNMENT == 0 );
int minCap = NUM_BUCKET*NUM_WGS;
int n = workingSize;
m_workBuffer1->resize(minCap);
m_workBuffer3->resize(workingSize);
// ADLASSERT( ELEMENTS_PER_WORK_ITEM == 4 );
b3Assert( BITS_PER_PASS == 4 );
b3Assert( WG_SIZE == 64 );
b3Assert( (sortBits&0x3) == 0 );
b3OpenCLArray<b3SortData>* dst = m_workBuffer3;
b3OpenCLArray<unsigned int>* srcHisto = m_workBuffer1;
b3OpenCLArray<unsigned int>* destHisto = m_workBuffer2;
int nWGs = NUM_WGS;
b3ConstData cdata;
{
int blockSize = ELEMENTS_PER_WORK_ITEM*WG_SIZE;//set at 256
int nBlocks = (n+blockSize-1)/(blockSize);
cdata.m_n = n;
cdata.m_nWGs = NUM_WGS;
cdata.m_startBit = 0;
cdata.m_nBlocksPerWG = (nBlocks + cdata.m_nWGs - 1)/cdata.m_nWGs;
if( nBlocks < NUM_WGS )
{
cdata.m_nBlocksPerWG = 1;
nWGs = nBlocks;
}
}
int count=0;
for(int ib=0; ib<sortBits; ib+=4)
{
#ifdef DEBUG_RADIXSORT2
keyValuesInOut.copyToHost(test2);
printf("numElem = %d\n",test2.size());
for (int i=0;i<test2.size();i++)
{
if (test2[i].m_key != test2[i].m_value)
{
printf("test2[%d].m_key=%d\n",i,test2[i].m_key);
printf("test2[%d].m_value=%d\n",i,test2[i].m_value);
}
}
#endif //DEBUG_RADIXSORT2
cdata.m_startBit = ib;
if (src->size())
{
b3BufferInfoCL bInfo[] = { b3BufferInfoCL( src->getBufferCL(), true ), b3BufferInfoCL( srcHisto->getBufferCL() ) };
b3LauncherCL launcher(m_commandQueue, m_streamCountSortDataKernel,"m_streamCountSortDataKernel");
launcher.setBuffers( bInfo, sizeof(bInfo)/sizeof(b3BufferInfoCL) );
launcher.setConst( cdata );
int num = NUM_WGS*WG_SIZE;
launcher.launch1D( num, WG_SIZE );
}
#ifdef DEBUG_RADIXSORT
b3AlignedObjectArray<unsigned int> testHist;
srcHisto->copyToHost(testHist);
printf("ib = %d, testHist size = %d, non zero elements:\n",ib, testHist.size());
for (int i=0;i<testHist.size();i++)
{
if (testHist[i]!=0)
printf("testHist[%d]=%d\n",i,testHist[i]);
}
#endif //DEBUG_RADIXSORT
//fast prefix scan is not working properly on Mac OSX yet
#ifdef __APPLE__
bool fastScan=false;
#else
bool fastScan=!m_deviceCPU;//only use fast scan on GPU
#endif
if (fastScan)
{// prefix scan group histogram
b3BufferInfoCL bInfo[] = { b3BufferInfoCL( srcHisto->getBufferCL() ) };
b3LauncherCL launcher( m_commandQueue, m_prefixScanKernel,"m_prefixScanKernel" );
launcher.setBuffers( bInfo, sizeof(bInfo)/sizeof(b3BufferInfoCL) );
launcher.setConst( cdata );
launcher.launch1D( 128, 128 );
destHisto = srcHisto;
}else
{
//unsigned int sum; //for debugging
m_scan->execute(*srcHisto,*destHisto,1920,0);//,&sum);
}
#ifdef DEBUG_RADIXSORT
destHisto->copyToHost(testHist);
printf("ib = %d, testHist size = %d, non zero elements:\n",ib, testHist.size());
for (int i=0;i<testHist.size();i++)
{
if (testHist[i]!=0)
printf("testHist[%d]=%d\n",i,testHist[i]);
}
for (int i=0;i<testHist.size();i+=NUM_WGS)
{
printf("testHist[%d]=%d\n",i/NUM_WGS,testHist[i]);
}
#endif //DEBUG_RADIXSORT
#define USE_GPU
#ifdef USE_GPU
if (src->size())
{// local sort and distribute
b3BufferInfoCL bInfo[] = { b3BufferInfoCL( src->getBufferCL(), true ), b3BufferInfoCL( destHisto->getBufferCL(), true ), b3BufferInfoCL( dst->getBufferCL() )};
b3LauncherCL launcher( m_commandQueue, m_sortAndScatterSortDataKernel,"m_sortAndScatterSortDataKernel" );
launcher.setBuffers( bInfo, sizeof(bInfo)/sizeof(b3BufferInfoCL) );
launcher.setConst( cdata );
launcher.launch1D( nWGs*WG_SIZE, WG_SIZE );
}
#else
{
#define NUM_TABLES 16
//#define SEQUENTIAL
#ifdef SEQUENTIAL
int counter2[NUM_TABLES]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
int tables[NUM_TABLES];
int startBit = ib;
destHisto->copyToHost(testHist);
b3AlignedObjectArray<b3SortData> srcHost;
b3AlignedObjectArray<b3SortData> dstHost;
dstHost.resize(src->size());
src->copyToHost(srcHost);
for (int i=0;i<NUM_TABLES;i++)
{
tables[i] = testHist[i*NUM_WGS];
}
// distribute
for(int i=0; i<n; i++)
{
int tableIdx = (srcHost[i].m_key >> startBit) & (NUM_TABLES-1);
dstHost[tables[tableIdx] + counter2[tableIdx]] = srcHost[i];
counter2[tableIdx] ++;
}
#else
int counter2[NUM_TABLES]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
int tables[NUM_TABLES];
b3AlignedObjectArray<b3SortData> dstHostOK;
dstHostOK.resize(src->size());
destHisto->copyToHost(testHist);
b3AlignedObjectArray<b3SortData> srcHost;
src->copyToHost(srcHost);
int blockSize = 256;
int nBlocksPerWG = cdata.m_nBlocksPerWG;
int startBit = ib;
{
for (int i=0;i<NUM_TABLES;i++)
{
tables[i] = testHist[i*NUM_WGS];
}
// distribute
for(int i=0; i<n; i++)
{
int tableIdx = (srcHost[i].m_key >> startBit) & (NUM_TABLES-1);
dstHostOK[tables[tableIdx] + counter2[tableIdx]] = srcHost[i];
counter2[tableIdx] ++;
}
}
b3AlignedObjectArray<b3SortData> dstHost;
dstHost.resize(src->size());
int counter[NUM_TABLES]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
for (int wgIdx=0;wgIdx<NUM_WGS;wgIdx++)
{
int counter[NUM_TABLES]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
int nBlocks = (n)/blockSize - nBlocksPerWG*wgIdx;
for(int iblock=0; iblock<b3Min(cdata.m_nBlocksPerWG, nBlocks); iblock++)
{
for (int lIdx = 0;lIdx < 64;lIdx++)
{
int addr = iblock*blockSize + blockSize*cdata.m_nBlocksPerWG*wgIdx + ELEMENTS_PER_WORK_ITEM*lIdx;
// MY_HISTOGRAM( localKeys.x ) ++ is much expensive than atomic add as it requires read and write while atomics can just add on AMD
// Using registers didn't perform well. It seems like use localKeys to address requires a lot of alu ops
// AMD: AtomInc performs better while NV prefers ++
for(int j=0; j<ELEMENTS_PER_WORK_ITEM; j++)
{
if( addr+j < n )
{
// printf ("addr+j=%d\n", addr+j);
int i = addr+j;
int tableIdx = (srcHost[i].m_key >> startBit) & (NUM_TABLES-1);
int destIndex = testHist[tableIdx*NUM_WGS+wgIdx] + counter[tableIdx];
b3SortData ok = dstHostOK[destIndex];
if (ok.m_key != srcHost[i].m_key)
{
printf("ok.m_key = %d, srcHost[i].m_key = %d\n", ok.m_key,srcHost[i].m_key );
printf("(ok.m_value = %d, srcHost[i].m_value = %d)\n", ok.m_value,srcHost[i].m_value );
}
if (ok.m_value != srcHost[i].m_value)
{
printf("ok.m_value = %d, srcHost[i].m_value = %d\n", ok.m_value,srcHost[i].m_value );
printf("(ok.m_key = %d, srcHost[i].m_key = %d)\n", ok.m_key,srcHost[i].m_key );
}
dstHost[destIndex] = srcHost[i];
counter[tableIdx] ++;
}
}
}
}
}
#endif //SEQUENTIAL
dst->copyFromHost(dstHost);
}
#endif//USE_GPU
#ifdef DEBUG_RADIXSORT
destHisto->copyToHost(testHist);
printf("ib = %d, testHist size = %d, non zero elements:\n",ib, testHist.size());
for (int i=0;i<testHist.size();i++)
{
if (testHist[i]!=0)
printf("testHist[%d]=%d\n",i,testHist[i]);
}
#endif //DEBUG_RADIXSORT
b3Swap(src, dst );
b3Swap(srcHisto,destHisto);
#ifdef DEBUG_RADIXSORT2
keyValuesInOut.copyToHost(test2);
printf("numElem = %d\n",test2.size());
for (int i=0;i<test2.size();i++)
{
if (test2[i].m_key != test2[i].m_value)
{
printf("test2[%d].m_key=%d\n",i,test2[i].m_key);
printf("test2[%d].m_value=%d\n",i,test2[i].m_value);
}
}
#endif //DEBUG_RADIXSORT2
count++;
}
if (count&1)
{
b3Assert(0);//need to copy from workbuffer to keyValuesInOut
}
if (m_workBuffer4->size())
{
m_workBuffer4->resize(originalSize);
keyValuesInOut.copyFromOpenCLArray(*m_workBuffer4);
}
#ifdef DEBUG_RADIXSORT
keyValuesInOut.copyToHost(test2);
printf("numElem = %d\n",test2.size());
for (int i=0;i<test2.size();i++)
{
printf("test2[%d].m_key=%d\n",i,test2[i].m_key);
printf("test2[%d].m_value=%d\n",i,test2[i].m_value);
}
#endif
}
void b3RadixSort32CL::execute(b3OpenCLArray<unsigned int>& keysInOut, int sortBits /* = 32 */)
{
int originalSize = keysInOut.size();
int workingSize = originalSize;
int dataAlignment = DATA_ALIGNMENT;
b3OpenCLArray<unsigned int>* src = 0;
if (workingSize%dataAlignment)
{
workingSize += dataAlignment-(workingSize%dataAlignment);
m_workBuffer4a->copyFromOpenCLArray(keysInOut);
m_workBuffer4a->resize(workingSize);
unsigned int fillValue = 0xffffffff;
m_fill->execute(*m_workBuffer4a,fillValue,workingSize-originalSize,originalSize);
src = m_workBuffer4a;
} else
{
src = &keysInOut;
m_workBuffer4a->resize(0);
}
b3Assert( workingSize%DATA_ALIGNMENT == 0 );
int minCap = NUM_BUCKET*NUM_WGS;
int n = workingSize;
m_workBuffer1->resize(minCap);
m_workBuffer3->resize(workingSize);
m_workBuffer3a->resize(workingSize);
// ADLASSERT( ELEMENTS_PER_WORK_ITEM == 4 );
b3Assert( BITS_PER_PASS == 4 );
b3Assert( WG_SIZE == 64 );
b3Assert( (sortBits&0x3) == 0 );
b3OpenCLArray<unsigned int>* dst = m_workBuffer3a;
b3OpenCLArray<unsigned int>* srcHisto = m_workBuffer1;
b3OpenCLArray<unsigned int>* destHisto = m_workBuffer2;
int nWGs = NUM_WGS;
b3ConstData cdata;
{
int blockSize = ELEMENTS_PER_WORK_ITEM*WG_SIZE;//set at 256
int nBlocks = (n+blockSize-1)/(blockSize);
cdata.m_n = n;
cdata.m_nWGs = NUM_WGS;
cdata.m_startBit = 0;
cdata.m_nBlocksPerWG = (nBlocks + cdata.m_nWGs - 1)/cdata.m_nWGs;
if( nBlocks < NUM_WGS )
{
cdata.m_nBlocksPerWG = 1;
nWGs = nBlocks;
}
}
int count=0;
for(int ib=0; ib<sortBits; ib+=4)
{
cdata.m_startBit = ib;
if (src->size())
{
b3BufferInfoCL bInfo[] = { b3BufferInfoCL( src->getBufferCL(), true ), b3BufferInfoCL( srcHisto->getBufferCL() ) };
b3LauncherCL launcher(m_commandQueue, m_streamCountKernel,"m_streamCountKernel");
launcher.setBuffers( bInfo, sizeof(bInfo)/sizeof(b3BufferInfoCL) );
launcher.setConst( cdata );
int num = NUM_WGS*WG_SIZE;
launcher.launch1D( num, WG_SIZE );
}
//fast prefix scan is not working properly on Mac OSX yet
#ifdef __APPLE__
bool fastScan=false;
#else
bool fastScan=!m_deviceCPU;
#endif
if (fastScan)
{// prefix scan group histogram
b3BufferInfoCL bInfo[] = { b3BufferInfoCL( srcHisto->getBufferCL() ) };
b3LauncherCL launcher( m_commandQueue, m_prefixScanKernel,"m_prefixScanKernel" );
launcher.setBuffers( bInfo, sizeof(bInfo)/sizeof(b3BufferInfoCL) );
launcher.setConst( cdata );
launcher.launch1D( 128, 128 );
destHisto = srcHisto;
}else
{
//unsigned int sum; //for debugging
m_scan->execute(*srcHisto,*destHisto,1920,0);//,&sum);
}
if (src->size())
{// local sort and distribute
b3BufferInfoCL bInfo[] = { b3BufferInfoCL( src->getBufferCL(), true ), b3BufferInfoCL( destHisto->getBufferCL(), true ), b3BufferInfoCL( dst->getBufferCL() )};
b3LauncherCL launcher( m_commandQueue, m_sortAndScatterKernel ,"m_sortAndScatterKernel");
launcher.setBuffers( bInfo, sizeof(bInfo)/sizeof(b3BufferInfoCL) );
launcher.setConst( cdata );
launcher.launch1D( nWGs*WG_SIZE, WG_SIZE );
}
b3Swap(src, dst );
b3Swap(srcHisto,destHisto);
count++;
}
if (count&1)
{
b3Assert(0);//need to copy from workbuffer to keyValuesInOut
}
if (m_workBuffer4a->size())
{
m_workBuffer4a->resize(originalSize);
keysInOut.copyFromOpenCLArray(*m_workBuffer4a);
}
}
| 28.298172
| 180
| 0.624056
|
mtesseracttech
|
f12017fa2885cc3dbcb5ddc17367e96562f7f66e
| 13,998
|
cpp
|
C++
|
data/837.cpp
|
TianyiChen/rdcpp-data
|
75c6868c876511e3ce143fdc3c08ddd74c7aa4ea
|
[
"MIT"
] | null | null | null |
data/837.cpp
|
TianyiChen/rdcpp-data
|
75c6868c876511e3ce143fdc3c08ddd74c7aa4ea
|
[
"MIT"
] | null | null | null |
data/837.cpp
|
TianyiChen/rdcpp-data
|
75c6868c876511e3ce143fdc3c08ddd74c7aa4ea
|
[
"MIT"
] | null | null | null |
int P4q
, jy
,
km3//iGv
, Wp , A1e
,jzqM0,
nCvJ ,fVXXO,k5
,//8gKO
Cvq ,Q1z ,
Vlu87,GVB ,
C,qC
,wt ,m0Kk ,
DYo,m6,VIVe
,d3, p5bH
,
FGF, Yx, OoL , i3,
ba , cZv , DCs, D0 ,Px4
/*pn*/,
ZGs, drvpc
, Ikr5 ,
Ko,
AZ, URl , Dhha,xOoq
,/*wA*/ oZJB,
ksc
, vB
,
tS, sK, KCS
,RXZ ,//nsGyl
sOZ, //
JcHd ,/**/Gz
,//n
S1 , MsS , s32jo,m , VIyS ,RdmRehq,
n3a;
void
f_f0 ()
{
volatile int//nO
J2H , Zjm0,V4 , gW
,
vHz ,
o21
,
O7ai, xJ4M,
GY , l0N
,Cq5z
; {;;return ;} {{
return ; ; return//IcYz
; return ;}//7T
{ for(int i=1;
i< 1 ;++i
){
{ { } }
{if
(true )
{}else if (
true){} else
for
(int i=1;i<2 ;++i ){}
{ }}} {{{
} } for
(int i=1 ;
i<3
;++i )
{
}{
}
}
;
}{//vY
{ int/*PPdEEku*/ W14/**/ ; /**/volatile int aUAJzk
, SpM;
W14 =//7gI
SpM+aUAJzk;
}for(int i=1;//
i<4
;++i){{ } }}/**/} {
{
volatile int q5, Li , //TPp
OiW6 ;n3a =OiW6 +q5 +Li
; for
(int i=1 ; /*ED*/i<5
;++i ) ;
{
{ } ;
} } return ;;
}
if
( true
)/*f*/ {if
( true ) { volatile int
//7t
rD
,
fSTsa,
KDO2,SOW
,
RMYhI;P4q/**/ =
RMYhI
+rD
+ fSTsa
+
KDO2+SOW
;{ {
/*3gZ*/ for (int
i=1 ; i< 6
;++i
) { } } }
}else{int Q9Jz
;
volatile int E9C,//9W
aq , Hd
;
for
(int i=1 ;i<7
;++i) {
volatile int KEB6 //
,z9hQ8
,/*V*/ukJ ;jy=ukJ//N
+ KEB6+z9hQ8
; }
Q9Jz =Hd+ E9C+ aq
; //S
{ ;} return ;
}{int d7;volatile int
mkH9 ,
E5a5f6, q6C;//
return ;d7 = q6C+
mkH9 +E5a5f6; if(true )
{/*B*///tVt
{{
}{}
} { }}
else//g
if (true//N
)
for//
(int i=1
; i<8
;++i) { volatile int pSE, /*t*/uk,rZpN ; { { }//ejm
}//G
km3=
//t2wO
rZpN
+pSE+uk//jiCY
; }else { {
{;
} {
}
}}
return
;//2G
} {
volatile int n6Ea,Rt, aU5 /*TYg*/,
d8L;Wp =d8L + n6Ea+Rt
+
aU5 ;
{{
return ;
}
;
{
} } {
/*8L*/; {
return
; if(true
) { }else { }} { int azQ;volatile int SjFO,rz , /*4l3*/qeJW;
azQ=
qeJW +SjFO+/*3*/rz ; }} {{//uJK
} ;for
(int i=1;i<9 ;++i
){return ;}
} };} else{ { int b9Ww4; volatile int o51t
, oqg
,yE3mu
,I8 ,R9Y0QV , WySi,JWr ;A1e =
JWr
+o51t+ oqg +yE3mu
;
for(int i=1
; i< 10;++i
)/**/
return ;;
b9Ww4 =I8
+ //iU
R9Y0QV
+
WySi
; } {{
{
}
} return ; { return ;
{
{ }};}
if
(
/*BUGE*/
true
) /*7tu*/{//0
return ;}//Qs
else
if(true )/*v*/
{
volatile int /*Qe6M*/
qw,
//pGIg
AZSH,wj0;
{{
}{ {/**//*DWVE*/ }
}{
}}
jzqM0 =wj0 +
qw
+ AZSH
;
}else {{{/*Gbz*/}
}for (int
i=1;i< 11/*3Uc*/;++i)//Y9
{}for (int i=1;i<
12 //6
;++i) {if (
true
) {
}
else { }{
}for(int i=1;
i< 13 ;++i ) ; } return ;
} }
return ;}nCvJ
= Cq5z+ J2H//ec
+
Zjm0+
V4 +
gW
/*H*/+//Rl
vHz
;fVXXO = /*6g*/o21
+
O7ai+xJ4M+GY
+/*VNU*/l0N;for (int i=1 ;
i<
14;++i){ {int p//fVl8
;volatile int m4ZaG
, VnW
/*Qme*/
,cr
,YYn;for (int i=1
;
i<//lF55ZDf
//Mct
15 ;++i
)return ; p =
YYn + m4ZaG+
VnW+ cr
;} return
; /*S5*/return ;}return ; //q
}void//ytoWM4d
f_f1 ()
{ int ur , JN ;/*q*/volatile int//y4
yZ , Ih , EO,
fj ,M2,ZAq, Z0XXc
,wpM6
, FGeE , zUI8,PuKqI
,
uO ;JN =
/*a0*/uO+ yZ+Ih
+/*1*/EO+
fj +/*D6*/M2+ZAq ; {
{
for
(int i=1 ;i<16;++i)
{{ } } {
{ } { { int
Y
;volatile int AzI ,
jF6
;{ } Y
=jF6+
AzI;/*k7tJ*/}
}return ; } {; return ; }for (int i=1;/*qy*/i< 17 ;++i/*cdj*/){
{//z
}//
for(int i=1
;i<
18;++i ) {for(int i=1/**/;
i<
19/*ypG*/;++i )
{ return ;}; }
} }{
volatile int Fcdg , xj //Q
,gtqV; k5=
gtqV
+
Fcdg
+ xj;if
(
true )
if
(true) { int tg
;volatile int DpL
,xd;
;
tg
= xd +
DpL;
{
}} else{{volatile int
Kb ,
T5; {
}
Cvq
=T5+Kb
;
{
}
}if(true) { { for (int
i=1 ; i<
20 //Om
;++i)
return ;{}
}}
else{{}return
;}} /*Y*/else{
if (true/*DB*/)
{
{
//4T
{
}/*QW0C*/ {} } { } }
else
{
{}}
//
if (
true )
;
else ; }
{ ;
} {{ { }
{ int JNGOzc;volatile int
kp
;//qbl
JNGOzc =kp ;
} } } ;}{ {//guVJ
int
Vu
; volatile int Gaw, If0W //
, D;{{;
}}
Vu=D//a4AN
+ Gaw/*IPQJ*/ + If0W; }
{volatile int
qv
, D1pV
,d0Od7
;
{//Li
{ }}
if
( true //eL
) Q1z
=
d0Od7 +qv
+
D1pV
; else {
}}}{ {
//P
{ volatile int c
,QUtmVwU,puX;Vlu87
= puX+c+ QUtmVwU ;//
}if (/*c*/true) {{//W2X
}//Yv
}else
{}{volatile int/*zAS*/ Zyg,
HL
;
if( //w8bF
true
//Np
)
;else{return ; return ; }GVB
=HL+Zyg;
}}/*K*/ return ;
{
for
(int i=1
; i< 21;++i)for (int i=1 ;i<22 ;++i) {//F
}
if( true
) /**/{ return ;
}else{}
{
}
}
} {
{//
for
(int i=1
;i<23//po
;++i) ;{volatile int
p633 , ZRm
;
C=
ZRm+ p633; } }
if
(true){
{
if( true)
{{}}else
return ;} if ( true){} else
{
}if( true )
{} else for(int i=1
; i<
24 ;++i)
{
{}} for
//9yU3D
(int i=1 ; i<
25 ;++i){
} }else ;}{ volatile int NrTgvJ,/*mIu*/ Wy,O04
,GpkxQ
;
qC
= GpkxQ +NrTgvJ+Wy
+
//N
O04
;
for(int i=1;i< 26
;++i
) ; {
int E50;
volatile int gD
,S, MA,//t
YI;
E50=
YI
+//j
gD;for(int i=1; i<//hm
27;++i ) wt
=
S+
MA;{
//nIMb7X
volatile int HI9 , M7W
//p
;{if(true )/*D*//*H*//*s*/ {
}else
return ;
}m0Kk =M7W+ HI9;
}}}} ur =Z0XXc +wpM6+ FGeE +zUI8+ PuKqI ;
;
return
/**/ ; /*piJ*/ } void f_f2 () {int A;volatile int//Q
o0H
,/*68NC*/VostsS
,q, p1j5d, Ty;{ int i ;volatile int
dKX ,Fq , BFs,
dZ6,//3y9
/*YAb*/z0AqcP /**/, gQy , W2
,
SYx1 ,s , vff6q;{
;{
for
(int i=1 ;
i< 28
/*Nqs*/ ;++i
);{ /*KKDAH*/return ;/*m8F*/
}
;//sr
} {volatile int Y1
/*nD*/ ,W9F ,Ha6,raZrgn ,W ;if(
true
)return/*an6B*/ ;else
if(
true )DYo
= W+Y1 //
+ W9F;else
m6 = Ha6
+raZrgn
/*59R*/;} }VIVe
=
vff6q
//r5
+dKX +/*u*/Fq +BFs+ dZ6; i
=z0AqcP +
/**/gQy
+W2/**/+SYx1
+s
;
{//rk
volatile int Qz, sx , qs5;
/*u*/
{
{
for(int
i=1;i< 29;++i ) if
(
true ) return
;else return ;
{ ;
{//FBl
}{}} {;
}}}if ( true ) d3= qs5+
Qz +sx ;else {volatile int hGv
, EIw; return ;
{} if( true
)if (true)for(int //IWm
i=1
;
i<
//Uv
30 ;++i) if( true
)
{ for(int i=1 ;//L
i<
31;++i
){} {return
;
} }else p5bH
= EIw + hGv//P4Q
;else
{ volatile int
hUNy//
, GGOR,TmMc ;{return ; ; }
FGF=TmMc
+
hUNy+/*zfW3a2*/ //k
GGOR;
} else {} } {
volatile int l5z,
BSn
; if (
//WR
true//f
)
{
;}/*WK7JC*/
else Yx = BSn + /*X*/l5z ;
} }} return
;
A
=Ty+o0H+
VostsS+q//uLV
+ p1j5d ;;//7eLDF
; return ;}int main
(){ int
eUy4; volatile int ES
,yXR,
c1t
,//Z1
sH,T,
BX9s
;/*H*///bZRU
{/**/volatile int dhU//w5O
,QnTo,
dO
, K ; //q
OoL//
//u6S
=K+dhU+QnTo
+ dO ;
{{ ; {}}
;
{ for(int
i=1
;
i<32;++i)
return 594352737; /*j8*/}{ {
}
}
}
{ ;/*lZE*/ {{{ }{{
}
//4
}
}
return 1082132145;}//wM
}
{;
; ;}} if
(true )return 1378773020 ;/*F4O*/else for
(int
i=1
;i<
33;++i
)if
/*Un*/ (true
){
{ { return 1938790911 ; }{
{
}
{
}
{
{ { } /*8A7*/} }
}
} for (int
i=1;/*eCBN*/i<
34
;++i ); { /*dr*/{volatile int
X,//F
l ,F;/*F*/{{//
}if(
true
)
;else { }} for(int i=1;
i< 35;++i
)i3 =
F//s4mo
+X
+l; }for(int i=1;
i< 36;++i)if
(true
)
/*3B*/if (true) for
(int i=1
;i<37;++i) {
;//w
}else return
1018575053; else { {
} }if (
true )//P7so
for(int i=1
; i<38
;++i )
//jw
{volatile int//w
ixR, J7FPY ;
ba
= J7FPY/**/+ ixR;return 1256291251;}
else
{ ; ;//D
}
return//ZtIM
1965938990
;}{
{
return 1351070832
;
} if
( true){ ;
/**/
for(int i=1;
i< 39;++i ){
/**/{ ;
}
{//9OJ
} }} else {{ }
//o8Z
} ;//db
;
}{volatile int hGk8rVo7
,g
,cqH ,O ;
{return 458308806 ;
{ for(int i=1
; i<40
;++i//LKC
) //
for(int i=1 ; i< 41/*aRK*/;++i)for(int i=1; i<
42;++i ){{
}
/*z*/} } } cZv=O + hGk8rVo7
+ g+
cqH; }
if ( true
/*WM*/
) {
{ return
55883134
; {int tnOeN ;
volatile int
Mqh,
Q,/*EW*/
kG;{ volatile int lAn
;
DCs =lAn ;
} /*L*/ tnOeN
=kG +Mqh + Q; } /*M*/}{for (int i=1 ; /*h*/i<
43
;++i
//K3
)
{/*i6*/{
} } ; {{
} }} {{{} }//P
;;} } else return 1089164210;}
else eUy4= /*LrKI*/ BX9s
+ES + yXR
+ c1t
/*K9nD*/+sH +/*7s*/T;
{if
(true
) if
( true
) {;for
(int i=1; i< /*0*/44 ;++i )for
/*c0G*/(int i=1; i<
45
;++i )//WT
{ volatile int qeT9,ufgk ,
XgT5
; {
volatile int SSh
, d
; if
(/*mO*/true
) { }
else
D0//
=d +SSh;/**/ }Px4 /*0*/=XgT5 +
qeT9+ufgk ;}} else { int Gg
;volatile int
/**/
StK0 ,
n ,h2X ;
Gg= h2X +
StK0 +n
;
return 1980296596//Lla
;
return 71442256;/**/}else for (int i=1 ;i<
46 ;++i )for
(int
i=1;/*o*/ i<
47 ;++i )//28
return
236364194; {{/*i*/volatile int H,
w4b ,
N ;ZGs
=N/**/+ H+ w4b ;}return 2027572007 ;;return
1488876501;
{
{volatile int dbrV , b19 ;//b9
for(int i=1
;i< /*8NbJ*/48
;++i
)//I
drvpc//IoBhO
=
b19/*j*/+
dbrV;} {} }} {for (int
i=1//Bt
;
i< 49
;++i){ volatile int s5S , i8O,
fJ,CP,Z, VTj
, bDR
,rkwC
; Ikr5=rkwC //E
+s5S
//1R
+i8O
+fJ ;
if (
true)
{
}
else{/*1*/
for/*vynt*/(int i=1
;
i<50
;++i)
{
} {
}//3
}
//rJo
Ko= CP/**/
+ Z+ VTj+
bDR ;}
{{}
} return 629346126
;/*9dE*/ { {return 554268089; }
}}
for
(int
i=1;i<
51 ;++i)for (int /*B98*/i=1 ;i< 52/*8AVK*/;++i )//MX5
{int x ;volatile int RAL ,
VqL ,
EKi,
sI4;if
(
true )
for(int i=1;i<53;++i//wl
) {
{ {
{} }{}}
}
else/*l*/{if
( true )/*iGq*/{//dV
}
else
return/**/ 654265797;
} {;//h5
{ volatile int WF2U,pVM
; AZ =
pVM
+
WF2U ;}{}} x/*O3*/ =sI4
+ RAL //K
+ VqL +EKi;}
} {
/*rG*/volatile int FXi
,vK1,u
, yH7;
return/**/ 997627887;{if( true) { /*u*/
volatile int KL6l
, RUqG ,
bC ,
/*ZSG*/ygQ1
;/*n*/
URl=ygQ1+KL6l
+
RUqG
+bC
;}
else//3Rw
{
return
//p
2034644460 ; {};
} { {{} }{{ };}/**/}
}if(true){if
/*eW*/(
true){{
} { volatile int NZ9 ; Dhha = NZ9 ;//E
{} }for
(int i=1 ;
i< 54 ;++i)
{ {
volatile int Xd9Y; {
} {
{
} }
{
}if(
true
) {
} else
xOoq
//cg
=Xd9Y ;};if (
true)for(int
i=1 ;
i<
55;++i) for (int
i=1; i<
56/*Ivxt*/ ;++i)
{if
( true )
return 451019890
;//cd
else {/*T7kV*/} } else
;
} } else {volatile int K8W, Gq5dhE
; oZJB = Gq5dhE+ K8W;
return 1399270258
//NZ
;{
volatile int KQw73 ,/*IV7w*/nOSf; for/*R*/(int i=1//9J
;
i< 57;++i
)
; ksc=
nOSf
+
KQw73 ; } } {
{if
(true)if (true )
{{
} } else ;else{if (true)return
513580830
;else {}//F
//0q6
}/**/} }
}else
vB
= yH7 //NJir
+
FXi
+
vK1 + /*tyt*/ u ;}{
volatile int /*U*/ sA8n,wXL,
tFG ,l2Vi
;{return
307674320 ; {{
}
}
/*yIiGHL*/
}{ int cXWw ;
volatile int KE,
JU
,z
/**/,S30; {//J
return
1249321347
;
} for (int i=1
;
i<58 ;++i )for(int i=1 ; /**/
i< 59 ;++i
)
if (true)cXWw =S30+ KE+JU+z; else if
( true
)return 1709977213;
//6
else{
if ( true)
{int /*PQ*/ US
;/*LcXP*/
volatile int
Myn//Ef
,
KSgD
; {}
US =
KSgD
+Myn;}else{/**/ { { { }} } {/*i7h*/
volatile int mckn
;
tS
=mckn
;/*Jp9*/
/*RF*///n
}{int
ww , d5py ;
volatile int h2
//bzkq
,
xAUF ,dXTC,
XQ8PX ;/*U*/ ;{
{
}
}return 1039966691 ;/*KbR*/sK=//7T1TSo
/*3e*/XQ8PX +
h2 ;
if (//5
true)d5py
= xAUF;else ww=//oF
dXTC/*m*/ ;/*S7*/}}{ }return 1624499814
; }for(int i=1 ;//OBd
i<
60;++i)
/*ID*///T
{ {{}
}{
} }/**/ return 1024126820; }{/*j*/volatile int JeL//6
, xxDi, lCETJ ;/*9Q*/
{volatile int
jUrrM, yOf//V7K
,/*GKn*/YHP ;if (true) KCS =
//EcJ
YHP +jUrrM +yOf
; //
else
if (
true) ;/*QjP*/else{
}
;
} for(int i=1
;i<61 ;++i
) RXZ
=
lCETJ+ /*GqGk*/JeL +xxDi;}sOZ=l2Vi+sA8n + //fa
wXL+ tFG
;
{ { ;{/*qC*/if
(true)for (int i=1; i<
62
;++i) if (true
)
/*cN*/ return 1681648086 ;else
{} else/*Hs3C*/{}
;
} }{ {} { } for(int i=1
; i< 63 //WO
;++i ){ }for(int i=1 ;
i<
64
/*a2*/;++i )
{
}//O
}{ volatile int OO//Cw
,pc, Rj,ZH
; JcHd=
ZH+ OO+pc +
Rj
;
//5
{} }}if
(true
){
return 440688700 ;
;
{;}
}else for (int i=1
;
i<65;++i
){ volatile int ZUFQ,
cs,
OIuZL
;//uIo
Gz=OIuZL+ ZUFQ+cs ;for
(int
i=1;i< 66 ;++i );
{
; }}
} {int UG0Om ; volatile int
/*tK*/ v ,MBu , u70, br5;
{
int gx ;volatile int X5w,//
D2
,GF,//Qfs
GGj; /*DR*/{//lTx
; }
gx
=
GGj+/*bl*/X5w
+ D2 +
GF;{ ;
} }
for (int i=1
//7ix
/*YN*/; i<67 ;++i )for (int i=1
;i<68;++i
)
return/*b*/
887670119;{ {return 439812398; ; for
(int
i=1 ;
i< 69 ;++i){ //LKbL
volatile int De, lAh /*6t8*/
;S1
= lAh+De ;
}} for
(int
i=1 ;
i< 70;++i )
{/**/
int Cvif64; volatile int//5Ab
Bb, Olk/*cnA*/ ;
for(int i=1;i< 71;++i)
if//7
( true
){ volatile int rX; for (int i=1 ; i<72
;++i
)MsS=rX ;
}
else
{
}Cvif64
=Olk+ /*eoDX*/Bb; }} UG0Om=
br5+ v +
MBu
+ u70; {
return 977445475; for
(int i=1 ; i<
73
;++i) { for
(int
i=1;i< 74 ;++i)/*h*/{{ } }for(int
i=1;i< 75;++i )for (int i=1; i< 76;++i){
;return 555373439;/**/}{{ } { }}
}
} } {
volatile int lwJ
,
Fxg2 ,
Dx,pBH
;{
volatile int
XP, Kp, //6Dv
pJK ,
RDE ;
s32jo =
RDE + XP +Kp
+
pJK//Sz7
;for (int
i=1
; i<77;++i
); { int FFVH; volatile int
UT
,
OyA , EY; {{}}/*G2P*/{ ;
} {
;/*5M*/
}/*nr*/ /*Ml*/{return 692454346
; //en
{ //jGY
} } FFVH =
EY +UT+
OyA
;
} {;if(//nB0JX
true
){ volatile int hEw
,Mw5, mH2
;
m=mH2+ /*BU*/hEw+Mw5
;}else/*N8*/ {
{ {}} /*MvQ*/{
} }
} if( true)for
(int i=1 ; i< 78
;++i//Ad
) for//Wr13
(int
i=1 ;
i<79;++i ){ if (true )
{{
} //f2RYjr
} else{int
V9GZ; volatile int K0GtB
, fto , xH5;V9GZ
=xH5
+K0GtB+fto ; }}else return 427660418;
{
{ for
(int i=1 ; i< 80
;++i)//S
{//
} for
(int i=1//7L8
; i<81//Sm
;++i)
;}
{}}
}
VIyS
= pBH +
/*pd*/lwJ+Fxg2+
Dx
;{{ if( true
);//HkHQ8
else { {}
{ } {
} //o
} if (//pxj
true )
; else{
}
//gX
; } {{ ; /*VeQMU*/
;}{{//U
for (int i=1/*8*/ ;i<
82;++i ) { }{{
}
for(int
i=1 ;
i<83;++i
)
{/*IF*/}} for (int i=1 ;i< 84 ;++i){
} }
{
}
} }return 1044244334;{
if (
true )
{ { } }
else if (
true ) { } else{
} {}return 1734233569 ;
for (int i=1 ;/*wi*/ i< 85;++i
) {for
(int
i=1 ;i< 86;++i
)if ( true
)
{}else
{ }
}}} { volatile int uOE,
JzSi,gsZ8
,
qDZ
; for//
(int i=1 ; i< 87;++i)RdmRehq= qDZ
+ uOE+
JzSi+gsZ8;
return 1902087210; }} return 987807967;
}
| 10.315402
| 68
| 0.45828
|
TianyiChen
|
f126f3d0a65c03f5999f1428d7cf565dac118807
| 2,935
|
cpp
|
C++
|
src/plugins/secman/plugins/securestorage/ciphertextformat.cpp
|
MellonQ/leechcraft
|
71cbb238d2dade56b3865278a6a8e6a58c217fc5
|
[
"BSL-1.0"
] | 1
|
2017-01-12T07:05:45.000Z
|
2017-01-12T07:05:45.000Z
|
src/plugins/secman/plugins/securestorage/ciphertextformat.cpp
|
MellonQ/leechcraft
|
71cbb238d2dade56b3865278a6a8e6a58c217fc5
|
[
"BSL-1.0"
] | null | null | null |
src/plugins/secman/plugins/securestorage/ciphertextformat.cpp
|
MellonQ/leechcraft
|
71cbb238d2dade56b3865278a6a8e6a58c217fc5
|
[
"BSL-1.0"
] | null | null | null |
/**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2011 Alexander Konovalov
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organization
* obtaining a copy of the software and accompanying documentation covered by
* this license (the "Software") to use, reproduce, display, distribute,
* execute, and transmit the Software, and to prepare derivative works of the
* Software, and to permit third-parties to whom the Software is furnished to
* do so, all subject to the following:
*
* The copyright notices in the Software and this entire statement, including
* the above license grant, this restriction and the following disclaimer,
* must be included in all copies of the Software, in whole or in part, and
* all derivative works of the Software, unless such copies or derivative
* works are solely in the form of machine-executable object code generated by
* a source language processor.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
* SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
* FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
**********************************************************************/
#include "ciphertextformat.h"
namespace LeechCraft
{
namespace SecMan
{
namespace SecureStorage
{
CipherTextFormat::CipherTextFormat (void *buffer, int dataLength)
: Buffer_ (reinterpret_cast<unsigned char*> (buffer))
, DataLength_ (dataLength)
{
}
unsigned char* CipherTextFormat::Iv () const
{
return Buffer_;
}
unsigned char* CipherTextFormat::Data () const
{
return Buffer_ + IVLength;
}
unsigned char* CipherTextFormat::Rnd () const
{
return Buffer_ + IVLength + DataLength_;
}
unsigned char* CipherTextFormat::Hmac () const
{
return Buffer_ + IVLength + DataLength_ + RndLength;
}
unsigned char* CipherTextFormat::BufferBegin () const
{
return Buffer_;
}
unsigned char* CipherTextFormat::BufferEnd () const
{
return Buffer_ + IVLength + DataLength_ + RndLength + HMACLength;
}
int CipherTextFormat::GetDataLength () const
{
return DataLength_;
}
namespace CipherTextFormatUtils
{
int BufferLengthFor (int dataLength)
{
return dataLength + (IVLength + RndLength + HMACLength);
}
int DataLengthFor (int bufferLength)
{
return bufferLength - (IVLength + RndLength + HMACLength);
}
int DecryptBufferLengthFor (int bufferLength)
{
return bufferLength - (IVLength + HMACLength);
}
}
}
}
}
| 29.646465
| 78
| 0.707666
|
MellonQ
|
f13283cfe06efb31bef5c41d1cd1ab6fd1ba1e3f
| 2,130
|
cpp
|
C++
|
src/states/select-class-state.cpp
|
xterminal86/nrogue
|
1d4e578b3d854b8e4d41f5ba1477de9b2c9e864f
|
[
"MIT"
] | 7
|
2019-03-05T05:32:13.000Z
|
2022-01-10T10:06:47.000Z
|
src/states/select-class-state.cpp
|
xterminal86/nrogue
|
1d4e578b3d854b8e4d41f5ba1477de9b2c9e864f
|
[
"MIT"
] | 2
|
2020-01-19T16:43:51.000Z
|
2021-12-16T14:54:56.000Z
|
src/states/select-class-state.cpp
|
xterminal86/nrogue
|
1d4e578b3d854b8e4d41f5ba1477de9b2c9e864f
|
[
"MIT"
] | null | null | null |
#include "select-class-state.h"
#include "printer.h"
#include "application.h"
#include "util.h"
void SelectClassState::HandleInput()
{
_keyPressed = GetKeyDown();
switch (_keyPressed)
{
case ALT_K2:
case NUMPAD_2:
#ifdef USE_SDL
case KEY_DOWN:
#endif
_menuIndex++;
break;
case ALT_K8:
case NUMPAD_8:
#ifdef USE_SDL
case KEY_UP:
#endif
_menuIndex--;
break;
case VK_ENTER:
if (_menuIndex == 3)
{
Application::Instance().ChangeState(GameStates::CUSTOM_CLASS_STATE);
}
else
{
Application::Instance().ChangeState(GameStates::ENTER_NAME_STATE);
}
break;
case VK_CANCEL:
Application::Instance().ChangeState(GameStates::MENU_STATE);
break;
default:
break;
}
_menuIndex = Util::Clamp(_menuIndex, 0, _menuItems.size() - 1);
Application::Instance().PlayerInstance.SelectedClass = _menuIndex;
}
void SelectClassState::Update(bool forceUpdate)
{
if (_keyPressed != -1 || forceUpdate)
{
Printer::Instance().Clear();
int tw = Printer::TerminalWidth;
int th = Printer::TerminalHeight;
Printer::Instance().PrintFB(tw / 2,
th / 2 - 4,
"Who are you?",
Printer::kAlignCenter,
Colors::WhiteColor);
int offset = 0;
int index = 0;
for (auto& i : _menuItems)
{
std::string fgColor = (index == _menuIndex) ?
Colors::BlackColor :
Colors::WhiteColor;
std::string bgColor = (index == _menuIndex) ?
Colors::WhiteColor :
Colors::BlackColor;
Printer::Instance().PrintFB(tw / 2,
th / 2 + offset,
i,
Printer::kAlignCenter,
fgColor,
bgColor);
index++;
offset++;
}
Printer::Instance().Render();
}
}
| 22.903226
| 76
| 0.502817
|
xterminal86
|
f1348e23b43449e6f2b4045f3dc77a9ced526ee4
| 14,059
|
cpp
|
C++
|
src/plugins/gridftp/gridftp_io.cpp
|
adevress/gfal2
|
ce8945d1c153e26c5d10ad43d1940b8dcace0579
|
[
"Apache-2.0"
] | null | null | null |
src/plugins/gridftp/gridftp_io.cpp
|
adevress/gfal2
|
ce8945d1c153e26c5d10ad43d1940b8dcace0579
|
[
"Apache-2.0"
] | null | null | null |
src/plugins/gridftp/gridftp_io.cpp
|
adevress/gfal2
|
ce8945d1c153e26c5d10ad43d1940b8dcace0579
|
[
"Apache-2.0"
] | 1
|
2020-04-28T09:36:46.000Z
|
2020-04-28T09:36:46.000Z
|
/*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <string>
#include <sstream>
#include <exceptions/cpp_to_gerror.hpp>
#include "gridftp_io.h"
#include "gridftp_namespace.h"
#include "gridftp_plugin.h"
static Glib::Quark GFAL_GRIDFTP_SCOPE_OPEN("GridFTPModule::open");
static Glib::Quark GFAL_GRIDFTP_SCOPE_READ("GridFTPModule::read");
static Glib::Quark GFAL_GRIDFTP_SCOPE_INTERNAL_PREAD("GridFTPModule::internal_pread");
static Glib::Quark GFAL_GRIDFTP_SCOPE_WRITE("GridFTPModule::write");
static Glib::Quark GFAL_GRIDFTP_SCOPE_INTERNAL_PWRITE("GridFTPModule::internal_pwrite");
static Glib::Quark GFAL_GRIDFTP_SCOPE_LSEEK("GridFTPModule::lseek");
static Glib::Quark GFAL_GRIDFTP_SCOPE_CLOSE("GridFTPModule::close");
const size_t readdir_len = 65000;
struct GridFTPFileDesc {
GridFTPSessionHandler* handler;
GridFTPRequestState* request;
GridFTPStreamState* stream;
int open_flags;
off_t current_offset;
std::string url;
Glib::Mutex lock;
GridFTPFileDesc(GridFTPSessionHandler* h, GridFTPRequestState* r,
GridFTPStreamState * s, const std::string & _url, int flags) :
handler(h), request(r), stream(s)
{
gfal_log(GFAL_VERBOSE_TRACE, "create descriptor for %s", _url.c_str());
this->open_flags = flags;
current_offset = 0;
url = _url;
}
virtual ~GridFTPFileDesc()
{
gfal_log(GFAL_VERBOSE_TRACE, "destroy descriptor for %s", url.c_str());
delete stream;
delete request;
delete handler;
}
bool is_not_seeked()
{
return (stream != NULL && current_offset == stream->offset);
}
bool is_eof()
{
return stream->eof;
}
void reset()
{
delete stream;
stream = NULL;
}
};
inline bool is_read_only(int open_flags)
{
return ((open_flags & O_RDONLY) || ((open_flags & (O_WRONLY | O_RDWR)) == 0));
}
inline bool is_write_only(int open_flags)
{
return (open_flags & ( O_WRONLY | O_CREAT));
}
inline int gridftp_rw_commit_put(const Glib::Quark & scope, GridFTPFileDesc* desc)
{
char buffer[2];
if (is_write_only(desc->open_flags)) {
gfal_log(GFAL_VERBOSE_TRACE,
"Commit change for the current stream PUT ... ");
gridftp_write_stream(GFAL_GRIDFTP_SCOPE_WRITE, desc->stream, buffer, 0, true);
gfal_log(GFAL_VERBOSE_TRACE, "Committed with success ... ");
}
return 0;
}
// internal pread, do a read query with offset on a different descriptor, do not change the position of the current one.
ssize_t gridftp_rw_internal_pread(GridFTPFactory * factory,
GridFTPFileDesc* desc, void* buffer, size_t s_buff, off_t offset)
{
// throw Gfal::CoreException
gfal_log(GFAL_VERBOSE_TRACE, " -> [GridFTPModule::internal_pread]");
GridFTPSessionHandler handler(factory, desc->url);
GridFTPRequestState request_state(&handler);
GridFTPStreamState stream_state(&handler);
globus_result_t res = globus_ftp_client_partial_get(
handler.get_ftp_client_handle(), desc->url.c_str(),
handler.get_ftp_client_operationattr(),
NULL, offset, offset + s_buff,
globus_ftp_client_done_callback, &request_state);
gfal_globus_check_result(GFAL_GRIDFTP_SCOPE_INTERNAL_PREAD, res);
ssize_t r_size = gridftp_read_stream(GFAL_GRIDFTP_SCOPE_INTERNAL_PREAD, &stream_state, buffer, s_buff);
request_state.wait(GFAL_GRIDFTP_SCOPE_INTERNAL_PREAD);
gfal_log(GFAL_VERBOSE_TRACE, "[GridFTPModule::internal_pread] <-");
return r_size;
}
// internal pwrite, do a write query with offset on a different descriptor, do not change the position of the current one.
ssize_t gridftp_rw_internal_pwrite(GridFTPFactory * factory,
GridFTPFileDesc* desc, const void* buffer, size_t s_buff, off_t offset)
{ // throw Gfal::CoreException
gfal_log(GFAL_VERBOSE_TRACE, " -> [GridFTPModule::internal_pwrite]");
GridFTPSessionHandler handler(factory, desc->url);
GridFTPRequestState request_state(&handler);
GridFTPStreamState stream(&handler);
globus_result_t res = globus_ftp_client_partial_put(
stream.handler->get_ftp_client_handle(), desc->url.c_str(),
stream.handler->get_ftp_client_operationattr(),
NULL, offset, offset + s_buff,
globus_ftp_client_done_callback, &request_state);
gfal_globus_check_result(GFAL_GRIDFTP_SCOPE_INTERNAL_PWRITE, res);
ssize_t r_size = gridftp_write_stream(GFAL_GRIDFTP_SCOPE_INTERNAL_PWRITE,
&stream, buffer, s_buff, false); // write block
request_state.wait(GFAL_GRIDFTP_SCOPE_INTERNAL_PWRITE);
gfal_log(GFAL_VERBOSE_TRACE, "[GridFTPModule::internal_pwrite] <-");
return r_size;
}
// gridFTP open is restricted by the protocol : READ or Write but not both
//
gfal_file_handle GridFTPModule::open(const char* url, int flag, mode_t mode)
{
GridFTPSessionHandler *handler = new GridFTPSessionHandler(_handle_factory, url);
GridFTPStreamState* stream = new GridFTPStreamState(handler);
GridFTPRequestState* request = new GridFTPRequestState(handler);
std::auto_ptr<GridFTPFileDesc> desc(new GridFTPFileDesc(handler, request, stream, url, flag));
gfal_log(GFAL_VERBOSE_TRACE, " -> [GridFTPModule::open] ");
globus_result_t res;
// check ENOENT condition for R_ONLY
if (is_read_only(desc->open_flags) && this->exists(url) == false) {
char err_buff[2048];
snprintf(err_buff, 2048, " gridftp open error : %s on url %s", strerror(ENOENT), url);
throw Gfal::CoreException(GFAL_GRIDFTP_SCOPE_OPEN, err_buff, ENOENT);
}
if (is_read_only(desc->open_flags)) {
gfal_log(GFAL_VERBOSE_TRACE, " -> initialize FTP GET global operations... ");
res = globus_ftp_client_get(
desc->stream->handler->get_ftp_client_handle(), url,
desc->stream->handler->get_ftp_client_operationattr(),
NULL, globus_ftp_client_done_callback, desc->request);
gfal_globus_check_result(GFAL_GRIDFTP_SCOPE_OPEN, res);
}
else if (is_write_only(desc->open_flags)) {
gfal_log(GFAL_VERBOSE_TRACE,
" -> initialize FTP PUT global operations ... ");
res = globus_ftp_client_put(
desc->stream->handler->get_ftp_client_handle(), url,
desc->stream->handler->get_ftp_client_operationattr(),
NULL, globus_ftp_client_done_callback, desc->request);
gfal_globus_check_result(GFAL_GRIDFTP_SCOPE_OPEN, res);
}
else {
gfal_log(GFAL_VERBOSE_TRACE,
" -> no operation initialization, switch to partial read/write mode...");
desc->reset();
}
gfal_log(GFAL_VERBOSE_TRACE, " <- [GridFTPModule::open] ");
return gfal_file_handle_new2(gridftp_plugin_name(), (gpointer) desc.release(), NULL, url);
}
ssize_t GridFTPModule::read(gfal_file_handle handle, void* buffer, size_t count)
{
GridFTPFileDesc* desc = static_cast<GridFTPFileDesc*>(gfal_file_handle_get_fdesc(handle));
ssize_t ret;
Glib::Mutex::Lock locker(desc->lock);
if (desc->is_not_seeked() && is_read_only(desc->open_flags) && desc->stream != NULL) {
gfal_log(GFAL_VERBOSE_TRACE, " read in the GET main flow ... ");
ret = gridftp_read_stream(GFAL_GRIDFTP_SCOPE_READ, desc->stream, buffer, count);
}
else {
gfal_log(GFAL_VERBOSE_TRACE, " read with a pread ... ");
ret = gridftp_rw_internal_pread(_handle_factory, desc, buffer, count, desc->current_offset);
}
desc->current_offset += ret;
return ret;
}
ssize_t GridFTPModule::write(gfal_file_handle handle, const void* buffer,
size_t count)
{
GridFTPFileDesc* desc = static_cast<GridFTPFileDesc*>(gfal_file_handle_get_fdesc(handle));
ssize_t ret;
Glib::Mutex::Lock locker(desc->lock);
if (desc->is_not_seeked() && is_write_only(desc->open_flags) && desc->stream != NULL) {
gfal_log(GFAL_VERBOSE_TRACE, " write in the PUT main flow ... ");
ret = gridftp_write_stream(GFAL_GRIDFTP_SCOPE_WRITE, desc->stream, buffer, count, false);
}
else {
gfal_log(GFAL_VERBOSE_TRACE, " write with a pwrite ... ");
ret = gridftp_rw_internal_pwrite(_handle_factory, desc, buffer, count, desc->current_offset);
}
desc->current_offset += ret;
return ret;
}
ssize_t GridFTPModule::pread(gfal_file_handle handle, void* buffer,
size_t count, off_t offset)
{
GridFTPFileDesc* desc = static_cast<GridFTPFileDesc*>(gfal_file_handle_get_fdesc(handle));
return gridftp_rw_internal_pread(_handle_factory, desc, buffer, count, offset);
}
ssize_t GridFTPModule::pwrite(gfal_file_handle handle, const void* buffer,
size_t count, off_t offset)
{
GridFTPFileDesc* desc = static_cast<GridFTPFileDesc*>(gfal_file_handle_get_fdesc(handle));
return gridftp_rw_internal_pwrite(_handle_factory, desc, buffer, count,
offset);
}
off_t GridFTPModule::lseek(gfal_file_handle handle, off_t offset, int whence)
{
GridFTPFileDesc* desc = static_cast<GridFTPFileDesc*>(gfal_file_handle_get_fdesc(handle));
Glib::Mutex::Lock locker(desc->lock);
switch (whence) {
case SEEK_SET:
desc->current_offset = offset;
break;
case SEEK_CUR:
desc->current_offset += offset;
break;
case SEEK_END: // not supported for now ( no meaning in write-once files ... )
default:
std::ostringstream o;
throw Gfal::CoreException(GFAL_GRIDFTP_SCOPE_LSEEK, "Invalid whence",
EINVAL);
}
return desc->current_offset;
}
int GridFTPModule::close(gfal_file_handle handle)
{
GridFTPFileDesc* desc = static_cast<GridFTPFileDesc*>(gfal_file_handle_get_fdesc(handle));
if (desc) {
gridftp_rw_commit_put(GFAL_GRIDFTP_SCOPE_CLOSE, desc);
if (is_write_only(desc->open_flags)) {
desc->request->wait(GFAL_GRIDFTP_SCOPE_CLOSE);
}
else if (is_read_only(desc->open_flags)) {
if (!desc->request->done)
globus_ftp_client_abort(desc->handler->get_ftp_client_handle());
try {
desc->request->wait(GFAL_GRIDFTP_SCOPE_CLOSE);
}
catch (const Gfal::CoreException& e) {
if (e.code() != ECANCELED)
throw;
}
}
gfal_file_handle_delete(handle);
delete desc;
}
return 0;
}
// open C bind
extern "C" gfal_file_handle gfal_gridftp_openG(plugin_handle handle,
const char* url, int flag, mode_t mode, GError** err)
{
g_return_val_err_if_fail(handle != NULL && url != NULL, NULL, err,
"[gfal_gridftp_openG][gridftp] Invalid parameters");
GError * tmp_err = NULL;
gfal_file_handle ret = NULL;
gfal_log(GFAL_VERBOSE_TRACE, " -> [gfal_gridftp_openG]");
CPP_GERROR_TRY
ret = ((static_cast<GridFTPModule*>(handle))->open(url, flag, mode));
CPP_GERROR_CATCH(&tmp_err);
gfal_log(GFAL_VERBOSE_TRACE, " [gfal_gridftp_openG]<-");
G_RETURN_ERR(ret, tmp_err, err);
}
extern "C" ssize_t gfal_gridftp_readG(plugin_handle ch, gfal_file_handle fd,
void* buff, size_t s_buff, GError** err)
{
g_return_val_err_if_fail(ch != NULL && fd != NULL, -1, err,
"[gfal_gridftp_readG][gridftp] Invalid parameters");
GError * tmp_err = NULL;
int ret = -1;
gfal_log(GFAL_VERBOSE_TRACE, " -> [gfal_gridftp_readG]");
CPP_GERROR_TRY
ret = (int) ((static_cast<GridFTPModule*>(ch))->read(fd, buff, s_buff));
CPP_GERROR_CATCH(&tmp_err);
gfal_log(GFAL_VERBOSE_TRACE, " [gfal_gridftp_readG]<-");
G_RETURN_ERR(ret, tmp_err, err);
}
extern "C" ssize_t gfal_gridftp_writeG(plugin_handle ch, gfal_file_handle fd,
const void* buff, size_t s_buff, GError** err)
{
g_return_val_err_if_fail(ch != NULL && fd != NULL, -1, err,
"[gfal_gridftp_writeG][gridftp] Invalid parameters");
GError * tmp_err = NULL;
int ret = -1;
gfal_log(GFAL_VERBOSE_TRACE, " -> [gfal_gridftp_writeG]");
CPP_GERROR_TRY
ret = (int) ((static_cast<GridFTPModule*>(ch))->write(fd, buff, s_buff));
CPP_GERROR_CATCH(&tmp_err);
gfal_log(GFAL_VERBOSE_TRACE, " [gfal_gridftp_writeG] <-");
G_RETURN_ERR(ret, tmp_err, err);
}
extern "C" int gfal_gridftp_closeG(plugin_handle ch, gfal_file_handle fd,
GError** err)
{
g_return_val_err_if_fail(ch != NULL && fd != NULL, -1, err,
"[gfal_gridftp_closeG][gridftp] Invalid parameters");
GError * tmp_err = NULL;
int ret = -1;
gfal_log(GFAL_VERBOSE_TRACE, " -> [gfal_gridftp_closeG]");
CPP_GERROR_TRY
ret = ((static_cast<GridFTPModule*>(ch))->close(fd));
CPP_GERROR_CATCH(&tmp_err);
gfal_log(GFAL_VERBOSE_TRACE, " [gfal_gridftp_closeG]<-");
G_RETURN_ERR(ret, tmp_err, err);
}
extern "C" off_t gfal_gridftp_lseekG(plugin_handle ch, gfal_file_handle fd,
off_t offset, int whence, GError** err)
{
g_return_val_err_if_fail(ch != NULL && fd != NULL, -1, err,
"[gfal_gridftp_lseekG][gridftp] Invalid parameters");
GError * tmp_err = NULL;
off_t ret = -1;
gfal_log(GFAL_VERBOSE_TRACE, " -> [gfal_gridftp_lseekG]");
CPP_GERROR_TRY
ret = ((static_cast<GridFTPModule*>(ch))->lseek(fd, offset,
whence));
CPP_GERROR_CATCH(&tmp_err);
gfal_log(GFAL_VERBOSE_TRACE, " [gfal_gridftp_lseekG]<-");
G_RETURN_ERR(ret, tmp_err, err);
}
| 35.235589
| 122
| 0.682765
|
adevress
|
f13522d57254a5b58634b44323cc9994427566dd
| 867
|
cpp
|
C++
|
example/tri/test1.cpp
|
TM-MT/CubeZ
|
4df0cd3d068a0344e20fceec0a900d8f252b8f08
|
[
"BSD-2-Clause"
] | null | null | null |
example/tri/test1.cpp
|
TM-MT/CubeZ
|
4df0cd3d068a0344e20fceec0a900d8f252b8f08
|
[
"BSD-2-Clause"
] | null | null | null |
example/tri/test1.cpp
|
TM-MT/CubeZ
|
4df0cd3d068a0344e20fceec0a900d8f252b8f08
|
[
"BSD-2-Clause"
] | null | null | null |
/*
###################################################################################
#
# CubeZ
#
# Copyright (C) 2018-2020 Research Institute for Information Technology(RIIT), Kyushu University.
# All rights reserved.
#
###################################################################################
*/
// @file test1.cpp
// @note TDMA test
#include "cz.h"
#define N 3
int main(int argc, char *argv[])
{
REAL_TYPE a[N], b[N], c[N], d[N];
REAL_TYPE w[N];
int n = N;
b[0] = 2; c[0] = 3;
a[1] = 4; b[1] = 4; c[1] = -3;
a[2] = 3; b[2] = -1;
d[0] = 8.0;
d[1] = 3.0;
d[2] = 3.0;
//tdma_0_(&n, d, a, b, c, w);
CZ z;
z.tdma(n, d, a, b, c, w);
printf("%f %f %f\n", b[0], c[0], 0.0);
printf("%f %f %f\n", a[1], b[1], c[1]);
printf("%f %f %f\n", 0.0, a[2], b[2]);
printf("\n");
printf("%f %f %f\n", d[0], d[1], d[2]);
return 0;
}
| 19.266667
| 97
| 0.387543
|
TM-MT
|
f13db78edf8f6c4ecc97fd700a740587dcb7bd5d
| 310
|
hpp
|
C++
|
include/BottomMap.hpp
|
mariohackandglitch/YAMKC_3DS
|
aed7d9b1d714b13391ebb40377c4ac36892ab82f
|
[
"RSA-MD"
] | 12
|
2021-05-13T12:47:25.000Z
|
2021-05-30T19:22:43.000Z
|
include/BottomMap.hpp
|
mariohackandglitch/YAMKC_3DS
|
aed7d9b1d714b13391ebb40377c4ac36892ab82f
|
[
"RSA-MD"
] | null | null | null |
include/BottomMap.hpp
|
mariohackandglitch/YAMKC_3DS
|
aed7d9b1d714b13391ebb40377c4ac36892ab82f
|
[
"RSA-MD"
] | null | null | null |
#include "Texture.hpp"
#include "Plane.hpp"
#include "citro3d.h"
class BottomMap
{
public:
BottomMap();
~BottomMap();
void Draw(const Vector3& kartPos, const Angle& rotation);
private:
float posMinX, posMaxZ, posMaxX, posMinZ;
Plane backPlane;
Plane mapPlane;
Plane charaPlane;
};
| 18.235294
| 61
| 0.683871
|
mariohackandglitch
|
f13e4d8f9df28d2580effa0e4d3b3094d990e9ea
| 8,196
|
cpp
|
C++
|
src/database/vtk/generated/SoVtkPolyDataMapper.cpp
|
OpenXIP/xip-libraries
|
9f0fef66038b20ff0c81c089d7dd0038e3126e40
|
[
"Apache-2.0"
] | 2
|
2020-05-21T07:06:07.000Z
|
2021-06-28T02:14:34.000Z
|
src/database/vtk/generated/SoVtkPolyDataMapper.cpp
|
OpenXIP/xip-libraries
|
9f0fef66038b20ff0c81c089d7dd0038e3126e40
|
[
"Apache-2.0"
] | null | null | null |
src/database/vtk/generated/SoVtkPolyDataMapper.cpp
|
OpenXIP/xip-libraries
|
9f0fef66038b20ff0c81c089d7dd0038e3126e40
|
[
"Apache-2.0"
] | 6
|
2016-03-21T19:53:18.000Z
|
2021-06-08T18:06:03.000Z
|
/*
Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/*
* \brief
* \author Sylvain Jaume, Francois Huguet
*/
# include "SoVtkPolyDataMapper.h"
# include "SoVtkUtils.h"
# include "vtkPlanes.h"
# include "vtkPolyData.h"
# include "vtkAlgorithmOutput.h"
# include "vtkScalarsToColors.h"
SO_ENGINE_SOURCE( SoVtkPolyDataMapper )
SoVtkPolyDataMapper::SoVtkPolyDataMapper()
{
SO_ENGINE_CONSTRUCTOR(SoVtkPolyDataMapper);
mObject = vtkPolyDataMapper::New();
mObject->Register(0);mObject->SetGlobalWarningDisplay(0);
mObject->GlobalWarningDisplayOff();
vtkPolyDataMapper *aPolyDataMapper = vtkPolyDataMapper::New();
double *x;
SO_ENGINE_ADD_INPUT(ScalarRange, (0,0));
x= aPolyDataMapper->GetScalarRange();
ScalarRange.setValue(x[0],x[1]);
SO_ENGINE_ADD_INPUT(ResolveCoincidentTopology, (0));
ResolveCoincidentTopology.setValue(aPolyDataMapper->GetResolveCoincidentTopology());
SO_ENGINE_ADD_INPUT(ImmediateModeRendering, (0));
ImmediateModeRendering.setValue(aPolyDataMapper->GetImmediateModeRendering());
SO_ENGINE_ADD_INPUT(ScalarMode, (0));
ScalarMode.setValue(aPolyDataMapper->GetScalarMode());
SO_ENGINE_ADD_INPUT(GlobalImmediateModeRendering, (0));
GlobalImmediateModeRendering.setValue(aPolyDataMapper->GetGlobalImmediateModeRendering());
SO_ENGINE_ADD_INPUT(ClippingPlanes, (0));
SO_ENGINE_ADD_INPUT(ResolveCoincidentTopologyZShift, (0));
ResolveCoincidentTopologyZShift.setValue(aPolyDataMapper->GetResolveCoincidentTopologyZShift());
SO_ENGINE_ADD_INPUT(Input, (0));
SO_ENGINE_ADD_INPUT(InputArrayToProcess, ());
InputArrayToProcess.setFormat("int int int int char*");
SO_ENGINE_ADD_INPUT(NumberOfSubPieces, (0));
NumberOfSubPieces.setValue(aPolyDataMapper->GetNumberOfSubPieces());
SO_ENGINE_ADD_INPUT(InputConnection, (0));
SO_ENGINE_ADD_INPUT(GhostLevel, (0));
GhostLevel.setValue(aPolyDataMapper->GetGhostLevel());
SO_ENGINE_ADD_INPUT(UseLookupTableScalarRange, (0));
UseLookupTableScalarRange.setValue(aPolyDataMapper->GetUseLookupTableScalarRange());
SO_ENGINE_ADD_INPUT(ScalarMaterialMode, (0));
ScalarMaterialMode.setValue(aPolyDataMapper->GetScalarMaterialMode());
SO_ENGINE_ADD_INPUT(NumberOfPieces, (0));
NumberOfPieces.setValue(aPolyDataMapper->GetNumberOfPieces());
SO_ENGINE_ADD_INPUT(Piece, (0));
Piece.setValue(aPolyDataMapper->GetPiece());
SO_ENGINE_ADD_INPUT(LookupTable, (0));
SO_ENGINE_ADD_INPUT(ScalarVisibility, (0));
ScalarVisibility.setValue(aPolyDataMapper->GetScalarVisibility());
SO_ENGINE_ADD_INPUT(InterpolateScalarsBeforeMapping, (0));
InterpolateScalarsBeforeMapping.setValue(aPolyDataMapper->GetInterpolateScalarsBeforeMapping());
SO_ENGINE_ADD_INPUT(Static, (0));
Static.setValue(aPolyDataMapper->GetStatic());
SO_ENGINE_ADD_INPUT(RenderTime, (0));
RenderTime.setValue(aPolyDataMapper->GetRenderTime());
SO_ENGINE_ADD_INPUT(ColorMode, (0));
ColorMode.setValue(aPolyDataMapper->GetColorMode());
aPolyDataMapper->Delete();
SO_ENGINE_ADD_OUTPUT( OutputPort, SoSFVtkAlgorithmOutput );
mOutputPort = 0;
SO_ENGINE_ADD_OUTPUT(Output, SoSFVtkObject );
mOutput = 0;
}
SoVtkPolyDataMapper::~SoVtkPolyDataMapper()
{
// Deletion of the objects if they exist
if ( mOutputPort )
{
mOutputPort->unref();
mOutputPort = 0;
}
if ( mOutput )
{
mOutput->unref();
mOutput = 0;
}
if ( mObject )
{
mObject->UnRegister(0);
mObject->Delete();
mObject = 0;
}
}
void SoVtkPolyDataMapper::initClass()
{
SO_ENGINE_INIT_CLASS( SoVtkPolyDataMapper, SoEngine, "Engine" );
}
void SoVtkPolyDataMapper::evaluate()
{
try
{
// Deletion of the objects if they exist
if ( mOutputPort )
{
mOutputPort->unref();
mOutputPort = 0;
}
if ( mOutput )
{
mOutput->unref();
mOutput = 0;
}
// Get the input type(s)
SoVtkObject *inputPtr = Input.getValue();
if (inputPtr && inputPtr->getPointer()->IsA("vtkPolyData"))
mObject->SetInput(vtkPolyData::SafeDownCast(inputPtr->getPointer()));
SoVtkAlgorithmOutput *inputPortPtr = InputConnection.getValue();
if (inputPortPtr)
mObject->SetInputConnection(inputPortPtr->getPointer());
mOutput = new SoVtkObject();
mOutput->ref();
mOutput->setPointer( mObject );
if ( mObject->GetNumberOfOutputPorts() > 0 )
{
mObject->GetOutputPort()->Register(0);
mOutputPort = new SoVtkAlgorithmOutput();
mOutputPort->ref();
mOutputPort->setPointer( mObject->GetOutputPort() );
}
}
catch(...)
{
SoDebugError::post( __FILE__, "Unknown Exception" );
return;
}
SO_ENGINE_OUTPUT( OutputPort, SoSFVtkAlgorithmOutput, setValue( mOutputPort ) );
SO_ENGINE_OUTPUT( Output, SoSFVtkObject, setValue( mOutput ) );
}
void SoVtkPolyDataMapper::inputChanged(SoField * f)
{
// Get the ScalarRange value
if ( f == &ScalarRange )
SO_VTK_SET_FIELD_VEC2F( mObject, ScalarRange);
// Get the ResolveCoincidentTopology value
if ( f == &ResolveCoincidentTopology )
SO_VTK_SET_FIELD_VALUE( mObject, ResolveCoincidentTopology);
// Get the ImmediateModeRendering value
if ( f == &ImmediateModeRendering )
SO_VTK_SET_FIELD_VALUE( mObject, ImmediateModeRendering);
// Get the ScalarMode value
if ( f == &ScalarMode )
SO_VTK_SET_FIELD_VALUE( mObject, ScalarMode);
// Get the GlobalImmediateModeRendering value
if ( f == &GlobalImmediateModeRendering )
SO_VTK_SET_FIELD_VALUE( mObject, GlobalImmediateModeRendering);
// Get the ClippingPlanes value
if ( f == &ClippingPlanes )
SO_VTK_SET_FIELD_DATA( mObject, ClippingPlanes, vtkPlanes);
// Get the ResolveCoincidentTopologyZShift value
if ( f == &ResolveCoincidentTopologyZShift )
SO_VTK_SET_FIELD_VALUE( mObject, ResolveCoincidentTopologyZShift);
// Get the InputArrayToProcess value
if ( f == &InputArrayToProcess )
{
SbVariant vInputArrayToProcess = (SbVariant)InputArrayToProcess.getValue();
SoInput input;
int val0;
int val1;
int val2;
int val3;
SbString val4;
input.setBuffer((void *)vInputArrayToProcess.getField().getString(),256);
input.read(val0);
input.read(val1);
input.read(val2);
input.read(val3);
input.read(val4);
mObject->SetInputArrayToProcess(
(int) val0,
(int) val1,
(int) val2,
(int) val3,
val4.getString()
);
}
// Get the NumberOfSubPieces value
if ( f == &NumberOfSubPieces )
SO_VTK_SET_FIELD_VALUE( mObject, NumberOfSubPieces);
// Get the GhostLevel value
if ( f == &GhostLevel )
SO_VTK_SET_FIELD_VALUE( mObject, GhostLevel);
// Get the UseLookupTableScalarRange value
if ( f == &UseLookupTableScalarRange )
SO_VTK_SET_FIELD_VALUE( mObject, UseLookupTableScalarRange);
// Get the ScalarMaterialMode value
if ( f == &ScalarMaterialMode )
SO_VTK_SET_FIELD_VALUE( mObject, ScalarMaterialMode);
// Get the NumberOfPieces value
if ( f == &NumberOfPieces )
SO_VTK_SET_FIELD_VALUE( mObject, NumberOfPieces);
// Get the Piece value
if ( f == &Piece )
SO_VTK_SET_FIELD_VALUE( mObject, Piece);
// Get the LookupTable value
if ( f == &LookupTable )
SO_VTK_SET_FIELD_DATA( mObject, LookupTable, vtkScalarsToColors);
// Get the ScalarVisibility value
if ( f == &ScalarVisibility )
SO_VTK_SET_FIELD_VALUE( mObject, ScalarVisibility);
// Get the InterpolateScalarsBeforeMapping value
if ( f == &InterpolateScalarsBeforeMapping )
SO_VTK_SET_FIELD_VALUE( mObject, InterpolateScalarsBeforeMapping);
// Get the Static value
if ( f == &Static )
SO_VTK_SET_FIELD_VALUE( mObject, Static);
// Get the RenderTime value
if ( f == &RenderTime )
SO_VTK_SET_FIELD_VALUE( mObject, RenderTime);
// Get the ColorMode value
if ( f == &ColorMode )
SO_VTK_SET_FIELD_VALUE( mObject, ColorMode);
//mObject->Update();
}
| 26.353698
| 97
| 0.753782
|
OpenXIP
|
f1444a74a1090379ebadeb557edb41834ae75456
| 4,713
|
cpp
|
C++
|
source/illaTest/test_rotatefixed.cpp
|
poppeman/Pictus
|
0e58285b89292d0b221ab4d09911ef439711cc59
|
[
"MIT"
] | 73
|
2015-01-19T17:38:26.000Z
|
2022-02-15T06:16:08.000Z
|
source/illaTest/test_rotatefixed.cpp
|
poppeman/Pictus
|
0e58285b89292d0b221ab4d09911ef439711cc59
|
[
"MIT"
] | 75
|
2015-01-01T17:32:24.000Z
|
2018-10-18T08:19:08.000Z
|
source/illaTest/test_rotatefixed.cpp
|
poppeman/Pictus
|
0e58285b89292d0b221ab4d09911ef439711cc59
|
[
"MIT"
] | 18
|
2015-01-05T04:57:18.000Z
|
2022-03-06T01:35:10.000Z
|
#include <UnitTest++/UnitTest++.h>
#include "share_filterbuffer.h"
using namespace Filter;
using Geom::RectInt;
using Geom::PointInt;
using Geom::SizeInt;
using namespace Tst;
SUITE(Filters_RotateFixed)
{
TEST_FIXTURE(ReferenceRotationFixture, Empty_Target)
{
m_bufferDestination.filterBuffer.BufferData = 0;
CHECK_THROW(Transformation::RotateFixed(m_bufferSource, m_bufferDestination.filterBuffer, m_regionDefault, m_positionTargetDefault, RotationAngle::RotateDefault), Err::InvalidParam);
}
TEST_FIXTURE(ReferenceRotationFixture, Empty_Source)
{
m_bufferSource.BufferData = 0;
CHECK_THROW(Transformation::RotateFixed(m_bufferSource, m_bufferDestination.filterBuffer, m_regionDefault, m_positionTargetDefault, RotationAngle::RotateDefault), Err::InvalidParam);
}
// To add: Invalid region, invalid top-left, cropping, non-matching strides, etc
TEST_FIXTURE(ReferenceRotationFixture, InvalidAngle)
{
CHECK_THROW(Transformation::RotateFixed(m_bufferSource, m_bufferDestination.filterBuffer, m_regionDefault, m_positionTargetDefault, Filter::RotationAngle::RotateUndefined), Err::InvalidParam);
CHECK_THROW(Transformation::RotateFixed(m_bufferSource, m_bufferDestination.filterBuffer, m_regionDefault, m_positionTargetDefault, static_cast<Filter::RotationAngle>(42)), Err::InvalidParam);
}
TEST_FIXTURE(ReferenceRotationFixture, BasicMirror)
{
uint32_t cReferenceDestBufferMirror[] =
{
DestinationPadding, DestinationPadding, DestinationPadding, DestinationPadding,
DestinationPadding, DestinationPadding, 2, 1,
DestinationPadding, DestinationPadding, 4, 3,
DestinationPadding, DestinationPadding, DestinationPadding, DestinationPadding
};
Transformation::RotateFixed(
m_bufferSource,
m_bufferDestination.filterBuffer,
{ Geom::PointInt{ 1, 1 }, Geom::SizeInt{ 2, 2 } },
{ 2, 1 },
Filter::RotationAngle::FlipX);
CHECK_EQUAL(BuffersEqual(cReferenceDestBufferMirror, (uint32_t*)m_bufferDestination.filterBuffer.BufferData, 4 * 4), true);
}
TEST_FIXTURE(ReferenceRotationFixture, BasicFlip)
{
uint32_t cReferenceDestBuffer[] =
{
DestinationPadding, DestinationPadding, DestinationPadding, DestinationPadding,
DestinationPadding, DestinationPadding, 3, 4,
DestinationPadding, DestinationPadding, 1, 2,
DestinationPadding, DestinationPadding, DestinationPadding, DestinationPadding
};
Transformation::RotateFixed(
m_bufferSource,
m_bufferDestination.filterBuffer,
{ Geom::PointInt(1, 1), Geom::SizeInt(2, 2) },
{ 2, 1 },
Filter::RotationAngle::FlipY);
CHECK_EQUAL(BuffersEqual(cReferenceDestBuffer, (uint32_t*)m_bufferDestination.filterBuffer.BufferData, 4 * 4), true);
}
TEST_FIXTURE(ReferenceRotationFixture, BasicRotate90)
{
uint32_t cReferenceDestBuffer[] =
{
DestinationPadding, DestinationPadding, DestinationPadding, DestinationPadding,
DestinationPadding, DestinationPadding, 3, 1,
DestinationPadding, DestinationPadding, 4, 2,
DestinationPadding, DestinationPadding, ClearDWord, ClearDWord
};
Transformation::RotateFixed(
m_bufferSource,
m_bufferDestination.filterBuffer,
{ Geom::PointInt(1, 1), Geom::SizeInt(3, 2) },
{ 2, 1 },
Filter::RotationAngle::Rotate90);
CHECK_EQUAL(BuffersEqual(cReferenceDestBuffer, (uint32_t*)m_bufferDestination.filterBuffer.BufferData, 4 * 4), true);
}
TEST_FIXTURE(ReferenceRotationFixture, BasicRotate180)
{
uint32_t cReferenceDestBuffer[] =
{
DestinationPadding, DestinationPadding, DestinationPadding, DestinationPadding,
DestinationPadding, DestinationPadding, 4, 3,
DestinationPadding, DestinationPadding, 2, 1,
DestinationPadding, DestinationPadding, DestinationPadding, DestinationPadding
};
Transformation::RotateFixed(
m_bufferSource,
m_bufferDestination.filterBuffer,
{ Geom::PointInt(1, 1), Geom::SizeInt(2, 2) },
{ 2, 1 },
Filter::RotationAngle::Rotate180);
CHECK_EQUAL(BuffersEqual(cReferenceDestBuffer, (uint32_t*)m_bufferDestination.filterBuffer.BufferData, 4 * 4), true);
}
TEST_FIXTURE(ReferenceRotationFixture, BasicRotate270)
{
uint32_t cReferenceDestBuffer[] =
{
DestinationPadding, DestinationPadding, DestinationPadding, DestinationPadding,
DestinationPadding, DestinationPadding, 2, 4,
DestinationPadding, DestinationPadding, 1, 3,
DestinationPadding, DestinationPadding, DestinationPadding, DestinationPadding
};
Transformation::RotateFixed(
m_bufferSource,
m_bufferDestination.filterBuffer,
{ Geom::PointInt(1, 1), Geom::SizeInt(2, 2) },
{ 2, 1 },
Filter::RotationAngle::Rotate270);
CHECK_EQUAL(true == BuffersEqual(cReferenceDestBuffer, (uint32_t*)m_bufferDestination.filterBuffer.BufferData, 4 * 4), true);
}
}
| 37.404762
| 194
| 0.781456
|
poppeman
|
f147cf97cdc6e4b54887364c3239627588d71a11
| 2,098
|
hpp
|
C++
|
examples/ma_echo_server_core/include/ma/echo/server/session_manager_config.hpp
|
eliaskousk/asio_samples
|
5b060733b68ef855f48c1c41c71a531731c337dc
|
[
"BSL-1.0"
] | 238
|
2015-01-14T16:44:44.000Z
|
2022-03-31T13:42:36.000Z
|
examples/ma_echo_server_core/include/ma/echo/server/session_manager_config.hpp
|
eliaskousk/asio_samples
|
5b060733b68ef855f48c1c41c71a531731c337dc
|
[
"BSL-1.0"
] | 64
|
2016-04-06T10:52:37.000Z
|
2021-04-13T16:17:37.000Z
|
examples/ma_echo_server_core/include/ma/echo/server/session_manager_config.hpp
|
eliaskousk/asio_samples
|
5b060733b68ef855f48c1c41c71a531731c337dc
|
[
"BSL-1.0"
] | 67
|
2015-02-16T03:05:31.000Z
|
2021-12-19T22:25:11.000Z
|
//
// Copyright (c) 2010-2015 Marat Abrarov (abrarov@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef MA_ECHO_SERVER_SESSION_MANAGER_CONFIG_HPP
#define MA_ECHO_SERVER_SESSION_MANAGER_CONFIG_HPP
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
#include <cstddef>
#include <boost/asio.hpp>
#include <boost/assert.hpp>
#include <ma/echo/server/session_config.hpp>
#include <ma/echo/server/session_manager_config_fwd.hpp>
namespace ma {
namespace echo {
namespace server {
struct session_manager_config
{
public:
typedef boost::asio::ip::tcp::endpoint endpoint_type;
session_manager_config(
const endpoint_type& accepting_endpoint,
std::size_t max_session_count,
std::size_t recycled_session_count,
std::size_t max_stopping_sessions,
int listen_backlog,
const session_config& managed_session_config);
int listen_backlog;
std::size_t max_session_count;
std::size_t recycled_session_count;
std::size_t max_stopping_sessions;
endpoint_type accepting_endpoint;
session_config managed_session_config;
}; // struct session_manager_config
inline session_manager_config::session_manager_config(
const endpoint_type& the_accepting_endpoint,
std::size_t the_max_session_count,
std::size_t the_recycled_session_count,
std::size_t the_max_stopping_sessions,
int the_listen_backlog,
const session_config& the_managed_session_config)
: listen_backlog(the_listen_backlog)
, max_session_count(the_max_session_count)
, recycled_session_count(the_recycled_session_count)
, max_stopping_sessions(the_max_stopping_sessions)
, accepting_endpoint(the_accepting_endpoint)
, managed_session_config(the_managed_session_config)
{
BOOST_ASSERT_MSG(the_max_session_count > 0,
"max_session_count must be > 0");
}
} // namespace server
} // namespace echo
} // namespace ma
#endif // MA_ECHO_SERVER_SESSION_MANAGER_CONFIG_HPP
| 30.405797
| 79
| 0.77693
|
eliaskousk
|
f14d613ae014723ab013b69b74c02d25bf0fd489
| 1,423
|
cpp
|
C++
|
AROGSBP/ARGOS_BP_SW/VSCODE/ARGOS_BP.cpp
|
EIDOSDATA/Argos_Main_Series
|
2d6e4839afa7bd05d3b87fb530481bdf5eeac31a
|
[
"Unlicense"
] | null | null | null |
AROGSBP/ARGOS_BP_SW/VSCODE/ARGOS_BP.cpp
|
EIDOSDATA/Argos_Main_Series
|
2d6e4839afa7bd05d3b87fb530481bdf5eeac31a
|
[
"Unlicense"
] | null | null | null |
AROGSBP/ARGOS_BP_SW/VSCODE/ARGOS_BP.cpp
|
EIDOSDATA/Argos_Main_Series
|
2d6e4839afa7bd05d3b87fb530481bdf5eeac31a
|
[
"Unlicense"
] | null | null | null |
/*
* README.
* CDS[0] >> CAM0 >> FRONT CAM
* CDS[1] >> CAM1 >> LEFT CAM
* CDS[2] >> CAM2 >> RIGHT CAM
* CDS[3] >> CAM3 >> BACK CAM
*/
#include "Serial/serial.h"
#include "CameraDSLR/CameraDSLR.h"
#include "CameraDSLR/photo.h"
#include "ARGOS_BP.h"
#define A6000_STOREGE "/store_00020001/DCIM"
#define BOARD_PORT "/dev/ttyACM0"
#define BUF_MAX 512
int main(void)
{
serial _si;
int fd;
int cds_val[4] = {0, 0, 0, 0};
char buf[BUF_MAX];
char tmp, read_byte = 0;
_si.openSerialToFd(&fd, BOARD_PORT);
while (1)
{
int rdcnt = read(fd, buf, sizeof(buf));
if (rdcnt > 0)
{
buf[rdcnt] = '\0';
std::cout << "READ DATA : " << buf << std::endl;
sscanf(buf, "%d,%d,%d,%d", &cds_val[0], &cds_val[1], &cds_val[2], &cds_val[3]);
buf[rdcnt] = {
0,
};
}
if (cds_val[0] > 100) // CAM ACTION
{
std::cout << "FRONT CDS : " << cds_val[0] << std::endl;
std::cout << "LEFT CDS : " << cds_val[1] << std::endl;
std::cout << "RIGHT CDS : " << cds_val[2] << std::endl;
std::cout << "BACK CDS : " << cds_val[3] << std::endl;
cds_val[0] = 0;
cds_val[1] = 0;
cds_val[2] = 0;
cds_val[3] = 0;
write(fd, "N", 2);
}
usleep(500);
} // END OF WHILE(1)
return 0;
}
| 26.351852
| 91
| 0.473647
|
EIDOSDATA
|
f15301f84cf314b347529c6d9cc43a2a0f4e6fd4
| 2,530
|
cc
|
C++
|
sys/arch/x86/x86/ports.cc
|
NeoBSD/tunix
|
5ad8d4087a987140b6a7ec24402e5f0f6907b332
|
[
"BSD-2-Clause"
] | null | null | null |
sys/arch/x86/x86/ports.cc
|
NeoBSD/tunix
|
5ad8d4087a987140b6a7ec24402e5f0f6907b332
|
[
"BSD-2-Clause"
] | null | null | null |
sys/arch/x86/x86/ports.cc
|
NeoBSD/tunix
|
5ad8d4087a987140b6a7ec24402e5f0f6907b332
|
[
"BSD-2-Clause"
] | null | null | null |
/**
* Copyright (c) 2021, Tobias Hienzsch
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*/
#include "arch/x86/include/ports.h"
/**
* Read a byte from the specified port
*/
uint8_t port_byte_in(uint16_t port)
{
uint8_t result;
/* Inline assembler syntax
* !! Notice how the source and destination registers are switched from NASM
* !!
*
* '"=a" (result)'; set '=' the C variable '(result)' to the value of register
* e'a'x
* '"d" (port)': map the C variable '(port)' into e'd'x register
*
* Inputs and outputs are separated by colons
*/
__asm__("in %%dx, %%al" : "=a"(result) : "d"(port));
return result;
}
void port_byte_out(uint16_t port, uint8_t data)
{
/* Notice how here both registers are mapped to C variables and
* nothing is returned, thus, no equals '=' in the asm syntax
* However we see a comma since there are two variables in the input area
* and none in the 'return' area
*/
__asm__ __volatile__("out %%al, %%dx" : : "a"(data), "d"(port));
}
uint16_t port_word_in(uint16_t port)
{
uint16_t result;
__asm__("in %%dx, %%ax" : "=a"(result) : "d"(port));
return result;
}
void port_word_out(uint16_t port, uint16_t data)
{
__asm__ __volatile__("out %%ax, %%dx" : : "a"(data), "d"(port));
}
| 36.142857
| 80
| 0.706719
|
NeoBSD
|
f15535398ccd02b698a649a9b1c7a35760d787da
| 1,028
|
cpp
|
C++
|
CPP/Array/ArraySum.cpp
|
AvanishCodes/CodingTemplates
|
67827e7c82f44adb4bd0f68fcaf89e9d7e09d2ce
|
[
"MIT"
] | 1
|
2022-01-02T16:37:03.000Z
|
2022-01-02T16:37:03.000Z
|
CPP/Array/ArraySum.cpp
|
AvanishCodes/CodingTemplates
|
67827e7c82f44adb4bd0f68fcaf89e9d7e09d2ce
|
[
"MIT"
] | null | null | null |
CPP/Array/ArraySum.cpp
|
AvanishCodes/CodingTemplates
|
67827e7c82f44adb4bd0f68fcaf89e9d7e09d2ce
|
[
"MIT"
] | null | null | null |
#include <iostream>
#include <vector>
#define VI vector<int>
#define fn for (int i = 0; i < n; i++)
using namespace std;
// FUnction to calculate sum of elements in an array
int calculateArraySum(VI a)
{
int sum = 0;
// Method 1: Naive method
// for (int i = 0; i < a.size(); i++)
// sum += a[i];
// Method 2: C++ STL
for (auto element : a)
sum += element;
return sum;
}
// Driver Code
int main()
{
int n;
cout << "Enter the number of integers that you want to take in memory: ";
cin >> n;
cout << "Enter the numbers: ";
// *a ==> Variable length array
// a = *s ==> a is a pointer to the first element of s
// Allot 20 bytes to a, for a 64 bit machine
// int *a = new int[n];
// fn cin >> a[i];
// fn cout << a[i] << ' ';
// cout << endl;
// // Modify the size of the array
// a = new int[n + 1];
// a[n] = 100;
// n += 1;
// fn cout << a[i] << ' ';
VI arr(n);
fn cin >> arr[i];
cout << "Sum of the array is: ";
cout << calculateArraySum(arr) << '\n';
return 0;
}
| 23.363636
| 75
| 0.547665
|
AvanishCodes
|
f15727f67e44f427ffc00f5272810874f2019544
| 920,956
|
cpp
|
C++
|
example/unity/DemoApp/iii_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/UnityEngine.TextCoreTextEngineModule1.cpp
|
Augmented-Future/flutter-unity-view-widget
|
b7036974249ff5e5a26fed3fc85167c607775a49
|
[
"MIT"
] | null | null | null |
example/unity/DemoApp/iii_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/UnityEngine.TextCoreTextEngineModule1.cpp
|
Augmented-Future/flutter-unity-view-widget
|
b7036974249ff5e5a26fed3fc85167c607775a49
|
[
"MIT"
] | null | null | null |
example/unity/DemoApp/iii_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/UnityEngine.TextCoreTextEngineModule1.cpp
|
Augmented-Future/flutter-unity-view-widget
|
b7036974249ff5e5a26fed3fc85167c607775a49
|
[
"MIT"
] | null | null | null |
#include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
template <typename R>
struct VirtualFuncInvoker0
{
typedef R (*Func)(void*, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
return ((Func)invokeData.methodPtr)(obj, invokeData.method);
}
};
template <typename R, typename T1, typename T2, typename T3, typename T4, typename T5>
struct VirtualFuncInvoker5
{
typedef R (*Func)(void*, T1, T2, T3, T4, T5, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
return ((Func)invokeData.methodPtr)(obj, p1, p2, p3, p4, p5, invokeData.method);
}
};
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.TextCore.Text.FontAsset>
struct Dictionary_2_tC20B3D6AE4370C892734F670EF4D1FB9CE91F371;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Int32>
struct Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180;
// System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.Text.Character>
struct Dictionary_2_t93CDF0F4011A5A3024EB73A492F9512E3046EACB;
// System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.Glyph>
struct Dictionary_2_tC61348D10610A6B3D7B65102D82AC3467D59EAA7;
// System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord>
struct Dictionary_2_tDD72F78A572F94ECEDBDA75C3D17C3ED05C167E0;
// System.Collections.Generic.Dictionary`2<System.UInt32,System.Int32>
struct Dictionary_2_t1A4804CA9724B6CE01D6ECABE81CE0848CBA80B4;
// System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.Text.SpriteCharacter>
struct Dictionary_2_tD4154357CA320908C5A7A35ED81FA2A9856C28D9;
// System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.Text.SpriteGlyph>
struct Dictionary_2_tDC0461D8CBB2E6B52DD2C421114EDE7C1C70DE73;
// System.Collections.Generic.HashSet`1<System.Int32>
struct HashSet_1_t4A2F2B74276D0AD3ED0F873045BD61E9504ECAE2;
// System.Collections.Generic.HashSet`1<System.UInt32>
struct HashSet_1_t5DD20B42149A11AEBF12A75505306E6EFC34943A;
// System.Collections.Generic.IEqualityComparer`1<System.Int32>
struct IEqualityComparer_1_tDBFC8496F14612776AF930DBF84AFE7D06D1F0E9;
// System.Collections.Generic.IEqualityComparer`1<System.UInt32>
struct IEqualityComparer_1_t0BB8211419723EB61BF19007AC9D62365E50500E;
// System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,System.Int32>
struct KeyCollection_t67E8423B5AEB30C254013AD88AB68D2A36F1F436;
// System.Collections.Generic.Dictionary`2/KeyCollection<System.UInt32,UnityEngine.TextCore.Text.Character>
struct KeyCollection_tC77517EE58666366824AEC6674ED44B430ED2D67;
// System.Collections.Generic.Dictionary`2/KeyCollection<System.UInt32,UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord>
struct KeyCollection_tF62DA58D084558E31E5A09537D460287D59B1A89;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.Character>
struct List_1_tFED0F30EE65D995591571D3CD2C10F22439CB317;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.FontAsset>
struct List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Glyph>
struct List_1_t95DB74B8EE315F8F92B7B96D93C901C8C3F6FE2C;
// System.Collections.Generic.List`1<UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord>
struct List_1_t3CA8EA3609B406A4099002CBD02BB599F3B1D5DB;
// System.Collections.Generic.List`1<UnityEngine.TextCore.GlyphRect>
struct List_1_t425D3A455811E316D2DF73E46CF9CD90A4341C1B;
// System.Collections.Generic.List`1<System.Object>
struct List_1_tA239CB83DE5615F348BB0507E45F490F4F7C9A8D;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.SpriteAsset>
struct List_1_t3EE59C28A34FCD5060EF6B6BAFA85F2C9D01D320;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.SpriteCharacter>
struct List_1_t7DA088250C54C07AF1211AE132355AD2D343EE51;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.SpriteGlyph>
struct List_1_t063B87D3CFDC3AEE80E33EFBDA1410C697D71AD6;
// System.Collections.Generic.List`1<UnityEngine.Texture2D>
struct List_1_t0F231C3F13EBA1FF9081BD61489D01AA3CBE59D4;
// System.Collections.Generic.List`1<System.UInt32>
struct List_1_t9B68833848E4C4D7F623C05F6B77F0449396354A;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.TextSettings/FontReferenceMap>
struct List_1_tA1547550E5FBA50050B20DA74245C38434654EE8;
// System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,System.Int32>
struct ValueCollection_t74AF7C1BAE06C66E984668F663D574ED6A596D28;
// System.Collections.Generic.Dictionary`2/ValueCollection<System.UInt32,UnityEngine.TextCore.Text.Character>
struct ValueCollection_tA5B63968FCBE6FB42208B53C99AD12395688A1E8;
// System.Collections.Generic.Dictionary`2/ValueCollection<System.UInt32,UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord>
struct ValueCollection_tB99ECE94AB57EE9AB1FAC3276CC7108B468367C9;
// System.Collections.Generic.Dictionary`2/Entry<System.Int32,System.Int32>[]
struct EntryU5BU5D_t197C691F43F1694B771BF83C278D12BBFEEB86FA;
// System.Collections.Generic.Dictionary`2/Entry<System.UInt32,UnityEngine.TextCore.Text.Character>[]
struct EntryU5BU5D_t0847BDFA02D0C07032D1677F21C95174F778FC60;
// System.Collections.Generic.Dictionary`2/Entry<System.UInt32,UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord>[]
struct EntryU5BU5D_t68A3C3C2FF61504922EC13C363BED0E17D474FA8;
// System.Collections.Generic.HashSet`1/Slot<System.UInt32>[]
struct SlotU5BU5D_tBF418274114DA8D3D070D784415BF0500C1960C6;
// System.Byte[]
struct ByteU5BU5D_tA6237BF417AE52AD70CFB4EF24A7A82613DF9031;
// System.Char[]
struct CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB;
// UnityEngine.Color32[]
struct Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259;
// UnityEngine.TextCore.Text.FontAsset[]
struct FontAssetU5BU5D_t5A6A4DD2BD3259A2F45F7F4D7860BAEA3666EA93;
// UnityEngine.TextCore.Text.FontWeightPair[]
struct FontWeightPairU5BU5D_t76E8DB55C81EEBEFA2E6D1D3E3B3EA1FB4C4954F;
// System.Int32[]
struct Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C;
// System.Int32Enum[]
struct Int32EnumU5BU5D_t87B7DB802810C38016332669039EF42C487A081F;
// UnityEngine.TextCore.Text.LineInfo[]
struct LineInfoU5BU5D_t37598F2175B291797270D1161DC29B6296FB169D;
// UnityEngine.TextCore.Text.LinkInfo[]
struct LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51;
// UnityEngine.TextCore.Text.MaterialReference[]
struct MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E;
// UnityEngine.TextCore.Text.MeshInfo[]
struct MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6;
// System.Object[]
struct ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918;
// UnityEngine.TextCore.Text.PageInfo[]
struct PageInfoU5BU5D_tFEA2CF88695491CFC2F2A2EF6BDCC56E52B0A6D4;
// UnityEngine.TextCore.Text.RichTextTagAttribute[]
struct RichTextTagAttributeU5BU5D_tEE9D071B3246F23742DBF4226567620BCBB24A14;
// System.Single[]
struct SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C;
// UnityEngine.TextCore.Text.SpriteCharacter[]
struct SpriteCharacterU5BU5D_tF4060931C4A985100FE1C44BF53084E1630E96CA;
// UnityEngine.TextCore.Text.TextAlignment[]
struct TextAlignmentU5BU5D_t756DC2D672145699CB9718DDBA5982ED51A95F49;
// UnityEngine.TextCore.Text.TextColorGradient[]
struct TextColorGradientU5BU5D_tA27A5E49640CF01334A10DBDBC959903AFBD941A;
// UnityEngine.TextCore.Text.TextElementInfo[]
struct TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E;
// UnityEngine.TextCore.Text.TextFontWeight[]
struct TextFontWeightU5BU5D_t3DE32809AEE657255C8333897D61F2EA5279D43F;
// UnityEngine.Texture2D[]
struct Texture2DU5BU5D_t05332F1E3F7D4493E304C702201F9BE4F9236191;
// System.UInt32[]
struct UInt32U5BU5D_t02FBD658AD156A17574ECE6106CF1FBFCC9807FA;
// UnityEngine.Vector2[]
struct Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA;
// UnityEngine.Vector3[]
struct Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C;
// UnityEngine.TextCore.Text.WordInfo[]
struct WordInfoU5BU5D_tAD74C9720883D7BB229A20FFAE9EFD2CF9963F7B;
// UnityEngine.TextCore.Text.XmlTagAttribute[]
struct XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2;
// UnityEngine.TextCore.Text.Character
struct Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC;
// UnityEngine.Font
struct Font_tC95270EA3198038970422D78B74A7F2E218A96B6;
// UnityEngine.TextCore.Text.FontAsset
struct FontAsset_t61A6446D934E582651044E33D250EA8D306AB958;
// UnityEngine.TextCore.Text.FontFeatureTable
struct FontFeatureTable_t992E0493CD7E9D7834DF204E0198237F0D25B3B7;
// UnityEngine.TextCore.Glyph
struct Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F;
// UnityEngine.Material
struct Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3;
// UnityEngine.Object
struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C;
// System.Runtime.Serialization.SerializationInfo
struct SerializationInfo_t3C47F63E24BEB9FCE2DC6309E027F238DC5C5E37;
// UnityEngine.Shader
struct Shader_tADC867D36B7876EE22427FAA2CE485105F4EE692;
// UnityEngine.TextCore.Text.SpriteAsset
struct SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313;
// UnityEngine.TextCore.Text.SpriteCharacter
struct SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5;
// System.String
struct String_t;
// UnityEngine.TextAsset
struct TextAsset_t2C64E93DA366D9DE5A8209E1802FA4884AC1BD69;
// UnityEngine.TextCore.Text.TextAsset
struct TextAsset_tB28F1843A877CCA74B89DC4F63EA532618B049B8;
// UnityEngine.TextCore.Text.TextColorGradient
struct TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70;
// UnityEngine.TextCore.Text.TextElement
struct TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA;
// UnityEngine.TextCore.Text.TextGenerationSettings
struct TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2;
// UnityEngine.TextCore.Text.TextGenerator
struct TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366;
// UnityEngine.TextCore.Text.TextInfo
struct TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09;
// UnityEngine.TextCore.Text.TextSettings
struct TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64;
// UnityEngine.TextCore.Text.TextStyleSheet
struct TextStyleSheet_t86A0FA5523897465F371A2ABC17DFA3558C8D15E;
// UnityEngine.Texture
struct Texture_t791CBB51219779964E0E8A2ED7C1AA5F92A4A700;
// UnityEngine.Texture2D
struct Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4;
// UnityEngine.TextCore.Text.UnicodeLineBreakingRules
struct UnicodeLineBreakingRules_t80BE36F5E16AE48FE7B6DE1C91D36B1142B4EC0E;
// System.Void
struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915;
IL2CPP_EXTERN_C RuntimeClass* CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* FontAsset_t61A6446D934E582651044E33D250EA8D306AB958_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* MaterialManager_t104D2897F78BE83C3377323E18BEB5B8F0704D9B_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* RichTextTagAttributeU5BU5D_tEE9D071B3246F23742DBF4226567620BCBB24A14_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* TextColorGradientU5BU5D_tA27A5E49640CF01334A10DBDBC959903AFBD941A_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* TextShaderUtilities_t47B400695C5D96E7B04FEF9D132468B3A1799692_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* UInt32U5BU5D_t02FBD658AD156A17574ECE6106CF1FBFCC9807FA_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C String_t* _stringLiteral3A16983F3F5E2FE996FFAE625831CCA22C609206;
IL2CPP_EXTERN_C String_t* _stringLiteral3CF41D991C7F2555D83F628B4B3B26444D917083;
IL2CPP_EXTERN_C String_t* _stringLiteral75CDF58C9AFA1ECF6D29D4045BD510C2651DD6E5;
IL2CPP_EXTERN_C String_t* _stringLiteral76035771ED8F77CE10848FFF51357CF514EC7F02;
IL2CPP_EXTERN_C String_t* _stringLiteral77A4D95C5A66881369906720C24690D7097D85DC;
IL2CPP_EXTERN_C String_t* _stringLiteral804E3B76CDCD07E13EAE2E489D1D76D145E0DED6;
IL2CPP_EXTERN_C String_t* _stringLiteral911C45CCDD6261BCC0DB106704C632E834EF8E49;
IL2CPP_EXTERN_C String_t* _stringLiteralBDC04DCE144956C85753B1D40627C3620348D36C;
IL2CPP_EXTERN_C String_t* _stringLiteralCAAD2794A22F622E48C3D6803C2630A786F758B7;
IL2CPP_EXTERN_C String_t* _stringLiteralD145B4F79D40262E79305A5090EE637B2012419A;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_Clear_m9821889E928BB7EAEE9A7E81EDFC59651F7CBDD0_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_TryGetValue_m45061EA2C8BF9DD9DC9DA92DAB968171136507DA_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2__ctor_m712893C2C48C47CCAFAD85A865C702E8D3D2B71F_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_get_Count_mD88F18E0B2065189516BF168F521E531BE54384A_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* HashSet_1_Contains_m02385B663B65E53485251FFFD116D0F26BA172B9_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Count_mFD42C320FC3C4884CD9A746FB26476D6662DFF58_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Item_m25CB12C13D14620785B0E86F6543D20B5080AFF8_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Resources_Load_TisFontAsset_t61A6446D934E582651044E33D250EA8D306AB958_mCA232125ECB8FA8B7AF234B15733CEC79EF821C6_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Resources_Load_TisMaterial_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3_m28782CC70624922DAF3B0FB13930E4EB59848128_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Resources_Load_TisSpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313_mDBDF61D69ECF9D35DA0ABDE51CBA6667E0571EEF_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Resources_Load_TisTextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70_m3B4500F9148F6FEC1F400C8A57D4E6A3731FDAC2_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextInfo_Resize_TisLinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8_mCED76C73D7A2398528C92992D323A2DBD1663DDD_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextInfo_Resize_TisMeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F_m8DCA99800557BA87ADA9D085ECBE0F002B615BE2_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextInfo_Resize_TisTextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976_mF1BA7075C51A6706D5946DC1D8B3FBE1B937C92E_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Add_m022CA737B4340C51370BE07A79E71C63F553AD3C_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Add_m15B10B664846D4F52E8FE84908D9B4196C697CF2_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Add_m274EBB250C6149AB4014207A84EC9F3F83C39125_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Add_mFB2400CB8E620060FDD41E7FB5E57A238F67E666_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Clear_m857C80F9AFD9507FE4784DB5DE79109E16C8EAA3_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Peek_mE06D9422EAE774A3926E6956483EB39E6425D2E0_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Pop_m58499B721ABBBCFDF676B5EFA85F77B8B019128A_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Push_mBF18A764F6D1996DD6E7D2F217EB86BA84FD6A93_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Remove_m22098B317E1049C5DFD900721F2F489220C44212_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Remove_m24EDA872BB55BFF4493268F713CFBA50102917D0_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Remove_m36486DFF2D5026596CFFED89F554CA9F296FBD6E_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Remove_m3C7936195E04FE5C7BD27A56E88A06DEDA9EA5BF_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Remove_mABFF8426A0D669AEEE6FB5017100904E559EEBF6_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Remove_mCEB203288B57A916CE3C9482E239BF59D7A3BBBE_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_Remove_mFC7EB20F1D31BC8E84C07AAABD63626EAB1424BE_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_SetDefault_m2DBB41C08A4CB7F71156ED5965850C2A0570F230_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_SetDefault_mA28AEF460395ECD6CBF6A469575571F64F6836B9_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_SetDefault_mDAFD4911B5A8BEE57351A37415ADF348F0A6B54C_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1_SetDefault_mDF71503A7E4F1891305CDCC7AE245CA66A713E79_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1__ctor_m21F67B4043E233F8CA9797CEAEBF75AA44923E95_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1__ctor_m445613CACF63BB93528D0DF6A4806B721690BEA3_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1__ctor_m46C659E94F74B5690AC0A547430C8D3387000CEC_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1__ctor_m51ECDDF2DCADEB66EED067F383D94ADCCFE61782_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1__ctor_m711FBEB05216B8B7683BAF106DC2CA519C2986EF_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1__ctor_m8D925AB632D621F377352A263B090EF1689AB7D6_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1__ctor_mA4B25FA7163EB1A1804D7F9C4BB50D078CC1F9EE_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TextProcessingStack_1__ctor_mE29F1CB516B3C52016997ECCBF3769B1FE98336A_RuntimeMethod_var;
struct Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B;
struct Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7;
struct Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2;
struct CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB;
struct Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259;
struct Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C;
struct LineInfoU5BU5D_t37598F2175B291797270D1161DC29B6296FB169D;
struct LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51;
struct MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E;
struct MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6;
struct RichTextTagAttributeU5BU5D_tEE9D071B3246F23742DBF4226567620BCBB24A14;
struct SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C;
struct TextColorGradientU5BU5D_tA27A5E49640CF01334A10DBDBC959903AFBD941A;
struct TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E;
struct UInt32U5BU5D_t02FBD658AD156A17574ECE6106CF1FBFCC9807FA;
struct Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA;
struct Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C;
struct XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2;
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.Dictionary`2<System.Int32,System.Int32>
struct Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180 : public RuntimeObject
{
// System.Int32[] System.Collections.Generic.Dictionary`2::_buckets
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ____buckets_0;
// System.Collections.Generic.Dictionary`2/Entry<TKey,TValue>[] System.Collections.Generic.Dictionary`2::_entries
EntryU5BU5D_t197C691F43F1694B771BF83C278D12BBFEEB86FA* ____entries_1;
// System.Int32 System.Collections.Generic.Dictionary`2::_count
int32_t ____count_2;
// System.Int32 System.Collections.Generic.Dictionary`2::_freeList
int32_t ____freeList_3;
// System.Int32 System.Collections.Generic.Dictionary`2::_freeCount
int32_t ____freeCount_4;
// System.Int32 System.Collections.Generic.Dictionary`2::_version
int32_t ____version_5;
// System.Collections.Generic.IEqualityComparer`1<TKey> System.Collections.Generic.Dictionary`2::_comparer
RuntimeObject* ____comparer_6;
// System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::_keys
KeyCollection_t67E8423B5AEB30C254013AD88AB68D2A36F1F436* ____keys_7;
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::_values
ValueCollection_t74AF7C1BAE06C66E984668F663D574ED6A596D28* ____values_8;
// System.Object System.Collections.Generic.Dictionary`2::_syncRoot
RuntimeObject* ____syncRoot_9;
};
// System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.Text.Character>
struct Dictionary_2_t93CDF0F4011A5A3024EB73A492F9512E3046EACB : public RuntimeObject
{
// System.Int32[] System.Collections.Generic.Dictionary`2::_buckets
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ____buckets_0;
// System.Collections.Generic.Dictionary`2/Entry<TKey,TValue>[] System.Collections.Generic.Dictionary`2::_entries
EntryU5BU5D_t0847BDFA02D0C07032D1677F21C95174F778FC60* ____entries_1;
// System.Int32 System.Collections.Generic.Dictionary`2::_count
int32_t ____count_2;
// System.Int32 System.Collections.Generic.Dictionary`2::_freeList
int32_t ____freeList_3;
// System.Int32 System.Collections.Generic.Dictionary`2::_freeCount
int32_t ____freeCount_4;
// System.Int32 System.Collections.Generic.Dictionary`2::_version
int32_t ____version_5;
// System.Collections.Generic.IEqualityComparer`1<TKey> System.Collections.Generic.Dictionary`2::_comparer
RuntimeObject* ____comparer_6;
// System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::_keys
KeyCollection_tC77517EE58666366824AEC6674ED44B430ED2D67* ____keys_7;
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::_values
ValueCollection_tA5B63968FCBE6FB42208B53C99AD12395688A1E8* ____values_8;
// System.Object System.Collections.Generic.Dictionary`2::_syncRoot
RuntimeObject* ____syncRoot_9;
};
// System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord>
struct Dictionary_2_tDD72F78A572F94ECEDBDA75C3D17C3ED05C167E0 : public RuntimeObject
{
// System.Int32[] System.Collections.Generic.Dictionary`2::_buckets
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ____buckets_0;
// System.Collections.Generic.Dictionary`2/Entry<TKey,TValue>[] System.Collections.Generic.Dictionary`2::_entries
EntryU5BU5D_t68A3C3C2FF61504922EC13C363BED0E17D474FA8* ____entries_1;
// System.Int32 System.Collections.Generic.Dictionary`2::_count
int32_t ____count_2;
// System.Int32 System.Collections.Generic.Dictionary`2::_freeList
int32_t ____freeList_3;
// System.Int32 System.Collections.Generic.Dictionary`2::_freeCount
int32_t ____freeCount_4;
// System.Int32 System.Collections.Generic.Dictionary`2::_version
int32_t ____version_5;
// System.Collections.Generic.IEqualityComparer`1<TKey> System.Collections.Generic.Dictionary`2::_comparer
RuntimeObject* ____comparer_6;
// System.Collections.Generic.Dictionary`2/KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::_keys
KeyCollection_tF62DA58D084558E31E5A09537D460287D59B1A89* ____keys_7;
// System.Collections.Generic.Dictionary`2/ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::_values
ValueCollection_tB99ECE94AB57EE9AB1FAC3276CC7108B468367C9* ____values_8;
// System.Object System.Collections.Generic.Dictionary`2::_syncRoot
RuntimeObject* ____syncRoot_9;
};
// System.Collections.Generic.HashSet`1<System.UInt32>
struct HashSet_1_t5DD20B42149A11AEBF12A75505306E6EFC34943A : public RuntimeObject
{
// System.Int32[] System.Collections.Generic.HashSet`1::_buckets
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ____buckets_7;
// System.Collections.Generic.HashSet`1/Slot<T>[] System.Collections.Generic.HashSet`1::_slots
SlotU5BU5D_tBF418274114DA8D3D070D784415BF0500C1960C6* ____slots_8;
// System.Int32 System.Collections.Generic.HashSet`1::_count
int32_t ____count_9;
// System.Int32 System.Collections.Generic.HashSet`1::_lastIndex
int32_t ____lastIndex_10;
// System.Int32 System.Collections.Generic.HashSet`1::_freeList
int32_t ____freeList_11;
// System.Collections.Generic.IEqualityComparer`1<T> System.Collections.Generic.HashSet`1::_comparer
RuntimeObject* ____comparer_12;
// System.Int32 System.Collections.Generic.HashSet`1::_version
int32_t ____version_13;
// System.Runtime.Serialization.SerializationInfo System.Collections.Generic.HashSet`1::_siInfo
SerializationInfo_t3C47F63E24BEB9FCE2DC6309E027F238DC5C5E37* ____siInfo_14;
};
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.FontAsset>
struct List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE : public RuntimeObject
{
// T[] System.Collections.Generic.List`1::_items
FontAssetU5BU5D_t5A6A4DD2BD3259A2F45F7F4D7860BAEA3666EA93* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject* ____syncRoot_4;
};
struct List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE_StaticFields
{
// T[] System.Collections.Generic.List`1::s_emptyArray
FontAssetU5BU5D_t5A6A4DD2BD3259A2F45F7F4D7860BAEA3666EA93* ___s_emptyArray_5;
};
// System.Collections.Generic.List`1<System.Object>
struct List_1_tA239CB83DE5615F348BB0507E45F490F4F7C9A8D : public RuntimeObject
{
// T[] System.Collections.Generic.List`1::_items
ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject* ____syncRoot_4;
};
struct List_1_tA239CB83DE5615F348BB0507E45F490F4F7C9A8D_StaticFields
{
// T[] System.Collections.Generic.List`1::s_emptyArray
ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918* ___s_emptyArray_5;
};
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.SpriteCharacter>
struct List_1_t7DA088250C54C07AF1211AE132355AD2D343EE51 : public RuntimeObject
{
// T[] System.Collections.Generic.List`1::_items
SpriteCharacterU5BU5D_tF4060931C4A985100FE1C44BF53084E1630E96CA* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject* ____syncRoot_4;
};
struct List_1_t7DA088250C54C07AF1211AE132355AD2D343EE51_StaticFields
{
// T[] System.Collections.Generic.List`1::s_emptyArray
SpriteCharacterU5BU5D_tF4060931C4A985100FE1C44BF53084E1630E96CA* ___s_emptyArray_5;
};
struct Il2CppArrayBounds;
// UnityEngine.TextCore.Text.FontFeatureTable
struct FontFeatureTable_t992E0493CD7E9D7834DF204E0198237F0D25B3B7 : public RuntimeObject
{
// System.Collections.Generic.List`1<UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord> UnityEngine.TextCore.Text.FontFeatureTable::m_GlyphPairAdjustmentRecords
List_1_t3CA8EA3609B406A4099002CBD02BB599F3B1D5DB* ___m_GlyphPairAdjustmentRecords_0;
// System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord> UnityEngine.TextCore.Text.FontFeatureTable::m_GlyphPairAdjustmentRecordLookup
Dictionary_2_tDD72F78A572F94ECEDBDA75C3D17C3ED05C167E0* ___m_GlyphPairAdjustmentRecordLookup_1;
};
// System.String
struct String_t : public RuntimeObject
{
// System.Int32 System.String::_stringLength
int32_t ____stringLength_4;
// System.Char System.String::_firstChar
Il2CppChar ____firstChar_5;
};
struct String_t_StaticFields
{
// System.String System.String::Empty
String_t* ___Empty_6;
};
// UnityEngine.TextCore.Text.TextElement
struct TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA : public RuntimeObject
{
// UnityEngine.TextCore.Text.TextElementType UnityEngine.TextCore.Text.TextElement::m_ElementType
uint8_t ___m_ElementType_0;
// System.UInt32 UnityEngine.TextCore.Text.TextElement::m_Unicode
uint32_t ___m_Unicode_1;
// UnityEngine.TextCore.Text.TextAsset UnityEngine.TextCore.Text.TextElement::m_TextAsset
TextAsset_tB28F1843A877CCA74B89DC4F63EA532618B049B8* ___m_TextAsset_2;
// UnityEngine.TextCore.Glyph UnityEngine.TextCore.Text.TextElement::m_Glyph
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* ___m_Glyph_3;
// System.UInt32 UnityEngine.TextCore.Text.TextElement::m_GlyphIndex
uint32_t ___m_GlyphIndex_4;
// System.Single UnityEngine.TextCore.Text.TextElement::m_Scale
float ___m_Scale_5;
};
// UnityEngine.TextCore.Text.TextShaderUtilities
struct TextShaderUtilities_t47B400695C5D96E7B04FEF9D132468B3A1799692 : public RuntimeObject
{
};
struct TextShaderUtilities_t47B400695C5D96E7B04FEF9D132468B3A1799692_StaticFields
{
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_MainTex
int32_t ___ID_MainTex_0;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_FaceTex
int32_t ___ID_FaceTex_1;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_FaceColor
int32_t ___ID_FaceColor_2;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_FaceDilate
int32_t ___ID_FaceDilate_3;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_Shininess
int32_t ___ID_Shininess_4;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_UnderlayColor
int32_t ___ID_UnderlayColor_5;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_UnderlayOffsetX
int32_t ___ID_UnderlayOffsetX_6;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_UnderlayOffsetY
int32_t ___ID_UnderlayOffsetY_7;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_UnderlayDilate
int32_t ___ID_UnderlayDilate_8;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_UnderlaySoftness
int32_t ___ID_UnderlaySoftness_9;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_WeightNormal
int32_t ___ID_WeightNormal_10;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_WeightBold
int32_t ___ID_WeightBold_11;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_OutlineTex
int32_t ___ID_OutlineTex_12;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_OutlineWidth
int32_t ___ID_OutlineWidth_13;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_OutlineSoftness
int32_t ___ID_OutlineSoftness_14;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_OutlineColor
int32_t ___ID_OutlineColor_15;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_Outline2Color
int32_t ___ID_Outline2Color_16;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_Outline2Width
int32_t ___ID_Outline2Width_17;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_Padding
int32_t ___ID_Padding_18;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_GradientScale
int32_t ___ID_GradientScale_19;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_ScaleX
int32_t ___ID_ScaleX_20;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_ScaleY
int32_t ___ID_ScaleY_21;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_PerspectiveFilter
int32_t ___ID_PerspectiveFilter_22;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_Sharpness
int32_t ___ID_Sharpness_23;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_TextureWidth
int32_t ___ID_TextureWidth_24;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_TextureHeight
int32_t ___ID_TextureHeight_25;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_BevelAmount
int32_t ___ID_BevelAmount_26;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_GlowColor
int32_t ___ID_GlowColor_27;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_GlowOffset
int32_t ___ID_GlowOffset_28;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_GlowPower
int32_t ___ID_GlowPower_29;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_GlowOuter
int32_t ___ID_GlowOuter_30;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_GlowInner
int32_t ___ID_GlowInner_31;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_LightAngle
int32_t ___ID_LightAngle_32;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_EnvMap
int32_t ___ID_EnvMap_33;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_EnvMatrix
int32_t ___ID_EnvMatrix_34;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_EnvMatrixRotation
int32_t ___ID_EnvMatrixRotation_35;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_MaskCoord
int32_t ___ID_MaskCoord_36;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_ClipRect
int32_t ___ID_ClipRect_37;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_MaskSoftnessX
int32_t ___ID_MaskSoftnessX_38;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_MaskSoftnessY
int32_t ___ID_MaskSoftnessY_39;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_VertexOffsetX
int32_t ___ID_VertexOffsetX_40;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_VertexOffsetY
int32_t ___ID_VertexOffsetY_41;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_UseClipRect
int32_t ___ID_UseClipRect_42;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_StencilID
int32_t ___ID_StencilID_43;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_StencilOp
int32_t ___ID_StencilOp_44;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_StencilComp
int32_t ___ID_StencilComp_45;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_StencilReadMask
int32_t ___ID_StencilReadMask_46;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_StencilWriteMask
int32_t ___ID_StencilWriteMask_47;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_ShaderFlags
int32_t ___ID_ShaderFlags_48;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_ScaleRatio_A
int32_t ___ID_ScaleRatio_A_49;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_ScaleRatio_B
int32_t ___ID_ScaleRatio_B_50;
// System.Int32 UnityEngine.TextCore.Text.TextShaderUtilities::ID_ScaleRatio_C
int32_t ___ID_ScaleRatio_C_51;
// System.String UnityEngine.TextCore.Text.TextShaderUtilities::Keyword_Bevel
String_t* ___Keyword_Bevel_52;
// System.String UnityEngine.TextCore.Text.TextShaderUtilities::Keyword_Glow
String_t* ___Keyword_Glow_53;
// System.String UnityEngine.TextCore.Text.TextShaderUtilities::Keyword_Underlay
String_t* ___Keyword_Underlay_54;
// System.String UnityEngine.TextCore.Text.TextShaderUtilities::Keyword_Ratios
String_t* ___Keyword_Ratios_55;
// System.String UnityEngine.TextCore.Text.TextShaderUtilities::Keyword_MASK_SOFT
String_t* ___Keyword_MASK_SOFT_56;
// System.String UnityEngine.TextCore.Text.TextShaderUtilities::Keyword_MASK_HARD
String_t* ___Keyword_MASK_HARD_57;
// System.String UnityEngine.TextCore.Text.TextShaderUtilities::Keyword_MASK_TEX
String_t* ___Keyword_MASK_TEX_58;
// System.String UnityEngine.TextCore.Text.TextShaderUtilities::Keyword_Outline
String_t* ___Keyword_Outline_59;
// System.String UnityEngine.TextCore.Text.TextShaderUtilities::ShaderTag_ZTestMode
String_t* ___ShaderTag_ZTestMode_60;
// System.String UnityEngine.TextCore.Text.TextShaderUtilities::ShaderTag_CullMode
String_t* ___ShaderTag_CullMode_61;
// System.Single UnityEngine.TextCore.Text.TextShaderUtilities::m_clamp
float ___m_clamp_62;
// System.Boolean UnityEngine.TextCore.Text.TextShaderUtilities::isInitialized
bool ___isInitialized_63;
// UnityEngine.Shader UnityEngine.TextCore.Text.TextShaderUtilities::k_ShaderRef_MobileSDF
Shader_tADC867D36B7876EE22427FAA2CE485105F4EE692* ___k_ShaderRef_MobileSDF_64;
// UnityEngine.Shader UnityEngine.TextCore.Text.TextShaderUtilities::k_ShaderRef_MobileBitmap
Shader_tADC867D36B7876EE22427FAA2CE485105F4EE692* ___k_ShaderRef_MobileBitmap_65;
};
// UnityEngine.TextCore.Text.UnicodeLineBreakingRules
struct UnicodeLineBreakingRules_t80BE36F5E16AE48FE7B6DE1C91D36B1142B4EC0E : public RuntimeObject
{
// UnityEngine.TextAsset UnityEngine.TextCore.Text.UnicodeLineBreakingRules::m_UnicodeLineBreakingRules
TextAsset_t2C64E93DA366D9DE5A8209E1802FA4884AC1BD69* ___m_UnicodeLineBreakingRules_1;
// UnityEngine.TextAsset UnityEngine.TextCore.Text.UnicodeLineBreakingRules::m_LeadingCharacters
TextAsset_t2C64E93DA366D9DE5A8209E1802FA4884AC1BD69* ___m_LeadingCharacters_2;
// UnityEngine.TextAsset UnityEngine.TextCore.Text.UnicodeLineBreakingRules::m_FollowingCharacters
TextAsset_t2C64E93DA366D9DE5A8209E1802FA4884AC1BD69* ___m_FollowingCharacters_3;
// System.Boolean UnityEngine.TextCore.Text.UnicodeLineBreakingRules::m_UseModernHangulLineBreakingRules
bool ___m_UseModernHangulLineBreakingRules_4;
};
struct UnicodeLineBreakingRules_t80BE36F5E16AE48FE7B6DE1C91D36B1142B4EC0E_StaticFields
{
// UnityEngine.TextCore.Text.UnicodeLineBreakingRules UnityEngine.TextCore.Text.UnicodeLineBreakingRules::s_Instance
UnicodeLineBreakingRules_t80BE36F5E16AE48FE7B6DE1C91D36B1142B4EC0E* ___s_Instance_0;
// System.Collections.Generic.HashSet`1<System.UInt32> UnityEngine.TextCore.Text.UnicodeLineBreakingRules::s_LeadingCharactersLookup
HashSet_1_t5DD20B42149A11AEBF12A75505306E6EFC34943A* ___s_LeadingCharactersLookup_5;
// System.Collections.Generic.HashSet`1<System.UInt32> UnityEngine.TextCore.Text.UnicodeLineBreakingRules::s_FollowingCharactersLookup
HashSet_1_t5DD20B42149A11AEBF12A75505306E6EFC34943A* ___s_FollowingCharactersLookup_6;
};
// System.ValueType
struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F : public RuntimeObject
{
};
// Native definition for P/Invoke marshalling of System.ValueType
struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.ValueType
struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_com
{
};
// UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32>
struct TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8
{
// T[] UnityEngine.TextCore.Text.TextProcessingStack`1::itemStack
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___itemStack_0;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::index
int32_t ___index_1;
// T UnityEngine.TextCore.Text.TextProcessingStack`1::m_DefaultItem
int32_t ___m_DefaultItem_2;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Capacity
int32_t ___m_Capacity_3;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_RolloverSize
int32_t ___m_RolloverSize_4;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Count
int32_t ___m_Count_5;
};
// UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32Enum>
struct TextProcessingStack_1_t9C24840D494C4878BD8680855123926D6243C90D
{
// T[] UnityEngine.TextCore.Text.TextProcessingStack`1::itemStack
Int32EnumU5BU5D_t87B7DB802810C38016332669039EF42C487A081F* ___itemStack_0;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::index
int32_t ___index_1;
// T UnityEngine.TextCore.Text.TextProcessingStack`1::m_DefaultItem
int32_t ___m_DefaultItem_2;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Capacity
int32_t ___m_Capacity_3;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_RolloverSize
int32_t ___m_RolloverSize_4;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Count
int32_t ___m_Count_5;
};
// UnityEngine.TextCore.Text.TextProcessingStack`1<System.Object>
struct TextProcessingStack_1_t5EA97AAC21CEE068194F77E59929440F85AD3991
{
// T[] UnityEngine.TextCore.Text.TextProcessingStack`1::itemStack
ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918* ___itemStack_0;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::index
int32_t ___index_1;
// T UnityEngine.TextCore.Text.TextProcessingStack`1::m_DefaultItem
RuntimeObject* ___m_DefaultItem_2;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Capacity
int32_t ___m_Capacity_3;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_RolloverSize
int32_t ___m_RolloverSize_4;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Count
int32_t ___m_Count_5;
};
// UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>
struct TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555
{
// T[] UnityEngine.TextCore.Text.TextProcessingStack`1::itemStack
SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C* ___itemStack_0;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::index
int32_t ___index_1;
// T UnityEngine.TextCore.Text.TextProcessingStack`1::m_DefaultItem
float ___m_DefaultItem_2;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Capacity
int32_t ___m_Capacity_3;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_RolloverSize
int32_t ___m_RolloverSize_4;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Count
int32_t ___m_Count_5;
};
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextAlignment>
struct TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F
{
// T[] UnityEngine.TextCore.Text.TextProcessingStack`1::itemStack
TextAlignmentU5BU5D_t756DC2D672145699CB9718DDBA5982ED51A95F49* ___itemStack_0;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::index
int32_t ___index_1;
// T UnityEngine.TextCore.Text.TextProcessingStack`1::m_DefaultItem
int32_t ___m_DefaultItem_2;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Capacity
int32_t ___m_Capacity_3;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_RolloverSize
int32_t ___m_RolloverSize_4;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Count
int32_t ___m_Count_5;
};
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextColorGradient>
struct TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E
{
// T[] UnityEngine.TextCore.Text.TextProcessingStack`1::itemStack
TextColorGradientU5BU5D_tA27A5E49640CF01334A10DBDBC959903AFBD941A* ___itemStack_0;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::index
int32_t ___index_1;
// T UnityEngine.TextCore.Text.TextProcessingStack`1::m_DefaultItem
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* ___m_DefaultItem_2;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Capacity
int32_t ___m_Capacity_3;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_RolloverSize
int32_t ___m_RolloverSize_4;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Count
int32_t ___m_Count_5;
};
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextFontWeight>
struct TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790
{
// T[] UnityEngine.TextCore.Text.TextProcessingStack`1::itemStack
TextFontWeightU5BU5D_t3DE32809AEE657255C8333897D61F2EA5279D43F* ___itemStack_0;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::index
int32_t ___index_1;
// T UnityEngine.TextCore.Text.TextProcessingStack`1::m_DefaultItem
int32_t ___m_DefaultItem_2;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Capacity
int32_t ___m_Capacity_3;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_RolloverSize
int32_t ___m_RolloverSize_4;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Count
int32_t ___m_Count_5;
};
// System.Boolean
struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22
{
// System.Boolean System.Boolean::m_value
bool ___m_value_0;
};
struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22_StaticFields
{
// System.String System.Boolean::TrueString
String_t* ___TrueString_5;
// System.String System.Boolean::FalseString
String_t* ___FalseString_6;
};
// System.Byte
struct Byte_t94D9231AC217BE4D2E004C4CD32DF6D099EA41A3
{
// System.Byte System.Byte::m_value
uint8_t ___m_value_0;
};
// System.Char
struct Char_t521A6F19B456D956AF452D926C32709DC03D6B17
{
// System.Char System.Char::m_value
Il2CppChar ___m_value_0;
};
struct Char_t521A6F19B456D956AF452D926C32709DC03D6B17_StaticFields
{
// System.Byte[] System.Char::s_categoryForLatin1
ByteU5BU5D_tA6237BF417AE52AD70CFB4EF24A7A82613DF9031* ___s_categoryForLatin1_3;
};
// UnityEngine.TextCore.Text.Character
struct Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC : public TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA
{
};
// UnityEngine.Color
struct Color_tD001788D726C3A7F1379BEED0260B9591F440C1F
{
// System.Single UnityEngine.Color::r
float ___r_0;
// System.Single UnityEngine.Color::g
float ___g_1;
// System.Single UnityEngine.Color::b
float ___b_2;
// System.Single UnityEngine.Color::a
float ___a_3;
};
// UnityEngine.Color32
struct Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B
{
union
{
#pragma pack(push, tp, 1)
struct
{
// System.Int32 UnityEngine.Color32::rgba
int32_t ___rgba_0;
};
#pragma pack(pop, tp)
struct
{
int32_t ___rgba_0_forAlignmentOnly;
};
#pragma pack(push, tp, 1)
struct
{
// System.Byte UnityEngine.Color32::r
uint8_t ___r_1;
};
#pragma pack(pop, tp)
struct
{
uint8_t ___r_1_forAlignmentOnly;
};
#pragma pack(push, tp, 1)
struct
{
char ___g_2_OffsetPadding[1];
// System.Byte UnityEngine.Color32::g
uint8_t ___g_2;
};
#pragma pack(pop, tp)
struct
{
char ___g_2_OffsetPadding_forAlignmentOnly[1];
uint8_t ___g_2_forAlignmentOnly;
};
#pragma pack(push, tp, 1)
struct
{
char ___b_3_OffsetPadding[2];
// System.Byte UnityEngine.Color32::b
uint8_t ___b_3;
};
#pragma pack(pop, tp)
struct
{
char ___b_3_OffsetPadding_forAlignmentOnly[2];
uint8_t ___b_3_forAlignmentOnly;
};
#pragma pack(push, tp, 1)
struct
{
char ___a_4_OffsetPadding[3];
// System.Byte UnityEngine.Color32::a
uint8_t ___a_4;
};
#pragma pack(pop, tp)
struct
{
char ___a_4_OffsetPadding_forAlignmentOnly[3];
uint8_t ___a_4_forAlignmentOnly;
};
};
};
// UnityEngine.TextCore.FaceInfo
struct FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756
{
// System.Int32 UnityEngine.TextCore.FaceInfo::m_FaceIndex
int32_t ___m_FaceIndex_0;
// System.String UnityEngine.TextCore.FaceInfo::m_FamilyName
String_t* ___m_FamilyName_1;
// System.String UnityEngine.TextCore.FaceInfo::m_StyleName
String_t* ___m_StyleName_2;
// System.Int32 UnityEngine.TextCore.FaceInfo::m_PointSize
int32_t ___m_PointSize_3;
// System.Single UnityEngine.TextCore.FaceInfo::m_Scale
float ___m_Scale_4;
// System.Single UnityEngine.TextCore.FaceInfo::m_LineHeight
float ___m_LineHeight_5;
// System.Single UnityEngine.TextCore.FaceInfo::m_AscentLine
float ___m_AscentLine_6;
// System.Single UnityEngine.TextCore.FaceInfo::m_CapLine
float ___m_CapLine_7;
// System.Single UnityEngine.TextCore.FaceInfo::m_MeanLine
float ___m_MeanLine_8;
// System.Single UnityEngine.TextCore.FaceInfo::m_Baseline
float ___m_Baseline_9;
// System.Single UnityEngine.TextCore.FaceInfo::m_DescentLine
float ___m_DescentLine_10;
// System.Single UnityEngine.TextCore.FaceInfo::m_SuperscriptOffset
float ___m_SuperscriptOffset_11;
// System.Single UnityEngine.TextCore.FaceInfo::m_SuperscriptSize
float ___m_SuperscriptSize_12;
// System.Single UnityEngine.TextCore.FaceInfo::m_SubscriptOffset
float ___m_SubscriptOffset_13;
// System.Single UnityEngine.TextCore.FaceInfo::m_SubscriptSize
float ___m_SubscriptSize_14;
// System.Single UnityEngine.TextCore.FaceInfo::m_UnderlineOffset
float ___m_UnderlineOffset_15;
// System.Single UnityEngine.TextCore.FaceInfo::m_UnderlineThickness
float ___m_UnderlineThickness_16;
// System.Single UnityEngine.TextCore.FaceInfo::m_StrikethroughOffset
float ___m_StrikethroughOffset_17;
// System.Single UnityEngine.TextCore.FaceInfo::m_StrikethroughThickness
float ___m_StrikethroughThickness_18;
// System.Single UnityEngine.TextCore.FaceInfo::m_TabWidth
float ___m_TabWidth_19;
};
// Native definition for P/Invoke marshalling of UnityEngine.TextCore.FaceInfo
struct FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756_marshaled_pinvoke
{
int32_t ___m_FaceIndex_0;
char* ___m_FamilyName_1;
char* ___m_StyleName_2;
int32_t ___m_PointSize_3;
float ___m_Scale_4;
float ___m_LineHeight_5;
float ___m_AscentLine_6;
float ___m_CapLine_7;
float ___m_MeanLine_8;
float ___m_Baseline_9;
float ___m_DescentLine_10;
float ___m_SuperscriptOffset_11;
float ___m_SuperscriptSize_12;
float ___m_SubscriptOffset_13;
float ___m_SubscriptSize_14;
float ___m_UnderlineOffset_15;
float ___m_UnderlineThickness_16;
float ___m_StrikethroughOffset_17;
float ___m_StrikethroughThickness_18;
float ___m_TabWidth_19;
};
// Native definition for COM marshalling of UnityEngine.TextCore.FaceInfo
struct FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756_marshaled_com
{
int32_t ___m_FaceIndex_0;
Il2CppChar* ___m_FamilyName_1;
Il2CppChar* ___m_StyleName_2;
int32_t ___m_PointSize_3;
float ___m_Scale_4;
float ___m_LineHeight_5;
float ___m_AscentLine_6;
float ___m_CapLine_7;
float ___m_MeanLine_8;
float ___m_Baseline_9;
float ___m_DescentLine_10;
float ___m_SuperscriptOffset_11;
float ___m_SuperscriptSize_12;
float ___m_SubscriptOffset_13;
float ___m_SubscriptSize_14;
float ___m_UnderlineOffset_15;
float ___m_UnderlineThickness_16;
float ___m_StrikethroughOffset_17;
float ___m_StrikethroughThickness_18;
float ___m_TabWidth_19;
};
// UnityEngine.TextCore.Text.FontAssetCreationEditorSettings
struct FontAssetCreationEditorSettings_t0FF28D2E78F090105C63C81F9E438A7B09E3EA52
{
// System.String UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::sourceFontFileGUID
String_t* ___sourceFontFileGUID_0;
// System.Int32 UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::faceIndex
int32_t ___faceIndex_1;
// System.Int32 UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::pointSizeSamplingMode
int32_t ___pointSizeSamplingMode_2;
// System.Int32 UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::pointSize
int32_t ___pointSize_3;
// System.Int32 UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::padding
int32_t ___padding_4;
// System.Int32 UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::packingMode
int32_t ___packingMode_5;
// System.Int32 UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::atlasWidth
int32_t ___atlasWidth_6;
// System.Int32 UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::atlasHeight
int32_t ___atlasHeight_7;
// System.Int32 UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::characterSetSelectionMode
int32_t ___characterSetSelectionMode_8;
// System.String UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::characterSequence
String_t* ___characterSequence_9;
// System.String UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::referencedFontAssetGUID
String_t* ___referencedFontAssetGUID_10;
// System.String UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::referencedTextAssetGUID
String_t* ___referencedTextAssetGUID_11;
// System.Int32 UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::fontStyle
int32_t ___fontStyle_12;
// System.Single UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::fontStyleModifier
float ___fontStyleModifier_13;
// System.Int32 UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::renderMode
int32_t ___renderMode_14;
// System.Boolean UnityEngine.TextCore.Text.FontAssetCreationEditorSettings::includeFontFeatures
bool ___includeFontFeatures_15;
};
// Native definition for P/Invoke marshalling of UnityEngine.TextCore.Text.FontAssetCreationEditorSettings
struct FontAssetCreationEditorSettings_t0FF28D2E78F090105C63C81F9E438A7B09E3EA52_marshaled_pinvoke
{
char* ___sourceFontFileGUID_0;
int32_t ___faceIndex_1;
int32_t ___pointSizeSamplingMode_2;
int32_t ___pointSize_3;
int32_t ___padding_4;
int32_t ___packingMode_5;
int32_t ___atlasWidth_6;
int32_t ___atlasHeight_7;
int32_t ___characterSetSelectionMode_8;
char* ___characterSequence_9;
char* ___referencedFontAssetGUID_10;
char* ___referencedTextAssetGUID_11;
int32_t ___fontStyle_12;
float ___fontStyleModifier_13;
int32_t ___renderMode_14;
int32_t ___includeFontFeatures_15;
};
// Native definition for COM marshalling of UnityEngine.TextCore.Text.FontAssetCreationEditorSettings
struct FontAssetCreationEditorSettings_t0FF28D2E78F090105C63C81F9E438A7B09E3EA52_marshaled_com
{
Il2CppChar* ___sourceFontFileGUID_0;
int32_t ___faceIndex_1;
int32_t ___pointSizeSamplingMode_2;
int32_t ___pointSize_3;
int32_t ___padding_4;
int32_t ___packingMode_5;
int32_t ___atlasWidth_6;
int32_t ___atlasHeight_7;
int32_t ___characterSetSelectionMode_8;
Il2CppChar* ___characterSequence_9;
Il2CppChar* ___referencedFontAssetGUID_10;
Il2CppChar* ___referencedTextAssetGUID_11;
int32_t ___fontStyle_12;
float ___fontStyleModifier_13;
int32_t ___renderMode_14;
int32_t ___includeFontFeatures_15;
};
// UnityEngine.TextCore.Text.FontStyleStack
struct FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7
{
// System.Byte UnityEngine.TextCore.Text.FontStyleStack::bold
uint8_t ___bold_0;
// System.Byte UnityEngine.TextCore.Text.FontStyleStack::italic
uint8_t ___italic_1;
// System.Byte UnityEngine.TextCore.Text.FontStyleStack::underline
uint8_t ___underline_2;
// System.Byte UnityEngine.TextCore.Text.FontStyleStack::strikethrough
uint8_t ___strikethrough_3;
// System.Byte UnityEngine.TextCore.Text.FontStyleStack::highlight
uint8_t ___highlight_4;
// System.Byte UnityEngine.TextCore.Text.FontStyleStack::superscript
uint8_t ___superscript_5;
// System.Byte UnityEngine.TextCore.Text.FontStyleStack::subscript
uint8_t ___subscript_6;
// System.Byte UnityEngine.TextCore.Text.FontStyleStack::uppercase
uint8_t ___uppercase_7;
// System.Byte UnityEngine.TextCore.Text.FontStyleStack::lowercase
uint8_t ___lowercase_8;
// System.Byte UnityEngine.TextCore.Text.FontStyleStack::smallcaps
uint8_t ___smallcaps_9;
};
// UnityEngine.TextCore.GlyphMetrics
struct GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A
{
// System.Single UnityEngine.TextCore.GlyphMetrics::m_Width
float ___m_Width_0;
// System.Single UnityEngine.TextCore.GlyphMetrics::m_Height
float ___m_Height_1;
// System.Single UnityEngine.TextCore.GlyphMetrics::m_HorizontalBearingX
float ___m_HorizontalBearingX_2;
// System.Single UnityEngine.TextCore.GlyphMetrics::m_HorizontalBearingY
float ___m_HorizontalBearingY_3;
// System.Single UnityEngine.TextCore.GlyphMetrics::m_HorizontalAdvance
float ___m_HorizontalAdvance_4;
};
// UnityEngine.TextCore.GlyphRect
struct GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D
{
// System.Int32 UnityEngine.TextCore.GlyphRect::m_X
int32_t ___m_X_0;
// System.Int32 UnityEngine.TextCore.GlyphRect::m_Y
int32_t ___m_Y_1;
// System.Int32 UnityEngine.TextCore.GlyphRect::m_Width
int32_t ___m_Width_2;
// System.Int32 UnityEngine.TextCore.GlyphRect::m_Height
int32_t ___m_Height_3;
};
struct GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D_StaticFields
{
// UnityEngine.TextCore.GlyphRect UnityEngine.TextCore.GlyphRect::s_ZeroGlyphRect
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D ___s_ZeroGlyphRect_4;
};
// UnityEngine.TextCore.LowLevel.GlyphValueRecord
struct GlyphValueRecord_t780927A39D46924E0D546A2AE5DDF1BB2B5A9C8E
{
// System.Single UnityEngine.TextCore.LowLevel.GlyphValueRecord::m_XPlacement
float ___m_XPlacement_0;
// System.Single UnityEngine.TextCore.LowLevel.GlyphValueRecord::m_YPlacement
float ___m_YPlacement_1;
// System.Single UnityEngine.TextCore.LowLevel.GlyphValueRecord::m_XAdvance
float ___m_XAdvance_2;
// System.Single UnityEngine.TextCore.LowLevel.GlyphValueRecord::m_YAdvance
float ___m_YAdvance_3;
};
// System.Int32
struct Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C
{
// System.Int32 System.Int32::m_value
int32_t ___m_value_0;
};
// System.IntPtr
struct IntPtr_t
{
// System.Void* System.IntPtr::m_value
void* ___m_value_0;
};
struct IntPtr_t_StaticFields
{
// System.IntPtr System.IntPtr::Zero
intptr_t ___Zero_1;
};
// UnityEngine.TextCore.Text.LinkInfo
struct LinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8
{
// System.Int32 UnityEngine.TextCore.Text.LinkInfo::hashCode
int32_t ___hashCode_0;
// System.Int32 UnityEngine.TextCore.Text.LinkInfo::linkIdFirstCharacterIndex
int32_t ___linkIdFirstCharacterIndex_1;
// System.Int32 UnityEngine.TextCore.Text.LinkInfo::linkIdLength
int32_t ___linkIdLength_2;
// System.Int32 UnityEngine.TextCore.Text.LinkInfo::linkTextfirstCharacterIndex
int32_t ___linkTextfirstCharacterIndex_3;
// System.Int32 UnityEngine.TextCore.Text.LinkInfo::linkTextLength
int32_t ___linkTextLength_4;
// System.Char[] UnityEngine.TextCore.Text.LinkInfo::linkId
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* ___linkId_5;
};
// Native definition for P/Invoke marshalling of UnityEngine.TextCore.Text.LinkInfo
struct LinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8_marshaled_pinvoke
{
int32_t ___hashCode_0;
int32_t ___linkIdFirstCharacterIndex_1;
int32_t ___linkIdLength_2;
int32_t ___linkTextfirstCharacterIndex_3;
int32_t ___linkTextLength_4;
uint8_t* ___linkId_5;
};
// Native definition for COM marshalling of UnityEngine.TextCore.Text.LinkInfo
struct LinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8_marshaled_com
{
int32_t ___hashCode_0;
int32_t ___linkIdFirstCharacterIndex_1;
int32_t ___linkIdLength_2;
int32_t ___linkTextfirstCharacterIndex_3;
int32_t ___linkTextLength_4;
uint8_t* ___linkId_5;
};
// UnityEngine.TextCore.Text.MaterialReference
struct MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26
{
// System.Int32 UnityEngine.TextCore.Text.MaterialReference::index
int32_t ___index_0;
// UnityEngine.TextCore.Text.FontAsset UnityEngine.TextCore.Text.MaterialReference::fontAsset
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset_1;
// UnityEngine.TextCore.Text.SpriteAsset UnityEngine.TextCore.Text.MaterialReference::spriteAsset
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___spriteAsset_2;
// UnityEngine.Material UnityEngine.TextCore.Text.MaterialReference::material
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material_3;
// System.Boolean UnityEngine.TextCore.Text.MaterialReference::isDefaultMaterial
bool ___isDefaultMaterial_4;
// System.Boolean UnityEngine.TextCore.Text.MaterialReference::isFallbackMaterial
bool ___isFallbackMaterial_5;
// UnityEngine.Material UnityEngine.TextCore.Text.MaterialReference::fallbackMaterial
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___fallbackMaterial_6;
// System.Single UnityEngine.TextCore.Text.MaterialReference::padding
float ___padding_7;
// System.Int32 UnityEngine.TextCore.Text.MaterialReference::referenceCount
int32_t ___referenceCount_8;
};
// Native definition for P/Invoke marshalling of UnityEngine.TextCore.Text.MaterialReference
struct MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26_marshaled_pinvoke
{
int32_t ___index_0;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset_1;
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___spriteAsset_2;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material_3;
int32_t ___isDefaultMaterial_4;
int32_t ___isFallbackMaterial_5;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___fallbackMaterial_6;
float ___padding_7;
int32_t ___referenceCount_8;
};
// Native definition for COM marshalling of UnityEngine.TextCore.Text.MaterialReference
struct MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26_marshaled_com
{
int32_t ___index_0;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset_1;
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___spriteAsset_2;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material_3;
int32_t ___isDefaultMaterial_4;
int32_t ___isFallbackMaterial_5;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___fallbackMaterial_6;
float ___padding_7;
int32_t ___referenceCount_8;
};
// UnityEngine.Matrix4x4
struct Matrix4x4_tDB70CF134A14BA38190C59AA700BCE10E2AED3E6
{
// System.Single UnityEngine.Matrix4x4::m00
float ___m00_0;
// System.Single UnityEngine.Matrix4x4::m10
float ___m10_1;
// System.Single UnityEngine.Matrix4x4::m20
float ___m20_2;
// System.Single UnityEngine.Matrix4x4::m30
float ___m30_3;
// System.Single UnityEngine.Matrix4x4::m01
float ___m01_4;
// System.Single UnityEngine.Matrix4x4::m11
float ___m11_5;
// System.Single UnityEngine.Matrix4x4::m21
float ___m21_6;
// System.Single UnityEngine.Matrix4x4::m31
float ___m31_7;
// System.Single UnityEngine.Matrix4x4::m02
float ___m02_8;
// System.Single UnityEngine.Matrix4x4::m12
float ___m12_9;
// System.Single UnityEngine.Matrix4x4::m22
float ___m22_10;
// System.Single UnityEngine.Matrix4x4::m32
float ___m32_11;
// System.Single UnityEngine.Matrix4x4::m03
float ___m03_12;
// System.Single UnityEngine.Matrix4x4::m13
float ___m13_13;
// System.Single UnityEngine.Matrix4x4::m23
float ___m23_14;
// System.Single UnityEngine.Matrix4x4::m33
float ___m33_15;
};
struct Matrix4x4_tDB70CF134A14BA38190C59AA700BCE10E2AED3E6_StaticFields
{
// UnityEngine.Matrix4x4 UnityEngine.Matrix4x4::zeroMatrix
Matrix4x4_tDB70CF134A14BA38190C59AA700BCE10E2AED3E6 ___zeroMatrix_16;
// UnityEngine.Matrix4x4 UnityEngine.Matrix4x4::identityMatrix
Matrix4x4_tDB70CF134A14BA38190C59AA700BCE10E2AED3E6 ___identityMatrix_17;
};
// UnityEngine.Quaternion
struct Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974
{
// System.Single UnityEngine.Quaternion::x
float ___x_0;
// System.Single UnityEngine.Quaternion::y
float ___y_1;
// System.Single UnityEngine.Quaternion::z
float ___z_2;
// System.Single UnityEngine.Quaternion::w
float ___w_3;
};
struct Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974_StaticFields
{
// UnityEngine.Quaternion UnityEngine.Quaternion::identityQuaternion
Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974 ___identityQuaternion_4;
};
// UnityEngine.Rect
struct Rect_tA04E0F8A1830E767F40FB27ECD8D309303571F0D
{
// System.Single UnityEngine.Rect::m_XMin
float ___m_XMin_0;
// System.Single UnityEngine.Rect::m_YMin
float ___m_YMin_1;
// System.Single UnityEngine.Rect::m_Width
float ___m_Width_2;
// System.Single UnityEngine.Rect::m_Height
float ___m_Height_3;
};
// UnityEngine.TextCore.Text.RichTextTagAttribute
struct RichTextTagAttribute_t0600951F833208392F1D8EE3E6A58AD5C797F9DA
{
// System.Int32 UnityEngine.TextCore.Text.RichTextTagAttribute::nameHashCode
int32_t ___nameHashCode_0;
// System.Int32 UnityEngine.TextCore.Text.RichTextTagAttribute::valueHashCode
int32_t ___valueHashCode_1;
// UnityEngine.TextCore.Text.TagValueType UnityEngine.TextCore.Text.RichTextTagAttribute::valueType
int32_t ___valueType_2;
// System.Int32 UnityEngine.TextCore.Text.RichTextTagAttribute::valueStartIndex
int32_t ___valueStartIndex_3;
// System.Int32 UnityEngine.TextCore.Text.RichTextTagAttribute::valueLength
int32_t ___valueLength_4;
};
// System.Single
struct Single_t4530F2FF86FCB0DC29F35385CA1BD21BE294761C
{
// System.Single System.Single::m_value
float ___m_value_0;
};
// UnityEngine.TextCore.Text.SpriteCharacter
struct SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5 : public TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA
{
// System.String UnityEngine.TextCore.Text.SpriteCharacter::m_Name
String_t* ___m_Name_6;
// System.Int32 UnityEngine.TextCore.Text.SpriteCharacter::m_HashCode
int32_t ___m_HashCode_7;
};
// System.UInt32
struct UInt32_t1833D51FFA667B18A5AA4B8D34DE284F8495D29B
{
// System.UInt32 System.UInt32::m_value
uint32_t ___m_value_0;
};
// UnityEngine.Vector2
struct Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7
{
// System.Single UnityEngine.Vector2::x
float ___x_0;
// System.Single UnityEngine.Vector2::y
float ___y_1;
};
struct Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7_StaticFields
{
// UnityEngine.Vector2 UnityEngine.Vector2::zeroVector
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___zeroVector_2;
// UnityEngine.Vector2 UnityEngine.Vector2::oneVector
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___oneVector_3;
// UnityEngine.Vector2 UnityEngine.Vector2::upVector
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___upVector_4;
// UnityEngine.Vector2 UnityEngine.Vector2::downVector
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___downVector_5;
// UnityEngine.Vector2 UnityEngine.Vector2::leftVector
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___leftVector_6;
// UnityEngine.Vector2 UnityEngine.Vector2::rightVector
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___rightVector_7;
// UnityEngine.Vector2 UnityEngine.Vector2::positiveInfinityVector
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___positiveInfinityVector_8;
// UnityEngine.Vector2 UnityEngine.Vector2::negativeInfinityVector
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___negativeInfinityVector_9;
};
// UnityEngine.Vector3
struct Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2
{
// System.Single UnityEngine.Vector3::x
float ___x_2;
// System.Single UnityEngine.Vector3::y
float ___y_3;
// System.Single UnityEngine.Vector3::z
float ___z_4;
};
struct Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2_StaticFields
{
// UnityEngine.Vector3 UnityEngine.Vector3::zeroVector
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___zeroVector_5;
// UnityEngine.Vector3 UnityEngine.Vector3::oneVector
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___oneVector_6;
// UnityEngine.Vector3 UnityEngine.Vector3::upVector
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___upVector_7;
// UnityEngine.Vector3 UnityEngine.Vector3::downVector
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___downVector_8;
// UnityEngine.Vector3 UnityEngine.Vector3::leftVector
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___leftVector_9;
// UnityEngine.Vector3 UnityEngine.Vector3::rightVector
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___rightVector_10;
// UnityEngine.Vector3 UnityEngine.Vector3::forwardVector
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___forwardVector_11;
// UnityEngine.Vector3 UnityEngine.Vector3::backVector
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___backVector_12;
// UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___positiveInfinityVector_13;
// UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___negativeInfinityVector_14;
};
// UnityEngine.Vector4
struct Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3
{
// System.Single UnityEngine.Vector4::x
float ___x_1;
// System.Single UnityEngine.Vector4::y
float ___y_2;
// System.Single UnityEngine.Vector4::z
float ___z_3;
// System.Single UnityEngine.Vector4::w
float ___w_4;
};
struct Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3_StaticFields
{
// UnityEngine.Vector4 UnityEngine.Vector4::zeroVector
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3 ___zeroVector_5;
// UnityEngine.Vector4 UnityEngine.Vector4::oneVector
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3 ___oneVector_6;
// UnityEngine.Vector4 UnityEngine.Vector4::positiveInfinityVector
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3 ___positiveInfinityVector_7;
// UnityEngine.Vector4 UnityEngine.Vector4::negativeInfinityVector
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3 ___negativeInfinityVector_8;
};
// System.Void
struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915
{
union
{
struct
{
};
uint8_t Void_t4861ACF8F4594C3437BB48B6E56783494B843915__padding[1];
};
};
// UnityEngine.TextCore.Text.XmlTagAttribute
struct XmlTagAttribute_t2F0EE4823C3BB8B9ED6844183CA998A44EA1AB59
{
// System.Int32 UnityEngine.TextCore.Text.XmlTagAttribute::nameHashCode
int32_t ___nameHashCode_0;
// UnityEngine.TextCore.Text.TagValueType UnityEngine.TextCore.Text.XmlTagAttribute::valueType
int32_t ___valueType_1;
// System.Int32 UnityEngine.TextCore.Text.XmlTagAttribute::valueStartIndex
int32_t ___valueStartIndex_2;
// System.Int32 UnityEngine.TextCore.Text.XmlTagAttribute::valueLength
int32_t ___valueLength_3;
// System.Int32 UnityEngine.TextCore.Text.XmlTagAttribute::valueHashCode
int32_t ___valueHashCode_4;
};
// UnityEngine.TextCore.Text.TextGenerator/SpecialCharacter
struct SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD
{
// UnityEngine.TextCore.Text.Character UnityEngine.TextCore.Text.TextGenerator/SpecialCharacter::character
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* ___character_0;
// UnityEngine.TextCore.Text.FontAsset UnityEngine.TextCore.Text.TextGenerator/SpecialCharacter::fontAsset
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset_1;
// UnityEngine.Material UnityEngine.TextCore.Text.TextGenerator/SpecialCharacter::material
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material_2;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator/SpecialCharacter::materialIndex
int32_t ___materialIndex_3;
};
// Native definition for P/Invoke marshalling of UnityEngine.TextCore.Text.TextGenerator/SpecialCharacter
struct SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD_marshaled_pinvoke
{
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* ___character_0;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset_1;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material_2;
int32_t ___materialIndex_3;
};
// Native definition for COM marshalling of UnityEngine.TextCore.Text.TextGenerator/SpecialCharacter
struct SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD_marshaled_com
{
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* ___character_0;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset_1;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material_2;
int32_t ___materialIndex_3;
};
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.Color32>
struct TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63
{
// T[] UnityEngine.TextCore.Text.TextProcessingStack`1::itemStack
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* ___itemStack_0;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::index
int32_t ___index_1;
// T UnityEngine.TextCore.Text.TextProcessingStack`1::m_DefaultItem
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___m_DefaultItem_2;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Capacity
int32_t ___m_Capacity_3;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_RolloverSize
int32_t ___m_RolloverSize_4;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Count
int32_t ___m_Count_5;
};
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.MaterialReference>
struct TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA
{
// T[] UnityEngine.TextCore.Text.TextProcessingStack`1::itemStack
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* ___itemStack_0;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::index
int32_t ___index_1;
// T UnityEngine.TextCore.Text.TextProcessingStack`1::m_DefaultItem
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 ___m_DefaultItem_2;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Capacity
int32_t ___m_Capacity_3;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_RolloverSize
int32_t ___m_RolloverSize_4;
// System.Int32 UnityEngine.TextCore.Text.TextProcessingStack`1::m_Count
int32_t ___m_Count_5;
};
// UnityEngine.TextCore.Text.Extents
struct Extents_t369FB2B84521A0229C2FA3D4C8592B14E07CEFE6
{
// UnityEngine.Vector2 UnityEngine.TextCore.Text.Extents::min
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___min_0;
// UnityEngine.Vector2 UnityEngine.TextCore.Text.Extents::max
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___max_1;
};
// UnityEngine.TextCore.Glyph
struct Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F : public RuntimeObject
{
// System.UInt32 UnityEngine.TextCore.Glyph::m_Index
uint32_t ___m_Index_0;
// UnityEngine.TextCore.GlyphMetrics UnityEngine.TextCore.Glyph::m_Metrics
GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A ___m_Metrics_1;
// UnityEngine.TextCore.GlyphRect UnityEngine.TextCore.Glyph::m_GlyphRect
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D ___m_GlyphRect_2;
// System.Single UnityEngine.TextCore.Glyph::m_Scale
float ___m_Scale_3;
// System.Int32 UnityEngine.TextCore.Glyph::m_AtlasIndex
int32_t ___m_AtlasIndex_4;
};
// Native definition for P/Invoke marshalling of UnityEngine.TextCore.Glyph
struct Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F_marshaled_pinvoke
{
uint32_t ___m_Index_0;
GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A ___m_Metrics_1;
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D ___m_GlyphRect_2;
float ___m_Scale_3;
int32_t ___m_AtlasIndex_4;
};
// Native definition for COM marshalling of UnityEngine.TextCore.Glyph
struct Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F_marshaled_com
{
uint32_t ___m_Index_0;
GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A ___m_Metrics_1;
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D ___m_GlyphRect_2;
float ___m_Scale_3;
int32_t ___m_AtlasIndex_4;
};
// UnityEngine.TextCore.LowLevel.GlyphAdjustmentRecord
struct GlyphAdjustmentRecord_tC7A1B2E0AC7C4ED9CDB8E95E48790A46B6F315F7
{
// System.UInt32 UnityEngine.TextCore.LowLevel.GlyphAdjustmentRecord::m_GlyphIndex
uint32_t ___m_GlyphIndex_0;
// UnityEngine.TextCore.LowLevel.GlyphValueRecord UnityEngine.TextCore.LowLevel.GlyphAdjustmentRecord::m_GlyphValueRecord
GlyphValueRecord_t780927A39D46924E0D546A2AE5DDF1BB2B5A9C8E ___m_GlyphValueRecord_1;
};
// UnityEngine.TextCore.Text.MeshInfo
struct MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F
{
// System.Int32 UnityEngine.TextCore.Text.MeshInfo::vertexCount
int32_t ___vertexCount_1;
// UnityEngine.Vector3[] UnityEngine.TextCore.Text.MeshInfo::vertices
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* ___vertices_2;
// UnityEngine.Vector2[] UnityEngine.TextCore.Text.MeshInfo::uvs0
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* ___uvs0_3;
// UnityEngine.Vector2[] UnityEngine.TextCore.Text.MeshInfo::uvs2
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* ___uvs2_4;
// UnityEngine.Color32[] UnityEngine.TextCore.Text.MeshInfo::colors32
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* ___colors32_5;
// System.Int32[] UnityEngine.TextCore.Text.MeshInfo::triangles
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___triangles_6;
// UnityEngine.Material UnityEngine.TextCore.Text.MeshInfo::material
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material_7;
};
struct MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F_StaticFields
{
// UnityEngine.Color32 UnityEngine.TextCore.Text.MeshInfo::k_DefaultColor
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___k_DefaultColor_0;
};
// Native definition for P/Invoke marshalling of UnityEngine.TextCore.Text.MeshInfo
struct MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F_marshaled_pinvoke
{
int32_t ___vertexCount_1;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2* ___vertices_2;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7* ___uvs0_3;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7* ___uvs2_4;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* ___colors32_5;
Il2CppSafeArray/*NONE*/* ___triangles_6;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material_7;
};
// Native definition for COM marshalling of UnityEngine.TextCore.Text.MeshInfo
struct MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F_marshaled_com
{
int32_t ___vertexCount_1;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2* ___vertices_2;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7* ___uvs0_3;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7* ___uvs2_4;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* ___colors32_5;
Il2CppSafeArray/*NONE*/* ___triangles_6;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material_7;
};
// UnityEngine.Object
struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C : public RuntimeObject
{
// System.IntPtr UnityEngine.Object::m_CachedPtr
intptr_t ___m_CachedPtr_0;
};
struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_StaticFields
{
// System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject
int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1;
};
// Native definition for P/Invoke marshalling of UnityEngine.Object
struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_pinvoke
{
intptr_t ___m_CachedPtr_0;
};
// Native definition for COM marshalling of UnityEngine.Object
struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_com
{
intptr_t ___m_CachedPtr_0;
};
// Unity.Profiling.ProfilerMarker
struct ProfilerMarker_tA256E18DA86EDBC5528CE066FC91C96EE86501AD
{
// System.IntPtr Unity.Profiling.ProfilerMarker::m_Ptr
intptr_t ___m_Ptr_0;
};
// UnityEngine.TextCore.Text.TextGenerationSettings
struct TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2 : public RuntimeObject
{
// System.String UnityEngine.TextCore.Text.TextGenerationSettings::text
String_t* ___text_0;
// UnityEngine.Rect UnityEngine.TextCore.Text.TextGenerationSettings::screenRect
Rect_tA04E0F8A1830E767F40FB27ECD8D309303571F0D ___screenRect_1;
// UnityEngine.Vector4 UnityEngine.TextCore.Text.TextGenerationSettings::margins
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3 ___margins_2;
// System.Single UnityEngine.TextCore.Text.TextGenerationSettings::scale
float ___scale_3;
// UnityEngine.TextCore.Text.FontAsset UnityEngine.TextCore.Text.TextGenerationSettings::fontAsset
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset_4;
// UnityEngine.Material UnityEngine.TextCore.Text.TextGenerationSettings::material
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material_5;
// UnityEngine.TextCore.Text.SpriteAsset UnityEngine.TextCore.Text.TextGenerationSettings::spriteAsset
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___spriteAsset_6;
// UnityEngine.TextCore.Text.TextStyleSheet UnityEngine.TextCore.Text.TextGenerationSettings::styleSheet
TextStyleSheet_t86A0FA5523897465F371A2ABC17DFA3558C8D15E* ___styleSheet_7;
// UnityEngine.TextCore.Text.FontStyles UnityEngine.TextCore.Text.TextGenerationSettings::fontStyle
int32_t ___fontStyle_8;
// UnityEngine.TextCore.Text.TextSettings UnityEngine.TextCore.Text.TextGenerationSettings::textSettings
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* ___textSettings_9;
// UnityEngine.TextCore.Text.TextAlignment UnityEngine.TextCore.Text.TextGenerationSettings::textAlignment
int32_t ___textAlignment_10;
// UnityEngine.TextCore.Text.TextOverflowMode UnityEngine.TextCore.Text.TextGenerationSettings::overflowMode
int32_t ___overflowMode_11;
// System.Boolean UnityEngine.TextCore.Text.TextGenerationSettings::wordWrap
bool ___wordWrap_12;
// System.Single UnityEngine.TextCore.Text.TextGenerationSettings::wordWrappingRatio
float ___wordWrappingRatio_13;
// UnityEngine.Color UnityEngine.TextCore.Text.TextGenerationSettings::color
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F ___color_14;
// UnityEngine.TextCore.Text.TextColorGradient UnityEngine.TextCore.Text.TextGenerationSettings::fontColorGradient
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* ___fontColorGradient_15;
// System.Boolean UnityEngine.TextCore.Text.TextGenerationSettings::tintSprites
bool ___tintSprites_16;
// System.Boolean UnityEngine.TextCore.Text.TextGenerationSettings::overrideRichTextColors
bool ___overrideRichTextColors_17;
// System.Single UnityEngine.TextCore.Text.TextGenerationSettings::fontSize
float ___fontSize_18;
// System.Boolean UnityEngine.TextCore.Text.TextGenerationSettings::autoSize
bool ___autoSize_19;
// System.Single UnityEngine.TextCore.Text.TextGenerationSettings::fontSizeMin
float ___fontSizeMin_20;
// System.Single UnityEngine.TextCore.Text.TextGenerationSettings::fontSizeMax
float ___fontSizeMax_21;
// System.Boolean UnityEngine.TextCore.Text.TextGenerationSettings::enableKerning
bool ___enableKerning_22;
// System.Boolean UnityEngine.TextCore.Text.TextGenerationSettings::richText
bool ___richText_23;
// System.Boolean UnityEngine.TextCore.Text.TextGenerationSettings::isRightToLeft
bool ___isRightToLeft_24;
// System.Boolean UnityEngine.TextCore.Text.TextGenerationSettings::extraPadding
bool ___extraPadding_25;
// System.Boolean UnityEngine.TextCore.Text.TextGenerationSettings::parseControlCharacters
bool ___parseControlCharacters_26;
// System.Single UnityEngine.TextCore.Text.TextGenerationSettings::characterSpacing
float ___characterSpacing_27;
// System.Single UnityEngine.TextCore.Text.TextGenerationSettings::wordSpacing
float ___wordSpacing_28;
// System.Single UnityEngine.TextCore.Text.TextGenerationSettings::lineSpacing
float ___lineSpacing_29;
// System.Single UnityEngine.TextCore.Text.TextGenerationSettings::paragraphSpacing
float ___paragraphSpacing_30;
// System.Single UnityEngine.TextCore.Text.TextGenerationSettings::lineSpacingMax
float ___lineSpacingMax_31;
// System.Int32 UnityEngine.TextCore.Text.TextGenerationSettings::maxVisibleCharacters
int32_t ___maxVisibleCharacters_32;
// System.Int32 UnityEngine.TextCore.Text.TextGenerationSettings::maxVisibleWords
int32_t ___maxVisibleWords_33;
// System.Int32 UnityEngine.TextCore.Text.TextGenerationSettings::maxVisibleLines
int32_t ___maxVisibleLines_34;
// System.Int32 UnityEngine.TextCore.Text.TextGenerationSettings::firstVisibleCharacter
int32_t ___firstVisibleCharacter_35;
// System.Boolean UnityEngine.TextCore.Text.TextGenerationSettings::useMaxVisibleDescender
bool ___useMaxVisibleDescender_36;
// UnityEngine.TextCore.Text.TextFontWeight UnityEngine.TextCore.Text.TextGenerationSettings::fontWeight
int32_t ___fontWeight_37;
// System.Int32 UnityEngine.TextCore.Text.TextGenerationSettings::pageToDisplay
int32_t ___pageToDisplay_38;
// UnityEngine.TextCore.Text.TextureMapping UnityEngine.TextCore.Text.TextGenerationSettings::horizontalMapping
int32_t ___horizontalMapping_39;
// UnityEngine.TextCore.Text.TextureMapping UnityEngine.TextCore.Text.TextGenerationSettings::verticalMapping
int32_t ___verticalMapping_40;
// System.Single UnityEngine.TextCore.Text.TextGenerationSettings::uvLineOffset
float ___uvLineOffset_41;
// UnityEngine.TextCore.Text.VertexSortingOrder UnityEngine.TextCore.Text.TextGenerationSettings::geometrySortingOrder
int32_t ___geometrySortingOrder_42;
// System.Boolean UnityEngine.TextCore.Text.TextGenerationSettings::inverseYAxis
bool ___inverseYAxis_43;
// System.Single UnityEngine.TextCore.Text.TextGenerationSettings::charWidthMaxAdj
float ___charWidthMaxAdj_44;
};
// UnityEngine.TextCore.Text.TextInfo
struct TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09 : public RuntimeObject
{
// System.Int32 UnityEngine.TextCore.Text.TextInfo::characterCount
int32_t ___characterCount_2;
// System.Int32 UnityEngine.TextCore.Text.TextInfo::spriteCount
int32_t ___spriteCount_3;
// System.Int32 UnityEngine.TextCore.Text.TextInfo::spaceCount
int32_t ___spaceCount_4;
// System.Int32 UnityEngine.TextCore.Text.TextInfo::wordCount
int32_t ___wordCount_5;
// System.Int32 UnityEngine.TextCore.Text.TextInfo::linkCount
int32_t ___linkCount_6;
// System.Int32 UnityEngine.TextCore.Text.TextInfo::lineCount
int32_t ___lineCount_7;
// System.Int32 UnityEngine.TextCore.Text.TextInfo::pageCount
int32_t ___pageCount_8;
// System.Int32 UnityEngine.TextCore.Text.TextInfo::materialCount
int32_t ___materialCount_9;
// UnityEngine.TextCore.Text.TextElementInfo[] UnityEngine.TextCore.Text.TextInfo::textElementInfo
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* ___textElementInfo_10;
// UnityEngine.TextCore.Text.WordInfo[] UnityEngine.TextCore.Text.TextInfo::wordInfo
WordInfoU5BU5D_tAD74C9720883D7BB229A20FFAE9EFD2CF9963F7B* ___wordInfo_11;
// UnityEngine.TextCore.Text.LinkInfo[] UnityEngine.TextCore.Text.TextInfo::linkInfo
LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51* ___linkInfo_12;
// UnityEngine.TextCore.Text.LineInfo[] UnityEngine.TextCore.Text.TextInfo::lineInfo
LineInfoU5BU5D_t37598F2175B291797270D1161DC29B6296FB169D* ___lineInfo_13;
// UnityEngine.TextCore.Text.PageInfo[] UnityEngine.TextCore.Text.TextInfo::pageInfo
PageInfoU5BU5D_tFEA2CF88695491CFC2F2A2EF6BDCC56E52B0A6D4* ___pageInfo_14;
// UnityEngine.TextCore.Text.MeshInfo[] UnityEngine.TextCore.Text.TextInfo::meshInfo
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* ___meshInfo_15;
// System.Boolean UnityEngine.TextCore.Text.TextInfo::isDirty
bool ___isDirty_16;
};
struct TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09_StaticFields
{
// UnityEngine.Vector2 UnityEngine.TextCore.Text.TextInfo::s_InfinityVectorPositive
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___s_InfinityVectorPositive_0;
// UnityEngine.Vector2 UnityEngine.TextCore.Text.TextInfo::s_InfinityVectorNegative
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___s_InfinityVectorNegative_1;
};
// UnityEngine.TextCore.Text.TextVertex
struct TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9
{
// UnityEngine.Vector3 UnityEngine.TextCore.Text.TextVertex::position
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___position_0;
// UnityEngine.Vector2 UnityEngine.TextCore.Text.TextVertex::uv
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___uv_1;
// UnityEngine.Vector2 UnityEngine.TextCore.Text.TextVertex::uv2
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___uv2_2;
// UnityEngine.Vector2 UnityEngine.TextCore.Text.TextVertex::uv4
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___uv4_3;
// UnityEngine.Color32 UnityEngine.TextCore.Text.TextVertex::color
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___color_4;
};
// UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord
struct GlyphPairAdjustmentRecord_t6E4295094D349DBF22BC59116FBC8F22EA55420E
{
// UnityEngine.TextCore.LowLevel.GlyphAdjustmentRecord UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord::m_FirstAdjustmentRecord
GlyphAdjustmentRecord_tC7A1B2E0AC7C4ED9CDB8E95E48790A46B6F315F7 ___m_FirstAdjustmentRecord_0;
// UnityEngine.TextCore.LowLevel.GlyphAdjustmentRecord UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord::m_SecondAdjustmentRecord
GlyphAdjustmentRecord_tC7A1B2E0AC7C4ED9CDB8E95E48790A46B6F315F7 ___m_SecondAdjustmentRecord_1;
// UnityEngine.TextCore.LowLevel.FontFeatureLookupFlags UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord::m_FeatureLookupFlags
int32_t ___m_FeatureLookupFlags_2;
};
// UnityEngine.TextCore.Text.LineInfo
struct LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5
{
// System.Int32 UnityEngine.TextCore.Text.LineInfo::controlCharacterCount
int32_t ___controlCharacterCount_0;
// System.Int32 UnityEngine.TextCore.Text.LineInfo::characterCount
int32_t ___characterCount_1;
// System.Int32 UnityEngine.TextCore.Text.LineInfo::visibleCharacterCount
int32_t ___visibleCharacterCount_2;
// System.Int32 UnityEngine.TextCore.Text.LineInfo::spaceCount
int32_t ___spaceCount_3;
// System.Int32 UnityEngine.TextCore.Text.LineInfo::visibleSpaceCount
int32_t ___visibleSpaceCount_4;
// System.Int32 UnityEngine.TextCore.Text.LineInfo::wordCount
int32_t ___wordCount_5;
// System.Int32 UnityEngine.TextCore.Text.LineInfo::firstCharacterIndex
int32_t ___firstCharacterIndex_6;
// System.Int32 UnityEngine.TextCore.Text.LineInfo::firstVisibleCharacterIndex
int32_t ___firstVisibleCharacterIndex_7;
// System.Int32 UnityEngine.TextCore.Text.LineInfo::lastCharacterIndex
int32_t ___lastCharacterIndex_8;
// System.Int32 UnityEngine.TextCore.Text.LineInfo::lastVisibleCharacterIndex
int32_t ___lastVisibleCharacterIndex_9;
// System.Single UnityEngine.TextCore.Text.LineInfo::length
float ___length_10;
// System.Single UnityEngine.TextCore.Text.LineInfo::lineHeight
float ___lineHeight_11;
// System.Single UnityEngine.TextCore.Text.LineInfo::ascender
float ___ascender_12;
// System.Single UnityEngine.TextCore.Text.LineInfo::baseline
float ___baseline_13;
// System.Single UnityEngine.TextCore.Text.LineInfo::descender
float ___descender_14;
// System.Single UnityEngine.TextCore.Text.LineInfo::maxAdvance
float ___maxAdvance_15;
// System.Single UnityEngine.TextCore.Text.LineInfo::width
float ___width_16;
// System.Single UnityEngine.TextCore.Text.LineInfo::marginLeft
float ___marginLeft_17;
// System.Single UnityEngine.TextCore.Text.LineInfo::marginRight
float ___marginRight_18;
// UnityEngine.TextCore.Text.TextAlignment UnityEngine.TextCore.Text.LineInfo::alignment
int32_t ___alignment_19;
// UnityEngine.TextCore.Text.Extents UnityEngine.TextCore.Text.LineInfo::lineExtents
Extents_t369FB2B84521A0229C2FA3D4C8592B14E07CEFE6 ___lineExtents_20;
};
// UnityEngine.Material
struct Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3 : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C
{
};
// UnityEngine.ScriptableObject
struct ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C
{
};
// Native definition for P/Invoke marshalling of UnityEngine.ScriptableObject
struct ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A_marshaled_pinvoke : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_pinvoke
{
};
// Native definition for COM marshalling of UnityEngine.ScriptableObject
struct ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A_marshaled_com : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_com
{
};
// UnityEngine.TextCore.Text.TextElementInfo
struct TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976
{
// System.Char UnityEngine.TextCore.Text.TextElementInfo::character
Il2CppChar ___character_0;
// System.Int32 UnityEngine.TextCore.Text.TextElementInfo::index
int32_t ___index_1;
// UnityEngine.TextCore.Text.TextElementType UnityEngine.TextCore.Text.TextElementInfo::elementType
uint8_t ___elementType_2;
// UnityEngine.TextCore.Text.TextElement UnityEngine.TextCore.Text.TextElementInfo::textElement
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* ___textElement_3;
// UnityEngine.TextCore.Text.FontAsset UnityEngine.TextCore.Text.TextElementInfo::fontAsset
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset_4;
// UnityEngine.TextCore.Text.SpriteAsset UnityEngine.TextCore.Text.TextElementInfo::spriteAsset
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___spriteAsset_5;
// System.Int32 UnityEngine.TextCore.Text.TextElementInfo::spriteIndex
int32_t ___spriteIndex_6;
// UnityEngine.Material UnityEngine.TextCore.Text.TextElementInfo::material
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material_7;
// System.Int32 UnityEngine.TextCore.Text.TextElementInfo::materialReferenceIndex
int32_t ___materialReferenceIndex_8;
// System.Boolean UnityEngine.TextCore.Text.TextElementInfo::isUsingAlternateTypeface
bool ___isUsingAlternateTypeface_9;
// System.Single UnityEngine.TextCore.Text.TextElementInfo::pointSize
float ___pointSize_10;
// System.Int32 UnityEngine.TextCore.Text.TextElementInfo::lineNumber
int32_t ___lineNumber_11;
// System.Int32 UnityEngine.TextCore.Text.TextElementInfo::pageNumber
int32_t ___pageNumber_12;
// System.Int32 UnityEngine.TextCore.Text.TextElementInfo::vertexIndex
int32_t ___vertexIndex_13;
// UnityEngine.TextCore.Text.TextVertex UnityEngine.TextCore.Text.TextElementInfo::vertexTopLeft
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9 ___vertexTopLeft_14;
// UnityEngine.TextCore.Text.TextVertex UnityEngine.TextCore.Text.TextElementInfo::vertexBottomLeft
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9 ___vertexBottomLeft_15;
// UnityEngine.TextCore.Text.TextVertex UnityEngine.TextCore.Text.TextElementInfo::vertexTopRight
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9 ___vertexTopRight_16;
// UnityEngine.TextCore.Text.TextVertex UnityEngine.TextCore.Text.TextElementInfo::vertexBottomRight
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9 ___vertexBottomRight_17;
// UnityEngine.Vector3 UnityEngine.TextCore.Text.TextElementInfo::topLeft
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___topLeft_18;
// UnityEngine.Vector3 UnityEngine.TextCore.Text.TextElementInfo::bottomLeft
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___bottomLeft_19;
// UnityEngine.Vector3 UnityEngine.TextCore.Text.TextElementInfo::topRight
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___topRight_20;
// UnityEngine.Vector3 UnityEngine.TextCore.Text.TextElementInfo::bottomRight
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___bottomRight_21;
// System.Single UnityEngine.TextCore.Text.TextElementInfo::origin
float ___origin_22;
// System.Single UnityEngine.TextCore.Text.TextElementInfo::ascender
float ___ascender_23;
// System.Single UnityEngine.TextCore.Text.TextElementInfo::baseLine
float ___baseLine_24;
// System.Single UnityEngine.TextCore.Text.TextElementInfo::descender
float ___descender_25;
// System.Single UnityEngine.TextCore.Text.TextElementInfo::xAdvance
float ___xAdvance_26;
// System.Single UnityEngine.TextCore.Text.TextElementInfo::aspectRatio
float ___aspectRatio_27;
// System.Single UnityEngine.TextCore.Text.TextElementInfo::scale
float ___scale_28;
// UnityEngine.Color32 UnityEngine.TextCore.Text.TextElementInfo::color
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___color_29;
// UnityEngine.Color32 UnityEngine.TextCore.Text.TextElementInfo::underlineColor
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___underlineColor_30;
// UnityEngine.Color32 UnityEngine.TextCore.Text.TextElementInfo::strikethroughColor
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___strikethroughColor_31;
// UnityEngine.Color32 UnityEngine.TextCore.Text.TextElementInfo::highlightColor
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___highlightColor_32;
// UnityEngine.TextCore.Text.FontStyles UnityEngine.TextCore.Text.TextElementInfo::style
int32_t ___style_33;
// System.Boolean UnityEngine.TextCore.Text.TextElementInfo::isVisible
bool ___isVisible_34;
};
// Native definition for P/Invoke marshalling of UnityEngine.TextCore.Text.TextElementInfo
struct TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976_marshaled_pinvoke
{
uint8_t ___character_0;
int32_t ___index_1;
uint8_t ___elementType_2;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* ___textElement_3;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset_4;
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___spriteAsset_5;
int32_t ___spriteIndex_6;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material_7;
int32_t ___materialReferenceIndex_8;
int32_t ___isUsingAlternateTypeface_9;
float ___pointSize_10;
int32_t ___lineNumber_11;
int32_t ___pageNumber_12;
int32_t ___vertexIndex_13;
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9 ___vertexTopLeft_14;
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9 ___vertexBottomLeft_15;
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9 ___vertexTopRight_16;
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9 ___vertexBottomRight_17;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___topLeft_18;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___bottomLeft_19;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___topRight_20;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___bottomRight_21;
float ___origin_22;
float ___ascender_23;
float ___baseLine_24;
float ___descender_25;
float ___xAdvance_26;
float ___aspectRatio_27;
float ___scale_28;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___color_29;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___underlineColor_30;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___strikethroughColor_31;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___highlightColor_32;
int32_t ___style_33;
int32_t ___isVisible_34;
};
// Native definition for COM marshalling of UnityEngine.TextCore.Text.TextElementInfo
struct TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976_marshaled_com
{
uint8_t ___character_0;
int32_t ___index_1;
uint8_t ___elementType_2;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* ___textElement_3;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset_4;
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___spriteAsset_5;
int32_t ___spriteIndex_6;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material_7;
int32_t ___materialReferenceIndex_8;
int32_t ___isUsingAlternateTypeface_9;
float ___pointSize_10;
int32_t ___lineNumber_11;
int32_t ___pageNumber_12;
int32_t ___vertexIndex_13;
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9 ___vertexTopLeft_14;
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9 ___vertexBottomLeft_15;
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9 ___vertexTopRight_16;
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9 ___vertexBottomRight_17;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___topLeft_18;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___bottomLeft_19;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___topRight_20;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___bottomRight_21;
float ___origin_22;
float ___ascender_23;
float ___baseLine_24;
float ___descender_25;
float ___xAdvance_26;
float ___aspectRatio_27;
float ___scale_28;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___color_29;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___underlineColor_30;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___strikethroughColor_31;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___highlightColor_32;
int32_t ___style_33;
int32_t ___isVisible_34;
};
// UnityEngine.Texture
struct Texture_t791CBB51219779964E0E8A2ED7C1AA5F92A4A700 : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C
{
};
struct Texture_t791CBB51219779964E0E8A2ED7C1AA5F92A4A700_StaticFields
{
// System.Int32 UnityEngine.Texture::GenerateAllMips
int32_t ___GenerateAllMips_4;
};
// UnityEngine.TextCore.Text.TextAsset
struct TextAsset_tB28F1843A877CCA74B89DC4F63EA532618B049B8 : public ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A
{
// System.String UnityEngine.TextCore.Text.TextAsset::m_Version
String_t* ___m_Version_4;
// System.Int32 UnityEngine.TextCore.Text.TextAsset::m_InstanceID
int32_t ___m_InstanceID_5;
// System.Int32 UnityEngine.TextCore.Text.TextAsset::m_HashCode
int32_t ___m_HashCode_6;
// UnityEngine.Material UnityEngine.TextCore.Text.TextAsset::m_Material
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___m_Material_7;
// System.Int32 UnityEngine.TextCore.Text.TextAsset::m_MaterialHashCode
int32_t ___m_MaterialHashCode_8;
};
// UnityEngine.TextCore.Text.TextColorGradient
struct TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70 : public ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A
{
// UnityEngine.TextCore.Text.ColorGradientMode UnityEngine.TextCore.Text.TextColorGradient::colorMode
int32_t ___colorMode_4;
// UnityEngine.Color UnityEngine.TextCore.Text.TextColorGradient::topLeft
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F ___topLeft_5;
// UnityEngine.Color UnityEngine.TextCore.Text.TextColorGradient::topRight
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F ___topRight_6;
// UnityEngine.Color UnityEngine.TextCore.Text.TextColorGradient::bottomLeft
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F ___bottomLeft_7;
// UnityEngine.Color UnityEngine.TextCore.Text.TextColorGradient::bottomRight
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F ___bottomRight_8;
};
struct TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70_StaticFields
{
// UnityEngine.Color UnityEngine.TextCore.Text.TextColorGradient::k_DefaultColor
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F ___k_DefaultColor_10;
};
// UnityEngine.TextCore.Text.TextSettings
struct TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64 : public ScriptableObject_tB3BFDB921A1B1795B38A5417D3B97A89A140436A
{
// System.String UnityEngine.TextCore.Text.TextSettings::m_Version
String_t* ___m_Version_4;
// UnityEngine.TextCore.Text.FontAsset UnityEngine.TextCore.Text.TextSettings::m_DefaultFontAsset
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___m_DefaultFontAsset_5;
// System.String UnityEngine.TextCore.Text.TextSettings::m_DefaultFontAssetPath
String_t* ___m_DefaultFontAssetPath_6;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.FontAsset> UnityEngine.TextCore.Text.TextSettings::m_FallbackFontAssets
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* ___m_FallbackFontAssets_7;
// System.Boolean UnityEngine.TextCore.Text.TextSettings::m_MatchMaterialPreset
bool ___m_MatchMaterialPreset_8;
// System.Int32 UnityEngine.TextCore.Text.TextSettings::m_MissingCharacterUnicode
int32_t ___m_MissingCharacterUnicode_9;
// System.Boolean UnityEngine.TextCore.Text.TextSettings::m_ClearDynamicDataOnBuild
bool ___m_ClearDynamicDataOnBuild_10;
// UnityEngine.TextCore.Text.SpriteAsset UnityEngine.TextCore.Text.TextSettings::m_DefaultSpriteAsset
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___m_DefaultSpriteAsset_11;
// System.String UnityEngine.TextCore.Text.TextSettings::m_DefaultSpriteAssetPath
String_t* ___m_DefaultSpriteAssetPath_12;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.SpriteAsset> UnityEngine.TextCore.Text.TextSettings::m_FallbackSpriteAssets
List_1_t3EE59C28A34FCD5060EF6B6BAFA85F2C9D01D320* ___m_FallbackSpriteAssets_13;
// System.UInt32 UnityEngine.TextCore.Text.TextSettings::m_MissingSpriteCharacterUnicode
uint32_t ___m_MissingSpriteCharacterUnicode_14;
// UnityEngine.TextCore.Text.TextStyleSheet UnityEngine.TextCore.Text.TextSettings::m_DefaultStyleSheet
TextStyleSheet_t86A0FA5523897465F371A2ABC17DFA3558C8D15E* ___m_DefaultStyleSheet_15;
// System.String UnityEngine.TextCore.Text.TextSettings::m_StyleSheetsResourcePath
String_t* ___m_StyleSheetsResourcePath_16;
// System.String UnityEngine.TextCore.Text.TextSettings::m_DefaultColorGradientPresetsPath
String_t* ___m_DefaultColorGradientPresetsPath_17;
// UnityEngine.TextCore.Text.UnicodeLineBreakingRules UnityEngine.TextCore.Text.TextSettings::m_UnicodeLineBreakingRules
UnicodeLineBreakingRules_t80BE36F5E16AE48FE7B6DE1C91D36B1142B4EC0E* ___m_UnicodeLineBreakingRules_18;
// System.Boolean UnityEngine.TextCore.Text.TextSettings::m_DisplayWarnings
bool ___m_DisplayWarnings_19;
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.TextCore.Text.FontAsset> UnityEngine.TextCore.Text.TextSettings::m_FontLookup
Dictionary_2_tC20B3D6AE4370C892734F670EF4D1FB9CE91F371* ___m_FontLookup_20;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.TextSettings/FontReferenceMap> UnityEngine.TextCore.Text.TextSettings::m_FontReferences
List_1_tA1547550E5FBA50050B20DA74245C38434654EE8* ___m_FontReferences_21;
};
// UnityEngine.TextCore.Text.WordWrapState
struct WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123
{
// System.Int32 UnityEngine.TextCore.Text.WordWrapState::previousWordBreak
int32_t ___previousWordBreak_0;
// System.Int32 UnityEngine.TextCore.Text.WordWrapState::totalCharacterCount
int32_t ___totalCharacterCount_1;
// System.Int32 UnityEngine.TextCore.Text.WordWrapState::visibleCharacterCount
int32_t ___visibleCharacterCount_2;
// System.Int32 UnityEngine.TextCore.Text.WordWrapState::visibleSpriteCount
int32_t ___visibleSpriteCount_3;
// System.Int32 UnityEngine.TextCore.Text.WordWrapState::visibleLinkCount
int32_t ___visibleLinkCount_4;
// System.Int32 UnityEngine.TextCore.Text.WordWrapState::firstCharacterIndex
int32_t ___firstCharacterIndex_5;
// System.Int32 UnityEngine.TextCore.Text.WordWrapState::firstVisibleCharacterIndex
int32_t ___firstVisibleCharacterIndex_6;
// System.Int32 UnityEngine.TextCore.Text.WordWrapState::lastCharacterIndex
int32_t ___lastCharacterIndex_7;
// System.Int32 UnityEngine.TextCore.Text.WordWrapState::lastVisibleCharIndex
int32_t ___lastVisibleCharIndex_8;
// System.Int32 UnityEngine.TextCore.Text.WordWrapState::lineNumber
int32_t ___lineNumber_9;
// System.Single UnityEngine.TextCore.Text.WordWrapState::maxCapHeight
float ___maxCapHeight_10;
// System.Single UnityEngine.TextCore.Text.WordWrapState::maxAscender
float ___maxAscender_11;
// System.Single UnityEngine.TextCore.Text.WordWrapState::maxDescender
float ___maxDescender_12;
// System.Single UnityEngine.TextCore.Text.WordWrapState::maxLineAscender
float ___maxLineAscender_13;
// System.Single UnityEngine.TextCore.Text.WordWrapState::maxLineDescender
float ___maxLineDescender_14;
// System.Single UnityEngine.TextCore.Text.WordWrapState::previousLineAscender
float ___previousLineAscender_15;
// System.Single UnityEngine.TextCore.Text.WordWrapState::xAdvance
float ___xAdvance_16;
// System.Single UnityEngine.TextCore.Text.WordWrapState::preferredWidth
float ___preferredWidth_17;
// System.Single UnityEngine.TextCore.Text.WordWrapState::preferredHeight
float ___preferredHeight_18;
// System.Single UnityEngine.TextCore.Text.WordWrapState::previousLineScale
float ___previousLineScale_19;
// System.Int32 UnityEngine.TextCore.Text.WordWrapState::wordCount
int32_t ___wordCount_20;
// UnityEngine.TextCore.Text.FontStyles UnityEngine.TextCore.Text.WordWrapState::fontStyle
int32_t ___fontStyle_21;
// System.Single UnityEngine.TextCore.Text.WordWrapState::fontScale
float ___fontScale_22;
// System.Single UnityEngine.TextCore.Text.WordWrapState::fontScaleMultiplier
float ___fontScaleMultiplier_23;
// System.Single UnityEngine.TextCore.Text.WordWrapState::currentFontSize
float ___currentFontSize_24;
// System.Single UnityEngine.TextCore.Text.WordWrapState::baselineOffset
float ___baselineOffset_25;
// System.Single UnityEngine.TextCore.Text.WordWrapState::lineOffset
float ___lineOffset_26;
// UnityEngine.TextCore.Text.TextInfo UnityEngine.TextCore.Text.WordWrapState::textInfo
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo_27;
// UnityEngine.TextCore.Text.LineInfo UnityEngine.TextCore.Text.WordWrapState::lineInfo
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 ___lineInfo_28;
// UnityEngine.Color32 UnityEngine.TextCore.Text.WordWrapState::vertexColor
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___vertexColor_29;
// UnityEngine.Color32 UnityEngine.TextCore.Text.WordWrapState::underlineColor
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___underlineColor_30;
// UnityEngine.Color32 UnityEngine.TextCore.Text.WordWrapState::strikethroughColor
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___strikethroughColor_31;
// UnityEngine.Color32 UnityEngine.TextCore.Text.WordWrapState::highlightColor
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___highlightColor_32;
// UnityEngine.TextCore.Text.FontStyleStack UnityEngine.TextCore.Text.WordWrapState::basicStyleStack
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7 ___basicStyleStack_33;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.Color32> UnityEngine.TextCore.Text.WordWrapState::colorStack
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___colorStack_34;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.Color32> UnityEngine.TextCore.Text.WordWrapState::underlineColorStack
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___underlineColorStack_35;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.Color32> UnityEngine.TextCore.Text.WordWrapState::strikethroughColorStack
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___strikethroughColorStack_36;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.Color32> UnityEngine.TextCore.Text.WordWrapState::highlightColorStack
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___highlightColorStack_37;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextColorGradient> UnityEngine.TextCore.Text.WordWrapState::colorGradientStack
TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E ___colorGradientStack_38;
// UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single> UnityEngine.TextCore.Text.WordWrapState::sizeStack
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 ___sizeStack_39;
// UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single> UnityEngine.TextCore.Text.WordWrapState::indentStack
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 ___indentStack_40;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextFontWeight> UnityEngine.TextCore.Text.WordWrapState::fontWeightStack
TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790 ___fontWeightStack_41;
// UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32> UnityEngine.TextCore.Text.WordWrapState::styleStack
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8 ___styleStack_42;
// UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single> UnityEngine.TextCore.Text.WordWrapState::baselineStack
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 ___baselineStack_43;
// UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32> UnityEngine.TextCore.Text.WordWrapState::actionStack
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8 ___actionStack_44;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.MaterialReference> UnityEngine.TextCore.Text.WordWrapState::materialReferenceStack
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA ___materialReferenceStack_45;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextAlignment> UnityEngine.TextCore.Text.WordWrapState::lineJustificationStack
TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F ___lineJustificationStack_46;
// System.Int32 UnityEngine.TextCore.Text.WordWrapState::spriteAnimationId
int32_t ___spriteAnimationId_47;
// UnityEngine.TextCore.Text.FontAsset UnityEngine.TextCore.Text.WordWrapState::currentFontAsset
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___currentFontAsset_48;
// UnityEngine.TextCore.Text.SpriteAsset UnityEngine.TextCore.Text.WordWrapState::currentSpriteAsset
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___currentSpriteAsset_49;
// UnityEngine.Material UnityEngine.TextCore.Text.WordWrapState::currentMaterial
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___currentMaterial_50;
// System.Int32 UnityEngine.TextCore.Text.WordWrapState::currentMaterialIndex
int32_t ___currentMaterialIndex_51;
// UnityEngine.TextCore.Text.Extents UnityEngine.TextCore.Text.WordWrapState::meshExtents
Extents_t369FB2B84521A0229C2FA3D4C8592B14E07CEFE6 ___meshExtents_52;
// System.Boolean UnityEngine.TextCore.Text.WordWrapState::tagNoParsing
bool ___tagNoParsing_53;
// System.Boolean UnityEngine.TextCore.Text.WordWrapState::isNonBreakingSpace
bool ___isNonBreakingSpace_54;
};
// Native definition for P/Invoke marshalling of UnityEngine.TextCore.Text.WordWrapState
struct WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123_marshaled_pinvoke
{
int32_t ___previousWordBreak_0;
int32_t ___totalCharacterCount_1;
int32_t ___visibleCharacterCount_2;
int32_t ___visibleSpriteCount_3;
int32_t ___visibleLinkCount_4;
int32_t ___firstCharacterIndex_5;
int32_t ___firstVisibleCharacterIndex_6;
int32_t ___lastCharacterIndex_7;
int32_t ___lastVisibleCharIndex_8;
int32_t ___lineNumber_9;
float ___maxCapHeight_10;
float ___maxAscender_11;
float ___maxDescender_12;
float ___maxLineAscender_13;
float ___maxLineDescender_14;
float ___previousLineAscender_15;
float ___xAdvance_16;
float ___preferredWidth_17;
float ___preferredHeight_18;
float ___previousLineScale_19;
int32_t ___wordCount_20;
int32_t ___fontStyle_21;
float ___fontScale_22;
float ___fontScaleMultiplier_23;
float ___currentFontSize_24;
float ___baselineOffset_25;
float ___lineOffset_26;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo_27;
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 ___lineInfo_28;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___vertexColor_29;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___underlineColor_30;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___strikethroughColor_31;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___highlightColor_32;
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7 ___basicStyleStack_33;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___colorStack_34;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___underlineColorStack_35;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___strikethroughColorStack_36;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___highlightColorStack_37;
TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E ___colorGradientStack_38;
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 ___sizeStack_39;
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 ___indentStack_40;
TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790 ___fontWeightStack_41;
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8 ___styleStack_42;
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 ___baselineStack_43;
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8 ___actionStack_44;
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA ___materialReferenceStack_45;
TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F ___lineJustificationStack_46;
int32_t ___spriteAnimationId_47;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___currentFontAsset_48;
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___currentSpriteAsset_49;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___currentMaterial_50;
int32_t ___currentMaterialIndex_51;
Extents_t369FB2B84521A0229C2FA3D4C8592B14E07CEFE6 ___meshExtents_52;
int32_t ___tagNoParsing_53;
int32_t ___isNonBreakingSpace_54;
};
// Native definition for COM marshalling of UnityEngine.TextCore.Text.WordWrapState
struct WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123_marshaled_com
{
int32_t ___previousWordBreak_0;
int32_t ___totalCharacterCount_1;
int32_t ___visibleCharacterCount_2;
int32_t ___visibleSpriteCount_3;
int32_t ___visibleLinkCount_4;
int32_t ___firstCharacterIndex_5;
int32_t ___firstVisibleCharacterIndex_6;
int32_t ___lastCharacterIndex_7;
int32_t ___lastVisibleCharIndex_8;
int32_t ___lineNumber_9;
float ___maxCapHeight_10;
float ___maxAscender_11;
float ___maxDescender_12;
float ___maxLineAscender_13;
float ___maxLineDescender_14;
float ___previousLineAscender_15;
float ___xAdvance_16;
float ___preferredWidth_17;
float ___preferredHeight_18;
float ___previousLineScale_19;
int32_t ___wordCount_20;
int32_t ___fontStyle_21;
float ___fontScale_22;
float ___fontScaleMultiplier_23;
float ___currentFontSize_24;
float ___baselineOffset_25;
float ___lineOffset_26;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo_27;
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 ___lineInfo_28;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___vertexColor_29;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___underlineColor_30;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___strikethroughColor_31;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___highlightColor_32;
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7 ___basicStyleStack_33;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___colorStack_34;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___underlineColorStack_35;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___strikethroughColorStack_36;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___highlightColorStack_37;
TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E ___colorGradientStack_38;
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 ___sizeStack_39;
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 ___indentStack_40;
TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790 ___fontWeightStack_41;
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8 ___styleStack_42;
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 ___baselineStack_43;
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8 ___actionStack_44;
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA ___materialReferenceStack_45;
TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F ___lineJustificationStack_46;
int32_t ___spriteAnimationId_47;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___currentFontAsset_48;
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___currentSpriteAsset_49;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___currentMaterial_50;
int32_t ___currentMaterialIndex_51;
Extents_t369FB2B84521A0229C2FA3D4C8592B14E07CEFE6 ___meshExtents_52;
int32_t ___tagNoParsing_53;
int32_t ___isNonBreakingSpace_54;
};
// UnityEngine.TextCore.Text.FontAsset
struct FontAsset_t61A6446D934E582651044E33D250EA8D306AB958 : public TextAsset_tB28F1843A877CCA74B89DC4F63EA532618B049B8
{
// System.String UnityEngine.TextCore.Text.FontAsset::m_SourceFontFileGUID
String_t* ___m_SourceFontFileGUID_9;
// UnityEngine.Font UnityEngine.TextCore.Text.FontAsset::m_SourceFontFile
Font_tC95270EA3198038970422D78B74A7F2E218A96B6* ___m_SourceFontFile_10;
// UnityEngine.TextCore.Text.AtlasPopulationMode UnityEngine.TextCore.Text.FontAsset::m_AtlasPopulationMode
int32_t ___m_AtlasPopulationMode_11;
// System.Boolean UnityEngine.TextCore.Text.FontAsset::InternalDynamicOS
bool ___InternalDynamicOS_12;
// UnityEngine.TextCore.FaceInfo UnityEngine.TextCore.Text.FontAsset::m_FaceInfo
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 ___m_FaceInfo_13;
// System.Int32 UnityEngine.TextCore.Text.FontAsset::m_FamilyNameHashCode
int32_t ___m_FamilyNameHashCode_14;
// System.Int32 UnityEngine.TextCore.Text.FontAsset::m_StyleNameHashCode
int32_t ___m_StyleNameHashCode_15;
// UnityEngine.TextCore.Text.FontWeightPair[] UnityEngine.TextCore.Text.FontAsset::m_FontWeightTable
FontWeightPairU5BU5D_t76E8DB55C81EEBEFA2E6D1D3E3B3EA1FB4C4954F* ___m_FontWeightTable_16;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Glyph> UnityEngine.TextCore.Text.FontAsset::m_GlyphTable
List_1_t95DB74B8EE315F8F92B7B96D93C901C8C3F6FE2C* ___m_GlyphTable_17;
// System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.Glyph> UnityEngine.TextCore.Text.FontAsset::m_GlyphLookupDictionary
Dictionary_2_tC61348D10610A6B3D7B65102D82AC3467D59EAA7* ___m_GlyphLookupDictionary_18;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.Character> UnityEngine.TextCore.Text.FontAsset::m_CharacterTable
List_1_tFED0F30EE65D995591571D3CD2C10F22439CB317* ___m_CharacterTable_19;
// System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.Text.Character> UnityEngine.TextCore.Text.FontAsset::m_CharacterLookupDictionary
Dictionary_2_t93CDF0F4011A5A3024EB73A492F9512E3046EACB* ___m_CharacterLookupDictionary_20;
// UnityEngine.Texture2D UnityEngine.TextCore.Text.FontAsset::m_AtlasTexture
Texture2D_tE6505BC111DD8A424A9DBE8E05D7D09E11FFFCF4* ___m_AtlasTexture_21;
// UnityEngine.Texture2D[] UnityEngine.TextCore.Text.FontAsset::m_AtlasTextures
Texture2DU5BU5D_t05332F1E3F7D4493E304C702201F9BE4F9236191* ___m_AtlasTextures_22;
// System.Int32 UnityEngine.TextCore.Text.FontAsset::m_AtlasTextureIndex
int32_t ___m_AtlasTextureIndex_23;
// System.Boolean UnityEngine.TextCore.Text.FontAsset::m_IsMultiAtlasTexturesEnabled
bool ___m_IsMultiAtlasTexturesEnabled_24;
// System.Boolean UnityEngine.TextCore.Text.FontAsset::m_ClearDynamicDataOnBuild
bool ___m_ClearDynamicDataOnBuild_25;
// System.Int32 UnityEngine.TextCore.Text.FontAsset::m_AtlasWidth
int32_t ___m_AtlasWidth_26;
// System.Int32 UnityEngine.TextCore.Text.FontAsset::m_AtlasHeight
int32_t ___m_AtlasHeight_27;
// System.Int32 UnityEngine.TextCore.Text.FontAsset::m_AtlasPadding
int32_t ___m_AtlasPadding_28;
// UnityEngine.TextCore.LowLevel.GlyphRenderMode UnityEngine.TextCore.Text.FontAsset::m_AtlasRenderMode
int32_t ___m_AtlasRenderMode_29;
// System.Collections.Generic.List`1<UnityEngine.TextCore.GlyphRect> UnityEngine.TextCore.Text.FontAsset::m_UsedGlyphRects
List_1_t425D3A455811E316D2DF73E46CF9CD90A4341C1B* ___m_UsedGlyphRects_30;
// System.Collections.Generic.List`1<UnityEngine.TextCore.GlyphRect> UnityEngine.TextCore.Text.FontAsset::m_FreeGlyphRects
List_1_t425D3A455811E316D2DF73E46CF9CD90A4341C1B* ___m_FreeGlyphRects_31;
// UnityEngine.TextCore.Text.FontFeatureTable UnityEngine.TextCore.Text.FontAsset::m_FontFeatureTable
FontFeatureTable_t992E0493CD7E9D7834DF204E0198237F0D25B3B7* ___m_FontFeatureTable_32;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.FontAsset> UnityEngine.TextCore.Text.FontAsset::m_FallbackFontAssetTable
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* ___m_FallbackFontAssetTable_33;
// UnityEngine.TextCore.Text.FontAssetCreationEditorSettings UnityEngine.TextCore.Text.FontAsset::m_fontAssetCreationEditorSettings
FontAssetCreationEditorSettings_t0FF28D2E78F090105C63C81F9E438A7B09E3EA52 ___m_fontAssetCreationEditorSettings_34;
// System.Single UnityEngine.TextCore.Text.FontAsset::m_RegularStyleWeight
float ___m_RegularStyleWeight_35;
// System.Single UnityEngine.TextCore.Text.FontAsset::m_RegularStyleSpacing
float ___m_RegularStyleSpacing_36;
// System.Single UnityEngine.TextCore.Text.FontAsset::m_BoldStyleWeight
float ___m_BoldStyleWeight_37;
// System.Single UnityEngine.TextCore.Text.FontAsset::m_BoldStyleSpacing
float ___m_BoldStyleSpacing_38;
// System.Byte UnityEngine.TextCore.Text.FontAsset::m_ItalicStyleSlant
uint8_t ___m_ItalicStyleSlant_39;
// System.Byte UnityEngine.TextCore.Text.FontAsset::m_TabMultiple
uint8_t ___m_TabMultiple_40;
// System.Boolean UnityEngine.TextCore.Text.FontAsset::IsFontAssetLookupTablesDirty
bool ___IsFontAssetLookupTablesDirty_41;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Glyph> UnityEngine.TextCore.Text.FontAsset::m_GlyphsToRender
List_1_t95DB74B8EE315F8F92B7B96D93C901C8C3F6FE2C* ___m_GlyphsToRender_55;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Glyph> UnityEngine.TextCore.Text.FontAsset::m_GlyphsRendered
List_1_t95DB74B8EE315F8F92B7B96D93C901C8C3F6FE2C* ___m_GlyphsRendered_56;
// System.Collections.Generic.List`1<System.UInt32> UnityEngine.TextCore.Text.FontAsset::m_GlyphIndexList
List_1_t9B68833848E4C4D7F623C05F6B77F0449396354A* ___m_GlyphIndexList_57;
// System.Collections.Generic.List`1<System.UInt32> UnityEngine.TextCore.Text.FontAsset::m_GlyphIndexListNewlyAdded
List_1_t9B68833848E4C4D7F623C05F6B77F0449396354A* ___m_GlyphIndexListNewlyAdded_58;
// System.Collections.Generic.List`1<System.UInt32> UnityEngine.TextCore.Text.FontAsset::m_GlyphsToAdd
List_1_t9B68833848E4C4D7F623C05F6B77F0449396354A* ___m_GlyphsToAdd_59;
// System.Collections.Generic.HashSet`1<System.UInt32> UnityEngine.TextCore.Text.FontAsset::m_GlyphsToAddLookup
HashSet_1_t5DD20B42149A11AEBF12A75505306E6EFC34943A* ___m_GlyphsToAddLookup_60;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.Character> UnityEngine.TextCore.Text.FontAsset::m_CharactersToAdd
List_1_tFED0F30EE65D995591571D3CD2C10F22439CB317* ___m_CharactersToAdd_61;
// System.Collections.Generic.HashSet`1<System.UInt32> UnityEngine.TextCore.Text.FontAsset::m_CharactersToAddLookup
HashSet_1_t5DD20B42149A11AEBF12A75505306E6EFC34943A* ___m_CharactersToAddLookup_62;
// System.Collections.Generic.List`1<System.UInt32> UnityEngine.TextCore.Text.FontAsset::s_MissingCharacterList
List_1_t9B68833848E4C4D7F623C05F6B77F0449396354A* ___s_MissingCharacterList_63;
// System.Collections.Generic.HashSet`1<System.UInt32> UnityEngine.TextCore.Text.FontAsset::m_MissingUnicodesFromFontFile
HashSet_1_t5DD20B42149A11AEBF12A75505306E6EFC34943A* ___m_MissingUnicodesFromFontFile_64;
};
struct FontAsset_t61A6446D934E582651044E33D250EA8D306AB958_StaticFields
{
// Unity.Profiling.ProfilerMarker UnityEngine.TextCore.Text.FontAsset::k_ReadFontAssetDefinitionMarker
ProfilerMarker_tA256E18DA86EDBC5528CE066FC91C96EE86501AD ___k_ReadFontAssetDefinitionMarker_42;
// Unity.Profiling.ProfilerMarker UnityEngine.TextCore.Text.FontAsset::k_AddSynthesizedCharactersMarker
ProfilerMarker_tA256E18DA86EDBC5528CE066FC91C96EE86501AD ___k_AddSynthesizedCharactersMarker_43;
// Unity.Profiling.ProfilerMarker UnityEngine.TextCore.Text.FontAsset::k_TryAddCharacterMarker
ProfilerMarker_tA256E18DA86EDBC5528CE066FC91C96EE86501AD ___k_TryAddCharacterMarker_44;
// Unity.Profiling.ProfilerMarker UnityEngine.TextCore.Text.FontAsset::k_TryAddCharactersMarker
ProfilerMarker_tA256E18DA86EDBC5528CE066FC91C96EE86501AD ___k_TryAddCharactersMarker_45;
// Unity.Profiling.ProfilerMarker UnityEngine.TextCore.Text.FontAsset::k_UpdateGlyphAdjustmentRecordsMarker
ProfilerMarker_tA256E18DA86EDBC5528CE066FC91C96EE86501AD ___k_UpdateGlyphAdjustmentRecordsMarker_46;
// Unity.Profiling.ProfilerMarker UnityEngine.TextCore.Text.FontAsset::k_ClearFontAssetDataMarker
ProfilerMarker_tA256E18DA86EDBC5528CE066FC91C96EE86501AD ___k_ClearFontAssetDataMarker_47;
// Unity.Profiling.ProfilerMarker UnityEngine.TextCore.Text.FontAsset::k_UpdateFontAssetDataMarker
ProfilerMarker_tA256E18DA86EDBC5528CE066FC91C96EE86501AD ___k_UpdateFontAssetDataMarker_48;
// System.String UnityEngine.TextCore.Text.FontAsset::s_DefaultMaterialSuffix
String_t* ___s_DefaultMaterialSuffix_49;
// System.Collections.Generic.HashSet`1<System.Int32> UnityEngine.TextCore.Text.FontAsset::k_SearchedFontAssetLookup
HashSet_1_t4A2F2B74276D0AD3ED0F873045BD61E9504ECAE2* ___k_SearchedFontAssetLookup_50;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.FontAsset> UnityEngine.TextCore.Text.FontAsset::k_FontAssets_FontFeaturesUpdateQueue
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* ___k_FontAssets_FontFeaturesUpdateQueue_51;
// System.Collections.Generic.HashSet`1<System.Int32> UnityEngine.TextCore.Text.FontAsset::k_FontAssets_FontFeaturesUpdateQueueLookup
HashSet_1_t4A2F2B74276D0AD3ED0F873045BD61E9504ECAE2* ___k_FontAssets_FontFeaturesUpdateQueueLookup_52;
// System.Collections.Generic.List`1<UnityEngine.Texture2D> UnityEngine.TextCore.Text.FontAsset::k_FontAssets_AtlasTexturesUpdateQueue
List_1_t0F231C3F13EBA1FF9081BD61489D01AA3CBE59D4* ___k_FontAssets_AtlasTexturesUpdateQueue_53;
// System.Collections.Generic.HashSet`1<System.Int32> UnityEngine.TextCore.Text.FontAsset::k_FontAssets_AtlasTexturesUpdateQueueLookup
HashSet_1_t4A2F2B74276D0AD3ED0F873045BD61E9504ECAE2* ___k_FontAssets_AtlasTexturesUpdateQueueLookup_54;
// System.UInt32[] UnityEngine.TextCore.Text.FontAsset::k_GlyphIndexArray
UInt32U5BU5D_t02FBD658AD156A17574ECE6106CF1FBFCC9807FA* ___k_GlyphIndexArray_65;
};
// UnityEngine.TextCore.Text.SpriteAsset
struct SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313 : public TextAsset_tB28F1843A877CCA74B89DC4F63EA532618B049B8
{
// System.Collections.Generic.Dictionary`2<System.Int32,System.Int32> UnityEngine.TextCore.Text.SpriteAsset::m_NameLookup
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* ___m_NameLookup_9;
// System.Collections.Generic.Dictionary`2<System.UInt32,System.Int32> UnityEngine.TextCore.Text.SpriteAsset::m_GlyphIndexLookup
Dictionary_2_t1A4804CA9724B6CE01D6ECABE81CE0848CBA80B4* ___m_GlyphIndexLookup_10;
// UnityEngine.TextCore.FaceInfo UnityEngine.TextCore.Text.SpriteAsset::m_FaceInfo
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 ___m_FaceInfo_11;
// UnityEngine.Texture UnityEngine.TextCore.Text.SpriteAsset::m_SpriteAtlasTexture
Texture_t791CBB51219779964E0E8A2ED7C1AA5F92A4A700* ___m_SpriteAtlasTexture_12;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.SpriteCharacter> UnityEngine.TextCore.Text.SpriteAsset::m_SpriteCharacterTable
List_1_t7DA088250C54C07AF1211AE132355AD2D343EE51* ___m_SpriteCharacterTable_13;
// System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.Text.SpriteCharacter> UnityEngine.TextCore.Text.SpriteAsset::m_SpriteCharacterLookup
Dictionary_2_tD4154357CA320908C5A7A35ED81FA2A9856C28D9* ___m_SpriteCharacterLookup_14;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.SpriteGlyph> UnityEngine.TextCore.Text.SpriteAsset::m_SpriteGlyphTable
List_1_t063B87D3CFDC3AEE80E33EFBDA1410C697D71AD6* ___m_SpriteGlyphTable_15;
// System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.Text.SpriteGlyph> UnityEngine.TextCore.Text.SpriteAsset::m_SpriteGlyphLookup
Dictionary_2_tDC0461D8CBB2E6B52DD2C421114EDE7C1C70DE73* ___m_SpriteGlyphLookup_16;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.SpriteAsset> UnityEngine.TextCore.Text.SpriteAsset::fallbackSpriteAssets
List_1_t3EE59C28A34FCD5060EF6B6BAFA85F2C9D01D320* ___fallbackSpriteAssets_17;
// System.Boolean UnityEngine.TextCore.Text.SpriteAsset::m_IsSpriteAssetLookupTablesDirty
bool ___m_IsSpriteAssetLookupTablesDirty_18;
};
struct SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313_StaticFields
{
// System.Collections.Generic.HashSet`1<System.Int32> UnityEngine.TextCore.Text.SpriteAsset::k_searchedSpriteAssets
HashSet_1_t4A2F2B74276D0AD3ED0F873045BD61E9504ECAE2* ___k_searchedSpriteAssets_19;
};
// UnityEngine.TextCore.Text.TextGenerator
struct TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366 : public RuntimeObject
{
// UnityEngine.Vector3[] UnityEngine.TextCore.Text.TextGenerator::m_RectTransformCorners
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* ___m_RectTransformCorners_1;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_MarginWidth
float ___m_MarginWidth_2;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_MarginHeight
float ___m_MarginHeight_3;
// System.Int32[] UnityEngine.TextCore.Text.TextGenerator::m_CharBuffer
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___m_CharBuffer_4;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_PreferredWidth
float ___m_PreferredWidth_5;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_PreferredHeight
float ___m_PreferredHeight_6;
// UnityEngine.TextCore.Text.FontAsset UnityEngine.TextCore.Text.TextGenerator::m_CurrentFontAsset
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___m_CurrentFontAsset_7;
// UnityEngine.Material UnityEngine.TextCore.Text.TextGenerator::m_CurrentMaterial
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___m_CurrentMaterial_8;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_CurrentMaterialIndex
int32_t ___m_CurrentMaterialIndex_9;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.MaterialReference> UnityEngine.TextCore.Text.TextGenerator::m_MaterialReferenceStack
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA ___m_MaterialReferenceStack_10;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_Padding
float ___m_Padding_11;
// UnityEngine.TextCore.Text.SpriteAsset UnityEngine.TextCore.Text.TextGenerator::m_CurrentSpriteAsset
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___m_CurrentSpriteAsset_12;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_TotalCharacterCount
int32_t ___m_TotalCharacterCount_13;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_FontScale
float ___m_FontScale_14;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_FontSize
float ___m_FontSize_15;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_FontScaleMultiplier
float ___m_FontScaleMultiplier_16;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_CurrentFontSize
float ___m_CurrentFontSize_17;
// UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single> UnityEngine.TextCore.Text.TextGenerator::m_SizeStack
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 ___m_SizeStack_18;
// UnityEngine.TextCore.Text.FontStyles UnityEngine.TextCore.Text.TextGenerator::m_FontStyleInternal
int32_t ___m_FontStyleInternal_19;
// UnityEngine.TextCore.Text.FontStyleStack UnityEngine.TextCore.Text.TextGenerator::m_FontStyleStack
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7 ___m_FontStyleStack_20;
// UnityEngine.TextCore.Text.TextFontWeight UnityEngine.TextCore.Text.TextGenerator::m_FontWeightInternal
int32_t ___m_FontWeightInternal_21;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextFontWeight> UnityEngine.TextCore.Text.TextGenerator::m_FontWeightStack
TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790 ___m_FontWeightStack_22;
// UnityEngine.TextCore.Text.TextAlignment UnityEngine.TextCore.Text.TextGenerator::m_LineJustification
int32_t ___m_LineJustification_23;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextAlignment> UnityEngine.TextCore.Text.TextGenerator::m_LineJustificationStack
TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F ___m_LineJustificationStack_24;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_BaselineOffset
float ___m_BaselineOffset_25;
// UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single> UnityEngine.TextCore.Text.TextGenerator::m_BaselineOffsetStack
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 ___m_BaselineOffsetStack_26;
// UnityEngine.Color32 UnityEngine.TextCore.Text.TextGenerator::m_FontColor32
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___m_FontColor32_27;
// UnityEngine.Color32 UnityEngine.TextCore.Text.TextGenerator::m_HtmlColor
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___m_HtmlColor_28;
// UnityEngine.Color32 UnityEngine.TextCore.Text.TextGenerator::m_UnderlineColor
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___m_UnderlineColor_29;
// UnityEngine.Color32 UnityEngine.TextCore.Text.TextGenerator::m_StrikethroughColor
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___m_StrikethroughColor_30;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.Color32> UnityEngine.TextCore.Text.TextGenerator::m_ColorStack
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___m_ColorStack_31;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.Color32> UnityEngine.TextCore.Text.TextGenerator::m_UnderlineColorStack
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___m_UnderlineColorStack_32;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.Color32> UnityEngine.TextCore.Text.TextGenerator::m_StrikethroughColorStack
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___m_StrikethroughColorStack_33;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.Color32> UnityEngine.TextCore.Text.TextGenerator::m_HighlightColorStack
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 ___m_HighlightColorStack_34;
// UnityEngine.TextCore.Text.TextColorGradient UnityEngine.TextCore.Text.TextGenerator::m_ColorGradientPreset
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* ___m_ColorGradientPreset_35;
// UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextColorGradient> UnityEngine.TextCore.Text.TextGenerator::m_ColorGradientStack
TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E ___m_ColorGradientStack_36;
// UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32> UnityEngine.TextCore.Text.TextGenerator::m_ActionStack
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8 ___m_ActionStack_37;
// System.Boolean UnityEngine.TextCore.Text.TextGenerator::m_IsFxMatrixSet
bool ___m_IsFxMatrixSet_38;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_LineOffset
float ___m_LineOffset_39;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_LineHeight
float ___m_LineHeight_40;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_CSpacing
float ___m_CSpacing_41;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_MonoSpacing
float ___m_MonoSpacing_42;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_XAdvance
float ___m_XAdvance_43;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_TagLineIndent
float ___m_TagLineIndent_44;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_TagIndent
float ___m_TagIndent_45;
// UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single> UnityEngine.TextCore.Text.TextGenerator::m_IndentStack
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 ___m_IndentStack_46;
// System.Boolean UnityEngine.TextCore.Text.TextGenerator::m_TagNoParsing
bool ___m_TagNoParsing_47;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_CharacterCount
int32_t ___m_CharacterCount_48;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_FirstCharacterOfLine
int32_t ___m_FirstCharacterOfLine_49;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_LastCharacterOfLine
int32_t ___m_LastCharacterOfLine_50;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_FirstVisibleCharacterOfLine
int32_t ___m_FirstVisibleCharacterOfLine_51;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_LastVisibleCharacterOfLine
int32_t ___m_LastVisibleCharacterOfLine_52;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_MaxLineAscender
float ___m_MaxLineAscender_53;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_MaxLineDescender
float ___m_MaxLineDescender_54;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_LineNumber
int32_t ___m_LineNumber_55;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_LineVisibleCharacterCount
int32_t ___m_LineVisibleCharacterCount_56;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_FirstOverflowCharacterIndex
int32_t ___m_FirstOverflowCharacterIndex_57;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_PageNumber
int32_t ___m_PageNumber_58;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_MarginLeft
float ___m_MarginLeft_59;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_MarginRight
float ___m_MarginRight_60;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_Width
float ___m_Width_61;
// UnityEngine.TextCore.Text.Extents UnityEngine.TextCore.Text.TextGenerator::m_MeshExtents
Extents_t369FB2B84521A0229C2FA3D4C8592B14E07CEFE6 ___m_MeshExtents_62;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_MaxCapHeight
float ___m_MaxCapHeight_63;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_MaxAscender
float ___m_MaxAscender_64;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_MaxDescender
float ___m_MaxDescender_65;
// System.Boolean UnityEngine.TextCore.Text.TextGenerator::m_IsNewPage
bool ___m_IsNewPage_66;
// System.Boolean UnityEngine.TextCore.Text.TextGenerator::m_IsNonBreakingSpace
bool ___m_IsNonBreakingSpace_67;
// UnityEngine.TextCore.Text.WordWrapState UnityEngine.TextCore.Text.TextGenerator::m_SavedWordWrapState
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123 ___m_SavedWordWrapState_68;
// UnityEngine.TextCore.Text.WordWrapState UnityEngine.TextCore.Text.TextGenerator::m_SavedLineState
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123 ___m_SavedLineState_69;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_LoopCountA
int32_t ___m_LoopCountA_70;
// UnityEngine.TextCore.Text.TextElementType UnityEngine.TextCore.Text.TextGenerator::m_TextElementType
uint8_t ___m_TextElementType_71;
// System.Boolean UnityEngine.TextCore.Text.TextGenerator::m_IsParsingText
bool ___m_IsParsingText_72;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_SpriteIndex
int32_t ___m_SpriteIndex_73;
// UnityEngine.Color32 UnityEngine.TextCore.Text.TextGenerator::m_SpriteColor
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___m_SpriteColor_74;
// UnityEngine.TextCore.Text.TextElement UnityEngine.TextCore.Text.TextGenerator::m_CachedTextElement
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* ___m_CachedTextElement_75;
// UnityEngine.Color32 UnityEngine.TextCore.Text.TextGenerator::m_HighlightColor
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___m_HighlightColor_76;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_CharWidthAdjDelta
float ___m_CharWidthAdjDelta_77;
// UnityEngine.Matrix4x4 UnityEngine.TextCore.Text.TextGenerator::m_FxMatrix
Matrix4x4_tDB70CF134A14BA38190C59AA700BCE10E2AED3E6 ___m_FxMatrix_78;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_MaxFontSize
float ___m_MaxFontSize_79;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_MinFontSize
float ___m_MinFontSize_80;
// System.Boolean UnityEngine.TextCore.Text.TextGenerator::m_IsCharacterWrappingEnabled
bool ___m_IsCharacterWrappingEnabled_81;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_StartOfLineAscender
float ___m_StartOfLineAscender_82;
// System.Single UnityEngine.TextCore.Text.TextGenerator::m_LineSpacingDelta
float ___m_LineSpacingDelta_83;
// System.Boolean UnityEngine.TextCore.Text.TextGenerator::m_IsMaskingEnabled
bool ___m_IsMaskingEnabled_84;
// UnityEngine.TextCore.Text.MaterialReference[] UnityEngine.TextCore.Text.TextGenerator::m_MaterialReferences
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* ___m_MaterialReferences_85;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_SpriteCount
int32_t ___m_SpriteCount_86;
// UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32> UnityEngine.TextCore.Text.TextGenerator::m_StyleStack
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8 ___m_StyleStack_87;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_SpriteAnimationId
int32_t ___m_SpriteAnimationId_88;
// System.UInt32[] UnityEngine.TextCore.Text.TextGenerator::m_InternalTextParsingBuffer
UInt32U5BU5D_t02FBD658AD156A17574ECE6106CF1FBFCC9807FA* ___m_InternalTextParsingBuffer_89;
// UnityEngine.TextCore.Text.RichTextTagAttribute[] UnityEngine.TextCore.Text.TextGenerator::m_Attributes
RichTextTagAttributeU5BU5D_tEE9D071B3246F23742DBF4226567620BCBB24A14* ___m_Attributes_90;
// UnityEngine.TextCore.Text.XmlTagAttribute[] UnityEngine.TextCore.Text.TextGenerator::m_XmlAttribute
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* ___m_XmlAttribute_91;
// System.Char[] UnityEngine.TextCore.Text.TextGenerator::m_RichTextTag
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* ___m_RichTextTag_92;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Int32> UnityEngine.TextCore.Text.TextGenerator::m_MaterialReferenceIndexLookup
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* ___m_MaterialReferenceIndexLookup_93;
// System.Boolean UnityEngine.TextCore.Text.TextGenerator::m_IsCalculatingPreferredValues
bool ___m_IsCalculatingPreferredValues_94;
// UnityEngine.TextCore.Text.SpriteAsset UnityEngine.TextCore.Text.TextGenerator::m_DefaultSpriteAsset
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___m_DefaultSpriteAsset_95;
// System.Boolean UnityEngine.TextCore.Text.TextGenerator::m_TintSprite
bool ___m_TintSprite_96;
// UnityEngine.TextCore.Text.TextGenerator/SpecialCharacter UnityEngine.TextCore.Text.TextGenerator::m_Ellipsis
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD ___m_Ellipsis_97;
// UnityEngine.TextCore.Text.TextGenerator/SpecialCharacter UnityEngine.TextCore.Text.TextGenerator::m_Underline
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD ___m_Underline_98;
// System.Boolean UnityEngine.TextCore.Text.TextGenerator::m_IsUsingBold
bool ___m_IsUsingBold_99;
// System.Boolean UnityEngine.TextCore.Text.TextGenerator::m_IsSdfShader
bool ___m_IsSdfShader_100;
// UnityEngine.TextCore.Text.TextElementInfo[] UnityEngine.TextCore.Text.TextGenerator::m_InternalTextElementInfo
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* ___m_InternalTextElementInfo_101;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::m_RecursiveCount
int32_t ___m_RecursiveCount_102;
};
struct TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366_StaticFields
{
// UnityEngine.TextCore.Text.TextGenerator UnityEngine.TextCore.Text.TextGenerator::s_TextGenerator
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* ___s_TextGenerator_0;
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// UnityEngine.TextCore.Text.TextElementInfo[]
struct TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E : public RuntimeArray
{
ALIGN_FIELD (8) TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976 m_Items[1];
inline TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___textElement_3), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___fontAsset_4), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___spriteAsset_5), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___material_7), (void*)NULL);
#endif
}
inline TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976 value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___textElement_3), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___fontAsset_4), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___spriteAsset_5), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___material_7), (void*)NULL);
#endif
}
};
// UnityEngine.TextCore.Text.LineInfo[]
struct LineInfoU5BU5D_t37598F2175B291797270D1161DC29B6296FB169D : public RuntimeArray
{
ALIGN_FIELD (8) LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 m_Items[1];
inline LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 value)
{
m_Items[index] = value;
}
};
// System.Int32[]
struct Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C : public RuntimeArray
{
ALIGN_FIELD (8) int32_t m_Items[1];
inline int32_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline int32_t* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, int32_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline int32_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline int32_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, int32_t value)
{
m_Items[index] = value;
}
};
// UnityEngine.TextCore.Text.XmlTagAttribute[]
struct XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2 : public RuntimeArray
{
ALIGN_FIELD (8) XmlTagAttribute_t2F0EE4823C3BB8B9ED6844183CA998A44EA1AB59 m_Items[1];
inline XmlTagAttribute_t2F0EE4823C3BB8B9ED6844183CA998A44EA1AB59 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline XmlTagAttribute_t2F0EE4823C3BB8B9ED6844183CA998A44EA1AB59* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, XmlTagAttribute_t2F0EE4823C3BB8B9ED6844183CA998A44EA1AB59 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline XmlTagAttribute_t2F0EE4823C3BB8B9ED6844183CA998A44EA1AB59 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline XmlTagAttribute_t2F0EE4823C3BB8B9ED6844183CA998A44EA1AB59* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, XmlTagAttribute_t2F0EE4823C3BB8B9ED6844183CA998A44EA1AB59 value)
{
m_Items[index] = value;
}
};
// System.Char[]
struct CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB : public RuntimeArray
{
ALIGN_FIELD (8) Il2CppChar m_Items[1];
inline Il2CppChar GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Il2CppChar* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, Il2CppChar value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Il2CppChar GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Il2CppChar* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Il2CppChar value)
{
m_Items[index] = value;
}
};
// UnityEngine.TextCore.Text.MaterialReference[]
struct MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E : public RuntimeArray
{
ALIGN_FIELD (8) MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 m_Items[1];
inline MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___fontAsset_1), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___spriteAsset_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___material_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___fallbackMaterial_6), (void*)NULL);
#endif
}
inline MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___fontAsset_1), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___spriteAsset_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___material_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___fallbackMaterial_6), (void*)NULL);
#endif
}
};
// UnityEngine.TextCore.Text.LinkInfo[]
struct LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51 : public RuntimeArray
{
ALIGN_FIELD (8) LinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8 m_Items[1];
inline LinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline LinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, LinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___linkId_5), (void*)NULL);
}
inline LinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline LinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, LinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8 value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___linkId_5), (void*)NULL);
}
};
// UnityEngine.Vector3[]
struct Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C : public RuntimeArray
{
ALIGN_FIELD (8) Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 m_Items[1];
inline Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 value)
{
m_Items[index] = value;
}
};
// UnityEngine.Vector2[]
struct Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA : public RuntimeArray
{
ALIGN_FIELD (8) Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 m_Items[1];
inline Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 value)
{
m_Items[index] = value;
}
};
// UnityEngine.Color32[]
struct Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259 : public RuntimeArray
{
ALIGN_FIELD (8) Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B m_Items[1];
inline Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B value)
{
m_Items[index] = value;
}
};
// UnityEngine.TextCore.Text.MeshInfo[]
struct MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6 : public RuntimeArray
{
ALIGN_FIELD (8) MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F m_Items[1];
inline MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___vertices_2), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___uvs0_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___uvs2_4), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___colors32_5), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___triangles_6), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___material_7), (void*)NULL);
#endif
}
inline MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___vertices_2), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___uvs0_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___uvs2_4), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___colors32_5), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___triangles_6), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___material_7), (void*)NULL);
#endif
}
};
// System.Single[]
struct SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C : public RuntimeArray
{
ALIGN_FIELD (8) float m_Items[1];
inline float GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline float* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, float value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline float GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline float* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, float value)
{
m_Items[index] = value;
}
};
// UnityEngine.TextCore.Text.TextColorGradient[]
struct TextColorGradientU5BU5D_tA27A5E49640CF01334A10DBDBC959903AFBD941A : public RuntimeArray
{
ALIGN_FIELD (8) TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* m_Items[1];
inline TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70** GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// System.UInt32[]
struct UInt32U5BU5D_t02FBD658AD156A17574ECE6106CF1FBFCC9807FA : public RuntimeArray
{
ALIGN_FIELD (8) uint32_t m_Items[1];
inline uint32_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline uint32_t* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, uint32_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline uint32_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline uint32_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, uint32_t value)
{
m_Items[index] = value;
}
};
// UnityEngine.TextCore.Text.RichTextTagAttribute[]
struct RichTextTagAttributeU5BU5D_tEE9D071B3246F23742DBF4226567620BCBB24A14 : public RuntimeArray
{
ALIGN_FIELD (8) RichTextTagAttribute_t0600951F833208392F1D8EE3E6A58AD5C797F9DA m_Items[1];
inline RichTextTagAttribute_t0600951F833208392F1D8EE3E6A58AD5C797F9DA GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline RichTextTagAttribute_t0600951F833208392F1D8EE3E6A58AD5C797F9DA* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, RichTextTagAttribute_t0600951F833208392F1D8EE3E6A58AD5C797F9DA value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline RichTextTagAttribute_t0600951F833208392F1D8EE3E6A58AD5C797F9DA GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline RichTextTagAttribute_t0600951F833208392F1D8EE3E6A58AD5C797F9DA* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, RichTextTagAttribute_t0600951F833208392F1D8EE3E6A58AD5C797F9DA value)
{
m_Items[index] = value;
}
};
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.Color32>::Add(T)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_gshared (TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* __this, Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___item0, const RuntimeMethod* method) ;
// T UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32Enum>::Peek()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TextProcessingStack_1_Peek_m9F2653A2C071071ADF1D4FE711539387E5791ED2_gshared (TextProcessingStack_1_t9C24840D494C4878BD8680855123926D6243C90D* __this, const RuntimeMethod* method) ;
// T UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.Color32>::Remove()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B TextProcessingStack_1_Remove_mCEB203288B57A916CE3C9482E239BF59D7A3BBBE_gshared (TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::Push(T)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1_Push_mBF18A764F6D1996DD6E7D2F217EB86BA84FD6A93_gshared (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, float ___item0, const RuntimeMethod* method) ;
// T UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::Pop()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float TextProcessingStack_1_Pop_m58499B721ABBBCFDF676B5EFA85F77B8B019128A_gshared (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32Enum>::Add(T)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1_Add_m74AEF5C32C1C97A4ADF76FC1AD6AE123983DF994_gshared (TextProcessingStack_1_t9C24840D494C4878BD8680855123926D6243C90D* __this, int32_t ___item0, const RuntimeMethod* method) ;
// T UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32Enum>::Remove()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TextProcessingStack_1_Remove_m67FE97DD53992CE7C697EA7D34F13BE6ED589D8A_gshared (TextProcessingStack_1_t9C24840D494C4878BD8680855123926D6243C90D* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::Add(T)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042_gshared (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, float ___item0, const RuntimeMethod* method) ;
// T UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::Remove()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float TextProcessingStack_1_Remove_m36486DFF2D5026596CFFED89F554CA9F296FBD6E_gshared (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.MaterialReference>::Add(T)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731_gshared (TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* __this, MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 ___item0, const RuntimeMethod* method) ;
// T UnityEngine.Resources::Load<System.Object>(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* Resources_Load_TisRuntimeObject_m8B40A11CE62A4E445DADC28C81BD73922A4D4B65_gshared (String_t* ___path0, const RuntimeMethod* method) ;
// T UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.MaterialReference>::Remove()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 TextProcessingStack_1_Remove_m24EDA872BB55BFF4493268F713CFBA50102917D0_gshared (TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextInfo::Resize<UnityEngine.TextCore.Text.LinkInfo>(T[]&,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextInfo_Resize_TisLinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8_mCED76C73D7A2398528C92992D323A2DBD1663DDD_gshared (LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51** ___array0, int32_t ___size1, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Object>::Add(T)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1_Add_m19E4C200DD3B7CF5D168373699A38E77BE5F90B4_gshared (TextProcessingStack_1_t5EA97AAC21CEE068194F77E59929440F85AD3991* __this, RuntimeObject* ___item0, const RuntimeMethod* method) ;
// T UnityEngine.TextCore.Text.TextProcessingStack`1<System.Object>::Remove()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* TextProcessingStack_1_Remove_m980CC97EA7B1B4954B4A5BA27809C0B27656FFF2_gshared (TextProcessingStack_1_t5EA97AAC21CEE068194F77E59929440F85AD3991* __this, const RuntimeMethod* method) ;
// System.Int32 System.Collections.Generic.List`1<System.Object>::get_Count()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m4407E4C389F22B8CEC282C15D56516658746C383_gshared_inline (List_1_tA239CB83DE5615F348BB0507E45F490F4F7C9A8D* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32>::Add(T)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1_Add_m022CA737B4340C51370BE07A79E71C63F553AD3C_gshared (TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8* __this, int32_t ___item0, const RuntimeMethod* method) ;
// T UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32>::Remove()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TextProcessingStack_1_Remove_m22098B317E1049C5DFD900721F2F489220C44212_gshared (TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32Enum>::SetDefault(T)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1_SetDefault_m8D8C14A7EA75EBF60C7DDD5F4C8A81209E37751D_gshared (TextProcessingStack_1_t9C24840D494C4878BD8680855123926D6243C90D* __this, int32_t ___item0, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.MaterialReference>::SetDefault(T)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1_SetDefault_mDAFD4911B5A8BEE57351A37415ADF348F0A6B54C_gshared (TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* __this, MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 ___item0, const RuntimeMethod* method) ;
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Int32>::Clear()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Dictionary_2_Clear_m9821889E928BB7EAEE9A7E81EDFC59651F7CBDD0_gshared (Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextInfo::Resize<UnityEngine.TextCore.Text.TextElementInfo>(T[]&,System.Int32,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextInfo_Resize_TisTextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976_mF1BA7075C51A6706D5946DC1D8B3FBE1B937C92E_gshared (TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E** ___array0, int32_t ___size1, bool ___isBlockAllocated2, const RuntimeMethod* method) ;
// T System.Collections.Generic.List`1<System.Object>::get_Item(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* List_1_get_Item_m33561245D64798C2AB07584C0EC4F240E4839A38_gshared (List_1_tA239CB83DE5615F348BB0507E45F490F4F7C9A8D* __this, int32_t ___index0, const RuntimeMethod* method) ;
// System.Int32 System.Collections.Generic.Dictionary`2<System.Int32,System.Int32>::get_Count()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Dictionary_2_get_Count_mD88F18E0B2065189516BF168F521E531BE54384A_gshared (Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextInfo::Resize<UnityEngine.TextCore.Text.MeshInfo>(T[]&,System.Int32,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextInfo_Resize_TisMeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F_m8DCA99800557BA87ADA9D085ECBE0F002B615BE2_gshared (MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6** ___array0, int32_t ___size1, bool ___isBlockAllocated2, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::SetDefault(T)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1_SetDefault_mA28AEF460395ECD6CBF6A469575571F64F6836B9_gshared (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, float ___item0, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::Clear()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1_Clear_m857C80F9AFD9507FE4784DB5DE79109E16C8EAA3_gshared (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, const RuntimeMethod* method) ;
// System.Boolean System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord>::TryGetValue(TKey,TValue&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Dictionary_2_TryGetValue_m45061EA2C8BF9DD9DC9DA92DAB968171136507DA_gshared (Dictionary_2_tDD72F78A572F94ECEDBDA75C3D17C3ED05C167E0* __this, uint32_t ___key0, GlyphPairAdjustmentRecord_t6E4295094D349DBF22BC59116FBC8F22EA55420E* ___value1, const RuntimeMethod* method) ;
// System.Boolean System.Collections.Generic.HashSet`1<System.UInt32>::Contains(T)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HashSet_1_Contains_m02385B663B65E53485251FFFD116D0F26BA172B9_gshared (HashSet_1_t5DD20B42149A11AEBF12A75505306E6EFC34943A* __this, uint32_t ___item0, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.MaterialReference>::.ctor(T[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1__ctor_m8D925AB632D621F377352A263B090EF1689AB7D6_gshared (TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* __this, MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* ___stack0, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::.ctor(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1__ctor_m51ECDDF2DCADEB66EED067F383D94ADCCFE61782_gshared (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, int32_t ___capacity0, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32Enum>::.ctor(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1__ctor_m19C47AD021D8A8D97C02081B352A112F5EC23CAB_gshared (TextProcessingStack_1_t9C24840D494C4878BD8680855123926D6243C90D* __this, int32_t ___capacity0, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::.ctor(T[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1__ctor_m711FBEB05216B8B7683BAF106DC2CA519C2986EF_gshared (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C* ___stack0, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.Color32>::.ctor(T[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1__ctor_m445613CACF63BB93528D0DF6A4806B721690BEA3_gshared (TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* __this, Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* ___stack0, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Object>::.ctor(T[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1__ctor_m8266BC8A892B0914C85742C5ACBCEDC2C072A84A_gshared (TextProcessingStack_1_t5EA97AAC21CEE068194F77E59929440F85AD3991* __this, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918* ___stack0, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32>::.ctor(T[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextProcessingStack_1__ctor_m46C659E94F74B5690AC0A547430C8D3387000CEC_gshared (TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8* __this, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___stack0, const RuntimeMethod* method) ;
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Int32>::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Dictionary_2__ctor_m712893C2C48C47CCAFAD85A865C702E8D3D2B71F_gshared (Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextGenerator::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator__ctor_m52E4D01DC28BDF753BF52F6501E7FD2FB2B30D90 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, const RuntimeMethod* method) ;
// System.Boolean UnityEngine.Object::op_Equality(UnityEngine.Object,UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536 (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C* ___x0, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C* ___y1, const RuntimeMethod* method) ;
// System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.Text.Character> UnityEngine.TextCore.Text.FontAsset::get_characterLookupTable()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Dictionary_2_t93CDF0F4011A5A3024EB73A492F9512E3046EACB* FontAsset_get_characterLookupTable_m7E76D6C706C5CEB04A9541C68AE6D9E5C75F0FFC (FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.Debug::LogWarning(System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Debug_LogWarning_mEF15C6B17CE4E1FA7E379CDB82CE40FCD89A3F28 (RuntimeObject* ___message0, const RuntimeMethod* method) ;
// System.Void UnityEngine.Debug::LogError(System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Debug_LogError_m059825802BB6AF7EA9693FEBEEB0D85F59A3E38E (RuntimeObject* ___message0, const RuntimeMethod* method) ;
// UnityEngine.TextCore.Text.TextGenerator UnityEngine.TextCore.Text.TextGenerator::GetTextGenerator()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* TextGenerator_GetTextGenerator_mE998D0B33A1DE99A0DE3436AE0FA47B997E21781 (const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextGenerator::Prepare(UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_Prepare_mD0A24977334138340CA73FB9787627373C6AA255 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings0, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo1, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.FontAsset::UpdateFontAssetInUpdateQueue()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void FontAsset_UpdateFontAssetInUpdateQueue_mF38C30B72EBABBF805BD542501783E2730F8B9B8 (const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextGenerator::GenerateTextMesh(UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_GenerateTextMesh_mAB70FC29A49A6C4F8211EA977E37C66BE67D1831 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings0, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo1, const RuntimeMethod* method) ;
// UnityEngine.Vector2 UnityEngine.Rect::get_position()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 Rect_get_position_m9B7E583E67443B6F4280A676E644BB0B9E7C4E38 (Rect_tA04E0F8A1830E767F40FB27ECD8D309303571F0D* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.Vector2::.ctor(System.Single,System.Single)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7* __this, float ___x0, float ___y1, const RuntimeMethod* method) ;
// System.Single UnityEngine.Rect::get_height()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Rect_get_height_mE1AA6C6C725CCD2D317BD2157396D3CF7D47C9D8 (Rect_tA04E0F8A1830E767F40FB27ECD8D309303571F0D* __this, const RuntimeMethod* method) ;
// UnityEngine.Vector2 UnityEngine.Vector2::op_Addition(UnityEngine.Vector2,UnityEngine.Vector2)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 Vector2_op_Addition_m704B5B98EAFE885978381E21B7F89D9DF83C2A60_inline (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___a0, Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___b1, const RuntimeMethod* method) ;
// UnityEngine.Vector2 UnityEngine.Vector2::get_zero()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 Vector2_get_zero_m009B92B5D35AB02BD1610C2E1ACCE7C9CF964A6E_inline (const RuntimeMethod* method) ;
// UnityEngine.Vector2 UnityEngine.TextCore.Text.TextGenerator::GetPreferredValuesInternal(UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 TextGenerator_GetPreferredValuesInternal_m125B070164DFEA503C67525D1F418DAF41300ABD (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings0, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo1, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextGenerator::GetSpecialCharacters(UnityEngine.TextCore.Text.TextGenerationSettings)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_GetSpecialCharacters_mA82879FA537C58223BB660E797AC135A8E07B492 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings0, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextGenerator::ComputeMarginSize(UnityEngine.Rect,UnityEngine.Vector4)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_ComputeMarginSize_m485F8B01196058B15F597DE99D6F6A47FA539D3F (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, Rect_tA04E0F8A1830E767F40FB27ECD8D309303571F0D ___rect0, Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3 ___margins1, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextGeneratorUtilities::StringToCharArray(System.String,System.Int32[]&,UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32>&,UnityEngine.TextCore.Text.TextGenerationSettings)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGeneratorUtilities_StringToCharArray_m8268FA89F86210B39C56D1ED4C0FEBB27DA2713B (String_t* ___sourceText0, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C** ___charBuffer1, TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8* ___styleStack2, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings3, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextGenerator::SetArraySizes(System.Int32[],UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_SetArraySizes_mF0041F3D79936C05EB87DEE399F1DC389CCD1BD5 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___chars0, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings1, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo2, const RuntimeMethod* method) ;
// System.Single UnityEngine.Mathf::Clamp(System.Single,System.Single,System.Single)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float Mathf_Clamp_m154E404AF275A3B2EC99ECAA3879B4CB9F0606DC_inline (float ___value0, float ___min1, float ___max2, const RuntimeMethod* method) ;
// System.UInt32 UnityEngine.TextCore.Text.TextUtilities::ToUpperASCIIFast(System.UInt32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint32_t TextUtilities_ToUpperASCIIFast_mCA372CC9A0CF7A2B86CC2C3914CB7FA5D3441CFF (uint32_t ___c0, const RuntimeMethod* method) ;
// UnityEngine.Color32 UnityEngine.TextCore.Text.TextGeneratorUtilities::HexCharsToColor(System.Char[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B TextGeneratorUtilities_HexCharsToColor_mB7D42327546D443ADF83696B99E2CFD921FEE21F (CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* ___hexChars0, int32_t ___tagCount1, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.Color32>::Add(T)
inline void TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976 (TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* __this, Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___item0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63*, Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B, const RuntimeMethod*))TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_gshared)(__this, ___item0, method);
}
// System.Byte UnityEngine.TextCore.Text.FontStyleStack::Add(UnityEngine.TextCore.Text.FontStyles)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint8_t FontStyleStack_Add_m26E701C9F052EEEBB213B9B8BC6CB8F1F8F6AFCB (FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* __this, int32_t ___style0, const RuntimeMethod* method) ;
// System.Byte UnityEngine.TextCore.Text.FontStyleStack::Remove(UnityEngine.TextCore.Text.FontStyles)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint8_t FontStyleStack_Remove_mC2B4F44A6596E92D6992DBCA298648F8A7416CAB (FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* __this, int32_t ___style0, const RuntimeMethod* method) ;
// T UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextFontWeight>::Peek()
inline int32_t TextProcessingStack_1_Peek_mE06D9422EAE774A3926E6956483EB39E6425D2E0 (TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790* __this, const RuntimeMethod* method)
{
return (( int32_t (*) (TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790*, const RuntimeMethod*))TextProcessingStack_1_Peek_m9F2653A2C071071ADF1D4FE711539387E5791ED2_gshared)(__this, method);
}
// UnityEngine.Color32 UnityEngine.TextCore.Text.TextGeneratorUtilities::HexCharsToColor(System.Char[],System.Int32,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B TextGeneratorUtilities_HexCharsToColor_m0FC6E21EF35547ADFEA41B876C6FC1CD37C71019 (CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* ___hexChars0, int32_t ___startIndex1, int32_t ___length2, const RuntimeMethod* method) ;
// T UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.Color32>::Remove()
inline Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B TextProcessingStack_1_Remove_mCEB203288B57A916CE3C9482E239BF59D7A3BBBE (TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* __this, const RuntimeMethod* method)
{
return (( Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B (*) (TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63*, const RuntimeMethod*))TextProcessingStack_1_Remove_mCEB203288B57A916CE3C9482E239BF59D7A3BBBE_gshared)(__this, method);
}
// UnityEngine.TextCore.FaceInfo UnityEngine.TextCore.Text.FontAsset::get_faceInfo()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9 (FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* __this, const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.FaceInfo::get_subscriptSize()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float FaceInfo_get_subscriptSize_mF6264BFB215FDE6C94A45D2F8FC946ADFCDD2E31 (FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::Push(T)
inline void TextProcessingStack_1_Push_mBF18A764F6D1996DD6E7D2F217EB86BA84FD6A93 (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, float ___item0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555*, float, const RuntimeMethod*))TextProcessingStack_1_Push_mBF18A764F6D1996DD6E7D2F217EB86BA84FD6A93_gshared)(__this, ___item0, method);
}
// System.Single UnityEngine.TextCore.FaceInfo::get_subscriptOffset()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float FaceInfo_get_subscriptOffset_mF1D3E68AC3D449CBC73AA0CBF5B8A187C6C5285A (FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756* __this, const RuntimeMethod* method) ;
// T UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::Pop()
inline float TextProcessingStack_1_Pop_m58499B721ABBBCFDF676B5EFA85F77B8B019128A (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, const RuntimeMethod* method)
{
return (( float (*) (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555*, const RuntimeMethod*))TextProcessingStack_1_Pop_m58499B721ABBBCFDF676B5EFA85F77B8B019128A_gshared)(__this, method);
}
// System.Single UnityEngine.TextCore.FaceInfo::get_superscriptSize()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float FaceInfo_get_superscriptSize_mC3ABE7C70559A8214294CDA598B17FD62BDC2EE0 (FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756* __this, const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.FaceInfo::get_superscriptOffset()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float FaceInfo_get_superscriptOffset_m8D462DB86414D8507C7D1CC6881DA9EC896FB80A (FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756* __this, const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.Text.TextGeneratorUtilities::ConvertToFloat(System.Char[],System.Int32,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978 (CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* ___chars0, int32_t ___startIndex1, int32_t ___length2, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextFontWeight>::Add(T)
inline void TextProcessingStack_1_Add_m15B10B664846D4F52E8FE84908D9B4196C697CF2 (TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790* __this, int32_t ___item0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790*, int32_t, const RuntimeMethod*))TextProcessingStack_1_Add_m74AEF5C32C1C97A4ADF76FC1AD6AE123983DF994_gshared)(__this, ___item0, method);
}
// T UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextFontWeight>::Remove()
inline int32_t TextProcessingStack_1_Remove_mFC7EB20F1D31BC8E84C07AAABD63626EAB1424BE (TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790* __this, const RuntimeMethod* method)
{
return (( int32_t (*) (TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790*, const RuntimeMethod*))TextProcessingStack_1_Remove_m67FE97DD53992CE7C697EA7D34F13BE6ED589D8A_gshared)(__this, method);
}
// System.Single UnityEngine.TextCore.FaceInfo::get_tabWidth()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float FaceInfo_get_tabWidth_mC6D9F42C40EDD767DE22050E4FBE3878AC96B161 (FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756* __this, const RuntimeMethod* method) ;
// System.Byte UnityEngine.TextCore.Text.FontAsset::get_tabMultiple()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint8_t FontAsset_get_tabMultiple_m9C0422A00BFCF82091F14F4E303E2717247350AE (FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* __this, const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.FaceInfo::get_ascentLine()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float FaceInfo_get_ascentLine_m193755D649428EC24A7E433A1728F11DA7547ABD (FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::Add(T)
inline void TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042 (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, float ___item0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555*, float, const RuntimeMethod*))TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042_gshared)(__this, ___item0, method);
}
// System.Int32 UnityEngine.TextCore.FaceInfo::get_pointSize()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t FaceInfo_get_pointSize_m7EF7429A4725AB715931A220F6BB498C3D6BF7CB (FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756* __this, const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.FaceInfo::get_scale()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float FaceInfo_get_scale_mC475A572AD4956B47D8B9F8D90DC69BBBB102FCD (FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756* __this, const RuntimeMethod* method) ;
// T UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::Remove()
inline float TextProcessingStack_1_Remove_m36486DFF2D5026596CFFED89F554CA9F296FBD6E (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, const RuntimeMethod* method)
{
return (( float (*) (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555*, const RuntimeMethod*))TextProcessingStack_1_Remove_m36486DFF2D5026596CFFED89F554CA9F296FBD6E_gshared)(__this, method);
}
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.MaterialReference>::Add(T)
inline void TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731 (TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* __this, MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 ___item0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA*, MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26, const RuntimeMethod*))TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731_gshared)(__this, ___item0, method);
}
// System.Boolean UnityEngine.TextCore.Text.MaterialReferenceManager::TryGetFontAsset(System.Int32,UnityEngine.TextCore.Text.FontAsset&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool MaterialReferenceManager_TryGetFontAsset_m81063D8799AF27566284930B3D3656A3022A1113 (int32_t ___hashCode0, FontAsset_t61A6446D934E582651044E33D250EA8D306AB958** ___fontAsset1, const RuntimeMethod* method) ;
// System.String UnityEngine.TextCore.Text.TextSettings::get_defaultFontAssetPath()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR String_t* TextSettings_get_defaultFontAssetPath_mF7B1713753CFAE048C745C3572332CE18CD51D3B_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method) ;
// System.String System.String::CreateString(System.Char[],System.Int32,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_CreateString_mB7B3AC2AF28010538650051A9000369B1CD6BAB6 (String_t* __this, CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* ___val0, int32_t ___startIndex1, int32_t ___length2, const RuntimeMethod* method) ;
// System.String System.String::Concat(System.String,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Concat_mAF2CE02CC0CB7460753D0A1A91CCF2B1E9804C5D (String_t* ___str00, String_t* ___str11, const RuntimeMethod* method) ;
// T UnityEngine.Resources::Load<UnityEngine.TextCore.Text.FontAsset>(System.String)
inline FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* Resources_Load_TisFontAsset_t61A6446D934E582651044E33D250EA8D306AB958_mCA232125ECB8FA8B7AF234B15733CEC79EF821C6 (String_t* ___path0, const RuntimeMethod* method)
{
return (( FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* (*) (String_t*, const RuntimeMethod*))Resources_Load_TisRuntimeObject_m8B40A11CE62A4E445DADC28C81BD73922A4D4B65_gshared)(___path0, method);
}
// System.Void UnityEngine.TextCore.Text.MaterialReferenceManager::AddFontAsset(UnityEngine.TextCore.Text.FontAsset)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MaterialReferenceManager_AddFontAsset_m52CD48B3A314C766C40A0D5BAAA092FFD2F6A204 (FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset0, const RuntimeMethod* method) ;
// UnityEngine.Material UnityEngine.TextCore.Text.TextAsset::get_material()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* TextAsset_get_material_m4B9C02D34426436FDB01F1963A9FDC11D75604EF_inline (TextAsset_tB28F1843A877CCA74B89DC4F63EA532618B049B8* __this, const RuntimeMethod* method) ;
// System.Int32 UnityEngine.TextCore.Text.MaterialReference::AddMaterialReference(UnityEngine.Material,UnityEngine.TextCore.Text.FontAsset,UnityEngine.TextCore.Text.MaterialReference[]&,System.Collections.Generic.Dictionary`2<System.Int32,System.Int32>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t MaterialReference_AddMaterialReference_m6C0963F5E7C06B0371F2B18FE177D55B6C4C1105 (Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material0, FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset1, MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E** ___materialReferences2, Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* ___materialReferenceIndexLookup3, const RuntimeMethod* method) ;
// System.Boolean UnityEngine.TextCore.Text.MaterialReferenceManager::TryGetMaterial(System.Int32,UnityEngine.Material&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool MaterialReferenceManager_TryGetMaterial_m54A7E79A8D506AB95FED10236597C60C9F4CC8C1 (int32_t ___hashCode0, Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3** ___material1, const RuntimeMethod* method) ;
// T UnityEngine.Resources::Load<UnityEngine.Material>(System.String)
inline Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* Resources_Load_TisMaterial_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3_m28782CC70624922DAF3B0FB13930E4EB59848128 (String_t* ___path0, const RuntimeMethod* method)
{
return (( Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* (*) (String_t*, const RuntimeMethod*))Resources_Load_TisRuntimeObject_m8B40A11CE62A4E445DADC28C81BD73922A4D4B65_gshared)(___path0, method);
}
// System.Void UnityEngine.TextCore.Text.MaterialReferenceManager::AddFontMaterial(System.Int32,UnityEngine.Material)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MaterialReferenceManager_AddFontMaterial_mBE61E1B0E6CBB58695731DC975859E349CA99C8A (int32_t ___hashCode0, Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material1, const RuntimeMethod* method) ;
// T UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.MaterialReference>::Remove()
inline MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 TextProcessingStack_1_Remove_m24EDA872BB55BFF4493268F713CFBA50102917D0 (TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* __this, const RuntimeMethod* method)
{
return (( MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 (*) (TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA*, const RuntimeMethod*))TextProcessingStack_1_Remove_m24EDA872BB55BFF4493268F713CFBA50102917D0_gshared)(__this, method);
}
// System.Int32 UnityEngine.TextCore.Text.TextGeneratorUtilities::HexToInt(System.Char)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TextGeneratorUtilities_HexToInt_mE6FAC19C36EDFE1E5AE08F14483B1D1BB773C61C (Il2CppChar ___hex0, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextInfo::Resize<UnityEngine.TextCore.Text.LinkInfo>(T[]&,System.Int32)
inline void TextInfo_Resize_TisLinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8_mCED76C73D7A2398528C92992D323A2DBD1663DDD (LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51** ___array0, int32_t ___size1, const RuntimeMethod* method)
{
(( void (*) (LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51**, int32_t, const RuntimeMethod*))TextInfo_Resize_TisLinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8_mCED76C73D7A2398528C92992D323A2DBD1663DDD_gshared)(___array0, ___size1, method);
}
// System.Void UnityEngine.TextCore.Text.LinkInfo::SetLinkId(System.Char[],System.Int32,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void LinkInfo_SetLinkId_mB4145264190D5C857705261CB27F87C6E10C3F3F (LinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8* __this, CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* ___text0, int32_t ___startIndex1, int32_t ___length2, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextAlignment>::Add(T)
inline void TextProcessingStack_1_Add_m274EBB250C6149AB4014207A84EC9F3F83C39125 (TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F* __this, int32_t ___item0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F*, int32_t, const RuntimeMethod*))TextProcessingStack_1_Add_m74AEF5C32C1C97A4ADF76FC1AD6AE123983DF994_gshared)(__this, ___item0, method);
}
// T UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextAlignment>::Remove()
inline int32_t TextProcessingStack_1_Remove_m3C7936195E04FE5C7BD27A56E88A06DEDA9EA5BF (TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F* __this, const RuntimeMethod* method)
{
return (( int32_t (*) (TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F*, const RuntimeMethod*))TextProcessingStack_1_Remove_m67FE97DD53992CE7C697EA7D34F13BE6ED589D8A_gshared)(__this, method);
}
// UnityEngine.Color UnityEngine.Color::get_red()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color_get_red_m27D04C1E5FE794AD933B7B9364F3D34B9EA25109_inline (const RuntimeMethod* method) ;
// UnityEngine.Color32 UnityEngine.Color32::op_Implicit(UnityEngine.Color)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline (Color_tD001788D726C3A7F1379BEED0260B9591F440C1F ___c0, const RuntimeMethod* method) ;
// UnityEngine.Color UnityEngine.Color::get_blue()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color_get_blue_m0D04554379CB8606EF48E3091CDC3098B81DD86D_inline (const RuntimeMethod* method) ;
// UnityEngine.Color UnityEngine.Color::get_black()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color_get_black_mBF96B603B41BED9BAFAA10CE8D946D24260F9729_inline (const RuntimeMethod* method) ;
// UnityEngine.Color UnityEngine.Color::get_green()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color_get_green_m336EB73DD4A5B11B7F405CF4BC7F37A466FB4FF7_inline (const RuntimeMethod* method) ;
// UnityEngine.Color UnityEngine.Color::get_white()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color_get_white_m28BB6E19F27D4EE6858D3021A44F62BC74E20C43_inline (const RuntimeMethod* method) ;
// System.Void UnityEngine.Color32::.ctor(System.Byte,System.Byte,System.Byte,System.Byte)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void Color32__ctor_mC9C6B443F0C7CA3F8B174158B2AF6F05E18EAC4E_inline (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* __this, uint8_t ___r0, uint8_t ___g1, uint8_t ___b2, uint8_t ___a3, const RuntimeMethod* method) ;
// UnityEngine.Color UnityEngine.Color::get_yellow()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color_get_yellow_m1EF7276EF58050DFBA8921E2383F0249C08D346F_inline (const RuntimeMethod* method) ;
// System.Boolean UnityEngine.TextCore.Text.MaterialReferenceManager::TryGetColorGradientPreset(System.Int32,UnityEngine.TextCore.Text.TextColorGradient&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool MaterialReferenceManager_TryGetColorGradientPreset_m379362C98A5E71979208D750F9699E6F7E3D5C44 (int32_t ___hashCode0, TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70** ___gradientPreset1, const RuntimeMethod* method) ;
// System.String UnityEngine.TextCore.Text.TextSettings::get_defaultColorGradientPresetsPath()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR String_t* TextSettings_get_defaultColorGradientPresetsPath_m1571454580E1F0DC859D3F201BB1F6355A5DBB8E_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method) ;
// T UnityEngine.Resources::Load<UnityEngine.TextCore.Text.TextColorGradient>(System.String)
inline TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* Resources_Load_TisTextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70_m3B4500F9148F6FEC1F400C8A57D4E6A3731FDAC2 (String_t* ___path0, const RuntimeMethod* method)
{
return (( TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* (*) (String_t*, const RuntimeMethod*))Resources_Load_TisRuntimeObject_m8B40A11CE62A4E445DADC28C81BD73922A4D4B65_gshared)(___path0, method);
}
// System.Void UnityEngine.TextCore.Text.MaterialReferenceManager::AddColorGradientPreset(System.Int32,UnityEngine.TextCore.Text.TextColorGradient)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MaterialReferenceManager_AddColorGradientPreset_m8D59A614318734899E9AAD9924EBF4A18F76777D (int32_t ___hashCode0, TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* ___spriteAsset1, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextColorGradient>::Add(T)
inline void TextProcessingStack_1_Add_mFB2400CB8E620060FDD41E7FB5E57A238F67E666 (TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E* __this, TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* ___item0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E*, TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70*, const RuntimeMethod*))TextProcessingStack_1_Add_m19E4C200DD3B7CF5D168373699A38E77BE5F90B4_gshared)(__this, ___item0, method);
}
// T UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextColorGradient>::Remove()
inline TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* TextProcessingStack_1_Remove_mABFF8426A0D669AEEE6FB5017100904E559EEBF6 (TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E* __this, const RuntimeMethod* method)
{
return (( TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* (*) (TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E*, const RuntimeMethod*))TextProcessingStack_1_Remove_m980CC97EA7B1B4954B4A5BA27809C0B27656FFF2_gshared)(__this, method);
}
// System.Boolean UnityEngine.Object::op_Inequality(UnityEngine.Object,UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Inequality_m4D656395C27694A7F33F5AA8DE80A7AAF9E20BA7 (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C* ___x0, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C* ___y1, const RuntimeMethod* method) ;
// UnityEngine.TextCore.Text.SpriteAsset UnityEngine.TextCore.Text.TextSettings::get_defaultSpriteAsset()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* TextSettings_get_defaultSpriteAsset_m8FA900F9747B7ADBCD2A2F612E7D977DB58D6445_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method) ;
// T UnityEngine.Resources::Load<UnityEngine.TextCore.Text.SpriteAsset>(System.String)
inline SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* Resources_Load_TisSpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313_mDBDF61D69ECF9D35DA0ABDE51CBA6667E0571EEF (String_t* ___path0, const RuntimeMethod* method)
{
return (( SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* (*) (String_t*, const RuntimeMethod*))Resources_Load_TisRuntimeObject_m8B40A11CE62A4E445DADC28C81BD73922A4D4B65_gshared)(___path0, method);
}
// System.Boolean UnityEngine.TextCore.Text.MaterialReferenceManager::TryGetSpriteAsset(System.Int32,UnityEngine.TextCore.Text.SpriteAsset&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool MaterialReferenceManager_TryGetSpriteAsset_m848DD587C2EB15DF11C64095BAD6E34FE7CA8E3A (int32_t ___hashCode0, SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313** ___spriteAsset1, const RuntimeMethod* method) ;
// System.String UnityEngine.TextCore.Text.TextSettings::get_defaultSpriteAssetPath()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR String_t* TextSettings_get_defaultSpriteAssetPath_mF57875222B7FACC9B69369305EEEB53FFE7986E0_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.MaterialReferenceManager::AddSpriteAsset(System.Int32,UnityEngine.TextCore.Text.SpriteAsset)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MaterialReferenceManager_AddSpriteAsset_mC871D76124B93F40E57F5E99BAAB51770E347F49 (int32_t ___hashCode0, SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___spriteAsset1, const RuntimeMethod* method) ;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.SpriteCharacter> UnityEngine.TextCore.Text.SpriteAsset::get_spriteCharacterTable()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR List_1_t7DA088250C54C07AF1211AE132355AD2D343EE51* SpriteAsset_get_spriteCharacterTable_m8D0D65C430AD8BC8C2BC8151DC4672CC0F690E0A (SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* __this, const RuntimeMethod* method) ;
// System.Int32 System.Collections.Generic.List`1<UnityEngine.TextCore.Text.SpriteCharacter>::get_Count()
inline int32_t List_1_get_Count_mFD42C320FC3C4884CD9A746FB26476D6662DFF58_inline (List_1_t7DA088250C54C07AF1211AE132355AD2D343EE51* __this, const RuntimeMethod* method)
{
return (( int32_t (*) (List_1_t7DA088250C54C07AF1211AE132355AD2D343EE51*, const RuntimeMethod*))List_1_get_Count_m4407E4C389F22B8CEC282C15D56516658746C383_gshared_inline)(__this, method);
}
// UnityEngine.TextCore.Text.SpriteAsset UnityEngine.TextCore.Text.SpriteAsset::SearchForSpriteByHashCode(UnityEngine.TextCore.Text.SpriteAsset,System.Int32,System.Boolean,System.Int32&,UnityEngine.TextCore.Text.TextSettings)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* SpriteAsset_SearchForSpriteByHashCode_mE89EE4F71AA7F78A18D9C4BABBF8BD393E2A5035 (SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___spriteAsset0, int32_t ___hashCode1, bool ___includeFallbacks2, int32_t* ___spriteIndex3, TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* ___textSettings4, const RuntimeMethod* method) ;
// System.Int32 UnityEngine.TextCore.Text.MaterialReference::AddMaterialReference(UnityEngine.Material,UnityEngine.TextCore.Text.SpriteAsset,UnityEngine.TextCore.Text.MaterialReference[]&,System.Collections.Generic.Dictionary`2<System.Int32,System.Int32>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t MaterialReference_AddMaterialReference_m04F13DFCB5D0C707877E45A48B6C47CE80FC99E7 (Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material0, SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___spriteAsset1, MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E** ___materialReferences2, Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* ___materialReferenceIndexLookup3, const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.FaceInfo::get_lineHeight()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float FaceInfo_get_lineHeight_m528B4A822181FCECF3D4FF1045DF288E5872AB9D (FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32>::Add(T)
inline void TextProcessingStack_1_Add_m022CA737B4340C51370BE07A79E71C63F553AD3C (TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8* __this, int32_t ___item0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8*, int32_t, const RuntimeMethod*))TextProcessingStack_1_Add_m022CA737B4340C51370BE07A79E71C63F553AD3C_gshared)(__this, ___item0, method);
}
// T UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32>::Remove()
inline int32_t TextProcessingStack_1_Remove_m22098B317E1049C5DFD900721F2F489220C44212 (TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8* __this, const RuntimeMethod* method)
{
return (( int32_t (*) (TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8*, const RuntimeMethod*))TextProcessingStack_1_Remove_m22098B317E1049C5DFD900721F2F489220C44212_gshared)(__this, method);
}
// UnityEngine.Vector3 UnityEngine.Vector3::get_zero()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 Vector3_get_zero_m9D7F7B580B5A276411267E96AA3425736D9BDC83_inline (const RuntimeMethod* method) ;
// UnityEngine.Quaternion UnityEngine.Quaternion::get_identity()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974 Quaternion_get_identity_mB9CAEEB21BC81352CBF32DB9664BFC06FA7EA27B_inline (const RuntimeMethod* method) ;
// System.Void UnityEngine.Vector3::.ctor(System.Single,System.Single,System.Single)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2* __this, float ___x0, float ___y1, float ___z2, const RuntimeMethod* method) ;
// UnityEngine.Matrix4x4 UnityEngine.Matrix4x4::TRS(UnityEngine.Vector3,UnityEngine.Quaternion,UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Matrix4x4_tDB70CF134A14BA38190C59AA700BCE10E2AED3E6 Matrix4x4_TRS_mFEBA6926DB0044B96EF0CE98F30FEE7596820680 (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___pos0, Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974 ___q1, Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___s2, const RuntimeMethod* method) ;
// UnityEngine.Quaternion UnityEngine.Quaternion::Euler(System.Single,System.Single,System.Single)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974 Quaternion_Euler_mD4601D966F1F58F3FCA01B3FC19A12D0AD0396DD_inline (float ___x0, float ___y1, float ___z2, const RuntimeMethod* method) ;
// UnityEngine.Vector3 UnityEngine.Vector3::get_one()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 Vector3_get_one_mE6A2D5C6578E94268024613B596BF09F990B1260_inline (const RuntimeMethod* method) ;
// UnityEngine.Color UnityEngine.Color32::op_Implicit(UnityEngine.Color32)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color32_op_Implicit_m203A634DBB77053C9400C68065CA29529103D172_inline (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___c0, const RuntimeMethod* method) ;
// UnityEngine.Color UnityEngine.Color::op_Multiply(UnityEngine.Color,UnityEngine.Color)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color_op_Multiply_mF17D278EB0ABC9AEB32E829D5CA98784E0D6B66F_inline (Color_tD001788D726C3A7F1379BEED0260B9591F440C1F ___a0, Color_tD001788D726C3A7F1379BEED0260B9591F440C1F ___b1, const RuntimeMethod* method) ;
// UnityEngine.TextCore.Glyph UnityEngine.TextCore.Text.TextElement::get_glyph()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2 (TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* __this, const RuntimeMethod* method) ;
// UnityEngine.TextCore.GlyphRect UnityEngine.TextCore.Glyph::get_glyphRect()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D Glyph_get_glyphRect_m94E7C5FE682695CDC096248EF027079F33768EE5 (Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* __this, const RuntimeMethod* method) ;
// System.Int32 UnityEngine.TextCore.GlyphRect::get_x()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t GlyphRect_get_x_m453EECC6C6F08602B1F74C5E1D8EE1163236A898 (GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D* __this, const RuntimeMethod* method) ;
// System.Int32 UnityEngine.TextCore.Text.FontAsset::get_atlasWidth()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t FontAsset_get_atlasWidth_mE711550FDD4B5F988B77AB5D332A80A34B5CF364 (FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* __this, const RuntimeMethod* method) ;
// System.Int32 UnityEngine.TextCore.GlyphRect::get_y()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t GlyphRect_get_y_mE31390BB3185EEA82DD16EA41E208F6A0397E3EA (GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D* __this, const RuntimeMethod* method) ;
// System.Int32 UnityEngine.TextCore.Text.FontAsset::get_atlasHeight()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t FontAsset_get_atlasHeight_m306FBF7D35C39123A4770E147FAF95B1B8DE8086 (FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* __this, const RuntimeMethod* method) ;
// System.Int32 UnityEngine.TextCore.GlyphRect::get_height()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t GlyphRect_get_height_m7F4D04452994E0D18762BB44352608E484DAAC1A (GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D* __this, const RuntimeMethod* method) ;
// System.Int32 UnityEngine.TextCore.GlyphRect::get_width()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t GlyphRect_get_width_mD291C7644BBF18D6A213427F6C9C28840F233F12 (GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D* __this, const RuntimeMethod* method) ;
// UnityEngine.Color32 UnityEngine.TextCore.Text.ColorUtilities::MultiplyColors(UnityEngine.Color32,UnityEngine.Color32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ColorUtilities_MultiplyColors_m1C827E2736C56C30621318B1358ABC9BF5B59C68 (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___c10, Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___c21, const RuntimeMethod* method) ;
// UnityEngine.Texture UnityEngine.TextCore.Text.SpriteAsset::get_spriteSheet()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Texture_t791CBB51219779964E0E8A2ED7C1AA5F92A4A700* SpriteAsset_get_spriteSheet_mC53205114A12A79F7495FA5F5EFC9948F151256B (SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextGenerator::GetUnderlineSpecialCharacter(UnityEngine.TextCore.Text.TextGenerationSettings)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_GetUnderlineSpecialCharacter_mE5E9D5DEB9A7758333CDDCAD05EF25F076EC1AD5 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings0, const RuntimeMethod* method) ;
// System.Boolean UnityEngine.TextCore.Text.TextSettings::get_displayWarnings()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR bool TextSettings_get_displayWarnings_m3CA9FCB44B30CC06F54CD3716D68285FF844DF83_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.MeshInfo::ResizeMeshInfo(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MeshInfo_ResizeMeshInfo_mE411FE40935FB9CFB7C334B3A1F216A98B96F5FC (MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F* __this, int32_t ___size0, const RuntimeMethod* method) ;
// System.Single UnityEngine.Mathf::Min(System.Single,System.Single)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float Mathf_Min_m4F2A9C5128DC3F9E84865EE7ADA8DB5DA6B8B507_inline (float ___a0, float ___b1, const RuntimeMethod* method) ;
// UnityEngine.TextCore.GlyphMetrics UnityEngine.TextCore.Glyph::get_metrics()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A Glyph_get_metrics_mB6E9D3D1899E35BA257638F6F58B7D260170B6FA (Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* __this, const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.GlyphMetrics::get_width()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float GlyphMetrics_get_width_m0F9F391E3A98984167E8001D4101BE1CE9354D13 (GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A* __this, const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.FaceInfo::get_underlineThickness()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float FaceInfo_get_underlineThickness_mC032F8C026994AF3FD49E6AB12E113F61EFA98E2 (FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756* __this, const RuntimeMethod* method) ;
// UnityEngine.Vector3 UnityEngine.Vector3::op_Addition(UnityEngine.Vector3,UnityEngine.Vector3)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 Vector3_op_Addition_m087D6F0EC60843D455F9F83D25FE42B2433AAD1D_inline (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___a0, Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___b1, const RuntimeMethod* method) ;
// System.Single UnityEngine.Rect::get_y()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Rect_get_y_mC733E8D49F3CE21B2A3D40A1B72D687F22C97F49 (Rect_tA04E0F8A1830E767F40FB27ECD8D309303571F0D* __this, const RuntimeMethod* method) ;
// UnityEngine.Vector2 UnityEngine.TextCore.Text.TextGeneratorUtilities::PackUV(System.Single,System.Single,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 TextGeneratorUtilities_PackUV_mFEB61C8552EE615440A86C18582F5A8117082259 (float ___x0, float ___y1, float ___scale2, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextInfo::ClearMeshInfo(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextInfo_ClearMeshInfo_mCA598F01C7F302CFCD0F508E2DBF072E66CA74F3 (TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* __this, bool ___updateMesh0, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextFontWeight>::SetDefault(T)
inline void TextProcessingStack_1_SetDefault_mDF71503A7E4F1891305CDCC7AE245CA66A713E79 (TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790* __this, int32_t ___item0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790*, int32_t, const RuntimeMethod*))TextProcessingStack_1_SetDefault_m8D8C14A7EA75EBF60C7DDD5F4C8A81209E37751D_gshared)(__this, ___item0, method);
}
// System.Void UnityEngine.TextCore.Text.MaterialReference::.ctor(System.Int32,UnityEngine.TextCore.Text.FontAsset,UnityEngine.TextCore.Text.SpriteAsset,UnityEngine.Material,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MaterialReference__ctor_m044AAA2C1079EB25A5534A6E0FA2314F033DB15A (MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26* __this, int32_t ___index0, FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset1, SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___spriteAsset2, Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material3, float ___padding4, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.MaterialReference>::SetDefault(T)
inline void TextProcessingStack_1_SetDefault_mDAFD4911B5A8BEE57351A37415ADF348F0A6B54C (TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* __this, MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 ___item0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA*, MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26, const RuntimeMethod*))TextProcessingStack_1_SetDefault_mDAFD4911B5A8BEE57351A37415ADF348F0A6B54C_gshared)(__this, ___item0, method);
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Int32>::Clear()
inline void Dictionary_2_Clear_m9821889E928BB7EAEE9A7E81EDFC59651F7CBDD0 (Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* __this, const RuntimeMethod* method)
{
(( void (*) (Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180*, const RuntimeMethod*))Dictionary_2_Clear_m9821889E928BB7EAEE9A7E81EDFC59651F7CBDD0_gshared)(__this, method);
}
// System.Void UnityEngine.TextCore.Text.TextInfo::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextInfo__ctor_m241E24715CC5F6293DC90A4D25884548BAD0D602 (TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextInfo::Resize<UnityEngine.TextCore.Text.TextElementInfo>(T[]&,System.Int32,System.Boolean)
inline void TextInfo_Resize_TisTextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976_mF1BA7075C51A6706D5946DC1D8B3FBE1B937C92E (TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E** ___array0, int32_t ___size1, bool ___isBlockAllocated2, const RuntimeMethod* method)
{
(( void (*) (TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E**, int32_t, bool, const RuntimeMethod*))TextInfo_Resize_TisTextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976_mF1BA7075C51A6706D5946DC1D8B3FBE1B937C92E_gshared)(___array0, ___size1, ___isBlockAllocated2, method);
}
// System.Boolean UnityEngine.TextCore.Text.TextGenerator::ValidateHtmlTag(System.Int32[],System.Int32,System.Int32&,UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool TextGenerator_ValidateHtmlTag_m9C85462F15A6165B10E4C4EE93620AC1021BE5CD (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___chars0, int32_t ___startIndex1, int32_t* ___endIndex2, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings3, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo4, const RuntimeMethod* method) ;
// T System.Collections.Generic.List`1<UnityEngine.TextCore.Text.SpriteCharacter>::get_Item(System.Int32)
inline SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* List_1_get_Item_m25CB12C13D14620785B0E86F6543D20B5080AFF8 (List_1_t7DA088250C54C07AF1211AE132355AD2D343EE51* __this, int32_t ___index0, const RuntimeMethod* method)
{
return (( SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* (*) (List_1_t7DA088250C54C07AF1211AE132355AD2D343EE51*, int32_t, const RuntimeMethod*))List_1_get_Item_m33561245D64798C2AB07584C0EC4F240E4839A38_gshared)(__this, ___index0, method);
}
// System.Boolean System.Char::IsLower(System.Char)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Char_IsLower_m30A84A53658D6250257BFD99051D4931916D5D91 (Il2CppChar ___c0, const RuntimeMethod* method) ;
// System.Char System.Char::ToUpper(System.Char)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Il2CppChar Char_ToUpper_m3753B9BCD4A82C8B5D86D39D9B1B2D638B0AFE84 (Il2CppChar ___c0, const RuntimeMethod* method) ;
// System.Boolean System.Char::IsUpper(System.Char)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Char_IsUpper_m857948FB8687710EC3EAB889A4908E00E4F48BDA (Il2CppChar ___c0, const RuntimeMethod* method) ;
// System.Char System.Char::ToLower(System.Char)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Il2CppChar Char_ToLower_m643675C4A50AD39A7BE3F5C3F40A1BFD547FF957 (Il2CppChar ___c0, const RuntimeMethod* method) ;
// UnityEngine.TextCore.Text.TextElement UnityEngine.TextCore.Text.TextGenerator::GetTextElement(UnityEngine.TextCore.Text.TextGenerationSettings,System.UInt32,UnityEngine.TextCore.Text.FontAsset,UnityEngine.TextCore.Text.FontStyles,UnityEngine.TextCore.Text.TextFontWeight,System.Boolean&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* TextGenerator_GetTextElement_mC46F0E788A0F6EB5A62601BCE4F383C3143C78CB (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings0, uint32_t ___unicode1, FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset2, int32_t ___fontStyle3, int32_t ___fontWeight4, bool* ___isUsingAlternativeTypeface5, const RuntimeMethod* method) ;
// System.Int32 UnityEngine.TextCore.Text.TextSettings::get_missingCharacterUnicode()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR int32_t TextSettings_get_missingCharacterUnicode_mA707E5E6633633BBB3BAFB96B97A5A995100F3F3_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method) ;
// UnityEngine.TextCore.Text.Character UnityEngine.TextCore.Text.FontAssetUtilities::GetCharacterFromFontAsset(System.UInt32,UnityEngine.TextCore.Text.FontAsset,System.Boolean,UnityEngine.TextCore.Text.FontStyles,UnityEngine.TextCore.Text.TextFontWeight,System.Boolean&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* FontAssetUtilities_GetCharacterFromFontAsset_m2AADCA590977FA4C398D4ECF6E7DF0BE77527801 (uint32_t ___unicode0, FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___sourceFontAsset1, bool ___includeFallbacks2, int32_t ___fontStyle3, int32_t ___fontWeight4, bool* ___isAlternativeTypeface5, const RuntimeMethod* method) ;
// System.Collections.Generic.List`1<UnityEngine.TextCore.Text.FontAsset> UnityEngine.TextCore.Text.TextSettings::get_fallbackFontAssets()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* TextSettings_get_fallbackFontAssets_m332526E834C994425141A58C968FD40320573F98_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method) ;
// System.Int32 System.Collections.Generic.List`1<UnityEngine.TextCore.Text.FontAsset>::get_Count()
inline int32_t List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_inline (List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* __this, const RuntimeMethod* method)
{
return (( int32_t (*) (List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE*, const RuntimeMethod*))List_1_get_Count_m4407E4C389F22B8CEC282C15D56516658746C383_gshared_inline)(__this, method);
}
// UnityEngine.TextCore.Text.Character UnityEngine.TextCore.Text.FontAssetUtilities::GetCharacterFromFontAssets(System.UInt32,UnityEngine.TextCore.Text.FontAsset,System.Collections.Generic.List`1<UnityEngine.TextCore.Text.FontAsset>,System.Boolean,UnityEngine.TextCore.Text.FontStyles,UnityEngine.TextCore.Text.TextFontWeight,System.Boolean&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* FontAssetUtilities_GetCharacterFromFontAssets_mB1612268F7A1926C2C39A4EFFB5AB795F234F9DF (uint32_t ___unicode0, FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___sourceFontAsset1, List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* ___fontAssets2, bool ___includeFallbacks3, int32_t ___fontStyle4, int32_t ___fontWeight5, bool* ___isAlternativeTypeface6, const RuntimeMethod* method) ;
// UnityEngine.TextCore.Text.FontAsset UnityEngine.TextCore.Text.TextSettings::get_defaultFontAsset()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* TextSettings_get_defaultFontAsset_mC6280464BFEE081DB23243BB94E49C72A0885A1F_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method) ;
// System.String UnityEngine.Object::get_name()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Object_get_name_mAC2F6B897CF1303BA4249B4CB55271AFACBB6392 (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C* __this, const RuntimeMethod* method) ;
// System.String System.String::Format(System.String,System.Object,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Format_m9499958F4B0BB6089C75760AB647AB3CA4D55806 (String_t* ___format0, RuntimeObject* ___arg01, RuntimeObject* ___arg12, const RuntimeMethod* method) ;
// UnityEngine.TextCore.Text.TextElementType UnityEngine.TextCore.Text.TextElement::get_elementType()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint8_t TextElement_get_elementType_m7BF97842479112227C1C3C83E0E94A176CD7D31A (TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* __this, const RuntimeMethod* method) ;
// UnityEngine.TextCore.Text.TextAsset UnityEngine.TextCore.Text.TextElement::get_textAsset()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR TextAsset_tB28F1843A877CCA74B89DC4F63EA532618B049B8* TextElement_get_textAsset_m52383A3758AABF5BEA013155765BD1141479685A (TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* __this, const RuntimeMethod* method) ;
// System.Int32 UnityEngine.TextCore.Text.TextAsset::get_instanceID()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TextAsset_get_instanceID_m843A6CAA7FE9322CD19546671D3F0E90A0E27AFB (TextAsset_tB28F1843A877CCA74B89DC4F63EA532618B049B8* __this, const RuntimeMethod* method) ;
// System.UInt32 UnityEngine.TextCore.Text.TextElement::get_glyphIndex()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint32_t TextElement_get_glyphIndex_m43F82F2F998D640DEDBE6860EBE7B171DDF4FE56 (TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* __this, const RuntimeMethod* method) ;
// System.Boolean UnityEngine.TextCore.Text.TextSettings::get_matchMaterialPreset()
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR bool TextSettings_get_matchMaterialPreset_m4675979547AE4C83E680260EAE5ACBC4FAC53B87_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method) ;
// UnityEngine.Material UnityEngine.TextCore.Text.MaterialManager::GetFallbackMaterial(UnityEngine.Material,UnityEngine.Material)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* MaterialManager_GetFallbackMaterial_m7BB3FDBF4411623DBA57727F2C54A33DA7F22554 (Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___sourceMaterial0, Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___targetMaterial1, const RuntimeMethod* method) ;
// System.Int32 UnityEngine.TextCore.Glyph::get_atlasIndex()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Glyph_get_atlasIndex_m575332307F2C182655EE9AD352E92F1B5F4D26DF (Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* __this, const RuntimeMethod* method) ;
// UnityEngine.Material UnityEngine.TextCore.Text.MaterialManager::GetFallbackMaterial(UnityEngine.TextCore.Text.FontAsset,UnityEngine.Material,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* MaterialManager_GetFallbackMaterial_mEABF84B8A8BC620A6CB6D830089FB6890389C8B6 (FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset0, Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___sourceMaterial1, int32_t ___atlasIndex2, const RuntimeMethod* method) ;
// System.Boolean System.Char::IsWhiteSpace(System.Char)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Char_IsWhiteSpace_m9CE0F6685DB2502ABE106D160F95A287EFC07EF9 (Il2CppChar ___c0, const RuntimeMethod* method) ;
// System.Void UnityEngine.Material::.ctor(UnityEngine.Material)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Material__ctor_mFCC42FB90257F1E8F7516A8640A79C465A39961C (Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* __this, Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___source0, const RuntimeMethod* method) ;
// System.Int32 System.Collections.Generic.Dictionary`2<System.Int32,System.Int32>::get_Count()
inline int32_t Dictionary_2_get_Count_mD88F18E0B2065189516BF168F521E531BE54384A (Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* __this, const RuntimeMethod* method)
{
return (( int32_t (*) (Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180*, const RuntimeMethod*))Dictionary_2_get_Count_mD88F18E0B2065189516BF168F521E531BE54384A_gshared)(__this, method);
}
// System.Void UnityEngine.TextCore.Text.TextInfo::Resize<UnityEngine.TextCore.Text.MeshInfo>(T[]&,System.Int32,System.Boolean)
inline void TextInfo_Resize_TisMeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F_m8DCA99800557BA87ADA9D085ECBE0F002B615BE2 (MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6** ___array0, int32_t ___size1, bool ___isBlockAllocated2, const RuntimeMethod* method)
{
(( void (*) (MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6**, int32_t, bool, const RuntimeMethod*))TextInfo_Resize_TisMeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F_m8DCA99800557BA87ADA9D085ECBE0F002B615BE2_gshared)(___array0, ___size1, ___isBlockAllocated2, method);
}
// System.Int32 UnityEngine.Mathf::Max(System.Int32,System.Int32)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR int32_t Mathf_Max_m8A4C189A6749DFE3ED8B66D9D3CACD8DB333974F_inline (int32_t ___a0, int32_t ___b1, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.MeshInfo::.ctor(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MeshInfo__ctor_mCC2410C5590BEA974468F4CECFA874BE966CDE61 (MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F* __this, int32_t ___size0, const RuntimeMethod* method) ;
// System.Int32 UnityEngine.Mathf::NextPowerOfTwo(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Mathf_NextPowerOfTwo_m25B17CBCFB02762842BE3725618DD97C7C4B1014 (int32_t ___value0, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.FontAsset::AddCharacterToLookupCache(System.UInt32,UnityEngine.TextCore.Text.Character)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void FontAsset_AddCharacterToLookupCache_mB90E06CE313CC0BB6F81415BF8FB4E043108EED8 (FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* __this, uint32_t ___unicode0, Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* ___character1, const RuntimeMethod* method) ;
// UnityEngine.TextCore.Text.SpriteCharacter UnityEngine.TextCore.Text.FontAssetUtilities::GetSpriteCharacterFromSpriteAsset(System.UInt32,UnityEngine.TextCore.Text.SpriteAsset,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* FontAssetUtilities_GetSpriteCharacterFromSpriteAsset_m0B6133849B1B4BDEF41D1DEADD26B8EB6174DD09 (uint32_t ___unicode0, SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* ___spriteAsset1, bool ___includeFallbacks2, const RuntimeMethod* method) ;
// System.Single UnityEngine.Rect::get_width()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Rect_get_width_m620D67551372073C9C32C4C4624C2A5713F7F9A9 (Rect_tA04E0F8A1830E767F40FB27ECD8D309303571F0D* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextGenerator::GetEllipsisSpecialCharacter(UnityEngine.TextCore.Text.TextGenerationSettings)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_GetEllipsisSpecialCharacter_m5139CAE03CD2E25C9A528A6A6FC984A8515C2460 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings0, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextGenerator/SpecialCharacter::.ctor(UnityEngine.TextCore.Text.Character,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpecialCharacter__ctor_m6697A8BF272F0144733EE12368C038F45E99F969 (SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD* __this, Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* ___character0, int32_t ___materialIndex1, const RuntimeMethod* method) ;
// System.String System.String::Concat(System.String,System.String,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Concat_m9B13B47FCB3DF61144D9647DDA05F527377251B0 (String_t* ___str00, String_t* ___str11, String_t* ___str22, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextShaderUtilities::GetShaderPropertyIDs()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextShaderUtilities_GetShaderPropertyIDs_mE049EE63FF1F02C91EA3B6FA0CB82FE2C6DA526E (const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.Text.TextShaderUtilities::GetPadding(UnityEngine.Material,System.Boolean,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float TextShaderUtilities_GetPadding_m2745B16C068222A2DCFA6EAD1A497D66F0A17BFA (Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material0, bool ___enableExtraPadding1, bool ___isBold2, const RuntimeMethod* method) ;
// System.Boolean UnityEngine.TextCore.Text.TextShaderUtilities::IsMaskingEnabled(UnityEngine.Material)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool TextShaderUtilities_IsMaskingEnabled_m9B499B7017691BA2805367567166484812807E45 (Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material0, const RuntimeMethod* method) ;
// System.Boolean UnityEngine.Material::HasProperty(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Material_HasProperty_m52E2D3BC3049B8B228149E023CD73C34B05A5222 (Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* __this, int32_t ___nameID0, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::SetDefault(T)
inline void TextProcessingStack_1_SetDefault_mA28AEF460395ECD6CBF6A469575571F64F6836B9 (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, float ___item0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555*, float, const RuntimeMethod*))TextProcessingStack_1_SetDefault_mA28AEF460395ECD6CBF6A469575571F64F6836B9_gshared)(__this, ___item0, method);
}
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextAlignment>::SetDefault(T)
inline void TextProcessingStack_1_SetDefault_m2DBB41C08A4CB7F71156ED5965850C2A0570F230 (TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F* __this, int32_t ___item0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F*, int32_t, const RuntimeMethod*))TextProcessingStack_1_SetDefault_m8D8C14A7EA75EBF60C7DDD5F4C8A81209E37751D_gshared)(__this, ___item0, method);
}
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::Clear()
inline void TextProcessingStack_1_Clear_m857C80F9AFD9507FE4784DB5DE79109E16C8EAA3 (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555*, const RuntimeMethod*))TextProcessingStack_1_Clear_m857C80F9AFD9507FE4784DB5DE79109E16C8EAA3_gshared)(__this, method);
}
// System.Single UnityEngine.TextCore.FaceInfo::get_descentLine()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float FaceInfo_get_descentLine_m811A243C9B328B0C546BF9927A010A05DF172BD3 (FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextGenerator::SaveWordWrappingState(UnityEngine.TextCore.Text.WordWrapState&,System.Int32,System.Int32,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_SaveWordWrappingState_mC07B2C5977EECE10216F8C6AC9CC4204F7EF1936 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* ___state0, int32_t ___index1, int32_t ___count2, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo3, const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.GlyphMetrics::get_height()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float GlyphMetrics_get_height_mE0872B23CE1A20BF78DEACDBD53BAF789D84AD5C (GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A* __this, const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.Text.TextElement::get_scale()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float TextElement_get_scale_mD16946900449FEE9E2F86B2C4C71E26F4491A0E6 (TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* __this, const RuntimeMethod* method) ;
// System.Boolean System.Collections.Generic.Dictionary`2<System.UInt32,UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord>::TryGetValue(TKey,TValue&)
inline bool Dictionary_2_TryGetValue_m45061EA2C8BF9DD9DC9DA92DAB968171136507DA (Dictionary_2_tDD72F78A572F94ECEDBDA75C3D17C3ED05C167E0* __this, uint32_t ___key0, GlyphPairAdjustmentRecord_t6E4295094D349DBF22BC59116FBC8F22EA55420E* ___value1, const RuntimeMethod* method)
{
return (( bool (*) (Dictionary_2_tDD72F78A572F94ECEDBDA75C3D17C3ED05C167E0*, uint32_t, GlyphPairAdjustmentRecord_t6E4295094D349DBF22BC59116FBC8F22EA55420E*, const RuntimeMethod*))Dictionary_2_TryGetValue_m45061EA2C8BF9DD9DC9DA92DAB968171136507DA_gshared)(__this, ___key0, ___value1, method);
}
// UnityEngine.TextCore.LowLevel.GlyphAdjustmentRecord UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord::get_firstAdjustmentRecord()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GlyphAdjustmentRecord_tC7A1B2E0AC7C4ED9CDB8E95E48790A46B6F315F7 GlyphPairAdjustmentRecord_get_firstAdjustmentRecord_m867469548F17B298F893B78EE2F93D34E4A6C39C (GlyphPairAdjustmentRecord_t6E4295094D349DBF22BC59116FBC8F22EA55420E* __this, const RuntimeMethod* method) ;
// UnityEngine.TextCore.LowLevel.GlyphValueRecord UnityEngine.TextCore.LowLevel.GlyphAdjustmentRecord::get_glyphValueRecord()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GlyphValueRecord_t780927A39D46924E0D546A2AE5DDF1BB2B5A9C8E GlyphAdjustmentRecord_get_glyphValueRecord_m83866DCE07A22F903D4BA417476E64114625BDD7 (GlyphAdjustmentRecord_tC7A1B2E0AC7C4ED9CDB8E95E48790A46B6F315F7* __this, const RuntimeMethod* method) ;
// UnityEngine.TextCore.LowLevel.GlyphAdjustmentRecord UnityEngine.TextCore.LowLevel.GlyphPairAdjustmentRecord::get_secondAdjustmentRecord()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GlyphAdjustmentRecord_tC7A1B2E0AC7C4ED9CDB8E95E48790A46B6F315F7 GlyphPairAdjustmentRecord_get_secondAdjustmentRecord_mFDFECB1F7A38E22BD2388FFE9C71E732F6B44D91 (GlyphPairAdjustmentRecord_t6E4295094D349DBF22BC59116FBC8F22EA55420E* __this, const RuntimeMethod* method) ;
// UnityEngine.TextCore.LowLevel.GlyphValueRecord UnityEngine.TextCore.LowLevel.GlyphValueRecord::op_Addition(UnityEngine.TextCore.LowLevel.GlyphValueRecord,UnityEngine.TextCore.LowLevel.GlyphValueRecord)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GlyphValueRecord_t780927A39D46924E0D546A2AE5DDF1BB2B5A9C8E GlyphValueRecord_op_Addition_mA940285C14EBAD83BA6BDA0ECFCC5BF550ED8E8A (GlyphValueRecord_t780927A39D46924E0D546A2AE5DDF1BB2B5A9C8E ___a0, GlyphValueRecord_t780927A39D46924E0D546A2AE5DDF1BB2B5A9C8E ___b1, const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.GlyphMetrics::get_horizontalBearingX()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float GlyphMetrics_get_horizontalBearingX_m9C39B5E6D27FF34B706649AE47EE9390B5D76D6F (GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A* __this, const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.Text.FontAsset::get_boldStyleSpacing()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float FontAsset_get_boldStyleSpacing_mB8CF4F4880B110E41D566648FF1D995010CF1FF0 (FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* __this, const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.GlyphMetrics::get_horizontalAdvance()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float GlyphMetrics_get_horizontalAdvance_m110E66C340A19E672FB1C26DFB875AB6900AFFF1 (GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A* __this, const RuntimeMethod* method) ;
// System.Single UnityEngine.Mathf::Max(System.Single,System.Single)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float Mathf_Max_mA9DCA91E87D6D27034F56ABA52606A9090406016_inline (float ___a0, float ___b1, const RuntimeMethod* method) ;
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::RestoreWordWrappingState(UnityEngine.TextCore.Text.WordWrapState&,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TextGenerator_RestoreWordWrappingState_mA63B3DD2C02E61CD8670A32A53163AF6BF765F61 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* ___state0, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo1, const RuntimeMethod* method) ;
// System.Boolean UnityEngine.TextCore.Text.TextGeneratorUtilities::Approximately(System.Single,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool TextGeneratorUtilities_Approximately_m2333A8491C1BBC4F26738A240A7AA9E699508E6D (float ___a0, float ___b1, const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.Text.FontAsset::get_regularStyleSpacing()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float FontAsset_get_regularStyleSpacing_mB7EEEA236312F5AC31FD3B787808279206F521B1 (FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* __this, const RuntimeMethod* method) ;
// System.Single UnityEngine.TextCore.LowLevel.GlyphValueRecord::get_xAdvance()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float GlyphValueRecord_get_xAdvance_m6C392027FA91E0705C1585C5EF40D984AAA0013E (GlyphValueRecord_t780927A39D46924E0D546A2AE5DDF1BB2B5A9C8E* __this, const RuntimeMethod* method) ;
// UnityEngine.TextCore.Text.UnicodeLineBreakingRules UnityEngine.TextCore.Text.TextSettings::get_lineBreakingRules()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR UnicodeLineBreakingRules_t80BE36F5E16AE48FE7B6DE1C91D36B1142B4EC0E* TextSettings_get_lineBreakingRules_m96E2C32D4F08309D904B0BCD83CEBE8CD6716A04 (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method) ;
// System.Collections.Generic.HashSet`1<System.UInt32> UnityEngine.TextCore.Text.UnicodeLineBreakingRules::get_leadingCharactersLookup()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR HashSet_1_t5DD20B42149A11AEBF12A75505306E6EFC34943A* UnicodeLineBreakingRules_get_leadingCharactersLookup_m1DAC015D7E37112EAE0437E6472AEA0719DFF3DC (UnicodeLineBreakingRules_t80BE36F5E16AE48FE7B6DE1C91D36B1142B4EC0E* __this, const RuntimeMethod* method) ;
// System.Boolean System.Collections.Generic.HashSet`1<System.UInt32>::Contains(T)
inline bool HashSet_1_Contains_m02385B663B65E53485251FFFD116D0F26BA172B9 (HashSet_1_t5DD20B42149A11AEBF12A75505306E6EFC34943A* __this, uint32_t ___item0, const RuntimeMethod* method)
{
return (( bool (*) (HashSet_1_t5DD20B42149A11AEBF12A75505306E6EFC34943A*, uint32_t, const RuntimeMethod*))HashSet_1_Contains_m02385B663B65E53485251FFFD116D0F26BA172B9_gshared)(__this, ___item0, method);
}
// System.Collections.Generic.HashSet`1<System.UInt32> UnityEngine.TextCore.Text.UnicodeLineBreakingRules::get_followingCharactersLookup()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR HashSet_1_t5DD20B42149A11AEBF12A75505306E6EFC34943A* UnicodeLineBreakingRules_get_followingCharactersLookup_m5510A21873DC5DA66F4A2DFA4C26A5EFAD494D8B (UnicodeLineBreakingRules_t80BE36F5E16AE48FE7B6DE1C91D36B1142B4EC0E* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.MaterialReference>::.ctor(T[])
inline void TextProcessingStack_1__ctor_m8D925AB632D621F377352A263B090EF1689AB7D6 (TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* __this, MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* ___stack0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA*, MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E*, const RuntimeMethod*))TextProcessingStack_1__ctor_m8D925AB632D621F377352A263B090EF1689AB7D6_gshared)(__this, ___stack0, method);
}
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::.ctor(System.Int32)
inline void TextProcessingStack_1__ctor_m51ECDDF2DCADEB66EED067F383D94ADCCFE61782 (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, int32_t ___capacity0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555*, int32_t, const RuntimeMethod*))TextProcessingStack_1__ctor_m51ECDDF2DCADEB66EED067F383D94ADCCFE61782_gshared)(__this, ___capacity0, method);
}
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextFontWeight>::.ctor(System.Int32)
inline void TextProcessingStack_1__ctor_mE29F1CB516B3C52016997ECCBF3769B1FE98336A (TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790* __this, int32_t ___capacity0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790*, int32_t, const RuntimeMethod*))TextProcessingStack_1__ctor_m19C47AD021D8A8D97C02081B352A112F5EC23CAB_gshared)(__this, ___capacity0, method);
}
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextAlignment>::.ctor(System.Int32)
inline void TextProcessingStack_1__ctor_m21F67B4043E233F8CA9797CEAEBF75AA44923E95 (TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F* __this, int32_t ___capacity0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F*, int32_t, const RuntimeMethod*))TextProcessingStack_1__ctor_m19C47AD021D8A8D97C02081B352A112F5EC23CAB_gshared)(__this, ___capacity0, method);
}
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Single>::.ctor(T[])
inline void TextProcessingStack_1__ctor_m711FBEB05216B8B7683BAF106DC2CA519C2986EF (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* __this, SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C* ___stack0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555*, SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C*, const RuntimeMethod*))TextProcessingStack_1__ctor_m711FBEB05216B8B7683BAF106DC2CA519C2986EF_gshared)(__this, ___stack0, method);
}
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.Color32>::.ctor(T[])
inline void TextProcessingStack_1__ctor_m445613CACF63BB93528D0DF6A4806B721690BEA3 (TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* __this, Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* ___stack0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63*, Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259*, const RuntimeMethod*))TextProcessingStack_1__ctor_m445613CACF63BB93528D0DF6A4806B721690BEA3_gshared)(__this, ___stack0, method);
}
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<UnityEngine.TextCore.Text.TextColorGradient>::.ctor(T[])
inline void TextProcessingStack_1__ctor_mA4B25FA7163EB1A1804D7F9C4BB50D078CC1F9EE (TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E* __this, TextColorGradientU5BU5D_tA27A5E49640CF01334A10DBDBC959903AFBD941A* ___stack0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E*, TextColorGradientU5BU5D_tA27A5E49640CF01334A10DBDBC959903AFBD941A*, const RuntimeMethod*))TextProcessingStack_1__ctor_m8266BC8A892B0914C85742C5ACBCEDC2C072A84A_gshared)(__this, ___stack0, method);
}
// System.Void UnityEngine.TextCore.Text.TextProcessingStack`1<System.Int32>::.ctor(T[])
inline void TextProcessingStack_1__ctor_m46C659E94F74B5690AC0A547430C8D3387000CEC (TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8* __this, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___stack0, const RuntimeMethod* method)
{
(( void (*) (TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8*, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*, const RuntimeMethod*))TextProcessingStack_1__ctor_m46C659E94F74B5690AC0A547430C8D3387000CEC_gshared)(__this, ___stack0, method);
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Int32>::.ctor()
inline void Dictionary_2__ctor_m712893C2C48C47CCAFAD85A865C702E8D3D2B71F (Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* __this, const RuntimeMethod* method)
{
(( void (*) (Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180*, const RuntimeMethod*))Dictionary_2__ctor_m712893C2C48C47CCAFAD85A865C702E8D3D2B71F_gshared)(__this, method);
}
// System.Void System.Object::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2 (RuntimeObject* __this, const RuntimeMethod* method) ;
// System.Void UnityEngine.Color::.ctor(System.Single,System.Single,System.Single,System.Single)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void Color__ctor_m3786F0D6E510D9CFA544523A955870BD2A514C8C_inline (Color_tD001788D726C3A7F1379BEED0260B9591F440C1F* __this, float ___r0, float ___g1, float ___b2, float ___a3, const RuntimeMethod* method) ;
// System.Single UnityEngine.Mathf::Clamp01(System.Single)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float Mathf_Clamp01_mD921B23F47F5347996C56DC789D1DE16EE27D9B1_inline (float ___value0, const RuntimeMethod* method) ;
// UnityEngine.Vector3 UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3,System.Single)
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 Vector3_op_Multiply_m516FE285F5342F922C6EB3FCB33197E9017FF484_inline (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___a0, float ___d1, const RuntimeMethod* method) ;
// UnityEngine.Quaternion UnityEngine.Quaternion::Internal_FromEulerRad(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974 Quaternion_Internal_FromEulerRad_m2842B9FFB31CDC0F80B7C2172E22831D11D91E93 (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___euler0, const RuntimeMethod* method) ;
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.TextCore.Text.TextGenerator UnityEngine.TextCore.Text.TextGenerator::GetTextGenerator()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* TextGenerator_GetTextGenerator_mE998D0B33A1DE99A0DE3436AE0FA47B997E21781 (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* V_1 = NULL;
{
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* L_0 = ((TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366_StaticFields*)il2cpp_codegen_static_fields_for(TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366_il2cpp_TypeInfo_var))->___s_TextGenerator_0;
V_0 = (bool)((((RuntimeObject*)(TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366*)L_0) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_0019;
}
}
{
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* L_2 = (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366*)il2cpp_codegen_object_new(TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366_il2cpp_TypeInfo_var);
NullCheck(L_2);
TextGenerator__ctor_m52E4D01DC28BDF753BF52F6501E7FD2FB2B30D90(L_2, NULL);
((TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366_StaticFields*)il2cpp_codegen_static_fields_for(TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366_il2cpp_TypeInfo_var))->___s_TextGenerator_0 = L_2;
Il2CppCodeGenWriteBarrier((void**)(&((TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366_StaticFields*)il2cpp_codegen_static_fields_for(TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366_il2cpp_TypeInfo_var))->___s_TextGenerator_0), (void*)L_2);
}
IL_0019:
{
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* L_3 = ((TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366_StaticFields*)il2cpp_codegen_static_fields_for(TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366_il2cpp_TypeInfo_var))->___s_TextGenerator_0;
V_1 = L_3;
goto IL_0021;
}
IL_0021:
{
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* L_4 = V_1;
return L_4;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::GenerateText(UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_GenerateText_mCF9D4EB0CC6D0BEA0136B23FCEE39EA9A48D6B5F (TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___settings0, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&FontAsset_t61A6446D934E582651044E33D250EA8D306AB958_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral76035771ED8F77CE10848FFF51357CF514EC7F02);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral911C45CCDD6261BCC0DB106704C632E834EF8E49);
s_Il2CppMethodInitialized = true;
}
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* V_0 = NULL;
bool V_1 = false;
bool V_2 = false;
int32_t G_B3_0 = 0;
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_0 = ___settings0;
NullCheck(L_0);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1 = L_0->___fontAsset_4;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_2;
L_2 = Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536(L_1, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
if (L_2)
{
goto IL_001f;
}
}
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_3 = ___settings0;
NullCheck(L_3);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_4 = L_3->___fontAsset_4;
NullCheck(L_4);
Dictionary_2_t93CDF0F4011A5A3024EB73A492F9512E3046EACB* L_5;
L_5 = FontAsset_get_characterLookupTable_m7E76D6C706C5CEB04A9541C68AE6D9E5C75F0FFC(L_4, NULL);
G_B3_0 = ((((RuntimeObject*)(Dictionary_2_t93CDF0F4011A5A3024EB73A492F9512E3046EACB*)L_5) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
goto IL_0020;
}
IL_001f:
{
G_B3_0 = 1;
}
IL_0020:
{
V_1 = (bool)G_B3_0;
bool L_6 = V_1;
if (!L_6)
{
goto IL_0032;
}
}
{
il2cpp_codegen_runtime_class_init_inline(Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var);
Debug_LogWarning_mEF15C6B17CE4E1FA7E379CDB82CE40FCD89A3F28(_stringLiteral911C45CCDD6261BCC0DB106704C632E834EF8E49, NULL);
goto IL_0066;
}
IL_0032:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_7 = ___textInfo1;
V_2 = (bool)((((RuntimeObject*)(TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09*)L_7) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_8 = V_2;
if (!L_8)
{
goto IL_0048;
}
}
{
il2cpp_codegen_runtime_class_init_inline(Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var);
Debug_LogError_m059825802BB6AF7EA9693FEBEEB0D85F59A3E38E(_stringLiteral76035771ED8F77CE10848FFF51357CF514EC7F02, NULL);
goto IL_0066;
}
IL_0048:
{
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* L_9;
L_9 = TextGenerator_GetTextGenerator_mE998D0B33A1DE99A0DE3436AE0FA47B997E21781(NULL);
V_0 = L_9;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* L_10 = V_0;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_11 = ___settings0;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_12 = ___textInfo1;
NullCheck(L_10);
TextGenerator_Prepare_mD0A24977334138340CA73FB9787627373C6AA255(L_10, L_11, L_12, NULL);
il2cpp_codegen_runtime_class_init_inline(FontAsset_t61A6446D934E582651044E33D250EA8D306AB958_il2cpp_TypeInfo_var);
FontAsset_UpdateFontAssetInUpdateQueue_mF38C30B72EBABBF805BD542501783E2730F8B9B8(NULL);
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* L_13 = V_0;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_14 = ___settings0;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_15 = ___textInfo1;
NullCheck(L_13);
TextGenerator_GenerateTextMesh_mAB70FC29A49A6C4F8211EA977E37C66BE67D1831(L_13, L_14, L_15, NULL);
}
IL_0066:
{
return;
}
}
// UnityEngine.Vector2 UnityEngine.TextCore.Text.TextGenerator::GetCursorPosition(UnityEngine.TextCore.Text.TextInfo,UnityEngine.Rect,System.Int32,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 TextGenerator_GetCursorPosition_mE6F486439659265C1B4ACF04B9DAA0452CAABE41 (TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo0, Rect_tA04E0F8A1830E767F40FB27ECD8D309303571F0D ___screenRect1, int32_t ___index2, bool ___inverseYAxis3, const RuntimeMethod* method)
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_0;
memset((&V_0), 0, sizeof(V_0));
TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976 V_1;
memset((&V_1), 0, sizeof(V_1));
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 V_2;
memset((&V_2), 0, sizeof(V_2));
float V_3 = 0.0f;
bool V_4 = false;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_5;
memset((&V_5), 0, sizeof(V_5));
bool V_6 = false;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 G_B5_0;
memset((&G_B5_0), 0, sizeof(G_B5_0));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 G_B4_0;
memset((&G_B4_0), 0, sizeof(G_B4_0));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 G_B6_0;
memset((&G_B6_0), 0, sizeof(G_B6_0));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 G_B6_1;
memset((&G_B6_1), 0, sizeof(G_B6_1));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 G_B9_0;
memset((&G_B9_0), 0, sizeof(G_B9_0));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 G_B8_0;
memset((&G_B8_0), 0, sizeof(G_B8_0));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 G_B10_0;
memset((&G_B10_0), 0, sizeof(G_B10_0));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 G_B10_1;
memset((&G_B10_1), 0, sizeof(G_B10_1));
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_0;
L_0 = Rect_get_position_m9B7E583E67443B6F4280A676E644BB0B9E7C4E38((&___screenRect1), NULL);
V_0 = L_0;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_1 = ___textInfo0;
NullCheck(L_1);
int32_t L_2 = L_1->___characterCount_2;
V_4 = (bool)((((int32_t)L_2) == ((int32_t)0))? 1 : 0);
bool L_3 = V_4;
if (!L_3)
{
goto IL_0020;
}
}
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_4 = V_0;
V_5 = L_4;
goto IL_011c;
}
IL_0020:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_5 = ___textInfo0;
NullCheck(L_5);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_6 = L_5->___textElementInfo_10;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_7 = ___textInfo0;
NullCheck(L_7);
int32_t L_8 = L_7->___characterCount_2;
NullCheck(L_6);
int32_t L_9 = ((int32_t)il2cpp_codegen_subtract(L_8, 1));
TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976 L_10 = (L_6)->GetAt(static_cast<il2cpp_array_size_t>(L_9));
V_1 = L_10;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_11 = ___textInfo0;
NullCheck(L_11);
LineInfoU5BU5D_t37598F2175B291797270D1161DC29B6296FB169D* L_12 = L_11->___lineInfo_13;
TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976 L_13 = V_1;
int32_t L_14 = L_13.___lineNumber_11;
NullCheck(L_12);
int32_t L_15 = L_14;
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 L_16 = (L_12)->GetAt(static_cast<il2cpp_array_size_t>(L_15));
V_2 = L_16;
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 L_17 = V_2;
float L_18 = L_17.___lineHeight_11;
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 L_19 = V_2;
float L_20 = L_19.___ascender_12;
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 L_21 = V_2;
float L_22 = L_21.___descender_14;
V_3 = ((float)il2cpp_codegen_subtract(L_18, ((float)il2cpp_codegen_subtract(L_20, L_22))));
int32_t L_23 = ___index2;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_24 = ___textInfo0;
NullCheck(L_24);
int32_t L_25 = L_24->___characterCount_2;
V_6 = (bool)((((int32_t)((((int32_t)L_23) < ((int32_t)L_25))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_26 = V_6;
if (!L_26)
{
goto IL_00ab;
}
}
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_27 = V_0;
bool L_28 = ___inverseYAxis3;
G_B4_0 = L_27;
if (L_28)
{
G_B5_0 = L_27;
goto IL_0085;
}
}
{
TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976 L_29 = V_1;
float L_30 = L_29.___xAdvance_26;
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 L_31 = V_2;
float L_32 = L_31.___descender_14;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_33;
memset((&L_33), 0, sizeof(L_33));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_33), L_30, L_32, /*hidden argument*/NULL);
G_B6_0 = L_33;
G_B6_1 = G_B4_0;
goto IL_00a0;
}
IL_0085:
{
TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976 L_34 = V_1;
float L_35 = L_34.___xAdvance_26;
float L_36;
L_36 = Rect_get_height_mE1AA6C6C725CCD2D317BD2157396D3CF7D47C9D8((&___screenRect1), NULL);
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 L_37 = V_2;
float L_38 = L_37.___ascender_12;
float L_39 = V_3;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_40;
memset((&L_40), 0, sizeof(L_40));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_40), L_35, ((float)il2cpp_codegen_subtract(((float)il2cpp_codegen_subtract(L_36, L_38)), L_39)), /*hidden argument*/NULL);
G_B6_0 = L_40;
G_B6_1 = G_B5_0;
}
IL_00a0:
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_41;
L_41 = Vector2_op_Addition_m704B5B98EAFE885978381E21B7F89D9DF83C2A60_inline(G_B6_1, G_B6_0, NULL);
V_0 = L_41;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_42 = V_0;
V_5 = L_42;
goto IL_011c;
}
IL_00ab:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_43 = ___textInfo0;
NullCheck(L_43);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_44 = L_43->___textElementInfo_10;
int32_t L_45 = ___index2;
NullCheck(L_44);
int32_t L_46 = L_45;
TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976 L_47 = (L_44)->GetAt(static_cast<il2cpp_array_size_t>(L_46));
V_1 = L_47;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_48 = ___textInfo0;
NullCheck(L_48);
LineInfoU5BU5D_t37598F2175B291797270D1161DC29B6296FB169D* L_49 = L_48->___lineInfo_13;
TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976 L_50 = V_1;
int32_t L_51 = L_50.___lineNumber_11;
NullCheck(L_49);
int32_t L_52 = L_51;
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 L_53 = (L_49)->GetAt(static_cast<il2cpp_array_size_t>(L_52));
V_2 = L_53;
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 L_54 = V_2;
float L_55 = L_54.___lineHeight_11;
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 L_56 = V_2;
float L_57 = L_56.___ascender_12;
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 L_58 = V_2;
float L_59 = L_58.___descender_14;
V_3 = ((float)il2cpp_codegen_subtract(L_55, ((float)il2cpp_codegen_subtract(L_57, L_59))));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_60 = V_0;
bool L_61 = ___inverseYAxis3;
G_B8_0 = L_60;
if (L_61)
{
G_B9_0 = L_60;
goto IL_00f6;
}
}
{
TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976 L_62 = V_1;
float L_63 = L_62.___origin_22;
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 L_64 = V_2;
float L_65 = L_64.___descender_14;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_66;
memset((&L_66), 0, sizeof(L_66));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_66), L_63, L_65, /*hidden argument*/NULL);
G_B10_0 = L_66;
G_B10_1 = G_B8_0;
goto IL_0111;
}
IL_00f6:
{
TextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976 L_67 = V_1;
float L_68 = L_67.___origin_22;
float L_69;
L_69 = Rect_get_height_mE1AA6C6C725CCD2D317BD2157396D3CF7D47C9D8((&___screenRect1), NULL);
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 L_70 = V_2;
float L_71 = L_70.___ascender_12;
float L_72 = V_3;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_73;
memset((&L_73), 0, sizeof(L_73));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_73), L_68, ((float)il2cpp_codegen_subtract(((float)il2cpp_codegen_subtract(L_69, L_71)), L_72)), /*hidden argument*/NULL);
G_B10_0 = L_73;
G_B10_1 = G_B9_0;
}
IL_0111:
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_74;
L_74 = Vector2_op_Addition_m704B5B98EAFE885978381E21B7F89D9DF83C2A60_inline(G_B10_1, G_B10_0, NULL);
V_0 = L_74;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_75 = V_0;
V_5 = L_75;
goto IL_011c;
}
IL_011c:
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_76 = V_5;
return L_76;
}
}
// UnityEngine.Vector2 UnityEngine.TextCore.Text.TextGenerator::GetPreferredValues(UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 TextGenerator_GetPreferredValues_m00CB10940AD7561839EBA19B67E32B92B19F1CB6 (TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___settings0, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral911C45CCDD6261BCC0DB106704C632E834EF8E49);
s_Il2CppMethodInitialized = true;
}
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* V_0 = NULL;
bool V_1 = false;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_2;
memset((&V_2), 0, sizeof(V_2));
int32_t G_B3_0 = 0;
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_0 = ___settings0;
NullCheck(L_0);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1 = L_0->___fontAsset_4;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_2;
L_2 = Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536(L_1, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
if (L_2)
{
goto IL_001f;
}
}
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_3 = ___settings0;
NullCheck(L_3);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_4 = L_3->___fontAsset_4;
NullCheck(L_4);
Dictionary_2_t93CDF0F4011A5A3024EB73A492F9512E3046EACB* L_5;
L_5 = FontAsset_get_characterLookupTable_m7E76D6C706C5CEB04A9541C68AE6D9E5C75F0FFC(L_4, NULL);
G_B3_0 = ((((RuntimeObject*)(Dictionary_2_t93CDF0F4011A5A3024EB73A492F9512E3046EACB*)L_5) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
goto IL_0020;
}
IL_001f:
{
G_B3_0 = 1;
}
IL_0020:
{
V_1 = (bool)G_B3_0;
bool L_6 = V_1;
if (!L_6)
{
goto IL_0038;
}
}
{
il2cpp_codegen_runtime_class_init_inline(Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var);
Debug_LogWarning_mEF15C6B17CE4E1FA7E379CDB82CE40FCD89A3F28(_stringLiteral911C45CCDD6261BCC0DB106704C632E834EF8E49, NULL);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_7;
L_7 = Vector2_get_zero_m009B92B5D35AB02BD1610C2E1ACCE7C9CF964A6E_inline(NULL);
V_2 = L_7;
goto IL_0052;
}
IL_0038:
{
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* L_8;
L_8 = TextGenerator_GetTextGenerator_mE998D0B33A1DE99A0DE3436AE0FA47B997E21781(NULL);
V_0 = L_8;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* L_9 = V_0;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_10 = ___settings0;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_11 = ___textInfo1;
NullCheck(L_9);
TextGenerator_Prepare_mD0A24977334138340CA73FB9787627373C6AA255(L_9, L_10, L_11, NULL);
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* L_12 = V_0;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_13 = ___settings0;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_14 = ___textInfo1;
NullCheck(L_12);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_15;
L_15 = TextGenerator_GetPreferredValuesInternal_m125B070164DFEA503C67525D1F418DAF41300ABD(L_12, L_13, L_14, NULL);
V_2 = L_15;
goto IL_0052;
}
IL_0052:
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_16 = V_2;
return L_16;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::Prepare(UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_Prepare_mD0A24977334138340CA73FB9787627373C6AA255 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings0, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
{
__this->___m_Padding_11 = (6.0f);
__this->___m_IsMaskingEnabled_84 = (bool)0;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_0 = ___generationSettings0;
TextGenerator_GetSpecialCharacters_mA82879FA537C58223BB660E797AC135A8E07B492(__this, L_0, NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1 = ___generationSettings0;
NullCheck(L_1);
Rect_tA04E0F8A1830E767F40FB27ECD8D309303571F0D L_2 = L_1->___screenRect_1;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_3 = ___generationSettings0;
NullCheck(L_3);
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3 L_4 = L_3->___margins_2;
TextGenerator_ComputeMarginSize_m485F8B01196058B15F597DE99D6F6A47FA539D3F(__this, L_2, L_4, NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_5 = ___generationSettings0;
NullCheck(L_5);
String_t* L_6 = L_5->___text_0;
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C** L_7 = (&__this->___m_CharBuffer_4);
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8* L_8 = (&__this->___m_StyleStack_87);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_9 = ___generationSettings0;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
TextGeneratorUtilities_StringToCharArray_m8268FA89F86210B39C56D1ED4C0FEBB27DA2713B(L_6, L_7, L_8, L_9, NULL);
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_10 = __this->___m_CharBuffer_4;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_11 = ___generationSettings0;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_12 = ___textInfo1;
TextGenerator_SetArraySizes_mF0041F3D79936C05EB87DEE399F1DC389CCD1BD5(__this, L_10, L_11, L_12, NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_13 = ___generationSettings0;
NullCheck(L_13);
bool L_14 = L_13->___autoSize_19;
V_0 = L_14;
bool L_15 = V_0;
if (!L_15)
{
goto IL_007f;
}
}
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_16 = ___generationSettings0;
NullCheck(L_16);
float L_17 = L_16->___fontSize_18;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_18 = ___generationSettings0;
NullCheck(L_18);
float L_19 = L_18->___fontSizeMin_20;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_20 = ___generationSettings0;
NullCheck(L_20);
float L_21 = L_20->___fontSizeMax_21;
float L_22;
L_22 = Mathf_Clamp_m154E404AF275A3B2EC99ECAA3879B4CB9F0606DC_inline(L_17, L_19, L_21, NULL);
__this->___m_FontSize_15 = L_22;
goto IL_008b;
}
IL_007f:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_23 = ___generationSettings0;
NullCheck(L_23);
float L_24 = L_23->___fontSize_18;
__this->___m_FontSize_15 = L_24;
}
IL_008b:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_25 = ___generationSettings0;
NullCheck(L_25);
float L_26 = L_25->___fontSizeMax_21;
__this->___m_MaxFontSize_79 = L_26;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_27 = ___generationSettings0;
NullCheck(L_27);
float L_28 = L_27->___fontSizeMin_20;
__this->___m_MinFontSize_80 = L_28;
__this->___m_LineSpacingDelta_83 = (0.0f);
__this->___m_CharWidthAdjDelta_77 = (0.0f);
__this->___m_IsCharacterWrappingEnabled_81 = (bool)0;
return;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::SaveWordWrappingState(UnityEngine.TextCore.Text.WordWrapState&,System.Int32,System.Int32,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_SaveWordWrappingState_mC07B2C5977EECE10216F8C6AC9CC4204F7EF1936 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* ___state0, int32_t ___index1, int32_t ___count2, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo3, const RuntimeMethod* method)
{
bool V_0 = false;
{
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_0 = ___state0;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1 = __this->___m_CurrentFontAsset_7;
L_0->___currentFontAsset_48 = L_1;
Il2CppCodeGenWriteBarrier((void**)(&L_0->___currentFontAsset_48), (void*)L_1);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_2 = ___state0;
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_3 = __this->___m_CurrentSpriteAsset_12;
L_2->___currentSpriteAsset_49 = L_3;
Il2CppCodeGenWriteBarrier((void**)(&L_2->___currentSpriteAsset_49), (void*)L_3);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_4 = ___state0;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_5 = __this->___m_CurrentMaterial_8;
L_4->___currentMaterial_50 = L_5;
Il2CppCodeGenWriteBarrier((void**)(&L_4->___currentMaterial_50), (void*)L_5);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_6 = ___state0;
int32_t L_7 = __this->___m_CurrentMaterialIndex_9;
L_6->___currentMaterialIndex_51 = L_7;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_8 = ___state0;
int32_t L_9 = ___index1;
L_8->___previousWordBreak_0 = L_9;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_10 = ___state0;
int32_t L_11 = ___count2;
L_10->___totalCharacterCount_1 = L_11;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_12 = ___state0;
int32_t L_13 = __this->___m_LineVisibleCharacterCount_56;
L_12->___visibleCharacterCount_2 = L_13;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_14 = ___state0;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_15 = ___textInfo3;
NullCheck(L_15);
int32_t L_16 = L_15->___linkCount_6;
L_14->___visibleLinkCount_4 = L_16;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_17 = ___state0;
int32_t L_18 = __this->___m_FirstCharacterOfLine_49;
L_17->___firstCharacterIndex_5 = L_18;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_19 = ___state0;
int32_t L_20 = __this->___m_FirstVisibleCharacterOfLine_51;
L_19->___firstVisibleCharacterIndex_6 = L_20;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_21 = ___state0;
int32_t L_22 = __this->___m_LastVisibleCharacterOfLine_52;
L_21->___lastVisibleCharIndex_8 = L_22;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_23 = ___state0;
int32_t L_24 = __this->___m_FontStyleInternal_19;
L_23->___fontStyle_21 = L_24;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_25 = ___state0;
float L_26 = __this->___m_FontScale_14;
L_25->___fontScale_22 = L_26;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_27 = ___state0;
float L_28 = __this->___m_FontScaleMultiplier_16;
L_27->___fontScaleMultiplier_23 = L_28;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_29 = ___state0;
float L_30 = __this->___m_CurrentFontSize_17;
L_29->___currentFontSize_24 = L_30;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_31 = ___state0;
float L_32 = __this->___m_XAdvance_43;
L_31->___xAdvance_16 = L_32;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_33 = ___state0;
float L_34 = __this->___m_MaxCapHeight_63;
L_33->___maxCapHeight_10 = L_34;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_35 = ___state0;
float L_36 = __this->___m_MaxAscender_64;
L_35->___maxAscender_11 = L_36;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_37 = ___state0;
float L_38 = __this->___m_MaxDescender_65;
L_37->___maxDescender_12 = L_38;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_39 = ___state0;
float L_40 = __this->___m_MaxLineAscender_53;
L_39->___maxLineAscender_13 = L_40;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_41 = ___state0;
float L_42 = __this->___m_MaxLineDescender_54;
L_41->___maxLineDescender_14 = L_42;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_43 = ___state0;
float L_44 = __this->___m_StartOfLineAscender_82;
L_43->___previousLineAscender_15 = L_44;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_45 = ___state0;
float L_46 = __this->___m_PreferredWidth_5;
L_45->___preferredWidth_17 = L_46;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_47 = ___state0;
float L_48 = __this->___m_PreferredHeight_6;
L_47->___preferredHeight_18 = L_48;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_49 = ___state0;
Extents_t369FB2B84521A0229C2FA3D4C8592B14E07CEFE6 L_50 = __this->___m_MeshExtents_62;
L_49->___meshExtents_52 = L_50;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_51 = ___state0;
int32_t L_52 = __this->___m_LineNumber_55;
L_51->___lineNumber_9 = L_52;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_53 = ___state0;
float L_54 = __this->___m_LineOffset_39;
L_53->___lineOffset_26 = L_54;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_55 = ___state0;
float L_56 = __this->___m_BaselineOffset_25;
L_55->___baselineOffset_25 = L_56;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_57 = ___state0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_58 = __this->___m_HtmlColor_28;
L_57->___vertexColor_29 = L_58;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_59 = ___state0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_60 = __this->___m_UnderlineColor_29;
L_59->___underlineColor_30 = L_60;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_61 = ___state0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_62 = __this->___m_StrikethroughColor_30;
L_61->___strikethroughColor_31 = L_62;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_63 = ___state0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_64 = __this->___m_HighlightColor_76;
L_63->___highlightColor_32 = L_64;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_65 = ___state0;
bool L_66 = __this->___m_IsNonBreakingSpace_67;
L_65->___isNonBreakingSpace_54 = L_66;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_67 = ___state0;
bool L_68 = __this->___m_TagNoParsing_47;
L_67->___tagNoParsing_53 = L_68;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_69 = ___state0;
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7 L_70 = __this->___m_FontStyleStack_20;
L_69->___basicStyleStack_33 = L_70;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_71 = ___state0;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 L_72 = __this->___m_ColorStack_31;
L_71->___colorStack_34 = L_72;
Il2CppCodeGenWriteBarrier((void**)&(((&L_71->___colorStack_34))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_73 = ___state0;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 L_74 = __this->___m_UnderlineColorStack_32;
L_73->___underlineColorStack_35 = L_74;
Il2CppCodeGenWriteBarrier((void**)&(((&L_73->___underlineColorStack_35))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_75 = ___state0;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 L_76 = __this->___m_StrikethroughColorStack_33;
L_75->___strikethroughColorStack_36 = L_76;
Il2CppCodeGenWriteBarrier((void**)&(((&L_75->___strikethroughColorStack_36))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_77 = ___state0;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 L_78 = __this->___m_HighlightColorStack_34;
L_77->___highlightColorStack_37 = L_78;
Il2CppCodeGenWriteBarrier((void**)&(((&L_77->___highlightColorStack_37))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_79 = ___state0;
TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E L_80 = __this->___m_ColorGradientStack_36;
L_79->___colorGradientStack_38 = L_80;
Il2CppCodeGenWriteBarrier((void**)&(((&L_79->___colorGradientStack_38))->___itemStack_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&L_79->___colorGradientStack_38))->___m_DefaultItem_2), (void*)NULL);
#endif
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_81 = ___state0;
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 L_82 = __this->___m_SizeStack_18;
L_81->___sizeStack_39 = L_82;
Il2CppCodeGenWriteBarrier((void**)&(((&L_81->___sizeStack_39))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_83 = ___state0;
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 L_84 = __this->___m_IndentStack_46;
L_83->___indentStack_40 = L_84;
Il2CppCodeGenWriteBarrier((void**)&(((&L_83->___indentStack_40))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_85 = ___state0;
TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790 L_86 = __this->___m_FontWeightStack_22;
L_85->___fontWeightStack_41 = L_86;
Il2CppCodeGenWriteBarrier((void**)&(((&L_85->___fontWeightStack_41))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_87 = ___state0;
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8 L_88 = __this->___m_StyleStack_87;
L_87->___styleStack_42 = L_88;
Il2CppCodeGenWriteBarrier((void**)&(((&L_87->___styleStack_42))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_89 = ___state0;
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 L_90 = __this->___m_BaselineOffsetStack_26;
L_89->___baselineStack_43 = L_90;
Il2CppCodeGenWriteBarrier((void**)&(((&L_89->___baselineStack_43))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_91 = ___state0;
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8 L_92 = __this->___m_ActionStack_37;
L_91->___actionStack_44 = L_92;
Il2CppCodeGenWriteBarrier((void**)&(((&L_91->___actionStack_44))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_93 = ___state0;
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA L_94 = __this->___m_MaterialReferenceStack_10;
L_93->___materialReferenceStack_45 = L_94;
Il2CppCodeGenWriteBarrier((void**)&(((&L_93->___materialReferenceStack_45))->___itemStack_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&L_93->___materialReferenceStack_45))->___m_DefaultItem_2))->___fontAsset_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&L_93->___materialReferenceStack_45))->___m_DefaultItem_2))->___spriteAsset_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&L_93->___materialReferenceStack_45))->___m_DefaultItem_2))->___material_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&L_93->___materialReferenceStack_45))->___m_DefaultItem_2))->___fallbackMaterial_6), (void*)NULL);
#endif
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_95 = ___state0;
TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F L_96 = __this->___m_LineJustificationStack_24;
L_95->___lineJustificationStack_46 = L_96;
Il2CppCodeGenWriteBarrier((void**)&(((&L_95->___lineJustificationStack_46))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_97 = ___state0;
int32_t L_98 = __this->___m_SpriteAnimationId_88;
L_97->___spriteAnimationId_47 = L_98;
int32_t L_99 = __this->___m_LineNumber_55;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_100 = ___textInfo3;
NullCheck(L_100);
LineInfoU5BU5D_t37598F2175B291797270D1161DC29B6296FB169D* L_101 = L_100->___lineInfo_13;
NullCheck(L_101);
V_0 = (bool)((((int32_t)L_99) < ((int32_t)((int32_t)(((RuntimeArray*)L_101)->max_length))))? 1 : 0);
bool L_102 = V_0;
if (!L_102)
{
goto IL_0271;
}
}
{
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_103 = ___state0;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_104 = ___textInfo3;
NullCheck(L_104);
LineInfoU5BU5D_t37598F2175B291797270D1161DC29B6296FB169D* L_105 = L_104->___lineInfo_13;
int32_t L_106 = __this->___m_LineNumber_55;
NullCheck(L_105);
int32_t L_107 = L_106;
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 L_108 = (L_105)->GetAt(static_cast<il2cpp_array_size_t>(L_107));
L_103->___lineInfo_28 = L_108;
}
IL_0271:
{
return;
}
}
// System.Int32 UnityEngine.TextCore.Text.TextGenerator::RestoreWordWrappingState(UnityEngine.TextCore.Text.WordWrapState&,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TextGenerator_RestoreWordWrappingState_mA63B3DD2C02E61CD8670A32A53163AF6BF765F61 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* ___state0, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo1, const RuntimeMethod* method)
{
int32_t V_0 = 0;
bool V_1 = false;
int32_t V_2 = 0;
{
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_0 = ___state0;
int32_t L_1 = L_0->___previousWordBreak_0;
V_0 = L_1;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_2 = ___state0;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_3 = L_2->___currentFontAsset_48;
__this->___m_CurrentFontAsset_7 = L_3;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentFontAsset_7), (void*)L_3);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_4 = ___state0;
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_5 = L_4->___currentSpriteAsset_49;
__this->___m_CurrentSpriteAsset_12 = L_5;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentSpriteAsset_12), (void*)L_5);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_6 = ___state0;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_7 = L_6->___currentMaterial_50;
__this->___m_CurrentMaterial_8 = L_7;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_7);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_8 = ___state0;
int32_t L_9 = L_8->___currentMaterialIndex_51;
__this->___m_CurrentMaterialIndex_9 = L_9;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_10 = ___state0;
int32_t L_11 = L_10->___totalCharacterCount_1;
__this->___m_CharacterCount_48 = ((int32_t)il2cpp_codegen_add(L_11, 1));
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_12 = ___state0;
int32_t L_13 = L_12->___visibleCharacterCount_2;
__this->___m_LineVisibleCharacterCount_56 = L_13;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_14 = ___textInfo1;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_15 = ___state0;
int32_t L_16 = L_15->___visibleLinkCount_4;
NullCheck(L_14);
L_14->___linkCount_6 = L_16;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_17 = ___state0;
int32_t L_18 = L_17->___firstCharacterIndex_5;
__this->___m_FirstCharacterOfLine_49 = L_18;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_19 = ___state0;
int32_t L_20 = L_19->___firstVisibleCharacterIndex_6;
__this->___m_FirstVisibleCharacterOfLine_51 = L_20;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_21 = ___state0;
int32_t L_22 = L_21->___lastVisibleCharIndex_8;
__this->___m_LastVisibleCharacterOfLine_52 = L_22;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_23 = ___state0;
int32_t L_24 = L_23->___fontStyle_21;
__this->___m_FontStyleInternal_19 = L_24;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_25 = ___state0;
float L_26 = L_25->___fontScale_22;
__this->___m_FontScale_14 = L_26;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_27 = ___state0;
float L_28 = L_27->___fontScaleMultiplier_23;
__this->___m_FontScaleMultiplier_16 = L_28;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_29 = ___state0;
float L_30 = L_29->___currentFontSize_24;
__this->___m_CurrentFontSize_17 = L_30;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_31 = ___state0;
float L_32 = L_31->___xAdvance_16;
__this->___m_XAdvance_43 = L_32;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_33 = ___state0;
float L_34 = L_33->___maxCapHeight_10;
__this->___m_MaxCapHeight_63 = L_34;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_35 = ___state0;
float L_36 = L_35->___maxAscender_11;
__this->___m_MaxAscender_64 = L_36;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_37 = ___state0;
float L_38 = L_37->___maxDescender_12;
__this->___m_MaxDescender_65 = L_38;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_39 = ___state0;
float L_40 = L_39->___maxLineAscender_13;
__this->___m_MaxLineAscender_53 = L_40;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_41 = ___state0;
float L_42 = L_41->___maxLineDescender_14;
__this->___m_MaxLineDescender_54 = L_42;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_43 = ___state0;
float L_44 = L_43->___previousLineAscender_15;
__this->___m_StartOfLineAscender_82 = L_44;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_45 = ___state0;
float L_46 = L_45->___preferredWidth_17;
__this->___m_PreferredWidth_5 = L_46;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_47 = ___state0;
float L_48 = L_47->___preferredHeight_18;
__this->___m_PreferredHeight_6 = L_48;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_49 = ___state0;
Extents_t369FB2B84521A0229C2FA3D4C8592B14E07CEFE6 L_50 = L_49->___meshExtents_52;
__this->___m_MeshExtents_62 = L_50;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_51 = ___state0;
int32_t L_52 = L_51->___lineNumber_9;
__this->___m_LineNumber_55 = L_52;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_53 = ___state0;
float L_54 = L_53->___lineOffset_26;
__this->___m_LineOffset_39 = L_54;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_55 = ___state0;
float L_56 = L_55->___baselineOffset_25;
__this->___m_BaselineOffset_25 = L_56;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_57 = ___state0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_58 = L_57->___vertexColor_29;
__this->___m_HtmlColor_28 = L_58;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_59 = ___state0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_60 = L_59->___underlineColor_30;
__this->___m_UnderlineColor_29 = L_60;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_61 = ___state0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_62 = L_61->___strikethroughColor_31;
__this->___m_StrikethroughColor_30 = L_62;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_63 = ___state0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_64 = L_63->___highlightColor_32;
__this->___m_HighlightColor_76 = L_64;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_65 = ___state0;
bool L_66 = L_65->___isNonBreakingSpace_54;
__this->___m_IsNonBreakingSpace_67 = L_66;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_67 = ___state0;
bool L_68 = L_67->___tagNoParsing_53;
__this->___m_TagNoParsing_47 = L_68;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_69 = ___state0;
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7 L_70 = L_69->___basicStyleStack_33;
__this->___m_FontStyleStack_20 = L_70;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_71 = ___state0;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 L_72 = L_71->___colorStack_34;
__this->___m_ColorStack_31 = L_72;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_ColorStack_31))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_73 = ___state0;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 L_74 = L_73->___underlineColorStack_35;
__this->___m_UnderlineColorStack_32 = L_74;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_UnderlineColorStack_32))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_75 = ___state0;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 L_76 = L_75->___strikethroughColorStack_36;
__this->___m_StrikethroughColorStack_33 = L_76;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_StrikethroughColorStack_33))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_77 = ___state0;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 L_78 = L_77->___highlightColorStack_37;
__this->___m_HighlightColorStack_34 = L_78;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_HighlightColorStack_34))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_79 = ___state0;
TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E L_80 = L_79->___colorGradientStack_38;
__this->___m_ColorGradientStack_36 = L_80;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_ColorGradientStack_36))->___itemStack_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_ColorGradientStack_36))->___m_DefaultItem_2), (void*)NULL);
#endif
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_81 = ___state0;
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 L_82 = L_81->___sizeStack_39;
__this->___m_SizeStack_18 = L_82;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_SizeStack_18))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_83 = ___state0;
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 L_84 = L_83->___indentStack_40;
__this->___m_IndentStack_46 = L_84;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_IndentStack_46))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_85 = ___state0;
TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790 L_86 = L_85->___fontWeightStack_41;
__this->___m_FontWeightStack_22 = L_86;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_FontWeightStack_22))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_87 = ___state0;
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8 L_88 = L_87->___styleStack_42;
__this->___m_StyleStack_87 = L_88;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_StyleStack_87))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_89 = ___state0;
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 L_90 = L_89->___baselineStack_43;
__this->___m_BaselineOffsetStack_26 = L_90;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_BaselineOffsetStack_26))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_91 = ___state0;
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8 L_92 = L_91->___actionStack_44;
__this->___m_ActionStack_37 = L_92;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_ActionStack_37))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_93 = ___state0;
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA L_94 = L_93->___materialReferenceStack_45;
__this->___m_MaterialReferenceStack_10 = L_94;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_MaterialReferenceStack_10))->___itemStack_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&__this->___m_MaterialReferenceStack_10))->___m_DefaultItem_2))->___fontAsset_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&__this->___m_MaterialReferenceStack_10))->___m_DefaultItem_2))->___spriteAsset_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&__this->___m_MaterialReferenceStack_10))->___m_DefaultItem_2))->___material_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&__this->___m_MaterialReferenceStack_10))->___m_DefaultItem_2))->___fallbackMaterial_6), (void*)NULL);
#endif
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_95 = ___state0;
TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F L_96 = L_95->___lineJustificationStack_46;
__this->___m_LineJustificationStack_24 = L_96;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_LineJustificationStack_24))->___itemStack_0), (void*)NULL);
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_97 = ___state0;
int32_t L_98 = L_97->___spriteAnimationId_47;
__this->___m_SpriteAnimationId_88 = L_98;
int32_t L_99 = __this->___m_LineNumber_55;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_100 = ___textInfo1;
NullCheck(L_100);
LineInfoU5BU5D_t37598F2175B291797270D1161DC29B6296FB169D* L_101 = L_100->___lineInfo_13;
NullCheck(L_101);
V_1 = (bool)((((int32_t)L_99) < ((int32_t)((int32_t)(((RuntimeArray*)L_101)->max_length))))? 1 : 0);
bool L_102 = V_1;
if (!L_102)
{
goto IL_0275;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_103 = ___textInfo1;
NullCheck(L_103);
LineInfoU5BU5D_t37598F2175B291797270D1161DC29B6296FB169D* L_104 = L_103->___lineInfo_13;
int32_t L_105 = __this->___m_LineNumber_55;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123* L_106 = ___state0;
LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5 L_107 = L_106->___lineInfo_28;
NullCheck(L_104);
(L_104)->SetAt(static_cast<il2cpp_array_size_t>(L_105), (LineInfo_t2BBD461B330C46ACA45596A8E72FEA4172F88CF5)L_107);
}
IL_0275:
{
int32_t L_108 = V_0;
V_2 = L_108;
goto IL_0279;
}
IL_0279:
{
int32_t L_109 = V_2;
return L_109;
}
}
// System.Boolean UnityEngine.TextCore.Text.TextGenerator::ValidateHtmlTag(System.Int32[],System.Int32,System.Int32&,UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool TextGenerator_ValidateHtmlTag_m9C85462F15A6165B10E4C4EE93620AC1021BE5CD (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___chars0, int32_t ___startIndex1, int32_t* ___endIndex2, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings3, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo4, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_get_Count_mFD42C320FC3C4884CD9A746FB26476D6662DFF58_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Resources_Load_TisFontAsset_t61A6446D934E582651044E33D250EA8D306AB958_mCA232125ECB8FA8B7AF234B15733CEC79EF821C6_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Resources_Load_TisMaterial_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3_m28782CC70624922DAF3B0FB13930E4EB59848128_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Resources_Load_TisSpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313_mDBDF61D69ECF9D35DA0ABDE51CBA6667E0571EEF_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Resources_Load_TisTextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70_m3B4500F9148F6FEC1F400C8A57D4E6A3731FDAC2_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextInfo_Resize_TisLinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8_mCED76C73D7A2398528C92992D323A2DBD1663DDD_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Add_m022CA737B4340C51370BE07A79E71C63F553AD3C_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Add_m15B10B664846D4F52E8FE84908D9B4196C697CF2_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Add_m274EBB250C6149AB4014207A84EC9F3F83C39125_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Add_mFB2400CB8E620060FDD41E7FB5E57A238F67E666_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Peek_mE06D9422EAE774A3926E6956483EB39E6425D2E0_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Pop_m58499B721ABBBCFDF676B5EFA85F77B8B019128A_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Push_mBF18A764F6D1996DD6E7D2F217EB86BA84FD6A93_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Remove_m22098B317E1049C5DFD900721F2F489220C44212_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Remove_m24EDA872BB55BFF4493268F713CFBA50102917D0_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Remove_m36486DFF2D5026596CFFED89F554CA9F296FBD6E_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Remove_m3C7936195E04FE5C7BD27A56E88A06DEDA9EA5BF_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Remove_mABFF8426A0D669AEEE6FB5017100904E559EEBF6_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Remove_mCEB203288B57A916CE3C9482E239BF59D7A3BBBE_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Remove_mFC7EB20F1D31BC8E84C07AAABD63626EAB1424BE_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral3CF41D991C7F2555D83F628B4B3B26444D917083);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteralD145B4F79D40262E79305A5090EE637B2012419A);
s_Il2CppMethodInitialized = true;
}
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* V_0 = NULL;
int32_t V_1 = 0;
uint8_t V_2 = 0x0;
int32_t V_3 = 0;
int32_t V_4 = 0;
int32_t V_5 = 0;
bool V_6 = false;
bool V_7 = false;
int32_t V_8 = 0;
uint32_t V_9 = 0;
bool V_10 = false;
bool V_11 = false;
bool V_12 = false;
bool V_13 = false;
bool V_14 = false;
bool V_15 = false;
bool V_16 = false;
bool V_17 = false;
bool V_18 = false;
bool V_19 = false;
bool V_20 = false;
bool V_21 = false;
bool V_22 = false;
bool V_23 = false;
bool V_24 = false;
bool V_25 = false;
bool V_26 = false;
bool V_27 = false;
bool V_28 = false;
bool V_29 = false;
bool V_30 = false;
bool V_31 = false;
bool V_32 = false;
bool V_33 = false;
bool V_34 = false;
bool V_35 = false;
bool V_36 = false;
bool V_37 = false;
bool V_38 = false;
float V_39 = 0.0f;
int32_t V_40 = 0;
int32_t V_41 = 0;
int32_t V_42 = 0;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* V_43 = NULL;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* V_44 = NULL;
int32_t V_45 = 0;
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* V_46 = NULL;
int32_t V_47 = 0;
int32_t V_48 = 0;
int32_t V_49 = 0;
int32_t V_50 = 0;
bool V_51 = false;
bool V_52 = false;
bool V_53 = false;
bool V_54 = false;
bool V_55 = false;
bool V_56 = false;
bool V_57 = false;
bool V_58 = false;
bool V_59 = false;
bool V_60 = false;
bool V_61 = false;
bool V_62 = false;
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 V_63;
memset((&V_63), 0, sizeof(V_63));
bool V_64 = false;
bool V_65 = false;
bool V_66 = false;
bool V_67 = false;
bool V_68 = false;
bool V_69 = false;
int32_t V_70 = 0;
int32_t V_71 = 0;
bool V_72 = false;
bool V_73 = false;
int32_t V_74 = 0;
int32_t V_75 = 0;
bool V_76 = false;
int32_t V_77 = 0;
int32_t V_78 = 0;
bool V_79 = false;
bool V_80 = false;
int32_t V_81 = 0;
int32_t V_82 = 0;
bool V_83 = false;
bool V_84 = false;
bool V_85 = false;
bool V_86 = false;
bool V_87 = false;
bool V_88 = false;
bool V_89 = false;
bool V_90 = false;
bool V_91 = false;
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 V_92;
memset((&V_92), 0, sizeof(V_92));
bool V_93 = false;
bool V_94 = false;
bool V_95 = false;
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 V_96;
memset((&V_96), 0, sizeof(V_96));
bool V_97 = false;
int32_t V_98 = 0;
int32_t V_99 = 0;
bool V_100 = false;
bool V_101 = false;
int32_t V_102 = 0;
bool V_103 = false;
bool V_104 = false;
bool V_105 = false;
int32_t V_106 = 0;
int32_t V_107 = 0;
bool V_108 = false;
int32_t V_109 = 0;
int32_t V_110 = 0;
bool V_111 = false;
bool V_112 = false;
bool V_113 = false;
bool V_114 = false;
int32_t V_115 = 0;
int32_t V_116 = 0;
bool V_117 = false;
bool V_118 = false;
bool V_119 = false;
bool V_120 = false;
int32_t V_121 = 0;
int32_t V_122 = 0;
bool V_123 = false;
bool V_124 = false;
bool V_125 = false;
int32_t V_126 = 0;
int32_t V_127 = 0;
bool V_128 = false;
int32_t V_129 = 0;
int32_t V_130 = 0;
bool V_131 = false;
int32_t V_132 = 0;
int32_t V_133 = 0;
bool V_134 = false;
bool V_135 = false;
bool V_136 = false;
bool V_137 = false;
bool V_138 = false;
bool V_139 = false;
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* V_140 = NULL;
bool V_141 = false;
bool V_142 = false;
bool V_143 = false;
bool V_144 = false;
int32_t V_145 = 0;
bool V_146 = false;
bool V_147 = false;
int32_t V_148 = 0;
int32_t V_149 = 0;
int32_t V_150 = 0;
int32_t V_151 = 0;
int32_t V_152 = 0;
bool V_153 = false;
bool V_154 = false;
bool V_155 = false;
bool V_156 = false;
bool V_157 = false;
bool V_158 = false;
bool V_159 = false;
bool V_160 = false;
bool V_161 = false;
bool V_162 = false;
bool V_163 = false;
bool V_164 = false;
bool V_165 = false;
int32_t V_166 = 0;
int32_t V_167 = 0;
bool V_168 = false;
int32_t V_169 = 0;
int32_t V_170 = 0;
bool V_171 = false;
int32_t V_172 = 0;
int32_t V_173 = 0;
bool V_174 = false;
int32_t V_175 = 0;
int32_t V_176 = 0;
bool V_177 = false;
bool V_178 = false;
bool V_179 = false;
int32_t G_B11_0 = 0;
int32_t G_B13_0 = 0;
int32_t G_B27_0 = 0;
int32_t G_B53_0 = 0;
int32_t G_B62_0 = 0;
int32_t G_B70_0 = 0;
int32_t G_B76_0 = 0;
int32_t G_B83_0 = 0;
int32_t G_B88_0 = 0;
int32_t G_B93_0 = 0;
int32_t G_B98_0 = 0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B294_0 = NULL;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B293_0 = NULL;
uint8_t G_B295_0 = 0x0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B295_1 = NULL;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B306_0 = NULL;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B305_0 = NULL;
uint8_t G_B307_0 = 0x0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B307_1 = NULL;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B317_0 = NULL;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B316_0 = NULL;
uint8_t G_B318_0 = 0x0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B318_1 = NULL;
float G_B326_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B326_1 = NULL;
float G_B325_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B325_1 = NULL;
float G_B327_0 = 0.0f;
float G_B327_1 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B327_2 = NULL;
float G_B332_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B332_1 = NULL;
float G_B331_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B331_1 = NULL;
float G_B333_0 = 0.0f;
float G_B333_1 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B333_2 = NULL;
float G_B340_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B340_1 = NULL;
float G_B339_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B339_1 = NULL;
float G_B341_0 = 0.0f;
float G_B341_1 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B341_2 = NULL;
float G_B346_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B346_1 = NULL;
float G_B345_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B345_1 = NULL;
float G_B347_0 = 0.0f;
float G_B347_1 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B347_2 = NULL;
int32_t G_B432_0 = 0;
int32_t G_B469_0 = 0;
int32_t G_B477_0 = 0;
int32_t G_B512_0 = 0;
int32_t G_B517_0 = 0;
int32_t G_B522_0 = 0;
int32_t G_B527_0 = 0;
int32_t G_B611_0 = 0;
int32_t G_B668_0 = 0;
float G_B698_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B698_1 = NULL;
float G_B697_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B697_1 = NULL;
float G_B699_0 = 0.0f;
float G_B699_1 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B699_2 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B702_0 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B701_0 = NULL;
float G_B703_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B703_1 = NULL;
float G_B713_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B713_1 = NULL;
float G_B712_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B712_1 = NULL;
float G_B714_0 = 0.0f;
float G_B714_1 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B714_2 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B717_0 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B716_0 = NULL;
float G_B718_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B718_1 = NULL;
float G_B727_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B727_1 = NULL;
float G_B726_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B726_1 = NULL;
float G_B728_0 = 0.0f;
float G_B728_1 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B728_2 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B731_0 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B730_0 = NULL;
float G_B732_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B732_1 = NULL;
int32_t G_B736_0 = 0;
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_0 = ___generationSettings3;
NullCheck(L_0);
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_1 = L_0->___textSettings_9;
V_0 = L_1;
V_1 = 0;
V_2 = (uint8_t)0;
V_3 = 0;
V_4 = 0;
V_5 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_2 = __this->___m_XmlAttribute_91;
int32_t L_3 = V_5;
NullCheck(L_2);
((L_2)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_3)))->___nameHashCode_0 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_4 = __this->___m_XmlAttribute_91;
int32_t L_5 = V_5;
NullCheck(L_4);
((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5)))->___valueType_1 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_6 = __this->___m_XmlAttribute_91;
int32_t L_7 = V_5;
NullCheck(L_6);
((L_6)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_7)))->___valueHashCode_4 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_8 = __this->___m_XmlAttribute_91;
int32_t L_9 = V_5;
NullCheck(L_8);
((L_8)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_9)))->___valueStartIndex_2 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_10 = __this->___m_XmlAttribute_91;
int32_t L_11 = V_5;
NullCheck(L_10);
((L_10)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_11)))->___valueLength_3 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_12 = __this->___m_XmlAttribute_91;
NullCheck(L_12);
((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->___nameHashCode_0 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_13 = __this->___m_XmlAttribute_91;
NullCheck(L_13);
((L_13)->GetAddressAt(static_cast<il2cpp_array_size_t>(2)))->___nameHashCode_0 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_14 = __this->___m_XmlAttribute_91;
NullCheck(L_14);
((L_14)->GetAddressAt(static_cast<il2cpp_array_size_t>(3)))->___nameHashCode_0 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_15 = __this->___m_XmlAttribute_91;
NullCheck(L_15);
((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(4)))->___nameHashCode_0 = 0;
int32_t* L_16 = ___endIndex2;
int32_t L_17 = ___startIndex1;
*((int32_t*)L_16) = (int32_t)L_17;
V_6 = (bool)0;
V_7 = (bool)0;
int32_t L_18 = ___startIndex1;
V_8 = L_18;
goto IL_063a;
}
IL_00cd:
{
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_19 = ___chars0;
int32_t L_20 = V_8;
NullCheck(L_19);
int32_t L_21 = L_20;
int32_t L_22 = (L_19)->GetAt(static_cast<il2cpp_array_size_t>(L_21));
V_9 = L_22;
uint32_t L_23 = V_9;
V_10 = (bool)((((int32_t)L_23) == ((int32_t)((int32_t)62)))? 1 : 0);
bool L_24 = V_10;
if (!L_24)
{
goto IL_00f6;
}
}
{
V_7 = (bool)1;
int32_t* L_25 = ___endIndex2;
int32_t L_26 = V_8;
*((int32_t*)L_25) = (int32_t)L_26;
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_27 = __this->___m_RichTextTag_92;
int32_t L_28 = V_1;
NullCheck(L_27);
(L_27)->SetAt(static_cast<il2cpp_array_size_t>(L_28), (Il2CppChar)0);
goto IL_0669;
}
IL_00f6:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_29 = __this->___m_RichTextTag_92;
int32_t L_30 = V_1;
uint32_t L_31 = V_9;
NullCheck(L_29);
(L_29)->SetAt(static_cast<il2cpp_array_size_t>(L_30), (Il2CppChar)((int32_t)(uint16_t)L_31));
int32_t L_32 = V_1;
V_1 = ((int32_t)il2cpp_codegen_add(L_32, 1));
uint8_t L_33 = V_2;
V_11 = (bool)((((int32_t)L_33) == ((int32_t)1))? 1 : 0);
bool L_34 = V_11;
if (!L_34)
{
goto IL_0534;
}
}
{
int32_t L_35 = V_4;
V_12 = (bool)((((int32_t)L_35) == ((int32_t)0))? 1 : 0);
bool L_36 = V_12;
if (!L_36)
{
goto IL_02b4;
}
}
{
uint32_t L_37 = V_9;
if ((((int32_t)L_37) == ((int32_t)((int32_t)43))))
{
goto IL_0148;
}
}
{
uint32_t L_38 = V_9;
if ((((int32_t)L_38) == ((int32_t)((int32_t)45))))
{
goto IL_0148;
}
}
{
uint32_t L_39 = V_9;
if ((((int32_t)L_39) == ((int32_t)((int32_t)46))))
{
goto IL_0148;
}
}
{
uint32_t L_40 = V_9;
if ((!(((uint32_t)L_40) >= ((uint32_t)((int32_t)48)))))
{
goto IL_0145;
}
}
{
uint32_t L_41 = V_9;
G_B11_0 = ((((int32_t)((!(((uint32_t)L_41) <= ((uint32_t)((int32_t)57))))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_0146;
}
IL_0145:
{
G_B11_0 = 0;
}
IL_0146:
{
G_B13_0 = G_B11_0;
goto IL_0149;
}
IL_0148:
{
G_B13_0 = 1;
}
IL_0149:
{
V_13 = (bool)G_B13_0;
bool L_42 = V_13;
if (!L_42)
{
goto IL_0198;
}
}
{
V_4 = 1;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_43 = __this->___m_XmlAttribute_91;
int32_t L_44 = V_5;
NullCheck(L_43);
((L_43)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_44)))->___valueType_1 = 1;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_45 = __this->___m_XmlAttribute_91;
int32_t L_46 = V_5;
NullCheck(L_45);
int32_t L_47 = V_1;
((L_45)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_46)))->___valueStartIndex_2 = ((int32_t)il2cpp_codegen_subtract(L_47, 1));
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_48 = __this->___m_XmlAttribute_91;
int32_t L_49 = V_5;
NullCheck(L_48);
int32_t* L_50 = (&((L_48)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_49)))->___valueLength_3);
int32_t* L_51 = L_50;
int32_t L_52 = *((int32_t*)L_51);
*((int32_t*)L_51) = (int32_t)((int32_t)il2cpp_codegen_add(L_52, 1));
goto IL_02ae;
}
IL_0198:
{
uint32_t L_53 = V_9;
V_14 = (bool)((((int32_t)L_53) == ((int32_t)((int32_t)35)))? 1 : 0);
bool L_54 = V_14;
if (!L_54)
{
goto IL_01ed;
}
}
{
V_4 = 4;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_55 = __this->___m_XmlAttribute_91;
int32_t L_56 = V_5;
NullCheck(L_55);
((L_55)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_56)))->___valueType_1 = 4;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_57 = __this->___m_XmlAttribute_91;
int32_t L_58 = V_5;
NullCheck(L_57);
int32_t L_59 = V_1;
((L_57)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_58)))->___valueStartIndex_2 = ((int32_t)il2cpp_codegen_subtract(L_59, 1));
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_60 = __this->___m_XmlAttribute_91;
int32_t L_61 = V_5;
NullCheck(L_60);
int32_t* L_62 = (&((L_60)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_61)))->___valueLength_3);
int32_t* L_63 = L_62;
int32_t L_64 = *((int32_t*)L_63);
*((int32_t*)L_63) = (int32_t)((int32_t)il2cpp_codegen_add(L_64, 1));
goto IL_02ae;
}
IL_01ed:
{
uint32_t L_65 = V_9;
V_15 = (bool)((((int32_t)L_65) == ((int32_t)((int32_t)34)))? 1 : 0);
bool L_66 = V_15;
if (!L_66)
{
goto IL_0229;
}
}
{
V_4 = 2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_67 = __this->___m_XmlAttribute_91;
int32_t L_68 = V_5;
NullCheck(L_67);
((L_67)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_68)))->___valueType_1 = 2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_69 = __this->___m_XmlAttribute_91;
int32_t L_70 = V_5;
NullCheck(L_69);
int32_t L_71 = V_1;
((L_69)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_70)))->___valueStartIndex_2 = L_71;
goto IL_02ae;
}
IL_0229:
{
V_4 = 2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_72 = __this->___m_XmlAttribute_91;
int32_t L_73 = V_5;
NullCheck(L_72);
((L_72)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_73)))->___valueType_1 = 2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_74 = __this->___m_XmlAttribute_91;
int32_t L_75 = V_5;
NullCheck(L_74);
int32_t L_76 = V_1;
((L_74)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_75)))->___valueStartIndex_2 = ((int32_t)il2cpp_codegen_subtract(L_76, 1));
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_77 = __this->___m_XmlAttribute_91;
int32_t L_78 = V_5;
NullCheck(L_77);
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_79 = __this->___m_XmlAttribute_91;
int32_t L_80 = V_5;
NullCheck(L_79);
int32_t L_81 = ((L_79)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_80)))->___valueHashCode_4;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_82 = __this->___m_XmlAttribute_91;
int32_t L_83 = V_5;
NullCheck(L_82);
int32_t L_84 = ((L_82)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_83)))->___valueHashCode_4;
uint32_t L_85 = V_9;
uint32_t L_86;
L_86 = TextUtilities_ToUpperASCIIFast_mCA372CC9A0CF7A2B86CC2C3914CB7FA5D3441CFF(L_85, NULL);
((L_77)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_78)))->___valueHashCode_4 = ((int32_t)(((int32_t)il2cpp_codegen_add(((int32_t)(L_81<<5)), L_84))^(int32_t)L_86));
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_87 = __this->___m_XmlAttribute_91;
int32_t L_88 = V_5;
NullCheck(L_87);
int32_t* L_89 = (&((L_87)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_88)))->___valueLength_3);
int32_t* L_90 = L_89;
int32_t L_91 = *((int32_t*)L_90);
*((int32_t*)L_90) = (int32_t)((int32_t)il2cpp_codegen_add(L_91, 1));
}
IL_02ae:
{
goto IL_0533;
}
IL_02b4:
{
int32_t L_92 = V_4;
V_16 = (bool)((((int32_t)L_92) == ((int32_t)1))? 1 : 0);
bool L_93 = V_16;
if (!L_93)
{
goto IL_03a0;
}
}
{
uint32_t L_94 = V_9;
if ((((int32_t)L_94) == ((int32_t)((int32_t)112))))
{
goto IL_02de;
}
}
{
uint32_t L_95 = V_9;
if ((((int32_t)L_95) == ((int32_t)((int32_t)101))))
{
goto IL_02de;
}
}
{
uint32_t L_96 = V_9;
if ((((int32_t)L_96) == ((int32_t)((int32_t)37))))
{
goto IL_02de;
}
}
{
uint32_t L_97 = V_9;
G_B27_0 = ((((int32_t)L_97) == ((int32_t)((int32_t)32)))? 1 : 0);
goto IL_02df;
}
IL_02de:
{
G_B27_0 = 1;
}
IL_02df:
{
V_17 = (bool)G_B27_0;
bool L_98 = V_17;
if (!L_98)
{
goto IL_0374;
}
}
{
V_2 = (uint8_t)2;
V_4 = 0;
int32_t L_99 = V_5;
V_5 = ((int32_t)il2cpp_codegen_add(L_99, 1));
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_100 = __this->___m_XmlAttribute_91;
int32_t L_101 = V_5;
NullCheck(L_100);
((L_100)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_101)))->___nameHashCode_0 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_102 = __this->___m_XmlAttribute_91;
int32_t L_103 = V_5;
NullCheck(L_102);
((L_102)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_103)))->___valueType_1 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_104 = __this->___m_XmlAttribute_91;
int32_t L_105 = V_5;
NullCheck(L_104);
((L_104)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_105)))->___valueHashCode_4 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_106 = __this->___m_XmlAttribute_91;
int32_t L_107 = V_5;
NullCheck(L_106);
((L_106)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_107)))->___valueStartIndex_2 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_108 = __this->___m_XmlAttribute_91;
int32_t L_109 = V_5;
NullCheck(L_108);
((L_108)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_109)))->___valueLength_3 = 0;
uint32_t L_110 = V_9;
V_18 = (bool)((((int32_t)L_110) == ((int32_t)((int32_t)101)))? 1 : 0);
bool L_111 = V_18;
if (!L_111)
{
goto IL_0363;
}
}
{
V_3 = 1;
goto IL_0371;
}
IL_0363:
{
uint32_t L_112 = V_9;
V_19 = (bool)((((int32_t)L_112) == ((int32_t)((int32_t)37)))? 1 : 0);
bool L_113 = V_19;
if (!L_113)
{
goto IL_0371;
}
}
{
V_3 = 2;
}
IL_0371:
{
goto IL_039a;
}
IL_0374:
{
uint8_t L_114 = V_2;
V_20 = (bool)((((int32_t)((((int32_t)L_114) == ((int32_t)2))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_115 = V_20;
if (!L_115)
{
goto IL_039a;
}
}
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_116 = __this->___m_XmlAttribute_91;
int32_t L_117 = V_5;
NullCheck(L_116);
int32_t* L_118 = (&((L_116)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_117)))->___valueLength_3);
int32_t* L_119 = L_118;
int32_t L_120 = *((int32_t*)L_119);
*((int32_t*)L_119) = (int32_t)((int32_t)il2cpp_codegen_add(L_120, 1));
}
IL_039a:
{
goto IL_0532;
}
IL_03a0:
{
int32_t L_121 = V_4;
V_21 = (bool)((((int32_t)L_121) == ((int32_t)4))? 1 : 0);
bool L_122 = V_21;
if (!L_122)
{
goto IL_044b;
}
}
{
uint32_t L_123 = V_9;
V_22 = (bool)((((int32_t)((((int32_t)L_123) == ((int32_t)((int32_t)32)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_124 = V_22;
if (!L_124)
{
goto IL_03d9;
}
}
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_125 = __this->___m_XmlAttribute_91;
int32_t L_126 = V_5;
NullCheck(L_125);
int32_t* L_127 = (&((L_125)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_126)))->___valueLength_3);
int32_t* L_128 = L_127;
int32_t L_129 = *((int32_t*)L_128);
*((int32_t*)L_128) = (int32_t)((int32_t)il2cpp_codegen_add(L_129, 1));
goto IL_0445;
}
IL_03d9:
{
V_2 = (uint8_t)2;
V_4 = 0;
int32_t L_130 = V_5;
V_5 = ((int32_t)il2cpp_codegen_add(L_130, 1));
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_131 = __this->___m_XmlAttribute_91;
int32_t L_132 = V_5;
NullCheck(L_131);
((L_131)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_132)))->___nameHashCode_0 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_133 = __this->___m_XmlAttribute_91;
int32_t L_134 = V_5;
NullCheck(L_133);
((L_133)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_134)))->___valueType_1 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_135 = __this->___m_XmlAttribute_91;
int32_t L_136 = V_5;
NullCheck(L_135);
((L_135)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_136)))->___valueHashCode_4 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_137 = __this->___m_XmlAttribute_91;
int32_t L_138 = V_5;
NullCheck(L_137);
((L_137)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_138)))->___valueStartIndex_2 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_139 = __this->___m_XmlAttribute_91;
int32_t L_140 = V_5;
NullCheck(L_139);
((L_139)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_140)))->___valueLength_3 = 0;
}
IL_0445:
{
goto IL_0532;
}
IL_044b:
{
int32_t L_141 = V_4;
V_23 = (bool)((((int32_t)L_141) == ((int32_t)2))? 1 : 0);
bool L_142 = V_23;
if (!L_142)
{
goto IL_0532;
}
}
{
uint32_t L_143 = V_9;
V_24 = (bool)((((int32_t)((((int32_t)L_143) == ((int32_t)((int32_t)34)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_144 = V_24;
if (!L_144)
{
goto IL_04c5;
}
}
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_145 = __this->___m_XmlAttribute_91;
int32_t L_146 = V_5;
NullCheck(L_145);
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_147 = __this->___m_XmlAttribute_91;
int32_t L_148 = V_5;
NullCheck(L_147);
int32_t L_149 = ((L_147)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_148)))->___valueHashCode_4;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_150 = __this->___m_XmlAttribute_91;
int32_t L_151 = V_5;
NullCheck(L_150);
int32_t L_152 = ((L_150)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_151)))->___valueHashCode_4;
uint32_t L_153 = V_9;
uint32_t L_154;
L_154 = TextUtilities_ToUpperASCIIFast_mCA372CC9A0CF7A2B86CC2C3914CB7FA5D3441CFF(L_153, NULL);
((L_145)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_146)))->___valueHashCode_4 = ((int32_t)(((int32_t)il2cpp_codegen_add(((int32_t)(L_149<<5)), L_152))^(int32_t)L_154));
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_155 = __this->___m_XmlAttribute_91;
int32_t L_156 = V_5;
NullCheck(L_155);
int32_t* L_157 = (&((L_155)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_156)))->___valueLength_3);
int32_t* L_158 = L_157;
int32_t L_159 = *((int32_t*)L_158);
*((int32_t*)L_158) = (int32_t)((int32_t)il2cpp_codegen_add(L_159, 1));
goto IL_0531;
}
IL_04c5:
{
V_2 = (uint8_t)2;
V_4 = 0;
int32_t L_160 = V_5;
V_5 = ((int32_t)il2cpp_codegen_add(L_160, 1));
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_161 = __this->___m_XmlAttribute_91;
int32_t L_162 = V_5;
NullCheck(L_161);
((L_161)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_162)))->___nameHashCode_0 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_163 = __this->___m_XmlAttribute_91;
int32_t L_164 = V_5;
NullCheck(L_163);
((L_163)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_164)))->___valueType_1 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_165 = __this->___m_XmlAttribute_91;
int32_t L_166 = V_5;
NullCheck(L_165);
((L_165)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_166)))->___valueHashCode_4 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_167 = __this->___m_XmlAttribute_91;
int32_t L_168 = V_5;
NullCheck(L_167);
((L_167)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_168)))->___valueStartIndex_2 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_169 = __this->___m_XmlAttribute_91;
int32_t L_170 = V_5;
NullCheck(L_169);
((L_169)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_170)))->___valueLength_3 = 0;
}
IL_0531:
{
}
IL_0532:
{
}
IL_0533:
{
}
IL_0534:
{
uint32_t L_171 = V_9;
V_25 = (bool)((((int32_t)L_171) == ((int32_t)((int32_t)61)))? 1 : 0);
bool L_172 = V_25;
if (!L_172)
{
goto IL_0542;
}
}
{
V_2 = (uint8_t)1;
}
IL_0542:
{
uint8_t L_173 = V_2;
if (L_173)
{
goto IL_054d;
}
}
{
uint32_t L_174 = V_9;
G_B53_0 = ((((int32_t)L_174) == ((int32_t)((int32_t)32)))? 1 : 0);
goto IL_054e;
}
IL_054d:
{
G_B53_0 = 0;
}
IL_054e:
{
V_26 = (bool)G_B53_0;
bool L_175 = V_26;
if (!L_175)
{
goto IL_05d3;
}
}
{
bool L_176 = V_6;
V_27 = L_176;
bool L_177 = V_27;
if (!L_177)
{
goto IL_0565;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_0565:
{
V_6 = (bool)1;
V_2 = (uint8_t)2;
V_4 = 0;
int32_t L_178 = V_5;
V_5 = ((int32_t)il2cpp_codegen_add(L_178, 1));
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_179 = __this->___m_XmlAttribute_91;
int32_t L_180 = V_5;
NullCheck(L_179);
((L_179)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_180)))->___nameHashCode_0 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_181 = __this->___m_XmlAttribute_91;
int32_t L_182 = V_5;
NullCheck(L_181);
((L_181)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_182)))->___valueType_1 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_183 = __this->___m_XmlAttribute_91;
int32_t L_184 = V_5;
NullCheck(L_183);
((L_183)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_184)))->___valueHashCode_4 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_185 = __this->___m_XmlAttribute_91;
int32_t L_186 = V_5;
NullCheck(L_185);
((L_185)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_186)))->___valueStartIndex_2 = 0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_187 = __this->___m_XmlAttribute_91;
int32_t L_188 = V_5;
NullCheck(L_187);
((L_187)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_188)))->___valueLength_3 = 0;
}
IL_05d3:
{
uint8_t L_189 = V_2;
V_29 = (bool)((((int32_t)L_189) == ((int32_t)0))? 1 : 0);
bool L_190 = V_29;
if (!L_190)
{
goto IL_061e;
}
}
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_191 = __this->___m_XmlAttribute_91;
int32_t L_192 = V_5;
NullCheck(L_191);
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_193 = __this->___m_XmlAttribute_91;
int32_t L_194 = V_5;
NullCheck(L_193);
int32_t L_195 = ((L_193)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_194)))->___nameHashCode_0;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_196 = __this->___m_XmlAttribute_91;
int32_t L_197 = V_5;
NullCheck(L_196);
int32_t L_198 = ((L_196)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_197)))->___nameHashCode_0;
uint32_t L_199 = V_9;
uint32_t L_200;
L_200 = TextUtilities_ToUpperASCIIFast_mCA372CC9A0CF7A2B86CC2C3914CB7FA5D3441CFF(L_199, NULL);
((L_191)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_192)))->___nameHashCode_0 = ((int32_t)(((int32_t)il2cpp_codegen_add(((int32_t)(L_195<<5)), L_198))^(int32_t)L_200));
}
IL_061e:
{
uint8_t L_201 = V_2;
if ((!(((uint32_t)L_201) == ((uint32_t)2))))
{
goto IL_062a;
}
}
{
uint32_t L_202 = V_9;
G_B62_0 = ((((int32_t)L_202) == ((int32_t)((int32_t)32)))? 1 : 0);
goto IL_062b;
}
IL_062a:
{
G_B62_0 = 0;
}
IL_062b:
{
V_30 = (bool)G_B62_0;
bool L_203 = V_30;
if (!L_203)
{
goto IL_0633;
}
}
{
V_2 = (uint8_t)0;
}
IL_0633:
{
int32_t L_204 = V_8;
V_8 = ((int32_t)il2cpp_codegen_add(L_204, 1));
}
IL_063a:
{
int32_t L_205 = V_8;
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_206 = ___chars0;
NullCheck(L_206);
if ((((int32_t)L_205) >= ((int32_t)((int32_t)(((RuntimeArray*)L_206)->max_length)))))
{
goto IL_065f;
}
}
{
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_207 = ___chars0;
int32_t L_208 = V_8;
NullCheck(L_207);
int32_t L_209 = L_208;
int32_t L_210 = (L_207)->GetAt(static_cast<il2cpp_array_size_t>(L_209));
if (!L_210)
{
goto IL_065f;
}
}
{
int32_t L_211 = V_1;
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_212 = __this->___m_RichTextTag_92;
NullCheck(L_212);
if ((((int32_t)L_211) >= ((int32_t)((int32_t)(((RuntimeArray*)L_212)->max_length)))))
{
goto IL_065f;
}
}
{
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_213 = ___chars0;
int32_t L_214 = V_8;
NullCheck(L_213);
int32_t L_215 = L_214;
int32_t L_216 = (L_213)->GetAt(static_cast<il2cpp_array_size_t>(L_215));
G_B70_0 = ((((int32_t)((((int32_t)L_216) == ((int32_t)((int32_t)60)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_0660;
}
IL_065f:
{
G_B70_0 = 0;
}
IL_0660:
{
V_31 = (bool)G_B70_0;
bool L_217 = V_31;
if (L_217)
{
goto IL_00cd;
}
}
IL_0669:
{
bool L_218 = V_7;
V_32 = (bool)((((int32_t)L_218) == ((int32_t)0))? 1 : 0);
bool L_219 = V_32;
if (!L_219)
{
goto IL_067c;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_067c:
{
bool L_220 = __this->___m_TagNoParsing_47;
if (!L_220)
{
goto IL_06a1;
}
}
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_221 = __this->___m_XmlAttribute_91;
NullCheck(L_221);
int32_t L_222 = ((L_221)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___nameHashCode_0;
G_B76_0 = ((((int32_t)((((int32_t)L_222) == ((int32_t)((int32_t)-294095813)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_06a2;
}
IL_06a1:
{
G_B76_0 = 0;
}
IL_06a2:
{
V_33 = (bool)G_B76_0;
bool L_223 = V_33;
if (!L_223)
{
goto IL_06b1;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_06b1:
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_224 = __this->___m_XmlAttribute_91;
NullCheck(L_224);
int32_t L_225 = ((L_224)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___nameHashCode_0;
V_34 = (bool)((((int32_t)L_225) == ((int32_t)((int32_t)-294095813)))? 1 : 0);
bool L_226 = V_34;
if (!L_226)
{
goto IL_06df;
}
}
{
__this->___m_TagNoParsing_47 = (bool)0;
V_28 = (bool)1;
goto IL_384a;
}
IL_06df:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_227 = __this->___m_RichTextTag_92;
NullCheck(L_227);
int32_t L_228 = 0;
uint16_t L_229 = (uint16_t)(L_227)->GetAt(static_cast<il2cpp_array_size_t>(L_228));
if ((!(((uint32_t)L_229) == ((uint32_t)((int32_t)35)))))
{
goto IL_06f1;
}
}
{
int32_t L_230 = V_1;
G_B83_0 = ((((int32_t)L_230) == ((int32_t)4))? 1 : 0);
goto IL_06f2;
}
IL_06f1:
{
G_B83_0 = 0;
}
IL_06f2:
{
V_35 = (bool)G_B83_0;
bool L_231 = V_35;
if (!L_231)
{
goto IL_0725;
}
}
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_232 = __this->___m_RichTextTag_92;
int32_t L_233 = V_1;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_234;
L_234 = TextGeneratorUtilities_HexCharsToColor_mB7D42327546D443ADF83696B99E2CFD921FEE21F(L_232, L_233, NULL);
__this->___m_HtmlColor_28 = L_234;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_235 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_236 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_235, L_236, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_0725:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_237 = __this->___m_RichTextTag_92;
NullCheck(L_237);
int32_t L_238 = 0;
uint16_t L_239 = (uint16_t)(L_237)->GetAt(static_cast<il2cpp_array_size_t>(L_238));
if ((!(((uint32_t)L_239) == ((uint32_t)((int32_t)35)))))
{
goto IL_0737;
}
}
{
int32_t L_240 = V_1;
G_B88_0 = ((((int32_t)L_240) == ((int32_t)5))? 1 : 0);
goto IL_0738;
}
IL_0737:
{
G_B88_0 = 0;
}
IL_0738:
{
V_36 = (bool)G_B88_0;
bool L_241 = V_36;
if (!L_241)
{
goto IL_076b;
}
}
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_242 = __this->___m_RichTextTag_92;
int32_t L_243 = V_1;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_244;
L_244 = TextGeneratorUtilities_HexCharsToColor_mB7D42327546D443ADF83696B99E2CFD921FEE21F(L_242, L_243, NULL);
__this->___m_HtmlColor_28 = L_244;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_245 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_246 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_245, L_246, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_076b:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_247 = __this->___m_RichTextTag_92;
NullCheck(L_247);
int32_t L_248 = 0;
uint16_t L_249 = (uint16_t)(L_247)->GetAt(static_cast<il2cpp_array_size_t>(L_248));
if ((!(((uint32_t)L_249) == ((uint32_t)((int32_t)35)))))
{
goto IL_077d;
}
}
{
int32_t L_250 = V_1;
G_B93_0 = ((((int32_t)L_250) == ((int32_t)7))? 1 : 0);
goto IL_077e;
}
IL_077d:
{
G_B93_0 = 0;
}
IL_077e:
{
V_37 = (bool)G_B93_0;
bool L_251 = V_37;
if (!L_251)
{
goto IL_07b1;
}
}
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_252 = __this->___m_RichTextTag_92;
int32_t L_253 = V_1;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_254;
L_254 = TextGeneratorUtilities_HexCharsToColor_mB7D42327546D443ADF83696B99E2CFD921FEE21F(L_252, L_253, NULL);
__this->___m_HtmlColor_28 = L_254;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_255 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_256 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_255, L_256, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_07b1:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_257 = __this->___m_RichTextTag_92;
NullCheck(L_257);
int32_t L_258 = 0;
uint16_t L_259 = (uint16_t)(L_257)->GetAt(static_cast<il2cpp_array_size_t>(L_258));
if ((!(((uint32_t)L_259) == ((uint32_t)((int32_t)35)))))
{
goto IL_07c4;
}
}
{
int32_t L_260 = V_1;
G_B98_0 = ((((int32_t)L_260) == ((int32_t)((int32_t)9)))? 1 : 0);
goto IL_07c5;
}
IL_07c4:
{
G_B98_0 = 0;
}
IL_07c5:
{
V_38 = (bool)G_B98_0;
bool L_261 = V_38;
if (!L_261)
{
goto IL_07f8;
}
}
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_262 = __this->___m_RichTextTag_92;
int32_t L_263 = V_1;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_264;
L_264 = TextGeneratorUtilities_HexCharsToColor_mB7D42327546D443ADF83696B99E2CFD921FEE21F(L_262, L_263, NULL);
__this->___m_HtmlColor_28 = L_264;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_265 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_266 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_265, L_266, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_07f8:
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_267 = __this->___m_XmlAttribute_91;
NullCheck(L_267);
int32_t L_268 = ((L_267)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___nameHashCode_0;
V_50 = L_268;
int32_t L_269 = V_50;
V_49 = L_269;
int32_t L_270 = V_49;
if ((((int32_t)L_270) > ((int32_t)((int32_t)1613))))
{
goto IL_0acd;
}
}
{
int32_t L_271 = V_49;
if ((((int32_t)L_271) > ((int32_t)((int32_t)-991527447))))
{
goto IL_097e;
}
}
{
int32_t L_272 = V_49;
if ((((int32_t)L_272) > ((int32_t)((int32_t)-1506899689))))
{
goto IL_08d9;
}
}
{
int32_t L_273 = V_49;
if ((((int32_t)L_273) > ((int32_t)((int32_t)-1827519330))))
{
goto IL_0884;
}
}
{
int32_t L_274 = V_49;
if ((((int32_t)L_274) > ((int32_t)((int32_t)-1889896162))))
{
goto IL_0865;
}
}
{
int32_t L_275 = V_49;
if ((((int32_t)L_275) == ((int32_t)((int32_t)-1999759898))))
{
goto IL_2818;
}
}
{
goto IL_0854;
}
IL_0854:
{
int32_t L_276 = V_49;
if ((((int32_t)L_276) == ((int32_t)((int32_t)-1889896162))))
{
goto IL_149f;
}
}
{
goto IL_3844;
}
IL_0865:
{
int32_t L_277 = V_49;
if ((((int32_t)L_277) == ((int32_t)((int32_t)-1854491959))))
{
goto IL_28d9;
}
}
{
goto IL_0873;
}
IL_0873:
{
int32_t L_278 = V_49;
if ((((int32_t)L_278) == ((int32_t)((int32_t)-1827519330))))
{
goto IL_36ee;
}
}
{
goto IL_3844;
}
IL_0884:
{
int32_t L_279 = V_49;
if ((((int32_t)L_279) > ((int32_t)((int32_t)-1638865562))))
{
goto IL_08ac;
}
}
{
int32_t L_280 = V_49;
if ((((int32_t)L_280) == ((int32_t)((int32_t)-1649644303))))
{
goto IL_33cc;
}
}
{
goto IL_089b;
}
IL_089b:
{
int32_t L_281 = V_49;
if ((((int32_t)L_281) == ((int32_t)((int32_t)-1638865562))))
{
goto IL_2ad9;
}
}
{
goto IL_3844;
}
IL_08ac:
{
int32_t L_282 = V_49;
if ((((int32_t)L_282) == ((int32_t)((int32_t)-1584382009))))
{
goto IL_28f2;
}
}
{
goto IL_08ba;
}
IL_08ba:
{
int32_t L_283 = V_49;
if ((((int32_t)L_283) == ((int32_t)((int32_t)-1514123076))))
{
goto IL_2af4;
}
}
{
goto IL_08c8;
}
IL_08c8:
{
int32_t L_284 = V_49;
if ((((int32_t)L_284) == ((int32_t)((int32_t)-1506899689))))
{
goto IL_3181;
}
}
{
goto IL_3844;
}
IL_08d9:
{
int32_t L_285 = V_49;
if ((((int32_t)L_285) > ((int32_t)((int32_t)-1355614050))))
{
goto IL_0929;
}
}
{
int32_t L_286 = V_49;
if ((((int32_t)L_286) > ((int32_t)((int32_t)-1451284584))))
{
goto IL_090a;
}
}
{
int32_t L_287 = V_49;
if ((((int32_t)L_287) == ((int32_t)((int32_t)-1496889389))))
{
goto IL_2bde;
}
}
{
goto IL_08f9;
}
IL_08f9:
{
int32_t L_288 = V_49;
if ((((int32_t)L_288) == ((int32_t)((int32_t)-1451284584))))
{
goto IL_31a4;
}
}
{
goto IL_3844;
}
IL_090a:
{
int32_t L_289 = V_49;
if ((((int32_t)L_289) == ((int32_t)((int32_t)-1394426712))))
{
goto IL_29af;
}
}
{
goto IL_0918;
}
IL_0918:
{
int32_t L_290 = V_49;
if ((((int32_t)L_290) == ((int32_t)((int32_t)-1355614050))))
{
goto IL_32bd;
}
}
{
goto IL_3844;
}
IL_0929:
{
int32_t L_291 = V_49;
if ((((int32_t)L_291) > ((int32_t)((int32_t)-1187217679))))
{
goto IL_0951;
}
}
{
int32_t L_292 = V_49;
if ((((int32_t)L_292) == ((int32_t)((int32_t)-1340221943))))
{
goto IL_2a1c;
}
}
{
goto IL_0940;
}
IL_0940:
{
int32_t L_293 = V_49;
if ((((int32_t)L_293) == ((int32_t)((int32_t)-1187217679))))
{
goto IL_3725;
}
}
{
goto IL_3844;
}
IL_0951:
{
int32_t L_294 = V_49;
if ((((int32_t)L_294) == ((int32_t)((int32_t)-1100708252))))
{
goto IL_1fed;
}
}
{
goto IL_095f;
}
IL_095f:
{
int32_t L_295 = V_49;
if ((((int32_t)L_295) == ((int32_t)((int32_t)-1000007783))))
{
goto IL_37c3;
}
}
{
goto IL_096d;
}
IL_096d:
{
int32_t L_296 = V_49;
if ((((int32_t)L_296) == ((int32_t)((int32_t)-991527447))))
{
goto IL_2ce9;
}
}
{
goto IL_3844;
}
IL_097e:
{
int32_t L_297 = V_49;
if ((((int32_t)L_297) > ((int32_t)((int32_t)-408011596))))
{
goto IL_0a2f;
}
}
{
int32_t L_298 = V_49;
if ((((int32_t)L_298) > ((int32_t)((int32_t)-766062114))))
{
goto IL_09da;
}
}
{
int32_t L_299 = V_49;
if ((((int32_t)L_299) > ((int32_t)((int32_t)-799081892))))
{
goto IL_09bb;
}
}
{
int32_t L_300 = V_49;
if ((((int32_t)L_300) == ((int32_t)((int32_t)-844305121))))
{
goto IL_2bf7;
}
}
{
goto IL_09aa;
}
IL_09aa:
{
int32_t L_301 = V_49;
if ((((int32_t)L_301) == ((int32_t)((int32_t)-799081892))))
{
goto IL_35f0;
}
}
{
goto IL_3844;
}
IL_09bb:
{
int32_t L_302 = V_49;
if ((((int32_t)L_302) == ((int32_t)((int32_t)-797437649))))
{
goto IL_320c;
}
}
{
goto IL_09c9;
}
IL_09c9:
{
int32_t L_303 = V_49;
if ((((int32_t)L_303) == ((int32_t)((int32_t)-766062114))))
{
goto IL_3252;
}
}
{
goto IL_3844;
}
IL_09da:
{
int32_t L_304 = V_49;
if ((((int32_t)L_304) > ((int32_t)((int32_t)-757976431))))
{
goto IL_0a02;
}
}
{
int32_t L_305 = V_49;
if ((((int32_t)L_305) == ((int32_t)((int32_t)-764695562))))
{
goto IL_3838;
}
}
{
goto IL_09f1;
}
IL_09f1:
{
int32_t L_306 = V_49;
if ((((int32_t)L_306) == ((int32_t)((int32_t)-757976431))))
{
goto IL_15e7;
}
}
{
goto IL_3844;
}
IL_0a02:
{
int32_t L_307 = V_49;
if ((((int32_t)L_307) == ((int32_t)((int32_t)-582368199))))
{
goto IL_320c;
}
}
{
goto IL_0a10;
}
IL_0a10:
{
int32_t L_308 = V_49;
if ((((int32_t)L_308) == ((int32_t)((int32_t)-447416589))))
{
goto IL_34ed;
}
}
{
goto IL_0a1e;
}
IL_0a1e:
{
int32_t L_309 = V_49;
if ((((int32_t)L_309) == ((int32_t)((int32_t)-408011596))))
{
goto IL_36df;
}
}
{
goto IL_3844;
}
IL_0a2f:
{
int32_t L_310 = V_49;
if ((((int32_t)L_310) > ((int32_t)((int32_t)66))))
{
goto IL_0a84;
}
}
{
int32_t L_311 = V_49;
if ((((int32_t)L_311) > ((int32_t)((int32_t)-272933656))))
{
goto IL_0a5d;
}
}
{
int32_t L_312 = V_49;
if ((((int32_t)L_312) == ((int32_t)((int32_t)-305409418))))
{
goto IL_31e7;
}
}
{
goto IL_0a4c;
}
IL_0a4c:
{
int32_t L_313 = V_49;
if ((((int32_t)L_313) == ((int32_t)((int32_t)-272933656))))
{
goto IL_33ea;
}
}
{
goto IL_3844;
}
IL_0a5d:
{
int32_t L_314 = V_49;
if ((((int32_t)L_314) == ((int32_t)((int32_t)-11107948))))
{
goto IL_17b1;
}
}
{
goto IL_0a6b;
}
IL_0a6b:
{
int32_t L_315 = V_49;
if ((((int32_t)L_315) == ((int32_t)((int32_t)65))))
{
goto IL_213f;
}
}
{
goto IL_0a76;
}
IL_0a76:
{
int32_t L_316 = V_49;
if ((((int32_t)L_316) == ((int32_t)((int32_t)66))))
{
goto IL_0d93;
}
}
{
goto IL_3844;
}
IL_0a84:
{
int32_t L_317 = V_49;
if ((((int32_t)L_317) > ((int32_t)((int32_t)83))))
{
goto IL_0aa3;
}
}
{
int32_t L_318 = V_49;
if ((((int32_t)L_318) == ((int32_t)((int32_t)73))))
{
goto IL_0e17;
}
}
{
goto IL_0a95;
}
IL_0a95:
{
int32_t L_319 = V_49;
if ((((int32_t)L_319) == ((int32_t)((int32_t)83))))
{
goto IL_0e7d;
}
}
{
goto IL_3844;
}
IL_0aa3:
{
int32_t L_320 = V_49;
if ((((int32_t)L_320) == ((int32_t)((int32_t)85))))
{
goto IL_0f98;
}
}
{
goto IL_0aae;
}
IL_0aae:
{
int32_t L_321 = V_49;
if ((((int32_t)L_321) == ((int32_t)((int32_t)1606))))
{
goto IL_0e3a;
}
}
{
goto IL_0abc;
}
IL_0abc:
{
int32_t L_322 = V_49;
if ((((int32_t)L_322) == ((int32_t)((int32_t)1613))))
{
goto IL_0dc1;
}
}
{
goto IL_3844;
}
IL_0acd:
{
int32_t L_323 = V_49;
if ((((int32_t)L_323) > ((int32_t)((int32_t)57686191))))
{
goto IL_0c2f;
}
}
{
int32_t L_324 = V_49;
if ((((int32_t)L_324) > ((int32_t)((int32_t)1777699))))
{
goto IL_0b8a;
}
}
{
int32_t L_325 = V_49;
if ((((int32_t)L_325) > ((int32_t)((int32_t)85420))))
{
goto IL_0b35;
}
}
{
int32_t L_326 = V_49;
if ((((int32_t)L_326) > ((int32_t)((int32_t)1626))))
{
goto IL_0b16;
}
}
{
int32_t L_327 = V_49;
if ((((int32_t)L_327) == ((int32_t)((int32_t)1614))))
{
goto IL_2147;
}
}
{
goto IL_0b05;
}
IL_0b05:
{
int32_t L_328 = V_49;
if ((((int32_t)L_328) == ((int32_t)((int32_t)1626))))
{
goto IL_106b;
}
}
{
goto IL_3844;
}
IL_0b16:
{
int32_t L_329 = V_49;
if ((((int32_t)L_329) == ((int32_t)((int32_t)1628))))
{
goto IL_0f52;
}
}
{
goto IL_0b24;
}
IL_0b24:
{
int32_t L_330 = V_49;
if ((((int32_t)L_330) == ((int32_t)((int32_t)85420))))
{
goto IL_1628;
}
}
{
goto IL_3844;
}
IL_0b35:
{
int32_t L_331 = V_49;
if ((((int32_t)L_331) > ((int32_t)((int32_t)92150))))
{
goto IL_0b5d;
}
}
{
int32_t L_332 = V_49;
if ((((int32_t)L_332) == ((int32_t)((int32_t)92132))))
{
goto IL_11cd;
}
}
{
goto IL_0b4c;
}
IL_0b4c:
{
int32_t L_333 = V_49;
if ((((int32_t)L_333) == ((int32_t)((int32_t)92150))))
{
goto IL_1336;
}
}
{
goto IL_3844;
}
IL_0b5d:
{
int32_t L_334 = V_49;
if ((((int32_t)L_334) == ((int32_t)((int32_t)1770219))))
{
goto IL_127c;
}
}
{
goto IL_0b6b;
}
IL_0b6b:
{
int32_t L_335 = V_49;
if ((((int32_t)L_335) == ((int32_t)((int32_t)1770233))))
{
goto IL_13e5;
}
}
{
goto IL_0b79;
}
IL_0b79:
{
int32_t L_336 = V_49;
if ((((int32_t)L_336) == ((int32_t)((int32_t)1777699))))
{
goto IL_16fa;
}
}
{
goto IL_3844;
}
IL_0b8a:
{
int32_t L_337 = V_49;
if ((((int32_t)L_337) > ((int32_t)((int32_t)2808691))))
{
goto IL_0bda;
}
}
{
int32_t L_338 = V_49;
if ((((int32_t)L_338) > ((int32_t)((int32_t)2656128))))
{
goto IL_0bbb;
}
}
{
int32_t L_339 = V_49;
if ((((int32_t)L_339) == ((int32_t)((int32_t)2586451))))
{
goto IL_1af8;
}
}
{
goto IL_0baa;
}
IL_0baa:
{
int32_t L_340 = V_49;
if ((((int32_t)L_340) == ((int32_t)((int32_t)2656128))))
{
goto IL_214f;
}
}
{
goto IL_3844;
}
IL_0bbb:
{
int32_t L_341 = V_49;
if ((((int32_t)L_341) == ((int32_t)((int32_t)2699125))))
{
goto IL_10bf;
}
}
{
goto IL_0bc9;
}
IL_0bc9:
{
int32_t L_342 = V_49;
if ((((int32_t)L_342) == ((int32_t)((int32_t)2808691))))
{
goto IL_17c4;
}
}
{
goto IL_3844;
}
IL_0bda:
{
int32_t L_343 = V_49;
if ((((int32_t)L_343) > ((int32_t)((int32_t)3061285))))
{
goto IL_0c02;
}
}
{
int32_t L_344 = V_49;
if ((((int32_t)L_344) == ((int32_t)((int32_t)2856657))))
{
goto IL_1817;
}
}
{
goto IL_0bf1;
}
IL_0bf1:
{
int32_t L_345 = V_49;
if ((((int32_t)L_345) == ((int32_t)((int32_t)3061285))))
{
goto IL_1835;
}
}
{
goto IL_3844;
}
IL_0c02:
{
int32_t L_346 = V_49;
if ((((int32_t)L_346) == ((int32_t)((int32_t)57477502))))
{
goto IL_1826;
}
}
{
goto IL_0c10;
}
IL_0c10:
{
int32_t L_347 = V_49;
if ((((int32_t)L_347) == ((int32_t)((int32_t)57644506))))
{
goto IL_116a;
}
}
{
goto IL_0c1e;
}
IL_0c1e:
{
int32_t L_348 = V_49;
if ((((int32_t)L_348) == ((int32_t)((int32_t)57686191))))
{
goto IL_2268;
}
}
{
goto IL_3844;
}
IL_0c2f:
{
int32_t L_349 = V_49;
if ((((int32_t)L_349) > ((int32_t)((int32_t)100553336))))
{
goto IL_0ce0;
}
}
{
int32_t L_350 = V_49;
if ((((int32_t)L_350) > ((int32_t)((int32_t)75165780))))
{
goto IL_0c8b;
}
}
{
int32_t L_351 = V_49;
if ((((int32_t)L_351) > ((int32_t)((int32_t)58429962))))
{
goto IL_0c6c;
}
}
{
int32_t L_352 = V_49;
if ((((int32_t)L_352) == ((int32_t)((int32_t)57747708))))
{
goto IL_1e09;
}
}
{
goto IL_0c5b;
}
IL_0c5b:
{
int32_t L_353 = V_49;
if ((((int32_t)L_353) == ((int32_t)((int32_t)58429962))))
{
goto IL_1aa8;
}
}
{
goto IL_3844;
}
IL_0c6c:
{
int32_t L_354 = V_49;
if ((((int32_t)L_354) == ((int32_t)((int32_t)75138797))))
{
goto IL_22ec;
}
}
{
goto IL_0c7a;
}
IL_0c7a:
{
int32_t L_355 = V_49;
if ((((int32_t)L_355) == ((int32_t)((int32_t)75165780))))
{
goto IL_20e8;
}
}
{
goto IL_3844;
}
IL_0c8b:
{
int32_t L_356 = V_49;
if ((((int32_t)L_356) > ((int32_t)((int32_t)82115566))))
{
goto IL_0cb3;
}
}
{
int32_t L_357 = V_49;
if ((((int32_t)L_357) == ((int32_t)((int32_t)81999901))))
{
goto IL_24cf;
}
}
{
goto IL_0ca2;
}
IL_0ca2:
{
int32_t L_358 = V_49;
if ((((int32_t)L_358) == ((int32_t)((int32_t)82115566))))
{
goto IL_2aec;
}
}
{
goto IL_3844;
}
IL_0cb3:
{
int32_t L_359 = V_49;
if ((((int32_t)L_359) == ((int32_t)((int32_t)93886352))))
{
goto IL_2cd6;
}
}
{
goto IL_0cc1;
}
IL_0cc1:
{
int32_t L_360 = V_49;
if ((((int32_t)L_360) == ((int32_t)((int32_t)100083556))))
{
goto IL_201d;
}
}
{
goto IL_0ccf;
}
IL_0ccf:
{
int32_t L_361 = V_49;
if ((((int32_t)L_361) == ((int32_t)((int32_t)100553336))))
{
goto IL_3739;
}
}
{
goto IL_3844;
}
IL_0ce0:
{
int32_t L_362 = V_49;
if ((((int32_t)L_362) > ((int32_t)((int32_t)825491659))))
{
goto IL_0d3e;
}
}
{
int32_t L_363 = V_49;
if ((((int32_t)L_363) > ((int32_t)((int32_t)199921873))))
{
goto IL_0d11;
}
}
{
int32_t L_364 = V_49;
if ((((int32_t)L_364) == ((int32_t)((int32_t)105793766))))
{
goto IL_2429;
}
}
{
goto IL_0d00;
}
IL_0d00:
{
int32_t L_365 = V_49;
if ((((int32_t)L_365) == ((int32_t)((int32_t)199921873))))
{
goto IL_3277;
}
}
{
goto IL_3844;
}
IL_0d11:
{
int32_t L_366 = V_49;
if ((((int32_t)L_366) == ((int32_t)((int32_t)200452819))))
{
goto IL_36cc;
}
}
{
goto IL_0d1f;
}
IL_0d1f:
{
int32_t L_367 = V_49;
if ((((int32_t)L_367) == ((int32_t)((int32_t)218273952))))
{
goto IL_31e7;
}
}
{
goto IL_0d2d;
}
IL_0d2d:
{
int32_t L_368 = V_49;
if ((((int32_t)L_368) == ((int32_t)((int32_t)825491659))))
{
goto IL_1e7d;
}
}
{
goto IL_3844;
}
IL_0d3e:
{
int32_t L_369 = V_49;
if ((((int32_t)L_369) > ((int32_t)((int32_t)1916026786))))
{
goto IL_0d66;
}
}
{
int32_t L_370 = V_49;
if ((((int32_t)L_370) == ((int32_t)((int32_t)1909026194))))
{
goto IL_27ff;
}
}
{
goto IL_0d55;
}
IL_0d55:
{
int32_t L_371 = V_49;
if ((((int32_t)L_371) == ((int32_t)((int32_t)1916026786))))
{
goto IL_2410;
}
}
{
goto IL_3844;
}
IL_0d66:
{
int32_t L_372 = V_49;
if ((((int32_t)L_372) == ((int32_t)((int32_t)1923459625))))
{
goto IL_24bc;
}
}
{
goto IL_0d74;
}
IL_0d74:
{
int32_t L_373 = V_49;
if ((((int32_t)L_373) == ((int32_t)((int32_t)1928413879))))
{
goto IL_37b4;
}
}
{
goto IL_0d82;
}
IL_0d82:
{
int32_t L_374 = V_49;
if ((((int32_t)L_374) == ((int32_t)((int32_t)1952379995))))
{
goto IL_1702;
}
}
{
goto IL_3844;
}
IL_0d93:
{
int32_t L_375 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_375|1));
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_376 = (&__this->___m_FontStyleStack_20);
uint8_t L_377;
L_377 = FontStyleStack_Add_m26E701C9F052EEEBB213B9B8BC6CB8F1F8F6AFCB(L_376, 1, NULL);
__this->___m_FontWeightInternal_21 = ((int32_t)700);
V_28 = (bool)1;
goto IL_384a;
}
IL_0dc1:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_378 = ___generationSettings3;
NullCheck(L_378);
int32_t L_379 = L_378->___fontStyle_8;
V_51 = (bool)((((int32_t)((((int32_t)((int32_t)((int32_t)L_379&1))) == ((int32_t)1))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_380 = V_51;
if (!L_380)
{
goto IL_0e0f;
}
}
{
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_381 = (&__this->___m_FontStyleStack_20);
uint8_t L_382;
L_382 = FontStyleStack_Remove_mC2B4F44A6596E92D6992DBCA298648F8A7416CAB(L_381, 1, NULL);
V_52 = (bool)((((int32_t)L_382) == ((int32_t)0))? 1 : 0);
bool L_383 = V_52;
if (!L_383)
{
goto IL_0e0e;
}
}
{
int32_t L_384 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_384&((int32_t)-2)));
TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790* L_385 = (&__this->___m_FontWeightStack_22);
int32_t L_386;
L_386 = TextProcessingStack_1_Peek_mE06D9422EAE774A3926E6956483EB39E6425D2E0(L_385, TextProcessingStack_1_Peek_mE06D9422EAE774A3926E6956483EB39E6425D2E0_RuntimeMethod_var);
__this->___m_FontWeightInternal_21 = L_386;
}
IL_0e0e:
{
}
IL_0e0f:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_0e17:
{
int32_t L_387 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_387|2));
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_388 = (&__this->___m_FontStyleStack_20);
uint8_t L_389;
L_389 = FontStyleStack_Add_m26E701C9F052EEEBB213B9B8BC6CB8F1F8F6AFCB(L_388, 2, NULL);
V_28 = (bool)1;
goto IL_384a;
}
IL_0e3a:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_390 = ___generationSettings3;
NullCheck(L_390);
int32_t L_391 = L_390->___fontStyle_8;
V_53 = (bool)((((int32_t)((((int32_t)((int32_t)((int32_t)L_391&2))) == ((int32_t)2))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_392 = V_53;
if (!L_392)
{
goto IL_0e75;
}
}
{
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_393 = (&__this->___m_FontStyleStack_20);
uint8_t L_394;
L_394 = FontStyleStack_Remove_mC2B4F44A6596E92D6992DBCA298648F8A7416CAB(L_393, 2, NULL);
V_54 = (bool)((((int32_t)L_394) == ((int32_t)0))? 1 : 0);
bool L_395 = V_54;
if (!L_395)
{
goto IL_0e74;
}
}
{
int32_t L_396 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_396&((int32_t)-3)));
}
IL_0e74:
{
}
IL_0e75:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_0e7d:
{
int32_t L_397 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_397|((int32_t)64)));
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_398 = (&__this->___m_FontStyleStack_20);
uint8_t L_399;
L_399 = FontStyleStack_Add_m26E701C9F052EEEBB213B9B8BC6CB8F1F8F6AFCB(L_398, ((int32_t)64), NULL);
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_400 = __this->___m_XmlAttribute_91;
NullCheck(L_400);
int32_t L_401 = ((L_400)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->___nameHashCode_0;
V_55 = (bool)((((int64_t)((int64_t)L_401)) == ((int64_t)((int64_t)((int32_t)81999901))))? 1 : 0);
bool L_402 = V_55;
if (!L_402)
{
goto IL_0f2c;
}
}
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_403 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_404 = __this->___m_XmlAttribute_91;
NullCheck(L_404);
int32_t L_405 = ((L_404)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_406 = __this->___m_XmlAttribute_91;
NullCheck(L_406);
int32_t L_407 = ((L_406)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_408;
L_408 = TextGeneratorUtilities_HexCharsToColor_m0FC6E21EF35547ADFEA41B876C6FC1CD37C71019(L_403, L_405, L_407, NULL);
__this->___m_StrikethroughColor_30 = L_408;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_409 = (&__this->___m_StrikethroughColor_30);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_410 = (&__this->___m_HtmlColor_28);
uint8_t L_411 = L_410->___a_4;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_412 = (&__this->___m_StrikethroughColor_30);
uint8_t L_413 = L_412->___a_4;
G_B293_0 = L_409;
if ((((int32_t)L_411) < ((int32_t)L_413)))
{
G_B294_0 = L_409;
goto IL_0f19;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_414 = (&__this->___m_StrikethroughColor_30);
uint8_t L_415 = L_414->___a_4;
G_B295_0 = L_415;
G_B295_1 = G_B293_0;
goto IL_0f24;
}
IL_0f19:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_416 = (&__this->___m_HtmlColor_28);
uint8_t L_417 = L_416->___a_4;
G_B295_0 = L_417;
G_B295_1 = G_B294_0;
}
IL_0f24:
{
G_B295_1->___a_4 = G_B295_0;
goto IL_0f38;
}
IL_0f2c:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_418 = __this->___m_HtmlColor_28;
__this->___m_StrikethroughColor_30 = L_418;
}
IL_0f38:
{
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_419 = (&__this->___m_StrikethroughColorStack_33);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_420 = __this->___m_StrikethroughColor_30;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_419, L_420, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_0f52:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_421 = ___generationSettings3;
NullCheck(L_421);
int32_t L_422 = L_421->___fontStyle_8;
V_56 = (bool)((((int32_t)((((int32_t)((int32_t)((int32_t)L_422&((int32_t)64)))) == ((int32_t)((int32_t)64)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_423 = V_56;
if (!L_423)
{
goto IL_0f90;
}
}
{
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_424 = (&__this->___m_FontStyleStack_20);
uint8_t L_425;
L_425 = FontStyleStack_Remove_mC2B4F44A6596E92D6992DBCA298648F8A7416CAB(L_424, ((int32_t)64), NULL);
V_57 = (bool)((((int32_t)L_425) == ((int32_t)0))? 1 : 0);
bool L_426 = V_57;
if (!L_426)
{
goto IL_0f8f;
}
}
{
int32_t L_427 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_427&((int32_t)-65)));
}
IL_0f8f:
{
}
IL_0f90:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_0f98:
{
int32_t L_428 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_428|4));
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_429 = (&__this->___m_FontStyleStack_20);
uint8_t L_430;
L_430 = FontStyleStack_Add_m26E701C9F052EEEBB213B9B8BC6CB8F1F8F6AFCB(L_429, 4, NULL);
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_431 = __this->___m_XmlAttribute_91;
NullCheck(L_431);
int32_t L_432 = ((L_431)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->___nameHashCode_0;
V_58 = (bool)((((int64_t)((int64_t)L_432)) == ((int64_t)((int64_t)((int32_t)81999901))))? 1 : 0);
bool L_433 = V_58;
if (!L_433)
{
goto IL_1045;
}
}
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_434 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_435 = __this->___m_XmlAttribute_91;
NullCheck(L_435);
int32_t L_436 = ((L_435)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_437 = __this->___m_XmlAttribute_91;
NullCheck(L_437);
int32_t L_438 = ((L_437)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_439;
L_439 = TextGeneratorUtilities_HexCharsToColor_m0FC6E21EF35547ADFEA41B876C6FC1CD37C71019(L_434, L_436, L_438, NULL);
__this->___m_UnderlineColor_29 = L_439;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_440 = (&__this->___m_UnderlineColor_29);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_441 = (&__this->___m_HtmlColor_28);
uint8_t L_442 = L_441->___a_4;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_443 = (&__this->___m_UnderlineColor_29);
uint8_t L_444 = L_443->___a_4;
G_B305_0 = L_440;
if ((((int32_t)L_442) < ((int32_t)L_444)))
{
G_B306_0 = L_440;
goto IL_1032;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_445 = (&__this->___m_UnderlineColor_29);
uint8_t L_446 = L_445->___a_4;
G_B307_0 = L_446;
G_B307_1 = G_B305_0;
goto IL_103d;
}
IL_1032:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_447 = (&__this->___m_HtmlColor_28);
uint8_t L_448 = L_447->___a_4;
G_B307_0 = L_448;
G_B307_1 = G_B306_0;
}
IL_103d:
{
G_B307_1->___a_4 = G_B307_0;
goto IL_1051;
}
IL_1045:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_449 = __this->___m_HtmlColor_28;
__this->___m_UnderlineColor_29 = L_449;
}
IL_1051:
{
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_450 = (&__this->___m_UnderlineColorStack_32);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_451 = __this->___m_UnderlineColor_29;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_450, L_451, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_106b:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_452 = ___generationSettings3;
NullCheck(L_452);
int32_t L_453 = L_452->___fontStyle_8;
V_59 = (bool)((((int32_t)((((int32_t)((int32_t)((int32_t)L_453&4))) == ((int32_t)4))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_454 = V_59;
if (!L_454)
{
goto IL_10b7;
}
}
{
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_455 = (&__this->___m_UnderlineColorStack_32);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_456;
L_456 = TextProcessingStack_1_Remove_mCEB203288B57A916CE3C9482E239BF59D7A3BBBE(L_455, TextProcessingStack_1_Remove_mCEB203288B57A916CE3C9482E239BF59D7A3BBBE_RuntimeMethod_var);
__this->___m_UnderlineColor_29 = L_456;
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_457 = (&__this->___m_FontStyleStack_20);
uint8_t L_458;
L_458 = FontStyleStack_Remove_mC2B4F44A6596E92D6992DBCA298648F8A7416CAB(L_457, 4, NULL);
V_60 = (bool)((((int32_t)L_458) == ((int32_t)0))? 1 : 0);
bool L_459 = V_60;
if (!L_459)
{
goto IL_10b6;
}
}
{
int32_t L_460 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_460&((int32_t)-5)));
}
IL_10b6:
{
}
IL_10b7:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_10bf:
{
int32_t L_461 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_461|((int32_t)512)));
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_462 = (&__this->___m_FontStyleStack_20);
uint8_t L_463;
L_463 = FontStyleStack_Add_m26E701C9F052EEEBB213B9B8BC6CB8F1F8F6AFCB(L_462, ((int32_t)512), NULL);
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_464 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_465 = __this->___m_XmlAttribute_91;
NullCheck(L_465);
int32_t L_466 = ((L_465)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_467 = __this->___m_XmlAttribute_91;
NullCheck(L_467);
int32_t L_468 = ((L_467)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_469;
L_469 = TextGeneratorUtilities_HexCharsToColor_m0FC6E21EF35547ADFEA41B876C6FC1CD37C71019(L_464, L_466, L_468, NULL);
__this->___m_HighlightColor_76 = L_469;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_470 = (&__this->___m_HighlightColor_76);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_471 = (&__this->___m_HtmlColor_28);
uint8_t L_472 = L_471->___a_4;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_473 = (&__this->___m_HighlightColor_76);
uint8_t L_474 = L_473->___a_4;
G_B316_0 = L_470;
if ((((int32_t)L_472) < ((int32_t)L_474)))
{
G_B317_0 = L_470;
goto IL_1140;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_475 = (&__this->___m_HighlightColor_76);
uint8_t L_476 = L_475->___a_4;
G_B318_0 = L_476;
G_B318_1 = G_B316_0;
goto IL_114b;
}
IL_1140:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_477 = (&__this->___m_HtmlColor_28);
uint8_t L_478 = L_477->___a_4;
G_B318_0 = L_478;
G_B318_1 = G_B317_0;
}
IL_114b:
{
G_B318_1->___a_4 = G_B318_0;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_479 = (&__this->___m_HighlightColorStack_34);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_480 = __this->___m_HighlightColor_76;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_479, L_480, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_116a:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_481 = ___generationSettings3;
NullCheck(L_481);
int32_t L_482 = L_481->___fontStyle_8;
V_61 = (bool)((((int32_t)((((int32_t)((int32_t)((int32_t)L_482&((int32_t)512)))) == ((int32_t)((int32_t)512)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_483 = V_61;
if (!L_483)
{
goto IL_11c5;
}
}
{
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_484 = (&__this->___m_HighlightColorStack_34);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_485;
L_485 = TextProcessingStack_1_Remove_mCEB203288B57A916CE3C9482E239BF59D7A3BBBE(L_484, TextProcessingStack_1_Remove_mCEB203288B57A916CE3C9482E239BF59D7A3BBBE_RuntimeMethod_var);
__this->___m_HighlightColor_76 = L_485;
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_486 = (&__this->___m_FontStyleStack_20);
uint8_t L_487;
L_487 = FontStyleStack_Remove_mC2B4F44A6596E92D6992DBCA298648F8A7416CAB(L_486, ((int32_t)512), NULL);
V_62 = (bool)((((int32_t)L_487) == ((int32_t)0))? 1 : 0);
bool L_488 = V_62;
if (!L_488)
{
goto IL_11c4;
}
}
{
int32_t L_489 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_489&((int32_t)-513)));
}
IL_11c4:
{
}
IL_11c5:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_11cd:
{
float L_490 = __this->___m_FontScaleMultiplier_16;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_491 = __this->___m_CurrentFontAsset_7;
NullCheck(L_491);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_492;
L_492 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_491, NULL);
V_63 = L_492;
float L_493;
L_493 = FaceInfo_get_subscriptSize_mF6264BFB215FDE6C94A45D2F8FC946ADFCDD2E31((&V_63), NULL);
G_B325_0 = L_490;
G_B325_1 = __this;
if ((((float)L_493) > ((float)(0.0f))))
{
G_B326_0 = L_490;
G_B326_1 = __this;
goto IL_11f6;
}
}
{
G_B327_0 = (1.0f);
G_B327_1 = G_B325_0;
G_B327_2 = G_B325_1;
goto IL_120a;
}
IL_11f6:
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_494 = __this->___m_CurrentFontAsset_7;
NullCheck(L_494);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_495;
L_495 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_494, NULL);
V_63 = L_495;
float L_496;
L_496 = FaceInfo_get_subscriptSize_mF6264BFB215FDE6C94A45D2F8FC946ADFCDD2E31((&V_63), NULL);
G_B327_0 = L_496;
G_B327_1 = G_B326_0;
G_B327_2 = G_B326_1;
}
IL_120a:
{
NullCheck(G_B327_2);
G_B327_2->___m_FontScaleMultiplier_16 = ((float)il2cpp_codegen_multiply(G_B327_1, G_B327_0));
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* L_497 = (&__this->___m_BaselineOffsetStack_26);
float L_498 = __this->___m_BaselineOffset_25;
TextProcessingStack_1_Push_mBF18A764F6D1996DD6E7D2F217EB86BA84FD6A93(L_497, L_498, TextProcessingStack_1_Push_mBF18A764F6D1996DD6E7D2F217EB86BA84FD6A93_RuntimeMethod_var);
float L_499 = __this->___m_BaselineOffset_25;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_500 = __this->___m_CurrentFontAsset_7;
NullCheck(L_500);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_501;
L_501 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_500, NULL);
V_63 = L_501;
float L_502;
L_502 = FaceInfo_get_subscriptOffset_mF1D3E68AC3D449CBC73AA0CBF5B8A187C6C5285A((&V_63), NULL);
float L_503 = __this->___m_FontScale_14;
float L_504 = __this->___m_FontScaleMultiplier_16;
__this->___m_BaselineOffset_25 = ((float)il2cpp_codegen_add(L_499, ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_multiply(L_502, L_503)), L_504))));
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_505 = (&__this->___m_FontStyleStack_20);
uint8_t L_506;
L_506 = FontStyleStack_Add_m26E701C9F052EEEBB213B9B8BC6CB8F1F8F6AFCB(L_505, ((int32_t)256), NULL);
int32_t L_507 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_507|((int32_t)256)));
V_28 = (bool)1;
goto IL_384a;
}
IL_127c:
{
int32_t L_508 = __this->___m_FontStyleInternal_19;
V_64 = (bool)((((int32_t)((int32_t)((int32_t)L_508&((int32_t)256)))) == ((int32_t)((int32_t)256)))? 1 : 0);
bool L_509 = V_64;
if (!L_509)
{
goto IL_132e;
}
}
{
float L_510 = __this->___m_FontScaleMultiplier_16;
V_65 = (bool)((((float)L_510) < ((float)(1.0f)))? 1 : 0);
bool L_511 = V_65;
if (!L_511)
{
goto IL_1302;
}
}
{
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* L_512 = (&__this->___m_BaselineOffsetStack_26);
float L_513;
L_513 = TextProcessingStack_1_Pop_m58499B721ABBBCFDF676B5EFA85F77B8B019128A(L_512, TextProcessingStack_1_Pop_m58499B721ABBBCFDF676B5EFA85F77B8B019128A_RuntimeMethod_var);
__this->___m_BaselineOffset_25 = L_513;
float L_514 = __this->___m_FontScaleMultiplier_16;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_515 = __this->___m_CurrentFontAsset_7;
NullCheck(L_515);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_516;
L_516 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_515, NULL);
V_63 = L_516;
float L_517;
L_517 = FaceInfo_get_subscriptSize_mF6264BFB215FDE6C94A45D2F8FC946ADFCDD2E31((&V_63), NULL);
G_B331_0 = L_514;
G_B331_1 = __this;
if ((((float)L_517) > ((float)(0.0f))))
{
G_B332_0 = L_514;
G_B332_1 = __this;
goto IL_12e7;
}
}
{
G_B333_0 = (1.0f);
G_B333_1 = G_B331_0;
G_B333_2 = G_B331_1;
goto IL_12fb;
}
IL_12e7:
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_518 = __this->___m_CurrentFontAsset_7;
NullCheck(L_518);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_519;
L_519 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_518, NULL);
V_63 = L_519;
float L_520;
L_520 = FaceInfo_get_subscriptSize_mF6264BFB215FDE6C94A45D2F8FC946ADFCDD2E31((&V_63), NULL);
G_B333_0 = L_520;
G_B333_1 = G_B332_0;
G_B333_2 = G_B332_1;
}
IL_12fb:
{
NullCheck(G_B333_2);
G_B333_2->___m_FontScaleMultiplier_16 = ((float)(G_B333_1/G_B333_0));
}
IL_1302:
{
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_521 = (&__this->___m_FontStyleStack_20);
uint8_t L_522;
L_522 = FontStyleStack_Remove_mC2B4F44A6596E92D6992DBCA298648F8A7416CAB(L_521, ((int32_t)256), NULL);
V_66 = (bool)((((int32_t)L_522) == ((int32_t)0))? 1 : 0);
bool L_523 = V_66;
if (!L_523)
{
goto IL_132d;
}
}
{
int32_t L_524 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_524&((int32_t)-257)));
}
IL_132d:
{
}
IL_132e:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_1336:
{
float L_525 = __this->___m_FontScaleMultiplier_16;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_526 = __this->___m_CurrentFontAsset_7;
NullCheck(L_526);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_527;
L_527 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_526, NULL);
V_63 = L_527;
float L_528;
L_528 = FaceInfo_get_superscriptSize_mC3ABE7C70559A8214294CDA598B17FD62BDC2EE0((&V_63), NULL);
G_B339_0 = L_525;
G_B339_1 = __this;
if ((((float)L_528) > ((float)(0.0f))))
{
G_B340_0 = L_525;
G_B340_1 = __this;
goto IL_135f;
}
}
{
G_B341_0 = (1.0f);
G_B341_1 = G_B339_0;
G_B341_2 = G_B339_1;
goto IL_1373;
}
IL_135f:
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_529 = __this->___m_CurrentFontAsset_7;
NullCheck(L_529);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_530;
L_530 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_529, NULL);
V_63 = L_530;
float L_531;
L_531 = FaceInfo_get_superscriptSize_mC3ABE7C70559A8214294CDA598B17FD62BDC2EE0((&V_63), NULL);
G_B341_0 = L_531;
G_B341_1 = G_B340_0;
G_B341_2 = G_B340_1;
}
IL_1373:
{
NullCheck(G_B341_2);
G_B341_2->___m_FontScaleMultiplier_16 = ((float)il2cpp_codegen_multiply(G_B341_1, G_B341_0));
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* L_532 = (&__this->___m_BaselineOffsetStack_26);
float L_533 = __this->___m_BaselineOffset_25;
TextProcessingStack_1_Push_mBF18A764F6D1996DD6E7D2F217EB86BA84FD6A93(L_532, L_533, TextProcessingStack_1_Push_mBF18A764F6D1996DD6E7D2F217EB86BA84FD6A93_RuntimeMethod_var);
float L_534 = __this->___m_BaselineOffset_25;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_535 = __this->___m_CurrentFontAsset_7;
NullCheck(L_535);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_536;
L_536 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_535, NULL);
V_63 = L_536;
float L_537;
L_537 = FaceInfo_get_superscriptOffset_m8D462DB86414D8507C7D1CC6881DA9EC896FB80A((&V_63), NULL);
float L_538 = __this->___m_FontScale_14;
float L_539 = __this->___m_FontScaleMultiplier_16;
__this->___m_BaselineOffset_25 = ((float)il2cpp_codegen_add(L_534, ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_multiply(L_537, L_538)), L_539))));
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_540 = (&__this->___m_FontStyleStack_20);
uint8_t L_541;
L_541 = FontStyleStack_Add_m26E701C9F052EEEBB213B9B8BC6CB8F1F8F6AFCB(L_540, ((int32_t)128), NULL);
int32_t L_542 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_542|((int32_t)128)));
V_28 = (bool)1;
goto IL_384a;
}
IL_13e5:
{
int32_t L_543 = __this->___m_FontStyleInternal_19;
V_67 = (bool)((((int32_t)((int32_t)((int32_t)L_543&((int32_t)128)))) == ((int32_t)((int32_t)128)))? 1 : 0);
bool L_544 = V_67;
if (!L_544)
{
goto IL_1497;
}
}
{
float L_545 = __this->___m_FontScaleMultiplier_16;
V_68 = (bool)((((float)L_545) < ((float)(1.0f)))? 1 : 0);
bool L_546 = V_68;
if (!L_546)
{
goto IL_146b;
}
}
{
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* L_547 = (&__this->___m_BaselineOffsetStack_26);
float L_548;
L_548 = TextProcessingStack_1_Pop_m58499B721ABBBCFDF676B5EFA85F77B8B019128A(L_547, TextProcessingStack_1_Pop_m58499B721ABBBCFDF676B5EFA85F77B8B019128A_RuntimeMethod_var);
__this->___m_BaselineOffset_25 = L_548;
float L_549 = __this->___m_FontScaleMultiplier_16;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_550 = __this->___m_CurrentFontAsset_7;
NullCheck(L_550);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_551;
L_551 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_550, NULL);
V_63 = L_551;
float L_552;
L_552 = FaceInfo_get_superscriptSize_mC3ABE7C70559A8214294CDA598B17FD62BDC2EE0((&V_63), NULL);
G_B345_0 = L_549;
G_B345_1 = __this;
if ((((float)L_552) > ((float)(0.0f))))
{
G_B346_0 = L_549;
G_B346_1 = __this;
goto IL_1450;
}
}
{
G_B347_0 = (1.0f);
G_B347_1 = G_B345_0;
G_B347_2 = G_B345_1;
goto IL_1464;
}
IL_1450:
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_553 = __this->___m_CurrentFontAsset_7;
NullCheck(L_553);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_554;
L_554 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_553, NULL);
V_63 = L_554;
float L_555;
L_555 = FaceInfo_get_superscriptSize_mC3ABE7C70559A8214294CDA598B17FD62BDC2EE0((&V_63), NULL);
G_B347_0 = L_555;
G_B347_1 = G_B346_0;
G_B347_2 = G_B346_1;
}
IL_1464:
{
NullCheck(G_B347_2);
G_B347_2->___m_FontScaleMultiplier_16 = ((float)(G_B347_1/G_B347_0));
}
IL_146b:
{
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_556 = (&__this->___m_FontStyleStack_20);
uint8_t L_557;
L_557 = FontStyleStack_Remove_mC2B4F44A6596E92D6992DBCA298648F8A7416CAB(L_556, ((int32_t)128), NULL);
V_69 = (bool)((((int32_t)L_557) == ((int32_t)0))? 1 : 0);
bool L_558 = V_69;
if (!L_558)
{
goto IL_1496;
}
}
{
int32_t L_559 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_559&((int32_t)-129)));
}
IL_1496:
{
}
IL_1497:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_149f:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_560 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_561 = __this->___m_XmlAttribute_91;
NullCheck(L_561);
int32_t L_562 = ((L_561)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_563 = __this->___m_XmlAttribute_91;
NullCheck(L_563);
int32_t L_564 = ((L_563)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_565;
L_565 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_560, L_562, L_564, NULL);
V_39 = L_565;
float L_566 = V_39;
V_71 = il2cpp_codegen_cast_double_to_int<int32_t>(L_566);
int32_t L_567 = V_71;
V_70 = L_567;
int32_t L_568 = V_70;
if ((((int32_t)L_568) > ((int32_t)((int32_t)400))))
{
goto IL_1518;
}
}
{
int32_t L_569 = V_70;
if ((((int32_t)L_569) > ((int32_t)((int32_t)200))))
{
goto IL_14ff;
}
}
{
int32_t L_570 = V_70;
if ((((int32_t)L_570) == ((int32_t)((int32_t)100))))
{
goto IL_155b;
}
}
{
goto IL_14f1;
}
IL_14f1:
{
int32_t L_571 = V_70;
if ((((int32_t)L_571) == ((int32_t)((int32_t)200))))
{
goto IL_1565;
}
}
{
goto IL_15cd;
}
IL_14ff:
{
int32_t L_572 = V_70;
if ((((int32_t)L_572) == ((int32_t)((int32_t)300))))
{
goto IL_1572;
}
}
{
goto IL_150a;
}
IL_150a:
{
int32_t L_573 = V_70;
if ((((int32_t)L_573) == ((int32_t)((int32_t)400))))
{
goto IL_157f;
}
}
{
goto IL_15cd;
}
IL_1518:
{
int32_t L_574 = V_70;
if ((((int32_t)L_574) > ((int32_t)((int32_t)600))))
{
goto IL_153a;
}
}
{
int32_t L_575 = V_70;
if ((((int32_t)L_575) == ((int32_t)((int32_t)500))))
{
goto IL_158c;
}
}
{
goto IL_152c;
}
IL_152c:
{
int32_t L_576 = V_70;
if ((((int32_t)L_576) == ((int32_t)((int32_t)600))))
{
goto IL_1599;
}
}
{
goto IL_15cd;
}
IL_153a:
{
int32_t L_577 = V_70;
if ((((int32_t)L_577) == ((int32_t)((int32_t)700))))
{
goto IL_15a6;
}
}
{
goto IL_1545;
}
IL_1545:
{
int32_t L_578 = V_70;
if ((((int32_t)L_578) == ((int32_t)((int32_t)800))))
{
goto IL_15b3;
}
}
{
goto IL_1550;
}
IL_1550:
{
int32_t L_579 = V_70;
if ((((int32_t)L_579) == ((int32_t)((int32_t)900))))
{
goto IL_15c0;
}
}
{
goto IL_15cd;
}
IL_155b:
{
__this->___m_FontWeightInternal_21 = ((int32_t)100);
goto IL_15cd;
}
IL_1565:
{
__this->___m_FontWeightInternal_21 = ((int32_t)200);
goto IL_15cd;
}
IL_1572:
{
__this->___m_FontWeightInternal_21 = ((int32_t)300);
goto IL_15cd;
}
IL_157f:
{
__this->___m_FontWeightInternal_21 = ((int32_t)400);
goto IL_15cd;
}
IL_158c:
{
__this->___m_FontWeightInternal_21 = ((int32_t)500);
goto IL_15cd;
}
IL_1599:
{
__this->___m_FontWeightInternal_21 = ((int32_t)600);
goto IL_15cd;
}
IL_15a6:
{
__this->___m_FontWeightInternal_21 = ((int32_t)700);
goto IL_15cd;
}
IL_15b3:
{
__this->___m_FontWeightInternal_21 = ((int32_t)800);
goto IL_15cd;
}
IL_15c0:
{
__this->___m_FontWeightInternal_21 = ((int32_t)900);
goto IL_15cd;
}
IL_15cd:
{
TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790* L_580 = (&__this->___m_FontWeightStack_22);
int32_t L_581 = __this->___m_FontWeightInternal_21;
TextProcessingStack_1_Add_m15B10B664846D4F52E8FE84908D9B4196C697CF2(L_580, L_581, TextProcessingStack_1_Add_m15B10B664846D4F52E8FE84908D9B4196C697CF2_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_15e7:
{
TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790* L_582 = (&__this->___m_FontWeightStack_22);
int32_t L_583;
L_583 = TextProcessingStack_1_Remove_mFC7EB20F1D31BC8E84C07AAABD63626EAB1424BE(L_582, TextProcessingStack_1_Remove_mFC7EB20F1D31BC8E84C07AAABD63626EAB1424BE_RuntimeMethod_var);
int32_t L_584 = __this->___m_FontStyleInternal_19;
V_72 = (bool)((((int32_t)L_584) == ((int32_t)1))? 1 : 0);
bool L_585 = V_72;
if (!L_585)
{
goto IL_160f;
}
}
{
__this->___m_FontWeightInternal_21 = ((int32_t)700);
goto IL_1620;
}
IL_160f:
{
TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790* L_586 = (&__this->___m_FontWeightStack_22);
int32_t L_587;
L_587 = TextProcessingStack_1_Peek_mE06D9422EAE774A3926E6956483EB39E6425D2E0(L_586, TextProcessingStack_1_Peek_mE06D9422EAE774A3926E6956483EB39E6425D2E0_RuntimeMethod_var);
__this->___m_FontWeightInternal_21 = L_587;
}
IL_1620:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_1628:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_588 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_589 = __this->___m_XmlAttribute_91;
NullCheck(L_589);
int32_t L_590 = ((L_589)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_591 = __this->___m_XmlAttribute_91;
NullCheck(L_591);
int32_t L_592 = ((L_591)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_593;
L_593 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_588, L_590, L_592, NULL);
V_39 = L_593;
float L_594 = V_39;
V_73 = (bool)((((float)L_594) == ((float)(-32767.0f)))? 1 : 0);
bool L_595 = V_73;
if (!L_595)
{
goto IL_166e;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_166e:
{
int32_t L_596 = V_3;
V_75 = L_596;
int32_t L_597 = V_75;
V_74 = L_597;
int32_t L_598 = V_74;
switch (L_598)
{
case 0:
{
goto IL_168a;
}
case 1:
{
goto IL_169a;
}
case 2:
{
goto IL_16d5;
}
}
}
{
goto IL_16f2;
}
IL_168a:
{
float L_599 = V_39;
__this->___m_XAdvance_43 = L_599;
V_28 = (bool)1;
goto IL_384a;
}
IL_169a:
{
float L_600 = V_39;
float L_601 = __this->___m_FontScale_14;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_602 = ___generationSettings3;
NullCheck(L_602);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_603 = L_602->___fontAsset_4;
NullCheck(L_603);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_604;
L_604 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_603, NULL);
V_63 = L_604;
float L_605;
L_605 = FaceInfo_get_tabWidth_mC6D9F42C40EDD767DE22050E4FBE3878AC96B161((&V_63), NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_606 = ___generationSettings3;
NullCheck(L_606);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_607 = L_606->___fontAsset_4;
NullCheck(L_607);
uint8_t L_608;
L_608 = FontAsset_get_tabMultiple_m9C0422A00BFCF82091F14F4E303E2717247350AE(L_607, NULL);
__this->___m_XAdvance_43 = ((float)(((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_multiply(L_600, L_601)), L_605))/((float)L_608)));
V_28 = (bool)1;
goto IL_384a;
}
IL_16d5:
{
float L_609 = __this->___m_MarginWidth_2;
float L_610 = V_39;
__this->___m_XAdvance_43 = ((float)(((float)il2cpp_codegen_multiply(L_609, L_610))/(100.0f)));
V_28 = (bool)1;
goto IL_384a;
}
IL_16f2:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_16fa:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_1702:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_611 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_612 = __this->___m_XmlAttribute_91;
NullCheck(L_612);
int32_t L_613 = ((L_612)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_614 = __this->___m_XmlAttribute_91;
NullCheck(L_614);
int32_t L_615 = ((L_614)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_616;
L_616 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_611, L_613, L_615, NULL);
V_39 = L_616;
float L_617 = V_39;
V_76 = (bool)((((float)L_617) == ((float)(-32767.0f)))? 1 : 0);
bool L_618 = V_76;
if (!L_618)
{
goto IL_1748;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_1748:
{
int32_t L_619 = V_3;
V_78 = L_619;
int32_t L_620 = V_78;
V_77 = L_620;
int32_t L_621 = V_77;
switch (L_621)
{
case 0:
{
goto IL_1764;
}
case 1:
{
goto IL_1774;
}
case 2:
{
goto IL_17a1;
}
}
}
{
goto IL_17a9;
}
IL_1764:
{
float L_622 = V_39;
__this->___m_BaselineOffset_25 = L_622;
V_28 = (bool)1;
goto IL_384a;
}
IL_1774:
{
float L_623 = V_39;
float L_624 = __this->___m_FontScale_14;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_625 = ___generationSettings3;
NullCheck(L_625);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_626 = L_625->___fontAsset_4;
NullCheck(L_626);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_627;
L_627 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_626, NULL);
V_63 = L_627;
float L_628;
L_628 = FaceInfo_get_ascentLine_m193755D649428EC24A7E433A1728F11DA7547ABD((&V_63), NULL);
__this->___m_BaselineOffset_25 = ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_multiply(L_623, L_624)), L_628));
V_28 = (bool)1;
goto IL_384a;
}
IL_17a1:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_17a9:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_17b1:
{
__this->___m_BaselineOffset_25 = (0.0f);
V_28 = (bool)1;
goto IL_384a;
}
IL_17c4:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_629 = ___generationSettings3;
NullCheck(L_629);
int32_t L_630 = L_629->___overflowMode_11;
V_79 = (bool)((((int32_t)L_630) == ((int32_t)5))? 1 : 0);
bool L_631 = V_79;
if (!L_631)
{
goto IL_180f;
}
}
{
float L_632 = __this->___m_TagLineIndent_44;
float L_633 = __this->___m_TagIndent_45;
__this->___m_XAdvance_43 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_add((0.0f), L_632)), L_633));
__this->___m_LineOffset_39 = (0.0f);
int32_t L_634 = __this->___m_PageNumber_58;
__this->___m_PageNumber_58 = ((int32_t)il2cpp_codegen_add(L_634, 1));
__this->___m_IsNewPage_66 = (bool)1;
}
IL_180f:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_1817:
{
__this->___m_IsNonBreakingSpace_67 = (bool)1;
V_28 = (bool)1;
goto IL_384a;
}
IL_1826:
{
__this->___m_IsNonBreakingSpace_67 = (bool)0;
V_28 = (bool)1;
goto IL_384a;
}
IL_1835:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_635 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_636 = __this->___m_XmlAttribute_91;
NullCheck(L_636);
int32_t L_637 = ((L_636)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_638 = __this->___m_XmlAttribute_91;
NullCheck(L_638);
int32_t L_639 = ((L_638)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_640;
L_640 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_635, L_637, L_639, NULL);
V_39 = L_640;
float L_641 = V_39;
V_80 = (bool)((((float)L_641) == ((float)(-32767.0f)))? 1 : 0);
bool L_642 = V_80;
if (!L_642)
{
goto IL_187b;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_187b:
{
int32_t L_643 = V_3;
V_82 = L_643;
int32_t L_644 = V_82;
V_81 = L_644;
int32_t L_645 = V_81;
switch (L_645)
{
case 0:
{
goto IL_189a;
}
case 1:
{
goto IL_19da;
}
case 2:
{
goto IL_1a3a;
}
}
}
{
goto IL_1aa0;
}
IL_189a:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_646 = __this->___m_RichTextTag_92;
NullCheck(L_646);
int32_t L_647 = 5;
uint16_t L_648 = (uint16_t)(L_646)->GetAt(static_cast<il2cpp_array_size_t>(L_647));
V_83 = (bool)((((int32_t)L_648) == ((int32_t)((int32_t)43)))? 1 : 0);
bool L_649 = V_83;
if (!L_649)
{
goto IL_190d;
}
}
{
float L_650 = __this->___m_FontSize_15;
float L_651 = V_39;
__this->___m_CurrentFontSize_17 = ((float)il2cpp_codegen_add(L_650, L_651));
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* L_652 = (&__this->___m_SizeStack_18);
float L_653 = __this->___m_CurrentFontSize_17;
TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042(L_652, L_653, TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042_RuntimeMethod_var);
float L_654 = __this->___m_CurrentFontSize_17;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_655 = __this->___m_CurrentFontAsset_7;
NullCheck(L_655);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_656;
L_656 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_655, NULL);
V_63 = L_656;
int32_t L_657;
L_657 = FaceInfo_get_pointSize_m7EF7429A4725AB715931A220F6BB498C3D6BF7CB((&V_63), NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_658 = __this->___m_CurrentFontAsset_7;
NullCheck(L_658);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_659;
L_659 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_658, NULL);
V_63 = L_659;
float L_660;
L_660 = FaceInfo_get_scale_mC475A572AD4956B47D8B9F8D90DC69BBBB102FCD((&V_63), NULL);
__this->___m_FontScale_14 = ((float)il2cpp_codegen_multiply(((float)(L_654/((float)L_657))), L_660));
V_28 = (bool)1;
goto IL_384a;
}
IL_190d:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_661 = __this->___m_RichTextTag_92;
NullCheck(L_661);
int32_t L_662 = 5;
uint16_t L_663 = (uint16_t)(L_661)->GetAt(static_cast<il2cpp_array_size_t>(L_662));
V_84 = (bool)((((int32_t)L_663) == ((int32_t)((int32_t)45)))? 1 : 0);
bool L_664 = V_84;
if (!L_664)
{
goto IL_1980;
}
}
{
float L_665 = __this->___m_FontSize_15;
float L_666 = V_39;
__this->___m_CurrentFontSize_17 = ((float)il2cpp_codegen_add(L_665, L_666));
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* L_667 = (&__this->___m_SizeStack_18);
float L_668 = __this->___m_CurrentFontSize_17;
TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042(L_667, L_668, TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042_RuntimeMethod_var);
float L_669 = __this->___m_CurrentFontSize_17;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_670 = __this->___m_CurrentFontAsset_7;
NullCheck(L_670);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_671;
L_671 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_670, NULL);
V_63 = L_671;
int32_t L_672;
L_672 = FaceInfo_get_pointSize_m7EF7429A4725AB715931A220F6BB498C3D6BF7CB((&V_63), NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_673 = __this->___m_CurrentFontAsset_7;
NullCheck(L_673);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_674;
L_674 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_673, NULL);
V_63 = L_674;
float L_675;
L_675 = FaceInfo_get_scale_mC475A572AD4956B47D8B9F8D90DC69BBBB102FCD((&V_63), NULL);
__this->___m_FontScale_14 = ((float)il2cpp_codegen_multiply(((float)(L_669/((float)L_672))), L_675));
V_28 = (bool)1;
goto IL_384a;
}
IL_1980:
{
float L_676 = V_39;
__this->___m_CurrentFontSize_17 = L_676;
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* L_677 = (&__this->___m_SizeStack_18);
float L_678 = __this->___m_CurrentFontSize_17;
TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042(L_677, L_678, TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042_RuntimeMethod_var);
float L_679 = __this->___m_CurrentFontSize_17;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_680 = __this->___m_CurrentFontAsset_7;
NullCheck(L_680);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_681;
L_681 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_680, NULL);
V_63 = L_681;
int32_t L_682;
L_682 = FaceInfo_get_pointSize_m7EF7429A4725AB715931A220F6BB498C3D6BF7CB((&V_63), NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_683 = __this->___m_CurrentFontAsset_7;
NullCheck(L_683);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_684;
L_684 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_683, NULL);
V_63 = L_684;
float L_685;
L_685 = FaceInfo_get_scale_mC475A572AD4956B47D8B9F8D90DC69BBBB102FCD((&V_63), NULL);
__this->___m_FontScale_14 = ((float)il2cpp_codegen_multiply(((float)(L_679/((float)L_682))), L_685));
V_28 = (bool)1;
goto IL_384a;
}
IL_19da:
{
float L_686 = __this->___m_FontSize_15;
float L_687 = V_39;
__this->___m_CurrentFontSize_17 = ((float)il2cpp_codegen_multiply(L_686, L_687));
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* L_688 = (&__this->___m_SizeStack_18);
float L_689 = __this->___m_CurrentFontSize_17;
TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042(L_688, L_689, TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042_RuntimeMethod_var);
float L_690 = __this->___m_CurrentFontSize_17;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_691 = __this->___m_CurrentFontAsset_7;
NullCheck(L_691);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_692;
L_692 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_691, NULL);
V_63 = L_692;
int32_t L_693;
L_693 = FaceInfo_get_pointSize_m7EF7429A4725AB715931A220F6BB498C3D6BF7CB((&V_63), NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_694 = __this->___m_CurrentFontAsset_7;
NullCheck(L_694);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_695;
L_695 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_694, NULL);
V_63 = L_695;
float L_696;
L_696 = FaceInfo_get_scale_mC475A572AD4956B47D8B9F8D90DC69BBBB102FCD((&V_63), NULL);
__this->___m_FontScale_14 = ((float)il2cpp_codegen_multiply(((float)(L_690/((float)L_693))), L_696));
V_28 = (bool)1;
goto IL_384a;
}
IL_1a3a:
{
float L_697 = __this->___m_FontSize_15;
float L_698 = V_39;
__this->___m_CurrentFontSize_17 = ((float)(((float)il2cpp_codegen_multiply(L_697, L_698))/(100.0f)));
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* L_699 = (&__this->___m_SizeStack_18);
float L_700 = __this->___m_CurrentFontSize_17;
TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042(L_699, L_700, TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042_RuntimeMethod_var);
float L_701 = __this->___m_CurrentFontSize_17;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_702 = __this->___m_CurrentFontAsset_7;
NullCheck(L_702);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_703;
L_703 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_702, NULL);
V_63 = L_703;
int32_t L_704;
L_704 = FaceInfo_get_pointSize_m7EF7429A4725AB715931A220F6BB498C3D6BF7CB((&V_63), NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_705 = __this->___m_CurrentFontAsset_7;
NullCheck(L_705);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_706;
L_706 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_705, NULL);
V_63 = L_706;
float L_707;
L_707 = FaceInfo_get_scale_mC475A572AD4956B47D8B9F8D90DC69BBBB102FCD((&V_63), NULL);
__this->___m_FontScale_14 = ((float)il2cpp_codegen_multiply(((float)(L_701/((float)L_704))), L_707));
V_28 = (bool)1;
goto IL_384a;
}
IL_1aa0:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_1aa8:
{
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* L_708 = (&__this->___m_SizeStack_18);
float L_709;
L_709 = TextProcessingStack_1_Remove_m36486DFF2D5026596CFFED89F554CA9F296FBD6E(L_708, TextProcessingStack_1_Remove_m36486DFF2D5026596CFFED89F554CA9F296FBD6E_RuntimeMethod_var);
__this->___m_CurrentFontSize_17 = L_709;
float L_710 = __this->___m_CurrentFontSize_17;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_711 = __this->___m_CurrentFontAsset_7;
NullCheck(L_711);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_712;
L_712 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_711, NULL);
V_63 = L_712;
int32_t L_713;
L_713 = FaceInfo_get_pointSize_m7EF7429A4725AB715931A220F6BB498C3D6BF7CB((&V_63), NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_714 = __this->___m_CurrentFontAsset_7;
NullCheck(L_714);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_715;
L_715 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_714, NULL);
V_63 = L_715;
float L_716;
L_716 = FaceInfo_get_scale_mC475A572AD4956B47D8B9F8D90DC69BBBB102FCD((&V_63), NULL);
__this->___m_FontScale_14 = ((float)il2cpp_codegen_multiply(((float)(L_710/((float)L_713))), L_716));
V_28 = (bool)1;
goto IL_384a;
}
IL_1af8:
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_717 = __this->___m_XmlAttribute_91;
NullCheck(L_717);
int32_t L_718 = ((L_717)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueHashCode_4;
V_40 = L_718;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_719 = __this->___m_XmlAttribute_91;
NullCheck(L_719);
int32_t L_720 = ((L_719)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->___nameHashCode_0;
V_41 = L_720;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_721 = __this->___m_XmlAttribute_91;
NullCheck(L_721);
int32_t L_722 = ((L_721)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->___valueHashCode_4;
V_42 = L_722;
int32_t L_723 = V_40;
V_85 = (bool)((((int32_t)L_723) == ((int32_t)((int32_t)-620974005)))? 1 : 0);
bool L_724 = V_85;
if (!L_724)
{
goto IL_1bd0;
}
}
{
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_725 = __this->___m_MaterialReferences_85;
NullCheck(L_725);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_726 = ((L_725)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___fontAsset_1;
__this->___m_CurrentFontAsset_7 = L_726;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentFontAsset_7), (void*)L_726);
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_727 = __this->___m_MaterialReferences_85;
NullCheck(L_727);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_728 = ((L_727)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___material_3;
__this->___m_CurrentMaterial_8 = L_728;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_728);
__this->___m_CurrentMaterialIndex_9 = 0;
float L_729 = __this->___m_CurrentFontSize_17;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_730 = __this->___m_CurrentFontAsset_7;
NullCheck(L_730);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_731;
L_731 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_730, NULL);
V_63 = L_731;
int32_t L_732;
L_732 = FaceInfo_get_pointSize_m7EF7429A4725AB715931A220F6BB498C3D6BF7CB((&V_63), NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_733 = __this->___m_CurrentFontAsset_7;
NullCheck(L_733);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_734;
L_734 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_733, NULL);
V_63 = L_734;
float L_735;
L_735 = FaceInfo_get_scale_mC475A572AD4956B47D8B9F8D90DC69BBBB102FCD((&V_63), NULL);
__this->___m_FontScale_14 = ((float)il2cpp_codegen_multiply(((float)(L_729/((float)L_732))), L_735));
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* L_736 = (&__this->___m_MaterialReferenceStack_10);
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_737 = __this->___m_MaterialReferences_85;
NullCheck(L_737);
int32_t L_738 = 0;
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_739 = (L_737)->GetAt(static_cast<il2cpp_array_size_t>(L_738));
TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731(L_736, L_739, TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_1bd0:
{
int32_t L_740 = V_40;
bool L_741;
L_741 = MaterialReferenceManager_TryGetFontAsset_m81063D8799AF27566284930B3D3656A3022A1113(L_740, (&V_43), NULL);
V_86 = (bool)((((int32_t)L_741) == ((int32_t)0))? 1 : 0);
bool L_742 = V_86;
if (!L_742)
{
goto IL_1c41;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_743 = V_0;
NullCheck(L_743);
String_t* L_744;
L_744 = TextSettings_get_defaultFontAssetPath_mF7B1713753CFAE048C745C3572332CE18CD51D3B_inline(L_743, NULL);
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_745 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_746 = __this->___m_XmlAttribute_91;
NullCheck(L_746);
int32_t L_747 = ((L_746)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_748 = __this->___m_XmlAttribute_91;
NullCheck(L_748);
int32_t L_749 = ((L_748)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
String_t* L_750;
L_750 = String_CreateString_mB7B3AC2AF28010538650051A9000369B1CD6BAB6(NULL, L_745, L_747, L_749, NULL);
String_t* L_751;
L_751 = String_Concat_mAF2CE02CC0CB7460753D0A1A91CCF2B1E9804C5D(L_744, L_750, NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_752;
L_752 = Resources_Load_TisFontAsset_t61A6446D934E582651044E33D250EA8D306AB958_mCA232125ECB8FA8B7AF234B15733CEC79EF821C6(L_751, Resources_Load_TisFontAsset_t61A6446D934E582651044E33D250EA8D306AB958_mCA232125ECB8FA8B7AF234B15733CEC79EF821C6_RuntimeMethod_var);
V_43 = L_752;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_753 = V_43;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_754;
L_754 = Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536(L_753, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_87 = L_754;
bool L_755 = V_87;
if (!L_755)
{
goto IL_1c38;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_1c38:
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_756 = V_43;
MaterialReferenceManager_AddFontAsset_m52CD48B3A314C766C40A0D5BAAA092FFD2F6A204(L_756, NULL);
}
IL_1c41:
{
int32_t L_757 = V_41;
if (L_757)
{
goto IL_1c4c;
}
}
{
int32_t L_758 = V_42;
G_B432_0 = ((((int32_t)L_758) == ((int32_t)0))? 1 : 0);
goto IL_1c4d;
}
IL_1c4c:
{
G_B432_0 = 0;
}
IL_1c4d:
{
V_88 = (bool)G_B432_0;
bool L_759 = V_88;
if (!L_759)
{
goto IL_1ca3;
}
}
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_760 = V_43;
NullCheck(L_760);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_761;
L_761 = TextAsset_get_material_m4B9C02D34426436FDB01F1963A9FDC11D75604EF_inline(L_760, NULL);
__this->___m_CurrentMaterial_8 = L_761;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_761);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_762 = __this->___m_CurrentMaterial_8;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_763 = V_43;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E** L_764 = (&__this->___m_MaterialReferences_85);
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* L_765 = __this->___m_MaterialReferenceIndexLookup_93;
int32_t L_766;
L_766 = MaterialReference_AddMaterialReference_m6C0963F5E7C06B0371F2B18FE177D55B6C4C1105(L_762, L_763, L_764, L_765, NULL);
__this->___m_CurrentMaterialIndex_9 = L_766;
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* L_767 = (&__this->___m_MaterialReferenceStack_10);
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_768 = __this->___m_MaterialReferences_85;
int32_t L_769 = __this->___m_CurrentMaterialIndex_9;
NullCheck(L_768);
int32_t L_770 = L_769;
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_771 = (L_768)->GetAt(static_cast<il2cpp_array_size_t>(L_770));
TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731(L_767, L_771, TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731_RuntimeMethod_var);
goto IL_1dc2;
}
IL_1ca3:
{
int32_t L_772 = V_41;
V_89 = (bool)((((int64_t)((int64_t)L_772)) == ((int64_t)((int64_t)((int32_t)825491659))))? 1 : 0);
bool L_773 = V_89;
if (!L_773)
{
goto IL_1dba;
}
}
{
int32_t L_774 = V_42;
bool L_775;
L_775 = MaterialReferenceManager_TryGetMaterial_m54A7E79A8D506AB95FED10236597C60C9F4CC8C1(L_774, (&V_44), NULL);
V_90 = L_775;
bool L_776 = V_90;
if (!L_776)
{
goto IL_1d12;
}
}
{
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_777 = V_44;
__this->___m_CurrentMaterial_8 = L_777;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_777);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_778 = __this->___m_CurrentMaterial_8;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_779 = V_43;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E** L_780 = (&__this->___m_MaterialReferences_85);
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* L_781 = __this->___m_MaterialReferenceIndexLookup_93;
int32_t L_782;
L_782 = MaterialReference_AddMaterialReference_m6C0963F5E7C06B0371F2B18FE177D55B6C4C1105(L_778, L_779, L_780, L_781, NULL);
__this->___m_CurrentMaterialIndex_9 = L_782;
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* L_783 = (&__this->___m_MaterialReferenceStack_10);
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_784 = __this->___m_MaterialReferences_85;
int32_t L_785 = __this->___m_CurrentMaterialIndex_9;
NullCheck(L_784);
int32_t L_786 = L_785;
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_787 = (L_784)->GetAt(static_cast<il2cpp_array_size_t>(L_786));
TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731(L_783, L_787, TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731_RuntimeMethod_var);
goto IL_1db7;
}
IL_1d12:
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_788 = V_0;
NullCheck(L_788);
String_t* L_789;
L_789 = TextSettings_get_defaultFontAssetPath_mF7B1713753CFAE048C745C3572332CE18CD51D3B_inline(L_788, NULL);
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_790 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_791 = __this->___m_XmlAttribute_91;
NullCheck(L_791);
int32_t L_792 = ((L_791)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_793 = __this->___m_XmlAttribute_91;
NullCheck(L_793);
int32_t L_794 = ((L_793)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->___valueLength_3;
String_t* L_795;
L_795 = String_CreateString_mB7B3AC2AF28010538650051A9000369B1CD6BAB6(NULL, L_790, L_792, L_794, NULL);
String_t* L_796;
L_796 = String_Concat_mAF2CE02CC0CB7460753D0A1A91CCF2B1E9804C5D(L_789, L_795, NULL);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_797;
L_797 = Resources_Load_TisMaterial_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3_m28782CC70624922DAF3B0FB13930E4EB59848128(L_796, Resources_Load_TisMaterial_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3_m28782CC70624922DAF3B0FB13930E4EB59848128_RuntimeMethod_var);
V_44 = L_797;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_798 = V_44;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_799;
L_799 = Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536(L_798, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_91 = L_799;
bool L_800 = V_91;
if (!L_800)
{
goto IL_1d68;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_1d68:
{
int32_t L_801 = V_42;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_802 = V_44;
MaterialReferenceManager_AddFontMaterial_mBE61E1B0E6CBB58695731DC975859E349CA99C8A(L_801, L_802, NULL);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_803 = V_44;
__this->___m_CurrentMaterial_8 = L_803;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_803);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_804 = __this->___m_CurrentMaterial_8;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_805 = V_43;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E** L_806 = (&__this->___m_MaterialReferences_85);
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* L_807 = __this->___m_MaterialReferenceIndexLookup_93;
int32_t L_808;
L_808 = MaterialReference_AddMaterialReference_m6C0963F5E7C06B0371F2B18FE177D55B6C4C1105(L_804, L_805, L_806, L_807, NULL);
__this->___m_CurrentMaterialIndex_9 = L_808;
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* L_809 = (&__this->___m_MaterialReferenceStack_10);
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_810 = __this->___m_MaterialReferences_85;
int32_t L_811 = __this->___m_CurrentMaterialIndex_9;
NullCheck(L_810);
int32_t L_812 = L_811;
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_813 = (L_810)->GetAt(static_cast<il2cpp_array_size_t>(L_812));
TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731(L_809, L_813, TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731_RuntimeMethod_var);
}
IL_1db7:
{
goto IL_1dc2;
}
IL_1dba:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_1dc2:
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_814 = V_43;
__this->___m_CurrentFontAsset_7 = L_814;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentFontAsset_7), (void*)L_814);
float L_815 = __this->___m_CurrentFontSize_17;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_816 = __this->___m_CurrentFontAsset_7;
NullCheck(L_816);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_817;
L_817 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_816, NULL);
V_63 = L_817;
int32_t L_818;
L_818 = FaceInfo_get_pointSize_m7EF7429A4725AB715931A220F6BB498C3D6BF7CB((&V_63), NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_819 = __this->___m_CurrentFontAsset_7;
NullCheck(L_819);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_820;
L_820 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_819, NULL);
V_63 = L_820;
float L_821;
L_821 = FaceInfo_get_scale_mC475A572AD4956B47D8B9F8D90DC69BBBB102FCD((&V_63), NULL);
__this->___m_FontScale_14 = ((float)il2cpp_codegen_multiply(((float)(L_815/((float)L_818))), L_821));
V_28 = (bool)1;
goto IL_384a;
}
IL_1e09:
{
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* L_822 = (&__this->___m_MaterialReferenceStack_10);
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_823;
L_823 = TextProcessingStack_1_Remove_m24EDA872BB55BFF4493268F713CFBA50102917D0(L_822, TextProcessingStack_1_Remove_m24EDA872BB55BFF4493268F713CFBA50102917D0_RuntimeMethod_var);
V_92 = L_823;
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_824 = V_92;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_825 = L_824.___fontAsset_1;
__this->___m_CurrentFontAsset_7 = L_825;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentFontAsset_7), (void*)L_825);
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_826 = V_92;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_827 = L_826.___material_3;
__this->___m_CurrentMaterial_8 = L_827;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_827);
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_828 = V_92;
int32_t L_829 = L_828.___index_0;
__this->___m_CurrentMaterialIndex_9 = L_829;
float L_830 = __this->___m_CurrentFontSize_17;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_831 = __this->___m_CurrentFontAsset_7;
NullCheck(L_831);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_832;
L_832 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_831, NULL);
V_63 = L_832;
int32_t L_833;
L_833 = FaceInfo_get_pointSize_m7EF7429A4725AB715931A220F6BB498C3D6BF7CB((&V_63), NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_834 = __this->___m_CurrentFontAsset_7;
NullCheck(L_834);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_835;
L_835 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_834, NULL);
V_63 = L_835;
float L_836;
L_836 = FaceInfo_get_scale_mC475A572AD4956B47D8B9F8D90DC69BBBB102FCD((&V_63), NULL);
__this->___m_FontScale_14 = ((float)il2cpp_codegen_multiply(((float)(L_830/((float)L_833))), L_836));
V_28 = (bool)1;
goto IL_384a;
}
IL_1e7d:
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_837 = __this->___m_XmlAttribute_91;
NullCheck(L_837);
int32_t L_838 = ((L_837)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueHashCode_4;
V_42 = L_838;
int32_t L_839 = V_42;
V_93 = (bool)((((int32_t)L_839) == ((int32_t)((int32_t)-620974005)))? 1 : 0);
bool L_840 = V_93;
if (!L_840)
{
goto IL_1ede;
}
}
{
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_841 = __this->___m_MaterialReferences_85;
NullCheck(L_841);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_842 = ((L_841)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___material_3;
__this->___m_CurrentMaterial_8 = L_842;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_842);
__this->___m_CurrentMaterialIndex_9 = 0;
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* L_843 = (&__this->___m_MaterialReferenceStack_10);
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_844 = __this->___m_MaterialReferences_85;
NullCheck(L_844);
int32_t L_845 = 0;
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_846 = (L_844)->GetAt(static_cast<il2cpp_array_size_t>(L_845));
TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731(L_843, L_846, TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_1ede:
{
int32_t L_847 = V_42;
bool L_848;
L_848 = MaterialReferenceManager_TryGetMaterial_m54A7E79A8D506AB95FED10236597C60C9F4CC8C1(L_847, (&V_44), NULL);
V_94 = L_848;
bool L_849 = V_94;
if (!L_849)
{
goto IL_1f3c;
}
}
{
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_850 = V_44;
__this->___m_CurrentMaterial_8 = L_850;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_850);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_851 = __this->___m_CurrentMaterial_8;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_852 = __this->___m_CurrentFontAsset_7;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E** L_853 = (&__this->___m_MaterialReferences_85);
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* L_854 = __this->___m_MaterialReferenceIndexLookup_93;
int32_t L_855;
L_855 = MaterialReference_AddMaterialReference_m6C0963F5E7C06B0371F2B18FE177D55B6C4C1105(L_851, L_852, L_853, L_854, NULL);
__this->___m_CurrentMaterialIndex_9 = L_855;
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* L_856 = (&__this->___m_MaterialReferenceStack_10);
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_857 = __this->___m_MaterialReferences_85;
int32_t L_858 = __this->___m_CurrentMaterialIndex_9;
NullCheck(L_857);
int32_t L_859 = L_858;
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_860 = (L_857)->GetAt(static_cast<il2cpp_array_size_t>(L_859));
TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731(L_856, L_860, TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731_RuntimeMethod_var);
goto IL_1fe5;
}
IL_1f3c:
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_861 = V_0;
NullCheck(L_861);
String_t* L_862;
L_862 = TextSettings_get_defaultFontAssetPath_mF7B1713753CFAE048C745C3572332CE18CD51D3B_inline(L_861, NULL);
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_863 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_864 = __this->___m_XmlAttribute_91;
NullCheck(L_864);
int32_t L_865 = ((L_864)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_866 = __this->___m_XmlAttribute_91;
NullCheck(L_866);
int32_t L_867 = ((L_866)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
String_t* L_868;
L_868 = String_CreateString_mB7B3AC2AF28010538650051A9000369B1CD6BAB6(NULL, L_863, L_865, L_867, NULL);
String_t* L_869;
L_869 = String_Concat_mAF2CE02CC0CB7460753D0A1A91CCF2B1E9804C5D(L_862, L_868, NULL);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_870;
L_870 = Resources_Load_TisMaterial_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3_m28782CC70624922DAF3B0FB13930E4EB59848128(L_869, Resources_Load_TisMaterial_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3_m28782CC70624922DAF3B0FB13930E4EB59848128_RuntimeMethod_var);
V_44 = L_870;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_871 = V_44;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_872;
L_872 = Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536(L_871, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_95 = L_872;
bool L_873 = V_95;
if (!L_873)
{
goto IL_1f92;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_1f92:
{
int32_t L_874 = V_42;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_875 = V_44;
MaterialReferenceManager_AddFontMaterial_mBE61E1B0E6CBB58695731DC975859E349CA99C8A(L_874, L_875, NULL);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_876 = V_44;
__this->___m_CurrentMaterial_8 = L_876;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_876);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_877 = __this->___m_CurrentMaterial_8;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_878 = __this->___m_CurrentFontAsset_7;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E** L_879 = (&__this->___m_MaterialReferences_85);
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* L_880 = __this->___m_MaterialReferenceIndexLookup_93;
int32_t L_881;
L_881 = MaterialReference_AddMaterialReference_m6C0963F5E7C06B0371F2B18FE177D55B6C4C1105(L_877, L_878, L_879, L_880, NULL);
__this->___m_CurrentMaterialIndex_9 = L_881;
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* L_882 = (&__this->___m_MaterialReferenceStack_10);
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_883 = __this->___m_MaterialReferences_85;
int32_t L_884 = __this->___m_CurrentMaterialIndex_9;
NullCheck(L_883);
int32_t L_885 = L_884;
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_886 = (L_883)->GetAt(static_cast<il2cpp_array_size_t>(L_885));
TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731(L_882, L_886, TextProcessingStack_1_Add_m0366B4DC6F32155BD3BDB9FA5AB645A54C233731_RuntimeMethod_var);
}
IL_1fe5:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_1fed:
{
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* L_887 = (&__this->___m_MaterialReferenceStack_10);
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_888;
L_888 = TextProcessingStack_1_Remove_m24EDA872BB55BFF4493268F713CFBA50102917D0(L_887, TextProcessingStack_1_Remove_m24EDA872BB55BFF4493268F713CFBA50102917D0_RuntimeMethod_var);
V_96 = L_888;
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_889 = V_96;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_890 = L_889.___material_3;
__this->___m_CurrentMaterial_8 = L_890;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_890);
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_891 = V_96;
int32_t L_892 = L_891.___index_0;
__this->___m_CurrentMaterialIndex_9 = L_892;
V_28 = (bool)1;
goto IL_384a;
}
IL_201d:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_893 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_894 = __this->___m_XmlAttribute_91;
NullCheck(L_894);
int32_t L_895 = ((L_894)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_896 = __this->___m_XmlAttribute_91;
NullCheck(L_896);
int32_t L_897 = ((L_896)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_898;
L_898 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_893, L_895, L_897, NULL);
V_39 = L_898;
float L_899 = V_39;
V_97 = (bool)((((float)L_899) == ((float)(-32767.0f)))? 1 : 0);
bool L_900 = V_97;
if (!L_900)
{
goto IL_2063;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_2063:
{
int32_t L_901 = V_3;
V_99 = L_901;
int32_t L_902 = V_99;
V_98 = L_902;
int32_t L_903 = V_98;
switch (L_903)
{
case 0:
{
goto IL_207f;
}
case 1:
{
goto IL_2096;
}
case 2:
{
goto IL_20d8;
}
}
}
{
goto IL_20e0;
}
IL_207f:
{
float L_904 = __this->___m_XAdvance_43;
float L_905 = V_39;
__this->___m_XAdvance_43 = ((float)il2cpp_codegen_add(L_904, L_905));
V_28 = (bool)1;
goto IL_384a;
}
IL_2096:
{
float L_906 = __this->___m_XAdvance_43;
float L_907 = V_39;
float L_908 = __this->___m_FontScale_14;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_909 = ___generationSettings3;
NullCheck(L_909);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_910 = L_909->___fontAsset_4;
NullCheck(L_910);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_911;
L_911 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_910, NULL);
V_63 = L_911;
float L_912;
L_912 = FaceInfo_get_tabWidth_mC6D9F42C40EDD767DE22050E4FBE3878AC96B161((&V_63), NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_913 = ___generationSettings3;
NullCheck(L_913);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_914 = L_913->___fontAsset_4;
NullCheck(L_914);
uint8_t L_915;
L_915 = FontAsset_get_tabMultiple_m9C0422A00BFCF82091F14F4E303E2717247350AE(L_914, NULL);
__this->___m_XAdvance_43 = ((float)il2cpp_codegen_add(L_906, ((float)(((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_multiply(L_907, L_908)), L_912))/((float)L_915)))));
V_28 = (bool)1;
goto IL_384a;
}
IL_20d8:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_20e0:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_20e8:
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_916 = __this->___m_XmlAttribute_91;
NullCheck(L_916);
int32_t L_917 = ((L_916)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
V_100 = (bool)((((int32_t)((((int32_t)L_917) == ((int32_t)3))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_918 = V_100;
if (!L_918)
{
goto IL_210d;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_210d:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_919 = (&__this->___m_HtmlColor_28);
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_920 = __this->___m_RichTextTag_92;
NullCheck(L_920);
int32_t L_921 = 7;
uint16_t L_922 = (uint16_t)(L_920)->GetAt(static_cast<il2cpp_array_size_t>(L_921));
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
int32_t L_923;
L_923 = TextGeneratorUtilities_HexToInt_mE6FAC19C36EDFE1E5AE08F14483B1D1BB773C61C(L_922, NULL);
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_924 = __this->___m_RichTextTag_92;
NullCheck(L_924);
int32_t L_925 = 8;
uint16_t L_926 = (uint16_t)(L_924)->GetAt(static_cast<il2cpp_array_size_t>(L_925));
int32_t L_927;
L_927 = TextGeneratorUtilities_HexToInt_mE6FAC19C36EDFE1E5AE08F14483B1D1BB773C61C(L_926, NULL);
L_919->___a_4 = (uint8_t)((int32_t)(uint8_t)((int32_t)il2cpp_codegen_add(((int32_t)il2cpp_codegen_multiply(L_923, ((int32_t)16))), L_927)));
V_28 = (bool)1;
goto IL_384a;
}
IL_213f:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_2147:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_214f:
{
bool L_928 = __this->___m_IsParsingText_72;
if (!L_928)
{
goto IL_2162;
}
}
{
bool L_929 = __this->___m_IsCalculatingPreferredValues_94;
G_B469_0 = ((((int32_t)L_929) == ((int32_t)0))? 1 : 0);
goto IL_2163;
}
IL_2162:
{
G_B469_0 = 0;
}
IL_2163:
{
V_101 = (bool)G_B469_0;
bool L_930 = V_101;
if (!L_930)
{
goto IL_2260;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_931 = ___textInfo4;
NullCheck(L_931);
int32_t L_932 = L_931->___linkCount_6;
V_102 = L_932;
int32_t L_933 = V_102;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_934 = ___textInfo4;
NullCheck(L_934);
LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51* L_935 = L_934->___linkInfo_12;
NullCheck(L_935);
V_103 = (bool)((((int32_t)((int32_t)il2cpp_codegen_add(L_933, 1))) > ((int32_t)((int32_t)(((RuntimeArray*)L_935)->max_length))))? 1 : 0);
bool L_936 = V_103;
if (!L_936)
{
goto IL_219c;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_937 = ___textInfo4;
NullCheck(L_937);
LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51** L_938 = (&L_937->___linkInfo_12);
int32_t L_939 = V_102;
il2cpp_codegen_runtime_class_init_inline(TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09_il2cpp_TypeInfo_var);
TextInfo_Resize_TisLinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8_mCED76C73D7A2398528C92992D323A2DBD1663DDD(L_938, ((int32_t)il2cpp_codegen_add(L_939, 1)), TextInfo_Resize_TisLinkInfo_tE85DDAFDFBDA635E6405C88EE4FD5941A9243DD8_mCED76C73D7A2398528C92992D323A2DBD1663DDD_RuntimeMethod_var);
}
IL_219c:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_940 = ___textInfo4;
NullCheck(L_940);
LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51* L_941 = L_940->___linkInfo_12;
int32_t L_942 = V_102;
NullCheck(L_941);
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_943 = __this->___m_XmlAttribute_91;
NullCheck(L_943);
int32_t L_944 = ((L_943)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueHashCode_4;
((L_941)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_942)))->___hashCode_0 = L_944;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_945 = ___textInfo4;
NullCheck(L_945);
LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51* L_946 = L_945->___linkInfo_12;
int32_t L_947 = V_102;
NullCheck(L_946);
int32_t L_948 = __this->___m_CharacterCount_48;
((L_946)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_947)))->___linkTextfirstCharacterIndex_3 = L_948;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_949 = ___textInfo4;
NullCheck(L_949);
LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51* L_950 = L_949->___linkInfo_12;
int32_t L_951 = V_102;
NullCheck(L_950);
int32_t L_952 = ___startIndex1;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_953 = __this->___m_XmlAttribute_91;
NullCheck(L_953);
int32_t L_954 = ((L_953)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
((L_950)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_951)))->___linkIdFirstCharacterIndex_1 = ((int32_t)il2cpp_codegen_add(L_952, L_954));
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_955 = ___textInfo4;
NullCheck(L_955);
LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51* L_956 = L_955->___linkInfo_12;
int32_t L_957 = V_102;
NullCheck(L_956);
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_958 = __this->___m_XmlAttribute_91;
NullCheck(L_958);
int32_t L_959 = ((L_958)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
((L_956)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_957)))->___linkIdLength_2 = L_959;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_960 = ___textInfo4;
NullCheck(L_960);
LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51* L_961 = L_960->___linkInfo_12;
int32_t L_962 = V_102;
NullCheck(L_961);
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_963 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_964 = __this->___m_XmlAttribute_91;
NullCheck(L_964);
int32_t L_965 = ((L_964)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_966 = __this->___m_XmlAttribute_91;
NullCheck(L_966);
int32_t L_967 = ((L_966)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
LinkInfo_SetLinkId_mB4145264190D5C857705261CB27F87C6E10C3F3F(((L_961)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_962))), L_963, L_965, L_967, NULL);
}
IL_2260:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_2268:
{
bool L_968 = __this->___m_IsParsingText_72;
if (!L_968)
{
goto IL_227b;
}
}
{
bool L_969 = __this->___m_IsCalculatingPreferredValues_94;
G_B477_0 = ((((int32_t)L_969) == ((int32_t)0))? 1 : 0);
goto IL_227c;
}
IL_227b:
{
G_B477_0 = 0;
}
IL_227c:
{
V_104 = (bool)G_B477_0;
bool L_970 = V_104;
if (!L_970)
{
goto IL_22e4;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_971 = ___textInfo4;
NullCheck(L_971);
int32_t L_972 = L_971->___linkCount_6;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_973 = ___textInfo4;
NullCheck(L_973);
LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51* L_974 = L_973->___linkInfo_12;
NullCheck(L_974);
V_105 = (bool)((((int32_t)L_972) < ((int32_t)((int32_t)(((RuntimeArray*)L_974)->max_length))))? 1 : 0);
bool L_975 = V_105;
if (!L_975)
{
goto IL_22e3;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_976 = ___textInfo4;
NullCheck(L_976);
LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51* L_977 = L_976->___linkInfo_12;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_978 = ___textInfo4;
NullCheck(L_978);
int32_t L_979 = L_978->___linkCount_6;
NullCheck(L_977);
int32_t L_980 = __this->___m_CharacterCount_48;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_981 = ___textInfo4;
NullCheck(L_981);
LinkInfoU5BU5D_tB7EB23E47AF29CCBEC884F9D0DB95BC97F62AE51* L_982 = L_981->___linkInfo_12;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_983 = ___textInfo4;
NullCheck(L_983);
int32_t L_984 = L_983->___linkCount_6;
NullCheck(L_982);
int32_t L_985 = ((L_982)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_984)))->___linkTextfirstCharacterIndex_3;
((L_977)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_979)))->___linkTextLength_4 = ((int32_t)il2cpp_codegen_subtract(L_980, L_985));
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_986 = ___textInfo4;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_987 = L_986;
NullCheck(L_987);
int32_t L_988 = L_987->___linkCount_6;
NullCheck(L_987);
L_987->___linkCount_6 = ((int32_t)il2cpp_codegen_add(L_988, 1));
}
IL_22e3:
{
}
IL_22e4:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_22ec:
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_989 = __this->___m_XmlAttribute_91;
NullCheck(L_989);
int32_t L_990 = ((L_989)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueHashCode_4;
V_107 = L_990;
int32_t L_991 = V_107;
V_106 = L_991;
int32_t L_992 = V_106;
if ((((int32_t)L_992) > ((int32_t)((int32_t)2660507))))
{
goto IL_2328;
}
}
{
int32_t L_993 = V_106;
if ((((int32_t)L_993) == ((int32_t)((int32_t)-1591113269))))
{
goto IL_2399;
}
}
{
goto IL_231a;
}
IL_231a:
{
int32_t L_994 = V_106;
if ((((int32_t)L_994) == ((int32_t)((int32_t)2660507))))
{
goto IL_234f;
}
}
{
goto IL_2408;
}
IL_2328:
{
int32_t L_995 = V_106;
if ((((int32_t)L_995) == ((int32_t)((int32_t)85552164))))
{
goto IL_23e3;
}
}
{
goto IL_2336;
}
IL_2336:
{
int32_t L_996 = V_106;
if ((((int32_t)L_996) == ((int32_t)((int32_t)99937376))))
{
goto IL_2374;
}
}
{
goto IL_2341;
}
IL_2341:
{
int32_t L_997 = V_106;
if ((((int32_t)L_997) == ((int32_t)((int32_t)817091359))))
{
goto IL_23be;
}
}
{
goto IL_2408;
}
IL_234f:
{
__this->___m_LineJustification_23 = ((int32_t)513);
TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F* L_998 = (&__this->___m_LineJustificationStack_24);
int32_t L_999 = __this->___m_LineJustification_23;
TextProcessingStack_1_Add_m274EBB250C6149AB4014207A84EC9F3F83C39125(L_998, L_999, TextProcessingStack_1_Add_m274EBB250C6149AB4014207A84EC9F3F83C39125_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_2374:
{
__this->___m_LineJustification_23 = ((int32_t)516);
TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F* L_1000 = (&__this->___m_LineJustificationStack_24);
int32_t L_1001 = __this->___m_LineJustification_23;
TextProcessingStack_1_Add_m274EBB250C6149AB4014207A84EC9F3F83C39125(L_1000, L_1001, TextProcessingStack_1_Add_m274EBB250C6149AB4014207A84EC9F3F83C39125_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_2399:
{
__this->___m_LineJustification_23 = ((int32_t)514);
TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F* L_1002 = (&__this->___m_LineJustificationStack_24);
int32_t L_1003 = __this->___m_LineJustification_23;
TextProcessingStack_1_Add_m274EBB250C6149AB4014207A84EC9F3F83C39125(L_1002, L_1003, TextProcessingStack_1_Add_m274EBB250C6149AB4014207A84EC9F3F83C39125_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_23be:
{
__this->___m_LineJustification_23 = ((int32_t)520);
TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F* L_1004 = (&__this->___m_LineJustificationStack_24);
int32_t L_1005 = __this->___m_LineJustification_23;
TextProcessingStack_1_Add_m274EBB250C6149AB4014207A84EC9F3F83C39125(L_1004, L_1005, TextProcessingStack_1_Add_m274EBB250C6149AB4014207A84EC9F3F83C39125_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_23e3:
{
__this->___m_LineJustification_23 = ((int32_t)528);
TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F* L_1006 = (&__this->___m_LineJustificationStack_24);
int32_t L_1007 = __this->___m_LineJustification_23;
TextProcessingStack_1_Add_m274EBB250C6149AB4014207A84EC9F3F83C39125(L_1006, L_1007, TextProcessingStack_1_Add_m274EBB250C6149AB4014207A84EC9F3F83C39125_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_2408:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_2410:
{
TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F* L_1008 = (&__this->___m_LineJustificationStack_24);
int32_t L_1009;
L_1009 = TextProcessingStack_1_Remove_m3C7936195E04FE5C7BD27A56E88A06DEDA9EA5BF(L_1008, TextProcessingStack_1_Remove_m3C7936195E04FE5C7BD27A56E88A06DEDA9EA5BF_RuntimeMethod_var);
__this->___m_LineJustification_23 = L_1009;
V_28 = (bool)1;
goto IL_384a;
}
IL_2429:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1010 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1011 = __this->___m_XmlAttribute_91;
NullCheck(L_1011);
int32_t L_1012 = ((L_1011)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1013 = __this->___m_XmlAttribute_91;
NullCheck(L_1013);
int32_t L_1014 = ((L_1013)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_1015;
L_1015 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_1010, L_1012, L_1014, NULL);
V_39 = L_1015;
float L_1016 = V_39;
V_108 = (bool)((((float)L_1016) == ((float)(-32767.0f)))? 1 : 0);
bool L_1017 = V_108;
if (!L_1017)
{
goto IL_246f;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_246f:
{
int32_t L_1018 = V_3;
V_110 = L_1018;
int32_t L_1019 = V_110;
V_109 = L_1019;
int32_t L_1020 = V_109;
switch (L_1020)
{
case 0:
{
goto IL_248b;
}
case 1:
{
goto IL_2495;
}
case 2:
{
goto IL_249d;
}
}
}
{
goto IL_24b4;
}
IL_248b:
{
float L_1021 = V_39;
__this->___m_Width_61 = L_1021;
goto IL_24b4;
}
IL_2495:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_249d:
{
float L_1022 = __this->___m_MarginWidth_2;
float L_1023 = V_39;
__this->___m_Width_61 = ((float)(((float)il2cpp_codegen_multiply(L_1022, L_1023))/(100.0f)));
goto IL_24b4;
}
IL_24b4:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_24bc:
{
__this->___m_Width_61 = (-1.0f);
V_28 = (bool)1;
goto IL_384a;
}
IL_24cf:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1024 = __this->___m_RichTextTag_92;
NullCheck(L_1024);
int32_t L_1025 = 6;
uint16_t L_1026 = (uint16_t)(L_1024)->GetAt(static_cast<il2cpp_array_size_t>(L_1025));
if ((!(((uint32_t)L_1026) == ((uint32_t)((int32_t)35)))))
{
goto IL_24e2;
}
}
{
int32_t L_1027 = V_1;
G_B512_0 = ((((int32_t)L_1027) == ((int32_t)((int32_t)10)))? 1 : 0);
goto IL_24e3;
}
IL_24e2:
{
G_B512_0 = 0;
}
IL_24e3:
{
V_111 = (bool)G_B512_0;
bool L_1028 = V_111;
if (!L_1028)
{
goto IL_2516;
}
}
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1029 = __this->___m_RichTextTag_92;
int32_t L_1030 = V_1;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1031;
L_1031 = TextGeneratorUtilities_HexCharsToColor_mB7D42327546D443ADF83696B99E2CFD921FEE21F(L_1029, L_1030, NULL);
__this->___m_HtmlColor_28 = L_1031;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_1032 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1033 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_1032, L_1033, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_2516:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1034 = __this->___m_RichTextTag_92;
NullCheck(L_1034);
int32_t L_1035 = 6;
uint16_t L_1036 = (uint16_t)(L_1034)->GetAt(static_cast<il2cpp_array_size_t>(L_1035));
if ((!(((uint32_t)L_1036) == ((uint32_t)((int32_t)35)))))
{
goto IL_2529;
}
}
{
int32_t L_1037 = V_1;
G_B517_0 = ((((int32_t)L_1037) == ((int32_t)((int32_t)11)))? 1 : 0);
goto IL_252a;
}
IL_2529:
{
G_B517_0 = 0;
}
IL_252a:
{
V_112 = (bool)G_B517_0;
bool L_1038 = V_112;
if (!L_1038)
{
goto IL_255d;
}
}
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1039 = __this->___m_RichTextTag_92;
int32_t L_1040 = V_1;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1041;
L_1041 = TextGeneratorUtilities_HexCharsToColor_mB7D42327546D443ADF83696B99E2CFD921FEE21F(L_1039, L_1040, NULL);
__this->___m_HtmlColor_28 = L_1041;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_1042 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1043 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_1042, L_1043, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_255d:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1044 = __this->___m_RichTextTag_92;
NullCheck(L_1044);
int32_t L_1045 = 6;
uint16_t L_1046 = (uint16_t)(L_1044)->GetAt(static_cast<il2cpp_array_size_t>(L_1045));
if ((!(((uint32_t)L_1046) == ((uint32_t)((int32_t)35)))))
{
goto IL_2570;
}
}
{
int32_t L_1047 = V_1;
G_B522_0 = ((((int32_t)L_1047) == ((int32_t)((int32_t)13)))? 1 : 0);
goto IL_2571;
}
IL_2570:
{
G_B522_0 = 0;
}
IL_2571:
{
V_113 = (bool)G_B522_0;
bool L_1048 = V_113;
if (!L_1048)
{
goto IL_25a4;
}
}
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1049 = __this->___m_RichTextTag_92;
int32_t L_1050 = V_1;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1051;
L_1051 = TextGeneratorUtilities_HexCharsToColor_mB7D42327546D443ADF83696B99E2CFD921FEE21F(L_1049, L_1050, NULL);
__this->___m_HtmlColor_28 = L_1051;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_1052 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1053 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_1052, L_1053, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_25a4:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1054 = __this->___m_RichTextTag_92;
NullCheck(L_1054);
int32_t L_1055 = 6;
uint16_t L_1056 = (uint16_t)(L_1054)->GetAt(static_cast<il2cpp_array_size_t>(L_1055));
if ((!(((uint32_t)L_1056) == ((uint32_t)((int32_t)35)))))
{
goto IL_25b7;
}
}
{
int32_t L_1057 = V_1;
G_B527_0 = ((((int32_t)L_1057) == ((int32_t)((int32_t)15)))? 1 : 0);
goto IL_25b8;
}
IL_25b7:
{
G_B527_0 = 0;
}
IL_25b8:
{
V_114 = (bool)G_B527_0;
bool L_1058 = V_114;
if (!L_1058)
{
goto IL_25eb;
}
}
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1059 = __this->___m_RichTextTag_92;
int32_t L_1060 = V_1;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1061;
L_1061 = TextGeneratorUtilities_HexCharsToColor_mB7D42327546D443ADF83696B99E2CFD921FEE21F(L_1059, L_1060, NULL);
__this->___m_HtmlColor_28 = L_1061;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_1062 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1063 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_1062, L_1063, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_25eb:
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1064 = __this->___m_XmlAttribute_91;
NullCheck(L_1064);
int32_t L_1065 = ((L_1064)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueHashCode_4;
V_116 = L_1065;
int32_t L_1066 = V_116;
V_115 = L_1066;
int32_t L_1067 = V_115;
if ((((int32_t)L_1067) > ((int32_t)((int32_t)91635))))
{
goto IL_264f;
}
}
{
int32_t L_1068 = V_115;
if ((((int32_t)L_1068) > ((int32_t)((int32_t)-1108587920))))
{
goto IL_2633;
}
}
{
int32_t L_1069 = V_115;
if ((((int32_t)L_1069) == ((int32_t)((int32_t)-1250222130))))
{
goto IL_2797;
}
}
{
goto IL_2622;
}
IL_2622:
{
int32_t L_1070 = V_115;
if ((((int32_t)L_1070) == ((int32_t)((int32_t)-1108587920))))
{
goto IL_2762;
}
}
{
goto IL_27f7;
}
IL_2633:
{
int32_t L_1071 = V_115;
if ((((int32_t)L_1071) == ((int32_t)((int32_t)-882444668))))
{
goto IL_27cd;
}
}
{
goto IL_2641;
}
IL_2641:
{
int32_t L_1072 = V_115;
if ((((int32_t)L_1072) == ((int32_t)((int32_t)91635))))
{
goto IL_2690;
}
}
{
goto IL_27f7;
}
IL_264f:
{
int32_t L_1073 = V_115;
if ((((int32_t)L_1073) > ((int32_t)((int32_t)81074727))))
{
goto IL_2671;
}
}
{
int32_t L_1074 = V_115;
if ((((int32_t)L_1074) == ((int32_t)((int32_t)2457214))))
{
goto IL_26ba;
}
}
{
goto IL_2663;
}
IL_2663:
{
int32_t L_1075 = V_115;
if ((((int32_t)L_1075) == ((int32_t)((int32_t)81074727))))
{
goto IL_26e4;
}
}
{
goto IL_27f7;
}
IL_2671:
{
int32_t L_1076 = V_115;
if ((((int32_t)L_1076) == ((int32_t)((int32_t)87065851))))
{
goto IL_270e;
}
}
{
goto IL_267f;
}
IL_267f:
{
int32_t L_1077 = V_115;
if ((((int32_t)L_1077) == ((int32_t)((int32_t)105680263))))
{
goto IL_2738;
}
}
{
goto IL_27f7;
}
IL_2690:
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_1078;
L_1078 = Color_get_red_m27D04C1E5FE794AD933B7B9364F3D34B9EA25109_inline(NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1079;
L_1079 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_1078, NULL);
__this->___m_HtmlColor_28 = L_1079;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_1080 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1081 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_1080, L_1081, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_26ba:
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_1082;
L_1082 = Color_get_blue_m0D04554379CB8606EF48E3091CDC3098B81DD86D_inline(NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1083;
L_1083 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_1082, NULL);
__this->___m_HtmlColor_28 = L_1083;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_1084 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1085 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_1084, L_1085, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_26e4:
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_1086;
L_1086 = Color_get_black_mBF96B603B41BED9BAFAA10CE8D946D24260F9729_inline(NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1087;
L_1087 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_1086, NULL);
__this->___m_HtmlColor_28 = L_1087;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_1088 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1089 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_1088, L_1089, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_270e:
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_1090;
L_1090 = Color_get_green_m336EB73DD4A5B11B7F405CF4BC7F37A466FB4FF7_inline(NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1091;
L_1091 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_1090, NULL);
__this->___m_HtmlColor_28 = L_1091;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_1092 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1093 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_1092, L_1093, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_2738:
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_1094;
L_1094 = Color_get_white_m28BB6E19F27D4EE6858D3021A44F62BC74E20C43_inline(NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1095;
L_1095 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_1094, NULL);
__this->___m_HtmlColor_28 = L_1095;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_1096 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1097 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_1096, L_1097, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_2762:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1098;
memset((&L_1098), 0, sizeof(L_1098));
Color32__ctor_mC9C6B443F0C7CA3F8B174158B2AF6F05E18EAC4E_inline((&L_1098), (uint8_t)((int32_t)255), (uint8_t)((int32_t)128), (uint8_t)0, (uint8_t)((int32_t)255), /*hidden argument*/NULL);
__this->___m_HtmlColor_28 = L_1098;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_1099 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1100 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_1099, L_1100, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_2797:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1101;
memset((&L_1101), 0, sizeof(L_1101));
Color32__ctor_mC9C6B443F0C7CA3F8B174158B2AF6F05E18EAC4E_inline((&L_1101), (uint8_t)((int32_t)160), (uint8_t)((int32_t)32), (uint8_t)((int32_t)240), (uint8_t)((int32_t)255), /*hidden argument*/NULL);
__this->___m_HtmlColor_28 = L_1101;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_1102 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1103 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_1102, L_1103, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_27cd:
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_1104;
L_1104 = Color_get_yellow_m1EF7276EF58050DFBA8921E2383F0249C08D346F_inline(NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1105;
L_1105 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_1104, NULL);
__this->___m_HtmlColor_28 = L_1105;
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_1106 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1107 = __this->___m_HtmlColor_28;
TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976(L_1106, L_1107, TextProcessingStack_1_Add_m148F8814DD4AD1B3B4C837FBC1B627E687D1E976_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_27f7:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_27ff:
{
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_1108 = (&__this->___m_ColorStack_31);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1109;
L_1109 = TextProcessingStack_1_Remove_mCEB203288B57A916CE3C9482E239BF59D7A3BBBE(L_1108, TextProcessingStack_1_Remove_mCEB203288B57A916CE3C9482E239BF59D7A3BBBE_RuntimeMethod_var);
__this->___m_HtmlColor_28 = L_1109;
V_28 = (bool)1;
goto IL_384a;
}
IL_2818:
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1110 = __this->___m_XmlAttribute_91;
NullCheck(L_1110);
int32_t L_1111 = ((L_1110)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueHashCode_4;
V_45 = L_1111;
int32_t L_1112 = V_45;
bool L_1113;
L_1113 = MaterialReferenceManager_TryGetColorGradientPreset_m379362C98A5E71979208D750F9699E6F7E3D5C44(L_1112, (&V_46), NULL);
V_117 = L_1113;
bool L_1114 = V_117;
if (!L_1114)
{
goto IL_2846;
}
}
{
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_1115 = V_46;
__this->___m_ColorGradientPreset_35 = L_1115;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_ColorGradientPreset_35), (void*)L_1115);
goto IL_28bf;
}
IL_2846:
{
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_1116 = V_46;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_1117;
L_1117 = Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536(L_1116, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_118 = L_1117;
bool L_1118 = V_118;
if (!L_1118)
{
goto IL_2896;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_1119 = V_0;
NullCheck(L_1119);
String_t* L_1120;
L_1120 = TextSettings_get_defaultColorGradientPresetsPath_m1571454580E1F0DC859D3F201BB1F6355A5DBB8E_inline(L_1119, NULL);
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1121 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1122 = __this->___m_XmlAttribute_91;
NullCheck(L_1122);
int32_t L_1123 = ((L_1122)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1124 = __this->___m_XmlAttribute_91;
NullCheck(L_1124);
int32_t L_1125 = ((L_1124)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
String_t* L_1126;
L_1126 = String_CreateString_mB7B3AC2AF28010538650051A9000369B1CD6BAB6(NULL, L_1121, L_1123, L_1125, NULL);
String_t* L_1127;
L_1127 = String_Concat_mAF2CE02CC0CB7460753D0A1A91CCF2B1E9804C5D(L_1120, L_1126, NULL);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_1128;
L_1128 = Resources_Load_TisTextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70_m3B4500F9148F6FEC1F400C8A57D4E6A3731FDAC2(L_1127, Resources_Load_TisTextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70_m3B4500F9148F6FEC1F400C8A57D4E6A3731FDAC2_RuntimeMethod_var);
V_46 = L_1128;
}
IL_2896:
{
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_1129 = V_46;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_1130;
L_1130 = Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536(L_1129, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_119 = L_1130;
bool L_1131 = V_119;
if (!L_1131)
{
goto IL_28ac;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_28ac:
{
int32_t L_1132 = V_45;
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_1133 = V_46;
MaterialReferenceManager_AddColorGradientPreset_m8D59A614318734899E9AAD9924EBF4A18F76777D(L_1132, L_1133, NULL);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_1134 = V_46;
__this->___m_ColorGradientPreset_35 = L_1134;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_ColorGradientPreset_35), (void*)L_1134);
}
IL_28bf:
{
TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E* L_1135 = (&__this->___m_ColorGradientStack_36);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_1136 = __this->___m_ColorGradientPreset_35;
TextProcessingStack_1_Add_mFB2400CB8E620060FDD41E7FB5E57A238F67E666(L_1135, L_1136, TextProcessingStack_1_Add_mFB2400CB8E620060FDD41E7FB5E57A238F67E666_RuntimeMethod_var);
V_28 = (bool)1;
goto IL_384a;
}
IL_28d9:
{
TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E* L_1137 = (&__this->___m_ColorGradientStack_36);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_1138;
L_1138 = TextProcessingStack_1_Remove_mABFF8426A0D669AEEE6FB5017100904E559EEBF6(L_1137, TextProcessingStack_1_Remove_mABFF8426A0D669AEEE6FB5017100904E559EEBF6_RuntimeMethod_var);
__this->___m_ColorGradientPreset_35 = L_1138;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_ColorGradientPreset_35), (void*)L_1138);
V_28 = (bool)1;
goto IL_384a;
}
IL_28f2:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1139 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1140 = __this->___m_XmlAttribute_91;
NullCheck(L_1140);
int32_t L_1141 = ((L_1140)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1142 = __this->___m_XmlAttribute_91;
NullCheck(L_1142);
int32_t L_1143 = ((L_1142)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_1144;
L_1144 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_1139, L_1141, L_1143, NULL);
V_39 = L_1144;
float L_1145 = V_39;
V_120 = (bool)((((float)L_1145) == ((float)(-32767.0f)))? 1 : 0);
bool L_1146 = V_120;
if (!L_1146)
{
goto IL_2938;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_2938:
{
int32_t L_1147 = V_3;
V_122 = L_1147;
int32_t L_1148 = V_122;
V_121 = L_1148;
int32_t L_1149 = V_121;
switch (L_1149)
{
case 0:
{
goto IL_2954;
}
case 1:
{
goto IL_295e;
}
case 2:
{
goto IL_299f;
}
}
}
{
goto IL_29a7;
}
IL_2954:
{
float L_1150 = V_39;
__this->___m_CSpacing_41 = L_1150;
goto IL_29a7;
}
IL_295e:
{
float L_1151 = V_39;
__this->___m_CSpacing_41 = L_1151;
float L_1152 = __this->___m_CSpacing_41;
float L_1153 = __this->___m_FontScale_14;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1154 = ___generationSettings3;
NullCheck(L_1154);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1155 = L_1154->___fontAsset_4;
NullCheck(L_1155);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_1156;
L_1156 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_1155, NULL);
V_63 = L_1156;
float L_1157;
L_1157 = FaceInfo_get_tabWidth_mC6D9F42C40EDD767DE22050E4FBE3878AC96B161((&V_63), NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1158 = ___generationSettings3;
NullCheck(L_1158);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1159 = L_1158->___fontAsset_4;
NullCheck(L_1159);
uint8_t L_1160;
L_1160 = FontAsset_get_tabMultiple_m9C0422A00BFCF82091F14F4E303E2717247350AE(L_1159, NULL);
__this->___m_CSpacing_41 = ((float)il2cpp_codegen_multiply(L_1152, ((float)(((float)il2cpp_codegen_multiply(L_1153, L_1157))/((float)L_1160)))));
goto IL_29a7;
}
IL_299f:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_29a7:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_29af:
{
bool L_1161 = __this->___m_IsParsingText_72;
V_123 = (bool)((((int32_t)L_1161) == ((int32_t)0))? 1 : 0);
bool L_1162 = V_123;
if (!L_1162)
{
goto IL_29c6;
}
}
{
V_28 = (bool)1;
goto IL_384a;
}
IL_29c6:
{
int32_t L_1163 = __this->___m_CharacterCount_48;
V_124 = (bool)((((int32_t)L_1163) > ((int32_t)0))? 1 : 0);
bool L_1164 = V_124;
if (!L_1164)
{
goto IL_2a09;
}
}
{
float L_1165 = __this->___m_XAdvance_43;
float L_1166 = __this->___m_CSpacing_41;
__this->___m_XAdvance_43 = ((float)il2cpp_codegen_subtract(L_1165, L_1166));
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_1167 = ___textInfo4;
NullCheck(L_1167);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_1168 = L_1167->___textElementInfo_10;
int32_t L_1169 = __this->___m_CharacterCount_48;
NullCheck(L_1168);
float L_1170 = __this->___m_XAdvance_43;
((L_1168)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract(L_1169, 1)))))->___xAdvance_26 = L_1170;
}
IL_2a09:
{
__this->___m_CSpacing_41 = (0.0f);
V_28 = (bool)1;
goto IL_384a;
}
IL_2a1c:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1171 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1172 = __this->___m_XmlAttribute_91;
NullCheck(L_1172);
int32_t L_1173 = ((L_1172)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1174 = __this->___m_XmlAttribute_91;
NullCheck(L_1174);
int32_t L_1175 = ((L_1174)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_1176;
L_1176 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_1171, L_1173, L_1175, NULL);
V_39 = L_1176;
float L_1177 = V_39;
V_125 = (bool)((((float)L_1177) == ((float)(-32767.0f)))? 1 : 0);
bool L_1178 = V_125;
if (!L_1178)
{
goto IL_2a62;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_2a62:
{
int32_t L_1179 = V_3;
V_127 = L_1179;
int32_t L_1180 = V_127;
V_126 = L_1180;
int32_t L_1181 = V_126;
switch (L_1181)
{
case 0:
{
goto IL_2a7e;
}
case 1:
{
goto IL_2a88;
}
case 2:
{
goto IL_2ac9;
}
}
}
{
goto IL_2ad1;
}
IL_2a7e:
{
float L_1182 = V_39;
__this->___m_MonoSpacing_42 = L_1182;
goto IL_2ad1;
}
IL_2a88:
{
float L_1183 = V_39;
__this->___m_MonoSpacing_42 = L_1183;
float L_1184 = __this->___m_MonoSpacing_42;
float L_1185 = __this->___m_FontScale_14;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1186 = ___generationSettings3;
NullCheck(L_1186);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1187 = L_1186->___fontAsset_4;
NullCheck(L_1187);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_1188;
L_1188 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_1187, NULL);
V_63 = L_1188;
float L_1189;
L_1189 = FaceInfo_get_tabWidth_mC6D9F42C40EDD767DE22050E4FBE3878AC96B161((&V_63), NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1190 = ___generationSettings3;
NullCheck(L_1190);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1191 = L_1190->___fontAsset_4;
NullCheck(L_1191);
uint8_t L_1192;
L_1192 = FontAsset_get_tabMultiple_m9C0422A00BFCF82091F14F4E303E2717247350AE(L_1191, NULL);
__this->___m_MonoSpacing_42 = ((float)il2cpp_codegen_multiply(L_1184, ((float)(((float)il2cpp_codegen_multiply(L_1185, L_1189))/((float)L_1192)))));
goto IL_2ad1;
}
IL_2ac9:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_2ad1:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_2ad9:
{
__this->___m_MonoSpacing_42 = (0.0f);
V_28 = (bool)1;
goto IL_384a;
}
IL_2aec:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_2af4:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1193 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1194 = __this->___m_XmlAttribute_91;
NullCheck(L_1194);
int32_t L_1195 = ((L_1194)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1196 = __this->___m_XmlAttribute_91;
NullCheck(L_1196);
int32_t L_1197 = ((L_1196)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_1198;
L_1198 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_1193, L_1195, L_1197, NULL);
V_39 = L_1198;
float L_1199 = V_39;
V_128 = (bool)((((float)L_1199) == ((float)(-32767.0f)))? 1 : 0);
bool L_1200 = V_128;
if (!L_1200)
{
goto IL_2b3a;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_2b3a:
{
int32_t L_1201 = V_3;
V_130 = L_1201;
int32_t L_1202 = V_130;
V_129 = L_1202;
int32_t L_1203 = V_129;
switch (L_1203)
{
case 0:
{
goto IL_2b56;
}
case 1:
{
goto IL_2b60;
}
case 2:
{
goto IL_2ba1;
}
}
}
{
goto IL_2bb8;
}
IL_2b56:
{
float L_1204 = V_39;
__this->___m_TagIndent_45 = L_1204;
goto IL_2bb8;
}
IL_2b60:
{
float L_1205 = V_39;
__this->___m_TagIndent_45 = L_1205;
float L_1206 = __this->___m_TagIndent_45;
float L_1207 = __this->___m_FontScale_14;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1208 = ___generationSettings3;
NullCheck(L_1208);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1209 = L_1208->___fontAsset_4;
NullCheck(L_1209);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_1210;
L_1210 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_1209, NULL);
V_63 = L_1210;
float L_1211;
L_1211 = FaceInfo_get_tabWidth_mC6D9F42C40EDD767DE22050E4FBE3878AC96B161((&V_63), NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1212 = ___generationSettings3;
NullCheck(L_1212);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1213 = L_1212->___fontAsset_4;
NullCheck(L_1213);
uint8_t L_1214;
L_1214 = FontAsset_get_tabMultiple_m9C0422A00BFCF82091F14F4E303E2717247350AE(L_1213, NULL);
__this->___m_TagIndent_45 = ((float)il2cpp_codegen_multiply(L_1206, ((float)(((float)il2cpp_codegen_multiply(L_1207, L_1211))/((float)L_1214)))));
goto IL_2bb8;
}
IL_2ba1:
{
float L_1215 = __this->___m_MarginWidth_2;
float L_1216 = V_39;
__this->___m_TagIndent_45 = ((float)(((float)il2cpp_codegen_multiply(L_1215, L_1216))/(100.0f)));
goto IL_2bb8;
}
IL_2bb8:
{
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* L_1217 = (&__this->___m_IndentStack_46);
float L_1218 = __this->___m_TagIndent_45;
TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042(L_1217, L_1218, TextProcessingStack_1_Add_m4F90D4B1A816D07FD2F3E02CA1364417144FE042_RuntimeMethod_var);
float L_1219 = __this->___m_TagIndent_45;
__this->___m_XAdvance_43 = L_1219;
V_28 = (bool)1;
goto IL_384a;
}
IL_2bde:
{
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* L_1220 = (&__this->___m_IndentStack_46);
float L_1221;
L_1221 = TextProcessingStack_1_Remove_m36486DFF2D5026596CFFED89F554CA9F296FBD6E(L_1220, TextProcessingStack_1_Remove_m36486DFF2D5026596CFFED89F554CA9F296FBD6E_RuntimeMethod_var);
__this->___m_TagIndent_45 = L_1221;
V_28 = (bool)1;
goto IL_384a;
}
IL_2bf7:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1222 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1223 = __this->___m_XmlAttribute_91;
NullCheck(L_1223);
int32_t L_1224 = ((L_1223)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1225 = __this->___m_XmlAttribute_91;
NullCheck(L_1225);
int32_t L_1226 = ((L_1225)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_1227;
L_1227 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_1222, L_1224, L_1226, NULL);
V_39 = L_1227;
float L_1228 = V_39;
V_131 = (bool)((((float)L_1228) == ((float)(-32767.0f)))? 1 : 0);
bool L_1229 = V_131;
if (!L_1229)
{
goto IL_2c3d;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_2c3d:
{
int32_t L_1230 = V_3;
V_133 = L_1230;
int32_t L_1231 = V_133;
V_132 = L_1231;
int32_t L_1232 = V_132;
switch (L_1232)
{
case 0:
{
goto IL_2c59;
}
case 1:
{
goto IL_2c63;
}
case 2:
{
goto IL_2ca4;
}
}
}
{
goto IL_2cbb;
}
IL_2c59:
{
float L_1233 = V_39;
__this->___m_TagLineIndent_44 = L_1233;
goto IL_2cbb;
}
IL_2c63:
{
float L_1234 = V_39;
__this->___m_TagLineIndent_44 = L_1234;
float L_1235 = __this->___m_TagLineIndent_44;
float L_1236 = __this->___m_FontScale_14;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1237 = ___generationSettings3;
NullCheck(L_1237);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1238 = L_1237->___fontAsset_4;
NullCheck(L_1238);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_1239;
L_1239 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_1238, NULL);
V_63 = L_1239;
float L_1240;
L_1240 = FaceInfo_get_tabWidth_mC6D9F42C40EDD767DE22050E4FBE3878AC96B161((&V_63), NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1241 = ___generationSettings3;
NullCheck(L_1241);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1242 = L_1241->___fontAsset_4;
NullCheck(L_1242);
uint8_t L_1243;
L_1243 = FontAsset_get_tabMultiple_m9C0422A00BFCF82091F14F4E303E2717247350AE(L_1242, NULL);
__this->___m_TagLineIndent_44 = ((float)il2cpp_codegen_multiply(L_1235, ((float)(((float)il2cpp_codegen_multiply(L_1236, L_1240))/((float)L_1243)))));
goto IL_2cbb;
}
IL_2ca4:
{
float L_1244 = __this->___m_MarginWidth_2;
float L_1245 = V_39;
__this->___m_TagLineIndent_44 = ((float)(((float)il2cpp_codegen_multiply(L_1244, L_1245))/(100.0f)));
goto IL_2cbb;
}
IL_2cbb:
{
float L_1246 = __this->___m_XAdvance_43;
float L_1247 = __this->___m_TagLineIndent_44;
__this->___m_XAdvance_43 = ((float)il2cpp_codegen_add(L_1246, L_1247));
V_28 = (bool)1;
goto IL_384a;
}
IL_2cd6:
{
__this->___m_TagLineIndent_44 = (0.0f);
V_28 = (bool)1;
goto IL_384a;
}
IL_2ce9:
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1248 = __this->___m_XmlAttribute_91;
NullCheck(L_1248);
int32_t L_1249 = ((L_1248)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueHashCode_4;
V_47 = L_1249;
__this->___m_SpriteIndex_73 = (-1);
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1250 = __this->___m_XmlAttribute_91;
NullCheck(L_1250);
int32_t L_1251 = ((L_1250)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueType_1;
if (!L_1251)
{
goto IL_2d2c;
}
}
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1252 = __this->___m_XmlAttribute_91;
NullCheck(L_1252);
int32_t L_1253 = ((L_1252)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueType_1;
G_B611_0 = ((((int32_t)L_1253) == ((int32_t)1))? 1 : 0);
goto IL_2d2d;
}
IL_2d2c:
{
G_B611_0 = 1;
}
IL_2d2d:
{
V_134 = (bool)G_B611_0;
bool L_1254 = V_134;
if (!L_1254)
{
goto IL_2ded;
}
}
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1255 = ___generationSettings3;
NullCheck(L_1255);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1256 = L_1255->___spriteAsset_6;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_1257;
L_1257 = Object_op_Inequality_m4D656395C27694A7F33F5AA8DE80A7AAF9E20BA7(L_1256, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_135 = L_1257;
bool L_1258 = V_135;
if (!L_1258)
{
goto IL_2d5b;
}
}
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1259 = ___generationSettings3;
NullCheck(L_1259);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1260 = L_1259->___spriteAsset_6;
__this->___m_CurrentSpriteAsset_12 = L_1260;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentSpriteAsset_12), (void*)L_1260);
goto IL_2dcd;
}
IL_2d5b:
{
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1261 = __this->___m_DefaultSpriteAsset_95;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_1262;
L_1262 = Object_op_Inequality_m4D656395C27694A7F33F5AA8DE80A7AAF9E20BA7(L_1261, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_136 = L_1262;
bool L_1263 = V_136;
if (!L_1263)
{
goto IL_2d7d;
}
}
{
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1264 = __this->___m_DefaultSpriteAsset_95;
__this->___m_CurrentSpriteAsset_12 = L_1264;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentSpriteAsset_12), (void*)L_1264);
goto IL_2dcd;
}
IL_2d7d:
{
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1265 = __this->___m_DefaultSpriteAsset_95;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_1266;
L_1266 = Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536(L_1265, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_137 = L_1266;
bool L_1267 = V_137;
if (!L_1267)
{
goto IL_2dcd;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_1268 = V_0;
NullCheck(L_1268);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1269;
L_1269 = TextSettings_get_defaultSpriteAsset_m8FA900F9747B7ADBCD2A2F612E7D977DB58D6445_inline(L_1268, NULL);
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_1270;
L_1270 = Object_op_Inequality_m4D656395C27694A7F33F5AA8DE80A7AAF9E20BA7(L_1269, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_138 = L_1270;
bool L_1271 = V_138;
if (!L_1271)
{
goto IL_2db0;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_1272 = V_0;
NullCheck(L_1272);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1273;
L_1273 = TextSettings_get_defaultSpriteAsset_m8FA900F9747B7ADBCD2A2F612E7D977DB58D6445_inline(L_1272, NULL);
__this->___m_DefaultSpriteAsset_95 = L_1273;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_DefaultSpriteAsset_95), (void*)L_1273);
goto IL_2dc0;
}
IL_2db0:
{
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1274;
L_1274 = Resources_Load_TisSpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313_mDBDF61D69ECF9D35DA0ABDE51CBA6667E0571EEF(_stringLiteral3CF41D991C7F2555D83F628B4B3B26444D917083, Resources_Load_TisSpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313_mDBDF61D69ECF9D35DA0ABDE51CBA6667E0571EEF_RuntimeMethod_var);
__this->___m_DefaultSpriteAsset_95 = L_1274;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_DefaultSpriteAsset_95), (void*)L_1274);
}
IL_2dc0:
{
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1275 = __this->___m_DefaultSpriteAsset_95;
__this->___m_CurrentSpriteAsset_12 = L_1275;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentSpriteAsset_12), (void*)L_1275);
}
IL_2dcd:
{
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1276 = __this->___m_CurrentSpriteAsset_12;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_1277;
L_1277 = Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536(L_1276, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_139 = L_1277;
bool L_1278 = V_139;
if (!L_1278)
{
goto IL_2de7;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_2de7:
{
goto IL_2e83;
}
IL_2ded:
{
int32_t L_1279 = V_47;
bool L_1280;
L_1280 = MaterialReferenceManager_TryGetSpriteAsset_m848DD587C2EB15DF11C64095BAD6E34FE7CA8E3A(L_1279, (&V_140), NULL);
V_141 = L_1280;
bool L_1281 = V_141;
if (!L_1281)
{
goto IL_2e09;
}
}
{
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1282 = V_140;
__this->___m_CurrentSpriteAsset_12 = L_1282;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentSpriteAsset_12), (void*)L_1282);
goto IL_2e82;
}
IL_2e09:
{
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1283 = V_140;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_1284;
L_1284 = Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536(L_1283, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_142 = L_1284;
bool L_1285 = V_142;
if (!L_1285)
{
goto IL_2e59;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_1286 = V_0;
NullCheck(L_1286);
String_t* L_1287;
L_1287 = TextSettings_get_defaultSpriteAssetPath_mF57875222B7FACC9B69369305EEEB53FFE7986E0_inline(L_1286, NULL);
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1288 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1289 = __this->___m_XmlAttribute_91;
NullCheck(L_1289);
int32_t L_1290 = ((L_1289)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1291 = __this->___m_XmlAttribute_91;
NullCheck(L_1291);
int32_t L_1292 = ((L_1291)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
String_t* L_1293;
L_1293 = String_CreateString_mB7B3AC2AF28010538650051A9000369B1CD6BAB6(NULL, L_1288, L_1290, L_1292, NULL);
String_t* L_1294;
L_1294 = String_Concat_mAF2CE02CC0CB7460753D0A1A91CCF2B1E9804C5D(L_1287, L_1293, NULL);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1295;
L_1295 = Resources_Load_TisSpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313_mDBDF61D69ECF9D35DA0ABDE51CBA6667E0571EEF(L_1294, Resources_Load_TisSpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313_mDBDF61D69ECF9D35DA0ABDE51CBA6667E0571EEF_RuntimeMethod_var);
V_140 = L_1295;
}
IL_2e59:
{
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1296 = V_140;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_1297;
L_1297 = Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536(L_1296, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_143 = L_1297;
bool L_1298 = V_143;
if (!L_1298)
{
goto IL_2e6f;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_2e6f:
{
int32_t L_1299 = V_47;
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1300 = V_140;
MaterialReferenceManager_AddSpriteAsset_mC871D76124B93F40E57F5E99BAAB51770E347F49(L_1299, L_1300, NULL);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1301 = V_140;
__this->___m_CurrentSpriteAsset_12 = L_1301;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentSpriteAsset_12), (void*)L_1301);
}
IL_2e82:
{
}
IL_2e83:
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1302 = __this->___m_XmlAttribute_91;
NullCheck(L_1302);
int32_t L_1303 = ((L_1302)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueType_1;
V_144 = (bool)((((int32_t)L_1303) == ((int32_t)1))? 1 : 0);
bool L_1304 = V_144;
if (!L_1304)
{
goto IL_2f13;
}
}
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1305 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1306 = __this->___m_XmlAttribute_91;
NullCheck(L_1306);
int32_t L_1307 = ((L_1306)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1308 = __this->___m_XmlAttribute_91;
NullCheck(L_1308);
int32_t L_1309 = ((L_1308)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_1310;
L_1310 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_1305, L_1307, L_1309, NULL);
V_145 = il2cpp_codegen_cast_double_to_int<int32_t>(L_1310);
int32_t L_1311 = V_145;
V_146 = (bool)((((float)((float)L_1311)) == ((float)(-32767.0f)))? 1 : 0);
bool L_1312 = V_146;
if (!L_1312)
{
goto IL_2ee6;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_2ee6:
{
int32_t L_1313 = V_145;
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1314 = __this->___m_CurrentSpriteAsset_12;
NullCheck(L_1314);
List_1_t7DA088250C54C07AF1211AE132355AD2D343EE51* L_1315;
L_1315 = SpriteAsset_get_spriteCharacterTable_m8D0D65C430AD8BC8C2BC8151DC4672CC0F690E0A(L_1314, NULL);
NullCheck(L_1315);
int32_t L_1316;
L_1316 = List_1_get_Count_mFD42C320FC3C4884CD9A746FB26476D6662DFF58_inline(L_1315, List_1_get_Count_mFD42C320FC3C4884CD9A746FB26476D6662DFF58_RuntimeMethod_var);
V_147 = (bool)((((int32_t)L_1313) > ((int32_t)((int32_t)il2cpp_codegen_subtract(L_1316, 1))))? 1 : 0);
bool L_1317 = V_147;
if (!L_1317)
{
goto IL_2f0a;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_2f0a:
{
int32_t L_1318 = V_145;
__this->___m_SpriteIndex_73 = L_1318;
}
IL_2f13:
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_1319;
L_1319 = Color_get_white_m28BB6E19F27D4EE6858D3021A44F62BC74E20C43_inline(NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1320;
L_1320 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_1319, NULL);
__this->___m_SpriteColor_74 = L_1320;
__this->___m_TintSprite_96 = (bool)0;
V_148 = 0;
goto IL_3106;
}
IL_2f32:
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1321 = __this->___m_XmlAttribute_91;
int32_t L_1322 = V_148;
NullCheck(L_1321);
int32_t L_1323 = ((L_1321)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_1322)))->___nameHashCode_0;
V_149 = L_1323;
int32_t L_1324 = V_149;
V_152 = L_1324;
int32_t L_1325 = V_152;
V_151 = L_1325;
int32_t L_1326 = V_151;
if ((((int32_t)L_1326) > ((int32_t)((int32_t)2875623))))
{
goto IL_2f74;
}
}
{
int32_t L_1327 = V_151;
if ((((int32_t)L_1327) == ((int32_t)((int32_t)2283339))))
{
goto IL_30d6;
}
}
{
goto IL_2f66;
}
IL_2f66:
{
int32_t L_1328 = V_151;
if ((((int32_t)L_1328) == ((int32_t)((int32_t)2875623))))
{
goto IL_2f9e;
}
}
{
goto IL_30e3;
}
IL_2f74:
{
int32_t L_1329 = V_151;
if ((((int32_t)L_1329) == ((int32_t)((int32_t)2960519))))
{
goto IL_305e;
}
}
{
goto IL_2f82;
}
IL_2f82:
{
int32_t L_1330 = V_151;
if ((((int32_t)L_1330) == ((int32_t)((int32_t)81999901))))
{
goto IL_309f;
}
}
{
goto IL_2f90;
}
IL_2f90:
{
int32_t L_1331 = V_151;
if ((((int32_t)L_1331) == ((int32_t)((int32_t)84268030))))
{
goto IL_2fe5;
}
}
{
goto IL_30e3;
}
IL_2f9e:
{
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1332 = __this->___m_CurrentSpriteAsset_12;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1333 = __this->___m_XmlAttribute_91;
int32_t L_1334 = V_148;
NullCheck(L_1333);
int32_t L_1335 = ((L_1333)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_1334)))->___valueHashCode_4;
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1336;
L_1336 = SpriteAsset_SearchForSpriteByHashCode_mE89EE4F71AA7F78A18D9C4BABBF8BD393E2A5035(L_1332, L_1335, (bool)1, (&V_150), (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64*)NULL, NULL);
__this->___m_CurrentSpriteAsset_12 = L_1336;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentSpriteAsset_12), (void*)L_1336);
int32_t L_1337 = V_150;
V_153 = (bool)((((int32_t)L_1337) == ((int32_t)(-1)))? 1 : 0);
bool L_1338 = V_153;
if (!L_1338)
{
goto IL_2fd8;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_2fd8:
{
int32_t L_1339 = V_150;
__this->___m_SpriteIndex_73 = L_1339;
goto IL_30ff;
}
IL_2fe5:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1340 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1341 = __this->___m_XmlAttribute_91;
NullCheck(L_1341);
int32_t L_1342 = ((L_1341)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1343 = __this->___m_XmlAttribute_91;
NullCheck(L_1343);
int32_t L_1344 = ((L_1343)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_1345;
L_1345 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_1340, L_1342, L_1344, NULL);
V_150 = il2cpp_codegen_cast_double_to_int<int32_t>(L_1345);
int32_t L_1346 = V_150;
V_154 = (bool)((((float)((float)L_1346)) == ((float)(-32767.0f)))? 1 : 0);
bool L_1347 = V_154;
if (!L_1347)
{
goto IL_302d;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_302d:
{
int32_t L_1348 = V_150;
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1349 = __this->___m_CurrentSpriteAsset_12;
NullCheck(L_1349);
List_1_t7DA088250C54C07AF1211AE132355AD2D343EE51* L_1350;
L_1350 = SpriteAsset_get_spriteCharacterTable_m8D0D65C430AD8BC8C2BC8151DC4672CC0F690E0A(L_1349, NULL);
NullCheck(L_1350);
int32_t L_1351;
L_1351 = List_1_get_Count_mFD42C320FC3C4884CD9A746FB26476D6662DFF58_inline(L_1350, List_1_get_Count_mFD42C320FC3C4884CD9A746FB26476D6662DFF58_RuntimeMethod_var);
V_155 = (bool)((((int32_t)L_1348) > ((int32_t)((int32_t)il2cpp_codegen_subtract(L_1351, 1))))? 1 : 0);
bool L_1352 = V_155;
if (!L_1352)
{
goto IL_3051;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_3051:
{
int32_t L_1353 = V_150;
__this->___m_SpriteIndex_73 = L_1353;
goto IL_30ff;
}
IL_305e:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1354 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1355 = __this->___m_XmlAttribute_91;
int32_t L_1356 = V_148;
NullCheck(L_1355);
int32_t L_1357 = ((L_1355)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_1356)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1358 = __this->___m_XmlAttribute_91;
int32_t L_1359 = V_148;
NullCheck(L_1358);
int32_t L_1360 = ((L_1358)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_1359)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_1361;
L_1361 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_1354, L_1357, L_1360, NULL);
__this->___m_TintSprite_96 = (bool)((((int32_t)((((float)L_1361) == ((float)(0.0f)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_30ff;
}
IL_309f:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1362 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1363 = __this->___m_XmlAttribute_91;
int32_t L_1364 = V_148;
NullCheck(L_1363);
int32_t L_1365 = ((L_1363)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_1364)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1366 = __this->___m_XmlAttribute_91;
int32_t L_1367 = V_148;
NullCheck(L_1366);
int32_t L_1368 = ((L_1366)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_1367)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_1369;
L_1369 = TextGeneratorUtilities_HexCharsToColor_m0FC6E21EF35547ADFEA41B876C6FC1CD37C71019(L_1362, L_1365, L_1368, NULL);
__this->___m_SpriteColor_74 = L_1369;
goto IL_30ff;
}
IL_30d6:
{
il2cpp_codegen_runtime_class_init_inline(Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var);
Debug_LogWarning_mEF15C6B17CE4E1FA7E379CDB82CE40FCD89A3F28(_stringLiteralD145B4F79D40262E79305A5090EE637B2012419A, NULL);
goto IL_30ff;
}
IL_30e3:
{
int32_t L_1370 = V_149;
V_156 = (bool)((((int32_t)((((int32_t)L_1370) == ((int32_t)((int32_t)-991527447)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_1371 = V_156;
if (!L_1371)
{
goto IL_30fd;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_30fd:
{
goto IL_30ff;
}
IL_30ff:
{
int32_t L_1372 = V_148;
V_148 = ((int32_t)il2cpp_codegen_add(L_1372, 1));
}
IL_3106:
{
int32_t L_1373 = V_148;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1374 = __this->___m_XmlAttribute_91;
NullCheck(L_1374);
if ((((int32_t)L_1373) >= ((int32_t)((int32_t)(((RuntimeArray*)L_1374)->max_length)))))
{
goto IL_3129;
}
}
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1375 = __this->___m_XmlAttribute_91;
int32_t L_1376 = V_148;
NullCheck(L_1375);
int32_t L_1377 = ((L_1375)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_1376)))->___nameHashCode_0;
G_B668_0 = ((!(((uint32_t)L_1377) <= ((uint32_t)0)))? 1 : 0);
goto IL_312a;
}
IL_3129:
{
G_B668_0 = 0;
}
IL_312a:
{
V_157 = (bool)G_B668_0;
bool L_1378 = V_157;
if (L_1378)
{
goto IL_2f32;
}
}
{
int32_t L_1379 = __this->___m_SpriteIndex_73;
V_158 = (bool)((((int32_t)L_1379) == ((int32_t)(-1)))? 1 : 0);
bool L_1380 = V_158;
if (!L_1380)
{
goto IL_314a;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_314a:
{
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1381 = __this->___m_CurrentSpriteAsset_12;
NullCheck(L_1381);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_1382;
L_1382 = TextAsset_get_material_m4B9C02D34426436FDB01F1963A9FDC11D75604EF_inline(L_1381, NULL);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_1383 = __this->___m_CurrentSpriteAsset_12;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E** L_1384 = (&__this->___m_MaterialReferences_85);
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* L_1385 = __this->___m_MaterialReferenceIndexLookup_93;
int32_t L_1386;
L_1386 = MaterialReference_AddMaterialReference_m04F13DFCB5D0C707877E45A48B6C47CE80FC99E7(L_1382, L_1383, L_1384, L_1385, NULL);
__this->___m_CurrentMaterialIndex_9 = L_1386;
__this->___m_TextElementType_71 = 2;
V_28 = (bool)1;
goto IL_384a;
}
IL_3181:
{
int32_t L_1387 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_1387|8));
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_1388 = (&__this->___m_FontStyleStack_20);
uint8_t L_1389;
L_1389 = FontStyleStack_Add_m26E701C9F052EEEBB213B9B8BC6CB8F1F8F6AFCB(L_1388, 8, NULL);
V_28 = (bool)1;
goto IL_384a;
}
IL_31a4:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1390 = ___generationSettings3;
NullCheck(L_1390);
int32_t L_1391 = L_1390->___fontStyle_8;
V_159 = (bool)((((int32_t)((((int32_t)((int32_t)((int32_t)L_1391&8))) == ((int32_t)8))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_1392 = V_159;
if (!L_1392)
{
goto IL_31df;
}
}
{
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_1393 = (&__this->___m_FontStyleStack_20);
uint8_t L_1394;
L_1394 = FontStyleStack_Remove_mC2B4F44A6596E92D6992DBCA298648F8A7416CAB(L_1393, 8, NULL);
V_160 = (bool)((((int32_t)L_1394) == ((int32_t)0))? 1 : 0);
bool L_1395 = V_160;
if (!L_1395)
{
goto IL_31de;
}
}
{
int32_t L_1396 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_1396&((int32_t)-9)));
}
IL_31de:
{
}
IL_31df:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_31e7:
{
int32_t L_1397 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_1397|((int32_t)16)));
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_1398 = (&__this->___m_FontStyleStack_20);
uint8_t L_1399;
L_1399 = FontStyleStack_Add_m26E701C9F052EEEBB213B9B8BC6CB8F1F8F6AFCB(L_1398, ((int32_t)16), NULL);
V_28 = (bool)1;
goto IL_384a;
}
IL_320c:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1400 = ___generationSettings3;
NullCheck(L_1400);
int32_t L_1401 = L_1400->___fontStyle_8;
V_161 = (bool)((((int32_t)((((int32_t)((int32_t)((int32_t)L_1401&((int32_t)16)))) == ((int32_t)((int32_t)16)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_1402 = V_161;
if (!L_1402)
{
goto IL_324a;
}
}
{
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_1403 = (&__this->___m_FontStyleStack_20);
uint8_t L_1404;
L_1404 = FontStyleStack_Remove_mC2B4F44A6596E92D6992DBCA298648F8A7416CAB(L_1403, ((int32_t)16), NULL);
V_162 = (bool)((((int32_t)L_1404) == ((int32_t)0))? 1 : 0);
bool L_1405 = V_162;
if (!L_1405)
{
goto IL_3249;
}
}
{
int32_t L_1406 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_1406&((int32_t)-17)));
}
IL_3249:
{
}
IL_324a:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_3252:
{
int32_t L_1407 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_1407|((int32_t)32)));
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_1408 = (&__this->___m_FontStyleStack_20);
uint8_t L_1409;
L_1409 = FontStyleStack_Add_m26E701C9F052EEEBB213B9B8BC6CB8F1F8F6AFCB(L_1408, ((int32_t)32), NULL);
V_28 = (bool)1;
goto IL_384a;
}
IL_3277:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1410 = ___generationSettings3;
NullCheck(L_1410);
int32_t L_1411 = L_1410->___fontStyle_8;
V_163 = (bool)((((int32_t)((((int32_t)((int32_t)((int32_t)L_1411&((int32_t)32)))) == ((int32_t)((int32_t)32)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_1412 = V_163;
if (!L_1412)
{
goto IL_32b5;
}
}
{
FontStyleStack_t63C77495F068E6DF762D6AF063A817E3709659A7* L_1413 = (&__this->___m_FontStyleStack_20);
uint8_t L_1414;
L_1414 = FontStyleStack_Remove_mC2B4F44A6596E92D6992DBCA298648F8A7416CAB(L_1413, ((int32_t)32), NULL);
V_164 = (bool)((((int32_t)L_1414) == ((int32_t)0))? 1 : 0);
bool L_1415 = V_164;
if (!L_1415)
{
goto IL_32b4;
}
}
{
int32_t L_1416 = __this->___m_FontStyleInternal_19;
__this->___m_FontStyleInternal_19 = ((int32_t)((int32_t)L_1416&((int32_t)-33)));
}
IL_32b4:
{
}
IL_32b5:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_32bd:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1417 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1418 = __this->___m_XmlAttribute_91;
NullCheck(L_1418);
int32_t L_1419 = ((L_1418)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1420 = __this->___m_XmlAttribute_91;
NullCheck(L_1420);
int32_t L_1421 = ((L_1420)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_1422;
L_1422 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_1417, L_1419, L_1421, NULL);
V_39 = L_1422;
float L_1423 = V_39;
V_165 = (bool)((((float)L_1423) == ((float)(-32767.0f)))? 1 : 0);
bool L_1424 = V_165;
if (!L_1424)
{
goto IL_3303;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_3303:
{
float L_1425 = V_39;
__this->___m_MarginLeft_59 = L_1425;
int32_t L_1426 = V_3;
V_167 = L_1426;
int32_t L_1427 = V_167;
V_166 = L_1427;
int32_t L_1428 = V_166;
switch (L_1428)
{
case 0:
{
goto IL_3327;
}
case 1:
{
goto IL_3329;
}
case 2:
{
goto IL_3362;
}
}
}
{
goto IL_3398;
}
IL_3327:
{
goto IL_3398;
}
IL_3329:
{
float L_1429 = __this->___m_MarginLeft_59;
float L_1430 = __this->___m_FontScale_14;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1431 = ___generationSettings3;
NullCheck(L_1431);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1432 = L_1431->___fontAsset_4;
NullCheck(L_1432);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_1433;
L_1433 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_1432, NULL);
V_63 = L_1433;
float L_1434;
L_1434 = FaceInfo_get_tabWidth_mC6D9F42C40EDD767DE22050E4FBE3878AC96B161((&V_63), NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1435 = ___generationSettings3;
NullCheck(L_1435);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1436 = L_1435->___fontAsset_4;
NullCheck(L_1436);
uint8_t L_1437;
L_1437 = FontAsset_get_tabMultiple_m9C0422A00BFCF82091F14F4E303E2717247350AE(L_1436, NULL);
__this->___m_MarginLeft_59 = ((float)il2cpp_codegen_multiply(L_1429, ((float)(((float)il2cpp_codegen_multiply(L_1430, L_1434))/((float)L_1437)))));
goto IL_3398;
}
IL_3362:
{
float L_1438 = __this->___m_MarginWidth_2;
float L_1439 = __this->___m_Width_61;
G_B697_0 = L_1438;
G_B697_1 = __this;
if ((!(((float)L_1439) == ((float)(-1.0f)))))
{
G_B698_0 = L_1438;
G_B698_1 = __this;
goto IL_337d;
}
}
{
G_B699_0 = (0.0f);
G_B699_1 = G_B697_0;
G_B699_2 = G_B697_1;
goto IL_3383;
}
IL_337d:
{
float L_1440 = __this->___m_Width_61;
G_B699_0 = L_1440;
G_B699_1 = G_B698_0;
G_B699_2 = G_B698_1;
}
IL_3383:
{
float L_1441 = __this->___m_MarginLeft_59;
NullCheck(G_B699_2);
G_B699_2->___m_MarginLeft_59 = ((float)(((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_subtract(G_B699_1, G_B699_0)), L_1441))/(100.0f)));
goto IL_3398;
}
IL_3398:
{
float L_1442 = __this->___m_MarginLeft_59;
G_B701_0 = __this;
if ((((float)L_1442) >= ((float)(0.0f))))
{
G_B702_0 = __this;
goto IL_33ad;
}
}
{
G_B703_0 = (0.0f);
G_B703_1 = G_B701_0;
goto IL_33b3;
}
IL_33ad:
{
float L_1443 = __this->___m_MarginLeft_59;
G_B703_0 = L_1443;
G_B703_1 = G_B702_0;
}
IL_33b3:
{
NullCheck(G_B703_1);
G_B703_1->___m_MarginLeft_59 = G_B703_0;
float L_1444 = __this->___m_MarginLeft_59;
__this->___m_MarginRight_60 = L_1444;
V_28 = (bool)1;
goto IL_384a;
}
IL_33cc:
{
__this->___m_MarginLeft_59 = (0.0f);
__this->___m_MarginRight_60 = (0.0f);
V_28 = (bool)1;
goto IL_384a;
}
IL_33ea:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1445 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1446 = __this->___m_XmlAttribute_91;
NullCheck(L_1446);
int32_t L_1447 = ((L_1446)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1448 = __this->___m_XmlAttribute_91;
NullCheck(L_1448);
int32_t L_1449 = ((L_1448)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_1450;
L_1450 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_1445, L_1447, L_1449, NULL);
V_39 = L_1450;
float L_1451 = V_39;
V_168 = (bool)((((float)L_1451) == ((float)(-32767.0f)))? 1 : 0);
bool L_1452 = V_168;
if (!L_1452)
{
goto IL_3430;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_3430:
{
float L_1453 = V_39;
__this->___m_MarginLeft_59 = L_1453;
int32_t L_1454 = V_3;
V_170 = L_1454;
int32_t L_1455 = V_170;
V_169 = L_1455;
int32_t L_1456 = V_169;
switch (L_1456)
{
case 0:
{
goto IL_3454;
}
case 1:
{
goto IL_3456;
}
case 2:
{
goto IL_348f;
}
}
}
{
goto IL_34c5;
}
IL_3454:
{
goto IL_34c5;
}
IL_3456:
{
float L_1457 = __this->___m_MarginLeft_59;
float L_1458 = __this->___m_FontScale_14;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1459 = ___generationSettings3;
NullCheck(L_1459);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1460 = L_1459->___fontAsset_4;
NullCheck(L_1460);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_1461;
L_1461 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_1460, NULL);
V_63 = L_1461;
float L_1462;
L_1462 = FaceInfo_get_tabWidth_mC6D9F42C40EDD767DE22050E4FBE3878AC96B161((&V_63), NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1463 = ___generationSettings3;
NullCheck(L_1463);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1464 = L_1463->___fontAsset_4;
NullCheck(L_1464);
uint8_t L_1465;
L_1465 = FontAsset_get_tabMultiple_m9C0422A00BFCF82091F14F4E303E2717247350AE(L_1464, NULL);
__this->___m_MarginLeft_59 = ((float)il2cpp_codegen_multiply(L_1457, ((float)(((float)il2cpp_codegen_multiply(L_1458, L_1462))/((float)L_1465)))));
goto IL_34c5;
}
IL_348f:
{
float L_1466 = __this->___m_MarginWidth_2;
float L_1467 = __this->___m_Width_61;
G_B712_0 = L_1466;
G_B712_1 = __this;
if ((!(((float)L_1467) == ((float)(-1.0f)))))
{
G_B713_0 = L_1466;
G_B713_1 = __this;
goto IL_34aa;
}
}
{
G_B714_0 = (0.0f);
G_B714_1 = G_B712_0;
G_B714_2 = G_B712_1;
goto IL_34b0;
}
IL_34aa:
{
float L_1468 = __this->___m_Width_61;
G_B714_0 = L_1468;
G_B714_1 = G_B713_0;
G_B714_2 = G_B713_1;
}
IL_34b0:
{
float L_1469 = __this->___m_MarginLeft_59;
NullCheck(G_B714_2);
G_B714_2->___m_MarginLeft_59 = ((float)(((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_subtract(G_B714_1, G_B714_0)), L_1469))/(100.0f)));
goto IL_34c5;
}
IL_34c5:
{
float L_1470 = __this->___m_MarginLeft_59;
G_B716_0 = __this;
if ((((float)L_1470) >= ((float)(0.0f))))
{
G_B717_0 = __this;
goto IL_34da;
}
}
{
G_B718_0 = (0.0f);
G_B718_1 = G_B716_0;
goto IL_34e0;
}
IL_34da:
{
float L_1471 = __this->___m_MarginLeft_59;
G_B718_0 = L_1471;
G_B718_1 = G_B717_0;
}
IL_34e0:
{
NullCheck(G_B718_1);
G_B718_1->___m_MarginLeft_59 = G_B718_0;
V_28 = (bool)1;
goto IL_384a;
}
IL_34ed:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1472 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1473 = __this->___m_XmlAttribute_91;
NullCheck(L_1473);
int32_t L_1474 = ((L_1473)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1475 = __this->___m_XmlAttribute_91;
NullCheck(L_1475);
int32_t L_1476 = ((L_1475)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_1477;
L_1477 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_1472, L_1474, L_1476, NULL);
V_39 = L_1477;
float L_1478 = V_39;
V_171 = (bool)((((float)L_1478) == ((float)(-32767.0f)))? 1 : 0);
bool L_1479 = V_171;
if (!L_1479)
{
goto IL_3533;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_3533:
{
float L_1480 = V_39;
__this->___m_MarginRight_60 = L_1480;
int32_t L_1481 = V_3;
V_173 = L_1481;
int32_t L_1482 = V_173;
V_172 = L_1482;
int32_t L_1483 = V_172;
switch (L_1483)
{
case 0:
{
goto IL_3557;
}
case 1:
{
goto IL_3559;
}
case 2:
{
goto IL_3592;
}
}
}
{
goto IL_35c8;
}
IL_3557:
{
goto IL_35c8;
}
IL_3559:
{
float L_1484 = __this->___m_MarginRight_60;
float L_1485 = __this->___m_FontScale_14;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1486 = ___generationSettings3;
NullCheck(L_1486);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1487 = L_1486->___fontAsset_4;
NullCheck(L_1487);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_1488;
L_1488 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_1487, NULL);
V_63 = L_1488;
float L_1489;
L_1489 = FaceInfo_get_tabWidth_mC6D9F42C40EDD767DE22050E4FBE3878AC96B161((&V_63), NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1490 = ___generationSettings3;
NullCheck(L_1490);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1491 = L_1490->___fontAsset_4;
NullCheck(L_1491);
uint8_t L_1492;
L_1492 = FontAsset_get_tabMultiple_m9C0422A00BFCF82091F14F4E303E2717247350AE(L_1491, NULL);
__this->___m_MarginRight_60 = ((float)il2cpp_codegen_multiply(L_1484, ((float)(((float)il2cpp_codegen_multiply(L_1485, L_1489))/((float)L_1492)))));
goto IL_35c8;
}
IL_3592:
{
float L_1493 = __this->___m_MarginWidth_2;
float L_1494 = __this->___m_Width_61;
G_B726_0 = L_1493;
G_B726_1 = __this;
if ((!(((float)L_1494) == ((float)(-1.0f)))))
{
G_B727_0 = L_1493;
G_B727_1 = __this;
goto IL_35ad;
}
}
{
G_B728_0 = (0.0f);
G_B728_1 = G_B726_0;
G_B728_2 = G_B726_1;
goto IL_35b3;
}
IL_35ad:
{
float L_1495 = __this->___m_Width_61;
G_B728_0 = L_1495;
G_B728_1 = G_B727_0;
G_B728_2 = G_B727_1;
}
IL_35b3:
{
float L_1496 = __this->___m_MarginRight_60;
NullCheck(G_B728_2);
G_B728_2->___m_MarginRight_60 = ((float)(((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_subtract(G_B728_1, G_B728_0)), L_1496))/(100.0f)));
goto IL_35c8;
}
IL_35c8:
{
float L_1497 = __this->___m_MarginRight_60;
G_B730_0 = __this;
if ((((float)L_1497) >= ((float)(0.0f))))
{
G_B731_0 = __this;
goto IL_35dd;
}
}
{
G_B732_0 = (0.0f);
G_B732_1 = G_B730_0;
goto IL_35e3;
}
IL_35dd:
{
float L_1498 = __this->___m_MarginRight_60;
G_B732_0 = L_1498;
G_B732_1 = G_B731_0;
}
IL_35e3:
{
NullCheck(G_B732_1);
G_B732_1->___m_MarginRight_60 = G_B732_0;
V_28 = (bool)1;
goto IL_384a;
}
IL_35f0:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1499 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1500 = __this->___m_XmlAttribute_91;
NullCheck(L_1500);
int32_t L_1501 = ((L_1500)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1502 = __this->___m_XmlAttribute_91;
NullCheck(L_1502);
int32_t L_1503 = ((L_1502)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_1504;
L_1504 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_1499, L_1501, L_1503, NULL);
V_39 = L_1504;
float L_1505 = V_39;
if ((((float)L_1505) == ((float)(-32767.0f))))
{
goto IL_3633;
}
}
{
float L_1506 = V_39;
G_B736_0 = ((((float)L_1506) == ((float)(0.0f)))? 1 : 0);
goto IL_3634;
}
IL_3633:
{
G_B736_0 = 1;
}
IL_3634:
{
V_174 = (bool)G_B736_0;
bool L_1507 = V_174;
if (!L_1507)
{
goto IL_3642;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_3642:
{
float L_1508 = V_39;
__this->___m_LineHeight_40 = L_1508;
int32_t L_1509 = V_3;
V_176 = L_1509;
int32_t L_1510 = V_176;
V_175 = L_1510;
int32_t L_1511 = V_175;
switch (L_1511)
{
case 0:
{
goto IL_3666;
}
case 1:
{
goto IL_3668;
}
case 2:
{
goto IL_3693;
}
}
}
{
goto IL_36c4;
}
IL_3666:
{
goto IL_36c4;
}
IL_3668:
{
float L_1512 = __this->___m_LineHeight_40;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1513 = ___generationSettings3;
NullCheck(L_1513);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1514 = L_1513->___fontAsset_4;
NullCheck(L_1514);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_1515;
L_1515 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_1514, NULL);
V_63 = L_1515;
float L_1516;
L_1516 = FaceInfo_get_lineHeight_m528B4A822181FCECF3D4FF1045DF288E5872AB9D((&V_63), NULL);
float L_1517 = __this->___m_FontScale_14;
__this->___m_LineHeight_40 = ((float)il2cpp_codegen_multiply(L_1512, ((float)il2cpp_codegen_multiply(L_1516, L_1517))));
goto IL_36c4;
}
IL_3693:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1518 = ___generationSettings3;
NullCheck(L_1518);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1519 = L_1518->___fontAsset_4;
NullCheck(L_1519);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_1520;
L_1520 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_1519, NULL);
V_63 = L_1520;
float L_1521;
L_1521 = FaceInfo_get_lineHeight_m528B4A822181FCECF3D4FF1045DF288E5872AB9D((&V_63), NULL);
float L_1522 = __this->___m_LineHeight_40;
float L_1523 = __this->___m_FontScale_14;
__this->___m_LineHeight_40 = ((float)il2cpp_codegen_multiply(((float)(((float)il2cpp_codegen_multiply(L_1521, L_1522))/(100.0f))), L_1523));
goto IL_36c4;
}
IL_36c4:
{
V_28 = (bool)1;
goto IL_384a;
}
IL_36cc:
{
__this->___m_LineHeight_40 = (-32767.0f);
V_28 = (bool)1;
goto IL_384a;
}
IL_36df:
{
__this->___m_TagNoParsing_47 = (bool)1;
V_28 = (bool)1;
goto IL_384a;
}
IL_36ee:
{
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1524 = __this->___m_XmlAttribute_91;
NullCheck(L_1524);
int32_t L_1525 = ((L_1524)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueHashCode_4;
V_48 = L_1525;
bool L_1526 = __this->___m_IsParsingText_72;
V_177 = L_1526;
bool L_1527 = V_177;
if (!L_1527)
{
goto IL_371d;
}
}
{
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8* L_1528 = (&__this->___m_ActionStack_37);
int32_t L_1529 = V_48;
TextProcessingStack_1_Add_m022CA737B4340C51370BE07A79E71C63F553AD3C(L_1528, L_1529, TextProcessingStack_1_Add_m022CA737B4340C51370BE07A79E71C63F553AD3C_RuntimeMethod_var);
}
IL_371d:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_3725:
{
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8* L_1530 = (&__this->___m_ActionStack_37);
int32_t L_1531;
L_1531 = TextProcessingStack_1_Remove_m22098B317E1049C5DFD900721F2F489220C44212(L_1530, TextProcessingStack_1_Remove_m22098B317E1049C5DFD900721F2F489220C44212_RuntimeMethod_var);
V_28 = (bool)0;
goto IL_384a;
}
IL_3739:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1532 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1533 = __this->___m_XmlAttribute_91;
NullCheck(L_1533);
int32_t L_1534 = ((L_1533)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1535 = __this->___m_XmlAttribute_91;
NullCheck(L_1535);
int32_t L_1536 = ((L_1535)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_1537;
L_1537 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_1532, L_1534, L_1536, NULL);
V_39 = L_1537;
float L_1538 = V_39;
V_178 = (bool)((((float)L_1538) == ((float)(-32767.0f)))? 1 : 0);
bool L_1539 = V_178;
if (!L_1539)
{
goto IL_377f;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_377f:
{
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_1540;
L_1540 = Vector3_get_zero_m9D7F7B580B5A276411267E96AA3425736D9BDC83_inline(NULL);
Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974 L_1541;
L_1541 = Quaternion_get_identity_mB9CAEEB21BC81352CBF32DB9664BFC06FA7EA27B_inline(NULL);
float L_1542 = V_39;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_1543;
memset((&L_1543), 0, sizeof(L_1543));
Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline((&L_1543), L_1542, (1.0f), (1.0f), /*hidden argument*/NULL);
Matrix4x4_tDB70CF134A14BA38190C59AA700BCE10E2AED3E6 L_1544;
L_1544 = Matrix4x4_TRS_mFEBA6926DB0044B96EF0CE98F30FEE7596820680(L_1540, L_1541, L_1543, NULL);
__this->___m_FxMatrix_78 = L_1544;
__this->___m_IsFxMatrixSet_38 = (bool)1;
V_28 = (bool)1;
goto IL_384a;
}
IL_37b4:
{
__this->___m_IsFxMatrixSet_38 = (bool)0;
V_28 = (bool)1;
goto IL_384a;
}
IL_37c3:
{
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_1545 = __this->___m_RichTextTag_92;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1546 = __this->___m_XmlAttribute_91;
NullCheck(L_1546);
int32_t L_1547 = ((L_1546)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueStartIndex_2;
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_1548 = __this->___m_XmlAttribute_91;
NullCheck(L_1548);
int32_t L_1549 = ((L_1548)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___valueLength_3;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
float L_1550;
L_1550 = TextGeneratorUtilities_ConvertToFloat_m5D83113DC84E90EC14F041B5870C73D2AE688978(L_1545, L_1547, L_1549, NULL);
V_39 = L_1550;
float L_1551 = V_39;
V_179 = (bool)((((float)L_1551) == ((float)(-32767.0f)))? 1 : 0);
bool L_1552 = V_179;
if (!L_1552)
{
goto IL_3806;
}
}
{
V_28 = (bool)0;
goto IL_384a;
}
IL_3806:
{
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_1553;
L_1553 = Vector3_get_zero_m9D7F7B580B5A276411267E96AA3425736D9BDC83_inline(NULL);
float L_1554 = V_39;
Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974 L_1555;
L_1555 = Quaternion_Euler_mD4601D966F1F58F3FCA01B3FC19A12D0AD0396DD_inline((0.0f), (0.0f), L_1554, NULL);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_1556;
L_1556 = Vector3_get_one_mE6A2D5C6578E94268024613B596BF09F990B1260_inline(NULL);
Matrix4x4_tDB70CF134A14BA38190C59AA700BCE10E2AED3E6 L_1557;
L_1557 = Matrix4x4_TRS_mFEBA6926DB0044B96EF0CE98F30FEE7596820680(L_1553, L_1555, L_1556, NULL);
__this->___m_FxMatrix_78 = L_1557;
__this->___m_IsFxMatrixSet_38 = (bool)1;
V_28 = (bool)1;
goto IL_384a;
}
IL_3838:
{
__this->___m_IsFxMatrixSet_38 = (bool)0;
V_28 = (bool)1;
goto IL_384a;
}
IL_3844:
{
V_28 = (bool)0;
goto IL_384a;
}
IL_384a:
{
bool L_1558 = V_28;
return L_1558;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::SaveGlyphVertexInfo(System.Single,System.Single,UnityEngine.Color32,UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_SaveGlyphVertexInfo_m0CD6E1D45488FFC6675294AC64F40AC23C986A09 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, float ___padding0, float ___stylePadding1, Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___vertexColor2, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings3, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo4, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_0;
memset((&V_0), 0, sizeof(V_0));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_1;
memset((&V_1), 0, sizeof(V_1));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_2;
memset((&V_2), 0, sizeof(V_2));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_3;
memset((&V_3), 0, sizeof(V_3));
bool V_4 = false;
bool V_5 = false;
bool V_6 = false;
bool V_7 = false;
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D V_8;
memset((&V_8), 0, sizeof(V_8));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B2_0 = NULL;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B1_0 = NULL;
uint8_t G_B3_0 = 0x0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B3_1 = NULL;
int32_t G_B8_0 = 0;
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_0 = ___textInfo4;
NullCheck(L_0);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_1 = L_0->___textElementInfo_10;
int32_t L_2 = __this->___m_CharacterCount_48;
NullCheck(L_1);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_3 = (&((L_1)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_2)))->___vertexBottomLeft_15);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_4 = ___textInfo4;
NullCheck(L_4);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_5 = L_4->___textElementInfo_10;
int32_t L_6 = __this->___m_CharacterCount_48;
NullCheck(L_5);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_7 = ((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_6)))->___bottomLeft_19;
L_3->___position_0 = L_7;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_8 = ___textInfo4;
NullCheck(L_8);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_9 = L_8->___textElementInfo_10;
int32_t L_10 = __this->___m_CharacterCount_48;
NullCheck(L_9);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_11 = (&((L_9)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_10)))->___vertexTopLeft_14);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_12 = ___textInfo4;
NullCheck(L_12);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_13 = L_12->___textElementInfo_10;
int32_t L_14 = __this->___m_CharacterCount_48;
NullCheck(L_13);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_15 = ((L_13)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_14)))->___topLeft_18;
L_11->___position_0 = L_15;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_16 = ___textInfo4;
NullCheck(L_16);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_17 = L_16->___textElementInfo_10;
int32_t L_18 = __this->___m_CharacterCount_48;
NullCheck(L_17);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_19 = (&((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->___vertexTopRight_16);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_20 = ___textInfo4;
NullCheck(L_20);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_21 = L_20->___textElementInfo_10;
int32_t L_22 = __this->___m_CharacterCount_48;
NullCheck(L_21);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_23 = ((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->___topRight_20;
L_19->___position_0 = L_23;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_24 = ___textInfo4;
NullCheck(L_24);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_25 = L_24->___textElementInfo_10;
int32_t L_26 = __this->___m_CharacterCount_48;
NullCheck(L_25);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_27 = (&((L_25)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_26)))->___vertexBottomRight_17);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_28 = ___textInfo4;
NullCheck(L_28);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_29 = L_28->___textElementInfo_10;
int32_t L_30 = __this->___m_CharacterCount_48;
NullCheck(L_29);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_31 = ((L_29)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_30)))->___bottomRight_21;
L_27->___position_0 = L_31;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_32 = (&__this->___m_FontColor32_27);
uint8_t L_33 = L_32->___a_4;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_34 = ___vertexColor2;
uint8_t L_35 = L_34.___a_4;
G_B1_0 = (&___vertexColor2);
if ((((int32_t)L_33) < ((int32_t)L_35)))
{
G_B2_0 = (&___vertexColor2);
goto IL_00ea;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_36 = ___vertexColor2;
uint8_t L_37 = L_36.___a_4;
G_B3_0 = L_37;
G_B3_1 = G_B1_0;
goto IL_00f5;
}
IL_00ea:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_38 = (&__this->___m_FontColor32_27);
uint8_t L_39 = L_38->___a_4;
G_B3_0 = L_39;
G_B3_1 = G_B2_0;
}
IL_00f5:
{
G_B3_1->___a_4 = G_B3_0;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_40 = ___generationSettings3;
NullCheck(L_40);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_41 = L_40->___fontColorGradient_15;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_42;
L_42 = Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536(L_41, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_4 = L_42;
bool L_43 = V_4;
if (!L_43)
{
goto IL_0188;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_44 = ___textInfo4;
NullCheck(L_44);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_45 = L_44->___textElementInfo_10;
int32_t L_46 = __this->___m_CharacterCount_48;
NullCheck(L_45);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_47 = (&((L_45)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_46)))->___vertexBottomLeft_15);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_48 = ___vertexColor2;
L_47->___color_4 = L_48;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_49 = ___textInfo4;
NullCheck(L_49);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_50 = L_49->___textElementInfo_10;
int32_t L_51 = __this->___m_CharacterCount_48;
NullCheck(L_50);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_52 = (&((L_50)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_51)))->___vertexTopLeft_14);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_53 = ___vertexColor2;
L_52->___color_4 = L_53;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_54 = ___textInfo4;
NullCheck(L_54);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_55 = L_54->___textElementInfo_10;
int32_t L_56 = __this->___m_CharacterCount_48;
NullCheck(L_55);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_57 = (&((L_55)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_56)))->___vertexTopRight_16);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_58 = ___vertexColor2;
L_57->___color_4 = L_58;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_59 = ___textInfo4;
NullCheck(L_59);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_60 = L_59->___textElementInfo_10;
int32_t L_61 = __this->___m_CharacterCount_48;
NullCheck(L_60);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_62 = (&((L_60)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_61)))->___vertexBottomRight_17);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_63 = ___vertexColor2;
L_62->___color_4 = L_63;
goto IL_0307;
}
IL_0188:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_64 = ___generationSettings3;
NullCheck(L_64);
bool L_65 = L_64->___overrideRichTextColors_17;
if (L_65)
{
goto IL_01a2;
}
}
{
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63* L_66 = (&__this->___m_ColorStack_31);
int32_t L_67 = L_66->___index_1;
G_B8_0 = ((((int32_t)L_67) > ((int32_t)1))? 1 : 0);
goto IL_01a3;
}
IL_01a2:
{
G_B8_0 = 0;
}
IL_01a3:
{
V_5 = (bool)G_B8_0;
bool L_68 = V_5;
if (!L_68)
{
goto IL_0224;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_69 = ___textInfo4;
NullCheck(L_69);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_70 = L_69->___textElementInfo_10;
int32_t L_71 = __this->___m_CharacterCount_48;
NullCheck(L_70);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_72 = (&((L_70)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_71)))->___vertexBottomLeft_15);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_73 = ___vertexColor2;
L_72->___color_4 = L_73;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_74 = ___textInfo4;
NullCheck(L_74);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_75 = L_74->___textElementInfo_10;
int32_t L_76 = __this->___m_CharacterCount_48;
NullCheck(L_75);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_77 = (&((L_75)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_76)))->___vertexTopLeft_14);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_78 = ___vertexColor2;
L_77->___color_4 = L_78;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_79 = ___textInfo4;
NullCheck(L_79);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_80 = L_79->___textElementInfo_10;
int32_t L_81 = __this->___m_CharacterCount_48;
NullCheck(L_80);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_82 = (&((L_80)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_81)))->___vertexTopRight_16);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_83 = ___vertexColor2;
L_82->___color_4 = L_83;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_84 = ___textInfo4;
NullCheck(L_84);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_85 = L_84->___textElementInfo_10;
int32_t L_86 = __this->___m_CharacterCount_48;
NullCheck(L_85);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_87 = (&((L_85)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_86)))->___vertexBottomRight_17);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_88 = ___vertexColor2;
L_87->___color_4 = L_88;
goto IL_0306;
}
IL_0224:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_89 = ___textInfo4;
NullCheck(L_89);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_90 = L_89->___textElementInfo_10;
int32_t L_91 = __this->___m_CharacterCount_48;
NullCheck(L_90);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_92 = (&((L_90)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_91)))->___vertexBottomLeft_15);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_93 = ___generationSettings3;
NullCheck(L_93);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_94 = L_93->___fontColorGradient_15;
NullCheck(L_94);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_95 = L_94->___bottomLeft_7;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_96 = ___vertexColor2;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_97;
L_97 = Color32_op_Implicit_m203A634DBB77053C9400C68065CA29529103D172_inline(L_96, NULL);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_98;
L_98 = Color_op_Multiply_mF17D278EB0ABC9AEB32E829D5CA98784E0D6B66F_inline(L_95, L_97, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_99;
L_99 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_98, NULL);
L_92->___color_4 = L_99;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_100 = ___textInfo4;
NullCheck(L_100);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_101 = L_100->___textElementInfo_10;
int32_t L_102 = __this->___m_CharacterCount_48;
NullCheck(L_101);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_103 = (&((L_101)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_102)))->___vertexTopLeft_14);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_104 = ___generationSettings3;
NullCheck(L_104);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_105 = L_104->___fontColorGradient_15;
NullCheck(L_105);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_106 = L_105->___topLeft_5;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_107 = ___vertexColor2;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_108;
L_108 = Color32_op_Implicit_m203A634DBB77053C9400C68065CA29529103D172_inline(L_107, NULL);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_109;
L_109 = Color_op_Multiply_mF17D278EB0ABC9AEB32E829D5CA98784E0D6B66F_inline(L_106, L_108, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_110;
L_110 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_109, NULL);
L_103->___color_4 = L_110;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_111 = ___textInfo4;
NullCheck(L_111);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_112 = L_111->___textElementInfo_10;
int32_t L_113 = __this->___m_CharacterCount_48;
NullCheck(L_112);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_114 = (&((L_112)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_113)))->___vertexTopRight_16);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_115 = ___generationSettings3;
NullCheck(L_115);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_116 = L_115->___fontColorGradient_15;
NullCheck(L_116);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_117 = L_116->___topRight_6;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_118 = ___vertexColor2;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_119;
L_119 = Color32_op_Implicit_m203A634DBB77053C9400C68065CA29529103D172_inline(L_118, NULL);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_120;
L_120 = Color_op_Multiply_mF17D278EB0ABC9AEB32E829D5CA98784E0D6B66F_inline(L_117, L_119, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_121;
L_121 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_120, NULL);
L_114->___color_4 = L_121;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_122 = ___textInfo4;
NullCheck(L_122);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_123 = L_122->___textElementInfo_10;
int32_t L_124 = __this->___m_CharacterCount_48;
NullCheck(L_123);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_125 = (&((L_123)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_124)))->___vertexBottomRight_17);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_126 = ___generationSettings3;
NullCheck(L_126);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_127 = L_126->___fontColorGradient_15;
NullCheck(L_127);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_128 = L_127->___bottomRight_8;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_129 = ___vertexColor2;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_130;
L_130 = Color32_op_Implicit_m203A634DBB77053C9400C68065CA29529103D172_inline(L_129, NULL);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_131;
L_131 = Color_op_Multiply_mF17D278EB0ABC9AEB32E829D5CA98784E0D6B66F_inline(L_128, L_130, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_132;
L_132 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_131, NULL);
L_125->___color_4 = L_132;
}
IL_0306:
{
}
IL_0307:
{
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_133 = __this->___m_ColorGradientPreset_35;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_134;
L_134 = Object_op_Inequality_m4D656395C27694A7F33F5AA8DE80A7AAF9E20BA7(L_133, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_6 = L_134;
bool L_135 = V_6;
if (!L_135)
{
goto IL_0422;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_136 = ___textInfo4;
NullCheck(L_136);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_137 = L_136->___textElementInfo_10;
int32_t L_138 = __this->___m_CharacterCount_48;
NullCheck(L_137);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_139 = (&((L_137)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_138)))->___vertexBottomLeft_15);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_140 = (&L_139->___color_4);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_141 = L_140;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_142 = (*(Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B*)L_141);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_143;
L_143 = Color32_op_Implicit_m203A634DBB77053C9400C68065CA29529103D172_inline(L_142, NULL);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_144 = __this->___m_ColorGradientPreset_35;
NullCheck(L_144);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_145 = L_144->___bottomLeft_7;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_146;
L_146 = Color_op_Multiply_mF17D278EB0ABC9AEB32E829D5CA98784E0D6B66F_inline(L_143, L_145, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_147;
L_147 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_146, NULL);
*(Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B*)L_141 = L_147;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_148 = ___textInfo4;
NullCheck(L_148);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_149 = L_148->___textElementInfo_10;
int32_t L_150 = __this->___m_CharacterCount_48;
NullCheck(L_149);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_151 = (&((L_149)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_150)))->___vertexTopLeft_14);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_152 = (&L_151->___color_4);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_153 = L_152;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_154 = (*(Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B*)L_153);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_155;
L_155 = Color32_op_Implicit_m203A634DBB77053C9400C68065CA29529103D172_inline(L_154, NULL);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_156 = __this->___m_ColorGradientPreset_35;
NullCheck(L_156);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_157 = L_156->___topLeft_5;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_158;
L_158 = Color_op_Multiply_mF17D278EB0ABC9AEB32E829D5CA98784E0D6B66F_inline(L_155, L_157, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_159;
L_159 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_158, NULL);
*(Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B*)L_153 = L_159;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_160 = ___textInfo4;
NullCheck(L_160);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_161 = L_160->___textElementInfo_10;
int32_t L_162 = __this->___m_CharacterCount_48;
NullCheck(L_161);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_163 = (&((L_161)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_162)))->___vertexTopRight_16);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_164 = (&L_163->___color_4);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_165 = L_164;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_166 = (*(Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B*)L_165);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_167;
L_167 = Color32_op_Implicit_m203A634DBB77053C9400C68065CA29529103D172_inline(L_166, NULL);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_168 = __this->___m_ColorGradientPreset_35;
NullCheck(L_168);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_169 = L_168->___topRight_6;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_170;
L_170 = Color_op_Multiply_mF17D278EB0ABC9AEB32E829D5CA98784E0D6B66F_inline(L_167, L_169, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_171;
L_171 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_170, NULL);
*(Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B*)L_165 = L_171;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_172 = ___textInfo4;
NullCheck(L_172);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_173 = L_172->___textElementInfo_10;
int32_t L_174 = __this->___m_CharacterCount_48;
NullCheck(L_173);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_175 = (&((L_173)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_174)))->___vertexBottomRight_17);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_176 = (&L_175->___color_4);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_177 = L_176;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_178 = (*(Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B*)L_177);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_179;
L_179 = Color32_op_Implicit_m203A634DBB77053C9400C68065CA29529103D172_inline(L_178, NULL);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_180 = __this->___m_ColorGradientPreset_35;
NullCheck(L_180);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_181 = L_180->___bottomRight_8;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_182;
L_182 = Color_op_Multiply_mF17D278EB0ABC9AEB32E829D5CA98784E0D6B66F_inline(L_179, L_181, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_183;
L_183 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_182, NULL);
*(Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B*)L_177 = L_183;
}
IL_0422:
{
bool L_184 = __this->___m_IsSdfShader_100;
V_7 = (bool)((((int32_t)L_184) == ((int32_t)0))? 1 : 0);
bool L_185 = V_7;
if (!L_185)
{
goto IL_0438;
}
}
{
___stylePadding1 = (0.0f);
}
IL_0438:
{
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_186 = __this->___m_CachedTextElement_75;
NullCheck(L_186);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_187;
L_187 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_186, NULL);
NullCheck(L_187);
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D L_188;
L_188 = Glyph_get_glyphRect_m94E7C5FE682695CDC096248EF027079F33768EE5(L_187, NULL);
V_8 = L_188;
int32_t L_189;
L_189 = GlyphRect_get_x_m453EECC6C6F08602B1F74C5E1D8EE1163236A898((&V_8), NULL);
float L_190 = ___padding0;
float L_191 = ___stylePadding1;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_192 = __this->___m_CurrentFontAsset_7;
NullCheck(L_192);
int32_t L_193;
L_193 = FontAsset_get_atlasWidth_mE711550FDD4B5F988B77AB5D332A80A34B5CF364(L_192, NULL);
(&V_0)->___x_0 = ((float)(((float)il2cpp_codegen_subtract(((float)il2cpp_codegen_subtract(((float)L_189), L_190)), L_191))/((float)L_193)));
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_194 = __this->___m_CachedTextElement_75;
NullCheck(L_194);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_195;
L_195 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_194, NULL);
NullCheck(L_195);
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D L_196;
L_196 = Glyph_get_glyphRect_m94E7C5FE682695CDC096248EF027079F33768EE5(L_195, NULL);
V_8 = L_196;
int32_t L_197;
L_197 = GlyphRect_get_y_mE31390BB3185EEA82DD16EA41E208F6A0397E3EA((&V_8), NULL);
float L_198 = ___padding0;
float L_199 = ___stylePadding1;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_200 = __this->___m_CurrentFontAsset_7;
NullCheck(L_200);
int32_t L_201;
L_201 = FontAsset_get_atlasHeight_m306FBF7D35C39123A4770E147FAF95B1B8DE8086(L_200, NULL);
(&V_0)->___y_1 = ((float)(((float)il2cpp_codegen_subtract(((float)il2cpp_codegen_subtract(((float)L_197), L_198)), L_199))/((float)L_201)));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_202 = V_0;
float L_203 = L_202.___x_0;
(&V_1)->___x_0 = L_203;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_204 = __this->___m_CachedTextElement_75;
NullCheck(L_204);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_205;
L_205 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_204, NULL);
NullCheck(L_205);
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D L_206;
L_206 = Glyph_get_glyphRect_m94E7C5FE682695CDC096248EF027079F33768EE5(L_205, NULL);
V_8 = L_206;
int32_t L_207;
L_207 = GlyphRect_get_y_mE31390BB3185EEA82DD16EA41E208F6A0397E3EA((&V_8), NULL);
float L_208 = ___padding0;
float L_209 = ___stylePadding1;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_210 = __this->___m_CachedTextElement_75;
NullCheck(L_210);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_211;
L_211 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_210, NULL);
NullCheck(L_211);
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D L_212;
L_212 = Glyph_get_glyphRect_m94E7C5FE682695CDC096248EF027079F33768EE5(L_211, NULL);
V_8 = L_212;
int32_t L_213;
L_213 = GlyphRect_get_height_m7F4D04452994E0D18762BB44352608E484DAAC1A((&V_8), NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_214 = __this->___m_CurrentFontAsset_7;
NullCheck(L_214);
int32_t L_215;
L_215 = FontAsset_get_atlasHeight_m306FBF7D35C39123A4770E147FAF95B1B8DE8086(L_214, NULL);
(&V_1)->___y_1 = ((float)(((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(((float)L_207), L_208)), L_209)), ((float)L_213)))/((float)L_215)));
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_216 = __this->___m_CachedTextElement_75;
NullCheck(L_216);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_217;
L_217 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_216, NULL);
NullCheck(L_217);
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D L_218;
L_218 = Glyph_get_glyphRect_m94E7C5FE682695CDC096248EF027079F33768EE5(L_217, NULL);
V_8 = L_218;
int32_t L_219;
L_219 = GlyphRect_get_x_m453EECC6C6F08602B1F74C5E1D8EE1163236A898((&V_8), NULL);
float L_220 = ___padding0;
float L_221 = ___stylePadding1;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_222 = __this->___m_CachedTextElement_75;
NullCheck(L_222);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_223;
L_223 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_222, NULL);
NullCheck(L_223);
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D L_224;
L_224 = Glyph_get_glyphRect_m94E7C5FE682695CDC096248EF027079F33768EE5(L_223, NULL);
V_8 = L_224;
int32_t L_225;
L_225 = GlyphRect_get_width_mD291C7644BBF18D6A213427F6C9C28840F233F12((&V_8), NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_226 = __this->___m_CurrentFontAsset_7;
NullCheck(L_226);
int32_t L_227;
L_227 = FontAsset_get_atlasWidth_mE711550FDD4B5F988B77AB5D332A80A34B5CF364(L_226, NULL);
(&V_2)->___x_0 = ((float)(((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(((float)L_219), L_220)), L_221)), ((float)L_225)))/((float)L_227)));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_228 = V_1;
float L_229 = L_228.___y_1;
(&V_2)->___y_1 = L_229;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_230 = V_2;
float L_231 = L_230.___x_0;
(&V_3)->___x_0 = L_231;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_232 = V_0;
float L_233 = L_232.___y_1;
(&V_3)->___y_1 = L_233;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_234 = ___textInfo4;
NullCheck(L_234);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_235 = L_234->___textElementInfo_10;
int32_t L_236 = __this->___m_CharacterCount_48;
NullCheck(L_235);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_237 = (&((L_235)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_236)))->___vertexBottomLeft_15);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_238 = V_0;
L_237->___uv_1 = L_238;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_239 = ___textInfo4;
NullCheck(L_239);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_240 = L_239->___textElementInfo_10;
int32_t L_241 = __this->___m_CharacterCount_48;
NullCheck(L_240);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_242 = (&((L_240)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_241)))->___vertexTopLeft_14);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_243 = V_1;
L_242->___uv_1 = L_243;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_244 = ___textInfo4;
NullCheck(L_244);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_245 = L_244->___textElementInfo_10;
int32_t L_246 = __this->___m_CharacterCount_48;
NullCheck(L_245);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_247 = (&((L_245)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_246)))->___vertexTopRight_16);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_248 = V_2;
L_247->___uv_1 = L_248;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_249 = ___textInfo4;
NullCheck(L_249);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_250 = L_249->___textElementInfo_10;
int32_t L_251 = __this->___m_CharacterCount_48;
NullCheck(L_250);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_252 = (&((L_250)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_251)))->___vertexBottomRight_17);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_253 = V_3;
L_252->___uv_1 = L_253;
return;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::SaveSpriteVertexInfo(UnityEngine.Color32,UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_SaveSpriteVertexInfo_m4B47901F01927E7CC4E486A1C4354AFBF4D138A5 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___vertexColor0, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings1, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B V_0;
memset((&V_0), 0, sizeof(V_0));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B V_1;
memset((&V_1), 0, sizeof(V_1));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B V_2;
memset((&V_2), 0, sizeof(V_2));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B V_3;
memset((&V_3), 0, sizeof(V_3));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B V_4;
memset((&V_4), 0, sizeof(V_4));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_5;
memset((&V_5), 0, sizeof(V_5));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_6;
memset((&V_6), 0, sizeof(V_6));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_7;
memset((&V_7), 0, sizeof(V_7));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_8;
memset((&V_8), 0, sizeof(V_8));
bool V_9 = false;
uint8_t V_10 = 0x0;
bool V_11 = false;
bool V_12 = false;
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D V_13;
memset((&V_13), 0, sizeof(V_13));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B G_B5_0;
memset((&G_B5_0), 0, sizeof(G_B5_0));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B7_0 = NULL;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B6_0 = NULL;
uint8_t G_B11_0 = 0x0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B11_1 = NULL;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B9_0 = NULL;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B9_1 = NULL;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B8_0 = NULL;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B8_1 = NULL;
uint8_t G_B10_0 = 0x0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B10_1 = NULL;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B10_2 = NULL;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B G_B15_0;
memset((&G_B15_0), 0, sizeof(G_B15_0));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B G_B18_0;
memset((&G_B18_0), 0, sizeof(G_B18_0));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B G_B21_0;
memset((&G_B21_0), 0, sizeof(G_B21_0));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B G_B24_0;
memset((&G_B24_0), 0, sizeof(G_B24_0));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B G_B29_0;
memset((&G_B29_0), 0, sizeof(G_B29_0));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B G_B32_0;
memset((&G_B32_0), 0, sizeof(G_B32_0));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B G_B35_0;
memset((&G_B35_0), 0, sizeof(G_B35_0));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B G_B38_0;
memset((&G_B38_0), 0, sizeof(G_B38_0));
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_0 = ___textInfo2;
NullCheck(L_0);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_1 = L_0->___textElementInfo_10;
int32_t L_2 = __this->___m_CharacterCount_48;
NullCheck(L_1);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_3 = (&((L_1)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_2)))->___vertexBottomLeft_15);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_4 = ___textInfo2;
NullCheck(L_4);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_5 = L_4->___textElementInfo_10;
int32_t L_6 = __this->___m_CharacterCount_48;
NullCheck(L_5);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_7 = ((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_6)))->___bottomLeft_19;
L_3->___position_0 = L_7;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_8 = ___textInfo2;
NullCheck(L_8);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_9 = L_8->___textElementInfo_10;
int32_t L_10 = __this->___m_CharacterCount_48;
NullCheck(L_9);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_11 = (&((L_9)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_10)))->___vertexTopLeft_14);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_12 = ___textInfo2;
NullCheck(L_12);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_13 = L_12->___textElementInfo_10;
int32_t L_14 = __this->___m_CharacterCount_48;
NullCheck(L_13);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_15 = ((L_13)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_14)))->___topLeft_18;
L_11->___position_0 = L_15;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_16 = ___textInfo2;
NullCheck(L_16);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_17 = L_16->___textElementInfo_10;
int32_t L_18 = __this->___m_CharacterCount_48;
NullCheck(L_17);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_19 = (&((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18)))->___vertexTopRight_16);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_20 = ___textInfo2;
NullCheck(L_20);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_21 = L_20->___textElementInfo_10;
int32_t L_22 = __this->___m_CharacterCount_48;
NullCheck(L_21);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_23 = ((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_22)))->___topRight_20;
L_19->___position_0 = L_23;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_24 = ___textInfo2;
NullCheck(L_24);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_25 = L_24->___textElementInfo_10;
int32_t L_26 = __this->___m_CharacterCount_48;
NullCheck(L_25);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_27 = (&((L_25)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_26)))->___vertexBottomRight_17);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_28 = ___textInfo2;
NullCheck(L_28);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_29 = L_28->___textElementInfo_10;
int32_t L_30 = __this->___m_CharacterCount_48;
NullCheck(L_29);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_31 = ((L_29)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_30)))->___bottomRight_21;
L_27->___position_0 = L_31;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_32 = ___generationSettings1;
NullCheck(L_32);
bool L_33 = L_32->___tintSprites_16;
V_9 = L_33;
bool L_34 = V_9;
if (!L_34)
{
goto IL_00d8;
}
}
{
__this->___m_TintSprite_96 = (bool)1;
}
IL_00d8:
{
bool L_35 = __this->___m_TintSprite_96;
if (L_35)
{
goto IL_00e8;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_36 = __this->___m_SpriteColor_74;
G_B5_0 = L_36;
goto IL_00f4;
}
IL_00e8:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_37 = __this->___m_SpriteColor_74;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_38 = ___vertexColor0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_39;
L_39 = ColorUtilities_MultiplyColors_m1C827E2736C56C30621318B1358ABC9BF5B59C68(L_37, L_38, NULL);
G_B5_0 = L_39;
}
IL_00f4:
{
V_0 = G_B5_0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_40 = V_0;
uint8_t L_41 = L_40.___a_4;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_42 = (&__this->___m_FontColor32_27);
uint8_t L_43 = L_42->___a_4;
G_B6_0 = (&V_0);
if ((((int32_t)L_41) < ((int32_t)L_43)))
{
G_B7_0 = (&V_0);
goto IL_0117;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_44 = (&__this->___m_FontColor32_27);
uint8_t L_45 = L_44->___a_4;
G_B11_0 = L_45;
G_B11_1 = G_B6_0;
goto IL_013f;
}
IL_0117:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_46 = V_0;
uint8_t L_47 = L_46.___a_4;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_48 = ___vertexColor0;
uint8_t L_49 = L_48.___a_4;
G_B8_0 = (&V_0);
G_B8_1 = G_B7_0;
if ((((int32_t)L_47) < ((int32_t)L_49)))
{
G_B9_0 = (&V_0);
G_B9_1 = G_B7_0;
goto IL_012f;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_50 = ___vertexColor0;
uint8_t L_51 = L_50.___a_4;
G_B10_0 = L_51;
G_B10_1 = G_B8_0;
G_B10_2 = G_B8_1;
goto IL_0135;
}
IL_012f:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_52 = V_0;
uint8_t L_53 = L_52.___a_4;
G_B10_0 = L_53;
G_B10_1 = G_B9_0;
G_B10_2 = G_B9_1;
}
IL_0135:
{
uint8_t L_54 = G_B10_0;
V_10 = L_54;
G_B10_1->___a_4 = L_54;
uint8_t L_55 = V_10;
G_B11_0 = L_55;
G_B11_1 = G_B10_2;
}
IL_013f:
{
G_B11_1->___a_4 = G_B11_0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_56 = V_0;
V_1 = L_56;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_57 = V_0;
V_2 = L_57;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_58 = V_0;
V_3 = L_58;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_59 = V_0;
V_4 = L_59;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_60 = ___generationSettings1;
NullCheck(L_60);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_61 = L_60->___fontColorGradient_15;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_62;
L_62 = Object_op_Inequality_m4D656395C27694A7F33F5AA8DE80A7AAF9E20BA7(L_61, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_11 = L_62;
bool L_63 = V_11;
if (!L_63)
{
goto IL_01ef;
}
}
{
bool L_64 = __this->___m_TintSprite_96;
if (L_64)
{
goto IL_016e;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_65 = V_1;
G_B15_0 = L_65;
goto IL_0184;
}
IL_016e:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_66 = V_1;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_67 = ___generationSettings1;
NullCheck(L_67);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_68 = L_67->___fontColorGradient_15;
NullCheck(L_68);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_69 = L_68->___bottomLeft_7;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_70;
L_70 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_69, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_71;
L_71 = ColorUtilities_MultiplyColors_m1C827E2736C56C30621318B1358ABC9BF5B59C68(L_66, L_70, NULL);
G_B15_0 = L_71;
}
IL_0184:
{
V_1 = G_B15_0;
bool L_72 = __this->___m_TintSprite_96;
if (L_72)
{
goto IL_0190;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_73 = V_2;
G_B18_0 = L_73;
goto IL_01a6;
}
IL_0190:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_74 = V_2;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_75 = ___generationSettings1;
NullCheck(L_75);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_76 = L_75->___fontColorGradient_15;
NullCheck(L_76);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_77 = L_76->___topLeft_5;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_78;
L_78 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_77, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_79;
L_79 = ColorUtilities_MultiplyColors_m1C827E2736C56C30621318B1358ABC9BF5B59C68(L_74, L_78, NULL);
G_B18_0 = L_79;
}
IL_01a6:
{
V_2 = G_B18_0;
bool L_80 = __this->___m_TintSprite_96;
if (L_80)
{
goto IL_01b2;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_81 = V_3;
G_B21_0 = L_81;
goto IL_01c8;
}
IL_01b2:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_82 = V_3;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_83 = ___generationSettings1;
NullCheck(L_83);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_84 = L_83->___fontColorGradient_15;
NullCheck(L_84);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_85 = L_84->___topRight_6;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_86;
L_86 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_85, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_87;
L_87 = ColorUtilities_MultiplyColors_m1C827E2736C56C30621318B1358ABC9BF5B59C68(L_82, L_86, NULL);
G_B21_0 = L_87;
}
IL_01c8:
{
V_3 = G_B21_0;
bool L_88 = __this->___m_TintSprite_96;
if (L_88)
{
goto IL_01d5;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_89 = V_4;
G_B24_0 = L_89;
goto IL_01ec;
}
IL_01d5:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_90 = V_4;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_91 = ___generationSettings1;
NullCheck(L_91);
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_92 = L_91->___fontColorGradient_15;
NullCheck(L_92);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_93 = L_92->___bottomRight_8;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_94;
L_94 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_93, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_95;
L_95 = ColorUtilities_MultiplyColors_m1C827E2736C56C30621318B1358ABC9BF5B59C68(L_90, L_94, NULL);
G_B24_0 = L_95;
}
IL_01ec:
{
V_4 = G_B24_0;
}
IL_01ef:
{
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_96 = __this->___m_ColorGradientPreset_35;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_97;
L_97 = Object_op_Inequality_m4D656395C27694A7F33F5AA8DE80A7AAF9E20BA7(L_96, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_12 = L_97;
bool L_98 = V_12;
if (!L_98)
{
goto IL_0291;
}
}
{
bool L_99 = __this->___m_TintSprite_96;
if (L_99)
{
goto IL_0210;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_100 = V_1;
G_B29_0 = L_100;
goto IL_0226;
}
IL_0210:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_101 = V_1;
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_102 = __this->___m_ColorGradientPreset_35;
NullCheck(L_102);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_103 = L_102->___bottomLeft_7;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_104;
L_104 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_103, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_105;
L_105 = ColorUtilities_MultiplyColors_m1C827E2736C56C30621318B1358ABC9BF5B59C68(L_101, L_104, NULL);
G_B29_0 = L_105;
}
IL_0226:
{
V_1 = G_B29_0;
bool L_106 = __this->___m_TintSprite_96;
if (L_106)
{
goto IL_0232;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_107 = V_2;
G_B32_0 = L_107;
goto IL_0248;
}
IL_0232:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_108 = V_2;
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_109 = __this->___m_ColorGradientPreset_35;
NullCheck(L_109);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_110 = L_109->___topLeft_5;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_111;
L_111 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_110, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_112;
L_112 = ColorUtilities_MultiplyColors_m1C827E2736C56C30621318B1358ABC9BF5B59C68(L_108, L_111, NULL);
G_B32_0 = L_112;
}
IL_0248:
{
V_2 = G_B32_0;
bool L_113 = __this->___m_TintSprite_96;
if (L_113)
{
goto IL_0254;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_114 = V_3;
G_B35_0 = L_114;
goto IL_026a;
}
IL_0254:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_115 = V_3;
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_116 = __this->___m_ColorGradientPreset_35;
NullCheck(L_116);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_117 = L_116->___topRight_6;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_118;
L_118 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_117, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_119;
L_119 = ColorUtilities_MultiplyColors_m1C827E2736C56C30621318B1358ABC9BF5B59C68(L_115, L_118, NULL);
G_B35_0 = L_119;
}
IL_026a:
{
V_3 = G_B35_0;
bool L_120 = __this->___m_TintSprite_96;
if (L_120)
{
goto IL_0277;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_121 = V_4;
G_B38_0 = L_121;
goto IL_028e;
}
IL_0277:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_122 = V_4;
TextColorGradient_t22D94E441E8E8CD772B966C167E5C0AEB0919D70* L_123 = __this->___m_ColorGradientPreset_35;
NullCheck(L_123);
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_124 = L_123->___bottomRight_8;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_125;
L_125 = Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline(L_124, NULL);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_126;
L_126 = ColorUtilities_MultiplyColors_m1C827E2736C56C30621318B1358ABC9BF5B59C68(L_122, L_125, NULL);
G_B38_0 = L_126;
}
IL_028e:
{
V_4 = G_B38_0;
}
IL_0291:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_127 = ___textInfo2;
NullCheck(L_127);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_128 = L_127->___textElementInfo_10;
int32_t L_129 = __this->___m_CharacterCount_48;
NullCheck(L_128);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_130 = (&((L_128)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_129)))->___vertexBottomLeft_15);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_131 = V_1;
L_130->___color_4 = L_131;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_132 = ___textInfo2;
NullCheck(L_132);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_133 = L_132->___textElementInfo_10;
int32_t L_134 = __this->___m_CharacterCount_48;
NullCheck(L_133);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_135 = (&((L_133)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_134)))->___vertexTopLeft_14);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_136 = V_2;
L_135->___color_4 = L_136;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_137 = ___textInfo2;
NullCheck(L_137);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_138 = L_137->___textElementInfo_10;
int32_t L_139 = __this->___m_CharacterCount_48;
NullCheck(L_138);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_140 = (&((L_138)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_139)))->___vertexTopRight_16);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_141 = V_3;
L_140->___color_4 = L_141;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_142 = ___textInfo2;
NullCheck(L_142);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_143 = L_142->___textElementInfo_10;
int32_t L_144 = __this->___m_CharacterCount_48;
NullCheck(L_143);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_145 = (&((L_143)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_144)))->___vertexBottomRight_17);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_146 = V_4;
L_145->___color_4 = L_146;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_147 = __this->___m_CachedTextElement_75;
NullCheck(L_147);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_148;
L_148 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_147, NULL);
NullCheck(L_148);
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D L_149;
L_149 = Glyph_get_glyphRect_m94E7C5FE682695CDC096248EF027079F33768EE5(L_148, NULL);
V_13 = L_149;
int32_t L_150;
L_150 = GlyphRect_get_x_m453EECC6C6F08602B1F74C5E1D8EE1163236A898((&V_13), NULL);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_151 = __this->___m_CurrentSpriteAsset_12;
NullCheck(L_151);
Texture_t791CBB51219779964E0E8A2ED7C1AA5F92A4A700* L_152;
L_152 = SpriteAsset_get_spriteSheet_mC53205114A12A79F7495FA5F5EFC9948F151256B(L_151, NULL);
NullCheck(L_152);
int32_t L_153;
L_153 = VirtualFuncInvoker0< int32_t >::Invoke(4 /* System.Int32 UnityEngine.Texture::get_width() */, L_152);
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_154 = __this->___m_CachedTextElement_75;
NullCheck(L_154);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_155;
L_155 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_154, NULL);
NullCheck(L_155);
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D L_156;
L_156 = Glyph_get_glyphRect_m94E7C5FE682695CDC096248EF027079F33768EE5(L_155, NULL);
V_13 = L_156;
int32_t L_157;
L_157 = GlyphRect_get_y_mE31390BB3185EEA82DD16EA41E208F6A0397E3EA((&V_13), NULL);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_158 = __this->___m_CurrentSpriteAsset_12;
NullCheck(L_158);
Texture_t791CBB51219779964E0E8A2ED7C1AA5F92A4A700* L_159;
L_159 = SpriteAsset_get_spriteSheet_mC53205114A12A79F7495FA5F5EFC9948F151256B(L_158, NULL);
NullCheck(L_159);
int32_t L_160;
L_160 = VirtualFuncInvoker0< int32_t >::Invoke(6 /* System.Int32 UnityEngine.Texture::get_height() */, L_159);
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&V_5), ((float)(((float)L_150)/((float)L_153))), ((float)(((float)L_157)/((float)L_160))), NULL);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_161 = V_5;
float L_162 = L_161.___x_0;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_163 = __this->___m_CachedTextElement_75;
NullCheck(L_163);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_164;
L_164 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_163, NULL);
NullCheck(L_164);
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D L_165;
L_165 = Glyph_get_glyphRect_m94E7C5FE682695CDC096248EF027079F33768EE5(L_164, NULL);
V_13 = L_165;
int32_t L_166;
L_166 = GlyphRect_get_y_mE31390BB3185EEA82DD16EA41E208F6A0397E3EA((&V_13), NULL);
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_167 = __this->___m_CachedTextElement_75;
NullCheck(L_167);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_168;
L_168 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_167, NULL);
NullCheck(L_168);
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D L_169;
L_169 = Glyph_get_glyphRect_m94E7C5FE682695CDC096248EF027079F33768EE5(L_168, NULL);
V_13 = L_169;
int32_t L_170;
L_170 = GlyphRect_get_height_m7F4D04452994E0D18762BB44352608E484DAAC1A((&V_13), NULL);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_171 = __this->___m_CurrentSpriteAsset_12;
NullCheck(L_171);
Texture_t791CBB51219779964E0E8A2ED7C1AA5F92A4A700* L_172;
L_172 = SpriteAsset_get_spriteSheet_mC53205114A12A79F7495FA5F5EFC9948F151256B(L_171, NULL);
NullCheck(L_172);
int32_t L_173;
L_173 = VirtualFuncInvoker0< int32_t >::Invoke(6 /* System.Int32 UnityEngine.Texture::get_height() */, L_172);
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&V_6), L_162, ((float)(((float)((int32_t)il2cpp_codegen_add(L_166, L_170)))/((float)L_173))), NULL);
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_174 = __this->___m_CachedTextElement_75;
NullCheck(L_174);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_175;
L_175 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_174, NULL);
NullCheck(L_175);
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D L_176;
L_176 = Glyph_get_glyphRect_m94E7C5FE682695CDC096248EF027079F33768EE5(L_175, NULL);
V_13 = L_176;
int32_t L_177;
L_177 = GlyphRect_get_x_m453EECC6C6F08602B1F74C5E1D8EE1163236A898((&V_13), NULL);
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_178 = __this->___m_CachedTextElement_75;
NullCheck(L_178);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_179;
L_179 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_178, NULL);
NullCheck(L_179);
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D L_180;
L_180 = Glyph_get_glyphRect_m94E7C5FE682695CDC096248EF027079F33768EE5(L_179, NULL);
V_13 = L_180;
int32_t L_181;
L_181 = GlyphRect_get_width_mD291C7644BBF18D6A213427F6C9C28840F233F12((&V_13), NULL);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_182 = __this->___m_CurrentSpriteAsset_12;
NullCheck(L_182);
Texture_t791CBB51219779964E0E8A2ED7C1AA5F92A4A700* L_183;
L_183 = SpriteAsset_get_spriteSheet_mC53205114A12A79F7495FA5F5EFC9948F151256B(L_182, NULL);
NullCheck(L_183);
int32_t L_184;
L_184 = VirtualFuncInvoker0< int32_t >::Invoke(4 /* System.Int32 UnityEngine.Texture::get_width() */, L_183);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_185 = V_6;
float L_186 = L_185.___y_1;
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&V_7), ((float)(((float)((int32_t)il2cpp_codegen_add(L_177, L_181)))/((float)L_184))), L_186, NULL);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_187 = V_7;
float L_188 = L_187.___x_0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_189 = V_5;
float L_190 = L_189.___y_1;
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&V_8), L_188, L_190, NULL);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_191 = ___textInfo2;
NullCheck(L_191);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_192 = L_191->___textElementInfo_10;
int32_t L_193 = __this->___m_CharacterCount_48;
NullCheck(L_192);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_194 = (&((L_192)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_193)))->___vertexBottomLeft_15);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_195 = V_5;
L_194->___uv_1 = L_195;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_196 = ___textInfo2;
NullCheck(L_196);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_197 = L_196->___textElementInfo_10;
int32_t L_198 = __this->___m_CharacterCount_48;
NullCheck(L_197);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_199 = (&((L_197)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_198)))->___vertexTopLeft_14);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_200 = V_6;
L_199->___uv_1 = L_200;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_201 = ___textInfo2;
NullCheck(L_201);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_202 = L_201->___textElementInfo_10;
int32_t L_203 = __this->___m_CharacterCount_48;
NullCheck(L_202);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_204 = (&((L_202)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_203)))->___vertexTopRight_16);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_205 = V_7;
L_204->___uv_1 = L_205;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_206 = ___textInfo2;
NullCheck(L_206);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_207 = L_206->___textElementInfo_10;
int32_t L_208 = __this->___m_CharacterCount_48;
NullCheck(L_207);
TextVertex_tF030A16DC67EAF3F6C9C9C0564D4B88758B173A9* L_209 = (&((L_207)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_208)))->___vertexBottomRight_17);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_210 = V_8;
L_209->___uv_1 = L_210;
return;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::DrawUnderlineMesh(UnityEngine.Vector3,UnityEngine.Vector3,System.Int32&,System.Single,System.Single,System.Single,System.Single,UnityEngine.Color32,UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_DrawUnderlineMesh_m7BA49F01C2BC1BEF7845A3D8487B45F15A3BB20E (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___start0, Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___end1, int32_t* ___index2, float ___startScale3, float ___endScale4, float ___maxScale5, float ___sdfScale6, Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___underlineColor7, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings8, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo9, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral804E3B76CDCD07E13EAE2E489D1D76D145E0DED6);
s_Il2CppMethodInitialized = true;
}
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* V_0 = NULL;
int32_t V_1 = 0;
int32_t V_2 = 0;
GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A V_3;
memset((&V_3), 0, sizeof(V_3));
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D V_4;
memset((&V_4), 0, sizeof(V_4));
float V_5 = 0.0f;
float V_6 = 0.0f;
float V_7 = 0.0f;
float V_8 = 0.0f;
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* V_9 = NULL;
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* V_10 = NULL;
int32_t V_11 = 0;
int32_t V_12 = 0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_13;
memset((&V_13), 0, sizeof(V_13));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_14;
memset((&V_14), 0, sizeof(V_14));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_15;
memset((&V_15), 0, sizeof(V_15));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_16;
memset((&V_16), 0, sizeof(V_16));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_17;
memset((&V_17), 0, sizeof(V_17));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_18;
memset((&V_18), 0, sizeof(V_18));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_19;
memset((&V_19), 0, sizeof(V_19));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_20;
memset((&V_20), 0, sizeof(V_20));
float V_21 = 0.0f;
float V_22 = 0.0f;
float V_23 = 0.0f;
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* V_24 = NULL;
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* V_25 = NULL;
bool V_26 = false;
bool V_27 = false;
bool V_28 = false;
bool V_29 = false;
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 V_30;
memset((&V_30), 0, sizeof(V_30));
bool V_31 = false;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 V_32;
memset((&V_32), 0, sizeof(V_32));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B12_0 = NULL;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B11_0 = NULL;
uint8_t G_B13_0 = 0x0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B13_1 = NULL;
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_0 = ___generationSettings8;
NullCheck(L_0);
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_1 = L_0->___textSettings_9;
V_0 = L_1;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_2 = ___generationSettings8;
TextGenerator_GetUnderlineSpecialCharacter_mE5E9D5DEB9A7758333CDDCAD05EF25F076EC1AD5(__this, L_2, NULL);
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD* L_3 = (&__this->___m_Underline_98);
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_4 = L_3->___character_0;
V_26 = (bool)((((RuntimeObject*)(Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC*)L_4) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_5 = V_26;
if (!L_5)
{
goto IL_0043;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_6 = V_0;
NullCheck(L_6);
bool L_7;
L_7 = TextSettings_get_displayWarnings_m3CA9FCB44B30CC06F54CD3716D68285FF844DF83_inline(L_6, NULL);
V_27 = L_7;
bool L_8 = V_27;
if (!L_8)
{
goto IL_003e;
}
}
{
il2cpp_codegen_runtime_class_init_inline(Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var);
Debug_LogWarning_mEF15C6B17CE4E1FA7E379CDB82CE40FCD89A3F28(_stringLiteral804E3B76CDCD07E13EAE2E489D1D76D145E0DED6, NULL);
}
IL_003e:
{
goto IL_0ad9;
}
IL_0043:
{
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD* L_9 = (&__this->___m_Underline_98);
int32_t L_10 = L_9->___materialIndex_3;
V_1 = L_10;
int32_t* L_11 = ___index2;
int32_t L_12 = *((int32_t*)L_11);
V_2 = ((int32_t)il2cpp_codegen_add(L_12, ((int32_t)12)));
int32_t L_13 = V_2;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_14 = ___textInfo9;
NullCheck(L_14);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_15 = L_14->___meshInfo_15;
int32_t L_16 = V_1;
NullCheck(L_15);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_17 = ((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_16)))->___vertices_2;
NullCheck(L_17);
V_28 = (bool)((((int32_t)L_13) > ((int32_t)((int32_t)(((RuntimeArray*)L_17)->max_length))))? 1 : 0);
bool L_18 = V_28;
if (!L_18)
{
goto IL_008a;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_19 = ___textInfo9;
NullCheck(L_19);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_20 = L_19->___meshInfo_15;
int32_t L_21 = V_1;
NullCheck(L_20);
int32_t L_22 = V_2;
MeshInfo_ResizeMeshInfo_mE411FE40935FB9CFB7C334B3A1F216A98B96F5FC(((L_20)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_21))), ((int32_t)(L_22/4)), NULL);
}
IL_008a:
{
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_23 = ___start0;
float L_24 = L_23.___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_25 = ___end1;
float L_26 = L_25.___y_3;
float L_27;
L_27 = Mathf_Min_m4F2A9C5128DC3F9E84865EE7ADA8DB5DA6B8B507_inline(L_24, L_26, NULL);
(&___start0)->___y_3 = L_27;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_28 = ___start0;
float L_29 = L_28.___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_30 = ___end1;
float L_31 = L_30.___y_3;
float L_32;
L_32 = Mathf_Min_m4F2A9C5128DC3F9E84865EE7ADA8DB5DA6B8B507_inline(L_29, L_31, NULL);
(&___end1)->___y_3 = L_32;
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD* L_33 = (&__this->___m_Underline_98);
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_34 = L_33->___character_0;
NullCheck(L_34);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_35;
L_35 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_34, NULL);
NullCheck(L_35);
GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A L_36;
L_36 = Glyph_get_metrics_mB6E9D3D1899E35BA257638F6F58B7D260170B6FA(L_35, NULL);
V_3 = L_36;
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD* L_37 = (&__this->___m_Underline_98);
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_38 = L_37->___character_0;
NullCheck(L_38);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_39;
L_39 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_38, NULL);
NullCheck(L_39);
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D L_40;
L_40 = Glyph_get_glyphRect_m94E7C5FE682695CDC096248EF027079F33768EE5(L_39, NULL);
V_4 = L_40;
float L_41;
L_41 = GlyphMetrics_get_width_m0F9F391E3A98984167E8001D4101BE1CE9354D13((&V_3), NULL);
float L_42 = ___maxScale5;
V_5 = ((float)il2cpp_codegen_multiply(((float)(L_41/(2.0f))), L_42));
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_43 = ___end1;
float L_44 = L_43.___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_45 = ___start0;
float L_46 = L_45.___x_2;
float L_47;
L_47 = GlyphMetrics_get_width_m0F9F391E3A98984167E8001D4101BE1CE9354D13((&V_3), NULL);
float L_48 = ___maxScale5;
V_29 = (bool)((((float)((float)il2cpp_codegen_subtract(L_44, L_46))) < ((float)((float)il2cpp_codegen_multiply(L_47, L_48))))? 1 : 0);
bool L_49 = V_29;
if (!L_49)
{
goto IL_012f;
}
}
{
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_50 = ___end1;
float L_51 = L_50.___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_52 = ___start0;
float L_53 = L_52.___x_2;
V_5 = ((float)(((float)il2cpp_codegen_subtract(L_51, L_53))/(2.0f)));
}
IL_012f:
{
float L_54 = __this->___m_Padding_11;
float L_55 = ___startScale3;
float L_56 = ___maxScale5;
V_6 = ((float)(((float)il2cpp_codegen_multiply(L_54, L_55))/L_56));
float L_57 = __this->___m_Padding_11;
float L_58 = ___endScale4;
float L_59 = ___maxScale5;
V_7 = ((float)(((float)il2cpp_codegen_multiply(L_57, L_58))/L_59));
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD* L_60 = (&__this->___m_Underline_98);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_61 = L_60->___fontAsset_1;
NullCheck(L_61);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_62;
L_62 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_61, NULL);
V_30 = L_62;
float L_63;
L_63 = FaceInfo_get_underlineThickness_mC032F8C026994AF3FD49E6AB12E113F61EFA98E2((&V_30), NULL);
V_8 = L_63;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_64 = ___textInfo9;
NullCheck(L_64);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_65 = L_64->___meshInfo_15;
NullCheck(L_65);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_66 = ((L_65)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___vertices_2;
V_9 = L_66;
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_67 = V_9;
int32_t* L_68 = ___index2;
int32_t L_69 = *((int32_t*)L_68);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_70 = ___start0;
float L_71 = V_8;
float L_72 = __this->___m_Padding_11;
float L_73 = ___maxScale5;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_74;
memset((&L_74), 0, sizeof(L_74));
Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline((&L_74), (0.0f), ((float)il2cpp_codegen_subtract((0.0f), ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_add(L_71, L_72)), L_73)))), (0.0f), /*hidden argument*/NULL);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_75;
L_75 = Vector3_op_Addition_m087D6F0EC60843D455F9F83D25FE42B2433AAD1D_inline(L_70, L_74, NULL);
NullCheck(L_67);
(L_67)->SetAt(static_cast<il2cpp_array_size_t>(L_69), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_75);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_76 = V_9;
int32_t* L_77 = ___index2;
int32_t L_78 = *((int32_t*)L_77);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_79 = ___start0;
float L_80 = __this->___m_Padding_11;
float L_81 = ___maxScale5;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_82;
memset((&L_82), 0, sizeof(L_82));
Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline((&L_82), (0.0f), ((float)il2cpp_codegen_multiply(L_80, L_81)), (0.0f), /*hidden argument*/NULL);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_83;
L_83 = Vector3_op_Addition_m087D6F0EC60843D455F9F83D25FE42B2433AAD1D_inline(L_79, L_82, NULL);
NullCheck(L_76);
(L_76)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_78, 1))), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_83);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_84 = V_9;
int32_t* L_85 = ___index2;
int32_t L_86 = *((int32_t*)L_85);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_87 = V_9;
int32_t* L_88 = ___index2;
int32_t L_89 = *((int32_t*)L_88);
NullCheck(L_87);
int32_t L_90 = ((int32_t)il2cpp_codegen_add(L_89, 1));
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_91 = (L_87)->GetAt(static_cast<il2cpp_array_size_t>(L_90));
float L_92 = V_5;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_93;
memset((&L_93), 0, sizeof(L_93));
Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline((&L_93), L_92, (0.0f), (0.0f), /*hidden argument*/NULL);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_94;
L_94 = Vector3_op_Addition_m087D6F0EC60843D455F9F83D25FE42B2433AAD1D_inline(L_91, L_93, NULL);
NullCheck(L_84);
(L_84)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_86, 2))), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_94);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_95 = V_9;
int32_t* L_96 = ___index2;
int32_t L_97 = *((int32_t*)L_96);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_98 = V_9;
int32_t* L_99 = ___index2;
int32_t L_100 = *((int32_t*)L_99);
NullCheck(L_98);
int32_t L_101 = L_100;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_102 = (L_98)->GetAt(static_cast<il2cpp_array_size_t>(L_101));
float L_103 = V_5;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_104;
memset((&L_104), 0, sizeof(L_104));
Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline((&L_104), L_103, (0.0f), (0.0f), /*hidden argument*/NULL);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_105;
L_105 = Vector3_op_Addition_m087D6F0EC60843D455F9F83D25FE42B2433AAD1D_inline(L_102, L_104, NULL);
NullCheck(L_95);
(L_95)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_97, 3))), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_105);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_106 = V_9;
int32_t* L_107 = ___index2;
int32_t L_108 = *((int32_t*)L_107);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_109 = V_9;
int32_t* L_110 = ___index2;
int32_t L_111 = *((int32_t*)L_110);
NullCheck(L_109);
int32_t L_112 = ((int32_t)il2cpp_codegen_add(L_111, 3));
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_113 = (L_109)->GetAt(static_cast<il2cpp_array_size_t>(L_112));
NullCheck(L_106);
(L_106)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_108, 4))), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_113);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_114 = V_9;
int32_t* L_115 = ___index2;
int32_t L_116 = *((int32_t*)L_115);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_117 = V_9;
int32_t* L_118 = ___index2;
int32_t L_119 = *((int32_t*)L_118);
NullCheck(L_117);
int32_t L_120 = ((int32_t)il2cpp_codegen_add(L_119, 2));
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_121 = (L_117)->GetAt(static_cast<il2cpp_array_size_t>(L_120));
NullCheck(L_114);
(L_114)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_116, 5))), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_121);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_122 = V_9;
int32_t* L_123 = ___index2;
int32_t L_124 = *((int32_t*)L_123);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_125 = ___end1;
float L_126 = V_5;
float L_127 = __this->___m_Padding_11;
float L_128 = ___maxScale5;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_129;
memset((&L_129), 0, sizeof(L_129));
Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline((&L_129), ((-L_126)), ((float)il2cpp_codegen_multiply(L_127, L_128)), (0.0f), /*hidden argument*/NULL);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_130;
L_130 = Vector3_op_Addition_m087D6F0EC60843D455F9F83D25FE42B2433AAD1D_inline(L_125, L_129, NULL);
NullCheck(L_122);
(L_122)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_124, 6))), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_130);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_131 = V_9;
int32_t* L_132 = ___index2;
int32_t L_133 = *((int32_t*)L_132);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_134 = ___end1;
float L_135 = V_5;
float L_136 = V_8;
float L_137 = __this->___m_Padding_11;
float L_138 = ___maxScale5;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_139;
memset((&L_139), 0, sizeof(L_139));
Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline((&L_139), ((-L_135)), ((float)il2cpp_codegen_multiply(((-((float)il2cpp_codegen_add(L_136, L_137)))), L_138)), (0.0f), /*hidden argument*/NULL);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_140;
L_140 = Vector3_op_Addition_m087D6F0EC60843D455F9F83D25FE42B2433AAD1D_inline(L_134, L_139, NULL);
NullCheck(L_131);
(L_131)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_133, 7))), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_140);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_141 = V_9;
int32_t* L_142 = ___index2;
int32_t L_143 = *((int32_t*)L_142);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_144 = V_9;
int32_t* L_145 = ___index2;
int32_t L_146 = *((int32_t*)L_145);
NullCheck(L_144);
int32_t L_147 = ((int32_t)il2cpp_codegen_add(L_146, 7));
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_148 = (L_144)->GetAt(static_cast<il2cpp_array_size_t>(L_147));
NullCheck(L_141);
(L_141)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_143, 8))), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_148);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_149 = V_9;
int32_t* L_150 = ___index2;
int32_t L_151 = *((int32_t*)L_150);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_152 = V_9;
int32_t* L_153 = ___index2;
int32_t L_154 = *((int32_t*)L_153);
NullCheck(L_152);
int32_t L_155 = ((int32_t)il2cpp_codegen_add(L_154, 6));
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_156 = (L_152)->GetAt(static_cast<il2cpp_array_size_t>(L_155));
NullCheck(L_149);
(L_149)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_151, ((int32_t)9)))), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_156);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_157 = V_9;
int32_t* L_158 = ___index2;
int32_t L_159 = *((int32_t*)L_158);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_160 = ___end1;
float L_161 = __this->___m_Padding_11;
float L_162 = ___maxScale5;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_163;
memset((&L_163), 0, sizeof(L_163));
Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline((&L_163), (0.0f), ((float)il2cpp_codegen_multiply(L_161, L_162)), (0.0f), /*hidden argument*/NULL);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_164;
L_164 = Vector3_op_Addition_m087D6F0EC60843D455F9F83D25FE42B2433AAD1D_inline(L_160, L_163, NULL);
NullCheck(L_157);
(L_157)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_159, ((int32_t)10)))), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_164);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_165 = V_9;
int32_t* L_166 = ___index2;
int32_t L_167 = *((int32_t*)L_166);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_168 = ___end1;
float L_169 = V_8;
float L_170 = __this->___m_Padding_11;
float L_171 = ___maxScale5;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_172;
memset((&L_172), 0, sizeof(L_172));
Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline((&L_172), (0.0f), ((float)il2cpp_codegen_multiply(((-((float)il2cpp_codegen_add(L_169, L_170)))), L_171)), (0.0f), /*hidden argument*/NULL);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_173;
L_173 = Vector3_op_Addition_m087D6F0EC60843D455F9F83D25FE42B2433AAD1D_inline(L_168, L_172, NULL);
NullCheck(L_165);
(L_165)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_167, ((int32_t)11)))), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_173);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_174 = ___generationSettings8;
NullCheck(L_174);
bool L_175 = L_174->___inverseYAxis_43;
V_31 = L_175;
bool L_176 = V_31;
if (!L_176)
{
goto IL_05a0;
}
}
{
(&V_32)->___x_2 = (0.0f);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_177 = ___generationSettings8;
NullCheck(L_177);
Rect_tA04E0F8A1830E767F40FB27ECD8D309303571F0D* L_178 = (&L_177->___screenRect_1);
float L_179;
L_179 = Rect_get_y_mC733E8D49F3CE21B2A3D40A1B72D687F22C97F49(L_178, NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_180 = ___generationSettings8;
NullCheck(L_180);
Rect_tA04E0F8A1830E767F40FB27ECD8D309303571F0D* L_181 = (&L_180->___screenRect_1);
float L_182;
L_182 = Rect_get_height_mE1AA6C6C725CCD2D317BD2157396D3CF7D47C9D8(L_181, NULL);
(&V_32)->___y_3 = ((float)il2cpp_codegen_add(L_179, L_182));
(&V_32)->___z_4 = (0.0f);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_183 = V_9;
int32_t* L_184 = ___index2;
int32_t L_185 = *((int32_t*)L_184);
NullCheck(L_183);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_186 = V_9;
int32_t* L_187 = ___index2;
int32_t L_188 = *((int32_t*)L_187);
NullCheck(L_186);
float L_189 = ((L_186)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_188)))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_190 = V_32;
float L_191 = L_190.___y_3;
((L_183)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_185)))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_189, (-1.0f))), L_191));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_192 = V_9;
int32_t* L_193 = ___index2;
int32_t L_194 = *((int32_t*)L_193);
NullCheck(L_192);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_195 = V_9;
int32_t* L_196 = ___index2;
int32_t L_197 = *((int32_t*)L_196);
NullCheck(L_195);
float L_198 = ((L_195)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_197, 1)))))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_199 = V_32;
float L_200 = L_199.___y_3;
((L_192)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_194, 1)))))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_198, (-1.0f))), L_200));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_201 = V_9;
int32_t* L_202 = ___index2;
int32_t L_203 = *((int32_t*)L_202);
NullCheck(L_201);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_204 = V_9;
int32_t* L_205 = ___index2;
int32_t L_206 = *((int32_t*)L_205);
NullCheck(L_204);
float L_207 = ((L_204)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_206, 2)))))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_208 = V_32;
float L_209 = L_208.___y_3;
((L_201)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_203, 2)))))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_207, (-1.0f))), L_209));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_210 = V_9;
int32_t* L_211 = ___index2;
int32_t L_212 = *((int32_t*)L_211);
NullCheck(L_210);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_213 = V_9;
int32_t* L_214 = ___index2;
int32_t L_215 = *((int32_t*)L_214);
NullCheck(L_213);
float L_216 = ((L_213)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_215, 3)))))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_217 = V_32;
float L_218 = L_217.___y_3;
((L_210)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_212, 3)))))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_216, (-1.0f))), L_218));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_219 = V_9;
int32_t* L_220 = ___index2;
int32_t L_221 = *((int32_t*)L_220);
NullCheck(L_219);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_222 = V_9;
int32_t* L_223 = ___index2;
int32_t L_224 = *((int32_t*)L_223);
NullCheck(L_222);
float L_225 = ((L_222)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_224, 4)))))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_226 = V_32;
float L_227 = L_226.___y_3;
((L_219)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_221, 4)))))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_225, (-1.0f))), L_227));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_228 = V_9;
int32_t* L_229 = ___index2;
int32_t L_230 = *((int32_t*)L_229);
NullCheck(L_228);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_231 = V_9;
int32_t* L_232 = ___index2;
int32_t L_233 = *((int32_t*)L_232);
NullCheck(L_231);
float L_234 = ((L_231)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_233, 5)))))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_235 = V_32;
float L_236 = L_235.___y_3;
((L_228)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_230, 5)))))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_234, (-1.0f))), L_236));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_237 = V_9;
int32_t* L_238 = ___index2;
int32_t L_239 = *((int32_t*)L_238);
NullCheck(L_237);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_240 = V_9;
int32_t* L_241 = ___index2;
int32_t L_242 = *((int32_t*)L_241);
NullCheck(L_240);
float L_243 = ((L_240)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_242, 6)))))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_244 = V_32;
float L_245 = L_244.___y_3;
((L_237)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_239, 6)))))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_243, (-1.0f))), L_245));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_246 = V_9;
int32_t* L_247 = ___index2;
int32_t L_248 = *((int32_t*)L_247);
NullCheck(L_246);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_249 = V_9;
int32_t* L_250 = ___index2;
int32_t L_251 = *((int32_t*)L_250);
NullCheck(L_249);
float L_252 = ((L_249)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_251, 7)))))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_253 = V_32;
float L_254 = L_253.___y_3;
((L_246)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_248, 7)))))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_252, (-1.0f))), L_254));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_255 = V_9;
int32_t* L_256 = ___index2;
int32_t L_257 = *((int32_t*)L_256);
NullCheck(L_255);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_258 = V_9;
int32_t* L_259 = ___index2;
int32_t L_260 = *((int32_t*)L_259);
NullCheck(L_258);
float L_261 = ((L_258)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_260, 8)))))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_262 = V_32;
float L_263 = L_262.___y_3;
((L_255)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_257, 8)))))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_261, (-1.0f))), L_263));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_264 = V_9;
int32_t* L_265 = ___index2;
int32_t L_266 = *((int32_t*)L_265);
NullCheck(L_264);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_267 = V_9;
int32_t* L_268 = ___index2;
int32_t L_269 = *((int32_t*)L_268);
NullCheck(L_267);
float L_270 = ((L_267)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_269, ((int32_t)9))))))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_271 = V_32;
float L_272 = L_271.___y_3;
((L_264)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_266, ((int32_t)9))))))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_270, (-1.0f))), L_272));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_273 = V_9;
int32_t* L_274 = ___index2;
int32_t L_275 = *((int32_t*)L_274);
NullCheck(L_273);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_276 = V_9;
int32_t* L_277 = ___index2;
int32_t L_278 = *((int32_t*)L_277);
NullCheck(L_276);
float L_279 = ((L_276)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_278, ((int32_t)10))))))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_280 = V_32;
float L_281 = L_280.___y_3;
((L_273)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_275, ((int32_t)10))))))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_279, (-1.0f))), L_281));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_282 = V_9;
int32_t* L_283 = ___index2;
int32_t L_284 = *((int32_t*)L_283);
NullCheck(L_282);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_285 = V_9;
int32_t* L_286 = ___index2;
int32_t L_287 = *((int32_t*)L_286);
NullCheck(L_285);
float L_288 = ((L_285)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_287, ((int32_t)11))))))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_289 = V_32;
float L_290 = L_289.___y_3;
((L_282)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_284, ((int32_t)11))))))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_288, (-1.0f))), L_290));
}
IL_05a0:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_291 = ___textInfo9;
NullCheck(L_291);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_292 = L_291->___meshInfo_15;
int32_t L_293 = V_1;
NullCheck(L_292);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_294 = ((L_292)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_293)))->___uvs0_3;
V_10 = L_294;
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD* L_295 = (&__this->___m_Underline_98);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_296 = L_295->___fontAsset_1;
NullCheck(L_296);
int32_t L_297;
L_297 = FontAsset_get_atlasWidth_mE711550FDD4B5F988B77AB5D332A80A34B5CF364(L_296, NULL);
V_11 = L_297;
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD* L_298 = (&__this->___m_Underline_98);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_299 = L_298->___fontAsset_1;
NullCheck(L_299);
int32_t L_300;
L_300 = FontAsset_get_atlasHeight_m306FBF7D35C39123A4770E147FAF95B1B8DE8086(L_299, NULL);
V_12 = L_300;
int32_t L_301;
L_301 = GlyphRect_get_x_m453EECC6C6F08602B1F74C5E1D8EE1163236A898((&V_4), NULL);
float L_302 = V_6;
int32_t L_303 = V_11;
int32_t L_304;
L_304 = GlyphRect_get_y_mE31390BB3185EEA82DD16EA41E208F6A0397E3EA((&V_4), NULL);
float L_305 = __this->___m_Padding_11;
int32_t L_306 = V_12;
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&V_13), ((float)(((float)il2cpp_codegen_subtract(((float)L_301), L_302))/((float)L_303))), ((float)(((float)il2cpp_codegen_subtract(((float)L_304), L_305))/((float)L_306))), NULL);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_307 = V_13;
float L_308 = L_307.___x_0;
int32_t L_309;
L_309 = GlyphRect_get_y_mE31390BB3185EEA82DD16EA41E208F6A0397E3EA((&V_4), NULL);
int32_t L_310;
L_310 = GlyphRect_get_height_m7F4D04452994E0D18762BB44352608E484DAAC1A((&V_4), NULL);
float L_311 = __this->___m_Padding_11;
int32_t L_312 = V_12;
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&V_14), L_308, ((float)(((float)il2cpp_codegen_add(((float)((int32_t)il2cpp_codegen_add(L_309, L_310))), L_311))/((float)L_312))), NULL);
int32_t L_313;
L_313 = GlyphRect_get_x_m453EECC6C6F08602B1F74C5E1D8EE1163236A898((&V_4), NULL);
float L_314 = V_6;
int32_t L_315;
L_315 = GlyphRect_get_width_mD291C7644BBF18D6A213427F6C9C28840F233F12((&V_4), NULL);
int32_t L_316 = V_11;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_317 = V_14;
float L_318 = L_317.___y_1;
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&V_15), ((float)(((float)il2cpp_codegen_add(((float)il2cpp_codegen_subtract(((float)L_313), L_314)), ((float)(((float)L_315)/(2.0f)))))/((float)L_316))), L_318, NULL);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_319 = V_15;
float L_320 = L_319.___x_0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_321 = V_13;
float L_322 = L_321.___y_1;
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&V_16), L_320, L_322, NULL);
int32_t L_323;
L_323 = GlyphRect_get_x_m453EECC6C6F08602B1F74C5E1D8EE1163236A898((&V_4), NULL);
float L_324 = V_7;
int32_t L_325;
L_325 = GlyphRect_get_width_mD291C7644BBF18D6A213427F6C9C28840F233F12((&V_4), NULL);
int32_t L_326 = V_11;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_327 = V_14;
float L_328 = L_327.___y_1;
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&V_17), ((float)(((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(((float)L_323), L_324)), ((float)(((float)L_325)/(2.0f)))))/((float)L_326))), L_328, NULL);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_329 = V_17;
float L_330 = L_329.___x_0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_331 = V_13;
float L_332 = L_331.___y_1;
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&V_18), L_330, L_332, NULL);
int32_t L_333;
L_333 = GlyphRect_get_x_m453EECC6C6F08602B1F74C5E1D8EE1163236A898((&V_4), NULL);
float L_334 = V_7;
int32_t L_335;
L_335 = GlyphRect_get_width_mD291C7644BBF18D6A213427F6C9C28840F233F12((&V_4), NULL);
int32_t L_336 = V_11;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_337 = V_14;
float L_338 = L_337.___y_1;
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&V_19), ((float)(((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(((float)L_333), L_334)), ((float)L_335)))/((float)L_336))), L_338, NULL);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_339 = V_19;
float L_340 = L_339.___x_0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_341 = V_13;
float L_342 = L_341.___y_1;
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&V_20), L_340, L_342, NULL);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_343 = V_10;
int32_t* L_344 = ___index2;
int32_t L_345 = *((int32_t*)L_344);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_346 = V_13;
NullCheck(L_343);
(L_343)->SetAt(static_cast<il2cpp_array_size_t>(L_345), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_346);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_347 = V_10;
int32_t* L_348 = ___index2;
int32_t L_349 = *((int32_t*)L_348);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_350 = V_14;
NullCheck(L_347);
(L_347)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(1, L_349))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_350);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_351 = V_10;
int32_t* L_352 = ___index2;
int32_t L_353 = *((int32_t*)L_352);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_354 = V_15;
NullCheck(L_351);
(L_351)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(2, L_353))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_354);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_355 = V_10;
int32_t* L_356 = ___index2;
int32_t L_357 = *((int32_t*)L_356);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_358 = V_16;
NullCheck(L_355);
(L_355)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(3, L_357))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_358);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_359 = V_10;
int32_t* L_360 = ___index2;
int32_t L_361 = *((int32_t*)L_360);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_362 = V_15;
float L_363 = L_362.___x_0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_364 = V_15;
float L_365 = L_364.___x_0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_366 = V_13;
float L_367 = L_366.___y_1;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_368;
memset((&L_368), 0, sizeof(L_368));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_368), ((float)il2cpp_codegen_subtract(L_363, ((float)il2cpp_codegen_multiply(L_365, (0.00100000005f))))), L_367, /*hidden argument*/NULL);
NullCheck(L_359);
(L_359)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(4, L_361))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_368);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_369 = V_10;
int32_t* L_370 = ___index2;
int32_t L_371 = *((int32_t*)L_370);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_372 = V_15;
float L_373 = L_372.___x_0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_374 = V_15;
float L_375 = L_374.___x_0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_376 = V_14;
float L_377 = L_376.___y_1;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_378;
memset((&L_378), 0, sizeof(L_378));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_378), ((float)il2cpp_codegen_subtract(L_373, ((float)il2cpp_codegen_multiply(L_375, (0.00100000005f))))), L_377, /*hidden argument*/NULL);
NullCheck(L_369);
(L_369)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(5, L_371))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_378);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_379 = V_10;
int32_t* L_380 = ___index2;
int32_t L_381 = *((int32_t*)L_380);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_382 = V_15;
float L_383 = L_382.___x_0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_384 = V_15;
float L_385 = L_384.___x_0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_386 = V_14;
float L_387 = L_386.___y_1;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_388;
memset((&L_388), 0, sizeof(L_388));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_388), ((float)il2cpp_codegen_add(L_383, ((float)il2cpp_codegen_multiply(L_385, (0.00100000005f))))), L_387, /*hidden argument*/NULL);
NullCheck(L_379);
(L_379)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(6, L_381))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_388);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_389 = V_10;
int32_t* L_390 = ___index2;
int32_t L_391 = *((int32_t*)L_390);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_392 = V_15;
float L_393 = L_392.___x_0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_394 = V_15;
float L_395 = L_394.___x_0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_396 = V_13;
float L_397 = L_396.___y_1;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_398;
memset((&L_398), 0, sizeof(L_398));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_398), ((float)il2cpp_codegen_add(L_393, ((float)il2cpp_codegen_multiply(L_395, (0.00100000005f))))), L_397, /*hidden argument*/NULL);
NullCheck(L_389);
(L_389)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(7, L_391))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_398);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_399 = V_10;
int32_t* L_400 = ___index2;
int32_t L_401 = *((int32_t*)L_400);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_402 = V_18;
NullCheck(L_399);
(L_399)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(8, L_401))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_402);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_403 = V_10;
int32_t* L_404 = ___index2;
int32_t L_405 = *((int32_t*)L_404);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_406 = V_17;
NullCheck(L_403);
(L_403)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(((int32_t)9), L_405))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_406);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_407 = V_10;
int32_t* L_408 = ___index2;
int32_t L_409 = *((int32_t*)L_408);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_410 = V_19;
NullCheck(L_407);
(L_407)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(((int32_t)10), L_409))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_410);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_411 = V_10;
int32_t* L_412 = ___index2;
int32_t L_413 = *((int32_t*)L_412);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_414 = V_20;
NullCheck(L_411);
(L_411)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(((int32_t)11), L_413))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_414);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_415 = V_9;
int32_t* L_416 = ___index2;
int32_t L_417 = *((int32_t*)L_416);
NullCheck(L_415);
float L_418 = ((L_415)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_417, 2)))))->___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_419 = ___start0;
float L_420 = L_419.___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_421 = ___end1;
float L_422 = L_421.___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_423 = ___start0;
float L_424 = L_423.___x_2;
V_22 = ((float)(((float)il2cpp_codegen_subtract(L_418, L_420))/((float)il2cpp_codegen_subtract(L_422, L_424))));
float L_425 = ___sdfScale6;
float L_426;
L_426 = fabsf(L_425);
V_23 = L_426;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_427 = ___textInfo9;
NullCheck(L_427);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_428 = L_427->___meshInfo_15;
int32_t L_429 = V_1;
NullCheck(L_428);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_430 = ((L_428)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_429)))->___uvs2_4;
V_24 = L_430;
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_431 = V_24;
int32_t* L_432 = ___index2;
int32_t L_433 = *((int32_t*)L_432);
float L_434 = V_23;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_435;
L_435 = TextGeneratorUtilities_PackUV_mFEB61C8552EE615440A86C18582F5A8117082259((0.0f), (0.0f), L_434, NULL);
NullCheck(L_431);
(L_431)->SetAt(static_cast<il2cpp_array_size_t>(L_433), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_435);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_436 = V_24;
int32_t* L_437 = ___index2;
int32_t L_438 = *((int32_t*)L_437);
float L_439 = V_23;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_440;
L_440 = TextGeneratorUtilities_PackUV_mFEB61C8552EE615440A86C18582F5A8117082259((0.0f), (1.0f), L_439, NULL);
NullCheck(L_436);
(L_436)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(1, L_438))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_440);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_441 = V_24;
int32_t* L_442 = ___index2;
int32_t L_443 = *((int32_t*)L_442);
float L_444 = V_22;
float L_445 = V_23;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_446;
L_446 = TextGeneratorUtilities_PackUV_mFEB61C8552EE615440A86C18582F5A8117082259(L_444, (1.0f), L_445, NULL);
NullCheck(L_441);
(L_441)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(2, L_443))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_446);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_447 = V_24;
int32_t* L_448 = ___index2;
int32_t L_449 = *((int32_t*)L_448);
float L_450 = V_22;
float L_451 = V_23;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_452;
L_452 = TextGeneratorUtilities_PackUV_mFEB61C8552EE615440A86C18582F5A8117082259(L_450, (0.0f), L_451, NULL);
NullCheck(L_447);
(L_447)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(3, L_449))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_452);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_453 = V_9;
int32_t* L_454 = ___index2;
int32_t L_455 = *((int32_t*)L_454);
NullCheck(L_453);
float L_456 = ((L_453)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_455, 4)))))->___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_457 = ___start0;
float L_458 = L_457.___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_459 = ___end1;
float L_460 = L_459.___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_461 = ___start0;
float L_462 = L_461.___x_2;
V_21 = ((float)(((float)il2cpp_codegen_subtract(L_456, L_458))/((float)il2cpp_codegen_subtract(L_460, L_462))));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_463 = V_9;
int32_t* L_464 = ___index2;
int32_t L_465 = *((int32_t*)L_464);
NullCheck(L_463);
float L_466 = ((L_463)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_465, 6)))))->___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_467 = ___start0;
float L_468 = L_467.___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_469 = ___end1;
float L_470 = L_469.___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_471 = ___start0;
float L_472 = L_471.___x_2;
V_22 = ((float)(((float)il2cpp_codegen_subtract(L_466, L_468))/((float)il2cpp_codegen_subtract(L_470, L_472))));
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_473 = V_24;
int32_t* L_474 = ___index2;
int32_t L_475 = *((int32_t*)L_474);
float L_476 = V_21;
float L_477 = V_23;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_478;
L_478 = TextGeneratorUtilities_PackUV_mFEB61C8552EE615440A86C18582F5A8117082259(L_476, (0.0f), L_477, NULL);
NullCheck(L_473);
(L_473)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(4, L_475))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_478);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_479 = V_24;
int32_t* L_480 = ___index2;
int32_t L_481 = *((int32_t*)L_480);
float L_482 = V_21;
float L_483 = V_23;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_484;
L_484 = TextGeneratorUtilities_PackUV_mFEB61C8552EE615440A86C18582F5A8117082259(L_482, (1.0f), L_483, NULL);
NullCheck(L_479);
(L_479)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(5, L_481))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_484);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_485 = V_24;
int32_t* L_486 = ___index2;
int32_t L_487 = *((int32_t*)L_486);
float L_488 = V_22;
float L_489 = V_23;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_490;
L_490 = TextGeneratorUtilities_PackUV_mFEB61C8552EE615440A86C18582F5A8117082259(L_488, (1.0f), L_489, NULL);
NullCheck(L_485);
(L_485)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(6, L_487))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_490);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_491 = V_24;
int32_t* L_492 = ___index2;
int32_t L_493 = *((int32_t*)L_492);
float L_494 = V_22;
float L_495 = V_23;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_496;
L_496 = TextGeneratorUtilities_PackUV_mFEB61C8552EE615440A86C18582F5A8117082259(L_494, (0.0f), L_495, NULL);
NullCheck(L_491);
(L_491)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(7, L_493))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_496);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_497 = V_9;
int32_t* L_498 = ___index2;
int32_t L_499 = *((int32_t*)L_498);
NullCheck(L_497);
float L_500 = ((L_497)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_499, 8)))))->___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_501 = ___start0;
float L_502 = L_501.___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_503 = ___end1;
float L_504 = L_503.___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_505 = ___start0;
float L_506 = L_505.___x_2;
V_21 = ((float)(((float)il2cpp_codegen_subtract(L_500, L_502))/((float)il2cpp_codegen_subtract(L_504, L_506))));
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_507 = V_24;
int32_t* L_508 = ___index2;
int32_t L_509 = *((int32_t*)L_508);
float L_510 = V_21;
float L_511 = V_23;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_512;
L_512 = TextGeneratorUtilities_PackUV_mFEB61C8552EE615440A86C18582F5A8117082259(L_510, (0.0f), L_511, NULL);
NullCheck(L_507);
(L_507)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(8, L_509))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_512);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_513 = V_24;
int32_t* L_514 = ___index2;
int32_t L_515 = *((int32_t*)L_514);
float L_516 = V_21;
float L_517 = V_23;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_518;
L_518 = TextGeneratorUtilities_PackUV_mFEB61C8552EE615440A86C18582F5A8117082259(L_516, (1.0f), L_517, NULL);
NullCheck(L_513);
(L_513)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(((int32_t)9), L_515))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_518);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_519 = V_24;
int32_t* L_520 = ___index2;
int32_t L_521 = *((int32_t*)L_520);
float L_522 = V_23;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_523;
L_523 = TextGeneratorUtilities_PackUV_mFEB61C8552EE615440A86C18582F5A8117082259((1.0f), (1.0f), L_522, NULL);
NullCheck(L_519);
(L_519)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(((int32_t)10), L_521))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_523);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_524 = V_24;
int32_t* L_525 = ___index2;
int32_t L_526 = *((int32_t*)L_525);
float L_527 = V_23;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_528;
L_528 = TextGeneratorUtilities_PackUV_mFEB61C8552EE615440A86C18582F5A8117082259((1.0f), (0.0f), L_527, NULL);
NullCheck(L_524);
(L_524)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(((int32_t)11), L_526))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_528);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_529 = (&__this->___m_FontColor32_27);
uint8_t L_530 = L_529->___a_4;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_531 = ___underlineColor7;
uint8_t L_532 = L_531.___a_4;
G_B11_0 = (&___underlineColor7);
if ((((int32_t)L_530) < ((int32_t)L_532)))
{
G_B12_0 = (&___underlineColor7);
goto IL_0a11;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_533 = ___underlineColor7;
uint8_t L_534 = L_533.___a_4;
G_B13_0 = L_534;
G_B13_1 = G_B11_0;
goto IL_0a1c;
}
IL_0a11:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_535 = (&__this->___m_FontColor32_27);
uint8_t L_536 = L_535->___a_4;
G_B13_0 = L_536;
G_B13_1 = G_B12_0;
}
IL_0a1c:
{
G_B13_1->___a_4 = G_B13_0;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_537 = ___textInfo9;
NullCheck(L_537);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_538 = L_537->___meshInfo_15;
int32_t L_539 = V_1;
NullCheck(L_538);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_540 = ((L_538)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_539)))->___colors32_5;
V_25 = L_540;
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_541 = V_25;
int32_t* L_542 = ___index2;
int32_t L_543 = *((int32_t*)L_542);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_544 = ___underlineColor7;
NullCheck(L_541);
(L_541)->SetAt(static_cast<il2cpp_array_size_t>(L_543), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_544);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_545 = V_25;
int32_t* L_546 = ___index2;
int32_t L_547 = *((int32_t*)L_546);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_548 = ___underlineColor7;
NullCheck(L_545);
(L_545)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(1, L_547))), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_548);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_549 = V_25;
int32_t* L_550 = ___index2;
int32_t L_551 = *((int32_t*)L_550);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_552 = ___underlineColor7;
NullCheck(L_549);
(L_549)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(2, L_551))), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_552);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_553 = V_25;
int32_t* L_554 = ___index2;
int32_t L_555 = *((int32_t*)L_554);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_556 = ___underlineColor7;
NullCheck(L_553);
(L_553)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(3, L_555))), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_556);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_557 = V_25;
int32_t* L_558 = ___index2;
int32_t L_559 = *((int32_t*)L_558);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_560 = ___underlineColor7;
NullCheck(L_557);
(L_557)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(4, L_559))), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_560);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_561 = V_25;
int32_t* L_562 = ___index2;
int32_t L_563 = *((int32_t*)L_562);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_564 = ___underlineColor7;
NullCheck(L_561);
(L_561)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(5, L_563))), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_564);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_565 = V_25;
int32_t* L_566 = ___index2;
int32_t L_567 = *((int32_t*)L_566);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_568 = ___underlineColor7;
NullCheck(L_565);
(L_565)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(6, L_567))), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_568);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_569 = V_25;
int32_t* L_570 = ___index2;
int32_t L_571 = *((int32_t*)L_570);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_572 = ___underlineColor7;
NullCheck(L_569);
(L_569)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(7, L_571))), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_572);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_573 = V_25;
int32_t* L_574 = ___index2;
int32_t L_575 = *((int32_t*)L_574);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_576 = ___underlineColor7;
NullCheck(L_573);
(L_573)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(8, L_575))), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_576);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_577 = V_25;
int32_t* L_578 = ___index2;
int32_t L_579 = *((int32_t*)L_578);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_580 = ___underlineColor7;
NullCheck(L_577);
(L_577)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(((int32_t)9), L_579))), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_580);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_581 = V_25;
int32_t* L_582 = ___index2;
int32_t L_583 = *((int32_t*)L_582);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_584 = ___underlineColor7;
NullCheck(L_581);
(L_581)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(((int32_t)10), L_583))), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_584);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_585 = V_25;
int32_t* L_586 = ___index2;
int32_t L_587 = *((int32_t*)L_586);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_588 = ___underlineColor7;
NullCheck(L_585);
(L_585)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(((int32_t)11), L_587))), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_588);
int32_t* L_589 = ___index2;
int32_t* L_590 = ___index2;
int32_t L_591 = *((int32_t*)L_590);
*((int32_t*)L_589) = (int32_t)((int32_t)il2cpp_codegen_add(L_591, ((int32_t)12)));
}
IL_0ad9:
{
return;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::DrawTextHighlight(UnityEngine.Vector3,UnityEngine.Vector3,System.Int32&,UnityEngine.Color32,UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_DrawTextHighlight_m3A8E9A72C0984B5DEEF9858060675F3B517F701B (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___start0, Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___end1, int32_t* ___index2, Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___highlightColor3, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings4, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo5, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral75CDF58C9AFA1ECF6D29D4045BD510C2651DD6E5);
s_Il2CppMethodInitialized = true;
}
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* V_0 = NULL;
int32_t V_1 = 0;
int32_t V_2 = 0;
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* V_3 = NULL;
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* V_4 = NULL;
int32_t V_5 = 0;
int32_t V_6 = 0;
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D V_7;
memset((&V_7), 0, sizeof(V_7));
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_8;
memset((&V_8), 0, sizeof(V_8));
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* V_9 = NULL;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_10;
memset((&V_10), 0, sizeof(V_10));
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* V_11 = NULL;
bool V_12 = false;
bool V_13 = false;
bool V_14 = false;
bool V_15 = false;
bool V_16 = false;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 V_17;
memset((&V_17), 0, sizeof(V_17));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B12_0 = NULL;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B11_0 = NULL;
uint8_t G_B13_0 = 0x0;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* G_B13_1 = NULL;
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_0 = ___generationSettings4;
NullCheck(L_0);
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_1 = L_0->___textSettings_9;
V_0 = L_1;
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD* L_2 = (&__this->___m_Underline_98);
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_3 = L_2->___character_0;
V_12 = (bool)((((RuntimeObject*)(Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC*)L_3) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_4 = V_12;
if (!L_4)
{
goto IL_0059;
}
}
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_5 = ___generationSettings4;
TextGenerator_GetUnderlineSpecialCharacter_mE5E9D5DEB9A7758333CDDCAD05EF25F076EC1AD5(__this, L_5, NULL);
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD* L_6 = (&__this->___m_Underline_98);
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_7 = L_6->___character_0;
V_13 = (bool)((((RuntimeObject*)(Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC*)L_7) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_8 = V_13;
if (!L_8)
{
goto IL_0058;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_9 = V_0;
NullCheck(L_9);
bool L_10;
L_10 = TextSettings_get_displayWarnings_m3CA9FCB44B30CC06F54CD3716D68285FF844DF83_inline(L_9, NULL);
V_14 = L_10;
bool L_11 = V_14;
if (!L_11)
{
goto IL_0053;
}
}
{
il2cpp_codegen_runtime_class_init_inline(Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var);
Debug_LogWarning_mEF15C6B17CE4E1FA7E379CDB82CE40FCD89A3F28(_stringLiteral75CDF58C9AFA1ECF6D29D4045BD510C2651DD6E5, NULL);
}
IL_0053:
{
goto IL_03d8;
}
IL_0058:
{
}
IL_0059:
{
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD* L_12 = (&__this->___m_Underline_98);
int32_t L_13 = L_12->___materialIndex_3;
V_1 = L_13;
int32_t* L_14 = ___index2;
int32_t L_15 = *((int32_t*)L_14);
V_2 = ((int32_t)il2cpp_codegen_add(L_15, 4));
int32_t L_16 = V_2;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_17 = ___textInfo5;
NullCheck(L_17);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_18 = L_17->___meshInfo_15;
int32_t L_19 = V_1;
NullCheck(L_18);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_20 = ((L_18)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_19)))->___vertices_2;
NullCheck(L_20);
V_15 = (bool)((((int32_t)L_16) > ((int32_t)((int32_t)(((RuntimeArray*)L_20)->max_length))))? 1 : 0);
bool L_21 = V_15;
if (!L_21)
{
goto IL_009f;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_22 = ___textInfo5;
NullCheck(L_22);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_23 = L_22->___meshInfo_15;
int32_t L_24 = V_1;
NullCheck(L_23);
int32_t L_25 = V_2;
MeshInfo_ResizeMeshInfo_mE411FE40935FB9CFB7C334B3A1F216A98B96F5FC(((L_23)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_24))), ((int32_t)(L_25/4)), NULL);
}
IL_009f:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_26 = ___textInfo5;
NullCheck(L_26);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_27 = L_26->___meshInfo_15;
int32_t L_28 = V_1;
NullCheck(L_27);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_29 = ((L_27)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_28)))->___vertices_2;
V_3 = L_29;
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_30 = V_3;
int32_t* L_31 = ___index2;
int32_t L_32 = *((int32_t*)L_31);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_33 = ___start0;
NullCheck(L_30);
(L_30)->SetAt(static_cast<il2cpp_array_size_t>(L_32), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_33);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_34 = V_3;
int32_t* L_35 = ___index2;
int32_t L_36 = *((int32_t*)L_35);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_37 = ___start0;
float L_38 = L_37.___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_39 = ___end1;
float L_40 = L_39.___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_41;
memset((&L_41), 0, sizeof(L_41));
Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline((&L_41), L_38, L_40, (0.0f), /*hidden argument*/NULL);
NullCheck(L_34);
(L_34)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_36, 1))), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_41);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_42 = V_3;
int32_t* L_43 = ___index2;
int32_t L_44 = *((int32_t*)L_43);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_45 = ___end1;
NullCheck(L_42);
(L_42)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_44, 2))), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_45);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_46 = V_3;
int32_t* L_47 = ___index2;
int32_t L_48 = *((int32_t*)L_47);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_49 = ___end1;
float L_50 = L_49.___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_51 = ___start0;
float L_52 = L_51.___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_53;
memset((&L_53), 0, sizeof(L_53));
Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline((&L_53), L_50, L_52, (0.0f), /*hidden argument*/NULL);
NullCheck(L_46);
(L_46)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_48, 3))), (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2)L_53);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_54 = ___generationSettings4;
NullCheck(L_54);
bool L_55 = L_54->___inverseYAxis_43;
V_16 = L_55;
bool L_56 = V_16;
if (!L_56)
{
goto IL_01fc;
}
}
{
(&V_17)->___x_2 = (0.0f);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_57 = ___generationSettings4;
NullCheck(L_57);
Rect_tA04E0F8A1830E767F40FB27ECD8D309303571F0D* L_58 = (&L_57->___screenRect_1);
float L_59;
L_59 = Rect_get_y_mC733E8D49F3CE21B2A3D40A1B72D687F22C97F49(L_58, NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_60 = ___generationSettings4;
NullCheck(L_60);
Rect_tA04E0F8A1830E767F40FB27ECD8D309303571F0D* L_61 = (&L_60->___screenRect_1);
float L_62;
L_62 = Rect_get_height_mE1AA6C6C725CCD2D317BD2157396D3CF7D47C9D8(L_61, NULL);
(&V_17)->___y_3 = ((float)il2cpp_codegen_add(L_59, L_62));
(&V_17)->___z_4 = (0.0f);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_63 = V_3;
int32_t* L_64 = ___index2;
int32_t L_65 = *((int32_t*)L_64);
NullCheck(L_63);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_66 = V_3;
int32_t* L_67 = ___index2;
int32_t L_68 = *((int32_t*)L_67);
NullCheck(L_66);
float L_69 = ((L_66)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_68)))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_70 = V_17;
float L_71 = L_70.___y_3;
((L_63)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_65)))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_69, (-1.0f))), L_71));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_72 = V_3;
int32_t* L_73 = ___index2;
int32_t L_74 = *((int32_t*)L_73);
NullCheck(L_72);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_75 = V_3;
int32_t* L_76 = ___index2;
int32_t L_77 = *((int32_t*)L_76);
NullCheck(L_75);
float L_78 = ((L_75)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_77, 1)))))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_79 = V_17;
float L_80 = L_79.___y_3;
((L_72)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_74, 1)))))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_78, (-1.0f))), L_80));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_81 = V_3;
int32_t* L_82 = ___index2;
int32_t L_83 = *((int32_t*)L_82);
NullCheck(L_81);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_84 = V_3;
int32_t* L_85 = ___index2;
int32_t L_86 = *((int32_t*)L_85);
NullCheck(L_84);
float L_87 = ((L_84)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_86, 2)))))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_88 = V_17;
float L_89 = L_88.___y_3;
((L_81)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_83, 2)))))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_87, (-1.0f))), L_89));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_90 = V_3;
int32_t* L_91 = ___index2;
int32_t L_92 = *((int32_t*)L_91);
NullCheck(L_90);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_93 = V_3;
int32_t* L_94 = ___index2;
int32_t L_95 = *((int32_t*)L_94);
NullCheck(L_93);
float L_96 = ((L_93)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_95, 3)))))->___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_97 = V_17;
float L_98 = L_97.___y_3;
((L_90)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_92, 3)))))->___y_3 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_96, (-1.0f))), L_98));
}
IL_01fc:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_99 = ___textInfo5;
NullCheck(L_99);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_100 = L_99->___meshInfo_15;
int32_t L_101 = V_1;
NullCheck(L_100);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_102 = ((L_100)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_101)))->___uvs0_3;
V_4 = L_102;
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD* L_103 = (&__this->___m_Underline_98);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_104 = L_103->___fontAsset_1;
NullCheck(L_104);
int32_t L_105;
L_105 = FontAsset_get_atlasWidth_mE711550FDD4B5F988B77AB5D332A80A34B5CF364(L_104, NULL);
V_5 = L_105;
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD* L_106 = (&__this->___m_Underline_98);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_107 = L_106->___fontAsset_1;
NullCheck(L_107);
int32_t L_108;
L_108 = FontAsset_get_atlasHeight_m306FBF7D35C39123A4770E147FAF95B1B8DE8086(L_107, NULL);
V_6 = L_108;
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD* L_109 = (&__this->___m_Underline_98);
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_110 = L_109->___character_0;
NullCheck(L_110);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_111;
L_111 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_110, NULL);
NullCheck(L_111);
GlyphRect_tB6D225B9318A527A1CBC1B4078EB923398EB808D L_112;
L_112 = Glyph_get_glyphRect_m94E7C5FE682695CDC096248EF027079F33768EE5(L_111, NULL);
V_7 = L_112;
int32_t L_113;
L_113 = GlyphRect_get_x_m453EECC6C6F08602B1F74C5E1D8EE1163236A898((&V_7), NULL);
int32_t L_114;
L_114 = GlyphRect_get_width_mD291C7644BBF18D6A213427F6C9C28840F233F12((&V_7), NULL);
int32_t L_115 = V_5;
int32_t L_116;
L_116 = GlyphRect_get_y_mE31390BB3185EEA82DD16EA41E208F6A0397E3EA((&V_7), NULL);
int32_t L_117;
L_117 = GlyphRect_get_height_m7F4D04452994E0D18762BB44352608E484DAAC1A((&V_7), NULL);
int32_t L_118 = V_6;
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&V_8), ((float)(((float)il2cpp_codegen_add(((float)L_113), ((float)((int32_t)(L_114/2)))))/((float)L_115))), ((float)(((float)il2cpp_codegen_add(((float)L_116), ((float)(((float)L_117)/(2.0f)))))/((float)L_118))), NULL);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_119 = V_4;
int32_t* L_120 = ___index2;
int32_t L_121 = *((int32_t*)L_120);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_122 = V_8;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_123;
memset((&L_123), 0, sizeof(L_123));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_123), (-9.99999975E-05f), (-9.99999975E-05f), /*hidden argument*/NULL);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_124;
L_124 = Vector2_op_Addition_m704B5B98EAFE885978381E21B7F89D9DF83C2A60_inline(L_122, L_123, NULL);
NullCheck(L_119);
(L_119)->SetAt(static_cast<il2cpp_array_size_t>(L_121), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_124);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_125 = V_4;
int32_t* L_126 = ___index2;
int32_t L_127 = *((int32_t*)L_126);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_128 = V_8;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_129;
memset((&L_129), 0, sizeof(L_129));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_129), (-9.99999975E-05f), (9.99999975E-05f), /*hidden argument*/NULL);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_130;
L_130 = Vector2_op_Addition_m704B5B98EAFE885978381E21B7F89D9DF83C2A60_inline(L_128, L_129, NULL);
NullCheck(L_125);
(L_125)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(1, L_127))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_130);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_131 = V_4;
int32_t* L_132 = ___index2;
int32_t L_133 = *((int32_t*)L_132);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_134 = V_8;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_135;
memset((&L_135), 0, sizeof(L_135));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_135), (9.99999975E-05f), (9.99999975E-05f), /*hidden argument*/NULL);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_136;
L_136 = Vector2_op_Addition_m704B5B98EAFE885978381E21B7F89D9DF83C2A60_inline(L_134, L_135, NULL);
NullCheck(L_131);
(L_131)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(2, L_133))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_136);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_137 = V_4;
int32_t* L_138 = ___index2;
int32_t L_139 = *((int32_t*)L_138);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_140 = V_8;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_141;
memset((&L_141), 0, sizeof(L_141));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_141), (9.99999975E-05f), (-9.99999975E-05f), /*hidden argument*/NULL);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_142;
L_142 = Vector2_op_Addition_m704B5B98EAFE885978381E21B7F89D9DF83C2A60_inline(L_140, L_141, NULL);
NullCheck(L_137);
(L_137)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(3, L_139))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_142);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_143 = ___textInfo5;
NullCheck(L_143);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_144 = L_143->___meshInfo_15;
int32_t L_145 = V_1;
NullCheck(L_144);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_146 = ((L_144)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_145)))->___uvs2_4;
V_9 = L_146;
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&V_10), (0.0f), (1.0f), NULL);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_147 = V_9;
int32_t* L_148 = ___index2;
int32_t L_149 = *((int32_t*)L_148);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_150 = V_10;
NullCheck(L_147);
(L_147)->SetAt(static_cast<il2cpp_array_size_t>(L_149), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_150);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_151 = V_9;
int32_t* L_152 = ___index2;
int32_t L_153 = *((int32_t*)L_152);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_154 = V_10;
NullCheck(L_151);
(L_151)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(1, L_153))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_154);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_155 = V_9;
int32_t* L_156 = ___index2;
int32_t L_157 = *((int32_t*)L_156);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_158 = V_10;
NullCheck(L_155);
(L_155)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(2, L_157))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_158);
Vector2U5BU5D_tFEBBC94BCC6C9C88277BA04047D2B3FDB6ED7FDA* L_159 = V_9;
int32_t* L_160 = ___index2;
int32_t L_161 = *((int32_t*)L_160);
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_162 = V_10;
NullCheck(L_159);
(L_159)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(3, L_161))), (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7)L_162);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_163 = (&__this->___m_FontColor32_27);
uint8_t L_164 = L_163->___a_4;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_165 = ___highlightColor3;
uint8_t L_166 = L_165.___a_4;
G_B11_0 = (&___highlightColor3);
if ((((int32_t)L_164) < ((int32_t)L_166)))
{
G_B12_0 = (&___highlightColor3);
goto IL_037c;
}
}
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_167 = ___highlightColor3;
uint8_t L_168 = L_167.___a_4;
G_B13_0 = L_168;
G_B13_1 = G_B11_0;
goto IL_0387;
}
IL_037c:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* L_169 = (&__this->___m_FontColor32_27);
uint8_t L_170 = L_169->___a_4;
G_B13_0 = L_170;
G_B13_1 = G_B12_0;
}
IL_0387:
{
G_B13_1->___a_4 = G_B13_0;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_171 = ___textInfo5;
NullCheck(L_171);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_172 = L_171->___meshInfo_15;
int32_t L_173 = V_1;
NullCheck(L_172);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_174 = ((L_172)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_173)))->___colors32_5;
V_11 = L_174;
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_175 = V_11;
int32_t* L_176 = ___index2;
int32_t L_177 = *((int32_t*)L_176);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_178 = ___highlightColor3;
NullCheck(L_175);
(L_175)->SetAt(static_cast<il2cpp_array_size_t>(L_177), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_178);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_179 = V_11;
int32_t* L_180 = ___index2;
int32_t L_181 = *((int32_t*)L_180);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_182 = ___highlightColor3;
NullCheck(L_179);
(L_179)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(1, L_181))), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_182);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_183 = V_11;
int32_t* L_184 = ___index2;
int32_t L_185 = *((int32_t*)L_184);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_186 = ___highlightColor3;
NullCheck(L_183);
(L_183)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(2, L_185))), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_186);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_187 = V_11;
int32_t* L_188 = ___index2;
int32_t L_189 = *((int32_t*)L_188);
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_190 = ___highlightColor3;
NullCheck(L_187);
(L_187)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(3, L_189))), (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B)L_190);
int32_t* L_191 = ___index2;
int32_t* L_192 = ___index2;
int32_t L_193 = *((int32_t*)L_192);
*((int32_t*)L_191) = (int32_t)((int32_t)il2cpp_codegen_add(L_193, 4));
}
IL_03d8:
{
return;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::ClearMesh(System.Boolean,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_ClearMesh_mE8A81193AF7ACE3CFE55E0C18FCCD751503A997F (bool ___updateMesh0, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo1, const RuntimeMethod* method)
{
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_0 = ___textInfo1;
bool L_1 = ___updateMesh0;
NullCheck(L_0);
TextInfo_ClearMeshInfo_mCA598F01C7F302CFCD0F508E2DBF072E66CA74F3(L_0, L_1, NULL);
return;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::EnableMasking()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_EnableMasking_mB38D92D32518523DE33A2FCD85A67DE481BB0991 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, const RuntimeMethod* method)
{
{
__this->___m_IsMaskingEnabled_84 = (bool)1;
return;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::DisableMasking()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_DisableMasking_mBDE8E47000367F45FC907243C845A11DBDD89950 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, const RuntimeMethod* method)
{
{
__this->___m_IsMaskingEnabled_84 = (bool)0;
return;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::SetArraySizes(System.Int32[],UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_SetArraySizes_mF0041F3D79936C05EB87DEE399F1DC389CCD1BD5 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* ___chars0, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings1, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Dictionary_2_Clear_m9821889E928BB7EAEE9A7E81EDFC59651F7CBDD0_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Dictionary_2_get_Count_mD88F18E0B2065189516BF168F521E531BE54384A_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&FontAsset_t61A6446D934E582651044E33D250EA8D306AB958_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_get_Item_m25CB12C13D14620785B0E86F6543D20B5080AFF8_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&MaterialManager_t104D2897F78BE83C3377323E18BEB5B8F0704D9B_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextInfo_Resize_TisMeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F_m8DCA99800557BA87ADA9D085ECBE0F002B615BE2_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextInfo_Resize_TisTextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976_mF1BA7075C51A6706D5946DC1D8B3FBE1B937C92E_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_SetDefault_mDAFD4911B5A8BEE57351A37415ADF348F0A6B54C_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_SetDefault_mDF71503A7E4F1891305CDCC7AE245CA66A713E79_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral3A16983F3F5E2FE996FFAE625831CCA22C609206);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteralCAAD2794A22F622E48C3D6803C2630A786F758B7);
s_Il2CppMethodInitialized = true;
}
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* V_0 = NULL;
int32_t V_1 = 0;
int32_t V_2 = 0;
bool V_3 = false;
int32_t V_4 = 0;
int32_t V_5 = 0;
bool V_6 = false;
bool V_7 = false;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* V_8 = NULL;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* V_9 = NULL;
int32_t V_10 = 0;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* V_11 = NULL;
bool V_12 = false;
bool V_13 = false;
int32_t V_14 = 0;
int32_t V_15 = 0;
bool V_16 = false;
bool V_17 = false;
bool V_18 = false;
bool V_19 = false;
bool V_20 = false;
bool V_21 = false;
bool V_22 = false;
bool V_23 = false;
bool V_24 = false;
bool V_25 = false;
bool V_26 = false;
int32_t V_27 = 0;
bool V_28 = false;
bool V_29 = false;
bool V_30 = false;
bool V_31 = false;
bool V_32 = false;
bool V_33 = false;
String_t* V_34 = NULL;
bool V_35 = false;
bool V_36 = false;
bool V_37 = false;
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* V_38 = NULL;
bool V_39 = false;
bool V_40 = false;
bool V_41 = false;
bool V_42 = false;
bool V_43 = false;
bool V_44 = false;
bool V_45 = false;
bool V_46 = false;
int32_t V_47 = 0;
bool V_48 = false;
bool V_49 = false;
int32_t V_50 = 0;
int32_t V_51 = 0;
bool V_52 = false;
bool V_53 = false;
bool V_54 = false;
bool V_55 = false;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B2_0 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B1_0 = NULL;
int32_t G_B3_0 = 0;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B3_1 = NULL;
int32_t G_B9_0 = 0;
int32_t G_B14_0 = 0;
int32_t G_B40_0 = 0;
int32_t G_B44_0 = 0;
String_t* G_B56_0 = NULL;
int32_t G_B68_0 = 0;
int32_t G_B76_0 = 0;
int32_t G_B81_0 = 0;
int32_t G_B93_0 = 0;
int32_t G_B104_0 = 0;
MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F* G_B109_0 = NULL;
MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F* G_B108_0 = NULL;
int32_t G_B110_0 = 0;
MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F* G_B110_1 = NULL;
MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F* G_B115_0 = NULL;
MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F* G_B114_0 = NULL;
int32_t G_B116_0 = 0;
MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F* G_B116_1 = NULL;
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_0 = ___generationSettings1;
NullCheck(L_0);
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_1 = L_0->___textSettings_9;
V_0 = L_1;
V_1 = 0;
__this->___m_TotalCharacterCount_13 = 0;
__this->___m_IsUsingBold_99 = (bool)0;
__this->___m_IsParsingText_72 = (bool)0;
__this->___m_TagNoParsing_47 = (bool)0;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_2 = ___generationSettings1;
NullCheck(L_2);
int32_t L_3 = L_2->___fontStyle_8;
__this->___m_FontStyleInternal_19 = L_3;
int32_t L_4 = __this->___m_FontStyleInternal_19;
G_B1_0 = __this;
if ((((int32_t)((int32_t)((int32_t)L_4&1))) == ((int32_t)1)))
{
G_B2_0 = __this;
goto IL_0046;
}
}
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_5 = ___generationSettings1;
NullCheck(L_5);
int32_t L_6 = L_5->___fontWeight_37;
G_B3_0 = ((int32_t)(L_6));
G_B3_1 = G_B1_0;
goto IL_004b;
}
IL_0046:
{
G_B3_0 = ((int32_t)700);
G_B3_1 = G_B2_0;
}
IL_004b:
{
NullCheck(G_B3_1);
G_B3_1->___m_FontWeightInternal_21 = G_B3_0;
TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790* L_7 = (&__this->___m_FontWeightStack_22);
int32_t L_8 = __this->___m_FontWeightInternal_21;
TextProcessingStack_1_SetDefault_mDF71503A7E4F1891305CDCC7AE245CA66A713E79(L_7, L_8, TextProcessingStack_1_SetDefault_mDF71503A7E4F1891305CDCC7AE245CA66A713E79_RuntimeMethod_var);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_9 = ___generationSettings1;
NullCheck(L_9);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_10 = L_9->___fontAsset_4;
__this->___m_CurrentFontAsset_7 = L_10;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentFontAsset_7), (void*)L_10);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_11 = ___generationSettings1;
NullCheck(L_11);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_12 = L_11->___material_5;
__this->___m_CurrentMaterial_8 = L_12;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_12);
__this->___m_CurrentMaterialIndex_9 = 0;
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* L_13 = (&__this->___m_MaterialReferenceStack_10);
int32_t L_14 = __this->___m_CurrentMaterialIndex_9;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_15 = __this->___m_CurrentFontAsset_7;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_16 = __this->___m_CurrentMaterial_8;
float L_17 = __this->___m_Padding_11;
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_18;
memset((&L_18), 0, sizeof(L_18));
MaterialReference__ctor_m044AAA2C1079EB25A5534A6E0FA2314F033DB15A((&L_18), L_14, L_15, (SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313*)NULL, L_16, L_17, /*hidden argument*/NULL);
TextProcessingStack_1_SetDefault_mDAFD4911B5A8BEE57351A37415ADF348F0A6B54C(L_13, L_18, TextProcessingStack_1_SetDefault_mDAFD4911B5A8BEE57351A37415ADF348F0A6B54C_RuntimeMethod_var);
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* L_19 = __this->___m_MaterialReferenceIndexLookup_93;
NullCheck(L_19);
Dictionary_2_Clear_m9821889E928BB7EAEE9A7E81EDFC59651F7CBDD0(L_19, Dictionary_2_Clear_m9821889E928BB7EAEE9A7E81EDFC59651F7CBDD0_RuntimeMethod_var);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_20 = __this->___m_CurrentMaterial_8;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_21 = __this->___m_CurrentFontAsset_7;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E** L_22 = (&__this->___m_MaterialReferences_85);
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* L_23 = __this->___m_MaterialReferenceIndexLookup_93;
int32_t L_24;
L_24 = MaterialReference_AddMaterialReference_m6C0963F5E7C06B0371F2B18FE177D55B6C4C1105(L_20, L_21, L_22, L_23, NULL);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_25 = ___textInfo2;
V_3 = (bool)((((RuntimeObject*)(TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09*)L_25) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_26 = V_3;
if (!L_26)
{
goto IL_00e4;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_27 = (TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09*)il2cpp_codegen_object_new(TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09_il2cpp_TypeInfo_var);
NullCheck(L_27);
TextInfo__ctor_m241E24715CC5F6293DC90A4D25884548BAD0D602(L_27, NULL);
___textInfo2 = L_27;
}
IL_00e4:
{
__this->___m_TextElementType_71 = 1;
V_4 = 0;
goto IL_08dc;
}
IL_00f3:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_28 = ___textInfo2;
NullCheck(L_28);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_29 = L_28->___textElementInfo_10;
if (!L_29)
{
goto IL_0111;
}
}
{
int32_t L_30 = __this->___m_TotalCharacterCount_13;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_31 = ___textInfo2;
NullCheck(L_31);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_32 = L_31->___textElementInfo_10;
NullCheck(L_32);
G_B9_0 = ((((int32_t)((((int32_t)L_30) < ((int32_t)((int32_t)(((RuntimeArray*)L_32)->max_length))))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_0112;
}
IL_0111:
{
G_B9_0 = 1;
}
IL_0112:
{
V_12 = (bool)G_B9_0;
bool L_33 = V_12;
if (!L_33)
{
goto IL_012d;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_34 = ___textInfo2;
NullCheck(L_34);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E** L_35 = (&L_34->___textElementInfo_10);
int32_t L_36 = __this->___m_TotalCharacterCount_13;
il2cpp_codegen_runtime_class_init_inline(TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09_il2cpp_TypeInfo_var);
TextInfo_Resize_TisTextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976_mF1BA7075C51A6706D5946DC1D8B3FBE1B937C92E(L_35, ((int32_t)il2cpp_codegen_add(L_36, 1)), (bool)1, TextInfo_Resize_TisTextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976_mF1BA7075C51A6706D5946DC1D8B3FBE1B937C92E_RuntimeMethod_var);
}
IL_012d:
{
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_37 = ___chars0;
int32_t L_38 = V_4;
NullCheck(L_37);
int32_t L_39 = L_38;
int32_t L_40 = (L_37)->GetAt(static_cast<il2cpp_array_size_t>(L_39));
V_5 = L_40;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_41 = ___generationSettings1;
NullCheck(L_41);
bool L_42 = L_41->___richText_23;
if (!L_42)
{
goto IL_0143;
}
}
{
int32_t L_43 = V_5;
G_B14_0 = ((((int32_t)L_43) == ((int32_t)((int32_t)60)))? 1 : 0);
goto IL_0144;
}
IL_0143:
{
G_B14_0 = 0;
}
IL_0144:
{
V_13 = (bool)G_B14_0;
bool L_44 = V_13;
if (!L_44)
{
goto IL_02bc;
}
}
{
int32_t L_45 = __this->___m_CurrentMaterialIndex_9;
V_14 = L_45;
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_46 = ___chars0;
int32_t L_47 = V_4;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_48 = ___generationSettings1;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_49 = ___textInfo2;
bool L_50;
L_50 = TextGenerator_ValidateHtmlTag_m9C85462F15A6165B10E4C4EE93620AC1021BE5CD(__this, L_46, ((int32_t)il2cpp_codegen_add(L_47, 1)), (&V_15), L_48, L_49, NULL);
V_16 = L_50;
bool L_51 = V_16;
if (!L_51)
{
goto IL_02bb;
}
}
{
int32_t L_52 = V_15;
V_4 = L_52;
int32_t L_53 = __this->___m_FontStyleInternal_19;
V_17 = (bool)((((int32_t)((int32_t)((int32_t)L_53&1))) == ((int32_t)1))? 1 : 0);
bool L_54 = V_17;
if (!L_54)
{
goto IL_018b;
}
}
{
__this->___m_IsUsingBold_99 = (bool)1;
}
IL_018b:
{
uint8_t L_55 = __this->___m_TextElementType_71;
V_18 = (bool)((((int32_t)L_55) == ((int32_t)2))? 1 : 0);
bool L_56 = V_18;
if (!L_56)
{
goto IL_02b6;
}
}
{
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_57 = __this->___m_MaterialReferences_85;
int32_t L_58 = __this->___m_CurrentMaterialIndex_9;
NullCheck(L_57);
int32_t* L_59 = (&((L_57)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_58)))->___referenceCount_8);
int32_t* L_60 = L_59;
int32_t L_61 = *((int32_t*)L_60);
*((int32_t*)L_60) = (int32_t)((int32_t)il2cpp_codegen_add(L_61, 1));
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_62 = ___textInfo2;
NullCheck(L_62);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_63 = L_62->___textElementInfo_10;
int32_t L_64 = __this->___m_TotalCharacterCount_13;
NullCheck(L_63);
int32_t L_65 = __this->___m_SpriteIndex_73;
((L_63)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_64)))->___character_0 = ((int32_t)(uint16_t)((int32_t)il2cpp_codegen_add(((int32_t)57344), L_65)));
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_66 = ___textInfo2;
NullCheck(L_66);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_67 = L_66->___textElementInfo_10;
int32_t L_68 = __this->___m_TotalCharacterCount_13;
NullCheck(L_67);
int32_t L_69 = __this->___m_SpriteIndex_73;
((L_67)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_68)))->___spriteIndex_6 = L_69;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_70 = ___textInfo2;
NullCheck(L_70);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_71 = L_70->___textElementInfo_10;
int32_t L_72 = __this->___m_TotalCharacterCount_13;
NullCheck(L_71);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_73 = __this->___m_CurrentFontAsset_7;
((L_71)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_72)))->___fontAsset_4 = L_73;
Il2CppCodeGenWriteBarrier((void**)(&((L_71)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_72)))->___fontAsset_4), (void*)L_73);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_74 = ___textInfo2;
NullCheck(L_74);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_75 = L_74->___textElementInfo_10;
int32_t L_76 = __this->___m_TotalCharacterCount_13;
NullCheck(L_75);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_77 = __this->___m_CurrentSpriteAsset_12;
((L_75)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_76)))->___spriteAsset_5 = L_77;
Il2CppCodeGenWriteBarrier((void**)(&((L_75)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_76)))->___spriteAsset_5), (void*)L_77);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_78 = ___textInfo2;
NullCheck(L_78);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_79 = L_78->___textElementInfo_10;
int32_t L_80 = __this->___m_TotalCharacterCount_13;
NullCheck(L_79);
int32_t L_81 = __this->___m_CurrentMaterialIndex_9;
((L_79)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_80)))->___materialReferenceIndex_8 = L_81;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_82 = ___textInfo2;
NullCheck(L_82);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_83 = L_82->___textElementInfo_10;
int32_t L_84 = __this->___m_TotalCharacterCount_13;
NullCheck(L_83);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_85 = __this->___m_CurrentSpriteAsset_12;
NullCheck(L_85);
List_1_t7DA088250C54C07AF1211AE132355AD2D343EE51* L_86;
L_86 = SpriteAsset_get_spriteCharacterTable_m8D0D65C430AD8BC8C2BC8151DC4672CC0F690E0A(L_85, NULL);
int32_t L_87 = __this->___m_SpriteIndex_73;
NullCheck(L_86);
SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* L_88;
L_88 = List_1_get_Item_m25CB12C13D14620785B0E86F6543D20B5080AFF8(L_86, L_87, List_1_get_Item_m25CB12C13D14620785B0E86F6543D20B5080AFF8_RuntimeMethod_var);
((L_83)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_84)))->___textElement_3 = L_88;
Il2CppCodeGenWriteBarrier((void**)(&((L_83)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_84)))->___textElement_3), (void*)L_88);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_89 = ___textInfo2;
NullCheck(L_89);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_90 = L_89->___textElementInfo_10;
int32_t L_91 = __this->___m_TotalCharacterCount_13;
NullCheck(L_90);
uint8_t L_92 = __this->___m_TextElementType_71;
((L_90)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_91)))->___elementType_2 = L_92;
__this->___m_TextElementType_71 = 1;
int32_t L_93 = V_14;
__this->___m_CurrentMaterialIndex_9 = L_93;
int32_t L_94 = V_1;
V_1 = ((int32_t)il2cpp_codegen_add(L_94, 1));
int32_t L_95 = __this->___m_TotalCharacterCount_13;
__this->___m_TotalCharacterCount_13 = ((int32_t)il2cpp_codegen_add(L_95, 1));
}
IL_02b6:
{
goto IL_08d6;
}
IL_02bb:
{
}
IL_02bc:
{
V_7 = (bool)0;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_96 = __this->___m_CurrentFontAsset_7;
V_8 = L_96;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_97 = __this->___m_CurrentMaterial_8;
V_9 = L_97;
int32_t L_98 = __this->___m_CurrentMaterialIndex_9;
V_10 = L_98;
uint8_t L_99 = __this->___m_TextElementType_71;
V_19 = (bool)((((int32_t)L_99) == ((int32_t)1))? 1 : 0);
bool L_100 = V_19;
if (!L_100)
{
goto IL_0374;
}
}
{
int32_t L_101 = __this->___m_FontStyleInternal_19;
V_20 = (bool)((((int32_t)((int32_t)((int32_t)L_101&((int32_t)16)))) == ((int32_t)((int32_t)16)))? 1 : 0);
bool L_102 = V_20;
if (!L_102)
{
goto IL_0319;
}
}
{
int32_t L_103 = V_5;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
bool L_104;
L_104 = Char_IsLower_m30A84A53658D6250257BFD99051D4931916D5D91(((int32_t)(uint16_t)L_103), NULL);
V_21 = L_104;
bool L_105 = V_21;
if (!L_105)
{
goto IL_0316;
}
}
{
int32_t L_106 = V_5;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
Il2CppChar L_107;
L_107 = Char_ToUpper_m3753B9BCD4A82C8B5D86D39D9B1B2D638B0AFE84(((int32_t)(uint16_t)L_106), NULL);
V_5 = L_107;
}
IL_0316:
{
goto IL_0373;
}
IL_0319:
{
int32_t L_108 = __this->___m_FontStyleInternal_19;
V_22 = (bool)((((int32_t)((int32_t)((int32_t)L_108&8))) == ((int32_t)8))? 1 : 0);
bool L_109 = V_22;
if (!L_109)
{
goto IL_0346;
}
}
{
int32_t L_110 = V_5;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
bool L_111;
L_111 = Char_IsUpper_m857948FB8687710EC3EAB889A4908E00E4F48BDA(((int32_t)(uint16_t)L_110), NULL);
V_23 = L_111;
bool L_112 = V_23;
if (!L_112)
{
goto IL_0343;
}
}
{
int32_t L_113 = V_5;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
Il2CppChar L_114;
L_114 = Char_ToLower_m643675C4A50AD39A7BE3F5C3F40A1BFD547FF957(((int32_t)(uint16_t)L_113), NULL);
V_5 = L_114;
}
IL_0343:
{
goto IL_0373;
}
IL_0346:
{
int32_t L_115 = __this->___m_FontStyleInternal_19;
V_24 = (bool)((((int32_t)((int32_t)((int32_t)L_115&((int32_t)32)))) == ((int32_t)((int32_t)32)))? 1 : 0);
bool L_116 = V_24;
if (!L_116)
{
goto IL_0373;
}
}
{
int32_t L_117 = V_5;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
bool L_118;
L_118 = Char_IsLower_m30A84A53658D6250257BFD99051D4931916D5D91(((int32_t)(uint16_t)L_117), NULL);
V_25 = L_118;
bool L_119 = V_25;
if (!L_119)
{
goto IL_0372;
}
}
{
int32_t L_120 = V_5;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
Il2CppChar L_121;
L_121 = Char_ToUpper_m3753B9BCD4A82C8B5D86D39D9B1B2D638B0AFE84(((int32_t)(uint16_t)L_120), NULL);
V_5 = L_121;
}
IL_0372:
{
}
IL_0373:
{
}
IL_0374:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_122 = ___generationSettings1;
int32_t L_123 = V_5;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_124 = __this->___m_CurrentFontAsset_7;
int32_t L_125 = __this->___m_FontStyleInternal_19;
int32_t L_126 = __this->___m_FontWeightInternal_21;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_127;
L_127 = TextGenerator_GetTextElement_mC46F0E788A0F6EB5A62601BCE4F383C3143C78CB(__this, L_122, L_123, L_124, L_125, L_126, (&V_6), NULL);
V_11 = L_127;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_128 = V_11;
V_26 = (bool)((((RuntimeObject*)(TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA*)L_128) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_129 = V_26;
if (!L_129)
{
goto IL_04f3;
}
}
{
int32_t L_130 = V_5;
V_27 = L_130;
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_131 = V_0;
NullCheck(L_131);
int32_t L_132;
L_132 = TextSettings_get_missingCharacterUnicode_mA707E5E6633633BBB3BAFB96B97A5A995100F3F3_inline(L_131, NULL);
if (!L_132)
{
goto IL_03b6;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_133 = V_0;
NullCheck(L_133);
int32_t L_134;
L_134 = TextSettings_get_missingCharacterUnicode_mA707E5E6633633BBB3BAFB96B97A5A995100F3F3_inline(L_133, NULL);
G_B40_0 = L_134;
goto IL_03bb;
}
IL_03b6:
{
G_B40_0 = ((int32_t)9633);
}
IL_03bb:
{
V_5 = G_B40_0;
int32_t L_135 = V_5;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_136 = __this->___m_CurrentFontAsset_7;
int32_t L_137 = __this->___m_FontStyleInternal_19;
int32_t L_138 = __this->___m_FontWeightInternal_21;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_139;
L_139 = FontAssetUtilities_GetCharacterFromFontAsset_m2AADCA590977FA4C398D4ECF6E7DF0BE77527801(L_135, L_136, (bool)1, L_137, L_138, (&V_6), NULL);
V_11 = L_139;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_140 = V_11;
V_28 = (bool)((((RuntimeObject*)(TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA*)L_140) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_141 = V_28;
if (!L_141)
{
goto IL_042b;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_142 = V_0;
NullCheck(L_142);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_143;
L_143 = TextSettings_get_fallbackFontAssets_m332526E834C994425141A58C968FD40320573F98_inline(L_142, NULL);
if (!L_143)
{
goto IL_03ff;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_144 = V_0;
NullCheck(L_144);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_145;
L_145 = TextSettings_get_fallbackFontAssets_m332526E834C994425141A58C968FD40320573F98_inline(L_144, NULL);
NullCheck(L_145);
int32_t L_146;
L_146 = List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_inline(L_145, List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_RuntimeMethod_var);
G_B44_0 = ((((int32_t)L_146) > ((int32_t)0))? 1 : 0);
goto IL_0400;
}
IL_03ff:
{
G_B44_0 = 0;
}
IL_0400:
{
V_29 = (bool)G_B44_0;
bool L_147 = V_29;
if (!L_147)
{
goto IL_042a;
}
}
{
int32_t L_148 = V_5;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_149 = __this->___m_CurrentFontAsset_7;
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_150 = V_0;
NullCheck(L_150);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_151;
L_151 = TextSettings_get_fallbackFontAssets_m332526E834C994425141A58C968FD40320573F98_inline(L_150, NULL);
int32_t L_152 = __this->___m_FontStyleInternal_19;
int32_t L_153 = __this->___m_FontWeightInternal_21;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_154;
L_154 = FontAssetUtilities_GetCharacterFromFontAssets_mB1612268F7A1926C2C39A4EFFB5AB795F234F9DF(L_148, L_149, L_151, (bool)1, L_152, L_153, (&V_6), NULL);
V_11 = L_154;
}
IL_042a:
{
}
IL_042b:
{
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_155 = V_11;
V_30 = (bool)((((RuntimeObject*)(TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA*)L_155) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_156 = V_30;
if (!L_156)
{
goto IL_0468;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_157 = V_0;
NullCheck(L_157);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_158;
L_158 = TextSettings_get_defaultFontAsset_mC6280464BFEE081DB23243BB94E49C72A0885A1F_inline(L_157, NULL);
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_159;
L_159 = Object_op_Inequality_m4D656395C27694A7F33F5AA8DE80A7AAF9E20BA7(L_158, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_31 = L_159;
bool L_160 = V_31;
if (!L_160)
{
goto IL_0467;
}
}
{
int32_t L_161 = V_5;
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_162 = V_0;
NullCheck(L_162);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_163;
L_163 = TextSettings_get_defaultFontAsset_mC6280464BFEE081DB23243BB94E49C72A0885A1F_inline(L_162, NULL);
int32_t L_164 = __this->___m_FontStyleInternal_19;
int32_t L_165 = __this->___m_FontWeightInternal_21;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_166;
L_166 = FontAssetUtilities_GetCharacterFromFontAsset_m2AADCA590977FA4C398D4ECF6E7DF0BE77527801(L_161, L_163, (bool)1, L_164, L_165, (&V_6), NULL);
V_11 = L_166;
}
IL_0467:
{
}
IL_0468:
{
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_167 = V_11;
V_32 = (bool)((((RuntimeObject*)(TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA*)L_167) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_168 = V_32;
if (!L_168)
{
goto IL_04f2;
}
}
{
V_5 = ((int32_t)32);
int32_t L_169 = V_5;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_170 = __this->___m_CurrentFontAsset_7;
int32_t L_171 = __this->___m_FontStyleInternal_19;
int32_t L_172 = __this->___m_FontWeightInternal_21;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_173;
L_173 = FontAssetUtilities_GetCharacterFromFontAsset_m2AADCA590977FA4C398D4ECF6E7DF0BE77527801(L_169, L_170, (bool)1, L_171, L_172, (&V_6), NULL);
V_11 = L_173;
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_174 = V_0;
NullCheck(L_174);
bool L_175;
L_175 = TextSettings_get_displayWarnings_m3CA9FCB44B30CC06F54CD3716D68285FF844DF83_inline(L_174, NULL);
V_33 = L_175;
bool L_176 = V_33;
if (!L_176)
{
goto IL_04f1;
}
}
{
int32_t L_177 = V_27;
if ((((int32_t)L_177) > ((int32_t)((int32_t)65535))))
{
goto IL_04ca;
}
}
{
int32_t L_178 = V_27;
int32_t L_179 = L_178;
RuntimeObject* L_180 = Box(Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C_il2cpp_TypeInfo_var, &L_179);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_181 = ___generationSettings1;
NullCheck(L_181);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_182 = L_181->___fontAsset_4;
NullCheck(L_182);
String_t* L_183;
L_183 = Object_get_name_mAC2F6B897CF1303BA4249B4CB55271AFACBB6392(L_182, NULL);
String_t* L_184;
L_184 = String_Format_m9499958F4B0BB6089C75760AB647AB3CA4D55806(_stringLiteralCAAD2794A22F622E48C3D6803C2630A786F758B7, L_180, L_183, NULL);
G_B56_0 = L_184;
goto IL_04e6;
}
IL_04ca:
{
int32_t L_185 = V_27;
int32_t L_186 = L_185;
RuntimeObject* L_187 = Box(Int32_t680FF22E76F6EFAD4375103CBBFFA0421349384C_il2cpp_TypeInfo_var, &L_186);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_188 = ___generationSettings1;
NullCheck(L_188);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_189 = L_188->___fontAsset_4;
NullCheck(L_189);
String_t* L_190;
L_190 = Object_get_name_mAC2F6B897CF1303BA4249B4CB55271AFACBB6392(L_189, NULL);
String_t* L_191;
L_191 = String_Format_m9499958F4B0BB6089C75760AB647AB3CA4D55806(_stringLiteral3A16983F3F5E2FE996FFAE625831CCA22C609206, L_187, L_190, NULL);
G_B56_0 = L_191;
}
IL_04e6:
{
V_34 = G_B56_0;
String_t* L_192 = V_34;
il2cpp_codegen_runtime_class_init_inline(Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var);
Debug_LogWarning_mEF15C6B17CE4E1FA7E379CDB82CE40FCD89A3F28(L_192, NULL);
}
IL_04f1:
{
}
IL_04f2:
{
}
IL_04f3:
{
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_193 = V_11;
NullCheck(L_193);
uint8_t L_194;
L_194 = TextElement_get_elementType_m7BF97842479112227C1C3C83E0E94A176CD7D31A(L_193, NULL);
V_35 = (bool)((((int32_t)L_194) == ((int32_t)1))? 1 : 0);
bool L_195 = V_35;
if (!L_195)
{
goto IL_053e;
}
}
{
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_196 = V_11;
NullCheck(L_196);
TextAsset_tB28F1843A877CCA74B89DC4F63EA532618B049B8* L_197;
L_197 = TextElement_get_textAsset_m52383A3758AABF5BEA013155765BD1141479685A(L_196, NULL);
NullCheck(L_197);
int32_t L_198;
L_198 = TextAsset_get_instanceID_m843A6CAA7FE9322CD19546671D3F0E90A0E27AFB(L_197, NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_199 = __this->___m_CurrentFontAsset_7;
NullCheck(L_199);
int32_t L_200;
L_200 = TextAsset_get_instanceID_m843A6CAA7FE9322CD19546671D3F0E90A0E27AFB(L_199, NULL);
V_36 = (bool)((((int32_t)((((int32_t)L_198) == ((int32_t)L_200))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_201 = V_36;
if (!L_201)
{
goto IL_053d;
}
}
{
V_7 = (bool)1;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_202 = V_11;
NullCheck(L_202);
TextAsset_tB28F1843A877CCA74B89DC4F63EA532618B049B8* L_203;
L_203 = TextElement_get_textAsset_m52383A3758AABF5BEA013155765BD1141479685A(L_202, NULL);
__this->___m_CurrentFontAsset_7 = ((FontAsset_t61A6446D934E582651044E33D250EA8D306AB958*)IsInstClass((RuntimeObject*)L_203, FontAsset_t61A6446D934E582651044E33D250EA8D306AB958_il2cpp_TypeInfo_var));
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentFontAsset_7), (void*)((FontAsset_t61A6446D934E582651044E33D250EA8D306AB958*)IsInstClass((RuntimeObject*)L_203, FontAsset_t61A6446D934E582651044E33D250EA8D306AB958_il2cpp_TypeInfo_var)));
}
IL_053d:
{
}
IL_053e:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_204 = ___textInfo2;
NullCheck(L_204);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_205 = L_204->___textElementInfo_10;
int32_t L_206 = __this->___m_TotalCharacterCount_13;
NullCheck(L_205);
((L_205)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_206)))->___elementType_2 = 1;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_207 = ___textInfo2;
NullCheck(L_207);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_208 = L_207->___textElementInfo_10;
int32_t L_209 = __this->___m_TotalCharacterCount_13;
NullCheck(L_208);
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_210 = V_11;
((L_208)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_209)))->___textElement_3 = L_210;
Il2CppCodeGenWriteBarrier((void**)(&((L_208)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_209)))->___textElement_3), (void*)L_210);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_211 = ___textInfo2;
NullCheck(L_211);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_212 = L_211->___textElementInfo_10;
int32_t L_213 = __this->___m_TotalCharacterCount_13;
NullCheck(L_212);
bool L_214 = V_6;
((L_212)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_213)))->___isUsingAlternateTypeface_9 = L_214;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_215 = ___textInfo2;
NullCheck(L_215);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_216 = L_215->___textElementInfo_10;
int32_t L_217 = __this->___m_TotalCharacterCount_13;
NullCheck(L_216);
int32_t L_218 = V_5;
((L_216)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_217)))->___character_0 = ((int32_t)(uint16_t)L_218);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_219 = ___textInfo2;
NullCheck(L_219);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_220 = L_219->___textElementInfo_10;
int32_t L_221 = __this->___m_TotalCharacterCount_13;
NullCheck(L_220);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_222 = __this->___m_CurrentFontAsset_7;
((L_220)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_221)))->___fontAsset_4 = L_222;
Il2CppCodeGenWriteBarrier((void**)(&((L_220)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_221)))->___fontAsset_4), (void*)L_222);
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_223 = V_11;
NullCheck(L_223);
uint8_t L_224;
L_224 = TextElement_get_elementType_m7BF97842479112227C1C3C83E0E94A176CD7D31A(L_223, NULL);
V_37 = (bool)((((int32_t)L_224) == ((int32_t)2))? 1 : 0);
bool L_225 = V_37;
if (!L_225)
{
goto IL_06a5;
}
}
{
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_226 = V_11;
NullCheck(L_226);
TextAsset_tB28F1843A877CCA74B89DC4F63EA532618B049B8* L_227;
L_227 = TextElement_get_textAsset_m52383A3758AABF5BEA013155765BD1141479685A(L_226, NULL);
V_38 = ((SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313*)IsInstClass((RuntimeObject*)L_227, SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313_il2cpp_TypeInfo_var));
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_228 = V_38;
NullCheck(L_228);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_229;
L_229 = TextAsset_get_material_m4B9C02D34426436FDB01F1963A9FDC11D75604EF_inline(L_228, NULL);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_230 = V_38;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E** L_231 = (&__this->___m_MaterialReferences_85);
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* L_232 = __this->___m_MaterialReferenceIndexLookup_93;
int32_t L_233;
L_233 = MaterialReference_AddMaterialReference_m04F13DFCB5D0C707877E45A48B6C47CE80FC99E7(L_229, L_230, L_231, L_232, NULL);
__this->___m_CurrentMaterialIndex_9 = L_233;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_234 = __this->___m_MaterialReferences_85;
int32_t L_235 = __this->___m_CurrentMaterialIndex_9;
NullCheck(L_234);
int32_t* L_236 = (&((L_234)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_235)))->___referenceCount_8);
int32_t* L_237 = L_236;
int32_t L_238 = *((int32_t*)L_237);
*((int32_t*)L_237) = (int32_t)((int32_t)il2cpp_codegen_add(L_238, 1));
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_239 = ___textInfo2;
NullCheck(L_239);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_240 = L_239->___textElementInfo_10;
int32_t L_241 = __this->___m_TotalCharacterCount_13;
NullCheck(L_240);
((L_240)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_241)))->___elementType_2 = 2;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_242 = ___textInfo2;
NullCheck(L_242);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_243 = L_242->___textElementInfo_10;
int32_t L_244 = __this->___m_TotalCharacterCount_13;
NullCheck(L_243);
int32_t L_245 = __this->___m_CurrentMaterialIndex_9;
((L_243)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_244)))->___materialReferenceIndex_8 = L_245;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_246 = ___textInfo2;
NullCheck(L_246);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_247 = L_246->___textElementInfo_10;
int32_t L_248 = __this->___m_TotalCharacterCount_13;
NullCheck(L_247);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_249 = V_38;
((L_247)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_248)))->___spriteAsset_5 = L_249;
Il2CppCodeGenWriteBarrier((void**)(&((L_247)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_248)))->___spriteAsset_5), (void*)L_249);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_250 = ___textInfo2;
NullCheck(L_250);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_251 = L_250->___textElementInfo_10;
int32_t L_252 = __this->___m_TotalCharacterCount_13;
NullCheck(L_251);
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_253 = V_11;
NullCheck(L_253);
uint32_t L_254;
L_254 = TextElement_get_glyphIndex_m43F82F2F998D640DEDBE6860EBE7B171DDF4FE56(L_253, NULL);
((L_251)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_252)))->___spriteIndex_6 = L_254;
__this->___m_TextElementType_71 = 1;
int32_t L_255 = V_10;
__this->___m_CurrentMaterialIndex_9 = L_255;
int32_t L_256 = V_1;
V_1 = ((int32_t)il2cpp_codegen_add(L_256, 1));
int32_t L_257 = __this->___m_TotalCharacterCount_13;
__this->___m_TotalCharacterCount_13 = ((int32_t)il2cpp_codegen_add(L_257, 1));
goto IL_08d6;
}
IL_06a5:
{
bool L_258 = V_7;
if (!L_258)
{
goto IL_06c6;
}
}
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_259 = __this->___m_CurrentFontAsset_7;
NullCheck(L_259);
int32_t L_260;
L_260 = TextAsset_get_instanceID_m843A6CAA7FE9322CD19546671D3F0E90A0E27AFB(L_259, NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_261 = ___generationSettings1;
NullCheck(L_261);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_262 = L_261->___fontAsset_4;
NullCheck(L_262);
int32_t L_263;
L_263 = TextAsset_get_instanceID_m843A6CAA7FE9322CD19546671D3F0E90A0E27AFB(L_262, NULL);
G_B68_0 = ((((int32_t)((((int32_t)L_260) == ((int32_t)L_263))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_06c7;
}
IL_06c6:
{
G_B68_0 = 0;
}
IL_06c7:
{
V_39 = (bool)G_B68_0;
bool L_264 = V_39;
if (!L_264)
{
goto IL_072d;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_265 = V_0;
NullCheck(L_265);
bool L_266;
L_266 = TextSettings_get_matchMaterialPreset_m4675979547AE4C83E680260EAE5ACBC4FAC53B87_inline(L_265, NULL);
V_40 = L_266;
bool L_267 = V_40;
if (!L_267)
{
goto IL_06f8;
}
}
{
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_268 = __this->___m_CurrentMaterial_8;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_269 = __this->___m_CurrentFontAsset_7;
NullCheck(L_269);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_270;
L_270 = TextAsset_get_material_m4B9C02D34426436FDB01F1963A9FDC11D75604EF_inline(L_269, NULL);
il2cpp_codegen_runtime_class_init_inline(MaterialManager_t104D2897F78BE83C3377323E18BEB5B8F0704D9B_il2cpp_TypeInfo_var);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_271;
L_271 = MaterialManager_GetFallbackMaterial_m7BB3FDBF4411623DBA57727F2C54A33DA7F22554(L_268, L_270, NULL);
__this->___m_CurrentMaterial_8 = L_271;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_271);
goto IL_0709;
}
IL_06f8:
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_272 = __this->___m_CurrentFontAsset_7;
NullCheck(L_272);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_273;
L_273 = TextAsset_get_material_m4B9C02D34426436FDB01F1963A9FDC11D75604EF_inline(L_272, NULL);
__this->___m_CurrentMaterial_8 = L_273;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_273);
}
IL_0709:
{
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_274 = __this->___m_CurrentMaterial_8;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_275 = __this->___m_CurrentFontAsset_7;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E** L_276 = (&__this->___m_MaterialReferences_85);
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* L_277 = __this->___m_MaterialReferenceIndexLookup_93;
int32_t L_278;
L_278 = MaterialReference_AddMaterialReference_m6C0963F5E7C06B0371F2B18FE177D55B6C4C1105(L_274, L_275, L_276, L_277, NULL);
__this->___m_CurrentMaterialIndex_9 = L_278;
}
IL_072d:
{
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_279 = V_11;
if (!L_279)
{
goto IL_0742;
}
}
{
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_280 = V_11;
NullCheck(L_280);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_281;
L_281 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_280, NULL);
NullCheck(L_281);
int32_t L_282;
L_282 = Glyph_get_atlasIndex_m575332307F2C182655EE9AD352E92F1B5F4D26DF(L_281, NULL);
G_B76_0 = ((((int32_t)L_282) > ((int32_t)0))? 1 : 0);
goto IL_0743;
}
IL_0742:
{
G_B76_0 = 0;
}
IL_0743:
{
V_41 = (bool)G_B76_0;
bool L_283 = V_41;
if (!L_283)
{
goto IL_0794;
}
}
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_284 = __this->___m_CurrentFontAsset_7;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_285 = __this->___m_CurrentMaterial_8;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_286 = V_11;
NullCheck(L_286);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_287;
L_287 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_286, NULL);
NullCheck(L_287);
int32_t L_288;
L_288 = Glyph_get_atlasIndex_m575332307F2C182655EE9AD352E92F1B5F4D26DF(L_287, NULL);
il2cpp_codegen_runtime_class_init_inline(MaterialManager_t104D2897F78BE83C3377323E18BEB5B8F0704D9B_il2cpp_TypeInfo_var);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_289;
L_289 = MaterialManager_GetFallbackMaterial_mEABF84B8A8BC620A6CB6D830089FB6890389C8B6(L_284, L_285, L_288, NULL);
__this->___m_CurrentMaterial_8 = L_289;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_289);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_290 = __this->___m_CurrentMaterial_8;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_291 = __this->___m_CurrentFontAsset_7;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E** L_292 = (&__this->___m_MaterialReferences_85);
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* L_293 = __this->___m_MaterialReferenceIndexLookup_93;
int32_t L_294;
L_294 = MaterialReference_AddMaterialReference_m6C0963F5E7C06B0371F2B18FE177D55B6C4C1105(L_290, L_291, L_292, L_293, NULL);
__this->___m_CurrentMaterialIndex_9 = L_294;
V_7 = (bool)1;
}
IL_0794:
{
int32_t L_295 = V_5;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
bool L_296;
L_296 = Char_IsWhiteSpace_m9CE0F6685DB2502ABE106D160F95A287EFC07EF9(((int32_t)(uint16_t)L_295), NULL);
if (L_296)
{
goto IL_07ac;
}
}
{
int32_t L_297 = V_5;
G_B81_0 = ((((int32_t)((((int32_t)L_297) == ((int32_t)((int32_t)8203)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_07ad;
}
IL_07ac:
{
G_B81_0 = 0;
}
IL_07ad:
{
V_42 = (bool)G_B81_0;
bool L_298 = V_42;
if (!L_298)
{
goto IL_083d;
}
}
{
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_299 = __this->___m_MaterialReferences_85;
int32_t L_300 = __this->___m_CurrentMaterialIndex_9;
NullCheck(L_299);
int32_t L_301 = ((L_299)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_300)))->___referenceCount_8;
V_43 = (bool)((((int32_t)L_301) < ((int32_t)((int32_t)16383)))? 1 : 0);
bool L_302 = V_43;
if (!L_302)
{
goto IL_07f7;
}
}
{
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_303 = __this->___m_MaterialReferences_85;
int32_t L_304 = __this->___m_CurrentMaterialIndex_9;
NullCheck(L_303);
int32_t* L_305 = (&((L_303)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_304)))->___referenceCount_8);
int32_t* L_306 = L_305;
int32_t L_307 = *((int32_t*)L_306);
*((int32_t*)L_306) = (int32_t)((int32_t)il2cpp_codegen_add(L_307, 1));
goto IL_083c;
}
IL_07f7:
{
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_308 = __this->___m_CurrentMaterial_8;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_309 = (Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3*)il2cpp_codegen_object_new(Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3_il2cpp_TypeInfo_var);
NullCheck(L_309);
Material__ctor_mFCC42FB90257F1E8F7516A8640A79C465A39961C(L_309, L_308, NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_310 = __this->___m_CurrentFontAsset_7;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E** L_311 = (&__this->___m_MaterialReferences_85);
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* L_312 = __this->___m_MaterialReferenceIndexLookup_93;
int32_t L_313;
L_313 = MaterialReference_AddMaterialReference_m6C0963F5E7C06B0371F2B18FE177D55B6C4C1105(L_309, L_310, L_311, L_312, NULL);
__this->___m_CurrentMaterialIndex_9 = L_313;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_314 = __this->___m_MaterialReferences_85;
int32_t L_315 = __this->___m_CurrentMaterialIndex_9;
NullCheck(L_314);
int32_t* L_316 = (&((L_314)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_315)))->___referenceCount_8);
int32_t* L_317 = L_316;
int32_t L_318 = *((int32_t*)L_317);
*((int32_t*)L_317) = (int32_t)((int32_t)il2cpp_codegen_add(L_318, 1));
}
IL_083c:
{
}
IL_083d:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_319 = ___textInfo2;
NullCheck(L_319);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_320 = L_319->___textElementInfo_10;
int32_t L_321 = __this->___m_TotalCharacterCount_13;
NullCheck(L_320);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_322 = __this->___m_CurrentMaterial_8;
((L_320)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_321)))->___material_7 = L_322;
Il2CppCodeGenWriteBarrier((void**)(&((L_320)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_321)))->___material_7), (void*)L_322);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_323 = ___textInfo2;
NullCheck(L_323);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_324 = L_323->___textElementInfo_10;
int32_t L_325 = __this->___m_TotalCharacterCount_13;
NullCheck(L_324);
int32_t L_326 = __this->___m_CurrentMaterialIndex_9;
((L_324)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_325)))->___materialReferenceIndex_8 = L_326;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_327 = __this->___m_MaterialReferences_85;
int32_t L_328 = __this->___m_CurrentMaterialIndex_9;
NullCheck(L_327);
bool L_329 = V_7;
((L_327)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_328)))->___isFallbackMaterial_5 = L_329;
bool L_330 = V_7;
V_44 = L_330;
bool L_331 = V_44;
if (!L_331)
{
goto IL_08c7;
}
}
{
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_332 = __this->___m_MaterialReferences_85;
int32_t L_333 = __this->___m_CurrentMaterialIndex_9;
NullCheck(L_332);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_334 = V_9;
((L_332)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_333)))->___fallbackMaterial_6 = L_334;
Il2CppCodeGenWriteBarrier((void**)(&((L_332)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_333)))->___fallbackMaterial_6), (void*)L_334);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_335 = V_8;
__this->___m_CurrentFontAsset_7 = L_335;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentFontAsset_7), (void*)L_335);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_336 = V_9;
__this->___m_CurrentMaterial_8 = L_336;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_336);
int32_t L_337 = V_10;
__this->___m_CurrentMaterialIndex_9 = L_337;
}
IL_08c7:
{
int32_t L_338 = __this->___m_TotalCharacterCount_13;
__this->___m_TotalCharacterCount_13 = ((int32_t)il2cpp_codegen_add(L_338, 1));
}
IL_08d6:
{
int32_t L_339 = V_4;
V_4 = ((int32_t)il2cpp_codegen_add(L_339, 1));
}
IL_08dc:
{
int32_t L_340 = V_4;
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_341 = ___chars0;
NullCheck(L_341);
if ((((int32_t)L_340) >= ((int32_t)((int32_t)(((RuntimeArray*)L_341)->max_length)))))
{
goto IL_08ec;
}
}
{
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_342 = ___chars0;
int32_t L_343 = V_4;
NullCheck(L_342);
int32_t L_344 = L_343;
int32_t L_345 = (L_342)->GetAt(static_cast<il2cpp_array_size_t>(L_344));
G_B93_0 = ((!(((uint32_t)L_345) <= ((uint32_t)0)))? 1 : 0);
goto IL_08ed;
}
IL_08ec:
{
G_B93_0 = 0;
}
IL_08ed:
{
V_45 = (bool)G_B93_0;
bool L_346 = V_45;
if (L_346)
{
goto IL_00f3;
}
}
{
bool L_347 = __this->___m_IsCalculatingPreferredValues_94;
V_46 = L_347;
bool L_348 = V_46;
if (!L_348)
{
goto IL_090f;
}
}
{
__this->___m_IsCalculatingPreferredValues_94 = (bool)0;
goto IL_0ad9;
}
IL_090f:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_349 = ___textInfo2;
int32_t L_350 = V_1;
NullCheck(L_349);
L_349->___spriteCount_3 = L_350;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_351 = ___textInfo2;
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* L_352 = __this->___m_MaterialReferenceIndexLookup_93;
NullCheck(L_352);
int32_t L_353;
L_353 = Dictionary_2_get_Count_mD88F18E0B2065189516BF168F521E531BE54384A(L_352, Dictionary_2_get_Count_mD88F18E0B2065189516BF168F521E531BE54384A_RuntimeMethod_var);
int32_t L_354 = L_353;
V_47 = L_354;
NullCheck(L_351);
L_351->___materialCount_9 = L_354;
int32_t L_355 = V_47;
V_2 = L_355;
int32_t L_356 = V_2;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_357 = ___textInfo2;
NullCheck(L_357);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_358 = L_357->___meshInfo_15;
NullCheck(L_358);
V_48 = (bool)((((int32_t)L_356) > ((int32_t)((int32_t)(((RuntimeArray*)L_358)->max_length))))? 1 : 0);
bool L_359 = V_48;
if (!L_359)
{
goto IL_094c;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_360 = ___textInfo2;
NullCheck(L_360);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6** L_361 = (&L_360->___meshInfo_15);
int32_t L_362 = V_2;
il2cpp_codegen_runtime_class_init_inline(TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09_il2cpp_TypeInfo_var);
TextInfo_Resize_TisMeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F_m8DCA99800557BA87ADA9D085ECBE0F002B615BE2(L_361, L_362, (bool)0, TextInfo_Resize_TisMeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F_m8DCA99800557BA87ADA9D085ECBE0F002B615BE2_RuntimeMethod_var);
}
IL_094c:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_363 = ___textInfo2;
NullCheck(L_363);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_364 = L_363->___textElementInfo_10;
NullCheck(L_364);
int32_t L_365 = __this->___m_TotalCharacterCount_13;
V_49 = (bool)((((int32_t)((int32_t)il2cpp_codegen_subtract(((int32_t)(((RuntimeArray*)L_364)->max_length)), L_365))) > ((int32_t)((int32_t)256)))? 1 : 0);
bool L_366 = V_49;
if (!L_366)
{
goto IL_0987;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_367 = ___textInfo2;
NullCheck(L_367);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E** L_368 = (&L_367->___textElementInfo_10);
int32_t L_369 = __this->___m_TotalCharacterCount_13;
int32_t L_370;
L_370 = Mathf_Max_m8A4C189A6749DFE3ED8B66D9D3CACD8DB333974F_inline(((int32_t)il2cpp_codegen_add(L_369, 1)), ((int32_t)256), NULL);
il2cpp_codegen_runtime_class_init_inline(TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09_il2cpp_TypeInfo_var);
TextInfo_Resize_TisTextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976_mF1BA7075C51A6706D5946DC1D8B3FBE1B937C92E(L_368, L_370, (bool)1, TextInfo_Resize_TisTextElementInfo_tDD7A12E319505510E0B350E342BD55F32AB5F976_mF1BA7075C51A6706D5946DC1D8B3FBE1B937C92E_RuntimeMethod_var);
}
IL_0987:
{
V_50 = 0;
goto IL_0acb;
}
IL_098f:
{
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_371 = __this->___m_MaterialReferences_85;
int32_t L_372 = V_50;
NullCheck(L_371);
int32_t L_373 = ((L_371)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_372)))->___referenceCount_8;
V_51 = L_373;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_374 = ___textInfo2;
NullCheck(L_374);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_375 = L_374->___meshInfo_15;
int32_t L_376 = V_50;
NullCheck(L_375);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_377 = ((L_375)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_376)))->___vertices_2;
if (!L_377)
{
goto IL_09d4;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_378 = ___textInfo2;
NullCheck(L_378);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_379 = L_378->___meshInfo_15;
int32_t L_380 = V_50;
NullCheck(L_379);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_381 = ((L_379)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_380)))->___vertices_2;
NullCheck(L_381);
int32_t L_382 = V_51;
G_B104_0 = ((((int32_t)((int32_t)(((RuntimeArray*)L_381)->max_length))) < ((int32_t)((int32_t)il2cpp_codegen_multiply(L_382, 4))))? 1 : 0);
goto IL_09d5;
}
IL_09d4:
{
G_B104_0 = 1;
}
IL_09d5:
{
V_52 = (bool)G_B104_0;
bool L_383 = V_52;
if (!L_383)
{
goto IL_0a41;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_384 = ___textInfo2;
NullCheck(L_384);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_385 = L_384->___meshInfo_15;
int32_t L_386 = V_50;
NullCheck(L_385);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_387 = ((L_385)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_386)))->___vertices_2;
V_53 = (bool)((((RuntimeObject*)(Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C*)L_387) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_388 = V_53;
if (!L_388)
{
goto IL_0a11;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_389 = ___textInfo2;
NullCheck(L_389);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_390 = L_389->___meshInfo_15;
int32_t L_391 = V_50;
int32_t L_392 = V_51;
MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F L_393;
memset((&L_393), 0, sizeof(L_393));
MeshInfo__ctor_mCC2410C5590BEA974468F4CECFA874BE966CDE61((&L_393), ((int32_t)il2cpp_codegen_add(L_392, 1)), /*hidden argument*/NULL);
NullCheck(L_390);
(L_390)->SetAt(static_cast<il2cpp_array_size_t>(L_391), (MeshInfo_tE55C4A8846CC2C399CCC3FE989476D987B86AB2F)L_393);
goto IL_0a3e;
}
IL_0a11:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_394 = ___textInfo2;
NullCheck(L_394);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_395 = L_394->___meshInfo_15;
int32_t L_396 = V_50;
NullCheck(L_395);
int32_t L_397 = V_51;
G_B108_0 = ((L_395)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_396)));
if ((((int32_t)L_397) > ((int32_t)((int32_t)1024))))
{
G_B109_0 = ((L_395)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_396)));
goto IL_0a30;
}
}
{
int32_t L_398 = V_51;
int32_t L_399;
L_399 = Mathf_NextPowerOfTwo_m25B17CBCFB02762842BE3725618DD97C7C4B1014(L_398, NULL);
G_B110_0 = L_399;
G_B110_1 = G_B108_0;
goto IL_0a38;
}
IL_0a30:
{
int32_t L_400 = V_51;
G_B110_0 = ((int32_t)il2cpp_codegen_add(L_400, ((int32_t)256)));
G_B110_1 = G_B109_0;
}
IL_0a38:
{
MeshInfo_ResizeMeshInfo_mE411FE40935FB9CFB7C334B3A1F216A98B96F5FC(G_B110_1, G_B110_0, NULL);
}
IL_0a3e:
{
goto IL_0aa0;
}
IL_0a41:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_401 = ___textInfo2;
NullCheck(L_401);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_402 = L_401->___meshInfo_15;
int32_t L_403 = V_50;
NullCheck(L_402);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_404 = ((L_402)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_403)))->___vertices_2;
NullCheck(L_404);
int32_t L_405 = V_51;
V_54 = (bool)((((int32_t)((int32_t)il2cpp_codegen_subtract(((int32_t)(((RuntimeArray*)L_404)->max_length)), ((int32_t)il2cpp_codegen_multiply(L_405, 4))))) > ((int32_t)((int32_t)1024)))? 1 : 0);
bool L_406 = V_54;
if (!L_406)
{
goto IL_0aa0;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_407 = ___textInfo2;
NullCheck(L_407);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_408 = L_407->___meshInfo_15;
int32_t L_409 = V_50;
NullCheck(L_408);
int32_t L_410 = V_51;
G_B114_0 = ((L_408)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_409)));
if ((((int32_t)L_410) > ((int32_t)((int32_t)1024))))
{
G_B115_0 = ((L_408)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_409)));
goto IL_0a91;
}
}
{
int32_t L_411 = V_51;
int32_t L_412;
L_412 = Mathf_NextPowerOfTwo_m25B17CBCFB02762842BE3725618DD97C7C4B1014(L_411, NULL);
int32_t L_413;
L_413 = Mathf_Max_m8A4C189A6749DFE3ED8B66D9D3CACD8DB333974F_inline(L_412, ((int32_t)256), NULL);
G_B116_0 = L_413;
G_B116_1 = G_B114_0;
goto IL_0a99;
}
IL_0a91:
{
int32_t L_414 = V_51;
G_B116_0 = ((int32_t)il2cpp_codegen_add(L_414, ((int32_t)256)));
G_B116_1 = G_B115_0;
}
IL_0a99:
{
MeshInfo_ResizeMeshInfo_mE411FE40935FB9CFB7C334B3A1F216A98B96F5FC(G_B116_1, G_B116_0, NULL);
}
IL_0aa0:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_415 = ___textInfo2;
NullCheck(L_415);
MeshInfoU5BU5D_t3DF8B75BF4A213334EED197AD25E432212894AC6* L_416 = L_415->___meshInfo_15;
int32_t L_417 = V_50;
NullCheck(L_416);
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_418 = __this->___m_MaterialReferences_85;
int32_t L_419 = V_50;
NullCheck(L_418);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_420 = ((L_418)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_419)))->___material_3;
((L_416)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_417)))->___material_7 = L_420;
Il2CppCodeGenWriteBarrier((void**)(&((L_416)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_417)))->___material_7), (void*)L_420);
int32_t L_421 = V_50;
V_50 = ((int32_t)il2cpp_codegen_add(L_421, 1));
}
IL_0acb:
{
int32_t L_422 = V_50;
int32_t L_423 = V_2;
V_55 = (bool)((((int32_t)L_422) < ((int32_t)L_423))? 1 : 0);
bool L_424 = V_55;
if (L_424)
{
goto IL_098f;
}
}
IL_0ad9:
{
return;
}
}
// UnityEngine.TextCore.Text.TextElement UnityEngine.TextCore.Text.TextGenerator::GetTextElement(UnityEngine.TextCore.Text.TextGenerationSettings,System.UInt32,UnityEngine.TextCore.Text.FontAsset,UnityEngine.TextCore.Text.FontStyles,UnityEngine.TextCore.Text.TextFontWeight,System.Boolean&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* TextGenerator_GetTextElement_mC46F0E788A0F6EB5A62601BCE4F383C3143C78CB (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings0, uint32_t ___unicode1, FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* ___fontAsset2, int32_t ___fontStyle3, int32_t ___fontWeight4, bool* ___isUsingAlternativeTypeface5, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* V_0 = NULL;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* V_1 = NULL;
bool V_2 = false;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* V_3 = NULL;
bool V_4 = false;
bool V_5 = false;
bool V_6 = false;
bool V_7 = false;
bool V_8 = false;
bool V_9 = false;
bool V_10 = false;
SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* V_11 = NULL;
bool V_12 = false;
bool V_13 = false;
bool V_14 = false;
bool V_15 = false;
bool V_16 = false;
bool V_17 = false;
SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* V_18 = NULL;
bool V_19 = false;
int32_t G_B5_0 = 0;
int32_t G_B15_0 = 0;
int32_t G_B27_0 = 0;
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_0 = ___generationSettings0;
NullCheck(L_0);
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_1 = L_0->___textSettings_9;
V_0 = L_1;
uint32_t L_2 = ___unicode1;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_3 = ___fontAsset2;
int32_t L_4 = ___fontStyle3;
int32_t L_5 = ___fontWeight4;
bool* L_6 = ___isUsingAlternativeTypeface5;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_7;
L_7 = FontAssetUtilities_GetCharacterFromFontAsset_m2AADCA590977FA4C398D4ECF6E7DF0BE77527801(L_2, L_3, (bool)0, L_4, L_5, L_6, NULL);
V_1 = L_7;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_8 = V_1;
V_2 = (bool)((!(((RuntimeObject*)(Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC*)L_8) <= ((RuntimeObject*)(RuntimeObject*)NULL)))? 1 : 0);
bool L_9 = V_2;
if (!L_9)
{
goto IL_0026;
}
}
{
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_10 = V_1;
V_3 = L_10;
goto IL_0238;
}
IL_0026:
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_11 = ___fontAsset2;
NullCheck(L_11);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_12 = L_11->___m_FallbackFontAssetTable_33;
if (!L_12)
{
goto IL_003e;
}
}
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_13 = ___fontAsset2;
NullCheck(L_13);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_14 = L_13->___m_FallbackFontAssetTable_33;
NullCheck(L_14);
int32_t L_15;
L_15 = List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_inline(L_14, List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_RuntimeMethod_var);
G_B5_0 = ((((int32_t)L_15) > ((int32_t)0))? 1 : 0);
goto IL_003f;
}
IL_003e:
{
G_B5_0 = 0;
}
IL_003f:
{
V_4 = (bool)G_B5_0;
bool L_16 = V_4;
if (!L_16)
{
goto IL_005a;
}
}
{
uint32_t L_17 = ___unicode1;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_18 = ___fontAsset2;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_19 = ___fontAsset2;
NullCheck(L_19);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_20 = L_19->___m_FallbackFontAssetTable_33;
int32_t L_21 = ___fontStyle3;
int32_t L_22 = ___fontWeight4;
bool* L_23 = ___isUsingAlternativeTypeface5;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_24;
L_24 = FontAssetUtilities_GetCharacterFromFontAssets_mB1612268F7A1926C2C39A4EFFB5AB795F234F9DF(L_17, L_18, L_20, (bool)1, L_21, L_22, L_23, NULL);
V_1 = L_24;
}
IL_005a:
{
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_25 = V_1;
V_5 = (bool)((!(((RuntimeObject*)(Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC*)L_25) <= ((RuntimeObject*)(RuntimeObject*)NULL)))? 1 : 0);
bool L_26 = V_5;
if (!L_26)
{
goto IL_0075;
}
}
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_27 = ___fontAsset2;
uint32_t L_28 = ___unicode1;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_29 = V_1;
NullCheck(L_27);
FontAsset_AddCharacterToLookupCache_mB90E06CE313CC0BB6F81415BF8FB4E043108EED8(L_27, L_28, L_29, NULL);
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_30 = V_1;
V_3 = L_30;
goto IL_0238;
}
IL_0075:
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_31 = ___fontAsset2;
NullCheck(L_31);
int32_t L_32;
L_32 = TextAsset_get_instanceID_m843A6CAA7FE9322CD19546671D3F0E90A0E27AFB(L_31, NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_33 = ___generationSettings0;
NullCheck(L_33);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_34 = L_33->___fontAsset_4;
NullCheck(L_34);
int32_t L_35;
L_35 = TextAsset_get_instanceID_m843A6CAA7FE9322CD19546671D3F0E90A0E27AFB(L_34, NULL);
V_6 = (bool)((((int32_t)((((int32_t)L_32) == ((int32_t)L_35))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_36 = V_6;
if (!L_36)
{
goto IL_0141;
}
}
{
uint32_t L_37 = ___unicode1;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_38 = ___generationSettings0;
NullCheck(L_38);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_39 = L_38->___fontAsset_4;
int32_t L_40 = ___fontStyle3;
int32_t L_41 = ___fontWeight4;
bool* L_42 = ___isUsingAlternativeTypeface5;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_43;
L_43 = FontAssetUtilities_GetCharacterFromFontAsset_m2AADCA590977FA4C398D4ECF6E7DF0BE77527801(L_37, L_39, (bool)0, L_40, L_41, L_42, NULL);
V_1 = L_43;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_44 = V_1;
V_7 = (bool)((!(((RuntimeObject*)(Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC*)L_44) <= ((RuntimeObject*)(RuntimeObject*)NULL)))? 1 : 0);
bool L_45 = V_7;
if (!L_45)
{
goto IL_00e2;
}
}
{
__this->___m_CurrentMaterialIndex_9 = 0;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_46 = __this->___m_MaterialReferences_85;
NullCheck(L_46);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_47 = ((L_46)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___material_3;
__this->___m_CurrentMaterial_8 = L_47;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_47);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_48 = ___fontAsset2;
uint32_t L_49 = ___unicode1;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_50 = V_1;
NullCheck(L_48);
FontAsset_AddCharacterToLookupCache_mB90E06CE313CC0BB6F81415BF8FB4E043108EED8(L_48, L_49, L_50, NULL);
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_51 = V_1;
V_3 = L_51;
goto IL_0238;
}
IL_00e2:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_52 = ___generationSettings0;
NullCheck(L_52);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_53 = L_52->___fontAsset_4;
NullCheck(L_53);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_54 = L_53->___m_FallbackFontAssetTable_33;
if (!L_54)
{
goto IL_0104;
}
}
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_55 = ___generationSettings0;
NullCheck(L_55);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_56 = L_55->___fontAsset_4;
NullCheck(L_56);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_57 = L_56->___m_FallbackFontAssetTable_33;
NullCheck(L_57);
int32_t L_58;
L_58 = List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_inline(L_57, List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_RuntimeMethod_var);
G_B15_0 = ((((int32_t)L_58) > ((int32_t)0))? 1 : 0);
goto IL_0105;
}
IL_0104:
{
G_B15_0 = 0;
}
IL_0105:
{
V_8 = (bool)G_B15_0;
bool L_59 = V_8;
if (!L_59)
{
goto IL_0125;
}
}
{
uint32_t L_60 = ___unicode1;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_61 = ___fontAsset2;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_62 = ___generationSettings0;
NullCheck(L_62);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_63 = L_62->___fontAsset_4;
NullCheck(L_63);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_64 = L_63->___m_FallbackFontAssetTable_33;
int32_t L_65 = ___fontStyle3;
int32_t L_66 = ___fontWeight4;
bool* L_67 = ___isUsingAlternativeTypeface5;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_68;
L_68 = FontAssetUtilities_GetCharacterFromFontAssets_mB1612268F7A1926C2C39A4EFFB5AB795F234F9DF(L_60, L_61, L_64, (bool)1, L_65, L_66, L_67, NULL);
V_1 = L_68;
}
IL_0125:
{
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_69 = V_1;
V_9 = (bool)((!(((RuntimeObject*)(Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC*)L_69) <= ((RuntimeObject*)(RuntimeObject*)NULL)))? 1 : 0);
bool L_70 = V_9;
if (!L_70)
{
goto IL_0140;
}
}
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_71 = ___fontAsset2;
uint32_t L_72 = ___unicode1;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_73 = V_1;
NullCheck(L_71);
FontAsset_AddCharacterToLookupCache_mB90E06CE313CC0BB6F81415BF8FB4E043108EED8(L_71, L_72, L_73, NULL);
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_74 = V_1;
V_3 = L_74;
goto IL_0238;
}
IL_0140:
{
}
IL_0141:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_75 = ___generationSettings0;
NullCheck(L_75);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_76 = L_75->___spriteAsset_6;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_77;
L_77 = Object_op_Inequality_m4D656395C27694A7F33F5AA8DE80A7AAF9E20BA7(L_76, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_10 = L_77;
bool L_78 = V_10;
if (!L_78)
{
goto IL_0177;
}
}
{
uint32_t L_79 = ___unicode1;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_80 = ___generationSettings0;
NullCheck(L_80);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_81 = L_80->___spriteAsset_6;
SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* L_82;
L_82 = FontAssetUtilities_GetSpriteCharacterFromSpriteAsset_m0B6133849B1B4BDEF41D1DEADD26B8EB6174DD09(L_79, L_81, (bool)1, NULL);
V_11 = L_82;
SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* L_83 = V_11;
V_12 = (bool)((!(((RuntimeObject*)(SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5*)L_83) <= ((RuntimeObject*)(RuntimeObject*)NULL)))? 1 : 0);
bool L_84 = V_12;
if (!L_84)
{
goto IL_0176;
}
}
{
SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* L_85 = V_11;
V_3 = L_85;
goto IL_0238;
}
IL_0176:
{
}
IL_0177:
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_86 = V_0;
NullCheck(L_86);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_87;
L_87 = TextSettings_get_fallbackFontAssets_m332526E834C994425141A58C968FD40320573F98_inline(L_86, NULL);
if (!L_87)
{
goto IL_018f;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_88 = V_0;
NullCheck(L_88);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_89;
L_89 = TextSettings_get_fallbackFontAssets_m332526E834C994425141A58C968FD40320573F98_inline(L_88, NULL);
NullCheck(L_89);
int32_t L_90;
L_90 = List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_inline(L_89, List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_RuntimeMethod_var);
G_B27_0 = ((((int32_t)L_90) > ((int32_t)0))? 1 : 0);
goto IL_0190;
}
IL_018f:
{
G_B27_0 = 0;
}
IL_0190:
{
V_13 = (bool)G_B27_0;
bool L_91 = V_13;
if (!L_91)
{
goto IL_01ab;
}
}
{
uint32_t L_92 = ___unicode1;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_93 = ___fontAsset2;
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_94 = V_0;
NullCheck(L_94);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_95;
L_95 = TextSettings_get_fallbackFontAssets_m332526E834C994425141A58C968FD40320573F98_inline(L_94, NULL);
int32_t L_96 = ___fontStyle3;
int32_t L_97 = ___fontWeight4;
bool* L_98 = ___isUsingAlternativeTypeface5;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_99;
L_99 = FontAssetUtilities_GetCharacterFromFontAssets_mB1612268F7A1926C2C39A4EFFB5AB795F234F9DF(L_92, L_93, L_95, (bool)1, L_96, L_97, L_98, NULL);
V_1 = L_99;
}
IL_01ab:
{
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_100 = V_1;
V_14 = (bool)((!(((RuntimeObject*)(Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC*)L_100) <= ((RuntimeObject*)(RuntimeObject*)NULL)))? 1 : 0);
bool L_101 = V_14;
if (!L_101)
{
goto IL_01c3;
}
}
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_102 = ___fontAsset2;
uint32_t L_103 = ___unicode1;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_104 = V_1;
NullCheck(L_102);
FontAsset_AddCharacterToLookupCache_mB90E06CE313CC0BB6F81415BF8FB4E043108EED8(L_102, L_103, L_104, NULL);
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_105 = V_1;
V_3 = L_105;
goto IL_0238;
}
IL_01c3:
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_106 = V_0;
NullCheck(L_106);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_107;
L_107 = TextSettings_get_defaultFontAsset_mC6280464BFEE081DB23243BB94E49C72A0885A1F_inline(L_106, NULL);
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_108;
L_108 = Object_op_Inequality_m4D656395C27694A7F33F5AA8DE80A7AAF9E20BA7(L_107, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_15 = L_108;
bool L_109 = V_15;
if (!L_109)
{
goto IL_01e9;
}
}
{
uint32_t L_110 = ___unicode1;
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_111 = V_0;
NullCheck(L_111);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_112;
L_112 = TextSettings_get_defaultFontAsset_mC6280464BFEE081DB23243BB94E49C72A0885A1F_inline(L_111, NULL);
int32_t L_113 = ___fontStyle3;
int32_t L_114 = ___fontWeight4;
bool* L_115 = ___isUsingAlternativeTypeface5;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_116;
L_116 = FontAssetUtilities_GetCharacterFromFontAsset_m2AADCA590977FA4C398D4ECF6E7DF0BE77527801(L_110, L_112, (bool)1, L_113, L_114, L_115, NULL);
V_1 = L_116;
}
IL_01e9:
{
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_117 = V_1;
V_16 = (bool)((!(((RuntimeObject*)(Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC*)L_117) <= ((RuntimeObject*)(RuntimeObject*)NULL)))? 1 : 0);
bool L_118 = V_16;
if (!L_118)
{
goto IL_0201;
}
}
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_119 = ___fontAsset2;
uint32_t L_120 = ___unicode1;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_121 = V_1;
NullCheck(L_119);
FontAsset_AddCharacterToLookupCache_mB90E06CE313CC0BB6F81415BF8FB4E043108EED8(L_119, L_120, L_121, NULL);
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_122 = V_1;
V_3 = L_122;
goto IL_0238;
}
IL_0201:
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_123 = V_0;
NullCheck(L_123);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_124;
L_124 = TextSettings_get_defaultSpriteAsset_m8FA900F9747B7ADBCD2A2F612E7D977DB58D6445_inline(L_123, NULL);
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_125;
L_125 = Object_op_Inequality_m4D656395C27694A7F33F5AA8DE80A7AAF9E20BA7(L_124, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_17 = L_125;
bool L_126 = V_17;
if (!L_126)
{
goto IL_0234;
}
}
{
uint32_t L_127 = ___unicode1;
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_128 = V_0;
NullCheck(L_128);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_129;
L_129 = TextSettings_get_defaultSpriteAsset_m8FA900F9747B7ADBCD2A2F612E7D977DB58D6445_inline(L_128, NULL);
SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* L_130;
L_130 = FontAssetUtilities_GetSpriteCharacterFromSpriteAsset_m0B6133849B1B4BDEF41D1DEADD26B8EB6174DD09(L_127, L_129, (bool)1, NULL);
V_18 = L_130;
SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* L_131 = V_18;
V_19 = (bool)((!(((RuntimeObject*)(SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5*)L_131) <= ((RuntimeObject*)(RuntimeObject*)NULL)))? 1 : 0);
bool L_132 = V_19;
if (!L_132)
{
goto IL_0233;
}
}
{
SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* L_133 = V_18;
V_3 = L_133;
goto IL_0238;
}
IL_0233:
{
}
IL_0234:
{
V_3 = (TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA*)NULL;
goto IL_0238;
}
IL_0238:
{
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_134 = V_3;
return L_134;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::ComputeMarginSize(UnityEngine.Rect,UnityEngine.Vector4)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_ComputeMarginSize_m485F8B01196058B15F597DE99D6F6A47FA539D3F (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, Rect_tA04E0F8A1830E767F40FB27ECD8D309303571F0D ___rect0, Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3 ___margins1, const RuntimeMethod* method)
{
{
float L_0;
L_0 = Rect_get_width_m620D67551372073C9C32C4C4624C2A5713F7F9A9((&___rect0), NULL);
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3 L_1 = ___margins1;
float L_2 = L_1.___x_1;
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3 L_3 = ___margins1;
float L_4 = L_3.___z_3;
__this->___m_MarginWidth_2 = ((float)il2cpp_codegen_subtract(((float)il2cpp_codegen_subtract(L_0, L_2)), L_4));
float L_5;
L_5 = Rect_get_height_mE1AA6C6C725CCD2D317BD2157396D3CF7D47C9D8((&___rect0), NULL);
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3 L_6 = ___margins1;
float L_7 = L_6.___y_2;
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3 L_8 = ___margins1;
float L_9 = L_8.___w_4;
__this->___m_MarginHeight_3 = ((float)il2cpp_codegen_subtract(((float)il2cpp_codegen_subtract(L_5, L_7)), L_9));
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_10 = __this->___m_RectTransformCorners_1;
NullCheck(L_10);
((L_10)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___x_2 = (0.0f);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_11 = __this->___m_RectTransformCorners_1;
NullCheck(L_11);
((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->___y_3 = (0.0f);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_12 = __this->___m_RectTransformCorners_1;
NullCheck(L_12);
((L_12)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->___x_2 = (0.0f);
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_13 = __this->___m_RectTransformCorners_1;
NullCheck(L_13);
float L_14;
L_14 = Rect_get_height_mE1AA6C6C725CCD2D317BD2157396D3CF7D47C9D8((&___rect0), NULL);
((L_13)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->___y_3 = L_14;
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_15 = __this->___m_RectTransformCorners_1;
NullCheck(L_15);
float L_16;
L_16 = Rect_get_width_m620D67551372073C9C32C4C4624C2A5713F7F9A9((&___rect0), NULL);
((L_15)->GetAddressAt(static_cast<il2cpp_array_size_t>(2)))->___x_2 = L_16;
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_17 = __this->___m_RectTransformCorners_1;
NullCheck(L_17);
float L_18;
L_18 = Rect_get_height_mE1AA6C6C725CCD2D317BD2157396D3CF7D47C9D8((&___rect0), NULL);
((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(2)))->___y_3 = L_18;
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_19 = __this->___m_RectTransformCorners_1;
NullCheck(L_19);
float L_20;
L_20 = Rect_get_width_m620D67551372073C9C32C4C4624C2A5713F7F9A9((&___rect0), NULL);
((L_19)->GetAddressAt(static_cast<il2cpp_array_size_t>(3)))->___x_2 = L_20;
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_21 = __this->___m_RectTransformCorners_1;
NullCheck(L_21);
((L_21)->GetAddressAt(static_cast<il2cpp_array_size_t>(3)))->___y_3 = (0.0f);
return;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::GetSpecialCharacters(UnityEngine.TextCore.Text.TextGenerationSettings)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_GetSpecialCharacters_mA82879FA537C58223BB660E797AC135A8E07B492 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings0, const RuntimeMethod* method)
{
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_0 = ___generationSettings0;
TextGenerator_GetEllipsisSpecialCharacter_m5139CAE03CD2E25C9A528A6A6FC984A8515C2460(__this, L_0, NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_1 = ___generationSettings0;
TextGenerator_GetUnderlineSpecialCharacter_mE5E9D5DEB9A7758333CDDCAD05EF25F076EC1AD5(__this, L_1, NULL);
return;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::GetEllipsisSpecialCharacter(UnityEngine.TextCore.Text.TextGenerationSettings)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_GetEllipsisSpecialCharacter_m5139CAE03CD2E25C9A528A6A6FC984A8515C2460 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* V_1 = NULL;
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* V_2 = NULL;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* V_3 = NULL;
bool V_4 = false;
bool V_5 = false;
bool V_6 = false;
bool V_7 = false;
bool V_8 = false;
bool V_9 = false;
bool V_10 = false;
int32_t G_B4_0 = 0;
int32_t G_B11_0 = 0;
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_0 = ___generationSettings0;
NullCheck(L_0);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1 = L_0->___fontAsset_4;
V_1 = L_1;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_2 = ___generationSettings0;
NullCheck(L_2);
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_3 = L_2->___textSettings_9;
V_2 = L_3;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_4 = V_1;
int32_t L_5 = __this->___m_FontStyleInternal_19;
int32_t L_6 = __this->___m_FontWeightInternal_21;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_7;
L_7 = FontAssetUtilities_GetCharacterFromFontAsset_m2AADCA590977FA4C398D4ECF6E7DF0BE77527801(((int32_t)8230), L_4, (bool)0, L_5, L_6, (&V_0), NULL);
V_3 = L_7;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_8 = V_3;
V_4 = (bool)((((RuntimeObject*)(Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC*)L_8) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_9 = V_4;
if (!L_9)
{
goto IL_0076;
}
}
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_10 = V_1;
NullCheck(L_10);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_11 = L_10->___m_FallbackFontAssetTable_33;
if (!L_11)
{
goto IL_004d;
}
}
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_12 = V_1;
NullCheck(L_12);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_13 = L_12->___m_FallbackFontAssetTable_33;
NullCheck(L_13);
int32_t L_14;
L_14 = List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_inline(L_13, List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_RuntimeMethod_var);
G_B4_0 = ((((int32_t)L_14) > ((int32_t)0))? 1 : 0);
goto IL_004e;
}
IL_004d:
{
G_B4_0 = 0;
}
IL_004e:
{
V_5 = (bool)G_B4_0;
bool L_15 = V_5;
if (!L_15)
{
goto IL_0075;
}
}
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_16 = V_1;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_17 = V_1;
NullCheck(L_17);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_18 = L_17->___m_FallbackFontAssetTable_33;
int32_t L_19 = __this->___m_FontStyleInternal_19;
int32_t L_20 = __this->___m_FontWeightInternal_21;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_21;
L_21 = FontAssetUtilities_GetCharacterFromFontAssets_mB1612268F7A1926C2C39A4EFFB5AB795F234F9DF(((int32_t)8230), L_16, L_18, (bool)1, L_19, L_20, (&V_0), NULL);
V_3 = L_21;
}
IL_0075:
{
}
IL_0076:
{
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_22 = V_3;
V_6 = (bool)((((RuntimeObject*)(Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC*)L_22) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_23 = V_6;
if (!L_23)
{
goto IL_00c2;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_24 = V_2;
NullCheck(L_24);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_25;
L_25 = TextSettings_get_fallbackFontAssets_m332526E834C994425141A58C968FD40320573F98_inline(L_24, NULL);
if (!L_25)
{
goto IL_0099;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_26 = V_2;
NullCheck(L_26);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_27;
L_27 = TextSettings_get_fallbackFontAssets_m332526E834C994425141A58C968FD40320573F98_inline(L_26, NULL);
NullCheck(L_27);
int32_t L_28;
L_28 = List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_inline(L_27, List_1_get_Count_m654F4B0CF3BAA9A130BC72017949E6B5DA07AD86_RuntimeMethod_var);
G_B11_0 = ((((int32_t)L_28) > ((int32_t)0))? 1 : 0);
goto IL_009a;
}
IL_0099:
{
G_B11_0 = 0;
}
IL_009a:
{
V_7 = (bool)G_B11_0;
bool L_29 = V_7;
if (!L_29)
{
goto IL_00c1;
}
}
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_30 = V_1;
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_31 = V_2;
NullCheck(L_31);
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_32;
L_32 = TextSettings_get_fallbackFontAssets_m332526E834C994425141A58C968FD40320573F98_inline(L_31, NULL);
int32_t L_33 = __this->___m_FontStyleInternal_19;
int32_t L_34 = __this->___m_FontWeightInternal_21;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_35;
L_35 = FontAssetUtilities_GetCharacterFromFontAssets_mB1612268F7A1926C2C39A4EFFB5AB795F234F9DF(((int32_t)8230), L_30, L_32, (bool)1, L_33, L_34, (&V_0), NULL);
V_3 = L_35;
}
IL_00c1:
{
}
IL_00c2:
{
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_36 = V_3;
V_8 = (bool)((((RuntimeObject*)(Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC*)L_36) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_37 = V_8;
if (!L_37)
{
goto IL_0100;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_38 = V_2;
NullCheck(L_38);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_39;
L_39 = TextSettings_get_defaultFontAsset_mC6280464BFEE081DB23243BB94E49C72A0885A1F_inline(L_38, NULL);
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_40;
L_40 = Object_op_Inequality_m4D656395C27694A7F33F5AA8DE80A7AAF9E20BA7(L_39, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_9 = L_40;
bool L_41 = V_9;
if (!L_41)
{
goto IL_00ff;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_42 = V_2;
NullCheck(L_42);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_43;
L_43 = TextSettings_get_defaultFontAsset_mC6280464BFEE081DB23243BB94E49C72A0885A1F_inline(L_42, NULL);
int32_t L_44 = __this->___m_FontStyleInternal_19;
int32_t L_45 = __this->___m_FontWeightInternal_21;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_46;
L_46 = FontAssetUtilities_GetCharacterFromFontAsset_m2AADCA590977FA4C398D4ECF6E7DF0BE77527801(((int32_t)8230), L_43, (bool)1, L_44, L_45, (&V_0), NULL);
V_3 = L_46;
}
IL_00ff:
{
}
IL_0100:
{
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_47 = V_3;
V_10 = (bool)((!(((RuntimeObject*)(Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC*)L_47) <= ((RuntimeObject*)(RuntimeObject*)NULL)))? 1 : 0);
bool L_48 = V_10;
if (!L_48)
{
goto IL_0117;
}
}
{
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_49 = V_3;
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD L_50;
memset((&L_50), 0, sizeof(L_50));
SpecialCharacter__ctor_m6697A8BF272F0144733EE12368C038F45E99F969((&L_50), L_49, 0, /*hidden argument*/NULL);
__this->___m_Ellipsis_97 = L_50;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_Ellipsis_97))->___character_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_Ellipsis_97))->___fontAsset_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_Ellipsis_97))->___material_2), (void*)NULL);
#endif
}
IL_0117:
{
return;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::GetUnderlineSpecialCharacter(UnityEngine.TextCore.Text.TextGenerationSettings)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator_GetUnderlineSpecialCharacter_mE5E9D5DEB9A7758333CDDCAD05EF25F076EC1AD5 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral77A4D95C5A66881369906720C24690D7097D85DC);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteralBDC04DCE144956C85753B1D40627C3620348D36C);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* V_1 = NULL;
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* V_2 = NULL;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* V_3 = NULL;
bool V_4 = false;
bool V_5 = false;
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_0 = ___generationSettings0;
NullCheck(L_0);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1 = L_0->___fontAsset_4;
V_1 = L_1;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_2 = ___generationSettings0;
NullCheck(L_2);
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_3 = L_2->___textSettings_9;
V_2 = L_3;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_4 = V_1;
int32_t L_5 = __this->___m_FontStyleInternal_19;
int32_t L_6 = __this->___m_FontWeightInternal_21;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_7;
L_7 = FontAssetUtilities_GetCharacterFromFontAsset_m2AADCA590977FA4C398D4ECF6E7DF0BE77527801(((int32_t)95), L_4, (bool)0, L_5, L_6, (&V_0), NULL);
V_3 = L_7;
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_8 = V_3;
V_4 = (bool)((!(((RuntimeObject*)(Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC*)L_8) <= ((RuntimeObject*)(RuntimeObject*)NULL)))? 1 : 0);
bool L_9 = V_4;
if (!L_9)
{
goto IL_0042;
}
}
{
Character_t9B671B493FAC8D43638C69AF6AE92CBD103D80EC* L_10 = V_3;
SpecialCharacter_t869F8BE65A7FE32AFD4196118258F49A63D8E2BD L_11;
memset((&L_11), 0, sizeof(L_11));
SpecialCharacter__ctor_m6697A8BF272F0144733EE12368C038F45E99F969((&L_11), L_10, 0, /*hidden argument*/NULL);
__this->___m_Underline_98 = L_11;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_Underline_98))->___character_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_Underline_98))->___fontAsset_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_Underline_98))->___material_2), (void*)NULL);
#endif
goto IL_006b;
}
IL_0042:
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_12 = V_2;
NullCheck(L_12);
bool L_13;
L_13 = TextSettings_get_displayWarnings_m3CA9FCB44B30CC06F54CD3716D68285FF844DF83_inline(L_12, NULL);
V_5 = L_13;
bool L_14 = V_5;
if (!L_14)
{
goto IL_006a;
}
}
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_15 = V_1;
NullCheck(L_15);
String_t* L_16;
L_16 = Object_get_name_mAC2F6B897CF1303BA4249B4CB55271AFACBB6392(L_15, NULL);
String_t* L_17;
L_17 = String_Concat_m9B13B47FCB3DF61144D9647DDA05F527377251B0(_stringLiteralBDC04DCE144956C85753B1D40627C3620348D36C, L_16, _stringLiteral77A4D95C5A66881369906720C24690D7097D85DC, NULL);
il2cpp_codegen_runtime_class_init_inline(Debug_t8394C7EEAECA3689C2C9B9DE9C7166D73596276F_il2cpp_TypeInfo_var);
Debug_LogWarning_mEF15C6B17CE4E1FA7E379CDB82CE40FCD89A3F28(L_17, NULL);
}
IL_006a:
{
}
IL_006b:
{
return;
}
}
// System.Single UnityEngine.TextCore.Text.TextGenerator::GetPaddingForMaterial(UnityEngine.Material,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float TextGenerator_GetPaddingForMaterial_mE5A4DEF3F64851861C092F7A4FC58C902F775C74 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* ___material0, bool ___extraPadding1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextShaderUtilities_t47B400695C5D96E7B04FEF9D132468B3A1799692_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
float V_1 = 0.0f;
{
il2cpp_codegen_runtime_class_init_inline(TextShaderUtilities_t47B400695C5D96E7B04FEF9D132468B3A1799692_il2cpp_TypeInfo_var);
TextShaderUtilities_GetShaderPropertyIDs_mE049EE63FF1F02C91EA3B6FA0CB82FE2C6DA526E(NULL);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_0 = ___material0;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_1;
L_1 = Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536(L_0, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_0 = L_1;
bool L_2 = V_0;
if (!L_2)
{
goto IL_001a;
}
}
{
V_1 = (0.0f);
goto IL_0053;
}
IL_001a:
{
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_3 = ___material0;
bool L_4 = ___extraPadding1;
bool L_5 = __this->___m_IsUsingBold_99;
il2cpp_codegen_runtime_class_init_inline(TextShaderUtilities_t47B400695C5D96E7B04FEF9D132468B3A1799692_il2cpp_TypeInfo_var);
float L_6;
L_6 = TextShaderUtilities_GetPadding_m2745B16C068222A2DCFA6EAD1A497D66F0A17BFA(L_3, L_4, L_5, NULL);
__this->___m_Padding_11 = L_6;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_7 = ___material0;
bool L_8;
L_8 = TextShaderUtilities_IsMaskingEnabled_m9B499B7017691BA2805367567166484812807E45(L_7, NULL);
__this->___m_IsMaskingEnabled_84 = L_8;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_9 = ___material0;
int32_t L_10 = ((TextShaderUtilities_t47B400695C5D96E7B04FEF9D132468B3A1799692_StaticFields*)il2cpp_codegen_static_fields_for(TextShaderUtilities_t47B400695C5D96E7B04FEF9D132468B3A1799692_il2cpp_TypeInfo_var))->___ID_WeightNormal_10;
NullCheck(L_9);
bool L_11;
L_11 = Material_HasProperty_m52E2D3BC3049B8B228149E023CD73C34B05A5222(L_9, L_10, NULL);
__this->___m_IsSdfShader_100 = L_11;
float L_12 = __this->___m_Padding_11;
V_1 = L_12;
goto IL_0053;
}
IL_0053:
{
float L_13 = V_1;
return L_13;
}
}
// UnityEngine.Vector2 UnityEngine.TextCore.Text.TextGenerator::GetPreferredValuesInternal(UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 TextGenerator_GetPreferredValuesInternal_m125B070164DFEA503C67525D1F418DAF41300ABD (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings0, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
float V_0 = 0.0f;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_1;
memset((&V_1), 0, sizeof(V_1));
bool V_2 = false;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_3;
memset((&V_3), 0, sizeof(V_3));
float G_B5_0 = 0.0f;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7* G_B7_0 = NULL;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7* G_B6_0 = NULL;
float G_B8_0 = 0.0f;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7* G_B8_1 = NULL;
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_0 = ___generationSettings0;
NullCheck(L_0);
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_1 = L_0->___textSettings_9;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_2;
L_2 = Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536(L_1, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
V_2 = L_2;
bool L_3 = V_2;
if (!L_3)
{
goto IL_0019;
}
}
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_4;
L_4 = Vector2_get_zero_m009B92B5D35AB02BD1610C2E1ACCE7C9CF964A6E_inline(NULL);
V_3 = L_4;
goto IL_0096;
}
IL_0019:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_5 = ___generationSettings0;
NullCheck(L_5);
bool L_6 = L_5->___autoSize_19;
if (L_6)
{
goto IL_0029;
}
}
{
float L_7 = __this->___m_FontSize_15;
G_B5_0 = L_7;
goto IL_002f;
}
IL_0029:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_8 = ___generationSettings0;
NullCheck(L_8);
float L_9 = L_8->___fontSizeMax_21;
G_B5_0 = L_9;
}
IL_002f:
{
V_0 = G_B5_0;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_10 = ___generationSettings0;
NullCheck(L_10);
float L_11 = L_10->___fontSizeMin_20;
__this->___m_MinFontSize_80 = L_11;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_12 = ___generationSettings0;
NullCheck(L_12);
float L_13 = L_12->___fontSizeMax_21;
__this->___m_MaxFontSize_79 = L_13;
__this->___m_CharWidthAdjDelta_77 = (0.0f);
float L_14 = __this->___m_MarginWidth_2;
G_B6_0 = (&V_1);
if ((!(((float)L_14) == ((float)(0.0f)))))
{
G_B7_0 = (&V_1);
goto IL_0069;
}
}
{
G_B8_0 = (32767.0f);
G_B8_1 = G_B6_0;
goto IL_006f;
}
IL_0069:
{
float L_15 = __this->___m_MarginWidth_2;
G_B8_0 = L_15;
G_B8_1 = G_B7_0;
}
IL_006f:
{
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline(G_B8_1, G_B8_0, (32767.0f), NULL);
__this->___m_RecursiveCount_102 = 0;
float L_16 = V_0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_17 = V_1;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_18 = ___generationSettings0;
NullCheck(L_18);
bool L_19 = L_18->___autoSize_19;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_20 = ___generationSettings0;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_21 = ___textInfo1;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_22;
L_22 = VirtualFuncInvoker5< Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7, float, Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7, bool, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2*, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* >::Invoke(4 /* UnityEngine.Vector2 UnityEngine.TextCore.Text.TextGenerator::CalculatePreferredValues(System.Single,UnityEngine.Vector2,System.Boolean,UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo) */, __this, L_16, L_17, (bool)((((int32_t)L_19) == ((int32_t)0))? 1 : 0), L_20, L_21);
V_3 = L_22;
goto IL_0096;
}
IL_0096:
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_23 = V_3;
return L_23;
}
}
// UnityEngine.Vector2 UnityEngine.TextCore.Text.TextGenerator::CalculatePreferredValues(System.Single,UnityEngine.Vector2,System.Boolean,UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 TextGenerator_CalculatePreferredValues_mBBE23FA780CF24415963F32F7C500F0394C2545E (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, float ___defaultFontSize0, Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___marginSize1, bool ___ignoreTextAutoSizing2, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* ___generationSettings3, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* ___textInfo4, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Dictionary_2_TryGetValue_m45061EA2C8BF9DD9DC9DA92DAB968171136507DA_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&HashSet_1_Contains_m02385B663B65E53485251FFFD116D0F26BA172B9_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_get_Item_m25CB12C13D14620785B0E86F6543D20B5080AFF8_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_Clear_m857C80F9AFD9507FE4784DB5DE79109E16C8EAA3_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_SetDefault_m2DBB41C08A4CB7F71156ED5965850C2A0570F230_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_SetDefault_mA28AEF460395ECD6CBF6A469575571F64F6836B9_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1_SetDefault_mDAFD4911B5A8BEE57351A37415ADF348F0A6B54C_RuntimeMethod_var);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
float V_1 = 0.0f;
float V_2 = 0.0f;
int32_t V_3 = 0;
float V_4 = 0.0f;
float V_5 = 0.0f;
float V_6 = 0.0f;
float V_7 = 0.0f;
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* V_8 = NULL;
float V_9 = 0.0f;
float V_10 = 0.0f;
float V_11 = 0.0f;
float V_12 = 0.0f;
bool V_13 = false;
bool V_14 = false;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123 V_15;
memset((&V_15), 0, sizeof(V_15));
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123 V_16;
memset((&V_16), 0, sizeof(V_16));
int32_t V_17 = 0;
int32_t V_18 = 0;
float V_19 = 0.0f;
bool V_20 = false;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_21;
memset((&V_21), 0, sizeof(V_21));
bool V_22 = false;
bool V_23 = false;
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 V_24;
memset((&V_24), 0, sizeof(V_24));
float V_25 = 0.0f;
int32_t V_26 = 0;
int32_t V_27 = 0;
bool V_28 = false;
float V_29 = 0.0f;
float V_30 = 0.0f;
GlyphValueRecord_t780927A39D46924E0D546A2AE5DDF1BB2B5A9C8E V_31;
memset((&V_31), 0, sizeof(V_31));
float V_32 = 0.0f;
float V_33 = 0.0f;
float V_34 = 0.0f;
float V_35 = 0.0f;
bool V_36 = false;
bool V_37 = false;
bool V_38 = false;
bool V_39 = false;
bool V_40 = false;
bool V_41 = false;
bool V_42 = false;
bool V_43 = false;
bool V_44 = false;
bool V_45 = false;
bool V_46 = false;
SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* V_47 = NULL;
float V_48 = 0.0f;
bool V_49 = false;
bool V_50 = false;
GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A V_51;
memset((&V_51), 0, sizeof(V_51));
bool V_52 = false;
bool V_53 = false;
bool V_54 = false;
bool V_55 = false;
GlyphPairAdjustmentRecord_t6E4295094D349DBF22BC59116FBC8F22EA55420E V_56;
memset((&V_56), 0, sizeof(V_56));
uint32_t V_57 = 0;
bool V_58 = false;
uint32_t V_59 = 0;
uint32_t V_60 = 0;
bool V_61 = false;
GlyphAdjustmentRecord_tC7A1B2E0AC7C4ED9CDB8E95E48790A46B6F315F7 V_62;
memset((&V_62), 0, sizeof(V_62));
bool V_63 = false;
uint32_t V_64 = 0;
uint32_t V_65 = 0;
bool V_66 = false;
bool V_67 = false;
bool V_68 = false;
bool V_69 = false;
float V_70 = 0.0f;
float V_71 = 0.0f;
bool V_72 = false;
bool V_73 = false;
float V_74 = 0.0f;
bool V_75 = false;
bool V_76 = false;
bool V_77 = false;
float V_78 = 0.0f;
float V_79 = 0.0f;
bool V_80 = false;
bool V_81 = false;
bool V_82 = false;
bool V_83 = false;
bool V_84 = false;
bool V_85 = false;
bool V_86 = false;
float V_87 = 0.0f;
bool V_88 = false;
bool V_89 = false;
float V_90 = 0.0f;
bool V_91 = false;
bool V_92 = false;
bool V_93 = false;
bool V_94 = false;
float V_95 = 0.0f;
bool V_96 = false;
float V_97 = 0.0f;
float V_98 = 0.0f;
bool V_99 = false;
bool V_100 = false;
bool V_101 = false;
bool V_102 = false;
bool V_103 = false;
float V_104 = 0.0f;
bool V_105 = false;
float V_106 = 0.0f;
bool V_107 = false;
bool V_108 = false;
bool V_109 = false;
bool V_110 = false;
bool V_111 = false;
bool V_112 = false;
bool V_113 = false;
bool V_114 = false;
bool V_115 = false;
bool V_116 = false;
bool V_117 = false;
int32_t G_B3_0 = 0;
int32_t G_B9_0 = 0;
int32_t G_B14_0 = 0;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B17_0 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B16_0 = NULL;
int32_t G_B18_0 = 0;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B18_1 = NULL;
int32_t G_B23_0 = 0;
int32_t G_B71_0 = 0;
float G_B76_0 = 0.0f;
float G_B75_0 = 0.0f;
float G_B77_0 = 0.0f;
float G_B77_1 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B79_0 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B78_0 = NULL;
float G_B80_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B80_1 = NULL;
float G_B82_0 = 0.0f;
float G_B81_0 = 0.0f;
float G_B83_0 = 0.0f;
float G_B83_1 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B85_0 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B84_0 = NULL;
float G_B86_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B86_1 = NULL;
int32_t G_B89_0 = 0;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B92_0 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B91_0 = NULL;
float G_B93_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B93_1 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B95_0 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B94_0 = NULL;
float G_B96_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B96_1 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B100_0 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B99_0 = NULL;
float G_B101_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B101_1 = NULL;
int32_t G_B107_0 = 0;
float G_B111_0 = 0.0f;
int32_t G_B114_0 = 0;
float G_B116_0 = 0.0f;
float G_B116_1 = 0.0f;
float G_B115_0 = 0.0f;
float G_B115_1 = 0.0f;
float G_B117_0 = 0.0f;
float G_B117_1 = 0.0f;
float G_B117_2 = 0.0f;
float G_B119_0 = 0.0f;
float G_B119_1 = 0.0f;
float G_B118_0 = 0.0f;
float G_B118_1 = 0.0f;
float G_B120_0 = 0.0f;
float G_B120_1 = 0.0f;
float G_B120_2 = 0.0f;
int32_t G_B124_0 = 0;
int32_t G_B129_0 = 0;
int32_t G_B145_0 = 0;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B149_0 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B148_0 = NULL;
float G_B150_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B150_1 = NULL;
int32_t G_B160_0 = 0;
int32_t G_B173_0 = 0;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B178_0 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B177_0 = NULL;
float G_B179_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B179_1 = NULL;
int32_t G_B184_0 = 0;
int32_t G_B190_0 = 0;
int32_t G_B198_0 = 0;
int32_t G_B203_0 = 0;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B207_0 = NULL;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B206_0 = NULL;
float G_B208_0 = 0.0f;
TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* G_B208_1 = NULL;
int32_t G_B211_0 = 0;
int32_t G_B224_0 = 0;
int32_t G_B235_0 = 0;
int32_t G_B253_0 = 0;
int32_t G_B259_0 = 0;
int32_t G_B261_0 = 0;
int32_t G_B263_0 = 0;
int32_t G_B269_0 = 0;
int32_t G_B280_0 = 0;
float G_B286_0 = 0.0f;
float G_B285_0 = 0.0f;
float G_B287_0 = 0.0f;
float G_B287_1 = 0.0f;
float G_B289_0 = 0.0f;
float G_B288_0 = 0.0f;
float G_B290_0 = 0.0f;
float G_B290_1 = 0.0f;
float G_B292_0 = 0.0f;
float G_B291_0 = 0.0f;
float G_B293_0 = 0.0f;
float G_B293_1 = 0.0f;
float G_B295_0 = 0.0f;
float G_B294_0 = 0.0f;
float G_B296_0 = 0.0f;
float G_B296_1 = 0.0f;
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_0 = ___generationSettings3;
NullCheck(L_0);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_1 = L_0->___fontAsset_4;
il2cpp_codegen_runtime_class_init_inline(Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_il2cpp_TypeInfo_var);
bool L_2;
L_2 = Object_op_Equality_mD3DB0D72CE0250C84033DC2A90AEF9D59896E536(L_1, (Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*)NULL, NULL);
if (L_2)
{
goto IL_0021;
}
}
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_3 = ___generationSettings3;
NullCheck(L_3);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_4 = L_3->___fontAsset_4;
NullCheck(L_4);
Dictionary_2_t93CDF0F4011A5A3024EB73A492F9512E3046EACB* L_5;
L_5 = FontAsset_get_characterLookupTable_m7E76D6C706C5CEB04A9541C68AE6D9E5C75F0FFC(L_4, NULL);
G_B3_0 = ((((RuntimeObject*)(Dictionary_2_t93CDF0F4011A5A3024EB73A492F9512E3046EACB*)L_5) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
goto IL_0022;
}
IL_0021:
{
G_B3_0 = 1;
}
IL_0022:
{
V_20 = (bool)G_B3_0;
bool L_6 = V_20;
if (!L_6)
{
goto IL_0035;
}
}
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_7;
L_7 = Vector2_get_zero_m009B92B5D35AB02BD1610C2E1ACCE7C9CF964A6E_inline(NULL);
V_21 = L_7;
goto IL_1799;
}
IL_0035:
{
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_8 = __this->___m_CharBuffer_4;
if (!L_8)
{
goto IL_0053;
}
}
{
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_9 = __this->___m_CharBuffer_4;
NullCheck(L_9);
if (!(((RuntimeArray*)L_9)->max_length))
{
goto IL_0053;
}
}
{
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_10 = __this->___m_CharBuffer_4;
NullCheck(L_10);
int32_t L_11 = 0;
int32_t L_12 = (L_10)->GetAt(static_cast<il2cpp_array_size_t>(L_11));
G_B9_0 = ((((int32_t)L_12) == ((int32_t)0))? 1 : 0);
goto IL_0054;
}
IL_0053:
{
G_B9_0 = 1;
}
IL_0054:
{
V_22 = (bool)G_B9_0;
bool L_13 = V_22;
if (!L_13)
{
goto IL_0067;
}
}
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_14;
L_14 = Vector2_get_zero_m009B92B5D35AB02BD1610C2E1ACCE7C9CF964A6E_inline(NULL);
V_21 = L_14;
goto IL_1799;
}
IL_0067:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_15 = ___generationSettings3;
NullCheck(L_15);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_16 = L_15->___fontAsset_4;
__this->___m_CurrentFontAsset_7 = L_16;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentFontAsset_7), (void*)L_16);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_17 = ___generationSettings3;
NullCheck(L_17);
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_18 = L_17->___material_5;
__this->___m_CurrentMaterial_8 = L_18;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentMaterial_8), (void*)L_18);
__this->___m_CurrentMaterialIndex_9 = 0;
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA* L_19 = (&__this->___m_MaterialReferenceStack_10);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_20 = __this->___m_CurrentFontAsset_7;
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_21 = __this->___m_CurrentMaterial_8;
float L_22 = __this->___m_Padding_11;
MaterialReference_t86DB0799D5C82869D4FF0A4F59624AED6910FD26 L_23;
memset((&L_23), 0, sizeof(L_23));
MaterialReference__ctor_m044AAA2C1079EB25A5534A6E0FA2314F033DB15A((&L_23), 0, L_20, (SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313*)NULL, L_21, L_22, /*hidden argument*/NULL);
TextProcessingStack_1_SetDefault_mDAFD4911B5A8BEE57351A37415ADF348F0A6B54C(L_19, L_23, TextProcessingStack_1_SetDefault_mDAFD4911B5A8BEE57351A37415ADF348F0A6B54C_RuntimeMethod_var);
int32_t L_24 = __this->___m_TotalCharacterCount_13;
V_0 = L_24;
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_25 = __this->___m_InternalTextElementInfo_101;
if (!L_25)
{
goto IL_00c9;
}
}
{
int32_t L_26 = V_0;
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_27 = __this->___m_InternalTextElementInfo_101;
NullCheck(L_27);
G_B14_0 = ((((int32_t)L_26) > ((int32_t)((int32_t)(((RuntimeArray*)L_27)->max_length))))? 1 : 0);
goto IL_00ca;
}
IL_00c9:
{
G_B14_0 = 1;
}
IL_00ca:
{
V_23 = (bool)G_B14_0;
bool L_28 = V_23;
if (!L_28)
{
goto IL_00f4;
}
}
{
int32_t L_29 = V_0;
G_B16_0 = __this;
if ((((int32_t)L_29) > ((int32_t)((int32_t)1024))))
{
G_B17_0 = __this;
goto IL_00e2;
}
}
{
int32_t L_30 = V_0;
int32_t L_31;
L_31 = Mathf_NextPowerOfTwo_m25B17CBCFB02762842BE3725618DD97C7C4B1014(L_30, NULL);
G_B18_0 = L_31;
G_B18_1 = G_B16_0;
goto IL_00e9;
}
IL_00e2:
{
int32_t L_32 = V_0;
G_B18_0 = ((int32_t)il2cpp_codegen_add(L_32, ((int32_t)256)));
G_B18_1 = G_B17_0;
}
IL_00e9:
{
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_33 = (TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E*)(TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E*)SZArrayNew(TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E_il2cpp_TypeInfo_var, (uint32_t)G_B18_0);
NullCheck(G_B18_1);
G_B18_1->___m_InternalTextElementInfo_101 = L_33;
Il2CppCodeGenWriteBarrier((void**)(&G_B18_1->___m_InternalTextElementInfo_101), (void*)L_33);
}
IL_00f4:
{
float L_34 = ___defaultFontSize0;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_35 = ___generationSettings3;
NullCheck(L_35);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_36 = L_35->___fontAsset_4;
NullCheck(L_36);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_37;
L_37 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_36, NULL);
V_24 = L_37;
int32_t L_38;
L_38 = FaceInfo_get_pointSize_m7EF7429A4725AB715931A220F6BB498C3D6BF7CB((&V_24), NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_39 = ___generationSettings3;
NullCheck(L_39);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_40 = L_39->___fontAsset_4;
NullCheck(L_40);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_41;
L_41 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_40, NULL);
V_24 = L_41;
float L_42;
L_42 = FaceInfo_get_scale_mC475A572AD4956B47D8B9F8D90DC69BBBB102FCD((&V_24), NULL);
float L_43 = ((float)il2cpp_codegen_multiply(((float)(L_34/((float)L_38))), L_42));
V_25 = L_43;
__this->___m_FontScale_14 = L_43;
float L_44 = V_25;
V_1 = L_44;
float L_45 = V_1;
V_2 = L_45;
__this->___m_FontScaleMultiplier_16 = (1.0f);
float L_46 = ___defaultFontSize0;
__this->___m_CurrentFontSize_17 = L_46;
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* L_47 = (&__this->___m_SizeStack_18);
float L_48 = __this->___m_CurrentFontSize_17;
TextProcessingStack_1_SetDefault_mA28AEF460395ECD6CBF6A469575571F64F6836B9(L_47, L_48, TextProcessingStack_1_SetDefault_mA28AEF460395ECD6CBF6A469575571F64F6836B9_RuntimeMethod_var);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_49 = ___generationSettings3;
NullCheck(L_49);
int32_t L_50 = L_49->___fontStyle_8;
__this->___m_FontStyleInternal_19 = L_50;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_51 = ___generationSettings3;
NullCheck(L_51);
int32_t L_52 = L_51->___textAlignment_10;
__this->___m_LineJustification_23 = L_52;
TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F* L_53 = (&__this->___m_LineJustificationStack_24);
int32_t L_54 = __this->___m_LineJustification_23;
TextProcessingStack_1_SetDefault_m2DBB41C08A4CB7F71156ED5965850C2A0570F230(L_53, L_54, TextProcessingStack_1_SetDefault_m2DBB41C08A4CB7F71156ED5965850C2A0570F230_RuntimeMethod_var);
__this->___m_BaselineOffset_25 = (0.0f);
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* L_55 = (&__this->___m_BaselineOffsetStack_26);
TextProcessingStack_1_Clear_m857C80F9AFD9507FE4784DB5DE79109E16C8EAA3(L_55, TextProcessingStack_1_Clear_m857C80F9AFD9507FE4784DB5DE79109E16C8EAA3_RuntimeMethod_var);
__this->___m_LineOffset_39 = (0.0f);
__this->___m_LineHeight_40 = (-32767.0f);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_56 = __this->___m_CurrentFontAsset_7;
NullCheck(L_56);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_57;
L_57 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_56, NULL);
V_24 = L_57;
float L_58;
L_58 = FaceInfo_get_lineHeight_m528B4A822181FCECF3D4FF1045DF288E5872AB9D((&V_24), NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_59 = __this->___m_CurrentFontAsset_7;
NullCheck(L_59);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_60;
L_60 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_59, NULL);
V_24 = L_60;
float L_61;
L_61 = FaceInfo_get_ascentLine_m193755D649428EC24A7E433A1728F11DA7547ABD((&V_24), NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_62 = __this->___m_CurrentFontAsset_7;
NullCheck(L_62);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_63;
L_63 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_62, NULL);
V_24 = L_63;
float L_64;
L_64 = FaceInfo_get_descentLine_m811A243C9B328B0C546BF9927A010A05DF172BD3((&V_24), NULL);
V_5 = ((float)il2cpp_codegen_subtract(L_58, ((float)il2cpp_codegen_subtract(L_61, L_64))));
__this->___m_CSpacing_41 = (0.0f);
__this->___m_MonoSpacing_42 = (0.0f);
__this->___m_XAdvance_43 = (0.0f);
V_7 = (0.0f);
__this->___m_TagLineIndent_44 = (0.0f);
__this->___m_TagIndent_45 = (0.0f);
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555* L_65 = (&__this->___m_IndentStack_46);
TextProcessingStack_1_SetDefault_mA28AEF460395ECD6CBF6A469575571F64F6836B9(L_65, (0.0f), TextProcessingStack_1_SetDefault_mA28AEF460395ECD6CBF6A469575571F64F6836B9_RuntimeMethod_var);
__this->___m_TagNoParsing_47 = (bool)0;
__this->___m_CharacterCount_48 = 0;
__this->___m_FirstCharacterOfLine_49 = 0;
__this->___m_MaxLineAscender_53 = (-32767.0f);
__this->___m_MaxLineDescender_54 = (32767.0f);
__this->___m_LineNumber_55 = 0;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_66 = ___generationSettings3;
NullCheck(L_66);
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_67 = L_66->___textSettings_9;
V_8 = L_67;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_68 = ___marginSize1;
float L_69 = L_68.___x_0;
V_9 = L_69;
__this->___m_MarginLeft_59 = (0.0f);
__this->___m_MarginRight_60 = (0.0f);
__this->___m_Width_61 = (-1.0f);
V_10 = (0.0f);
V_11 = (0.0f);
V_12 = (0.0f);
__this->___m_IsCalculatingPreferredValues_94 = (bool)1;
__this->___m_MaxAscender_64 = (0.0f);
__this->___m_MaxDescender_65 = (0.0f);
V_13 = (bool)1;
V_14 = (bool)0;
il2cpp_codegen_initobj((&V_15), sizeof(WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123));
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_70 = ___textInfo4;
TextGenerator_SaveWordWrappingState_mC07B2C5977EECE10216F8C6AC9CC4204F7EF1936(__this, (&V_15), 0, 0, L_70, NULL);
il2cpp_codegen_initobj((&V_16), sizeof(WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123));
V_17 = 0;
int32_t L_71 = __this->___m_RecursiveCount_102;
__this->___m_RecursiveCount_102 = ((int32_t)il2cpp_codegen_add(L_71, 1));
V_26 = 0;
goto IL_15dc;
}
IL_030e:
{
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_72 = __this->___m_CharBuffer_4;
int32_t L_73 = V_26;
NullCheck(L_72);
int32_t L_74 = L_73;
int32_t L_75 = (L_72)->GetAt(static_cast<il2cpp_array_size_t>(L_74));
V_3 = L_75;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_76 = ___textInfo4;
NullCheck(L_76);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_77 = L_76->___textElementInfo_10;
int32_t L_78 = __this->___m_CharacterCount_48;
NullCheck(L_77);
uint8_t L_79 = ((L_77)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_78)))->___elementType_2;
__this->___m_TextElementType_71 = L_79;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_80 = ___textInfo4;
NullCheck(L_80);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_81 = L_80->___textElementInfo_10;
int32_t L_82 = __this->___m_CharacterCount_48;
NullCheck(L_81);
int32_t L_83 = ((L_81)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_82)))->___materialReferenceIndex_8;
__this->___m_CurrentMaterialIndex_9 = L_83;
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_84 = __this->___m_MaterialReferences_85;
int32_t L_85 = __this->___m_CurrentMaterialIndex_9;
NullCheck(L_84);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_86 = ((L_84)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_85)))->___fontAsset_1;
__this->___m_CurrentFontAsset_7 = L_86;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentFontAsset_7), (void*)L_86);
int32_t L_87 = __this->___m_CurrentMaterialIndex_9;
V_27 = L_87;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_88 = ___generationSettings3;
NullCheck(L_88);
bool L_89 = L_88->___richText_23;
if (!L_89)
{
goto IL_0387;
}
}
{
int32_t L_90 = V_3;
G_B23_0 = ((((int32_t)L_90) == ((int32_t)((int32_t)60)))? 1 : 0);
goto IL_0388;
}
IL_0387:
{
G_B23_0 = 0;
}
IL_0388:
{
V_36 = (bool)G_B23_0;
bool L_91 = V_36;
if (!L_91)
{
goto IL_03d4;
}
}
{
__this->___m_IsParsingText_72 = (bool)1;
__this->___m_TextElementType_71 = 1;
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_92 = __this->___m_CharBuffer_4;
int32_t L_93 = V_26;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_94 = ___generationSettings3;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_95 = ___textInfo4;
bool L_96;
L_96 = TextGenerator_ValidateHtmlTag_m9C85462F15A6165B10E4C4EE93620AC1021BE5CD(__this, L_92, ((int32_t)il2cpp_codegen_add(L_93, 1)), (&V_18), L_94, L_95, NULL);
V_37 = L_96;
bool L_97 = V_37;
if (!L_97)
{
goto IL_03d3;
}
}
{
int32_t L_98 = V_18;
V_26 = L_98;
uint8_t L_99 = __this->___m_TextElementType_71;
V_38 = (bool)((((int32_t)L_99) == ((int32_t)1))? 1 : 0);
bool L_100 = V_38;
if (!L_100)
{
goto IL_03d2;
}
}
{
goto IL_15d6;
}
IL_03d2:
{
}
IL_03d3:
{
}
IL_03d4:
{
__this->___m_IsParsingText_72 = (bool)0;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_101 = ___textInfo4;
NullCheck(L_101);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_102 = L_101->___textElementInfo_10;
int32_t L_103 = __this->___m_CharacterCount_48;
NullCheck(L_102);
bool L_104 = ((L_102)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_103)))->___isUsingAlternateTypeface_9;
V_28 = L_104;
V_29 = (1.0f);
uint8_t L_105 = __this->___m_TextElementType_71;
V_39 = (bool)((((int32_t)L_105) == ((int32_t)1))? 1 : 0);
bool L_106 = V_39;
if (!L_106)
{
goto IL_0498;
}
}
{
int32_t L_107 = __this->___m_FontStyleInternal_19;
V_40 = (bool)((((int32_t)((int32_t)((int32_t)L_107&((int32_t)16)))) == ((int32_t)((int32_t)16)))? 1 : 0);
bool L_108 = V_40;
if (!L_108)
{
goto IL_043a;
}
}
{
int32_t L_109 = V_3;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
bool L_110;
L_110 = Char_IsLower_m30A84A53658D6250257BFD99051D4931916D5D91(((int32_t)(uint16_t)L_109), NULL);
V_41 = L_110;
bool L_111 = V_41;
if (!L_111)
{
goto IL_0437;
}
}
{
int32_t L_112 = V_3;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
Il2CppChar L_113;
L_113 = Char_ToUpper_m3753B9BCD4A82C8B5D86D39D9B1B2D638B0AFE84(((int32_t)(uint16_t)L_112), NULL);
V_3 = L_113;
}
IL_0437:
{
goto IL_0497;
}
IL_043a:
{
int32_t L_114 = __this->___m_FontStyleInternal_19;
V_42 = (bool)((((int32_t)((int32_t)((int32_t)L_114&8))) == ((int32_t)8))? 1 : 0);
bool L_115 = V_42;
if (!L_115)
{
goto IL_0464;
}
}
{
int32_t L_116 = V_3;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
bool L_117;
L_117 = Char_IsUpper_m857948FB8687710EC3EAB889A4908E00E4F48BDA(((int32_t)(uint16_t)L_116), NULL);
V_43 = L_117;
bool L_118 = V_43;
if (!L_118)
{
goto IL_0461;
}
}
{
int32_t L_119 = V_3;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
Il2CppChar L_120;
L_120 = Char_ToLower_m643675C4A50AD39A7BE3F5C3F40A1BFD547FF957(((int32_t)(uint16_t)L_119), NULL);
V_3 = L_120;
}
IL_0461:
{
goto IL_0497;
}
IL_0464:
{
int32_t L_121 = __this->___m_FontStyleInternal_19;
V_44 = (bool)((((int32_t)((int32_t)((int32_t)L_121&((int32_t)32)))) == ((int32_t)((int32_t)32)))? 1 : 0);
bool L_122 = V_44;
if (!L_122)
{
goto IL_0497;
}
}
{
int32_t L_123 = V_3;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
bool L_124;
L_124 = Char_IsLower_m30A84A53658D6250257BFD99051D4931916D5D91(((int32_t)(uint16_t)L_123), NULL);
V_45 = L_124;
bool L_125 = V_45;
if (!L_125)
{
goto IL_0496;
}
}
{
V_29 = (0.800000012f);
int32_t L_126 = V_3;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
Il2CppChar L_127;
L_127 = Char_ToUpper_m3753B9BCD4A82C8B5D86D39D9B1B2D638B0AFE84(((int32_t)(uint16_t)L_126), NULL);
V_3 = L_127;
}
IL_0496:
{
}
IL_0497:
{
}
IL_0498:
{
uint8_t L_128 = __this->___m_TextElementType_71;
V_46 = (bool)((((int32_t)L_128) == ((int32_t)2))? 1 : 0);
bool L_129 = V_46;
if (!L_129)
{
goto IL_05e3;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_130 = ___textInfo4;
NullCheck(L_130);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_131 = L_130->___textElementInfo_10;
int32_t L_132 = __this->___m_CharacterCount_48;
NullCheck(L_131);
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_133 = ((L_131)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_132)))->___spriteAsset_5;
__this->___m_CurrentSpriteAsset_12 = L_133;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentSpriteAsset_12), (void*)L_133);
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_134 = ___textInfo4;
NullCheck(L_134);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_135 = L_134->___textElementInfo_10;
int32_t L_136 = __this->___m_CharacterCount_48;
NullCheck(L_135);
int32_t L_137 = ((L_135)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_136)))->___spriteIndex_6;
__this->___m_SpriteIndex_73 = L_137;
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_138 = __this->___m_CurrentSpriteAsset_12;
NullCheck(L_138);
List_1_t7DA088250C54C07AF1211AE132355AD2D343EE51* L_139;
L_139 = SpriteAsset_get_spriteCharacterTable_m8D0D65C430AD8BC8C2BC8151DC4672CC0F690E0A(L_138, NULL);
int32_t L_140 = __this->___m_SpriteIndex_73;
NullCheck(L_139);
SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* L_141;
L_141 = List_1_get_Item_m25CB12C13D14620785B0E86F6543D20B5080AFF8(L_139, L_140, List_1_get_Item_m25CB12C13D14620785B0E86F6543D20B5080AFF8_RuntimeMethod_var);
V_47 = L_141;
SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* L_142 = V_47;
V_49 = (bool)((((RuntimeObject*)(SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5*)L_142) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_143 = V_49;
if (!L_143)
{
goto IL_050d;
}
}
{
goto IL_15d6;
}
IL_050d:
{
int32_t L_144 = V_3;
V_50 = (bool)((((int32_t)L_144) == ((int32_t)((int32_t)60)))? 1 : 0);
bool L_145 = V_50;
if (!L_145)
{
goto IL_0525;
}
}
{
int32_t L_146 = __this->___m_SpriteIndex_73;
V_3 = ((int32_t)il2cpp_codegen_add(((int32_t)57344), L_146));
}
IL_0525:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_147 = ___generationSettings3;
NullCheck(L_147);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_148 = L_147->___fontAsset_4;
__this->___m_CurrentFontAsset_7 = L_148;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CurrentFontAsset_7), (void*)L_148);
float L_149 = __this->___m_CurrentFontSize_17;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_150 = ___generationSettings3;
NullCheck(L_150);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_151 = L_150->___fontAsset_4;
NullCheck(L_151);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_152;
L_152 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_151, NULL);
V_24 = L_152;
int32_t L_153;
L_153 = FaceInfo_get_pointSize_m7EF7429A4725AB715931A220F6BB498C3D6BF7CB((&V_24), NULL);
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_154 = ___generationSettings3;
NullCheck(L_154);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_155 = L_154->___fontAsset_4;
NullCheck(L_155);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_156;
L_156 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_155, NULL);
V_24 = L_156;
float L_157;
L_157 = FaceInfo_get_scale_mC475A572AD4956B47D8B9F8D90DC69BBBB102FCD((&V_24), NULL);
V_48 = ((float)il2cpp_codegen_multiply(((float)(L_149/((float)L_153))), L_157));
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_158 = ___generationSettings3;
NullCheck(L_158);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_159 = L_158->___fontAsset_4;
NullCheck(L_159);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_160;
L_160 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_159, NULL);
V_24 = L_160;
float L_161;
L_161 = FaceInfo_get_ascentLine_m193755D649428EC24A7E433A1728F11DA7547ABD((&V_24), NULL);
SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* L_162 = V_47;
NullCheck(L_162);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_163;
L_163 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_162, NULL);
NullCheck(L_163);
GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A L_164;
L_164 = Glyph_get_metrics_mB6E9D3D1899E35BA257638F6F58B7D260170B6FA(L_163, NULL);
V_51 = L_164;
float L_165;
L_165 = GlyphMetrics_get_height_mE0872B23CE1A20BF78DEACDBD53BAF789D84AD5C((&V_51), NULL);
SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* L_166 = V_47;
NullCheck(L_166);
float L_167;
L_167 = TextElement_get_scale_mD16946900449FEE9E2F86B2C4C71E26F4491A0E6(L_166, NULL);
float L_168 = V_48;
V_2 = ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_multiply(((float)(L_161/L_165)), L_167)), L_168));
SpriteCharacter_tB3516A25DBFA0AD68DD8E1432752D503FD1F40F5* L_169 = V_47;
__this->___m_CachedTextElement_75 = L_169;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CachedTextElement_75), (void*)L_169);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_170 = __this->___m_InternalTextElementInfo_101;
int32_t L_171 = __this->___m_CharacterCount_48;
NullCheck(L_170);
((L_170)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_171)))->___elementType_2 = 2;
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_172 = __this->___m_InternalTextElementInfo_101;
int32_t L_173 = __this->___m_CharacterCount_48;
NullCheck(L_172);
float L_174 = V_48;
((L_172)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_173)))->___scale_28 = L_174;
int32_t L_175 = V_27;
__this->___m_CurrentMaterialIndex_9 = L_175;
goto IL_06b0;
}
IL_05e3:
{
uint8_t L_176 = __this->___m_TextElementType_71;
V_52 = (bool)((((int32_t)L_176) == ((int32_t)1))? 1 : 0);
bool L_177 = V_52;
if (!L_177)
{
goto IL_06b0;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_178 = ___textInfo4;
NullCheck(L_178);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_179 = L_178->___textElementInfo_10;
int32_t L_180 = __this->___m_CharacterCount_48;
NullCheck(L_179);
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_181 = ((L_179)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_180)))->___textElement_3;
__this->___m_CachedTextElement_75 = L_181;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CachedTextElement_75), (void*)L_181);
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_182 = __this->___m_CachedTextElement_75;
V_53 = (bool)((((RuntimeObject*)(TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA*)L_182) == ((RuntimeObject*)(RuntimeObject*)NULL))? 1 : 0);
bool L_183 = V_53;
if (!L_183)
{
goto IL_0627;
}
}
{
goto IL_15d6;
}
IL_0627:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_184 = ___textInfo4;
NullCheck(L_184);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_185 = L_184->___textElementInfo_10;
int32_t L_186 = __this->___m_CharacterCount_48;
NullCheck(L_185);
int32_t L_187 = ((L_185)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_186)))->___materialReferenceIndex_8;
__this->___m_CurrentMaterialIndex_9 = L_187;
float L_188 = __this->___m_CurrentFontSize_17;
float L_189 = V_29;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_190 = __this->___m_CurrentFontAsset_7;
NullCheck(L_190);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_191;
L_191 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_190, NULL);
V_24 = L_191;
int32_t L_192;
L_192 = FaceInfo_get_pointSize_m7EF7429A4725AB715931A220F6BB498C3D6BF7CB((&V_24), NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_193 = __this->___m_CurrentFontAsset_7;
NullCheck(L_193);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_194;
L_194 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_193, NULL);
V_24 = L_194;
float L_195;
L_195 = FaceInfo_get_scale_mC475A572AD4956B47D8B9F8D90DC69BBBB102FCD((&V_24), NULL);
__this->___m_FontScale_14 = ((float)il2cpp_codegen_multiply(((float)(((float)il2cpp_codegen_multiply(L_188, L_189))/((float)L_192))), L_195));
float L_196 = __this->___m_FontScale_14;
float L_197 = __this->___m_FontScaleMultiplier_16;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_198 = __this->___m_CachedTextElement_75;
NullCheck(L_198);
float L_199;
L_199 = TextElement_get_scale_mD16946900449FEE9E2F86B2C4C71E26F4491A0E6(L_198, NULL);
V_2 = ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_multiply(L_196, L_197)), L_199));
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_200 = __this->___m_InternalTextElementInfo_101;
int32_t L_201 = __this->___m_CharacterCount_48;
NullCheck(L_200);
((L_200)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_201)))->___elementType_2 = 1;
}
IL_06b0:
{
float L_202 = V_2;
V_30 = L_202;
int32_t L_203 = V_3;
V_54 = (bool)((((int32_t)L_203) == ((int32_t)((int32_t)173)))? 1 : 0);
bool L_204 = V_54;
if (!L_204)
{
goto IL_06c9;
}
}
{
V_2 = (0.0f);
}
IL_06c9:
{
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_205 = __this->___m_InternalTextElementInfo_101;
int32_t L_206 = __this->___m_CharacterCount_48;
NullCheck(L_205);
int32_t L_207 = V_3;
((L_205)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_206)))->___character_0 = ((int32_t)(uint16_t)L_207);
il2cpp_codegen_initobj((&V_31), sizeof(GlyphValueRecord_t780927A39D46924E0D546A2AE5DDF1BB2B5A9C8E));
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_208 = ___generationSettings3;
NullCheck(L_208);
float L_209 = L_208->___characterSpacing_27;
V_32 = L_209;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_210 = ___generationSettings3;
NullCheck(L_210);
bool L_211 = L_210->___enableKerning_22;
V_55 = L_211;
bool L_212 = V_55;
if (!L_212)
{
goto IL_07f9;
}
}
{
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_213 = __this->___m_CachedTextElement_75;
NullCheck(L_213);
uint32_t L_214;
L_214 = TextElement_get_glyphIndex_m43F82F2F998D640DEDBE6860EBE7B171DDF4FE56(L_213, NULL);
V_57 = L_214;
int32_t L_215 = __this->___m_CharacterCount_48;
int32_t L_216 = V_0;
V_58 = (bool)((((int32_t)L_215) < ((int32_t)((int32_t)il2cpp_codegen_subtract(L_216, 1))))? 1 : 0);
bool L_217 = V_58;
if (!L_217)
{
goto IL_0780;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_218 = ___textInfo4;
NullCheck(L_218);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_219 = L_218->___textElementInfo_10;
int32_t L_220 = __this->___m_CharacterCount_48;
NullCheck(L_219);
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_221 = ((L_219)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_220, 1)))))->___textElement_3;
NullCheck(L_221);
uint32_t L_222;
L_222 = TextElement_get_glyphIndex_m43F82F2F998D640DEDBE6860EBE7B171DDF4FE56(L_221, NULL);
V_59 = L_222;
uint32_t L_223 = V_59;
uint32_t L_224 = V_57;
V_60 = ((int32_t)(((int32_t)((int32_t)L_223<<((int32_t)16)))|(int32_t)L_224));
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_225 = __this->___m_CurrentFontAsset_7;
NullCheck(L_225);
FontFeatureTable_t992E0493CD7E9D7834DF204E0198237F0D25B3B7* L_226 = L_225->___m_FontFeatureTable_32;
NullCheck(L_226);
Dictionary_2_tDD72F78A572F94ECEDBDA75C3D17C3ED05C167E0* L_227 = L_226->___m_GlyphPairAdjustmentRecordLookup_1;
uint32_t L_228 = V_60;
NullCheck(L_227);
bool L_229;
L_229 = Dictionary_2_TryGetValue_m45061EA2C8BF9DD9DC9DA92DAB968171136507DA(L_227, L_228, (&V_56), Dictionary_2_TryGetValue_m45061EA2C8BF9DD9DC9DA92DAB968171136507DA_RuntimeMethod_var);
V_61 = L_229;
bool L_230 = V_61;
if (!L_230)
{
goto IL_077f;
}
}
{
GlyphAdjustmentRecord_tC7A1B2E0AC7C4ED9CDB8E95E48790A46B6F315F7 L_231;
L_231 = GlyphPairAdjustmentRecord_get_firstAdjustmentRecord_m867469548F17B298F893B78EE2F93D34E4A6C39C((&V_56), NULL);
V_62 = L_231;
GlyphValueRecord_t780927A39D46924E0D546A2AE5DDF1BB2B5A9C8E L_232;
L_232 = GlyphAdjustmentRecord_get_glyphValueRecord_m83866DCE07A22F903D4BA417476E64114625BDD7((&V_62), NULL);
V_31 = L_232;
}
IL_077f:
{
}
IL_0780:
{
int32_t L_233 = __this->___m_CharacterCount_48;
V_63 = (bool)((((int32_t)((((int32_t)L_233) < ((int32_t)1))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_234 = V_63;
if (!L_234)
{
goto IL_07f8;
}
}
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_235 = ___textInfo4;
NullCheck(L_235);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_236 = L_235->___textElementInfo_10;
int32_t L_237 = __this->___m_CharacterCount_48;
NullCheck(L_236);
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_238 = ((L_236)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract(L_237, 1)))))->___textElement_3;
NullCheck(L_238);
uint32_t L_239;
L_239 = TextElement_get_glyphIndex_m43F82F2F998D640DEDBE6860EBE7B171DDF4FE56(L_238, NULL);
V_64 = L_239;
uint32_t L_240 = V_57;
uint32_t L_241 = V_64;
V_65 = ((int32_t)(((int32_t)((int32_t)L_240<<((int32_t)16)))|(int32_t)L_241));
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_242 = __this->___m_CurrentFontAsset_7;
NullCheck(L_242);
FontFeatureTable_t992E0493CD7E9D7834DF204E0198237F0D25B3B7* L_243 = L_242->___m_FontFeatureTable_32;
NullCheck(L_243);
Dictionary_2_tDD72F78A572F94ECEDBDA75C3D17C3ED05C167E0* L_244 = L_243->___m_GlyphPairAdjustmentRecordLookup_1;
uint32_t L_245 = V_65;
NullCheck(L_244);
bool L_246;
L_246 = Dictionary_2_TryGetValue_m45061EA2C8BF9DD9DC9DA92DAB968171136507DA(L_244, L_245, (&V_56), Dictionary_2_TryGetValue_m45061EA2C8BF9DD9DC9DA92DAB968171136507DA_RuntimeMethod_var);
V_66 = L_246;
bool L_247 = V_66;
if (!L_247)
{
goto IL_07f7;
}
}
{
GlyphValueRecord_t780927A39D46924E0D546A2AE5DDF1BB2B5A9C8E L_248 = V_31;
GlyphAdjustmentRecord_tC7A1B2E0AC7C4ED9CDB8E95E48790A46B6F315F7 L_249;
L_249 = GlyphPairAdjustmentRecord_get_secondAdjustmentRecord_mFDFECB1F7A38E22BD2388FFE9C71E732F6B44D91((&V_56), NULL);
V_62 = L_249;
GlyphValueRecord_t780927A39D46924E0D546A2AE5DDF1BB2B5A9C8E L_250;
L_250 = GlyphAdjustmentRecord_get_glyphValueRecord_m83866DCE07A22F903D4BA417476E64114625BDD7((&V_62), NULL);
GlyphValueRecord_t780927A39D46924E0D546A2AE5DDF1BB2B5A9C8E L_251;
L_251 = GlyphValueRecord_op_Addition_mA940285C14EBAD83BA6BDA0ECFCC5BF550ED8E8A(L_248, L_250, NULL);
V_31 = L_251;
}
IL_07f7:
{
}
IL_07f8:
{
}
IL_07f9:
{
V_33 = (0.0f);
float L_252 = __this->___m_MonoSpacing_42;
V_67 = (bool)((((int32_t)((((float)L_252) == ((float)(0.0f)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_253 = V_67;
if (!L_253)
{
goto IL_0871;
}
}
{
float L_254 = __this->___m_MonoSpacing_42;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_255 = __this->___m_CachedTextElement_75;
NullCheck(L_255);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_256;
L_256 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_255, NULL);
NullCheck(L_256);
GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A L_257;
L_257 = Glyph_get_metrics_mB6E9D3D1899E35BA257638F6F58B7D260170B6FA(L_256, NULL);
V_51 = L_257;
float L_258;
L_258 = GlyphMetrics_get_width_m0F9F391E3A98984167E8001D4101BE1CE9354D13((&V_51), NULL);
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_259 = __this->___m_CachedTextElement_75;
NullCheck(L_259);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_260;
L_260 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_259, NULL);
NullCheck(L_260);
GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A L_261;
L_261 = Glyph_get_metrics_mB6E9D3D1899E35BA257638F6F58B7D260170B6FA(L_260, NULL);
V_51 = L_261;
float L_262;
L_262 = GlyphMetrics_get_horizontalBearingX_m9C39B5E6D27FF34B706649AE47EE9390B5D76D6F((&V_51), NULL);
float L_263 = V_2;
V_33 = ((float)il2cpp_codegen_subtract(((float)(L_254/(2.0f))), ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_add(((float)(L_258/(2.0f))), L_262)), L_263))));
float L_264 = __this->___m_XAdvance_43;
float L_265 = V_33;
__this->___m_XAdvance_43 = ((float)il2cpp_codegen_add(L_264, L_265));
}
IL_0871:
{
uint8_t L_266 = __this->___m_TextElementType_71;
if ((!(((uint32_t)L_266) == ((uint32_t)1))))
{
goto IL_088b;
}
}
{
bool L_267 = V_28;
if (L_267)
{
goto IL_088b;
}
}
{
int32_t L_268 = __this->___m_FontStyleInternal_19;
G_B71_0 = ((((int32_t)((int32_t)((int32_t)L_268&1))) == ((int32_t)1))? 1 : 0);
goto IL_088c;
}
IL_088b:
{
G_B71_0 = 0;
}
IL_088c:
{
V_68 = (bool)G_B71_0;
bool L_269 = V_68;
if (!L_269)
{
goto IL_08af;
}
}
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_270 = __this->___m_CurrentFontAsset_7;
NullCheck(L_270);
float L_271;
L_271 = FontAsset_get_boldStyleSpacing_mB8CF4F4880B110E41D566648FF1D995010CF1FF0(L_270, NULL);
V_4 = ((float)il2cpp_codegen_add((1.0f), ((float)il2cpp_codegen_multiply(L_271, (0.00999999978f)))));
goto IL_08b8;
}
IL_08af:
{
V_4 = (1.0f);
}
IL_08b8:
{
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_272 = __this->___m_InternalTextElementInfo_101;
int32_t L_273 = __this->___m_CharacterCount_48;
NullCheck(L_272);
float L_274 = __this->___m_LineOffset_39;
float L_275 = __this->___m_BaselineOffset_25;
((L_272)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_273)))->___baseLine_24 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_subtract((0.0f), L_274)), L_275));
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_276 = __this->___m_CurrentFontAsset_7;
NullCheck(L_276);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_277;
L_277 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_276, NULL);
V_24 = L_277;
float L_278;
L_278 = FaceInfo_get_ascentLine_m193755D649428EC24A7E433A1728F11DA7547ABD((&V_24), NULL);
uint8_t L_279 = __this->___m_TextElementType_71;
G_B75_0 = L_278;
if ((((int32_t)L_279) == ((int32_t)1)))
{
G_B76_0 = L_278;
goto IL_0916;
}
}
{
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_280 = __this->___m_InternalTextElementInfo_101;
int32_t L_281 = __this->___m_CharacterCount_48;
NullCheck(L_280);
float L_282 = ((L_280)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_281)))->___scale_28;
G_B77_0 = L_282;
G_B77_1 = G_B75_0;
goto IL_091a;
}
IL_0916:
{
float L_283 = V_2;
float L_284 = V_29;
G_B77_0 = ((float)(L_283/L_284));
G_B77_1 = G_B76_0;
}
IL_091a:
{
float L_285 = __this->___m_BaselineOffset_25;
V_34 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(G_B77_1, G_B77_0)), L_285));
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_286 = __this->___m_InternalTextElementInfo_101;
int32_t L_287 = __this->___m_CharacterCount_48;
NullCheck(L_286);
float L_288 = V_34;
float L_289 = __this->___m_LineOffset_39;
((L_286)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_287)))->___ascender_23 = ((float)il2cpp_codegen_subtract(L_288, L_289));
float L_290 = V_34;
float L_291 = __this->___m_MaxLineAscender_53;
G_B78_0 = __this;
if ((((float)L_290) > ((float)L_291)))
{
G_B79_0 = __this;
goto IL_0956;
}
}
{
float L_292 = __this->___m_MaxLineAscender_53;
G_B80_0 = L_292;
G_B80_1 = G_B78_0;
goto IL_0958;
}
IL_0956:
{
float L_293 = V_34;
G_B80_0 = L_293;
G_B80_1 = G_B79_0;
}
IL_0958:
{
NullCheck(G_B80_1);
G_B80_1->___m_MaxLineAscender_53 = G_B80_0;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_294 = __this->___m_CurrentFontAsset_7;
NullCheck(L_294);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_295;
L_295 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_294, NULL);
V_24 = L_295;
float L_296;
L_296 = FaceInfo_get_descentLine_m811A243C9B328B0C546BF9927A010A05DF172BD3((&V_24), NULL);
uint8_t L_297 = __this->___m_TextElementType_71;
G_B81_0 = L_296;
if ((((int32_t)L_297) == ((int32_t)1)))
{
G_B82_0 = L_296;
goto IL_0992;
}
}
{
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_298 = __this->___m_InternalTextElementInfo_101;
int32_t L_299 = __this->___m_CharacterCount_48;
NullCheck(L_298);
float L_300 = ((L_298)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_299)))->___scale_28;
G_B83_0 = L_300;
G_B83_1 = G_B81_0;
goto IL_0996;
}
IL_0992:
{
float L_301 = V_2;
float L_302 = V_29;
G_B83_0 = ((float)(L_301/L_302));
G_B83_1 = G_B82_0;
}
IL_0996:
{
float L_303 = __this->___m_BaselineOffset_25;
V_35 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(G_B83_1, G_B83_0)), L_303));
float L_304 = V_35;
float L_305 = __this->___m_MaxLineDescender_54;
G_B84_0 = __this;
if ((((float)L_304) < ((float)L_305)))
{
G_B85_0 = __this;
goto IL_09b3;
}
}
{
float L_306 = __this->___m_MaxLineDescender_54;
G_B86_0 = L_306;
G_B86_1 = G_B84_0;
goto IL_09b5;
}
IL_09b3:
{
float L_307 = V_35;
G_B86_0 = L_307;
G_B86_1 = G_B85_0;
}
IL_09b5:
{
NullCheck(G_B86_1);
G_B86_1->___m_MaxLineDescender_54 = G_B86_0;
int32_t L_308 = __this->___m_FontStyleInternal_19;
if ((((int32_t)((int32_t)((int32_t)L_308&((int32_t)256)))) == ((int32_t)((int32_t)256))))
{
goto IL_09e2;
}
}
{
int32_t L_309 = __this->___m_FontStyleInternal_19;
G_B89_0 = ((((int32_t)((int32_t)((int32_t)L_309&((int32_t)128)))) == ((int32_t)((int32_t)128)))? 1 : 0);
goto IL_09e3;
}
IL_09e2:
{
G_B89_0 = 1;
}
IL_09e3:
{
V_69 = (bool)G_B89_0;
bool L_310 = V_69;
if (!L_310)
{
goto IL_0a67;
}
}
{
float L_311 = V_34;
float L_312 = __this->___m_BaselineOffset_25;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_313 = __this->___m_CurrentFontAsset_7;
NullCheck(L_313);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_314;
L_314 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_313, NULL);
V_24 = L_314;
float L_315;
L_315 = FaceInfo_get_subscriptSize_mF6264BFB215FDE6C94A45D2F8FC946ADFCDD2E31((&V_24), NULL);
V_70 = ((float)(((float)il2cpp_codegen_subtract(L_311, L_312))/L_315));
float L_316 = __this->___m_MaxLineAscender_53;
V_34 = L_316;
float L_317 = V_70;
float L_318 = __this->___m_MaxLineAscender_53;
G_B91_0 = __this;
if ((((float)L_317) > ((float)L_318)))
{
G_B92_0 = __this;
goto IL_0a25;
}
}
{
float L_319 = __this->___m_MaxLineAscender_53;
G_B93_0 = L_319;
G_B93_1 = G_B91_0;
goto IL_0a27;
}
IL_0a25:
{
float L_320 = V_70;
G_B93_0 = L_320;
G_B93_1 = G_B92_0;
}
IL_0a27:
{
NullCheck(G_B93_1);
G_B93_1->___m_MaxLineAscender_53 = G_B93_0;
float L_321 = V_35;
float L_322 = __this->___m_BaselineOffset_25;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_323 = __this->___m_CurrentFontAsset_7;
NullCheck(L_323);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_324;
L_324 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_323, NULL);
V_24 = L_324;
float L_325;
L_325 = FaceInfo_get_subscriptSize_mF6264BFB215FDE6C94A45D2F8FC946ADFCDD2E31((&V_24), NULL);
V_71 = ((float)(((float)il2cpp_codegen_subtract(L_321, L_322))/L_325));
float L_326 = V_71;
float L_327 = __this->___m_MaxLineDescender_54;
G_B94_0 = __this;
if ((((float)L_326) < ((float)L_327)))
{
G_B95_0 = __this;
goto IL_0a5f;
}
}
{
float L_328 = __this->___m_MaxLineDescender_54;
G_B96_0 = L_328;
G_B96_1 = G_B94_0;
goto IL_0a61;
}
IL_0a5f:
{
float L_329 = V_71;
G_B96_0 = L_329;
G_B96_1 = G_B95_0;
}
IL_0a61:
{
NullCheck(G_B96_1);
G_B96_1->___m_MaxLineDescender_54 = G_B96_0;
}
IL_0a67:
{
int32_t L_330 = __this->___m_LineNumber_55;
V_72 = (bool)((((int32_t)L_330) == ((int32_t)0))? 1 : 0);
bool L_331 = V_72;
if (!L_331)
{
goto IL_0a90;
}
}
{
float L_332 = __this->___m_MaxAscender_64;
float L_333 = V_34;
G_B99_0 = __this;
if ((((float)L_332) > ((float)L_333)))
{
G_B100_0 = __this;
goto IL_0a85;
}
}
{
float L_334 = V_34;
G_B101_0 = L_334;
G_B101_1 = G_B99_0;
goto IL_0a8b;
}
IL_0a85:
{
float L_335 = __this->___m_MaxAscender_64;
G_B101_0 = L_335;
G_B101_1 = G_B100_0;
}
IL_0a8b:
{
NullCheck(G_B101_1);
G_B101_1->___m_MaxAscender_64 = G_B101_0;
}
IL_0a90:
{
int32_t L_336 = V_3;
if ((((int32_t)L_336) == ((int32_t)((int32_t)9))))
{
goto IL_0ab1;
}
}
{
int32_t L_337 = V_3;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
bool L_338;
L_338 = Char_IsWhiteSpace_m9CE0F6685DB2502ABE106D160F95A287EFC07EF9(((int32_t)(uint16_t)L_337), NULL);
if (L_338)
{
goto IL_0aa6;
}
}
{
int32_t L_339 = V_3;
if ((!(((uint32_t)L_339) == ((uint32_t)((int32_t)8203)))))
{
goto IL_0ab1;
}
}
IL_0aa6:
{
uint8_t L_340 = __this->___m_TextElementType_71;
G_B107_0 = ((((int32_t)L_340) == ((int32_t)2))? 1 : 0);
goto IL_0ab2;
}
IL_0ab1:
{
G_B107_0 = 1;
}
IL_0ab2:
{
V_73 = (bool)G_B107_0;
bool L_341 = V_73;
if (!L_341)
{
goto IL_0fb9;
}
}
{
float L_342 = __this->___m_Width_61;
if ((!(((float)L_342) == ((float)(-1.0f)))))
{
goto IL_0ae1;
}
}
{
float L_343 = V_9;
float L_344 = __this->___m_MarginLeft_59;
float L_345 = __this->___m_MarginRight_60;
G_B111_0 = ((float)il2cpp_codegen_subtract(((float)il2cpp_codegen_subtract(((float)il2cpp_codegen_add(L_343, (9.99999975E-05f))), L_344)), L_345));
goto IL_0b02;
}
IL_0ae1:
{
float L_346 = V_9;
float L_347 = __this->___m_MarginLeft_59;
float L_348 = __this->___m_MarginRight_60;
float L_349 = __this->___m_Width_61;
float L_350;
L_350 = Mathf_Min_m4F2A9C5128DC3F9E84865EE7ADA8DB5DA6B8B507_inline(((float)il2cpp_codegen_subtract(((float)il2cpp_codegen_subtract(((float)il2cpp_codegen_add(L_346, (9.99999975E-05f))), L_347)), L_348)), L_349, NULL);
G_B111_0 = L_350;
}
IL_0b02:
{
V_74 = G_B111_0;
int32_t L_351 = __this->___m_LineJustification_23;
if ((((int32_t)((int32_t)((int32_t)L_351&((int32_t)16)))) == ((int32_t)((int32_t)16))))
{
goto IL_0b1e;
}
}
{
int32_t L_352 = __this->___m_LineJustification_23;
G_B114_0 = ((((int32_t)((int32_t)((int32_t)L_352&8))) == ((int32_t)8))? 1 : 0);
goto IL_0b1f;
}
IL_0b1e:
{
G_B114_0 = 1;
}
IL_0b1f:
{
V_75 = (bool)G_B114_0;
float L_353 = __this->___m_XAdvance_43;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_354 = __this->___m_CachedTextElement_75;
NullCheck(L_354);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_355;
L_355 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_354, NULL);
NullCheck(L_355);
GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A L_356;
L_356 = Glyph_get_metrics_mB6E9D3D1899E35BA257638F6F58B7D260170B6FA(L_355, NULL);
V_51 = L_356;
float L_357;
L_357 = GlyphMetrics_get_horizontalAdvance_m110E66C340A19E672FB1C26DFB875AB6900AFFF1((&V_51), NULL);
float L_358 = __this->___m_CharWidthAdjDelta_77;
int32_t L_359 = V_3;
G_B115_0 = ((float)il2cpp_codegen_multiply(L_357, ((float)il2cpp_codegen_subtract((1.0f), L_358))));
G_B115_1 = L_353;
if ((!(((uint32_t)L_359) == ((uint32_t)((int32_t)173)))))
{
G_B116_0 = ((float)il2cpp_codegen_multiply(L_357, ((float)il2cpp_codegen_subtract((1.0f), L_358))));
G_B116_1 = L_353;
goto IL_0b59;
}
}
{
float L_360 = V_30;
G_B117_0 = L_360;
G_B117_1 = G_B115_0;
G_B117_2 = G_B115_1;
goto IL_0b5a;
}
IL_0b59:
{
float L_361 = V_2;
G_B117_0 = L_361;
G_B117_1 = G_B116_0;
G_B117_2 = G_B116_1;
}
IL_0b5a:
{
V_12 = ((float)il2cpp_codegen_add(G_B117_2, ((float)il2cpp_codegen_multiply(G_B117_1, G_B117_0))));
float L_362 = V_12;
float L_363 = V_74;
bool L_364 = V_75;
G_B118_0 = L_363;
G_B118_1 = L_362;
if (L_364)
{
G_B119_0 = L_363;
G_B119_1 = L_362;
goto IL_0b6d;
}
}
{
G_B120_0 = (1.0f);
G_B120_1 = G_B118_0;
G_B120_2 = G_B118_1;
goto IL_0b72;
}
IL_0b6d:
{
G_B120_0 = (1.04999995f);
G_B120_1 = G_B119_0;
G_B120_2 = G_B119_1;
}
IL_0b72:
{
V_76 = (bool)((((float)G_B120_2) > ((float)((float)il2cpp_codegen_multiply(G_B120_1, G_B120_0))))? 1 : 0);
bool L_365 = V_76;
if (!L_365)
{
goto IL_0fb8;
}
}
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_366 = ___generationSettings3;
NullCheck(L_366);
bool L_367 = L_366->___wordWrap_12;
if (!L_367)
{
goto IL_0b9b;
}
}
{
int32_t L_368 = __this->___m_CharacterCount_48;
int32_t L_369 = __this->___m_FirstCharacterOfLine_49;
G_B124_0 = ((((int32_t)((((int32_t)L_368) == ((int32_t)L_369))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_0b9c;
}
IL_0b9b:
{
G_B124_0 = 0;
}
IL_0b9c:
{
V_77 = (bool)G_B124_0;
bool L_370 = V_77;
if (!L_370)
{
goto IL_0eda;
}
}
{
int32_t L_371 = V_17;
WordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123 L_372 = V_16;
int32_t L_373 = L_372.___previousWordBreak_0;
bool L_374 = V_13;
V_80 = (bool)((int32_t)(((((int32_t)L_371) == ((int32_t)L_373))? 1 : 0)|(int32_t)L_374));
bool L_375 = V_80;
if (!L_375)
{
goto IL_0cbe;
}
}
{
bool L_376 = ___ignoreTextAutoSizing2;
if (L_376)
{
goto IL_0bd2;
}
}
{
float L_377 = __this->___m_CurrentFontSize_17;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_378 = ___generationSettings3;
NullCheck(L_378);
float L_379 = L_378->___fontSizeMin_20;
G_B129_0 = ((((float)L_377) > ((float)L_379))? 1 : 0);
goto IL_0bd3;
}
IL_0bd2:
{
G_B129_0 = 0;
}
IL_0bd3:
{
V_81 = (bool)G_B129_0;
bool L_380 = V_81;
if (!L_380)
{
goto IL_0ca0;
}
}
{
float L_381 = __this->___m_CharWidthAdjDelta_77;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_382 = ___generationSettings3;
NullCheck(L_382);
float L_383 = L_382->___charWidthMaxAdj_44;
V_82 = (bool)((((float)L_381) < ((float)((float)(L_383/(100.0f)))))? 1 : 0);
bool L_384 = V_82;
if (!L_384)
{
goto IL_0c26;
}
}
{
__this->___m_RecursiveCount_102 = 0;
float L_385 = __this->___m_CharWidthAdjDelta_77;
__this->___m_CharWidthAdjDelta_77 = ((float)il2cpp_codegen_add(L_385, (0.00999999978f)));
float L_386 = ___defaultFontSize0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_387 = ___marginSize1;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_388 = ___generationSettings3;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_389 = ___textInfo4;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_390;
L_390 = VirtualFuncInvoker5< Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7, float, Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7, bool, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2*, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* >::Invoke(4 /* UnityEngine.Vector2 UnityEngine.TextCore.Text.TextGenerator::CalculatePreferredValues(System.Single,UnityEngine.Vector2,System.Boolean,UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo) */, __this, L_386, L_387, (bool)0, L_388, L_389);
V_21 = L_390;
goto IL_1799;
}
IL_0c26:
{
float L_391 = ___defaultFontSize0;
__this->___m_MaxFontSize_79 = L_391;
float L_392 = ___defaultFontSize0;
float L_393 = ___defaultFontSize0;
float L_394 = __this->___m_MinFontSize_80;
float L_395;
L_395 = Mathf_Max_mA9DCA91E87D6D27034F56ABA52606A9090406016_inline(((float)(((float)il2cpp_codegen_subtract(L_393, L_394))/(2.0f))), (0.0500000007f), NULL);
___defaultFontSize0 = ((float)il2cpp_codegen_subtract(L_392, L_395));
float L_396 = ___defaultFontSize0;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_397 = ___generationSettings3;
NullCheck(L_397);
float L_398 = L_397->___fontSizeMin_20;
float L_399;
L_399 = Mathf_Max_mA9DCA91E87D6D27034F56ABA52606A9090406016_inline(L_396, L_398, NULL);
___defaultFontSize0 = ((float)(((float)il2cpp_codegen_cast_double_to_int<int32_t>(((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_399, (20.0f))), (0.5f)))))/(20.0f)));
int32_t L_400 = __this->___m_RecursiveCount_102;
V_83 = (bool)((((int32_t)L_400) > ((int32_t)((int32_t)20)))? 1 : 0);
bool L_401 = V_83;
if (!L_401)
{
goto IL_0c8c;
}
}
{
float L_402 = V_10;
float L_403 = V_11;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_404;
memset((&L_404), 0, sizeof(L_404));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_404), L_402, L_403, /*hidden argument*/NULL);
V_21 = L_404;
goto IL_1799;
}
IL_0c8c:
{
float L_405 = ___defaultFontSize0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_406 = ___marginSize1;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_407 = ___generationSettings3;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_408 = ___textInfo4;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_409;
L_409 = VirtualFuncInvoker5< Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7, float, Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7, bool, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2*, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* >::Invoke(4 /* UnityEngine.Vector2 UnityEngine.TextCore.Text.TextGenerator::CalculatePreferredValues(System.Single,UnityEngine.Vector2,System.Boolean,UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo) */, __this, L_405, L_406, (bool)0, L_407, L_408);
V_21 = L_409;
goto IL_1799;
}
IL_0ca0:
{
bool L_410 = __this->___m_IsCharacterWrappingEnabled_81;
V_84 = (bool)((((int32_t)L_410) == ((int32_t)0))? 1 : 0);
bool L_411 = V_84;
if (!L_411)
{
goto IL_0cba;
}
}
{
__this->___m_IsCharacterWrappingEnabled_81 = (bool)1;
goto IL_0cbd;
}
IL_0cba:
{
V_14 = (bool)1;
}
IL_0cbd:
{
}
IL_0cbe:
{
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_412 = ___textInfo4;
int32_t L_413;
L_413 = TextGenerator_RestoreWordWrappingState_mA63B3DD2C02E61CD8670A32A53163AF6BF765F61(__this, (&V_16), L_412, NULL);
V_26 = L_413;
int32_t L_414 = V_26;
V_17 = L_414;
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_415 = __this->___m_CharBuffer_4;
int32_t L_416 = V_26;
NullCheck(L_415);
int32_t L_417 = L_416;
int32_t L_418 = (L_415)->GetAt(static_cast<il2cpp_array_size_t>(L_417));
V_85 = (bool)((((int32_t)L_418) == ((int32_t)((int32_t)173)))? 1 : 0);
bool L_419 = V_85;
if (!L_419)
{
goto IL_0d04;
}
}
{
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_420 = __this->___m_CharBuffer_4;
int32_t L_421 = V_26;
NullCheck(L_420);
(L_420)->SetAt(static_cast<il2cpp_array_size_t>(L_421), (int32_t)((int32_t)45));
float L_422 = ___defaultFontSize0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_423 = ___marginSize1;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_424 = ___generationSettings3;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_425 = ___textInfo4;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_426;
L_426 = VirtualFuncInvoker5< Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7, float, Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7, bool, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2*, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* >::Invoke(4 /* UnityEngine.Vector2 UnityEngine.TextCore.Text.TextGenerator::CalculatePreferredValues(System.Single,UnityEngine.Vector2,System.Boolean,UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo) */, __this, L_422, L_423, (bool)1, L_424, L_425);
V_21 = L_426;
goto IL_1799;
}
IL_0d04:
{
int32_t L_427 = __this->___m_LineNumber_55;
if ((((int32_t)L_427) <= ((int32_t)0)))
{
goto IL_0d2f;
}
}
{
float L_428 = __this->___m_MaxLineAscender_53;
float L_429 = __this->___m_StartOfLineAscender_82;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
bool L_430;
L_430 = TextGeneratorUtilities_Approximately_m2333A8491C1BBC4F26738A240A7AA9E699508E6D(L_428, L_429, NULL);
if (L_430)
{
goto IL_0d2f;
}
}
{
float L_431 = __this->___m_LineHeight_40;
G_B145_0 = ((((float)L_431) == ((float)(-32767.0f)))? 1 : 0);
goto IL_0d30;
}
IL_0d2f:
{
G_B145_0 = 0;
}
IL_0d30:
{
V_86 = (bool)G_B145_0;
bool L_432 = V_86;
if (!L_432)
{
goto IL_0d70;
}
}
{
float L_433 = __this->___m_MaxLineAscender_53;
float L_434 = __this->___m_StartOfLineAscender_82;
V_87 = ((float)il2cpp_codegen_subtract(L_433, L_434));
float L_435 = __this->___m_LineOffset_39;
float L_436 = V_87;
__this->___m_LineOffset_39 = ((float)il2cpp_codegen_add(L_435, L_436));
float L_437 = __this->___m_LineOffset_39;
(&V_16)->___lineOffset_26 = L_437;
float L_438 = __this->___m_MaxLineAscender_53;
(&V_16)->___previousLineAscender_15 = L_438;
}
IL_0d70:
{
float L_439 = __this->___m_MaxLineAscender_53;
float L_440 = __this->___m_LineOffset_39;
V_78 = ((float)il2cpp_codegen_subtract(L_439, L_440));
float L_441 = __this->___m_MaxLineDescender_54;
float L_442 = __this->___m_LineOffset_39;
V_79 = ((float)il2cpp_codegen_subtract(L_441, L_442));
float L_443 = __this->___m_MaxDescender_65;
float L_444 = V_79;
G_B148_0 = __this;
if ((((float)L_443) < ((float)L_444)))
{
G_B149_0 = __this;
goto IL_0d9d;
}
}
{
float L_445 = V_79;
G_B150_0 = L_445;
G_B150_1 = G_B148_0;
goto IL_0da3;
}
IL_0d9d:
{
float L_446 = __this->___m_MaxDescender_65;
G_B150_0 = L_446;
G_B150_1 = G_B149_0;
}
IL_0da3:
{
NullCheck(G_B150_1);
G_B150_1->___m_MaxDescender_65 = G_B150_0;
int32_t L_447 = __this->___m_CharacterCount_48;
__this->___m_FirstCharacterOfLine_49 = L_447;
float L_448 = V_10;
float L_449 = __this->___m_XAdvance_43;
V_10 = ((float)il2cpp_codegen_add(L_448, L_449));
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_450 = ___generationSettings3;
NullCheck(L_450);
bool L_451 = L_450->___wordWrap_12;
V_88 = L_451;
bool L_452 = V_88;
if (!L_452)
{
goto IL_0ddd;
}
}
{
float L_453 = __this->___m_MaxAscender_64;
float L_454 = __this->___m_MaxDescender_65;
V_11 = ((float)il2cpp_codegen_subtract(L_453, L_454));
goto IL_0deb;
}
IL_0ddd:
{
float L_455 = V_11;
float L_456 = V_78;
float L_457 = V_79;
float L_458;
L_458 = Mathf_Max_mA9DCA91E87D6D27034F56ABA52606A9090406016_inline(L_455, ((float)il2cpp_codegen_subtract(L_456, L_457)), NULL);
V_11 = L_458;
}
IL_0deb:
{
int32_t L_459 = V_26;
int32_t L_460 = __this->___m_CharacterCount_48;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_461 = ___textInfo4;
TextGenerator_SaveWordWrappingState_mC07B2C5977EECE10216F8C6AC9CC4204F7EF1936(__this, (&V_15), L_459, ((int32_t)il2cpp_codegen_subtract(L_460, 1)), L_461, NULL);
int32_t L_462 = __this->___m_LineNumber_55;
__this->___m_LineNumber_55 = ((int32_t)il2cpp_codegen_add(L_462, 1));
float L_463 = __this->___m_LineHeight_40;
V_89 = (bool)((((float)L_463) == ((float)(-32767.0f)))? 1 : 0);
bool L_464 = V_89;
if (!L_464)
{
goto IL_0e90;
}
}
{
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_465 = __this->___m_InternalTextElementInfo_101;
int32_t L_466 = __this->___m_CharacterCount_48;
NullCheck(L_465);
float L_467 = ((L_465)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_466)))->___ascender_23;
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_468 = __this->___m_InternalTextElementInfo_101;
int32_t L_469 = __this->___m_CharacterCount_48;
NullCheck(L_468);
float L_470 = ((L_468)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_469)))->___baseLine_24;
V_90 = ((float)il2cpp_codegen_subtract(L_467, L_470));
float L_471 = __this->___m_MaxLineDescender_54;
float L_472 = V_90;
float L_473 = V_5;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_474 = ___generationSettings3;
NullCheck(L_474);
float L_475 = L_474->___lineSpacing_29;
float L_476 = __this->___m_LineSpacingDelta_83;
float L_477 = V_1;
V_6 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(((float)il2cpp_codegen_subtract((0.0f), L_471)), L_472)), ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(L_473, L_475)), L_476)), L_477))));
float L_478 = __this->___m_LineOffset_39;
float L_479 = V_6;
__this->___m_LineOffset_39 = ((float)il2cpp_codegen_add(L_478, L_479));
float L_480 = V_90;
__this->___m_StartOfLineAscender_82 = L_480;
goto IL_0ead;
}
IL_0e90:
{
float L_481 = __this->___m_LineOffset_39;
float L_482 = __this->___m_LineHeight_40;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_483 = ___generationSettings3;
NullCheck(L_483);
float L_484 = L_483->___lineSpacing_29;
float L_485 = V_1;
__this->___m_LineOffset_39 = ((float)il2cpp_codegen_add(L_481, ((float)il2cpp_codegen_add(L_482, ((float)il2cpp_codegen_multiply(L_484, L_485))))));
}
IL_0ead:
{
__this->___m_MaxLineAscender_53 = (-32767.0f);
__this->___m_MaxLineDescender_54 = (32767.0f);
float L_486 = __this->___m_TagIndent_45;
__this->___m_XAdvance_43 = ((float)il2cpp_codegen_add((0.0f), L_486));
goto IL_15d6;
}
IL_0eda:
{
bool L_487 = ___ignoreTextAutoSizing2;
if (L_487)
{
goto IL_0ee9;
}
}
{
float L_488 = ___defaultFontSize0;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_489 = ___generationSettings3;
NullCheck(L_489);
float L_490 = L_489->___fontSizeMin_20;
G_B160_0 = ((((float)L_488) > ((float)L_490))? 1 : 0);
goto IL_0eea;
}
IL_0ee9:
{
G_B160_0 = 0;
}
IL_0eea:
{
V_91 = (bool)G_B160_0;
bool L_491 = V_91;
if (!L_491)
{
goto IL_0fb7;
}
}
{
float L_492 = __this->___m_CharWidthAdjDelta_77;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_493 = ___generationSettings3;
NullCheck(L_493);
float L_494 = L_493->___charWidthMaxAdj_44;
V_92 = (bool)((((float)L_492) < ((float)((float)(L_494/(100.0f)))))? 1 : 0);
bool L_495 = V_92;
if (!L_495)
{
goto IL_0f3d;
}
}
{
__this->___m_RecursiveCount_102 = 0;
float L_496 = __this->___m_CharWidthAdjDelta_77;
__this->___m_CharWidthAdjDelta_77 = ((float)il2cpp_codegen_add(L_496, (0.00999999978f)));
float L_497 = ___defaultFontSize0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_498 = ___marginSize1;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_499 = ___generationSettings3;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_500 = ___textInfo4;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_501;
L_501 = VirtualFuncInvoker5< Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7, float, Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7, bool, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2*, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* >::Invoke(4 /* UnityEngine.Vector2 UnityEngine.TextCore.Text.TextGenerator::CalculatePreferredValues(System.Single,UnityEngine.Vector2,System.Boolean,UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo) */, __this, L_497, L_498, (bool)0, L_499, L_500);
V_21 = L_501;
goto IL_1799;
}
IL_0f3d:
{
float L_502 = ___defaultFontSize0;
__this->___m_MaxFontSize_79 = L_502;
float L_503 = ___defaultFontSize0;
float L_504 = ___defaultFontSize0;
float L_505 = __this->___m_MinFontSize_80;
float L_506;
L_506 = Mathf_Max_mA9DCA91E87D6D27034F56ABA52606A9090406016_inline(((float)(((float)il2cpp_codegen_subtract(L_504, L_505))/(2.0f))), (0.0500000007f), NULL);
___defaultFontSize0 = ((float)il2cpp_codegen_subtract(L_503, L_506));
float L_507 = ___defaultFontSize0;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_508 = ___generationSettings3;
NullCheck(L_508);
float L_509 = L_508->___fontSizeMin_20;
float L_510;
L_510 = Mathf_Max_mA9DCA91E87D6D27034F56ABA52606A9090406016_inline(L_507, L_509, NULL);
___defaultFontSize0 = ((float)(((float)il2cpp_codegen_cast_double_to_int<int32_t>(((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_510, (20.0f))), (0.5f)))))/(20.0f)));
int32_t L_511 = __this->___m_RecursiveCount_102;
V_93 = (bool)((((int32_t)L_511) > ((int32_t)((int32_t)20)))? 1 : 0);
bool L_512 = V_93;
if (!L_512)
{
goto IL_0fa3;
}
}
{
float L_513 = V_10;
float L_514 = V_11;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_515;
memset((&L_515), 0, sizeof(L_515));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_515), L_513, L_514, /*hidden argument*/NULL);
V_21 = L_515;
goto IL_1799;
}
IL_0fa3:
{
float L_516 = ___defaultFontSize0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_517 = ___marginSize1;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_518 = ___generationSettings3;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_519 = ___textInfo4;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_520;
L_520 = VirtualFuncInvoker5< Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7, float, Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7, bool, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2*, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* >::Invoke(4 /* UnityEngine.Vector2 UnityEngine.TextCore.Text.TextGenerator::CalculatePreferredValues(System.Single,UnityEngine.Vector2,System.Boolean,UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo) */, __this, L_516, L_517, (bool)0, L_518, L_519);
V_21 = L_520;
goto IL_1799;
}
IL_0fb7:
{
}
IL_0fb8:
{
}
IL_0fb9:
{
int32_t L_521 = __this->___m_LineNumber_55;
if ((((int32_t)L_521) <= ((int32_t)0)))
{
goto IL_0fed;
}
}
{
float L_522 = __this->___m_MaxLineAscender_53;
float L_523 = __this->___m_StartOfLineAscender_82;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
bool L_524;
L_524 = TextGeneratorUtilities_Approximately_m2333A8491C1BBC4F26738A240A7AA9E699508E6D(L_522, L_523, NULL);
if (L_524)
{
goto IL_0fed;
}
}
{
float L_525 = __this->___m_LineHeight_40;
if ((!(((float)L_525) == ((float)(-32767.0f)))))
{
goto IL_0fed;
}
}
{
bool L_526 = __this->___m_IsNewPage_66;
G_B173_0 = ((((int32_t)L_526) == ((int32_t)0))? 1 : 0);
goto IL_0fee;
}
IL_0fed:
{
G_B173_0 = 0;
}
IL_0fee:
{
V_94 = (bool)G_B173_0;
bool L_527 = V_94;
if (!L_527)
{
goto IL_103d;
}
}
{
float L_528 = __this->___m_MaxLineAscender_53;
float L_529 = __this->___m_StartOfLineAscender_82;
V_95 = ((float)il2cpp_codegen_subtract(L_528, L_529));
float L_530 = __this->___m_LineOffset_39;
float L_531 = V_95;
__this->___m_LineOffset_39 = ((float)il2cpp_codegen_add(L_530, L_531));
float L_532 = __this->___m_StartOfLineAscender_82;
float L_533 = V_95;
__this->___m_StartOfLineAscender_82 = ((float)il2cpp_codegen_add(L_532, L_533));
float L_534 = __this->___m_LineOffset_39;
(&V_16)->___lineOffset_26 = L_534;
float L_535 = __this->___m_StartOfLineAscender_82;
(&V_16)->___previousLineAscender_15 = L_535;
}
IL_103d:
{
int32_t L_536 = V_3;
V_96 = (bool)((((int32_t)L_536) == ((int32_t)((int32_t)9)))? 1 : 0);
bool L_537 = V_96;
if (!L_537)
{
goto IL_10a4;
}
}
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_538 = __this->___m_CurrentFontAsset_7;
NullCheck(L_538);
FaceInfo_t12F0319E555A62CBA1D9E51A16C7963393932756 L_539;
L_539 = FontAsset_get_faceInfo_mF020EC579E3C18A6279D55D86AF1C585031B49A9(L_538, NULL);
V_24 = L_539;
float L_540;
L_540 = FaceInfo_get_tabWidth_mC6D9F42C40EDD767DE22050E4FBE3878AC96B161((&V_24), NULL);
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_541 = __this->___m_CurrentFontAsset_7;
NullCheck(L_541);
uint8_t L_542;
L_542 = FontAsset_get_tabMultiple_m9C0422A00BFCF82091F14F4E303E2717247350AE(L_541, NULL);
float L_543 = V_2;
V_97 = ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_multiply(L_540, ((float)L_542))), L_543));
float L_544 = __this->___m_XAdvance_43;
float L_545 = V_97;
float L_546;
L_546 = ceilf(((float)(L_544/L_545)));
float L_547 = V_97;
V_98 = ((float)il2cpp_codegen_multiply(L_546, L_547));
float L_548 = V_98;
float L_549 = __this->___m_XAdvance_43;
G_B177_0 = __this;
if ((((float)L_548) > ((float)L_549)))
{
G_B178_0 = __this;
goto IL_1097;
}
}
{
float L_550 = __this->___m_XAdvance_43;
float L_551 = V_97;
G_B179_0 = ((float)il2cpp_codegen_add(L_550, L_551));
G_B179_1 = G_B177_0;
goto IL_1099;
}
IL_1097:
{
float L_552 = V_98;
G_B179_0 = L_552;
G_B179_1 = G_B178_0;
}
IL_1099:
{
NullCheck(G_B179_1);
G_B179_1->___m_XAdvance_43 = G_B179_0;
goto IL_11be;
}
IL_10a4:
{
float L_553 = __this->___m_MonoSpacing_42;
V_99 = (bool)((((int32_t)((((float)L_553) == ((float)(0.0f)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_554 = V_99;
if (!L_554)
{
goto IL_1131;
}
}
{
float L_555 = __this->___m_XAdvance_43;
float L_556 = __this->___m_MonoSpacing_42;
float L_557 = V_33;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_558 = ___generationSettings3;
NullCheck(L_558);
float L_559 = L_558->___characterSpacing_27;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_560 = __this->___m_CurrentFontAsset_7;
NullCheck(L_560);
float L_561;
L_561 = FontAsset_get_regularStyleSpacing_mB7EEEA236312F5AC31FD3B787808279206F521B1(L_560, NULL);
float L_562 = V_2;
float L_563 = __this->___m_CSpacing_41;
float L_564 = __this->___m_CharWidthAdjDelta_77;
__this->___m_XAdvance_43 = ((float)il2cpp_codegen_add(L_555, ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(((float)il2cpp_codegen_subtract(L_556, L_557)), ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_add(L_559, L_561)), L_562)))), L_563)), ((float)il2cpp_codegen_subtract((1.0f), L_564))))));
int32_t L_565 = V_3;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
bool L_566;
L_566 = Char_IsWhiteSpace_m9CE0F6685DB2502ABE106D160F95A287EFC07EF9(((int32_t)(uint16_t)L_565), NULL);
if (L_566)
{
goto IL_110e;
}
}
{
int32_t L_567 = V_3;
G_B184_0 = ((((int32_t)L_567) == ((int32_t)((int32_t)8203)))? 1 : 0);
goto IL_110f;
}
IL_110e:
{
G_B184_0 = 1;
}
IL_110f:
{
V_100 = (bool)G_B184_0;
bool L_568 = V_100;
if (!L_568)
{
goto IL_112b;
}
}
{
float L_569 = __this->___m_XAdvance_43;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_570 = ___generationSettings3;
NullCheck(L_570);
float L_571 = L_570->___wordSpacing_28;
float L_572 = V_2;
__this->___m_XAdvance_43 = ((float)il2cpp_codegen_add(L_569, ((float)il2cpp_codegen_multiply(L_571, L_572))));
}
IL_112b:
{
goto IL_11be;
}
IL_1131:
{
float L_573 = __this->___m_XAdvance_43;
TextElement_tCEF567A8810788262275B39DC39CBA6EBE7472DA* L_574 = __this->___m_CachedTextElement_75;
NullCheck(L_574);
Glyph_t700CF8EBE04ED4AEAB520885AAA1B309E02A103F* L_575;
L_575 = TextElement_get_glyph_m101DBCCA0CDE2461B504174272A2FFCD53EA59E2(L_574, NULL);
NullCheck(L_575);
GlyphMetrics_t6C1C65A891A6279A0EE807C436436B1E44F7AF1A L_576;
L_576 = Glyph_get_metrics_mB6E9D3D1899E35BA257638F6F58B7D260170B6FA(L_575, NULL);
V_51 = L_576;
float L_577;
L_577 = GlyphMetrics_get_horizontalAdvance_m110E66C340A19E672FB1C26DFB875AB6900AFFF1((&V_51), NULL);
float L_578 = V_4;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_579 = ___generationSettings3;
NullCheck(L_579);
float L_580 = L_579->___characterSpacing_27;
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_581 = __this->___m_CurrentFontAsset_7;
NullCheck(L_581);
float L_582;
L_582 = FontAsset_get_regularStyleSpacing_mB7EEEA236312F5AC31FD3B787808279206F521B1(L_581, NULL);
float L_583;
L_583 = GlyphValueRecord_get_xAdvance_m6C392027FA91E0705C1585C5EF40D984AAA0013E((&V_31), NULL);
float L_584 = V_2;
float L_585 = __this->___m_CSpacing_41;
float L_586 = __this->___m_CharWidthAdjDelta_77;
__this->___m_XAdvance_43 = ((float)il2cpp_codegen_add(L_573, ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_577, L_578)), L_580)), L_582)), L_583)), L_584)), L_585)), ((float)il2cpp_codegen_subtract((1.0f), L_586))))));
int32_t L_587 = V_3;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
bool L_588;
L_588 = Char_IsWhiteSpace_m9CE0F6685DB2502ABE106D160F95A287EFC07EF9(((int32_t)(uint16_t)L_587), NULL);
if (L_588)
{
goto IL_11a0;
}
}
{
int32_t L_589 = V_3;
G_B190_0 = ((((int32_t)L_589) == ((int32_t)((int32_t)8203)))? 1 : 0);
goto IL_11a1;
}
IL_11a0:
{
G_B190_0 = 1;
}
IL_11a1:
{
V_101 = (bool)G_B190_0;
bool L_590 = V_101;
if (!L_590)
{
goto IL_11bd;
}
}
{
float L_591 = __this->___m_XAdvance_43;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_592 = ___generationSettings3;
NullCheck(L_592);
float L_593 = L_592->___wordSpacing_28;
float L_594 = V_2;
__this->___m_XAdvance_43 = ((float)il2cpp_codegen_add(L_591, ((float)il2cpp_codegen_multiply(L_593, L_594))));
}
IL_11bd:
{
}
IL_11be:
{
int32_t L_595 = V_3;
V_102 = (bool)((((int32_t)L_595) == ((int32_t)((int32_t)13)))? 1 : 0);
bool L_596 = V_102;
if (!L_596)
{
goto IL_11f6;
}
}
{
float L_597 = V_7;
float L_598 = V_10;
float L_599 = __this->___m_XAdvance_43;
float L_600;
L_600 = Mathf_Max_mA9DCA91E87D6D27034F56ABA52606A9090406016_inline(L_597, ((float)il2cpp_codegen_add(L_598, L_599)), NULL);
V_7 = L_600;
V_10 = (0.0f);
float L_601 = __this->___m_TagIndent_45;
__this->___m_XAdvance_43 = ((float)il2cpp_codegen_add((0.0f), L_601));
}
IL_11f6:
{
int32_t L_602 = V_3;
if ((((int32_t)L_602) == ((int32_t)((int32_t)10))))
{
goto IL_1208;
}
}
{
int32_t L_603 = __this->___m_CharacterCount_48;
int32_t L_604 = V_0;
G_B198_0 = ((((int32_t)L_603) == ((int32_t)((int32_t)il2cpp_codegen_subtract(L_604, 1))))? 1 : 0);
goto IL_1209;
}
IL_1208:
{
G_B198_0 = 1;
}
IL_1209:
{
V_103 = (bool)G_B198_0;
bool L_605 = V_103;
if (!L_605)
{
goto IL_13f4;
}
}
{
int32_t L_606 = __this->___m_LineNumber_55;
if ((((int32_t)L_606) <= ((int32_t)0)))
{
goto IL_123e;
}
}
{
float L_607 = __this->___m_MaxLineAscender_53;
float L_608 = __this->___m_StartOfLineAscender_82;
il2cpp_codegen_runtime_class_init_inline(TextGeneratorUtilities_tAD0F329B1A5C7CC27CF63086C11FE092B43FED53_il2cpp_TypeInfo_var);
bool L_609;
L_609 = TextGeneratorUtilities_Approximately_m2333A8491C1BBC4F26738A240A7AA9E699508E6D(L_607, L_608, NULL);
if (L_609)
{
goto IL_123e;
}
}
{
float L_610 = __this->___m_LineHeight_40;
G_B203_0 = ((((float)L_610) == ((float)(-32767.0f)))? 1 : 0);
goto IL_123f;
}
IL_123e:
{
G_B203_0 = 0;
}
IL_123f:
{
V_105 = (bool)G_B203_0;
bool L_611 = V_105;
if (!L_611)
{
goto IL_1265;
}
}
{
float L_612 = __this->___m_MaxLineAscender_53;
float L_613 = __this->___m_StartOfLineAscender_82;
V_106 = ((float)il2cpp_codegen_subtract(L_612, L_613));
float L_614 = __this->___m_LineOffset_39;
float L_615 = V_106;
__this->___m_LineOffset_39 = ((float)il2cpp_codegen_add(L_614, L_615));
}
IL_1265:
{
float L_616 = __this->___m_MaxLineDescender_54;
float L_617 = __this->___m_LineOffset_39;
V_104 = ((float)il2cpp_codegen_subtract(L_616, L_617));
float L_618 = __this->___m_MaxDescender_65;
float L_619 = V_104;
G_B206_0 = __this;
if ((((float)L_618) < ((float)L_619)))
{
G_B207_0 = __this;
goto IL_1283;
}
}
{
float L_620 = V_104;
G_B208_0 = L_620;
G_B208_1 = G_B206_0;
goto IL_1289;
}
IL_1283:
{
float L_621 = __this->___m_MaxDescender_65;
G_B208_0 = L_621;
G_B208_1 = G_B207_0;
}
IL_1289:
{
NullCheck(G_B208_1);
G_B208_1->___m_MaxDescender_65 = G_B208_0;
int32_t L_622 = __this->___m_CharacterCount_48;
__this->___m_FirstCharacterOfLine_49 = ((int32_t)il2cpp_codegen_add(L_622, 1));
int32_t L_623 = V_3;
if ((!(((uint32_t)L_623) == ((uint32_t)((int32_t)10)))))
{
goto IL_12b1;
}
}
{
int32_t L_624 = __this->___m_CharacterCount_48;
int32_t L_625 = V_0;
G_B211_0 = ((((int32_t)((((int32_t)L_624) == ((int32_t)((int32_t)il2cpp_codegen_subtract(L_625, 1))))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_12b2;
}
IL_12b1:
{
G_B211_0 = 0;
}
IL_12b2:
{
V_107 = (bool)G_B211_0;
bool L_626 = V_107;
if (!L_626)
{
goto IL_12d1;
}
}
{
float L_627 = V_7;
float L_628 = V_10;
float L_629 = V_12;
float L_630;
L_630 = Mathf_Max_mA9DCA91E87D6D27034F56ABA52606A9090406016_inline(L_627, ((float)il2cpp_codegen_add(L_628, L_629)), NULL);
V_7 = L_630;
V_10 = (0.0f);
goto IL_12df;
}
IL_12d1:
{
float L_631 = V_7;
float L_632 = V_10;
float L_633 = V_12;
float L_634;
L_634 = Mathf_Max_mA9DCA91E87D6D27034F56ABA52606A9090406016_inline(L_631, ((float)il2cpp_codegen_add(L_632, L_633)), NULL);
V_10 = L_634;
}
IL_12df:
{
float L_635 = __this->___m_MaxAscender_64;
float L_636 = __this->___m_MaxDescender_65;
V_11 = ((float)il2cpp_codegen_subtract(L_635, L_636));
int32_t L_637 = V_3;
V_108 = (bool)((((int32_t)L_637) == ((int32_t)((int32_t)10)))? 1 : 0);
bool L_638 = V_108;
if (!L_638)
{
goto IL_13f3;
}
}
{
int32_t L_639 = V_26;
int32_t L_640 = __this->___m_CharacterCount_48;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_641 = ___textInfo4;
TextGenerator_SaveWordWrappingState_mC07B2C5977EECE10216F8C6AC9CC4204F7EF1936(__this, (&V_15), L_639, L_640, L_641, NULL);
int32_t L_642 = V_26;
int32_t L_643 = __this->___m_CharacterCount_48;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_644 = ___textInfo4;
TextGenerator_SaveWordWrappingState_mC07B2C5977EECE10216F8C6AC9CC4204F7EF1936(__this, (&V_16), L_642, L_643, L_644, NULL);
int32_t L_645 = __this->___m_LineNumber_55;
__this->___m_LineNumber_55 = ((int32_t)il2cpp_codegen_add(L_645, 1));
float L_646 = __this->___m_LineHeight_40;
V_109 = (bool)((((float)L_646) == ((float)(-32767.0f)))? 1 : 0);
bool L_647 = V_109;
if (!L_647)
{
goto IL_1384;
}
}
{
float L_648 = __this->___m_MaxLineDescender_54;
float L_649 = V_34;
float L_650 = V_5;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_651 = ___generationSettings3;
NullCheck(L_651);
float L_652 = L_651->___lineSpacing_29;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_653 = ___generationSettings3;
NullCheck(L_653);
float L_654 = L_653->___paragraphSpacing_30;
float L_655 = __this->___m_LineSpacingDelta_83;
float L_656 = V_1;
V_6 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(((float)il2cpp_codegen_subtract((0.0f), L_648)), L_649)), ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(((float)il2cpp_codegen_add(L_650, L_652)), L_654)), L_655)), L_656))));
float L_657 = __this->___m_LineOffset_39;
float L_658 = V_6;
__this->___m_LineOffset_39 = ((float)il2cpp_codegen_add(L_657, L_658));
goto IL_13a9;
}
IL_1384:
{
float L_659 = __this->___m_LineOffset_39;
float L_660 = __this->___m_LineHeight_40;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_661 = ___generationSettings3;
NullCheck(L_661);
float L_662 = L_661->___lineSpacing_29;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_663 = ___generationSettings3;
NullCheck(L_663);
float L_664 = L_663->___paragraphSpacing_30;
float L_665 = V_1;
__this->___m_LineOffset_39 = ((float)il2cpp_codegen_add(L_659, ((float)il2cpp_codegen_add(L_660, ((float)il2cpp_codegen_multiply(((float)il2cpp_codegen_add(L_662, L_664)), L_665))))));
}
IL_13a9:
{
__this->___m_MaxLineAscender_53 = (-32767.0f);
__this->___m_MaxLineDescender_54 = (32767.0f);
float L_666 = V_34;
__this->___m_StartOfLineAscender_82 = L_666;
float L_667 = __this->___m_TagLineIndent_44;
float L_668 = __this->___m_TagIndent_45;
__this->___m_XAdvance_43 = ((float)il2cpp_codegen_add(((float)il2cpp_codegen_add((0.0f), L_667)), L_668));
int32_t L_669 = __this->___m_CharacterCount_48;
__this->___m_CharacterCount_48 = ((int32_t)il2cpp_codegen_add(L_669, 1));
goto IL_15d6;
}
IL_13f3:
{
}
IL_13f4:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_670 = ___generationSettings3;
NullCheck(L_670);
bool L_671 = L_670->___wordWrap_12;
if (L_671)
{
goto IL_1413;
}
}
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_672 = ___generationSettings3;
NullCheck(L_672);
int32_t L_673 = L_672->___overflowMode_11;
if ((((int32_t)L_673) == ((int32_t)3)))
{
goto IL_1413;
}
}
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_674 = ___generationSettings3;
NullCheck(L_674);
int32_t L_675 = L_674->___overflowMode_11;
G_B224_0 = ((((int32_t)L_675) == ((int32_t)1))? 1 : 0);
goto IL_1414;
}
IL_1413:
{
G_B224_0 = 1;
}
IL_1414:
{
V_110 = (bool)G_B224_0;
bool L_676 = V_110;
if (!L_676)
{
goto IL_15c7;
}
}
{
int32_t L_677 = V_3;
il2cpp_codegen_runtime_class_init_inline(Char_t521A6F19B456D956AF452D926C32709DC03D6B17_il2cpp_TypeInfo_var);
bool L_678;
L_678 = Char_IsWhiteSpace_m9CE0F6685DB2502ABE106D160F95A287EFC07EF9(((int32_t)(uint16_t)L_677), NULL);
if (L_678)
{
goto IL_143c;
}
}
{
int32_t L_679 = V_3;
if ((((int32_t)L_679) == ((int32_t)((int32_t)8203))))
{
goto IL_143c;
}
}
{
int32_t L_680 = V_3;
if ((((int32_t)L_680) == ((int32_t)((int32_t)45))))
{
goto IL_143c;
}
}
{
int32_t L_681 = V_3;
if ((!(((uint32_t)L_681) == ((uint32_t)((int32_t)173)))))
{
goto IL_1469;
}
}
IL_143c:
{
bool L_682 = __this->___m_IsNonBreakingSpace_67;
if (L_682)
{
goto IL_1469;
}
}
{
int32_t L_683 = V_3;
if ((((int32_t)L_683) == ((int32_t)((int32_t)160))))
{
goto IL_1469;
}
}
{
int32_t L_684 = V_3;
if ((((int32_t)L_684) == ((int32_t)((int32_t)8209))))
{
goto IL_1469;
}
}
{
int32_t L_685 = V_3;
if ((((int32_t)L_685) == ((int32_t)((int32_t)8239))))
{
goto IL_1469;
}
}
{
int32_t L_686 = V_3;
G_B235_0 = ((((int32_t)((((int32_t)L_686) == ((int32_t)((int32_t)8288)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_146a;
}
IL_1469:
{
G_B235_0 = 0;
}
IL_146a:
{
V_111 = (bool)G_B235_0;
bool L_687 = V_111;
if (!L_687)
{
goto IL_1494;
}
}
{
int32_t L_688 = V_26;
int32_t L_689 = __this->___m_CharacterCount_48;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_690 = ___textInfo4;
TextGenerator_SaveWordWrappingState_mC07B2C5977EECE10216F8C6AC9CC4204F7EF1936(__this, (&V_16), L_688, L_689, L_690, NULL);
__this->___m_IsCharacterWrappingEnabled_81 = (bool)0;
V_13 = (bool)0;
goto IL_15c6;
}
IL_1494:
{
int32_t L_691 = V_3;
if ((((int32_t)L_691) <= ((int32_t)((int32_t)4352))))
{
goto IL_14a4;
}
}
{
int32_t L_692 = V_3;
if ((((int32_t)L_692) < ((int32_t)((int32_t)4607))))
{
goto IL_1504;
}
}
IL_14a4:
{
int32_t L_693 = V_3;
if ((((int32_t)L_693) <= ((int32_t)((int32_t)11904))))
{
goto IL_14b4;
}
}
{
int32_t L_694 = V_3;
if ((((int32_t)L_694) < ((int32_t)((int32_t)40959))))
{
goto IL_1504;
}
}
IL_14b4:
{
int32_t L_695 = V_3;
if ((((int32_t)L_695) <= ((int32_t)((int32_t)43360))))
{
goto IL_14c4;
}
}
{
int32_t L_696 = V_3;
if ((((int32_t)L_696) < ((int32_t)((int32_t)43391))))
{
goto IL_1504;
}
}
IL_14c4:
{
int32_t L_697 = V_3;
if ((((int32_t)L_697) <= ((int32_t)((int32_t)44032))))
{
goto IL_14d4;
}
}
{
int32_t L_698 = V_3;
if ((((int32_t)L_698) < ((int32_t)((int32_t)55295))))
{
goto IL_1504;
}
}
IL_14d4:
{
int32_t L_699 = V_3;
if ((((int32_t)L_699) <= ((int32_t)((int32_t)63744))))
{
goto IL_14e4;
}
}
{
int32_t L_700 = V_3;
if ((((int32_t)L_700) < ((int32_t)((int32_t)64255))))
{
goto IL_1504;
}
}
IL_14e4:
{
int32_t L_701 = V_3;
if ((((int32_t)L_701) <= ((int32_t)((int32_t)65072))))
{
goto IL_14f4;
}
}
{
int32_t L_702 = V_3;
if ((((int32_t)L_702) < ((int32_t)((int32_t)65103))))
{
goto IL_1504;
}
}
IL_14f4:
{
int32_t L_703 = V_3;
if ((((int32_t)L_703) <= ((int32_t)((int32_t)65280))))
{
goto IL_150f;
}
}
{
int32_t L_704 = V_3;
if ((((int32_t)L_704) >= ((int32_t)((int32_t)65519))))
{
goto IL_150f;
}
}
IL_1504:
{
bool L_705 = __this->___m_IsNonBreakingSpace_67;
G_B253_0 = ((((int32_t)L_705) == ((int32_t)0))? 1 : 0);
goto IL_1510;
}
IL_150f:
{
G_B253_0 = 0;
}
IL_1510:
{
V_112 = (bool)G_B253_0;
bool L_706 = V_112;
if (!L_706)
{
goto IL_159d;
}
}
{
bool L_707 = V_13;
bool L_708 = V_14;
if (((int32_t)((int32_t)L_707|(int32_t)L_708)))
{
goto IL_1574;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_709 = V_8;
NullCheck(L_709);
UnicodeLineBreakingRules_t80BE36F5E16AE48FE7B6DE1C91D36B1142B4EC0E* L_710;
L_710 = TextSettings_get_lineBreakingRules_m96E2C32D4F08309D904B0BCD83CEBE8CD6716A04(L_709, NULL);
NullCheck(L_710);
HashSet_1_t5DD20B42149A11AEBF12A75505306E6EFC34943A* L_711;
L_711 = UnicodeLineBreakingRules_get_leadingCharactersLookup_m1DAC015D7E37112EAE0437E6472AEA0719DFF3DC(L_710, NULL);
int32_t L_712 = V_3;
NullCheck(L_711);
bool L_713;
L_713 = HashSet_1_Contains_m02385B663B65E53485251FFFD116D0F26BA172B9(L_711, L_712, HashSet_1_Contains_m02385B663B65E53485251FFFD116D0F26BA172B9_RuntimeMethod_var);
if (L_713)
{
goto IL_1571;
}
}
{
int32_t L_714 = __this->___m_CharacterCount_48;
int32_t L_715 = V_0;
if ((((int32_t)L_714) >= ((int32_t)((int32_t)il2cpp_codegen_subtract(L_715, 1)))))
{
goto IL_156e;
}
}
{
TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* L_716 = V_8;
NullCheck(L_716);
UnicodeLineBreakingRules_t80BE36F5E16AE48FE7B6DE1C91D36B1142B4EC0E* L_717;
L_717 = TextSettings_get_lineBreakingRules_m96E2C32D4F08309D904B0BCD83CEBE8CD6716A04(L_716, NULL);
NullCheck(L_717);
HashSet_1_t5DD20B42149A11AEBF12A75505306E6EFC34943A* L_718;
L_718 = UnicodeLineBreakingRules_get_followingCharactersLookup_m5510A21873DC5DA66F4A2DFA4C26A5EFAD494D8B(L_717, NULL);
TextElementInfoU5BU5D_tEC28C9B72883EE21AA798913497C69E179A15C4E* L_719 = __this->___m_InternalTextElementInfo_101;
int32_t L_720 = __this->___m_CharacterCount_48;
NullCheck(L_719);
Il2CppChar L_721 = ((L_719)->GetAddressAt(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add(L_720, 1)))))->___character_0;
NullCheck(L_718);
bool L_722;
L_722 = HashSet_1_Contains_m02385B663B65E53485251FFFD116D0F26BA172B9(L_718, L_721, HashSet_1_Contains_m02385B663B65E53485251FFFD116D0F26BA172B9_RuntimeMethod_var);
G_B259_0 = ((((int32_t)L_722) == ((int32_t)0))? 1 : 0);
goto IL_156f;
}
IL_156e:
{
G_B259_0 = 0;
}
IL_156f:
{
G_B261_0 = G_B259_0;
goto IL_1572;
}
IL_1571:
{
G_B261_0 = 0;
}
IL_1572:
{
G_B263_0 = G_B261_0;
goto IL_1575;
}
IL_1574:
{
G_B263_0 = 1;
}
IL_1575:
{
V_113 = (bool)G_B263_0;
bool L_723 = V_113;
if (!L_723)
{
goto IL_159a;
}
}
{
int32_t L_724 = V_26;
int32_t L_725 = __this->___m_CharacterCount_48;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_726 = ___textInfo4;
TextGenerator_SaveWordWrappingState_mC07B2C5977EECE10216F8C6AC9CC4204F7EF1936(__this, (&V_16), L_724, L_725, L_726, NULL);
__this->___m_IsCharacterWrappingEnabled_81 = (bool)0;
V_13 = (bool)0;
}
IL_159a:
{
goto IL_15c6;
}
IL_159d:
{
bool L_727 = V_13;
if (L_727)
{
goto IL_15a9;
}
}
{
bool L_728 = __this->___m_IsCharacterWrappingEnabled_81;
G_B269_0 = ((int32_t)(L_728));
goto IL_15aa;
}
IL_15a9:
{
G_B269_0 = 1;
}
IL_15aa:
{
bool L_729 = V_14;
V_114 = (bool)((int32_t)(G_B269_0|(int32_t)L_729));
bool L_730 = V_114;
if (!L_730)
{
goto IL_15c6;
}
}
{
int32_t L_731 = V_26;
int32_t L_732 = __this->___m_CharacterCount_48;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_733 = ___textInfo4;
TextGenerator_SaveWordWrappingState_mC07B2C5977EECE10216F8C6AC9CC4204F7EF1936(__this, (&V_16), L_731, L_732, L_733, NULL);
}
IL_15c6:
{
}
IL_15c7:
{
int32_t L_734 = __this->___m_CharacterCount_48;
__this->___m_CharacterCount_48 = ((int32_t)il2cpp_codegen_add(L_734, 1));
}
IL_15d6:
{
int32_t L_735 = V_26;
V_26 = ((int32_t)il2cpp_codegen_add(L_735, 1));
}
IL_15dc:
{
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_736 = __this->___m_CharBuffer_4;
int32_t L_737 = V_26;
NullCheck(L_736);
int32_t L_738 = L_737;
int32_t L_739 = (L_736)->GetAt(static_cast<il2cpp_array_size_t>(L_738));
V_115 = (bool)((!(((uint32_t)L_739) <= ((uint32_t)0)))? 1 : 0);
bool L_740 = V_115;
if (L_740)
{
goto IL_030e;
}
}
{
float L_741 = __this->___m_MaxFontSize_79;
float L_742 = __this->___m_MinFontSize_80;
V_19 = ((float)il2cpp_codegen_subtract(L_741, L_742));
bool L_743 = __this->___m_IsCharacterWrappingEnabled_81;
if (L_743)
{
goto IL_1620;
}
}
{
bool L_744 = ___ignoreTextAutoSizing2;
if (L_744)
{
goto IL_1620;
}
}
{
float L_745 = V_19;
if ((!(((float)L_745) > ((float)(0.050999999f)))))
{
goto IL_1620;
}
}
{
float L_746 = ___defaultFontSize0;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_747 = ___generationSettings3;
NullCheck(L_747);
float L_748 = L_747->___fontSizeMax_21;
G_B280_0 = ((((float)L_746) < ((float)L_748))? 1 : 0);
goto IL_1621;
}
IL_1620:
{
G_B280_0 = 0;
}
IL_1621:
{
V_116 = (bool)G_B280_0;
bool L_749 = V_116;
if (!L_749)
{
goto IL_16a2;
}
}
{
float L_750 = ___defaultFontSize0;
__this->___m_MinFontSize_80 = L_750;
float L_751 = ___defaultFontSize0;
float L_752 = __this->___m_MaxFontSize_79;
float L_753 = ___defaultFontSize0;
float L_754;
L_754 = Mathf_Max_mA9DCA91E87D6D27034F56ABA52606A9090406016_inline(((float)(((float)il2cpp_codegen_subtract(L_752, L_753))/(2.0f))), (0.0500000007f), NULL);
___defaultFontSize0 = ((float)il2cpp_codegen_add(L_751, L_754));
float L_755 = ___defaultFontSize0;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_756 = ___generationSettings3;
NullCheck(L_756);
float L_757 = L_756->___fontSizeMax_21;
float L_758;
L_758 = Mathf_Min_m4F2A9C5128DC3F9E84865EE7ADA8DB5DA6B8B507_inline(L_755, L_757, NULL);
___defaultFontSize0 = ((float)(((float)il2cpp_codegen_cast_double_to_int<int32_t>(((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_758, (20.0f))), (0.5f)))))/(20.0f)));
int32_t L_759 = __this->___m_RecursiveCount_102;
V_117 = (bool)((((int32_t)L_759) > ((int32_t)((int32_t)20)))? 1 : 0);
bool L_760 = V_117;
if (!L_760)
{
goto IL_168e;
}
}
{
float L_761 = V_10;
float L_762 = V_11;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_763;
memset((&L_763), 0, sizeof(L_763));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_763), L_761, L_762, /*hidden argument*/NULL);
V_21 = L_763;
goto IL_1799;
}
IL_168e:
{
float L_764 = ___defaultFontSize0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_765 = ___marginSize1;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_766 = ___generationSettings3;
TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* L_767 = ___textInfo4;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_768;
L_768 = VirtualFuncInvoker5< Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7, float, Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7, bool, TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2*, TextInfo_t27E58E62A7552C66D38C175AF9D22622365F5D09* >::Invoke(4 /* UnityEngine.Vector2 UnityEngine.TextCore.Text.TextGenerator::CalculatePreferredValues(System.Single,UnityEngine.Vector2,System.Boolean,UnityEngine.TextCore.Text.TextGenerationSettings,UnityEngine.TextCore.Text.TextInfo) */, __this, L_764, L_765, (bool)0, L_766, L_767);
V_21 = L_768;
goto IL_1799;
}
IL_16a2:
{
__this->___m_IsCharacterWrappingEnabled_81 = (bool)0;
__this->___m_IsCalculatingPreferredValues_94 = (bool)0;
float L_769 = V_10;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_770 = ___generationSettings3;
NullCheck(L_770);
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3* L_771 = (&L_770->___margins_2);
float L_772 = L_771->___x_1;
G_B285_0 = L_769;
if ((((float)L_772) > ((float)(0.0f))))
{
G_B286_0 = L_769;
goto IL_16cc;
}
}
{
G_B287_0 = (0.0f);
G_B287_1 = G_B285_0;
goto IL_16d8;
}
IL_16cc:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_773 = ___generationSettings3;
NullCheck(L_773);
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3* L_774 = (&L_773->___margins_2);
float L_775 = L_774->___x_1;
G_B287_0 = L_775;
G_B287_1 = G_B286_0;
}
IL_16d8:
{
V_10 = ((float)il2cpp_codegen_add(G_B287_1, G_B287_0));
float L_776 = V_10;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_777 = ___generationSettings3;
NullCheck(L_777);
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3* L_778 = (&L_777->___margins_2);
float L_779 = L_778->___z_3;
G_B288_0 = L_776;
if ((((float)L_779) > ((float)(0.0f))))
{
G_B289_0 = L_776;
goto IL_16f7;
}
}
{
G_B290_0 = (0.0f);
G_B290_1 = G_B288_0;
goto IL_1703;
}
IL_16f7:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_780 = ___generationSettings3;
NullCheck(L_780);
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3* L_781 = (&L_780->___margins_2);
float L_782 = L_781->___z_3;
G_B290_0 = L_782;
G_B290_1 = G_B289_0;
}
IL_1703:
{
V_10 = ((float)il2cpp_codegen_add(G_B290_1, G_B290_0));
float L_783 = V_11;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_784 = ___generationSettings3;
NullCheck(L_784);
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3* L_785 = (&L_784->___margins_2);
float L_786 = L_785->___y_2;
G_B291_0 = L_783;
if ((((float)L_786) > ((float)(0.0f))))
{
G_B292_0 = L_783;
goto IL_1722;
}
}
{
G_B293_0 = (0.0f);
G_B293_1 = G_B291_0;
goto IL_172e;
}
IL_1722:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_787 = ___generationSettings3;
NullCheck(L_787);
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3* L_788 = (&L_787->___margins_2);
float L_789 = L_788->___y_2;
G_B293_0 = L_789;
G_B293_1 = G_B292_0;
}
IL_172e:
{
V_11 = ((float)il2cpp_codegen_add(G_B293_1, G_B293_0));
float L_790 = V_11;
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_791 = ___generationSettings3;
NullCheck(L_791);
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3* L_792 = (&L_791->___margins_2);
float L_793 = L_792->___w_4;
G_B294_0 = L_790;
if ((((float)L_793) > ((float)(0.0f))))
{
G_B295_0 = L_790;
goto IL_174d;
}
}
{
G_B296_0 = (0.0f);
G_B296_1 = G_B294_0;
goto IL_1759;
}
IL_174d:
{
TextGenerationSettings_t3E75DB1D14DF53934AF76C9ACB1CD94A344A92A2* L_794 = ___generationSettings3;
NullCheck(L_794);
Vector4_t58B63D32F48C0DBF50DE2C60794C4676C80EDBE3* L_795 = (&L_794->___margins_2);
float L_796 = L_795->___w_4;
G_B296_0 = L_796;
G_B296_1 = G_B295_0;
}
IL_1759:
{
V_11 = ((float)il2cpp_codegen_add(G_B296_1, G_B296_0));
float L_797 = V_10;
V_10 = ((float)(((float)il2cpp_codegen_cast_double_to_int<int32_t>(((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_797, (100.0f))), (1.0f)))))/(100.0f)));
float L_798 = V_11;
V_11 = ((float)(((float)il2cpp_codegen_cast_double_to_int<int32_t>(((float)il2cpp_codegen_add(((float)il2cpp_codegen_multiply(L_798, (100.0f))), (1.0f)))))/(100.0f)));
float L_799 = V_10;
float L_800 = V_11;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_801;
memset((&L_801), 0, sizeof(L_801));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_801), L_799, L_800, /*hidden argument*/NULL);
V_21 = L_801;
goto IL_1799;
}
IL_1799:
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_802 = V_21;
return L_802;
}
}
// System.Void UnityEngine.TextCore.Text.TextGenerator::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextGenerator__ctor_m52E4D01DC28BDF753BF52F6501E7FD2FB2B30D90 (TextGenerator_t6B84DC798596D3A9944DC346DD453C075EE62366* __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Dictionary_2__ctor_m712893C2C48C47CCAFAD85A865C702E8D3D2B71F_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&RichTextTagAttributeU5BU5D_tEE9D071B3246F23742DBF4226567620BCBB24A14_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextColorGradientU5BU5D_tA27A5E49640CF01334A10DBDBC959903AFBD941A_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1__ctor_m21F67B4043E233F8CA9797CEAEBF75AA44923E95_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1__ctor_m445613CACF63BB93528D0DF6A4806B721690BEA3_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1__ctor_m46C659E94F74B5690AC0A547430C8D3387000CEC_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1__ctor_m51ECDDF2DCADEB66EED067F383D94ADCCFE61782_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1__ctor_m711FBEB05216B8B7683BAF106DC2CA519C2986EF_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1__ctor_m8D925AB632D621F377352A263B090EF1689AB7D6_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1__ctor_mA4B25FA7163EB1A1804D7F9C4BB50D078CC1F9EE_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TextProcessingStack_1__ctor_mE29F1CB516B3C52016997ECCBF3769B1FE98336A_RuntimeMethod_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&UInt32U5BU5D_t02FBD658AD156A17574ECE6106CF1FBFCC9807FA_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C_il2cpp_TypeInfo_var);
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
{
Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C* L_0 = (Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C*)(Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C*)SZArrayNew(Vector3U5BU5D_tFF1859CCE176131B909E2044F76443064254679C_il2cpp_TypeInfo_var, (uint32_t)4);
__this->___m_RectTransformCorners_1 = L_0;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_RectTransformCorners_1), (void*)L_0);
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_1 = (Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)SZArrayNew(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var, (uint32_t)8);
__this->___m_CharBuffer_4 = L_1;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_CharBuffer_4), (void*)L_1);
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_2 = (MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E*)(MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E*)SZArrayNew(MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E_il2cpp_TypeInfo_var, (uint32_t)((int32_t)16));
TextProcessingStack_1_t0C74606C1B6C7817CA95F0DCA46B219CF6FB35CA L_3;
memset((&L_3), 0, sizeof(L_3));
TextProcessingStack_1__ctor_m8D925AB632D621F377352A263B090EF1689AB7D6((&L_3), L_2, /*hidden argument*/TextProcessingStack_1__ctor_m8D925AB632D621F377352A263B090EF1689AB7D6_RuntimeMethod_var);
__this->___m_MaterialReferenceStack_10 = L_3;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_MaterialReferenceStack_10))->___itemStack_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&__this->___m_MaterialReferenceStack_10))->___m_DefaultItem_2))->___fontAsset_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&__this->___m_MaterialReferenceStack_10))->___m_DefaultItem_2))->___spriteAsset_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&__this->___m_MaterialReferenceStack_10))->___m_DefaultItem_2))->___material_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&__this->___m_MaterialReferenceStack_10))->___m_DefaultItem_2))->___fallbackMaterial_6), (void*)NULL);
#endif
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 L_4;
memset((&L_4), 0, sizeof(L_4));
TextProcessingStack_1__ctor_m51ECDDF2DCADEB66EED067F383D94ADCCFE61782((&L_4), ((int32_t)16), /*hidden argument*/TextProcessingStack_1__ctor_m51ECDDF2DCADEB66EED067F383D94ADCCFE61782_RuntimeMethod_var);
__this->___m_SizeStack_18 = L_4;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_SizeStack_18))->___itemStack_0), (void*)NULL);
__this->___m_FontStyleInternal_19 = 0;
__this->___m_FontWeightInternal_21 = ((int32_t)400);
TextProcessingStack_1_t698B87CDD968C2046F57134BB3AB807EBFFD7790 L_5;
memset((&L_5), 0, sizeof(L_5));
TextProcessingStack_1__ctor_mE29F1CB516B3C52016997ECCBF3769B1FE98336A((&L_5), 8, /*hidden argument*/TextProcessingStack_1__ctor_mE29F1CB516B3C52016997ECCBF3769B1FE98336A_RuntimeMethod_var);
__this->___m_FontWeightStack_22 = L_5;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_FontWeightStack_22))->___itemStack_0), (void*)NULL);
TextProcessingStack_1_tE63296B08A4C34E38D7EF3FFFA3470076B9E3A0F L_6;
memset((&L_6), 0, sizeof(L_6));
TextProcessingStack_1__ctor_m21F67B4043E233F8CA9797CEAEBF75AA44923E95((&L_6), ((int32_t)16), /*hidden argument*/TextProcessingStack_1__ctor_m21F67B4043E233F8CA9797CEAEBF75AA44923E95_RuntimeMethod_var);
__this->___m_LineJustificationStack_24 = L_6;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_LineJustificationStack_24))->___itemStack_0), (void*)NULL);
SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C* L_7 = (SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C*)(SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C*)SZArrayNew(SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C_il2cpp_TypeInfo_var, (uint32_t)((int32_t)16));
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 L_8;
memset((&L_8), 0, sizeof(L_8));
TextProcessingStack_1__ctor_m711FBEB05216B8B7683BAF106DC2CA519C2986EF((&L_8), L_7, /*hidden argument*/TextProcessingStack_1__ctor_m711FBEB05216B8B7683BAF106DC2CA519C2986EF_RuntimeMethod_var);
__this->___m_BaselineOffsetStack_26 = L_8;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_BaselineOffsetStack_26))->___itemStack_0), (void*)NULL);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_9 = (Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259*)(Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259*)SZArrayNew(Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259_il2cpp_TypeInfo_var, (uint32_t)((int32_t)16));
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 L_10;
memset((&L_10), 0, sizeof(L_10));
TextProcessingStack_1__ctor_m445613CACF63BB93528D0DF6A4806B721690BEA3((&L_10), L_9, /*hidden argument*/TextProcessingStack_1__ctor_m445613CACF63BB93528D0DF6A4806B721690BEA3_RuntimeMethod_var);
__this->___m_ColorStack_31 = L_10;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_ColorStack_31))->___itemStack_0), (void*)NULL);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_11 = (Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259*)(Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259*)SZArrayNew(Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259_il2cpp_TypeInfo_var, (uint32_t)((int32_t)16));
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 L_12;
memset((&L_12), 0, sizeof(L_12));
TextProcessingStack_1__ctor_m445613CACF63BB93528D0DF6A4806B721690BEA3((&L_12), L_11, /*hidden argument*/TextProcessingStack_1__ctor_m445613CACF63BB93528D0DF6A4806B721690BEA3_RuntimeMethod_var);
__this->___m_UnderlineColorStack_32 = L_12;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_UnderlineColorStack_32))->___itemStack_0), (void*)NULL);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_13 = (Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259*)(Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259*)SZArrayNew(Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259_il2cpp_TypeInfo_var, (uint32_t)((int32_t)16));
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 L_14;
memset((&L_14), 0, sizeof(L_14));
TextProcessingStack_1__ctor_m445613CACF63BB93528D0DF6A4806B721690BEA3((&L_14), L_13, /*hidden argument*/TextProcessingStack_1__ctor_m445613CACF63BB93528D0DF6A4806B721690BEA3_RuntimeMethod_var);
__this->___m_StrikethroughColorStack_33 = L_14;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_StrikethroughColorStack_33))->___itemStack_0), (void*)NULL);
Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259* L_15 = (Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259*)(Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259*)SZArrayNew(Color32U5BU5D_t38116C3E91765C4C5726CE12C77FAD7F9F737259_il2cpp_TypeInfo_var, (uint32_t)((int32_t)16));
TextProcessingStack_1_t7868E818AC1E1B5FED21B76D5C309C9A04380B63 L_16;
memset((&L_16), 0, sizeof(L_16));
TextProcessingStack_1__ctor_m445613CACF63BB93528D0DF6A4806B721690BEA3((&L_16), L_15, /*hidden argument*/TextProcessingStack_1__ctor_m445613CACF63BB93528D0DF6A4806B721690BEA3_RuntimeMethod_var);
__this->___m_HighlightColorStack_34 = L_16;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_HighlightColorStack_34))->___itemStack_0), (void*)NULL);
TextColorGradientU5BU5D_tA27A5E49640CF01334A10DBDBC959903AFBD941A* L_17 = (TextColorGradientU5BU5D_tA27A5E49640CF01334A10DBDBC959903AFBD941A*)(TextColorGradientU5BU5D_tA27A5E49640CF01334A10DBDBC959903AFBD941A*)SZArrayNew(TextColorGradientU5BU5D_tA27A5E49640CF01334A10DBDBC959903AFBD941A_il2cpp_TypeInfo_var, (uint32_t)((int32_t)16));
TextProcessingStack_1_t0F39F088E8F8F6E18C3C463B2998ADC5B7A0513E L_18;
memset((&L_18), 0, sizeof(L_18));
TextProcessingStack_1__ctor_mA4B25FA7163EB1A1804D7F9C4BB50D078CC1F9EE((&L_18), L_17, /*hidden argument*/TextProcessingStack_1__ctor_mA4B25FA7163EB1A1804D7F9C4BB50D078CC1F9EE_RuntimeMethod_var);
__this->___m_ColorGradientStack_36 = L_18;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_ColorGradientStack_36))->___itemStack_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_ColorGradientStack_36))->___m_DefaultItem_2), (void*)NULL);
#endif
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_19 = (Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)SZArrayNew(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var, (uint32_t)((int32_t)16));
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8 L_20;
memset((&L_20), 0, sizeof(L_20));
TextProcessingStack_1__ctor_m46C659E94F74B5690AC0A547430C8D3387000CEC((&L_20), L_19, /*hidden argument*/TextProcessingStack_1__ctor_m46C659E94F74B5690AC0A547430C8D3387000CEC_RuntimeMethod_var);
__this->___m_ActionStack_37 = L_20;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_ActionStack_37))->___itemStack_0), (void*)NULL);
SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C* L_21 = (SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C*)(SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C*)SZArrayNew(SingleU5BU5D_t89DEFE97BCEDB5857010E79ECE0F52CF6E93B87C_il2cpp_TypeInfo_var, (uint32_t)((int32_t)16));
TextProcessingStack_1_t9FC06E35259ADD291ED640FE7554D8C03EA5F555 L_22;
memset((&L_22), 0, sizeof(L_22));
TextProcessingStack_1__ctor_m711FBEB05216B8B7683BAF106DC2CA519C2986EF((&L_22), L_21, /*hidden argument*/TextProcessingStack_1__ctor_m711FBEB05216B8B7683BAF106DC2CA519C2986EF_RuntimeMethod_var);
__this->___m_IndentStack_46 = L_22;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_IndentStack_46))->___itemStack_0), (void*)NULL);
MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E* L_23 = (MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E*)(MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E*)SZArrayNew(MaterialReferenceU5BU5D_t4A9B88114E223BD96CE5121053664023CE2DE07E_il2cpp_TypeInfo_var, (uint32_t)8);
__this->___m_MaterialReferences_85 = L_23;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_MaterialReferences_85), (void*)L_23);
__this->___m_SpriteCount_86 = 0;
Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C* L_24 = (Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C*)SZArrayNew(Int32U5BU5D_t19C97395396A72ECAF310612F0760F165060314C_il2cpp_TypeInfo_var, (uint32_t)((int32_t)16));
TextProcessingStack_1_t27834AAB14D26DC6519558C4C2574BA9C190D8E8 L_25;
memset((&L_25), 0, sizeof(L_25));
TextProcessingStack_1__ctor_m46C659E94F74B5690AC0A547430C8D3387000CEC((&L_25), L_24, /*hidden argument*/TextProcessingStack_1__ctor_m46C659E94F74B5690AC0A547430C8D3387000CEC_RuntimeMethod_var);
__this->___m_StyleStack_87 = L_25;
Il2CppCodeGenWriteBarrier((void**)&(((&__this->___m_StyleStack_87))->___itemStack_0), (void*)NULL);
UInt32U5BU5D_t02FBD658AD156A17574ECE6106CF1FBFCC9807FA* L_26 = (UInt32U5BU5D_t02FBD658AD156A17574ECE6106CF1FBFCC9807FA*)(UInt32U5BU5D_t02FBD658AD156A17574ECE6106CF1FBFCC9807FA*)SZArrayNew(UInt32U5BU5D_t02FBD658AD156A17574ECE6106CF1FBFCC9807FA_il2cpp_TypeInfo_var, (uint32_t)((int32_t)256));
__this->___m_InternalTextParsingBuffer_89 = L_26;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_InternalTextParsingBuffer_89), (void*)L_26);
RichTextTagAttributeU5BU5D_tEE9D071B3246F23742DBF4226567620BCBB24A14* L_27 = (RichTextTagAttributeU5BU5D_tEE9D071B3246F23742DBF4226567620BCBB24A14*)(RichTextTagAttributeU5BU5D_tEE9D071B3246F23742DBF4226567620BCBB24A14*)SZArrayNew(RichTextTagAttributeU5BU5D_tEE9D071B3246F23742DBF4226567620BCBB24A14_il2cpp_TypeInfo_var, (uint32_t)8);
__this->___m_Attributes_90 = L_27;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_Attributes_90), (void*)L_27);
XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2* L_28 = (XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2*)(XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2*)SZArrayNew(XmlTagAttributeU5BU5D_tEDFE75BDDC81D11CEA2F2A12583516D3BFB309B2_il2cpp_TypeInfo_var, (uint32_t)8);
__this->___m_XmlAttribute_91 = L_28;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_XmlAttribute_91), (void*)L_28);
CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB* L_29 = (CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB*)(CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB*)SZArrayNew(CharU5BU5D_t799905CF001DD5F13F7DBB310181FC4D8B7D0AAB_il2cpp_TypeInfo_var, (uint32_t)((int32_t)128));
__this->___m_RichTextTag_92 = L_29;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_RichTextTag_92), (void*)L_29);
Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180* L_30 = (Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180*)il2cpp_codegen_object_new(Dictionary_2_tABE19B9C5C52F1DE14F0D3287B2696E7D7419180_il2cpp_TypeInfo_var);
NullCheck(L_30);
Dictionary_2__ctor_m712893C2C48C47CCAFAD85A865C702E8D3D2B71F(L_30, Dictionary_2__ctor_m712893C2C48C47CCAFAD85A865C702E8D3D2B71F_RuntimeMethod_var);
__this->___m_MaterialReferenceIndexLookup_93 = L_30;
Il2CppCodeGenWriteBarrier((void**)(&__this->___m_MaterialReferenceIndexLookup_93), (void*)L_30);
Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2(__this, NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7* __this, float ___x0, float ___y1, const RuntimeMethod* method)
{
{
float L_0 = ___x0;
__this->___x_0 = L_0;
float L_1 = ___y1;
__this->___y_1 = L_1;
return;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 Vector2_op_Addition_m704B5B98EAFE885978381E21B7F89D9DF83C2A60_inline (Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___a0, Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 ___b1, const RuntimeMethod* method)
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_0;
memset((&V_0), 0, sizeof(V_0));
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_0 = ___a0;
float L_1 = L_0.___x_0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_2 = ___b1;
float L_3 = L_2.___x_0;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_4 = ___a0;
float L_5 = L_4.___y_1;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_6 = ___b1;
float L_7 = L_6.___y_1;
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_8;
memset((&L_8), 0, sizeof(L_8));
Vector2__ctor_m9525B79969AFFE3254B303A40997A56DEEB6F548_inline((&L_8), ((float)il2cpp_codegen_add(L_1, L_3)), ((float)il2cpp_codegen_add(L_5, L_7)), /*hidden argument*/NULL);
V_0 = L_8;
goto IL_0023;
}
IL_0023:
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_9 = V_0;
return L_9;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 Vector2_get_zero_m009B92B5D35AB02BD1610C2E1ACCE7C9CF964A6E_inline (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 V_0;
memset((&V_0), 0, sizeof(V_0));
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_0 = ((Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7_StaticFields*)il2cpp_codegen_static_fields_for(Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7_il2cpp_TypeInfo_var))->___zeroVector_2;
V_0 = L_0;
goto IL_0009;
}
IL_0009:
{
Vector2_t1FD6F485C871E832B347AB2DC8CBA08B739D8DF7 L_1 = V_0;
return L_1;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float Mathf_Clamp_m154E404AF275A3B2EC99ECAA3879B4CB9F0606DC_inline (float ___value0, float ___min1, float ___max2, const RuntimeMethod* method)
{
bool V_0 = false;
bool V_1 = false;
float V_2 = 0.0f;
{
float L_0 = ___value0;
float L_1 = ___min1;
V_0 = (bool)((((float)L_0) < ((float)L_1))? 1 : 0);
bool L_2 = V_0;
if (!L_2)
{
goto IL_000e;
}
}
{
float L_3 = ___min1;
___value0 = L_3;
goto IL_0019;
}
IL_000e:
{
float L_4 = ___value0;
float L_5 = ___max2;
V_1 = (bool)((((float)L_4) > ((float)L_5))? 1 : 0);
bool L_6 = V_1;
if (!L_6)
{
goto IL_0019;
}
}
{
float L_7 = ___max2;
___value0 = L_7;
}
IL_0019:
{
float L_8 = ___value0;
V_2 = L_8;
goto IL_001d;
}
IL_001d:
{
float L_9 = V_2;
return L_9;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR String_t* TextSettings_get_defaultFontAssetPath_mF7B1713753CFAE048C745C3572332CE18CD51D3B_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method)
{
{
String_t* L_0 = __this->___m_DefaultFontAssetPath_6;
return L_0;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* TextAsset_get_material_m4B9C02D34426436FDB01F1963A9FDC11D75604EF_inline (TextAsset_tB28F1843A877CCA74B89DC4F63EA532618B049B8* __this, const RuntimeMethod* method)
{
{
Material_t18053F08F347D0DCA5E1140EC7EC4533DD8A14E3* L_0 = __this->___m_Material_7;
return L_0;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color_get_red_m27D04C1E5FE794AD933B7B9364F3D34B9EA25109_inline (const RuntimeMethod* method)
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F V_0;
memset((&V_0), 0, sizeof(V_0));
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_0;
memset((&L_0), 0, sizeof(L_0));
Color__ctor_m3786F0D6E510D9CFA544523A955870BD2A514C8C_inline((&L_0), (1.0f), (0.0f), (0.0f), (1.0f), /*hidden argument*/NULL);
V_0 = L_0;
goto IL_001d;
}
IL_001d:
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_1 = V_0;
return L_1;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B Color32_op_Implicit_m7EFA0B83AD1AE15567E9BC2FA2B8E66D3BFE1395_inline (Color_tD001788D726C3A7F1379BEED0260B9591F440C1F ___c0, const RuntimeMethod* method)
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B V_0;
memset((&V_0), 0, sizeof(V_0));
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_0 = ___c0;
float L_1 = L_0.___r_0;
float L_2;
L_2 = Mathf_Clamp01_mD921B23F47F5347996C56DC789D1DE16EE27D9B1_inline(L_1, NULL);
float L_3;
L_3 = bankers_roundf(((float)il2cpp_codegen_multiply(L_2, (255.0f))));
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_4 = ___c0;
float L_5 = L_4.___g_1;
float L_6;
L_6 = Mathf_Clamp01_mD921B23F47F5347996C56DC789D1DE16EE27D9B1_inline(L_5, NULL);
float L_7;
L_7 = bankers_roundf(((float)il2cpp_codegen_multiply(L_6, (255.0f))));
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_8 = ___c0;
float L_9 = L_8.___b_2;
float L_10;
L_10 = Mathf_Clamp01_mD921B23F47F5347996C56DC789D1DE16EE27D9B1_inline(L_9, NULL);
float L_11;
L_11 = bankers_roundf(((float)il2cpp_codegen_multiply(L_10, (255.0f))));
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_12 = ___c0;
float L_13 = L_12.___a_3;
float L_14;
L_14 = Mathf_Clamp01_mD921B23F47F5347996C56DC789D1DE16EE27D9B1_inline(L_13, NULL);
float L_15;
L_15 = bankers_roundf(((float)il2cpp_codegen_multiply(L_14, (255.0f))));
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_16;
memset((&L_16), 0, sizeof(L_16));
Color32__ctor_mC9C6B443F0C7CA3F8B174158B2AF6F05E18EAC4E_inline((&L_16), (uint8_t)il2cpp_codegen_cast_floating_point<uint8_t, int32_t, float>(L_3), (uint8_t)il2cpp_codegen_cast_floating_point<uint8_t, int32_t, float>(L_7), (uint8_t)il2cpp_codegen_cast_floating_point<uint8_t, int32_t, float>(L_11), (uint8_t)il2cpp_codegen_cast_floating_point<uint8_t, int32_t, float>(L_15), /*hidden argument*/NULL);
V_0 = L_16;
goto IL_0065;
}
IL_0065:
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_17 = V_0;
return L_17;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color_get_blue_m0D04554379CB8606EF48E3091CDC3098B81DD86D_inline (const RuntimeMethod* method)
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F V_0;
memset((&V_0), 0, sizeof(V_0));
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_0;
memset((&L_0), 0, sizeof(L_0));
Color__ctor_m3786F0D6E510D9CFA544523A955870BD2A514C8C_inline((&L_0), (0.0f), (0.0f), (1.0f), (1.0f), /*hidden argument*/NULL);
V_0 = L_0;
goto IL_001d;
}
IL_001d:
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_1 = V_0;
return L_1;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color_get_black_mBF96B603B41BED9BAFAA10CE8D946D24260F9729_inline (const RuntimeMethod* method)
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F V_0;
memset((&V_0), 0, sizeof(V_0));
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_0;
memset((&L_0), 0, sizeof(L_0));
Color__ctor_m3786F0D6E510D9CFA544523A955870BD2A514C8C_inline((&L_0), (0.0f), (0.0f), (0.0f), (1.0f), /*hidden argument*/NULL);
V_0 = L_0;
goto IL_001d;
}
IL_001d:
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_1 = V_0;
return L_1;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color_get_green_m336EB73DD4A5B11B7F405CF4BC7F37A466FB4FF7_inline (const RuntimeMethod* method)
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F V_0;
memset((&V_0), 0, sizeof(V_0));
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_0;
memset((&L_0), 0, sizeof(L_0));
Color__ctor_m3786F0D6E510D9CFA544523A955870BD2A514C8C_inline((&L_0), (0.0f), (1.0f), (0.0f), (1.0f), /*hidden argument*/NULL);
V_0 = L_0;
goto IL_001d;
}
IL_001d:
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_1 = V_0;
return L_1;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color_get_white_m28BB6E19F27D4EE6858D3021A44F62BC74E20C43_inline (const RuntimeMethod* method)
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F V_0;
memset((&V_0), 0, sizeof(V_0));
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_0;
memset((&L_0), 0, sizeof(L_0));
Color__ctor_m3786F0D6E510D9CFA544523A955870BD2A514C8C_inline((&L_0), (1.0f), (1.0f), (1.0f), (1.0f), /*hidden argument*/NULL);
V_0 = L_0;
goto IL_001d;
}
IL_001d:
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_1 = V_0;
return L_1;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void Color32__ctor_mC9C6B443F0C7CA3F8B174158B2AF6F05E18EAC4E_inline (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B* __this, uint8_t ___r0, uint8_t ___g1, uint8_t ___b2, uint8_t ___a3, const RuntimeMethod* method)
{
{
__this->___rgba_0 = 0;
uint8_t L_0 = ___r0;
__this->___r_1 = L_0;
uint8_t L_1 = ___g1;
__this->___g_2 = L_1;
uint8_t L_2 = ___b2;
__this->___b_3 = L_2;
uint8_t L_3 = ___a3;
__this->___a_4 = L_3;
return;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color_get_yellow_m1EF7276EF58050DFBA8921E2383F0249C08D346F_inline (const RuntimeMethod* method)
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F V_0;
memset((&V_0), 0, sizeof(V_0));
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_0;
memset((&L_0), 0, sizeof(L_0));
Color__ctor_m3786F0D6E510D9CFA544523A955870BD2A514C8C_inline((&L_0), (1.0f), (0.921568632f), (0.0156862754f), (1.0f), /*hidden argument*/NULL);
V_0 = L_0;
goto IL_001d;
}
IL_001d:
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_1 = V_0;
return L_1;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR String_t* TextSettings_get_defaultColorGradientPresetsPath_m1571454580E1F0DC859D3F201BB1F6355A5DBB8E_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method)
{
{
String_t* L_0 = __this->___m_DefaultColorGradientPresetsPath_17;
return L_0;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* TextSettings_get_defaultSpriteAsset_m8FA900F9747B7ADBCD2A2F612E7D977DB58D6445_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method)
{
{
SpriteAsset_t1D3CF1D9DC350A4690CB09DE228A8B59F2F02313* L_0 = __this->___m_DefaultSpriteAsset_11;
return L_0;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR String_t* TextSettings_get_defaultSpriteAssetPath_mF57875222B7FACC9B69369305EEEB53FFE7986E0_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method)
{
{
String_t* L_0 = __this->___m_DefaultSpriteAssetPath_12;
return L_0;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 Vector3_get_zero_m9D7F7B580B5A276411267E96AA3425736D9BDC83_inline (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 V_0;
memset((&V_0), 0, sizeof(V_0));
{
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_0 = ((Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2_StaticFields*)il2cpp_codegen_static_fields_for(Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2_il2cpp_TypeInfo_var))->___zeroVector_5;
V_0 = L_0;
goto IL_0009;
}
IL_0009:
{
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_1 = V_0;
return L_1;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974 Quaternion_get_identity_mB9CAEEB21BC81352CBF32DB9664BFC06FA7EA27B_inline (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974 V_0;
memset((&V_0), 0, sizeof(V_0));
{
Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974 L_0 = ((Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974_StaticFields*)il2cpp_codegen_static_fields_for(Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974_il2cpp_TypeInfo_var))->___identityQuaternion_4;
V_0 = L_0;
goto IL_0009;
}
IL_0009:
{
Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974 L_1 = V_0;
return L_1;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2* __this, float ___x0, float ___y1, float ___z2, const RuntimeMethod* method)
{
{
float L_0 = ___x0;
__this->___x_2 = L_0;
float L_1 = ___y1;
__this->___y_3 = L_1;
float L_2 = ___z2;
__this->___z_4 = L_2;
return;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974 Quaternion_Euler_mD4601D966F1F58F3FCA01B3FC19A12D0AD0396DD_inline (float ___x0, float ___y1, float ___z2, const RuntimeMethod* method)
{
Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974 V_0;
memset((&V_0), 0, sizeof(V_0));
{
float L_0 = ___x0;
float L_1 = ___y1;
float L_2 = ___z2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_3;
memset((&L_3), 0, sizeof(L_3));
Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline((&L_3), L_0, L_1, L_2, /*hidden argument*/NULL);
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_4;
L_4 = Vector3_op_Multiply_m516FE285F5342F922C6EB3FCB33197E9017FF484_inline(L_3, (0.0174532924f), NULL);
Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974 L_5;
L_5 = Quaternion_Internal_FromEulerRad_m2842B9FFB31CDC0F80B7C2172E22831D11D91E93(L_4, NULL);
V_0 = L_5;
goto IL_001b;
}
IL_001b:
{
Quaternion_tDA59F214EF07D7700B26E40E562F267AF7306974 L_6 = V_0;
return L_6;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 Vector3_get_one_mE6A2D5C6578E94268024613B596BF09F990B1260_inline (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2_il2cpp_TypeInfo_var);
s_Il2CppMethodInitialized = true;
}
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 V_0;
memset((&V_0), 0, sizeof(V_0));
{
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_0 = ((Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2_StaticFields*)il2cpp_codegen_static_fields_for(Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2_il2cpp_TypeInfo_var))->___oneVector_6;
V_0 = L_0;
goto IL_0009;
}
IL_0009:
{
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_1 = V_0;
return L_1;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color32_op_Implicit_m203A634DBB77053C9400C68065CA29529103D172_inline (Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B ___c0, const RuntimeMethod* method)
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F V_0;
memset((&V_0), 0, sizeof(V_0));
{
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_0 = ___c0;
uint8_t L_1 = L_0.___r_1;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_2 = ___c0;
uint8_t L_3 = L_2.___g_2;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_4 = ___c0;
uint8_t L_5 = L_4.___b_3;
Color32_t73C5004937BF5BB8AD55323D51AAA40A898EF48B L_6 = ___c0;
uint8_t L_7 = L_6.___a_4;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_8;
memset((&L_8), 0, sizeof(L_8));
Color__ctor_m3786F0D6E510D9CFA544523A955870BD2A514C8C_inline((&L_8), ((float)(((float)L_1)/(255.0f))), ((float)(((float)L_3)/(255.0f))), ((float)(((float)L_5)/(255.0f))), ((float)(((float)L_7)/(255.0f))), /*hidden argument*/NULL);
V_0 = L_8;
goto IL_003d;
}
IL_003d:
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_9 = V_0;
return L_9;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Color_tD001788D726C3A7F1379BEED0260B9591F440C1F Color_op_Multiply_mF17D278EB0ABC9AEB32E829D5CA98784E0D6B66F_inline (Color_tD001788D726C3A7F1379BEED0260B9591F440C1F ___a0, Color_tD001788D726C3A7F1379BEED0260B9591F440C1F ___b1, const RuntimeMethod* method)
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F V_0;
memset((&V_0), 0, sizeof(V_0));
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_0 = ___a0;
float L_1 = L_0.___r_0;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_2 = ___b1;
float L_3 = L_2.___r_0;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_4 = ___a0;
float L_5 = L_4.___g_1;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_6 = ___b1;
float L_7 = L_6.___g_1;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_8 = ___a0;
float L_9 = L_8.___b_2;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_10 = ___b1;
float L_11 = L_10.___b_2;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_12 = ___a0;
float L_13 = L_12.___a_3;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_14 = ___b1;
float L_15 = L_14.___a_3;
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_16;
memset((&L_16), 0, sizeof(L_16));
Color__ctor_m3786F0D6E510D9CFA544523A955870BD2A514C8C_inline((&L_16), ((float)il2cpp_codegen_multiply(L_1, L_3)), ((float)il2cpp_codegen_multiply(L_5, L_7)), ((float)il2cpp_codegen_multiply(L_9, L_11)), ((float)il2cpp_codegen_multiply(L_13, L_15)), /*hidden argument*/NULL);
V_0 = L_16;
goto IL_003d;
}
IL_003d:
{
Color_tD001788D726C3A7F1379BEED0260B9591F440C1F L_17 = V_0;
return L_17;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR bool TextSettings_get_displayWarnings_m3CA9FCB44B30CC06F54CD3716D68285FF844DF83_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method)
{
{
bool L_0 = __this->___m_DisplayWarnings_19;
return L_0;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float Mathf_Min_m4F2A9C5128DC3F9E84865EE7ADA8DB5DA6B8B507_inline (float ___a0, float ___b1, const RuntimeMethod* method)
{
float V_0 = 0.0f;
float G_B3_0 = 0.0f;
{
float L_0 = ___a0;
float L_1 = ___b1;
if ((((float)L_0) < ((float)L_1)))
{
goto IL_0008;
}
}
{
float L_2 = ___b1;
G_B3_0 = L_2;
goto IL_0009;
}
IL_0008:
{
float L_3 = ___a0;
G_B3_0 = L_3;
}
IL_0009:
{
V_0 = G_B3_0;
goto IL_000c;
}
IL_000c:
{
float L_4 = V_0;
return L_4;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 Vector3_op_Addition_m087D6F0EC60843D455F9F83D25FE42B2433AAD1D_inline (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___a0, Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___b1, const RuntimeMethod* method)
{
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 V_0;
memset((&V_0), 0, sizeof(V_0));
{
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_0 = ___a0;
float L_1 = L_0.___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_2 = ___b1;
float L_3 = L_2.___x_2;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_4 = ___a0;
float L_5 = L_4.___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_6 = ___b1;
float L_7 = L_6.___y_3;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_8 = ___a0;
float L_9 = L_8.___z_4;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_10 = ___b1;
float L_11 = L_10.___z_4;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_12;
memset((&L_12), 0, sizeof(L_12));
Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline((&L_12), ((float)il2cpp_codegen_add(L_1, L_3)), ((float)il2cpp_codegen_add(L_5, L_7)), ((float)il2cpp_codegen_add(L_9, L_11)), /*hidden argument*/NULL);
V_0 = L_12;
goto IL_0030;
}
IL_0030:
{
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_13 = V_0;
return L_13;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR int32_t TextSettings_get_missingCharacterUnicode_mA707E5E6633633BBB3BAFB96B97A5A995100F3F3_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->___m_MissingCharacterUnicode_9;
return L_0;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* TextSettings_get_fallbackFontAssets_m332526E834C994425141A58C968FD40320573F98_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method)
{
{
List_1_t55B85B981AC5FD6A5358491F90FE354F78BB97DE* L_0 = __this->___m_FallbackFontAssets_7;
return L_0;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* TextSettings_get_defaultFontAsset_mC6280464BFEE081DB23243BB94E49C72A0885A1F_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method)
{
{
FontAsset_t61A6446D934E582651044E33D250EA8D306AB958* L_0 = __this->___m_DefaultFontAsset_5;
return L_0;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR bool TextSettings_get_matchMaterialPreset_m4675979547AE4C83E680260EAE5ACBC4FAC53B87_inline (TextSettings_tB7F55685AFFD4A96F714427BCACFD6958E357D64* __this, const RuntimeMethod* method)
{
{
bool L_0 = __this->___m_MatchMaterialPreset_8;
return L_0;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR int32_t Mathf_Max_m8A4C189A6749DFE3ED8B66D9D3CACD8DB333974F_inline (int32_t ___a0, int32_t ___b1, const RuntimeMethod* method)
{
int32_t V_0 = 0;
int32_t G_B3_0 = 0;
{
int32_t L_0 = ___a0;
int32_t L_1 = ___b1;
if ((((int32_t)L_0) > ((int32_t)L_1)))
{
goto IL_0008;
}
}
{
int32_t L_2 = ___b1;
G_B3_0 = L_2;
goto IL_0009;
}
IL_0008:
{
int32_t L_3 = ___a0;
G_B3_0 = L_3;
}
IL_0009:
{
V_0 = G_B3_0;
goto IL_000c;
}
IL_000c:
{
int32_t L_4 = V_0;
return L_4;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float Mathf_Max_mA9DCA91E87D6D27034F56ABA52606A9090406016_inline (float ___a0, float ___b1, const RuntimeMethod* method)
{
float V_0 = 0.0f;
float G_B3_0 = 0.0f;
{
float L_0 = ___a0;
float L_1 = ___b1;
if ((((float)L_0) > ((float)L_1)))
{
goto IL_0008;
}
}
{
float L_2 = ___b1;
G_B3_0 = L_2;
goto IL_0009;
}
IL_0008:
{
float L_3 = ___a0;
G_B3_0 = L_3;
}
IL_0009:
{
V_0 = G_B3_0;
goto IL_000c;
}
IL_000c:
{
float L_4 = V_0;
return L_4;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m4407E4C389F22B8CEC282C15D56516658746C383_gshared_inline (List_1_tA239CB83DE5615F348BB0507E45F490F4F7C9A8D* __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->____size_2;
return L_0;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void Color__ctor_m3786F0D6E510D9CFA544523A955870BD2A514C8C_inline (Color_tD001788D726C3A7F1379BEED0260B9591F440C1F* __this, float ___r0, float ___g1, float ___b2, float ___a3, const RuntimeMethod* method)
{
{
float L_0 = ___r0;
__this->___r_0 = L_0;
float L_1 = ___g1;
__this->___g_1 = L_1;
float L_2 = ___b2;
__this->___b_2 = L_2;
float L_3 = ___a3;
__this->___a_3 = L_3;
return;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float Mathf_Clamp01_mD921B23F47F5347996C56DC789D1DE16EE27D9B1_inline (float ___value0, const RuntimeMethod* method)
{
bool V_0 = false;
float V_1 = 0.0f;
bool V_2 = false;
{
float L_0 = ___value0;
V_0 = (bool)((((float)L_0) < ((float)(0.0f)))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_0015;
}
}
{
V_1 = (0.0f);
goto IL_002d;
}
IL_0015:
{
float L_2 = ___value0;
V_2 = (bool)((((float)L_2) > ((float)(1.0f)))? 1 : 0);
bool L_3 = V_2;
if (!L_3)
{
goto IL_0029;
}
}
{
V_1 = (1.0f);
goto IL_002d;
}
IL_0029:
{
float L_4 = ___value0;
V_1 = L_4;
goto IL_002d;
}
IL_002d:
{
float L_5 = V_1;
return L_5;
}
}
IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 Vector3_op_Multiply_m516FE285F5342F922C6EB3FCB33197E9017FF484_inline (Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 ___a0, float ___d1, const RuntimeMethod* method)
{
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 V_0;
memset((&V_0), 0, sizeof(V_0));
{
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_0 = ___a0;
float L_1 = L_0.___x_2;
float L_2 = ___d1;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_3 = ___a0;
float L_4 = L_3.___y_3;
float L_5 = ___d1;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_6 = ___a0;
float L_7 = L_6.___z_4;
float L_8 = ___d1;
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_9;
memset((&L_9), 0, sizeof(L_9));
Vector3__ctor_m376936E6B999EF1ECBE57D990A386303E2283DE0_inline((&L_9), ((float)il2cpp_codegen_multiply(L_1, L_2)), ((float)il2cpp_codegen_multiply(L_4, L_5)), ((float)il2cpp_codegen_multiply(L_7, L_8)), /*hidden argument*/NULL);
V_0 = L_9;
goto IL_0021;
}
IL_0021:
{
Vector3_t24C512C7B96BBABAD472002D0BA2BDA40A5A80B2 L_10 = V_0;
return L_10;
}
}
| 41.945527
| 657
| 0.811341
|
Augmented-Future
|
f157d5db046a13772076db868005c95becfc0f1e
| 3,675
|
cpp
|
C++
|
platforms/android/android_input.cpp
|
canuc/meow-engine
|
25f5396136d90691e4a4451f382a45da9fdcebc0
|
[
"BSD-3-Clause"
] | 1
|
2020-01-24T01:14:04.000Z
|
2020-01-24T01:14:04.000Z
|
platforms/android/android_input.cpp
|
canuc/meow-engine
|
25f5396136d90691e4a4451f382a45da9fdcebc0
|
[
"BSD-3-Clause"
] | null | null | null |
platforms/android/android_input.cpp
|
canuc/meow-engine
|
25f5396136d90691e4a4451f382a45da9fdcebc0
|
[
"BSD-3-Clause"
] | 1
|
2020-06-05T07:00:16.000Z
|
2020-06-05T07:00:16.000Z
|
/*
* Copyright 2019 Julian Haldenby
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the Software
* is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
* FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*
*/
#include "android_input.h"
#include "meow.h"
#include "actor.h"
#include "camera.h"
#define ANDROID_MAX_MOVE_ACCELERATION 0.001f
#define ANDROID_MAX_MOVE_DECELLERATION -0.0005f
int AndroidInput::addAndroidInput(AInputEvent *inputEvent) {
int pointers = AMotionEvent_getPointerCount(inputEvent);
if (AInputEvent_getType(inputEvent) == AINPUT_EVENT_TYPE_MOTION) {
switch(pointers) {
case 2:
_gameEngine->drawableState->character->decelerate(0.001f);
return 1;
case 1:
default:
float clickx = AMotionEvent_getX(inputEvent, 0);
float clicky = AMotionEvent_getY(inputEvent, 0);
glm::vec2 click(1.0f * (clickx / _gameEngine->width * 2.0 - 1.0f),1.0f * (clicky / _gameEngine->height * 2.0 - 1.0));
meow_time_t clickTime = (meow_time_t) (AMotionEvent_getEventTime(inputEvent));
float timeDiff = 0.0;
glm::vec2 diff;
IInput * meowInputEvent;
switch (AKeyEvent_getAction(inputEvent)) {
case AMOTION_EVENT_ACTION_MOVE:
timeDiff = (clickTime - _gameEngine->drawableState->mousedownTime)/10e9f;
diff = (click - _gameEngine->drawableState->mousedownLocation) * (timeDiff);
diff.x = glm::clamp(diff.x,ANDROID_MAX_MOVE_DECELLERATION,ANDROID_MAX_MOVE_ACCELERATION);
diff.y = glm::clamp(diff.y,ANDROID_MAX_MOVE_DECELLERATION,ANDROID_MAX_MOVE_ACCELERATION);
meowInputEvent = new IInput(INPUT_EVENT_MOVE,diff);
handleControl(_gameEngine->drawableState->character,meowInputEvent);
delete meowInputEvent;
case AMOTION_EVENT_ACTION_DOWN:
_gameEngine->drawableState->mousedownLocation = click;
_gameEngine->drawableState->mousedownTime = clickTime;
break;
}
return 1;
}
}
return 0;
}
void AndroidInput::handleTilt(const ASensorEvent * event) {
glm::vec3 tiltControl = _gameEngine->drawableState->camera->jitter();
//tiltControl.x = glm::clamp((double)tiltControl.x + event->acceleration.x/100.0f,-1.0, 1.0);
tiltControl.x = glm::clamp((double)tiltControl.x + (event->acceleration.y/-20.0f),-2.5,2.5);
_gameEngine->drawableState->camera->setJitter(tiltControl);
}
void AndroidInput::pollInput(meow_time_t time) {
}
| 43.75
| 133
| 0.657687
|
canuc
|
f15a7061b91ce75ef1c4b5744a0b69be13147327
| 573
|
hpp
|
C++
|
Templates/Cadenas.hpp
|
monicastle/C_PDC7
|
f9e416028ac61be4e1488be04c4ada8b5f87ba87
|
[
"MIT"
] | null | null | null |
Templates/Cadenas.hpp
|
monicastle/C_PDC7
|
f9e416028ac61be4e1488be04c4ada8b5f87ba87
|
[
"MIT"
] | null | null | null |
Templates/Cadenas.hpp
|
monicastle/C_PDC7
|
f9e416028ac61be4e1488be04c4ada8b5f87ba87
|
[
"MIT"
] | null | null | null |
#include "Pila.hpp"
#include <iostream>
#include <string>
using namespace std;
void Cadenas(){
Pila <string> stringPila;
const size_t stringPilaTam = 10;
cout << "\n--> Insertar elementos en stringPila \n";
for (size_t i = 0; i < stringPilaTam; i++){
string stringTemp = "C++" + to_string(i);
stringPila.insertar(stringTemp);
cout << stringTemp << ' ';
}
cout << "\n<-- Extraer elementos de stringPila\n";
while (!stringPila.estaVacia()){
cout << stringPila.arriba() << ' ';
stringPila.extraer();
}
}
| 30.157895
| 56
| 0.595113
|
monicastle
|
f15ae7c43a38d5b7cae2102a096f944755889b1c
| 1,043
|
hpp
|
C++
|
src/cbparallel/thread/cbthreadpool.hpp
|
CBraun94/computervision_parallelism
|
a20126435fbf3eccf7a8fcb517016dfa04e9944a
|
[
"MIT"
] | null | null | null |
src/cbparallel/thread/cbthreadpool.hpp
|
CBraun94/computervision_parallelism
|
a20126435fbf3eccf7a8fcb517016dfa04e9944a
|
[
"MIT"
] | null | null | null |
src/cbparallel/thread/cbthreadpool.hpp
|
CBraun94/computervision_parallelism
|
a20126435fbf3eccf7a8fcb517016dfa04e9944a
|
[
"MIT"
] | null | null | null |
#ifndef CBTHREADPOOL_HPP_INCLUDED
#define CBTHREADPOOL_HPP_INCLUDED
#include "cbpoolworker.hpp"
#include "../task/cbtask.hpp"
#include "../task/cbtaskanonymous.hpp"
#include "../sync/semaphoreposix.hpp"
#include "../sync/eventposix.hpp"
#include <vector>
#include <queue>
#include <memory>
class CBThreadPool{
public:
CBThreadPool(size_t capacity): _capacity(capacity){
_sem_working = std::make_shared<SemaphorePosix>(capacity);
employ();
};
~CBThreadPool();
void push_task(CBTask* t, bool wait = true);
void push_tasks(std::vector<CBTask*> v, bool wait = true);
void wait();
private:
size_t _capacity;
std::vector<CBPoolWorker*> _worker;
std::queue<CBTask*> _tasks;
SemaphorePosix _sem_task;
std::shared_ptr<SemaphorePosix> _sem_working;
EventPosix _event_empty;
void employ();
void resume();
bool is_capacity();
CBTask *getTask();
};
#endif // CBTHREADPOOL_HPP_INCLUDED
| 22.673913
| 67
| 0.641419
|
CBraun94
|
f15b3603abd1b092677388892f2384e53d1dc956
| 132
|
hpp
|
C++
|
include/debug.hpp
|
echo-Mike/SARW-UEFITreeBuilder
|
e4ab988b1dedf6dce20341ff80f3c6bbdc83e7e6
|
[
"MIT"
] | null | null | null |
include/debug.hpp
|
echo-Mike/SARW-UEFITreeBuilder
|
e4ab988b1dedf6dce20341ff80f3c6bbdc83e7e6
|
[
"MIT"
] | null | null | null |
include/debug.hpp
|
echo-Mike/SARW-UEFITreeBuilder
|
e4ab988b1dedf6dce20341ff80f3c6bbdc83e7e6
|
[
"MIT"
] | null | null | null |
#define DEBUG_LIB_FILE_LOG
#define DEBUG_LIB_LOG_FILE_NAME "UEFITB_worklog.txt"
//#define DEBUG_LIB_LOG_THREAD_SAFETY
//#undef DEBUG
| 33
| 52
| 0.856061
|
echo-Mike
|
f16393e134bfd28189ab96206b6d998d3ab2a9b2
| 1,234
|
hpp
|
C++
|
tests/gtest-output.hpp
|
damercer/libsmu
|
6f141ea37a0778299ad1771cc9385fef14010bc0
|
[
"BSD-3-Clause"
] | 30
|
2015-03-28T23:19:54.000Z
|
2022-03-08T14:44:36.000Z
|
tests/gtest-output.hpp
|
damercer/libsmu
|
6f141ea37a0778299ad1771cc9385fef14010bc0
|
[
"BSD-3-Clause"
] | 147
|
2015-03-06T18:37:11.000Z
|
2022-03-28T08:26:47.000Z
|
tests/gtest-output.hpp
|
damercer/libsmu
|
6f141ea37a0778299ad1771cc9385fef14010bc0
|
[
"BSD-3-Clause"
] | 26
|
2015-03-14T06:04:17.000Z
|
2022-03-12T16:37:48.000Z
|
// Custom output for the google test framework.
//
// Use PRINTF() where printf() would be used and TEST_COUT where cout would be
// used in order to match regular gtest output for custom status messages.
#include <gtest/gtest.h>
#include <stdarg.h>
enum GTestColor {
COLOR_DEFAULT,
COLOR_RED,
COLOR_GREEN,
COLOR_YELLOW
};
const char* GetAnsiColorCode(GTestColor color) {
switch (color) {
case COLOR_RED: return "1";
case COLOR_GREEN: return "2";
case COLOR_YELLOW: return "3";
default: return NULL;
};
}
void ColoredPrintf(GTestColor color, const char* fmt, ...) {
va_list args;
va_start(args, fmt);
static const bool in_color_mode = true;
const bool use_color = in_color_mode && (color != COLOR_DEFAULT);
if (!use_color) {
vprintf(fmt, args);
va_end(args);
return;
}
printf("\033[0;3%sm", GetAnsiColorCode(color));
vprintf(fmt, args);
printf("\033[m"); // Resets the terminal to default.
va_end(args);
}
#define PRINTF(...) do { ColoredPrintf(COLOR_GREEN, "[**********] "); ColoredPrintf(COLOR_YELLOW, __VA_ARGS__); } while(0)
// C++ stream interface
class TestCout : public std::stringstream {
public:
~TestCout() {
PRINTF("%s",str().c_str());
}
};
#define TEST_COUT TestCout()
| 22.035714
| 123
| 0.686386
|
damercer
|
f165a10dbf7fff86b476f31df4892ca94e6d99da
| 2,519
|
cpp
|
C++
|
fb/element_swapping.cpp
|
jennygaz/competitive
|
2807b0fbd2eaaca8ba618f03b1e62c0241849e6c
|
[
"MIT"
] | null | null | null |
fb/element_swapping.cpp
|
jennygaz/competitive
|
2807b0fbd2eaaca8ba618f03b1e62c0241849e6c
|
[
"MIT"
] | null | null | null |
fb/element_swapping.cpp
|
jennygaz/competitive
|
2807b0fbd2eaaca8ba618f03b1e62c0241849e6c
|
[
"MIT"
] | null | null | null |
#include <bits/stdc++.h>
// Add any extra import statements you may need here
using namespace std;
// Add any helper functions you may need here
inline int find_min_from_to( vector<int>& cont, int dist, int from ){
int idx = -1, min_val = 1000100;
int max_it = min( (int)cont.size(), from + dist );
for( int i = from; i <= max_it; ++ i ){
if( cont[i] < min_val ){
idx = i;
min_val = cont[i];
}
-- dist;
}
return idx;
}
vector <int> findMinArray(vector <int> arr, int k) {
for( int i = 0; k > 0 and i < (int)arr.size(); ++ i ){
cerr << "calling find_min_from_to( arr, " << k << ", " << i << " )" << endl;
int min_idx = find_min_from_to( arr, k, i );
cerr << "min_idx: " << min_idx << endl;
if( min_idx == i ) continue;
k -= min_idx - i;
cerr << "k: " << k << endl;
while( min_idx > i ){
cerr << "Swapping: ( " << arr[min_idx] << ", " << arr[min_idx - 1] << " )" << endl;
swap( arr[min_idx], arr[min_idx - 1] );
-- min_idx;
}
}
return arr;
}
// These are the tests we use to determine if the solution is correct.
// You can add your own at the bottom.
void printIntegerVector(vector <int> array) {
int size = array.size();
cout << "[";
for (int i = 0; i < size; i++) {
if (i != 0) {
cout << ", ";
}
cout << array[i];
}
cout << "]";
}
int test_case_number = 1;
void check(vector <int>& expected, vector <int>& output) {
int expected_size = expected.size();
int output_size = output.size();
bool result = true;
if (expected_size != output_size) {
result = false;
}
for (int i = 0; i < min(expected_size, output_size); i++) {
result &= (output[i] == expected[i]);
}
const char* rightTick = u8"\u2713";
const char* wrongTick = u8"\u2717";
if (result) {
cout << rightTick << "Test #" << test_case_number << "\n";
}
else {
cout << wrongTick << "Test #" << test_case_number << ": Expected ";
printIntegerVector(expected);
cout << " Your output: ";
printIntegerVector(output);
cout << endl;
}
test_case_number++;
}
int main() {
int n_1 = 3, k_1 = 2;
vector <int> arr_1{5, 3, 1};
vector <int> expected_1{1, 5, 3};
vector <int> output_1 = findMinArray(arr_1,k_1);
check(expected_1, output_1);
int n_2 = 5, k_2 = 3;
vector <int> arr_2{8, 9 ,11, 2, 1};
vector <int> expected_2{2, 8, 9, 11, 1};
vector <int> output_2 = findMinArray(arr_2,k_2);
check(expected_2, output_2);
// Add your own test cases here
}
| 23.764151
| 89
| 0.568083
|
jennygaz
|
f16701c736df4f0e1777b096298030a428cbc4b4
| 311
|
cpp
|
C++
|
two-sum-ii-input-array-is-sorted.cpp
|
AyoubEd/leetcode
|
9875bd9eb14849e364e3a5458fd6bef8829a892b
|
[
"RSA-MD"
] | 3
|
2020-04-23T01:15:11.000Z
|
2020-09-08T23:15:16.000Z
|
two-sum-ii-input-array-is-sorted.cpp
|
AyoubEd/leetcode
|
9875bd9eb14849e364e3a5458fd6bef8829a892b
|
[
"RSA-MD"
] | null | null | null |
two-sum-ii-input-array-is-sorted.cpp
|
AyoubEd/leetcode
|
9875bd9eb14849e364e3a5458fd6bef8829a892b
|
[
"RSA-MD"
] | null | null | null |
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
int i=0, j=nums.size()-1, d;
while(i<j){
d = nums[i]+nums[j];
if(d==target) return {i+1, j+1};
else if(d<target) i++;
else j--;
}
return {};
}
};
| 22.214286
| 55
| 0.430868
|
AyoubEd
|
f169916389aa4b18ea55658358e05baf492caec3
| 360
|
cpp
|
C++
|
RuntimeConceptIdiom/DrawableObject.cpp
|
vladbologa/experiments
|
8adda4ffe7f74ebcef0c4566831dcfa680581758
|
[
"MIT"
] | null | null | null |
RuntimeConceptIdiom/DrawableObject.cpp
|
vladbologa/experiments
|
8adda4ffe7f74ebcef0c4566831dcfa680581758
|
[
"MIT"
] | null | null | null |
RuntimeConceptIdiom/DrawableObject.cpp
|
vladbologa/experiments
|
8adda4ffe7f74ebcef0c4566831dcfa680581758
|
[
"MIT"
] | null | null | null |
#include "DrawableObject.h"
DrawableObject::DrawableObject(const Id& id, const Position& position)
: id_(id)
, position_(position)
{
}
void DrawableObject::setPosition(const Position& position)
{
position_ = position;
}
Position DrawableObject::getPosition() const
{
return position_;
}
Id DrawableObject::getId() const
{
return id_;
}
| 15.652174
| 70
| 0.713889
|
vladbologa
|
f16a75fc01e9e3bf0f233e3a0ad411981332ceca
| 2,296
|
cpp
|
C++
|
src/BedHighCoverage/main.cpp
|
BeneKenobi/ngs-bits
|
cf849deb1c80e87b734d748f37f5878536277386
|
[
"MIT"
] | 85
|
2016-04-26T17:24:20.000Z
|
2022-03-11T12:33:39.000Z
|
src/BedHighCoverage/main.cpp
|
BeneKenobi/ngs-bits
|
cf849deb1c80e87b734d748f37f5878536277386
|
[
"MIT"
] | 104
|
2016-08-09T22:18:32.000Z
|
2022-03-31T12:39:12.000Z
|
src/BedHighCoverage/main.cpp
|
BeneKenobi/ngs-bits
|
cf849deb1c80e87b734d748f37f5878536277386
|
[
"MIT"
] | 28
|
2016-05-10T14:34:20.000Z
|
2021-10-14T07:22:39.000Z
|
#include "BedFile.h"
#include "ToolBase.h"
#include "Statistics.h"
#include "Exceptions.h"
#include <QFileInfo>
class ConcreteTool
: public ToolBase
{
Q_OBJECT
public:
ConcreteTool(int& argc, char *argv[])
: ToolBase(argc, argv)
{
}
virtual void setup()
{
setDescription("Detects high-coverage regions from a BAM/CRAM file.");
setExtendedDescription(QStringList() << "Note that only read start/end are used. Thus, deletions in the CIGAR string are treated as covered.");
addInfile("bam", "Input BAM/CRAM file.", false);
addInt("cutoff", "Minimum depth to consider a base 'high coverage'.", false);
//optional
addInfile("in", "Input BED file containing the regions of interest. If unset, reads from STDIN.", true);
addFlag("wgs", "WGS mode without target region. Genome information is taken from the BAM/CRAM file.");
addOutfile("out", "Output BED file. If unset, writes to STDOUT.", true);
addInt("min_mapq", "Minimum mapping quality to consider a read.", true, 1);
addInt("min_baseq", "Minimum base quality to consider a base.", true, 0);
addInfile("ref", "Reference genome for CRAM support (mandatory if CRAM is used).", true);
changeLog(2020, 11, 27, "Added CRAM support.");
changeLog(2020, 5, 26, "Added parameter 'min_baseq'.");
changeLog(2020, 5, 14, "First version.");
}
virtual void main()
{
//init
QString in = getInfile("in");
QString bam = getInfile("bam");
bool wgs = getFlag("wgs");
//check that either IN or WGS is given
if (in=="" && !wgs)
{
THROW(CommandLineParsingException, "You have to provide the parameter 'in' or 'wgs'!");
}
//get high-cov regions and store them
BedFile output;
if (wgs) //WGS
{
output = Statistics::highCoverage(bam, getInt("cutoff"), getInt("min_mapq"), getInt("min_baseq"), getInfile("ref"));
}
else //ROI
{
BedFile file;
file.load(in);
file.merge(true, true);
output = Statistics::highCoverage(file, bam, getInt("cutoff"), getInt("min_mapq"), getInt("min_baseq"), getInfile("ref"));
}
output.store(getOutfile("out"));
}
};
#include "main.moc"
int main(int argc, char *argv[])
{
ConcreteTool tool(argc, argv);
return tool.execute();
}
| 30.613333
| 145
| 0.64547
|
BeneKenobi
|
f16c83f7899b43fd9ebdf6cd6417c6f05c97c3a0
| 337
|
cc
|
C++
|
src/Addons/Channels/ChangingErrorChannel/ChangingErrorChannel.cc
|
kaleal/RINA
|
b1cec2a1f6dff4bbf95a967350cd4d533833a1d0
|
[
"MIT"
] | null | null | null |
src/Addons/Channels/ChangingErrorChannel/ChangingErrorChannel.cc
|
kaleal/RINA
|
b1cec2a1f6dff4bbf95a967350cd4d533833a1d0
|
[
"MIT"
] | null | null | null |
src/Addons/Channels/ChangingErrorChannel/ChangingErrorChannel.cc
|
kaleal/RINA
|
b1cec2a1f6dff4bbf95a967350cd4d533833a1d0
|
[
"MIT"
] | null | null | null |
#include "ChangingErrorChannel.h"
#include "ChangerErrorChannel.h"
Define_Channel(ChangingErrorChannel);
ChangingErrorChannel::ChangingErrorChannel() : cDatarateChannel() { }
void ChangingErrorChannel::initialize() {
cDatarateChannel::initialize();
ChangerErrorChannel::registerChannel(this, par("name").stdstringValue());
}
| 25.923077
| 77
| 0.783383
|
kaleal
|
f173b723e5c684674d74f13d3bff498c837c186c
| 3,896
|
cpp
|
C++
|
src/hhcc_move_camera_controller.cpp
|
butia-bots/tmc_gazebo_task_evaluators
|
5dff17eddb15678565727a5fbd23d5fa30260f9f
|
[
"BSD-3-Clause-Clear"
] | null | null | null |
src/hhcc_move_camera_controller.cpp
|
butia-bots/tmc_gazebo_task_evaluators
|
5dff17eddb15678565727a5fbd23d5fa30260f9f
|
[
"BSD-3-Clause-Clear"
] | 3
|
2020-12-14T09:10:48.000Z
|
2021-06-22T11:44:33.000Z
|
src/hhcc_move_camera_controller.cpp
|
butia-bots/tmc_gazebo_task_evaluators
|
5dff17eddb15678565727a5fbd23d5fa30260f9f
|
[
"BSD-3-Clause-Clear"
] | 3
|
2021-02-09T07:27:25.000Z
|
2021-04-18T15:16:37.000Z
|
/*
Copyright (c) 2019 TOYOTA MOTOR CORPORATION
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted (subject to the limitations in the disclaimer
below) provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its contributors may be used
to endorse or promote products derived from this software without specific
prior written permission.
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS
LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
*/
#include <ros/ros.h>
#include <geometry_msgs/Pose.h>
#include <gazebo_msgs/GetModelState.h>
#include <gazebo/transport/transport.hh>
#include <gazebo/msgs/msgs.hh>
#include <gazebo/gazebo_client.hh>
#include <iostream>
#include <string>
int main(int argc, char **argv)
{
gazebo::msgs::Pose pose_standard;
/*
position {
x: 19.688961029052734
y: -6.0323991775512695
z: 7.5681877136230469
}
orientation {
x: -0.2802603542804718
y: 0.12004674226045609
z: 0.87545603513717651
w: 0.37499290704727173
}
*/
pose_standard.mutable_position()->set_x(0.0);
pose_standard.mutable_position()->set_y(0.0);
pose_standard.mutable_position()->set_z(7.5681877136230469);
pose_standard.mutable_orientation()->set_x(-0.2802603542804718);
pose_standard.mutable_orientation()->set_y(0.12004674226045609);
pose_standard.mutable_orientation()->set_z(0.87545603513717651);
pose_standard.mutable_orientation()->set_w(0.37499290704727173);
const double x_offset = 19.688961029052734 - 14.0;
const double y_offset = -6.0323991775512695;
// initialize ROS node
ros::init(argc, argv, "hhcc_move_camera_controller");
ros::NodeHandle n("~");
ros::Rate rate(10);
ros::service::waitForService("/gazebo/get_model_state");
ros::ServiceClient getModelState = n.serviceClient<gazebo_msgs::GetModelState>("/gazebo/get_model_state");
gazebo_msgs::GetModelState model_state;
model_state.request.model_name = "hsrb";
// subscription to contacts info on gazebo transport
gazebo::client::setup(argc, argv);
gazebo::transport::NodePtr node(new gazebo::transport::Node());
node->Init();
gazebo::transport::PublisherPtr pub = node->Advertise<gazebo::msgs::Pose>("~/user_camera/joy_pose");
while (ros::ok()) {
getModelState.call(model_state);
double x = model_state.response.pose.position.x;
double y = model_state.response.pose.position.y;
pose_standard.mutable_position()->set_x(x + x_offset);
pose_standard.mutable_position()->set_y(y + y_offset);
pub->Publish(pose_standard);
ros::spinOnce();
rate.sleep();
}
gazebo::client::shutdown();
}
| 38.96
| 110
| 0.73999
|
butia-bots
|
f1823cd19b4682eabf1854cae1cf012c382341a9
| 1,297
|
hpp
|
C++
|
03/rectangle_cover.hpp
|
ComicSansMS/AdventOfCode2018
|
936ebf5dad7a0317ed3db0f58a16d88c4a00eabb
|
[
"Unlicense"
] | null | null | null |
03/rectangle_cover.hpp
|
ComicSansMS/AdventOfCode2018
|
936ebf5dad7a0317ed3db0f58a16d88c4a00eabb
|
[
"Unlicense"
] | null | null | null |
03/rectangle_cover.hpp
|
ComicSansMS/AdventOfCode2018
|
936ebf5dad7a0317ed3db0f58a16d88c4a00eabb
|
[
"Unlicense"
] | null | null | null |
#ifndef ADVENT_OF_CODE_03_RECTANGLE_COVER_HPP_INCLUDE_GUARD
#define ADVENT_OF_CODE_03_RECTANGLE_COVER_HPP_INCLUDE_GUARD
#include <ostream>
#include <string_view>
#include <vector>
struct Rectangle {
int left;
int top;
int width;
int height;
Rectangle(int l, int t, int w, int h);
};
bool operator==(Rectangle const& lhs, Rectangle const& rhs);
std::ostream& operator<<(std::ostream& os, Rectangle const& r);
std::vector<Rectangle> parseInput(std::string_view input);
int overlap_1d(int start1, int extent1, int start2, int extent2);
int overlap(Rectangle const& lhs, Rectangle const& rhs);
int total_overlap(std::vector<Rectangle> const& rects);
Rectangle getFieldDimensions(std::vector<Rectangle> const& rects);
class Field {
friend std::ostream& operator<<(std::ostream& os, Field const& f);
private:
std::vector<int> m_field;
Rectangle m_dimensions;
public:
explicit Field(Rectangle const& dimensions);
Rectangle getDimensions() const;
int getCell(int x, int y) const;
void placeRectangle(Rectangle const& r);
int getOverlap() const;
int findNoneOverlap(std::vector<Rectangle> const& rects) const;
private:
int getCellIndex(int x, int y) const;
};
std::ostream& operator<<(std::ostream& os, Field const& f);
#endif
| 23.160714
| 70
| 0.72552
|
ComicSansMS
|
f186566738cef3bb6a93bbc4302c2c312c513589
| 6,552
|
cpp
|
C++
|
libs/vision/src/pnp/so3.cpp
|
yhexie/mrpt
|
0bece2883aa51ad3dc88cb8bb84df571034ed261
|
[
"OLDAP-2.3"
] | null | null | null |
libs/vision/src/pnp/so3.cpp
|
yhexie/mrpt
|
0bece2883aa51ad3dc88cb8bb84df571034ed261
|
[
"OLDAP-2.3"
] | null | null | null |
libs/vision/src/pnp/so3.cpp
|
yhexie/mrpt
|
0bece2883aa51ad3dc88cb8bb84df571034ed261
|
[
"OLDAP-2.3"
] | 1
|
2021-08-16T11:50:47.000Z
|
2021-08-16T11:50:47.000Z
|
/* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
| See: http://www.mrpt.org/Authors - All rights reserved. |
| Released under BSD License. See details in http://www.mrpt.org/License |
+---------------------------------------------------------------------------+ */
#include "vision-precomp.h" // Precompiled headers
/*********************************************************************
SO3-PnP
Algorithm to estimate Position and Orientation from image data
using SO3-PnP
**********************************************************************
Copyright(C) <December 2015> <Chandra P. Mangipudi, Perry Y. Li>
This program is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#include <math.h>
#include <mrpt/utils/types_math.h>
#include "so3.h"
#define epsilon 0.00001
mrpt::vision::pnp::so3::so3(const Eigen::MatrixXd& obj_pts_, const Eigen::MatrixXd& img_pts_, const Eigen::MatrixXd& cam_intrinsic_, int n0)
{
n=n0;
obj_pts = obj_pts_;
img_pts = img_pts_.block(0,0,n,2);
cam_intrinsic = cam_intrinsic_;
beta1 = Eigen::MatrixXd::Zero(2*n,3);
Pr1 = Eigen::MatrixXd::Zero(3, 2*n);
Pr = Eigen::MatrixXd::Zero(2*n, 2*n);
Ra.setIdentity();
Rc.setIdentity();
R_ret.setIdentity();
R.setIdentity();
step.setZero();
N.setZero();
rgm.setZero();
Veca.setZero();
Vecc.setZero();
dummyrgm.setZero();
ax.setZero();
gam = Eigen::VectorXd::Zero(2*n);
err = Eigen::VectorXd::Zero(2*n);
k=0;
k1=0;
k2=0;
k3=0;
for(k=0;k<n;k++)
beta1.block(2*k, 0, 2, 2) = -cam_intrinsic.block(0,0,2,2);
}
//<---------------------- Function quatrot to get rotation matrix------------------------->//
Eigen::Matrix3d mrpt::vision::pnp::so3::quatrot(Eigen::Vector3d Vec)
{
ax=Vec;
ang = Vec.norm();
ax = ax / ang;
c_ang = cos(ang), s_ang = sin(ang);
R_ret << c_ang + ax(0)*ax(0)*(1 - c_ang), ax(0)*ax(1)*(1 - c_ang) - ax(2)*s_ang, ax(0)*ax(2)*(1 - c_ang)+ax(1)*s_ang,
ax(0)*ax(1)*(1 - c_ang) + ax(2)*s_ang, c_ang + ax(1)*ax(1)*(1 - c_ang), ax(1)*ax(2)*(1 - c_ang)-ax(0)*s_ang,
ax(0)*ax(2)*(1 - c_ang) - ax(1)*s_ang, ax(1)*ax(2)*(1 - c_ang) + ax(0)*s_ang, c_ang + ax(2) *ax(2) * (1 - c_ang);
return R_ret;
}
//<---------------------- Function to calcualte rotation error------------------------->//
void mrpt::vision::pnp::so3::err_calc(Eigen::Matrix3d & R, int flag, Eigen::VectorXd & err, Eigen::Vector3d & Vec, Eigen::Vector3d & rgm)
{
gam=Eigen::VectorXd ::Zero(2*n);
N = Eigen::MatrixXd ::Zero(3,3);
for (k = 0; k < n; k++)
{
gam.segment(2 * k, 2) = beta1.block(2 * k, 0, 2, 3)*R*(obj_pts.row(k)).transpose();
}
if (flag)
rgm = Pr1*(- gam);
err = Pr*(- gam);
for (k = 0; k < n; k++)
{
N = N + (obj_pts.row(k)).transpose()*(err.block(2 * k, 0, 2, 1)).transpose()*beta1.block(2 * k, 0, 2, 3);
}
step = R.transpose()*N.transpose() - N*R;
Vec << step(2, 1), step(0, 2), step(1, 0);
Vec /= Vec.norm();
}
//<---------------------- Function to calcualte optimal rotation matrix------------------------->//
void mrpt::vision::pnp::so3::findPosSO3(Eigen::Matrix3d & R_guess)
{
R = R_guess;
for (int k = 0; k < n; k++)
{
beta1(2*k,2) = img_pts(k,0)-cam_intrinsic(0,2)/2;
beta1(2*k+1,2)= img_pts(k,1)-cam_intrinsic(1,2)/2;
}
Pr1 = (beta1.transpose()*beta1).inverse()*beta1.transpose();
Pr = Eigen::MatrixXd ::Identity(2 * n, 2 * n) - beta1*Pr1;
err_calc(Ra, 0, err, Veca, dummyrgm);
error_a = err.norm();
error_c = error_a;
Ra = R;
Rc = Ra;
Vecc = Veca;
stepsize=M_PI/72;
while (stepsize > M_PI / 1440)
{
k2++;
while (Veca.transpose()*Vecc>0)
{
error_a = error_c;
Ra = Rc;
Veca = Vecc;
Rc = Ra*quatrot(stepsize*Veca);
err_calc(Rc, 0, err, Vecc, dummyrgm);
error_c = err.norm();
k3++;
if(k3>100)
{
k3=0;
break;
}
}
while (Veca.transpose()*Vecc < 0)
{
stepsize *= 0.98 / (1 - Veca.transpose()*Vecc);
Rc = Ra*quatrot(stepsize*Veca);
err_calc(Rc, 0, err, Vecc, dummyrgm);
error_c = err.norm();
k1++;
if(k1>100)
{
k1=0;
break;
}
}
if(k2>100)
{
k2=0;
break;
}
}
R = Rc;
err_calc(R, 1, err, dummyrgm, rgm);
}
bool mrpt::vision::pnp::so3::compute_pose(Eigen::Matrix3d& R_, Eigen::Vector3d& t_)
{
if(R_(2,2)==1)
findPosSO3(R_);
else
findPosSO3(Ra);
R_ = R;
if(rgm(2)<0)
t_ = -rgm;
else
t_ = rgm;
return true;
}
//<---------------------- Function to convert from DCM to Quaternion------------------------->//
Eigen::Vector4d mrpt::vision::pnp::so3::dcm2quat(Eigen::Matrix3d R)
{
Eigen::VectorXd q(4);
q(0) = sqrt(std::abs((1 + R(0, 0) + R(1, 1) + R(2, 2)) / 4));
if (std::abs(q(0))>epsilon)
{
q(1) = (R(2, 1) - R(1, 2)) / 4 / q(0);
q(2) = (R(0, 2) - R(2, 0)) / 4 / q(0);
q(3) = (R(1, 0) - R(0, 1)) / 4 / q(0);
}
else
{
if (R(0, 0) >= R(1, 1) && R(0, 0) >= R(2, 2))
{
q(1) = sqrt((1 + R(0, 0)) / 2);
q(2) = R(0, 1) / sqrt(2 * (1 + R(0, 0)));
q(3) = R(0, 2) / sqrt(2 * (1 + R(0, 0)));
}
else if (R(1, 1) >= R(0, 0) && R(1, 1) >= R(2, 2))
{
q(2) = sqrt((1 + R(1, 1)) / 2);
q(1) = R(1, 0) / sqrt(2 * (1 + R(1, 1)));
q(3) = R(1, 2) / sqrt(2 * (1 + R(1, 1)));
}
else if (R(2, 2) >= R(0, 0) && R(2, 2) >= R(0, 0))
{
q(3) = sqrt((1 + R(2, 2)) / 2);
q(1) = R(2, 0) / sqrt(2 * (1 + R(2, 2)));
q(2) = R(2, 1) / sqrt(2 * (1 + R(2, 2)));
}
}
return q;
}
| 26.313253
| 140
| 0.492369
|
yhexie
|
f187dc8398db8327907d343b01fd21f8def89824
| 3,905
|
cc
|
C++
|
63/main.cc
|
buyno/CodingInterview2
|
9765010e3e8aa96df5cc0456f616fd764a4385a8
|
[
"Apache-2.0"
] | null | null | null |
63/main.cc
|
buyno/CodingInterview2
|
9765010e3e8aa96df5cc0456f616fd764a4385a8
|
[
"Apache-2.0"
] | null | null | null |
63/main.cc
|
buyno/CodingInterview2
|
9765010e3e8aa96df5cc0456f616fd764a4385a8
|
[
"Apache-2.0"
] | null | null | null |
// 股票的最大利润
// 1)暴力 O(n*n)
// 2) 求n-1个数字中的最小值,则n位的数字对应的最大利润就是与n-1中最小值的差值。O(n)
#include <stdio.h>
#include <assert.h>
int getMaxProfit_1(int *data, int length, int &maxprofit, int &startvalue, int &endvalue)
{
if (data == nullptr || length < 2)
{
return 0;
}
maxprofit = data[1] - data[0];
int start = 0;
int end = 1;
for (int i = 0; i < length - 1; i++)
{
for (int j = i + 1; j < length; j++)
{
if (data[j] - data[i] > maxprofit)
{
maxprofit = data[j] - data[i];
start = i;
end = j;
}
}
}
startvalue = data[start];
endvalue = data[end];
// printf("max:%d,start:%d,end:%d\n", maxprofit, data[start], data[end]);
return 1;
}
int getMaxProfit_2(int *data, int length, int &maxprofit, int &startvalue, int &endvalue)
{
if (data == nullptr || length < 2)
{
return 0;
}
int min = data[0];
int minindex = 0;
int max = data[1] - data[0];
int start = 0;
int end = 1;
for (int i = 1; i < length; i++)
{
if (data[i] - min > max)
{
start = minindex;
end = i;
max = data[i] - min;
}
if (data[i] < min)
{
min = data[i];
minindex = i;
}
}
startvalue = data[start];
endvalue = data[end];
// printf("max:%d,start:%d,end:%d\n", max, data[start], data[end]);
return 1;
}
void test1()
{
int data[] = {9, 11, 8, 5, 7, 12, 16, 14};
int length = sizeof(data) / sizeof(data[0]);
int max;
int start;
int end;
int res;
res = getMaxProfit_1(nullptr, length, max, start, end);
assert(res == 0);
res = getMaxProfit_2(nullptr, length, max, start, end);
assert(res == 0);
}
void test2()
{
int data[] = {9, 11, 8, 5, 7, 12, 16, 14};
int length = sizeof(data) / sizeof(data[0]);
int max;
int start;
int end;
int res;
res = getMaxProfit_1(data, length, max, start, end);
assert(res == 1 && max == 11 && start == 5 && end == 16);
res = getMaxProfit_2(data, length, max, start, end);
assert(res == 1 && max == 11 && start == 5 && end == 16);
}
void test3()
{
int data[] = {5, 7, 8, 9, 11, 12, 14, 16};
int length = sizeof(data) / sizeof(data[0]);
int max;
int start;
int end;
int res;
res = getMaxProfit_1(data, length, max, start, end);
assert(res == 1 && max == 11 && start == 5 && end == 16);
res = getMaxProfit_2(data, length, max, start, end);
assert(res == 1 && max == 11 && start == 5 && end == 16);
}
void test4()
{
int data[] = {16, 14, 12, 11, 9, 8, 7, 5};
int length = sizeof(data) / sizeof(data[0]);
int max;
int start;
int end;
int res;
res = getMaxProfit_1(data, length, max, start, end);
assert(res == 1 && max == -1 && start == 12 && end == 11);
res = getMaxProfit_2(data, length, max, start, end);
assert(res == 1 && max == -1 && start == 12 && end == 11);
}
void test5()
{
int data[] = {9, 11};
int length = sizeof(data) / sizeof(data[0]);
int max;
int start;
int end;
int res;
res = getMaxProfit_1(data, length, max, start, end);
assert(res == 1 && max == 2 && start == 9 && end == 11);
res = getMaxProfit_2(data, length, max, start, end);
assert(res == 1 && max == 2 && start == 9 && end == 11);
}
void test6()
{
int data[] = {11, 9};
int length = sizeof(data) / sizeof(data[0]);
int max;
int start;
int end;
int res;
res = getMaxProfit_1(data, length, max, start, end);
assert(res == 1 && max == -2 && start == 11 && end == 9);
res = getMaxProfit_2(data, length, max, start, end);
assert(res == 1 && max == -2 && start == 11 && end == 9);
}
int main()
{
test1();
test2();
test3();
test4();
test5();
test6();
}
| 25.690789
| 89
| 0.501408
|
buyno
|
f18cd05d6653f857ac6a49688eebece3226d326a
| 601
|
cpp
|
C++
|
orlodrimbot/bot_requests_archiver/bot_requests_archiver.cpp
|
orlodrim/orlodrimbot
|
7d66e4e29d31338e394c8cb90aaad5d0f76ee4b3
|
[
"MIT"
] | 2
|
2020-12-14T17:42:36.000Z
|
2021-01-27T22:15:15.000Z
|
orlodrimbot/bot_requests_archiver/bot_requests_archiver.cpp
|
orlodrim/orlodrimbot
|
7d66e4e29d31338e394c8cb90aaad5d0f76ee4b3
|
[
"MIT"
] | null | null | null |
orlodrimbot/bot_requests_archiver/bot_requests_archiver.cpp
|
orlodrim/orlodrimbot
|
7d66e4e29d31338e394c8cb90aaad5d0f76ee4b3
|
[
"MIT"
] | 1
|
2021-01-03T18:20:53.000Z
|
2021-01-03T18:20:53.000Z
|
// Archive requests on https://fr.wikipedia.org/wiki/Wikipédia:Bot/Requêtes
#include "cbl/args_parser.h"
#include "mwclient/util/init_wiki.h"
#include "mwclient/wiki.h"
#include "bot_requests_archiver_lib.h"
int main(int argc, char** argv) {
mwc::WikiFlags wikiFlags(mwc::FRENCH_WIKIPEDIA_BOT);
bool dryRun = false;
bool forceNewMonth = false;
cbl::parseArgs(argc, argv, &wikiFlags, "--dryrun", &dryRun, "--forcenewmonth", &forceNewMonth);
mwc::Wiki wiki;
mwc::initWikiFromFlags(wikiFlags, wiki);
BotRequestsArchiver archiver(wiki, dryRun);
archiver.run(forceNewMonth);
return 0;
}
| 33.388889
| 97
| 0.742097
|
orlodrim
|
f1944514ca1b9912842a9ecc95133b76a8cbd501
| 999
|
cpp
|
C++
|
interleave.cpp
|
arushs/Data-Structures-Algorithms
|
b1039106560ddb930742ccc56fe8194e15082fa9
|
[
"MIT"
] | null | null | null |
interleave.cpp
|
arushs/Data-Structures-Algorithms
|
b1039106560ddb930742ccc56fe8194e15082fa9
|
[
"MIT"
] | null | null | null |
interleave.cpp
|
arushs/Data-Structures-Algorithms
|
b1039106560ddb930742ccc56fe8194e15082fa9
|
[
"MIT"
] | 1
|
2020-10-01T12:18:32.000Z
|
2020-10-01T12:18:32.000Z
|
/*
* SumSquares.cpp
*
* purpose: To find the total sum of the squares of the numbers from 1 to n
* n is a user-inputted number
*
*
* @author Arush Shankar
* @version 1.0 8/01/14
*/
#include <iostream>
#include <stack>
#include <queue>
using namespace std;
int main() {
queue<int> q;
for(int i = 1; i <= 10; i++) {
q.push(i);
}
int size = q.size();
stack<int> s;
for (int i = 0; i < size; i++) {
s.push(q.front());
q.pop();
}
for (int i = 0; i < size; i++) {
q.push(s.top());
s.pop();
}
for (int i = 0; i < size; i++) {
s.push(q.front());
q.pop();
}
for (int i = 0; i < size/2; i++) {
q.push(s.top());
s.pop();
}
for (int i = 0; i < size/2; i++) {
q.push(q.front());
q.pop();
q.push(s.top());
s.pop();
}
for(int i = 0; i < 10; i++) {
cout << q.front() << " ";
q.pop();
}
cout << endl;
}
| 18.849057
| 75
| 0.424424
|
arushs
|
f194ebac6f4cec477c7b9a903e2deddbbb5fa317
| 726
|
cpp
|
C++
|
873B/873B.cpp
|
suzyz/Codeforces
|
eec03b19dabb9fd2f60e8c53d120d92fb9caa557
|
[
"MIT"
] | 1
|
2019-10-07T05:00:29.000Z
|
2019-10-07T05:00:29.000Z
|
873B/873B.cpp
|
suzyz/Codeforces
|
eec03b19dabb9fd2f60e8c53d120d92fb9caa557
|
[
"MIT"
] | null | null | null |
873B/873B.cpp
|
suzyz/Codeforces
|
eec03b19dabb9fd2f60e8c53d120d92fb9caa557
|
[
"MIT"
] | null | null | null |
#include <iostream>
#include <cstdio>
#include <cstring>
#include <map>
#include <set>
#include <vector>
#include <climits>
#include <iomanip>
using namespace std;
const int maxn = 100010;
int n,diff[maxn];
char s[maxn];
int min_idx[maxn*2 + 10];
int main()
{
scanf("%d",&n);
scanf("%s",s+1);
int sum0 = 0, sum1 = 0;
memset(min_idx,-1,sizeof(min_idx));
min_idx[maxn] = 0;
for (int i = 1; i<=n; ++i)
{
if (s[i] == '0')
++sum0;
else
++sum1;
diff[i] = sum0 - sum1;
if (min_idx[diff[i] + maxn] == -1)
min_idx[diff[i] + maxn] = i;
}
int ans = 0;
for (int i = 1; i <= n; ++i)
{
int idx = min_idx[diff[i] + maxn];
if (idx != -1)
ans = max(ans,i - idx);
}
printf("%d\n",ans);
return 0;
}
| 15.125
| 36
| 0.556474
|
suzyz
|
1af7f494dbef8a5d855fd01f27a019fd0e821f51
| 43,554
|
cpp
|
C++
|
SOURCES/sim/bomb/bombmain.cpp
|
IsraelyFlightSimulator/Negev-Storm
|
86de63e195577339f6e4a94198bedd31833a8be8
|
[
"Unlicense"
] | 1
|
2021-02-19T06:06:31.000Z
|
2021-02-19T06:06:31.000Z
|
src/sim/bomb/bombmain.cpp
|
markbb1957/FFalconSource
|
07b12e2c41a93fa3a95b912a2433a8056de5bc4d
|
[
"BSD-2-Clause"
] | null | null | null |
src/sim/bomb/bombmain.cpp
|
markbb1957/FFalconSource
|
07b12e2c41a93fa3a95b912a2433a8056de5bc4d
|
[
"BSD-2-Clause"
] | 2
|
2019-08-20T13:35:13.000Z
|
2021-04-24T07:32:04.000Z
|
#include "Graphics/Include/drawbsp.h"
#include "Graphics/Include/rviewpnt.h"
#include "Graphics/Include/terrtex.h"
#include "stdhdr.h"
#include "bomb.h"
#include "bombdata.h"
#include "falcmesg.h"
#include "otwdrive.h"
#include "initdata.h"
#include "waypoint.h"
#include "object.h"
#include "simdrive.h"
#include "fsound.h"
#include "soundfx.h"
#include "MsgInc/DamageMsg.h"
#include "MsgInc/MissileEndMsg.h"
#include "campBase.h"
#include "campweap.h"
#include "camp2sim.h"
#include "sfx.h"
#include "fakerand.h"
#include "aircrft.h"
#include "acmi/src/include/acmirec.h"
#include "classtbl.h"
#include "Feature.h"
#include "falcsess.h"
#include "persist.h"
#include "entity.h"
#include "camplist.h"
#include "weather.h"
#include "team.h"
#include "sms.h"//me123 status test. addet
#include "profiler.h" // MLR 5/21/2004 -
#include "digi.h"
//sfr: added checks
#include "InvalidBufferException.h"
/* 2001-09-07 S.G. RP5 */
extern bool g_bRP5Comp;
//#define WEAP_LGB_3RD_GEN 0x40 moved to campwp.h and changed to 0x80
// this means that every sec, the horizontal velocity loses this much
float BombClass::dragConstant = 140.0f;
//extern bool g_bArmingDelay;//me123 MI replaced with g_bRealisticAvionics
extern bool g_bRealisticAvionics;
extern bool g_bEnableWindsAloft;
#include "fcc.h"
extern float g_fNukeStrengthFactor;
extern float g_fNukeDamageMod;
extern float g_fNukeDamageRadius;
extern float g_fJDAMLift; //Wombat778 3-12-04
extern float g_fAIJSOWmaxRange; // Cobra
void CalcTransformMatrix (SimBaseClass* theObject);
#ifdef USE_SH_POOLS
MEM_POOL BombClass::pool;
#endif
BombClass::BombClass(VU_BYTE** stream, long *rem) : SimWeaponClass(stream, rem)
{
BombType bt;
memcpychk(&bt, stream, sizeof(bt), rem);
InitLocalData(bt);
if (parent && !IsLocal()) {
flags |= FirstFrame;
//VuReferenceEntity (parent);
//parentReferenced = TRUE;
SetYPR(parent->Yaw(), parent->Pitch(), parent->Roll());
}
}
BombClass::BombClass (FILE* filePtr) : SimWeaponClass(filePtr)
{
BombType bt;
fread(&bt, sizeof(bt), 1, filePtr);
InitLocalData(bt);
}
BombClass::BombClass (int type, BombType btype) : SimWeaponClass(type){
InitLocalData(btype);
}
BombClass::~BombClass(){
CleanupLocalData();
}
int BombClass::SaveSize()
{
return SimWeaponClass::SaveSize() + sizeof (BombType);
}
int BombClass::Save(VU_BYTE **stream)
{
int saveSize = SimWeaponClass::Save (stream);
if (flags & IsChaff)
bombType = Chaff;
else if (flags & IsFlare)
bombType = Flare;
memcpy (*stream, &bombType, sizeof (int));
*stream += sizeof (int);
return (saveSize + sizeof (int));
}
int BombClass::Save(FILE *file)
{
int saveSize = SimWeaponClass::Save (file);
if (flags & IsChaff)
bombType = Chaff;
else if (flags & IsFlare)
bombType = Flare;
fwrite (&bombType, sizeof (int), 1, file);
return (saveSize + sizeof (int));
}
void BombClass::InitData(){
SimWeaponClass::InitData();
InitLocalData(static_cast<BombType>(bombType));
}
void BombClass::InitLocalData(BombType btype){
bombType = btype;
lauTimer = 0; // MLR 3/5/2004 -
lauWeaponId = 0;
burstHeight = 0.0F;
detonateHeight = 0.0F;
timeOfDeath = 0;
specialData.flags |= MOTION_BMB_AI;
flags = 0;
dragCoeff = 0.0f;
desDxPrev = 0.0f;
desDyPrev = 0.0f;
desDzPrev = 0.0f;
}
void BombClass::CleanupLocalData(){
// empty
}
void BombClass::CleanupData(){
CleanupLocalData();
SimWeaponClass::CleanupData();
}
void BombClass::Init(SimInitDataClass* initData){
if (initData == NULL){
Init();
}
}
void BombClass::Init()
{
DrawableObject* tmpObject;
tmpObject = drawPointer;
drawPointer = NULL;
SimWeaponClass::Init ();
if (tmpObject)
{
delete drawPointer;
drawPointer = tmpObject;
}
Falcon4EntityClassType* classPtr;
WeaponClassDataType* wc;
SimWeaponDataType* wpnDefinition;
int dataIdx;
// MLR 2003-11-10 cut & paste from MissleClass
auxData = NULL;
classPtr = (Falcon4EntityClassType*)EntityType();
wc = (WeaponClassDataType*)classPtr->dataPtr;
wpnDefinition = &SimWeaponDataTable[classPtr->vehicleDataIndex];
dataIdx = wpnDefinition->dataIdx;
ReadInput(dataIdx);
LauInit(); // MLR 3/5/2004 -
// Am I an LGB
if (EntityType()->classInfo_[VU_STYPE] == STYPE_BOMB_GUIDED)
flags |= IsLGB;
//Wombat778 3-09-04 Is this a GPS bomb?
if (EntityType()->classInfo_[VU_STYPE] == STYPE_BOMB_GPS)
flags |= IsGPS;
// Cobra - GPS/JSOW
if (EntityType()->classInfo_[VU_STYPE] == STYPE_BOMB_JSOW)
flags |= (IsGPS | IsJSOW);
}
int BombClass::Wake(){
int retval = 0;
// KCK: Sets up this object to become sim aware
if (IsAwake()){
return retval;
}
InitTrail();
ExtraGraphics();
SimWeaponClass::Wake();
// Change the last update time to force and exec next frame;
// sfr: need to check if this has an effect
//AlignTimeSubtract (1);
return retval;
}
int BombClass::Sleep(){
return SimWeaponClass::Sleep();
}
void BombClass::Start(vector* pos, vector* rate, float cD, SimObjectType *targetPtr )
{
Falcon4EntityClassType *classPtr;
WeaponClassDataType *wc;
// 2002-02-26 ADDED BY S.G. If we passed a targetPtr,
// keep note of it in case the AI target is aggregated.
// That way we can send a Damage message to the 2D engine to take care of the target
if (targetPtr)
SetTarget(targetPtr);
// END OF ADDED SECTION
if (parent)
{
flags |= FirstFrame;
//VuReferenceEntity (parent);
//parentReferenced = TRUE;
SetYPR(parent->Yaw(), parent->Pitch(), parent->Roll());
}
else
{
SetYPR((float)atan2(rate->y, rate->x), 0.0F, 0.0F);
}
x = pos->x;
y = pos->y;
z = pos->z;
dragCoeff = cD;
// edg hack. drag coeff of 1.0f we assume to be a durandal
if ( cD >= 1.0f )
flags |= IsDurandal;
SetPosition (x, y, z);
CalcTransformMatrix (this);
SetDelta (rate->x, rate->y, rate->z);
SetYPRDelta(0.0F, 0.0F, 0.0F);
// sound effect
//SoundPos.Sfx( SFX_BOMBDROP, 0, 1, 0); // MLR 6/4/2004 - This won't work here anymore
// if the bomb is altitude detonated (AGL), check to make sure we're
// 2.0 sec above the detonation alt when dropped. If not, we don't fuse and
// do a ground impact....
// hack for testing
// burstHeight *= 1.2f;
if ( burstHeight > 0.0f )
{
// get entity and weapon info
classPtr = &Falcon4ClassTable[Type() - VU_LAST_ENTITY_TYPE];
wc = (WeaponClassDataType *)classPtr->dataPtr;
// if we're not a cluster type, we should have no burst height
if ( !(wc->Flags & WEAP_CLUSTER) )
{
burstHeight = 0.0f;
}
}
hitObj = NULL;
// for alt fuse
timeOfDeath = SimLibElapsedTime;
}
void BombClass::ExtraGraphics(void)
{
}
int BombClass::Exec (void)
{
// FalconDamageMessage* message;
float terrainHeight;
float delta;
ACMIGenPositionRecord genPos;
FalconMissileEndMessage* endMessage;
float radical, tFall, desDx, desDy;
float deltaX, deltaY, deltaZ, vt;
float rx, ry, rz, range;
mlTrig trigYaw, trigPitch;
float bheight;
float grav;
float armingdelay = 0.0f;//me123 done this way to awoid a crash when player dies in matchplay
// Debub ==========================
static FILE *fp = NULL;
//if (!fp)
//fp = fopen("g:\\JSOWtrgtFinal.txt", "w");
//=================================
SoundPos.UpdatePos(this);
AircraftClass *playerAC = SimDriver.GetPlayerAircraft();
if (playerAC && playerAC->IsSetFlag(MOTION_OWNSHIP)){
armingdelay = playerAC->Sms->armingdelay;//me123
}
if (IsDead() || (flags & FirstFrame))
{
flags &= ~FirstFrame;
return TRUE;
}
UpdateTrail();
// ACMI Output
if (gACMIRec.IsRecording() && (SimLibFrameCount & 0x07 ) == 0)
{
genPos.hdr.time = SimLibElapsedTime * MSEC_TO_SEC + OTWDriver.todOffset;
genPos.data.type = Type();
genPos.data.uniqueID = ACMIIDTable->Add(Id(),NULL,TeamInfo[GetTeam()]->GetColor());//.num_;
genPos.data.x = XPos();
genPos.data.y = YPos();
genPos.data.z = ZPos();
genPos.data.roll = Roll();
genPos.data.pitch = Pitch();
genPos.data.yaw = Yaw();
if ( flags & IsFlare )
gACMIRec.FlarePositionRecord( (ACMIFlarePositionRecord *)&genPos );
else if ( flags & IsChaff )
gACMIRec.ChaffPositionRecord( (ACMIChaffPositionRecord *)&genPos );
else
gACMIRec.GenPositionRecord( &genPos );
}
if (!IsLocal())
{
return FALSE;
}
if(IsExploding())
{
DoExplosion();
return TRUE;
}
else if (SimDriver.MotionOn())
{
SpecialGraphics();
x = XPos() + XDelta() * SimLibMajorFrameTime;
y = YPos() + YDelta() * SimLibMajorFrameTime;
z = ZPos() + ZDelta() * SimLibMajorFrameTime;
float dx, dy, ratx, raty, vdrag, horiz;
//dumb bomb algorithm
/*y = Tan(theta) * x - (g * x^2)/(2(*v*cos(theta)^2)*/
horiz = (float)sqrt( XDelta() * XDelta() + YDelta() * YDelta() + 0.1f);
ratx = (float)fabs(XDelta())/horiz;
raty = (float)fabs(YDelta())/horiz;
// for the 1st sec don't apply drag
grav = GRAVITY;
if (SimLibElapsedTime - timeOfDeath > 1 * SEC_TO_MSEC )
{
vdrag = dragCoeff * dragConstant * SimLibMajorFrameTime;
// super high drag will mean also reduced gravity due to
// air friction....
if ( dragCoeff >= 1.0f )
grav = GRAVITY * 0.65F;
}
else
{
vdrag = 0.0f;
}
if ( fabs( XDelta() ) < vdrag * ratx)
{
dx = 0.0f;
}
else
{
if ( XDelta() > 0.0f )
dx = XDelta() - vdrag * ratx;
else
dx = XDelta() + vdrag * ratx;
}
if ( fabs( YDelta() ) < vdrag * raty)
{
dy = 0.0f;
}
else
{
if ( YDelta() > 0.0f )
dy = YDelta() - vdrag * raty;
else
dy = YDelta() + vdrag * raty;
}
//me123 lets add the wind change effect to the bomb fall
//MI.... check for our variable...
if(g_bEnableWindsAloft)
{
mlTrig trigWind;
float wind;
Tpoint pos;
pos.x = x;
pos.y =y;
pos.z = z;
// current wind
mlSinCos(&trigWind, ((WeatherClass*)realWeather)->WindHeadingAt(&pos));
wind = ((WeatherClass*)realWeather)->WindSpeedInFeetPerSecond(&pos);
float winddx = trigWind.cos * wind;
float winddy = trigWind.sin * wind;
//the wind last time we checked
pos.z = z -ZDelta() * SimLibMajorFrameTime;
mlSinCos(&trigWind, ((WeatherClass*)realWeather)->WindHeadingAt(&pos));
wind = ((WeatherClass*)realWeather)->WindSpeedInFeetPerSecond(&pos);
float lastwinddx = trigWind.cos * wind;
float lastwinddy = trigWind.sin * wind;
//factor in the change
dx += (winddx-lastwinddx)*0.9f;//not all the wind since no inertie is factored in
dy += (winddy-lastwinddy)*0.9f;//not all the wind since no inertie is factored in
}
// SetDelta (XDelta(), YDelta(), ZDelta() + GRAVITY * SimLibMajorFrameTime);
// RV - Biker - Give some extra high gravity for the first ms
//SetDelta (dx, dy, ZDelta() + grav * SimLibMajorFrameTime);
if ((SimLibElapsedTime - timeOfDeath) <= (0.25f * SEC_TO_MSEC))
SetDelta (XDelta(), YDelta(), ZDelta() + GRAVITY * SimLibMajorFrameTime * 2.0f);
else if((SimLibElapsedTime - timeOfDeath) <= (2.0f * SEC_TO_MSEC))
SetDelta (XDelta(), YDelta(), ZDelta() + GRAVITY * SimLibMajorFrameTime);
else
SetDelta (dx, dy, ZDelta() + grav * SimLibMajorFrameTime);
vt = (float)sqrt(XDelta()*XDelta() + YDelta()*YDelta() + ZDelta()*ZDelta());
SetYPR ((float)atan2 (YDelta(), XDelta()), -(float)asin(ZDelta() / vt), Roll());
// NOTE: Yaw never changes, so we could avoid much of this...
mlSinCos (&trigYaw, Yaw());
mlSinCos (&trigPitch, Pitch());
dmx[0][0] = trigYaw.cos * trigPitch.cos;
dmx[0][1] = trigYaw.sin * trigPitch.cos;
dmx[0][2] = -trigPitch.sin;
dmx[1][0] = -trigYaw.sin;
dmx[1][1] = trigYaw.cos;
dmx[1][2] = 0.0F;
dmx[2][0] = trigYaw.cos * trigPitch.sin;
dmx[2][1] = trigYaw.sin * trigPitch.sin;
dmx[2][2] = trigPitch.cos;
// special case durandal -- when fired remove chute
if ( (flags & IsDurandal) &&
(flags & FireDurandal) &&
drawPointer &&
((DrawableBSP*)drawPointer)->GetNumSwitches() > 0 )
{
((DrawableBSP *)drawPointer)->SetSwitchMask( 0, 0 );
}
// special case durandal. If x and y vel reaches 0 we fire it
// by starting the special effect
if ( (flags & IsDurandal) &&
!(flags & FireDurandal) &&
dx == 0.0f &&
dy == 0.0f )
{
flags |= FireDurandal;
// accelerate towards ground
SetDelta (dx, dy, ZDelta() + 500.0f);
endMessage = new FalconMissileEndMessage (Id(), FalconLocalGame);
endMessage->RequestReliableTransmit ();
endMessage->RequestOutOfBandTransmit ();
endMessage->dataBlock.fEntityID = parent->Id();
endMessage->dataBlock.fCampID = parent->GetCampID();
endMessage->dataBlock.fSide = parent->GetCountry();
endMessage->dataBlock.fPilotID = (uchar)shooterPilotSlot;
endMessage->dataBlock.fIndex = parent->Type();
endMessage->dataBlock.dEntityID = FalconNullId;
endMessage->dataBlock.dCampID = 0;
endMessage->dataBlock.dSide = 0;
endMessage->dataBlock.dPilotID = 0;
endMessage->dataBlock.dIndex = 0;
endMessage->dataBlock.fWeaponUID = Id();
endMessage->dataBlock.wIndex = Type();
endMessage->dataBlock.x = XPos() + XDelta() * SimLibMajorFrameTime * 2.0f;
endMessage->dataBlock.y = YPos() + YDelta() * SimLibMajorFrameTime * 2.0f;
endMessage->dataBlock.z = ZPos() + ZDelta() * SimLibMajorFrameTime * 2.0f;
endMessage->dataBlock.xDelta = XDelta();
endMessage->dataBlock.yDelta = YDelta();
endMessage->dataBlock.zDelta = ZDelta();
endMessage->dataBlock.groundType = -1;
endMessage->dataBlock.endCode = FalconMissileEndMessage::BombImpact;
endMessage->SetParticleEffectName(auxData->psBombImpact); // MLR 6/26/2004 -
FalconSendMessage (endMessage,FALSE);
}
///////////// - RED - *************
//MI for refined LGB stuff
// 2002-01-06 MODIFIED BY S.G.
// In the odd chance that there is no parent, neither this or the
// realistic section would be ran. If no parent, run this
// There is no danger of a CTD if parent is NULL because the
// OR will have it enter the if statement without running the 'IsPlayer'.
// if(!g_bRealisticAvionics || ( parent && !((AircraftClass *)parent)->IsPlayer()))
// Cobra - Forcing all non-Player (AI) into this section causes their bombs
// to not be guided, thus randon hit pattern
// if(!g_bRealisticAvionics || !parent)
/////////////////////////////////////////////////////
// RED - enough enter when it's not a guided Bomb or LGB for AI
// ( the targeting sysem would CTD if AI managed by player code,
// As the PlayerEntity is not the one to use )
if (
!g_bRealisticAvionics || !parent || !(flags & GUIDED_BOMB)
|| ((((!((AircraftClass *)parent.get())->IsPlayer())
|| (((AircraftClass *)parent.get())->IsPlayer())
&& ((AircraftClass *)parent.get())->AutopilotType() == AircraftClass::CombatAP))
&& (flags & IsLGB))
){
// RV - Biker - Add 2.0 sec delay for guidance
if (flags & IsLGB && (SimLibElapsedTime - timeOfDeath) > (2.0f * SEC_TO_MSEC)){
if (targetPtr){
// JPO - target might be higher than us...
if (targetPtr->BaseData()->ZPos() <= ZPos()) {
radical = 0;
}
else {
radical = (float)sqrt (ZDelta()*ZDelta() + 2.0F * GRAVITY * (targetPtr->BaseData()->ZPos() - ZPos()));
}
tFall = -ZDelta() - radical;
if (tFall < 0.0F)
tFall = -ZDelta() + radical;
tFall /= GRAVITY;
deltaX = targetPtr->BaseData()->XPos() - XPos();
deltaY = targetPtr->BaseData()->YPos() - YPos();
deltaZ = (float)fabs(targetPtr->BaseData()->ZPos() - ZPos());
rx = dmx[0][0] * deltaX + dmx[0][1] * deltaY + dmx[0][2] * deltaZ;
ry = dmx[1][0] * deltaX + dmx[1][1] * deltaY + dmx[1][2] * deltaZ;
rz = dmx[2][0] * deltaX + dmx[2][1] * deltaY + dmx[2][2] * deltaZ;
range = (float)sqrt(rx*rx + ry*ry + rz*rz);
// 45 degree limit on the seeker
// 2001-04-17 MODIFIED BY S.G. AGAIN, THEY MIXE UP DEGREES AND RADIAN BUT THIS TIME, THE OTHER WAY AROUND...
// PLUS THEY FORGOT THAT atan2 RETURNS A SIGNED VALUE
// END THEN, range-rx * rx is range - rx*rx which is ALWAYS NEGATIVE. CAN'T TAKE A SQUARE ROOT OF A NEGATIVE NUMBER. I'VE CODED WHAT I *THINK* THEY WERE TRYING TO DO...
// if (atan2(sqrt(range-rx * rx),rx) < 45.0F * RTD)
//JAM 17Apr04 - This is what they were trying to do buddy :)
if(Abs(acosf(rx/range)) <= 45.f*DTR)
// if (fabs(atan2(sqrt(range*range - rx*rx),rx)) < 45.0F * DTR)
{
desDx = (deltaX)/tFall;
desDy = (deltaY)/tFall;
// 2001-04-17 ADDED BY S.G. WE'LL KEEP OUR LAST desDx and desDy IN THE UNUSED tgtX and tgtY BombClass VARIABLE (RENAMED desDxPrev AND desDyPrev) TO IN CASE WE LOOSE LOCK LATER
desDxPrev = desDx;
desDyPrev = desDy;
// END OF ADDED SECTION
SetDelta (0.8F*XDelta() + 0.2F*desDx, 0.8F*YDelta() + 0.2F*desDy, ZDelta());
}
// 2002-01-05 ADDED BY S.G. Similarly to below. if the lgb cannot see the laser, it can't guide (forgot to do this).
else if (g_bRP5Comp)
{
// 2001-04-17 ADDED BY S.G. WE'LL KEEP GOING WHERE WE WERE GOING...
Falcon4EntityClassType *classPtr = &Falcon4ClassTable[Type() - VU_LAST_ENTITY_TYPE];
WeaponClassDataType *wc = (WeaponClassDataType *)classPtr->dataPtr;
// If a 3rg gen LGB, fins are more precised, even when no longer lased...
//#define WEAP_LGB_3RD_GEN 0x40 moved to campwp.h and changed to 0x80
if (wc->Flags & WEAP_LGB_3RD_GEN)
SetDelta (0.8F*XDelta() + 0.2f*desDxPrev, 0.8f*YDelta() + 0.2f*desDyPrev, ZDelta());
else // 2001-10-19 MODIFIED BY S.G. IT'S * 1.05f AND NOT * 2.0f!
SetDelta ((0.8F*XDelta() + 0.2f*desDxPrev) * 1.05f, (0.8f*YDelta() + 0.2f*desDyPrev) * 1.05f, ZDelta());
}
if (!((SimBaseClass*)(targetPtr->BaseData()))->IsSetFlag(IS_LASED))
{
targetPtr->Release();
targetPtr = NULL;
}
}
// 2001-04-17 ADDED BY S.G. WE'LL KEEP GOING WHERE WE WERE GOING...
else if (g_bRP5Comp)
{
// 2001-04-17 ADDED BY S.G. WE'LL KEEP GOING WHERE WE WERE GOING...
Falcon4EntityClassType *classPtr = &Falcon4ClassTable[Type() - VU_LAST_ENTITY_TYPE];
WeaponClassDataType *wc = (WeaponClassDataType *)classPtr->dataPtr;
// If a 3rg gen LGB, fins are more precised, even when no longer lased...
//#define WEAP_LGB_3RD_GEN 0x40 moved to campwp.h and changed to 0x80
if (wc->Flags & WEAP_LGB_3RD_GEN)
SetDelta (0.8F*XDelta() + 0.2f*desDxPrev, 0.8f*YDelta() + 0.2f*desDyPrev, ZDelta());
else // 2001-10-19 MODIFIED BY S.G. IT'S * 1.05f AND NOT * 2.0f!
SetDelta ((0.8F*XDelta() + 0.2f*desDxPrev) * 1.05f, (0.8f*YDelta() + 0.2f*desDyPrev) * 1.05f, ZDelta());
}
}
}
// RV - Biker - Add 2 sec delay for guidance
else if((flags & IsLGB) && g_bRealisticAvionics && (SimLibElapsedTime - timeOfDeath) > (2.0f * SEC_TO_MSEC))
{
AircraftClass *parentAC = parent->IsAirplane() ? static_cast<AircraftClass*>(parent.get()) : NULL;
//AI's don't need to keep a lock until impact
// sfr: since someone removed the player check here, im using the parent instead
//if(parent /* && ((AircraftClass *)parent)->IsPlayer()*/ )
if(parentAC)
{
radical = 0;
//if (playerAC->FCC->groundDesignateZ <= ZPos())
if (parentAC->FCC->groundDesignateZ <= ZPos()){
radical = 0;
}
else {
//radical = (float)sqrt (ZDelta()*ZDelta() + 2.0F *
//GRAVITY * (playerAC->FCC->groundDesignateZ - ZPos()));
radical = (float)sqrt (ZDelta()*ZDelta() + 2.0F * GRAVITY *
(parentAC->FCC->groundDesignateZ - ZPos()));
}
tFall = -ZDelta() - radical;
if (tFall < 0.0F){ tFall = -ZDelta() + radical; }
tFall /= GRAVITY;
//deltaX = playerAC->FCC->groundDesignateX - XPos();
//deltaY = playerAC->FCC->groundDesignateY - YPos();
//deltaZ = playerAC->FCC->groundDesignateZ - ZPos();
deltaX = parentAC->FCC->groundDesignateX - XPos();
deltaY = parentAC->FCC->groundDesignateY - YPos();
deltaZ = parentAC->FCC->groundDesignateZ - ZPos();
rx = dmx[0][0] * deltaX + dmx[0][1] * deltaY + dmx[0][2] * deltaZ;
ry = dmx[1][0] * deltaX + dmx[1][1] * deltaY + dmx[1][2] * deltaZ;
rz = dmx[2][0] * deltaX + dmx[2][1] * deltaY + dmx[2][2] * deltaZ;
range = (float)sqrt(rx*rx + ry*ry + rz*rz);
//float range1 = (float)sqrt(deltaX*deltaX + deltaY*deltaY+deltaZ*deltaZ);
//float rate = (float)sqrt(XDelta()*XDelta()+YDelta()*YDelta()+ZDelta()*ZDelta());
//we need to find the time until impact
if (parentAC->IsPlayer()){
parentAC->FCC->ImpactTime = tFall;
}
// 18 degree limit on the seeker
/* JAM 17Apr04 - (range-rx * rx) yields a negative number, you can't take the square
root of a negative number! In VC6, the seeker check always passes, but in VC >= 6 + PP,
the check always FAILS, due to differences in how the compilers treat sqrt(-). This is
why LGB's consistantly missed their targets in anything but vanilla VC6.
*/
if (
Abs(acosf(rx/range)) <= 18.f*DTR &&
(parentAC->IsPlayer() && parentAC->FCC->LaserFire) ||
!parentAC->IsPlayer()
)
{
desDx = (deltaX)/tFall;
desDy = (deltaY)/tFall;
// 2001-04-17 ADDED BY S.G. WE'LL KEEP OUR LAST desDx and desDy IN THE UNUSED
// tgtX and tgtY BombClass VARIABLE (RENAMED desDxPrev AND desDyPrev)
// TO IN CASE WE LOOSE LOCK LATER
desDxPrev = desDx;
desDyPrev = desDy;
// END OF ADDED SECTION
SetDelta (0.8F*XDelta() + 0.2F*desDx, 0.8F*YDelta() + 0.2F*desDy, ZDelta());
}
else
{
if(!(desDxPrev == 0.0f && desDyPrev == 0.0f && desDzPrev == 0.0f))
{
// 2001-04-17 ADDED BY S.G. WE'LL KEEP GOING WHERE WE WERE GOING...
Falcon4EntityClassType *classPtr = &Falcon4ClassTable[Type() - VU_LAST_ENTITY_TYPE];
WeaponClassDataType *wc = (WeaponClassDataType *)classPtr->dataPtr;
// If a 3rg gen LGB, fins are more precised, even when no longer lased...
if(wc->Flags & WEAP_LGB_3RD_GEN) {
SetDelta(0.8F*XDelta() + 0.2f*desDxPrev, 0.8f*YDelta() + 0.2f*desDyPrev, ZDelta());
}
else {
// 2001-10-19 MODIFIED BY S.G. IT'S * 1.05f AND NOT * 2.0f!
SetDelta(
(0.8F*XDelta() + 0.2f*desDxPrev) * 1.05f,
(0.8f*YDelta() + 0.2f*desDyPrev) * 1.05f,
ZDelta()
);
}
}
}
if(targetPtr && targetPtr->BaseData() && parentAC->IsPlayer())
{
if (!((SimBaseClass*)(targetPtr->BaseData()))->IsSetFlag(IS_LASED))
{
targetPtr->Release( );
targetPtr = NULL;
}
}
}
}
//Wombat778 3-09-04 If this is a GPS weapon, guide to the GPS coordinates. A ripoff from the LGB code above
// RV - Biker - Add 2 sec delay for guidance
else if (((flags & IsGPS) || (flags & IsJSOW)) && (SimLibElapsedTime - timeOfDeath) > (2.0f * SEC_TO_MSEC))
{
FalconEntity *target = NULL;
// SimBaseClass *simTarg;
// Cobra - Check that we have a valid auxData->JDAMLift for JSOWs
if (EntityType()->classInfo_[VU_STYPE] == STYPE_BOMB_JSOW && (auxData->JDAMLift <= 5.0f))
auxData->JDAMLift = g_fJDAMLift;
// Cobra - Skip target assigning until close to target
rx = JSOWtgtPos.x - XPos();
ry = JSOWtgtPos.y - YPos();
range = (float)sqrt(rx*rx + ry*ry);
// FRB - JSOW Test monitor
if (range < 10.0f * NM_TO_FT)
{
if ((flags & IsJSOW) && targetPtr)
{
// First get the campaign object if it's still a sim entity
/*
CampBaseClass *campBaseObj;
if (targetPtr->BaseData()->IsSim()) // If we're a SIM object, get our campaign object
campBaseObj = ((SimBaseClass*)targetPtr->BaseData())->GetCampaignObject();
else
campBaseObj = (CampBaseClass *)targetPtr->BaseData();
// Now find out if our campaign object is aggregated
if ((campBaseObj && !campBaseObj->IsAggregate()))
{
target = targetPtr->BaseData();
// Get the sim object associated to this entity number
simTarg = campBaseObj->GetComponentEntity(JSOWtgtID);
if (simTarg)
{
gpsx = simTarg->XPos();
gpsy = simTarg->YPos();
}
else
{
gpsx = targetPtr->BaseData()->XPos();
gpsy = targetPtr->BaseData()->YPos();
}
}
else // Use feature cheat coordinates */
{
int tgg = JSOWtgtID; // debug
gpsx = JSOWtgtPos.x;
gpsy = JSOWtgtPos.y;
}
if (fp)
fprintf(fp, "JSOWtgtID: %d X= %f Y= %f\n", JSOWtgtID, gpsx, gpsy);
fflush(fp);
}
}
radical = 0;
//if(gpsz <= ZPos())
// radical = 0;
//radical = (float)sqrt (ZDelta()*ZDelta() + 2.0F * (GRAVITY - auxData->JDAMLift) * (gpsz - ZPos()));
radical = (float)sqrt (ZDelta()*ZDelta() + 2.0F * GRAVITY * (gpsz - ZPos()));
tFall = -ZDelta() - radical;
if (tFall < 0.0F)
tFall = -ZDelta() + radical;
tFall /= GRAVITY;
deltaX = gpsx - XPos();
deltaY = gpsy - YPos();
deltaZ = gpsz - ZPos();
rx = dmx[0][0] * deltaX + dmx[0][1] * deltaY + dmx[0][2] * deltaZ;
ry = dmx[1][0] * deltaX + dmx[1][1] * deltaY + dmx[1][2] * deltaZ;
rz = dmx[2][0] * deltaX + dmx[2][1] * deltaY + dmx[2][2] * deltaZ;
range = (float)sqrt(rx*rx + ry*ry + rz*rz);
//float range1 = (float)sqrt(deltaX*deltaX + deltaY*deltaY+deltaZ*deltaZ);
//float rate = (float)sqrt(XDelta()*XDelta()+YDelta()*YDelta()+ZDelta()*ZDelta());
desDx = (deltaX)/tFall;
desDy = (deltaY)/tFall;
desDxPrev = desDx;
desDyPrev = desDy;
//Limit new deltaX and Y to the initial deltaX and Y. This stops the stupid Zoom issue.
//Basically this is a VERY basic 2d energy model
//Wombat778 3-12-04 Changed to a pythagorean theorem method
static float maxenergy = sqrt((XDelta()*XDelta()) + (YDelta()*YDelta()));
float newxdelta = 0.8F*XDelta() + 0.2F*desDx;
float newydelta = 0.8F*YDelta() + 0.2F*desDy;
// float newzdelta= ZDelta()-(g_fJDAMLift*SimLibMajorFrameTime*cos(Pitch())); //take the "lift" of the bomb into account
float newzdelta= ZDelta()-(auxData->JDAMLift*SimLibMajorFrameTime*cos(Pitch())); // Cobra - Use Bombdata JDAMLift
float newenergy = sqrt((newxdelta*newxdelta) + (newydelta*newydelta));
if (newenergy > maxenergy)
{
newxdelta*=maxenergy/newenergy;
newydelta*=maxenergy/newenergy;
}
SetDelta (newxdelta, newydelta, newzdelta); //Wombat778 3-12-04 added newzdelta
}
else if ((SimLibElapsedTime - timeOfDeath) > (2.0f * SEC_TO_MSEC)) {
if (targetPtr) {
radical = (float)sqrt (ZDelta()*ZDelta() + 2.0F * GRAVITY * (targetPtr->BaseData()->ZPos() - ZPos()));
tFall = -ZDelta() - radical;
if (tFall < 0.0F)
tFall = -ZDelta() + radical;
tFall /= GRAVITY;
deltaX = targetPtr->BaseData()->XPos() - XPos();
deltaY = targetPtr->BaseData()->YPos() - YPos();
deltaZ = (float)fabs(targetPtr->BaseData()->ZPos() - ZPos());
rx = dmx[0][0] * deltaX + dmx[0][1] * deltaY + dmx[0][2] * deltaZ;
ry = dmx[1][0] * deltaX + dmx[1][1] * deltaY + dmx[1][2] * deltaZ;
rz = dmx[2][0] * deltaX + dmx[2][1] * deltaY + dmx[2][2] * deltaZ;
range = (float)sqrt(rx*rx + ry*ry + rz*rz);
desDx = (deltaX)/tFall;
desDy = (deltaY)/tFall;
SetDelta (0.8F*XDelta() + 0.2F*desDx, 0.8F*YDelta() + 0.2F*desDy, ZDelta());
}
}
terrainHeight = OTWDriver.GetGroundLevel(x, y);
// 2 seconds from release until any alt detonation will fuse
if (SimLibElapsedTime - timeOfDeath > 2 * SEC_TO_MSEC)
{
bheight = burstHeight; // CBUs
}
else
bheight = 0.0f;
// check for feature collision impact
if ( bombType == None && z - terrainHeight > -800.0f)
{
hitObj = FeatureCollision( terrainHeight);
if (hitObj)
{
//me123 OWLOOK make your armingdelay switch here.
//MI
//if (g_bArmingDelay && (SimLibElapsedTime - timeOfDeath > armingdelay *10 || ((AircraftClass *)parent)->isDigital))
if (
g_bRealisticAvionics &&
(SimLibElapsedTime - timeOfDeath > armingdelay *10 ||
(parent && ((AircraftClass *)parent.get())->IsDigital()))
)
{
//me123 addet arming check, for now digi's dont's have arming delay, becourse they will fuck up the delivery
SendDamageMessage(hitObj,0,FalconDamageType::BombDamage);
// JB 000816 ApplyProximityDamage( terrainHeight, 0.0f ); // Cause of objects not blowing up on runways
ApplyProximityDamage( terrainHeight, detonateHeight );
edeltaX = XDelta();
edeltaY = YDelta();
edeltaZ = ZDelta();
SetDelta (0.0f, 0.0f, 0.0f );
SetExploding(TRUE);
// if we've hit a flat container, NULL it out now so that this is
// treated as a ground hit later on
if (hitObj->IsSetCampaignFlag (FEAT_FLAT_CONTAINER))
{
hitObj = NULL;
}
}
//else if (!g_bArmingDelay) MI
else if(!g_bRealisticAvionics)
{
SendDamageMessage(hitObj,0,FalconDamageType::BombDamage);
// JB 000816 ApplyProximityDamage( terrainHeight, 0.0f ); // Cause of objects not blowing up on runways
ApplyProximityDamage( terrainHeight, detonateHeight );
edeltaX = XDelta();
edeltaY = YDelta();
edeltaZ = ZDelta();
SetDelta (0.0f, 0.0f, 0.0f );
SetExploding(TRUE);
// if we've hit a flat container, NULL it out now so that this is
// treated as a ground hit later on
if (hitObj->IsSetCampaignFlag (FEAT_FLAT_CONTAINER))
{
hitObj = NULL;
}
}
}
else if (z >= terrainHeight )
{
if (bombType == None && (SimLibElapsedTime - timeOfDeath > armingdelay *10.0f || (parent && ((AircraftClass *)parent.get())->IsDigital())))//me123 addet arming check
{
// Interpolate
delta = (z - terrainHeight) / (z - ZPos());
x = x - delta * (x - XPos());
y = y - delta * (y - YPos());
edeltaX = XDelta();
edeltaY = YDelta();
edeltaZ = ZDelta();
SetDelta (0.0f, 0.0f, 0.0f );
SetYPR (Yaw() + (float)rand()/(float)RAND_MAX, 0.0F, 0.0F);
SetFlag (ON_GROUND);
z = terrainHeight;
SetExploding(TRUE);
ApplyProximityDamage( terrainHeight, detonateHeight);
}
else
{
SetDead (TRUE);
}
}
}
//MI this else is causing our CBU's to not burst with a BA < 900 because of the check above
//else
if (bheight > 0 && z >= terrainHeight - bheight && !IsSetFlag( SHOW_EXPLOSION ) && bombType == BombClass::None )//me123 check addet to making flares stop exploding
{
// for altitude detonations we start the effect here
SetFlag( SHOW_EXPLOSION );
// 2002-02-26 ADDED BY S.G. If our target is an aggregated entity, send a 'SendDamageMessage' message to the target and let the 2D engine sort out what gets destroyed...
if (targetPtr)
{
// First get the campaign object if it's still a sim entity
CampBaseClass *campBaseObj;
if (targetPtr->BaseData()->IsSim()) // If we're a SIM object, get our campaign object
campBaseObj = ((SimBaseClass*)targetPtr->BaseData())->GetCampaignObject();
else
campBaseObj = (CampBaseClass *)targetPtr->BaseData();
// Now find out if our campaign object is aggregated
if (campBaseObj && campBaseObj->IsAggregate())
{
// Yes, send a damage message right away otherwise the other code is not going to deal with it...
SendDamageMessage(campBaseObj,0,FalconDamageType::BombDamage);
}
}
endMessage = new FalconMissileEndMessage (Id(), FalconLocalGame);
endMessage->RequestReliableTransmit ();
endMessage->RequestOutOfBandTransmit ();
endMessage->dataBlock.fEntityID = parent->Id();
endMessage->dataBlock.fCampID = parent->GetCampID();
endMessage->dataBlock.fSide = (uchar)parent->GetCountry();
endMessage->dataBlock.fPilotID = shooterPilotSlot;
endMessage->dataBlock.fIndex = parent->Type();
endMessage->dataBlock.dEntityID = FalconNullId;
endMessage->dataBlock.dCampID = 0;
endMessage->dataBlock.dSide = 0;
endMessage->dataBlock.dPilotID = 0;
endMessage->dataBlock.dIndex = 0;
endMessage->dataBlock.fWeaponUID = Id();
endMessage->dataBlock.wIndex = Type();
endMessage->dataBlock.x = XPos() + XDelta() * SimLibMajorFrameTime * 2.0f;
endMessage->dataBlock.y = YPos() + YDelta() * SimLibMajorFrameTime * 2.0f;
endMessage->dataBlock.z = ZPos() + ZDelta() * SimLibMajorFrameTime * 2.0f;
endMessage->dataBlock.xDelta = XDelta();
endMessage->dataBlock.yDelta = YDelta();
endMessage->dataBlock.zDelta = ZDelta();
endMessage->dataBlock.groundType = -1;
endMessage->dataBlock.endCode = FalconMissileEndMessage::BombImpact;
endMessage->SetParticleEffectName(auxData->psBombImpact); // MLR 6/26/2004 -
FalconSendMessage (endMessage,FALSE);
// set height at which we detonated for applying
// proximity damage
detonateHeight = max( 0.0f, terrainHeight - z );
}
SetPosition (x, y, z);
}
return TRUE;
}
void BombClass::SetTarget (SimObjectType* newTarget)
{
if (F4IsBadReadPtr(this, sizeof(BombClass))) // JB 010317 CTD
return;
if (newTarget == targetPtr)
return;
if ( targetPtr )
{
targetPtr->Release( );
targetPtr = NULL;
}
if (newTarget)
{
ShiAssert( newTarget->BaseData() != (FalconEntity*)0xDDDDDDDD );
//#ifdef DEBUG
// targetPtr = newTarget->Copy(OBJ_TAG, this);
//#else
// targetPtr = newTarget->Copy();
//#endif
targetPtr->Reference( );
}
}
void BombClass::GetTransform(TransformMatrix vmat)
{
mlTrig trig;
float xyDelta = XDelta()*XDelta() + YDelta()*YDelta();
float vt = (float)sqrt(xyDelta + ZDelta()*ZDelta());
float costha, sintha;
xyDelta = (float)sqrt(xyDelta);
mlSinCos (&trig, Yaw());
costha = xyDelta / vt;
sintha = ZDelta() / vt;
vmat[0][0] = trig.cos * costha;
vmat[0][1] = trig.sin * costha;
vmat[0][2] = -sintha;
vmat[1][0] = -trig.sin;
vmat[1][1] = trig.cos;
vmat[1][2] = 0.0F;
vmat[2][0] = trig.cos * sintha;
vmat[2][1] = trig.sin * sintha;
vmat[2][2] = costha;
}
void BombClass::SetVuPosition (void)
{
SetPosition (x, y, z);
}
/*
** Name: ApplyProximityDamage
** Description:
** Cycles thru objectList check for proximity.
** Cycles thru all objectives, and checks vs individual features
** if it's within the objective's bounds.
*/
#define RESCALE(in,inmin,inmax,outmin,outmax) ( ((in) - (inmin)) * ((outmax) - (outmin)) / ((inmax) - (inmin)) + (outmin))
void BombClass::ApplyProximityDamage ( float groundZ, float detonateHeight )
{
float tmpX, tmpY, tmpZ;
float rangeSquare;
SimBaseClass* testObject;
CampBaseClass* objective;
float damageRadiusSqrd;
float strength, damageMod;
WeaponClassDataType* wc;
wc = (WeaponClassDataType *)(Falcon4ClassTable[Type() - VU_LAST_ENTITY_TYPE].dataPtr);
float modifier = 1.0F;
if (wc && wc->DamageType == NuclearDam)
modifier = g_fNukeDamageRadius;
#ifdef VU_GRID_TREE_Y_MAJOR
VuGridIterator gridIt(ObjProxList, YPos(), XPos(), NM_TO_FT * (3.5F * modifier));
#else
VuGridIterator gridIt(ObjProxList, XPos(), YPos(), NM_TO_FT * (3.5F * modifier));
#endif
//MI
float hat = 0;
float maxHeight = 3000.0f;
// for altitude detonations (cluster bomb), the damage radius must
// be changed depending on the detonation height
if ( burstHeight > 0.0f )
{
// COBRA - RED - Fixed in a more RL way
// Height above Ground
float HaG=detonateHeight-groundZ;
//damageRadiusSqrd = max( lethalRadiusSqrd / 20, lethalRadiusSqrd * detonateHeight/3000.0f );
damageRadiusSqrd = min( lethalRadiusSqrd, lethalRadiusSqrd * HaG/1000.0f );
// COBRA _ RED- Scale strenght to have it's Max at 500 Ft, then going down
if(HaG<1000) strength = 1.0f * HaG/1000.0f;
else strength = RESCALE(HaG,1000.0f,2000.0f,1.0f,0.1f);
// Bomblets drops, so, always some strengt
if(strength<.1f) strength=.1f;
} else {
damageRadiusSqrd = lethalRadiusSqrd;
strength = 1.0f;
}
if (/*parentReferenced && */SimDriver.objectList){
// Damage multiplier for damage type
switch (wc->DamageType){
case PenetrationDam:
case HeaveDam:
case KineticDam:
case IncendairyDam:
case ChemicalDam:
damageMod = 1.0F; // Cobra - no penalties
//damageMod = 0.25F;
break;
case HighExplosiveDam:
case ProximityDam:
case HydrostaticDam:
case OtherDam:
case NoDamage:
default:
damageMod = 1.0F;
break;
}
// Check vs vehicles
VuListIterator objectWalker(SimDriver.objectList);
testObject = (SimBaseClass*) objectWalker.GetFirst();
while (testObject){
// until digi's are smarter about thier bombing, prevent them
// from dying in their own blast
// 2002-04-21 MN check for damage type and only skip if it is not a nuclear
if ( wc->DamageType != NuclearDam && (testObject == parent &&
parent && parent->IsAirplane() &&
( ((AircraftClass *)parent.get())->IsDigital() ||
((AircraftClass *)parent.get())->AutopilotType() == AircraftClass::CombatAP ) ))
{
testObject = (SimBaseClass*) objectWalker.GetNext();
continue;
}
if (testObject != this)
{
tmpX = testObject->XPos() - XPos();
tmpY = testObject->YPos() - YPos();
tmpZ = testObject->ZPos() - groundZ;
rangeSquare = tmpX*tmpX + tmpY*tmpY + tmpZ*tmpZ;
// Height Above Terrain
if(parent){
AircraftClass *p = static_cast<AircraftClass*>(parent.get());
hat = p->ZPos() - OTWDriver.GetGroundLevel(p->XPos(), p->YPos());
}
//MI special case for airplane. Use the "MaxAlt" field to determine if you blow up or not
if(testObject && testObject->IsAirplane() && wc && wc->DamageType == NuclearDam)
{
//if you're below the entered setting, you're screwed
if(fabsf((wc->MaxAlt)*1000.0f) >= fabs(hat)) //JAM 27Sep03 - Should be fabsf
// 2002-03-25 MN removed damageMod, as the higher this value, the less the chance to hit
SendDamageMessage(testObject,rangeSquare*strength * /*damageMod*/ g_fNukeStrengthFactor,FalconDamageType::ProximityDamage);
}
// 2002-03-25 MN some more fixes for nukes
else if (wc && wc->DamageType == NuclearDam)
{
if (rangeSquare < damageRadiusSqrd * g_fNukeDamageMod)
{
SendDamageMessage(testObject,rangeSquare*strength*g_fNukeStrengthFactor,FalconDamageType::ProximityDamage);
}
}
else if (rangeSquare < damageRadiusSqrd * damageMod)
SendDamageMessage(testObject,rangeSquare*strength,FalconDamageType::ProximityDamage);
}
testObject = (SimBaseClass*) objectWalker.GetNext();
}
}
// get the 1st objective that contains the bomb
objective = (CampBaseClass*)gridIt.GetFirst();
// main loop through objectives
while ( objective )
{
if (objective->GetComponents())
{
// loop thru each element in the objective
VuListIterator featureWalker(objective->GetComponents());
testObject = (SimBaseClass*) featureWalker.GetFirst();
while (testObject)
{
if (!testObject->IsSetCampaignFlag(FEAT_CONTAINER_TOP))
{
tmpX = testObject->XPos() - XPos();
tmpY = testObject->YPos() - YPos();
// tmpZ = testObject->ZPos() - ZPos(); // Features are at ground level, and so is this bomb
rangeSquare = tmpX*tmpX + tmpY*tmpY;; // + tmpZ*tmpZ;
if (wc && wc->DamageType == NuclearDam)
{
if (rangeSquare < damageRadiusSqrd * g_fNukeDamageMod)
{
SendDamageMessage(testObject,rangeSquare*strength*g_fNukeStrengthFactor,FalconDamageType::ProximityDamage);
}
}
else if (rangeSquare < damageRadiusSqrd * damageMod) //MI added *damageMod
{
SendDamageMessage(testObject,rangeSquare * strength,FalconDamageType::ProximityDamage);
} // end if within lethal radius
}
testObject = (SimBaseClass*) featureWalker.GetNext();
}
}
// get the next objective that contains the bomb
objective = (CampBaseClass*)gridIt.GetNext();
} // end objective loop
}
void BombClass::DoExplosion(void)
{
ACMIStationarySfxRecord acmiStatSfx;
FalconMissileEndMessage* endMessage;
float groundZ;
if ( !IsSetFlag( SHOW_EXPLOSION ))
{
// edg note: all special effects are now handled in the
// missile end message process method
endMessage = new FalconMissileEndMessage (Id(), FalconLocalGame);
endMessage->RequestReliableTransmit ();
endMessage->RequestOutOfBandTransmit ();
endMessage->dataBlock.fEntityID = parent ? parent->Id() : Id();
endMessage->dataBlock.fCampID = parent ? parent->GetCampID() : 0;
endMessage->dataBlock.fSide = parent ? (uchar)parent->GetCountry() : 0;
endMessage->dataBlock.fPilotID = shooterPilotSlot;
endMessage->dataBlock.fIndex = parent ? parent->Type() : 0;
endMessage->dataBlock.dEntityID = FalconNullId;
endMessage->dataBlock.dCampID = 0;
endMessage->dataBlock.dSide = 0;
endMessage->dataBlock.dPilotID = 0;
endMessage->dataBlock.dIndex = 0;
endMessage->dataBlock.fWeaponUID = Id();
endMessage->dataBlock.wIndex = Type();
endMessage->dataBlock.x = XPos();
endMessage->dataBlock.y = YPos();
endMessage->dataBlock.z = ZPos();
endMessage->dataBlock.xDelta = edeltaX;
endMessage->dataBlock.yDelta = edeltaY;
endMessage->dataBlock.zDelta = edeltaZ;
// add crater depending on ground type and closeness to ground
groundZ = OTWDriver.GetGroundLevel(XPos(), YPos());
if ( hitObj )
{
endMessage->dataBlock.endCode = FalconMissileEndMessage::FeatureImpact;
endMessage->SetParticleEffectName(auxData->psFeatureImpact);
}
else
{
endMessage->dataBlock.endCode = FalconMissileEndMessage::BombImpact;
endMessage->SetParticleEffectName(auxData->psBombImpact);
}
endMessage->dataBlock.groundType =
(char)OTWDriver.GetGroundType ( XPos(), YPos() );
FalconSendMessage (endMessage,FALSE);
if ( hitObj == NULL &&
!(endMessage->dataBlock.groundType == COVERAGE_WATER ||
endMessage->dataBlock.groundType == COVERAGE_RIVER )
) //&&( ZPos() - groundZ ) > -40.0f ) // JB 010710 craters weren't showing up
{
//AddToTimedPersistantList(
// VIS_CRATER2 + PRANDInt3(), Camp_GetCurrentTime() + CRATER_REMOVAL_TIME, XPos(), YPos()
//);
AddToTimedPersistantList(
MapVisId(VIS_CRATER2 + 2), Camp_GetCurrentTime() + CRATER_REMOVAL_TIME, XPos(), YPos()
);
// add crater to ACMI as special effect
if ( gACMIRec.IsRecording() )
{
acmiStatSfx.hdr.time = SimLibElapsedTime * MSEC_TO_SEC + OTWDriver.todOffset;
acmiStatSfx.data.type = SFX_CRATER4;
acmiStatSfx.data.x = XPos();
acmiStatSfx.data.y = YPos();
acmiStatSfx.data.z = ZPos();
acmiStatSfx.data.timeToLive = 180.0f;
acmiStatSfx.data.scale = 1.0f;
gACMIRec.StationarySfxRecord( &acmiStatSfx );
}
}
// make sure we don't do it again...
SetFlag( SHOW_EXPLOSION );
}
else if ( !IsDead() )
{
// we can now kill it immediately
SetDead(TRUE);
}
}
void BombClass::SpecialGraphics (void)
{
if(SimLibElapsedTime - timeOfDeath > 1 * SEC_TO_MSEC)
{
if (((DrawableBSP*)drawPointer)->GetNumSwitches() > 0)
{
((DrawableBSP *)drawPointer)->SetSwitchMask( 0, 1 );
}
}
}
void BombClass::InitTrail (void)
{
}
void BombClass::UpdateTrail (void)
{
}
void BombClass::RemoveTrail (void)
{
}
int BombClass::IsUseable (void)
{
if(lauWeaponId)
{
return ((lauRounds - lauFireCount) > 0); // could be bool'ize
}
else
return 1;
}
float BombClass::GetJDAMLift (void)
{
if(auxData)
return auxData->JDAMLift;
else
return g_fJDAMLift;
}
float BombClass::GetJSOWmaxRange (void)
{
if(auxData)
return auxData->JSOWmaxRange;
else
return g_fAIJSOWmaxRange;
}
void BombClass::CreateGfx(){
//SimWeaponClass::CreateGfx();
InitTrail();
ExtraGraphics();
}
void BombClass::DestroyGfx(){
//SimWeaponClass::DestroyGfx();
}
| 31.492408
| 184
| 0.647931
|
IsraelyFlightSimulator
|
1affbd6e56b5851fee869c83cf1e678c9d3cfb70
| 37,186
|
hpp
|
C++
|
src/Scripting/SystemPack.hpp
|
scemino/engge
|
3362ad56b67f58bdc89f7eb1a77f0f75bd350e1f
|
[
"MIT"
] | 127
|
2018-12-09T18:40:02.000Z
|
2022-03-06T00:10:07.000Z
|
src/Scripting/SystemPack.hpp
|
scemino/engge
|
3362ad56b67f58bdc89f7eb1a77f0f75bd350e1f
|
[
"MIT"
] | 267
|
2019-02-26T22:16:48.000Z
|
2022-02-09T09:49:22.000Z
|
src/Scripting/SystemPack.hpp
|
scemino/engge
|
3362ad56b67f58bdc89f7eb1a77f0f75bd350e1f
|
[
"MIT"
] | 17
|
2019-02-26T20:45:34.000Z
|
2021-06-17T15:06:26.000Z
|
#pragma once
#include <squirrel.h>
#include "../../extlibs/squirrel/squirrel/sqpcheader.h"
#include "../../extlibs/squirrel/squirrel/sqvm.h"
#include "../../extlibs/squirrel/squirrel/sqstring.h"
#include "../../extlibs/squirrel/squirrel/sqtable.h"
#include "../../extlibs/squirrel/squirrel/sqarray.h"
#include "../../extlibs/squirrel/squirrel/sqfuncproto.h"
#include "../../extlibs/squirrel/squirrel/sqclosure.h"
#include <engge/Entities/Actor.hpp>
#include <engge/Engine/Camera.hpp>
#include <engge/Dialog/DialogManager.hpp>
#include <engge/Engine/Engine.hpp>
#include <engge/Engine/Function.hpp>
#include <engge/System/Logger.hpp>
#include <engge/Engine/Preferences.hpp>
#include <engge/Room/Room.hpp>
#include <engge/Audio/SoundId.hpp>
#include <engge/Audio/SoundManager.hpp>
#include <engge/Engine/Thread.hpp>
#include <Engine/AchievementManager.hpp>
#include "Util/Util.hpp"
#define SQ_SUSPEND_FLAG -666
namespace ng {
class BreakFunction : public Function {
protected:
Engine &m_engine;
int m_threadId;
bool m_done{false};
public:
explicit BreakFunction(Engine &engine, int id)
: m_engine(engine), m_threadId(id) {
}
[[nodiscard]] virtual std::string getName() const {
return "_BreakFunction ";
}
void operator()(const ngf::TimeSpan &) override {
if (m_done)
return;
if (!isElapsed())
return;
m_done = true;
auto pThread = EntityManager::getThreadFromId(m_threadId);
if (!pThread)
return;
pThread->resume();
}
};
class BreakHereFunction final : public BreakFunction {
public:
explicit BreakHereFunction(Engine &engine, int id, int numFrames)
: BreakFunction(engine, id), m_fc(engine.getFrameCounter()), m_numFrames(numFrames) {
}
bool isElapsed() override {
return m_engine.getFrameCounter() >= (m_fc + m_numFrames);
}
[[nodiscard]] std::string getName() const override {
return "_BreakHereFunction";
}
private:
int m_fc;
int m_numFrames;
};
class BreakWhileAnimatingFunction final : public BreakFunction {
private:
std::string m_name;
Actor &m_actor;
Animation *m_pAnimation;
public:
BreakWhileAnimatingFunction(Engine &engine, int id, Actor &actor)
: BreakFunction(engine, id), m_actor(actor), m_pAnimation(actor.getCostume().getAnimation()) {
m_name = m_pAnimation->name;
}
[[nodiscard]] std::string getName() const override {
return "_BreakWhileAnimatingFunction " + m_name;
}
bool isElapsed() override {
auto animControl = m_actor.getCostume().getAnimControl();
return animControl.getAnimation() != m_pAnimation || animControl.getState() != AnimState::Play;
}
};
class BreakWhileAnimatingObjectFunction final : public BreakFunction {
private:
Object &m_object;
std::optional<Animation *> m_animation;
public:
BreakWhileAnimatingObjectFunction(Engine &engine, int id, Object &object)
: BreakFunction(engine, id), m_object(object), m_animation(object.getAnimation()) {
}
[[nodiscard]] std::string getName() const override {
return "_BreakWhileAnimatingObjectFunction";
}
bool isElapsed() override {
return !m_animation.has_value() || m_object.getAnimControl().getState() != AnimState::Play;
}
};
class BreakWhileWalkingFunction final : public BreakFunction {
private:
Actor &m_actor;
public:
explicit BreakWhileWalkingFunction(Engine &engine, int id, Actor &actor)
: BreakFunction(engine, id), m_actor(actor) {
}
[[nodiscard]] std::string getName() const override {
return "_BreakWhileWalkingFunction";
}
bool isElapsed() override {
return !m_actor.isWalking();
}
};
class BreakWhileTalkingFunction final : public BreakFunction {
private:
Entity &m_entity;
public:
explicit BreakWhileTalkingFunction(Engine &engine, int id, Entity &entity)
: BreakFunction(engine, id), m_entity(entity) {
}
[[nodiscard]] std::string getName() const override {
return "_BreakWhileTalkingFunction";
}
bool isElapsed() override {
return !m_entity.isTalking();
}
};
class BreakWhileAnyActorTalkingFunction final : public BreakFunction {
public:
explicit BreakWhileAnyActorTalkingFunction(Engine &engine, int id)
: BreakFunction(engine, id) {
}
[[nodiscard]] std::string getName() const override {
return "_BreakWhileAnyActorTalkingFunction";
}
bool isElapsed() override {
for (auto &&actor : m_engine.getActors()) {
if (actor->isTalking())
return false;
}
return true;
}
};
class BreakWhileSoundFunction final : public BreakFunction {
private:
int m_soundId;
public:
BreakWhileSoundFunction(Engine &engine, int id, int soundId)
: BreakFunction(engine, id), m_soundId(soundId) {
}
[[nodiscard]] std::string getName() const override {
return "_BreakWhileSoundFunction";
}
bool isElapsed() override {
auto pSoundId = dynamic_cast<SoundId *>(EntityManager::getSoundFromId(m_soundId));
return !pSoundId || !pSoundId->isPlaying();
}
};
class BreakWhileRunningFunction final : public Function {
private:
int m_currentThreadId, m_threadId;
bool m_done;
public:
BreakWhileRunningFunction(int currentThreadId, int threadId)
: m_currentThreadId(currentThreadId), m_threadId(threadId), m_done(false) {
}
void operator()(const ngf::TimeSpan &) override {
if (m_done)
return;
auto pThread = EntityManager::getThreadFromId(m_threadId);
if (!pThread || pThread->isStopped()) {
auto pCurrentThread = EntityManager::getThreadFromId(m_currentThreadId);
if (pCurrentThread) {
pCurrentThread->resume();
}
m_done = true;
}
}
bool isElapsed() override {
return m_done;
}
};
class BreakWhileDialogFunction final : public BreakFunction {
public:
BreakWhileDialogFunction(Engine &engine, int id)
: BreakFunction(engine, id) {
}
[[nodiscard]] std::string getName() const override {
return "_BreakWhileDialogFunction";
}
bool isElapsed() override {
return m_engine.getDialogManager().getState() == DialogManagerState::None;
}
};
class BreakWhileCutsceneFunction final : public BreakFunction {
public:
BreakWhileCutsceneFunction(Engine &engine, int id)
: BreakFunction(engine, id) {
}
[[nodiscard]] std::string getName() const override {
return "_BreakWhileCutsceneFunction";
}
bool isElapsed() override {
return !m_engine.inCutscene();
}
};
class BreakWhileCameraFunction final : public BreakFunction {
public:
BreakWhileCameraFunction(Engine &engine, int id)
: BreakFunction(engine, id) {
}
[[nodiscard]] std::string getName() const override {
return "_BreakWhileCameraFunction";
}
bool isElapsed() override {
return !m_engine.getCamera().isMoving();
}
};
class BreakWhileInputOffFunction final : public BreakFunction {
public:
BreakWhileInputOffFunction(Engine &engine, int id)
: BreakFunction(engine, id) {
}
[[nodiscard]] std::string getName() const override {
return "_BreakWhileInputOffFunction";
}
bool isElapsed() override {
return m_engine.getInputActive();
}
};
class BreakTimeFunction final : public TimeFunction {
private:
int m_threadId;
public:
BreakTimeFunction(int id, const ngf::TimeSpan &time)
: TimeFunction(time), m_threadId(id) {
}
void operator()(const ngf::TimeSpan &elapsed) override {
if (m_done)
return;
TimeFunction::operator()(elapsed);
if (isElapsed()) {
m_done = true;
auto pThread = EntityManager::getThreadFromId(m_threadId);
if (!pThread)
return;
pThread->resume();
}
}
};
class SystemPack final : public Pack {
private:
static Engine *g_pEngine;
private:
void registerPack() const override {
g_pEngine = &ScriptEngine::getEngine();
ScriptEngine::registerGlobalFunction(activeController, "activeController");
ScriptEngine::registerGlobalFunction(addCallback, "addCallback");
ScriptEngine::registerGlobalFunction(addFolder, "addFolder");
ScriptEngine::registerGlobalFunction(breakhere, "breakhere");
ScriptEngine::registerGlobalFunction(breaktime, "breaktime");
ScriptEngine::registerGlobalFunction(breakwhileanimating, "breakwhileanimating");
ScriptEngine::registerGlobalFunction(breakwhilecamera, "breakwhilecamera");
ScriptEngine::registerGlobalFunction(breakwhilecutscene, "breakwhilecutscene");
ScriptEngine::registerGlobalFunction(breakwhiledialog, "breakwhiledialog");
ScriptEngine::registerGlobalFunction(breakwhileinputoff, "breakwhileinputoff");
ScriptEngine::registerGlobalFunction(breakwhilesound, "breakwhilesound");
ScriptEngine::registerGlobalFunction(breakwhilerunning, "breakwhilerunning");
ScriptEngine::registerGlobalFunction(breakwhiletalking, "breakwhiletalking");
ScriptEngine::registerGlobalFunction(breakwhilewalking, "breakwhilewalking");
ScriptEngine::registerGlobalFunction(chr, "chr");
ScriptEngine::registerGlobalFunction(cursorPosX, "cursorPosX");
ScriptEngine::registerGlobalFunction(cursorPosY, "cursorPosY");
ScriptEngine::registerGlobalFunction(dumpvar, "dumpvar");
ScriptEngine::registerGlobalFunction(dumprt, "dumprt");
ScriptEngine::registerGlobalFunction(exCommand, "exCommand");
ScriptEngine::registerGlobalFunction(gameTime, "gameTime");
ScriptEngine::registerGlobalFunction(getPrivatePref, "getPrivatePref");
ScriptEngine::registerGlobalFunction(getUserPref, "getUserPref");
ScriptEngine::registerGlobalFunction(include, "include");
ScriptEngine::registerGlobalFunction(inputHUD, "inputHUD");
ScriptEngine::registerGlobalFunction(inputOff, "inputOff");
ScriptEngine::registerGlobalFunction(inputOn, "inputOn");
ScriptEngine::registerGlobalFunction(inputSilentOff, "inputSilentOff");
ScriptEngine::registerGlobalFunction(inputState, "inputState");
ScriptEngine::registerGlobalFunction(isInputOn, "isInputOn");
ScriptEngine::registerGlobalFunction(is_string, "is_string");
ScriptEngine::registerGlobalFunction(is_table, "is_table");
ScriptEngine::registerGlobalFunction(ord, "ord");
ScriptEngine::registerGlobalFunction(inputController, "inputController");
ScriptEngine::registerGlobalFunction(inputVerbs, "inputVerbs");
ScriptEngine::registerGlobalFunction(logEvent, "logEvent");
ScriptEngine::registerGlobalFunction(logInfo, "logInfo");
ScriptEngine::registerGlobalFunction(logWarning, "logWarning");
ScriptEngine::registerGlobalFunction(microTime, "microTime");
ScriptEngine::registerGlobalFunction(moveCursorTo, "moveCursorTo");
ScriptEngine::registerGlobalFunction(pushSentence, "pushSentence");
ScriptEngine::registerGlobalFunction(removeCallback, "removeCallback");
ScriptEngine::registerGlobalFunction(setAmbientLight, "setAmbientLight");
ScriptEngine::registerGlobalFunction(setPrivatePref, "setPrivatePref");
ScriptEngine::registerGlobalFunction(setUserPref, "setUserPref");
ScriptEngine::registerGlobalFunction(startglobalthread, "startglobalthread");
ScriptEngine::registerGlobalFunction(startthread, "startthread");
ScriptEngine::registerGlobalFunction(stopthread, "stopthread");
ScriptEngine::registerGlobalFunction(threadid, "threadid");
ScriptEngine::registerGlobalFunction(threadpauseable, "threadpauseable");
}
static SQInteger activeController(HSQUIRRELVM v) {
error("TODO: activeController: not implemented");
// harcode mouse
sq_pushinteger(v, 1);
return 1;
}
static SQInteger addCallback(HSQUIRRELVM v) {
auto count = sq_gettop(v);
SQFloat duration;
if (SQ_FAILED(sq_getfloat(v, 2, &duration))) {
return sq_throwerror(v, _SC("failed to get duration"));
}
HSQOBJECT method;
sq_resetobject(&method);
if (SQ_FAILED(sq_getstackobj(v, 3, &method)) || !sq_isclosure(method)) {
return sq_throwerror(v, _SC("failed to get method"));
}
std::string methodName;
if (SQ_SUCCEEDED(sq_getclosurename(v, 3))) {
const SQChar *tmpMethodName = nullptr;
sq_getstring(v, -1, &tmpMethodName);
methodName = tmpMethodName;
}
HSQOBJECT arg;
sq_resetobject(&arg);
if (count == 4 && SQ_FAILED(sq_getstackobj(v, 4, &arg))) {
return sq_throwerror(v, _SC("failed to get argument"));
}
auto id = Locator<EntityManager>::get().getCallbackId();
auto callback = std::make_unique<Callback>(id, ngf::TimeSpan::seconds(duration), methodName, arg);
g_pEngine->addCallback(std::move(callback));
sq_pushinteger(v, static_cast<SQInteger>(id));
return 1;
}
static SQInteger addFolder(HSQUIRRELVM) {
// do nothing
return 0;
}
static SQInteger breakhere(HSQUIRRELVM v) {
SQFloat numFrames;
if (SQ_FAILED(sq_getfloat(v, 2, &numFrames))) {
return sq_throwerror(v, _SC("failed to get numFrames"));
}
auto pThread = EntityManager::getThreadFromVm(v);
pThread->suspend();
g_pEngine->addFunction(std::make_unique<BreakHereFunction>(*g_pEngine, pThread->getId(), numFrames));
return SQ_SUSPEND_FLAG;
}
static SQInteger breakwhileanimating(HSQUIRRELVM v) {
auto *pActor = EntityManager::getActor(v, 2);
if (pActor) {
auto pAnim = pActor->getCostume().getAnimation();
if (!pAnim)
return 0;
auto pThread = EntityManager::getThreadFromVm(v);
pThread->suspend();
g_pEngine->addFunction(std::make_unique<BreakWhileAnimatingFunction>(*g_pEngine, pThread->getId(), *pActor));
return SQ_SUSPEND_FLAG;
}
auto *pObj = EntityManager::getObject(v, 2);
if (pObj) {
auto pThread = EntityManager::getThreadFromVm(v);
pThread->suspend();
g_pEngine->addFunction(std::make_unique<BreakWhileAnimatingObjectFunction>(*g_pEngine, pThread->getId(), *pObj));
return SQ_SUSPEND_FLAG;
}
return sq_throwerror(v, _SC("failed to get actor or object"));
}
static SQInteger breakwhilecamera(HSQUIRRELVM v) {
auto pThread = EntityManager::getThreadFromVm(v);
pThread->suspend();
g_pEngine->addFunction(std::make_unique<BreakWhileCameraFunction>(*g_pEngine, pThread->getId()));
return SQ_SUSPEND_FLAG;
}
static SQInteger breakwhilecutscene(HSQUIRRELVM v) {
auto pThread = EntityManager::getThreadFromVm(v);
pThread->suspend();
g_pEngine->addFunction(std::make_unique<BreakWhileCutsceneFunction>(*g_pEngine, pThread->getId()));
return SQ_SUSPEND_FLAG;
}
static SQInteger breakwhileinputoff(HSQUIRRELVM v) {
auto pThread = EntityManager::getThreadFromVm(v);
pThread->suspend();
g_pEngine->addFunction(std::make_unique<BreakWhileInputOffFunction>(*g_pEngine, pThread->getId()));
return SQ_SUSPEND_FLAG;
}
static SQInteger breakwhilesound(HSQUIRRELVM v) {
SoundId *pSound = EntityManager::getSound(v, 2);
auto pThread = EntityManager::getThreadFromVm(v);
pThread->suspend();
g_pEngine->addFunction(std::make_unique<BreakWhileSoundFunction>(*g_pEngine,
pThread->getId(),
pSound ? pSound->getId() : 0));
return SQ_SUSPEND_FLAG;
}
static SQInteger breakwhiledialog(HSQUIRRELVM v) {
auto pThread = EntityManager::getThreadFromVm(v);
pThread->suspend();
g_pEngine->addFunction(std::make_unique<BreakWhileDialogFunction>(*g_pEngine, pThread->getId()));
return SQ_SUSPEND_FLAG;
}
static SQInteger breakwhilewalking(HSQUIRRELVM v) {
auto *pActor = EntityManager::getActor(v, 2);
if (!pActor) {
return sq_throwerror(v, _SC("failed to get actor"));
}
auto pThread = EntityManager::getThreadFromVm(v);
pThread->suspend();
g_pEngine->addFunction(std::make_unique<BreakWhileWalkingFunction>(*g_pEngine, pThread->getId(), *pActor));
return SQ_SUSPEND_FLAG;
}
static SQInteger breakwhiletalking(HSQUIRRELVM v) {
if (sq_gettop(v) == 2) {
auto *pEntity = EntityManager::getEntity(v, 2);
if (!pEntity) {
return sq_throwerror(v, _SC("failed to get actor/object"));
}
auto pThread = EntityManager::getThreadFromVm(v);
pThread->suspend();
g_pEngine->addFunction(std::make_unique<BreakWhileTalkingFunction>(*g_pEngine, pThread->getId(), *pEntity));
return SQ_SUSPEND_FLAG;
}
auto pThread = EntityManager::getThreadFromVm(v);
pThread->suspend();
g_pEngine->addFunction(std::make_unique<BreakWhileAnyActorTalkingFunction>(*g_pEngine, pThread->getId()));
return SQ_SUSPEND_FLAG;
}
static SQInteger breakwhilerunning(HSQUIRRELVM v) {
SQInteger id = 0;
if (sq_gettype(v, 2) == OT_INTEGER) {
sq_getinteger(v, 2, &id);
}
if (EntityManager::isThread(id)) {
auto pCurrentThread = EntityManager::getThreadFromVm(v);
if (!pCurrentThread) {
return sq_throwerror(v, "Current thread should be created with startthread");
}
auto pThread = EntityManager::getThreadFromId(id);
if (!pThread)
return 0;
pCurrentThread->suspend();
g_pEngine->addFunction(std::make_unique<BreakWhileRunningFunction>(pCurrentThread->getId(), id));
return SQ_SUSPEND_FLAG;
}
return breakwhilesound(v);
}
static SQInteger chr(HSQUIRRELVM v) {
SQInteger number;
if (SQ_FAILED(sq_getinteger(v, 2, &number))) {
return sq_throwerror(v, "Failed to get number");
}
auto character = (char) number;
char s[]{character, '\0'};
sq_pushstring(v, s, -1);
return 1;
}
static SQInteger cursorPosX(HSQUIRRELVM v) {
auto roomSize = g_pEngine->getRoom()->getRoomSize();
auto pos = g_pEngine->getMousePositionInRoom();
auto x = Screen::Width * pos.x / roomSize.x;
sq_pushinteger(v, static_cast<SQInteger>(x));
return 1;
}
static SQInteger cursorPosY(HSQUIRRELVM v) {
auto roomSize = g_pEngine->getRoom()->getRoomSize();
auto pos = g_pEngine->getMousePositionInRoom();
auto y = Screen::Height * pos.y / roomSize.y;
sq_pushinteger(v, static_cast<SQInteger>(y));
return 1;
}
static SQInteger dumpvar(HSQUIRRELVM v) {
HSQOBJECT obj;
if (sq_gettype(v, 2) == OT_BOOL) {
SQBool value;
sq_getbool(v, 2, &value);
ScriptEngine::printfunc(v, "%s", value ? "true" : "false");
return 0;
}
if (sq_gettype(v, 2) == OT_INTEGER) {
SQInteger value;
sq_getinteger(v, 2, &value);
ScriptEngine::printfunc(v, "%ld", value);
return 0;
}
if (sq_gettype(v, 2) == OT_FLOAT) {
SQFloat value;
sq_getfloat(v, 2, &value);
ScriptEngine::printfunc(v, "%lf", value);
return 0;
}
if (sq_gettype(v, 2) == OT_STRING) {
const SQChar *value;
sq_getstring(v, 2, &value);
ScriptEngine::printfunc(v, "%s", value);
return 0;
}
if (sq_gettype(v, 2) != OT_TABLE) {
return sq_throwerror(v, _SC("A bool, int, float or table was expected"));
}
if (SQ_FAILED(sq_getstackobj(v, 2, &obj))) {
return sq_throwerror(v, _SC("Failed to get object"));
}
auto value = ng::toGGPackValue(obj);
std::ostringstream os;
os << value;
ScriptEngine::printfunc(v, "%s", os.str().data());
return 0;
}
static SQInteger dumprt(HSQUIRRELVM v) {
HSQOBJECT rt;
sq_resetobject(&rt);
sq_pushroottable(v);
if (SQ_FAILED(sq_getstackobj(v, -1, &rt))) {
return sq_throwerror(v, _SC("Failed to get root table from stack"));
}
auto value = ng::toGGPackValue(rt);
std::ostringstream os;
os << value;
ScriptEngine::printfunc(v, "%s", os.str().data());
return 0;
}
static SQInteger exCommand(HSQUIRRELVM v) {
SQInteger command;
if (SQ_FAILED(sq_getinteger(v, 2, &command))) {
return sq_throwerror(v, _SC("Failed to get command"));
}
switch (command) {
case ExCommandConstants::EX_ALLOW_SAVEGAMES: {
SQInteger enabled;
if (SQ_FAILED(sq_getinteger(v, 3, &enabled))) {
return sq_throwerror(v, _SC("Failed to get enabled"));
}
g_pEngine->allowSaveGames(enabled != 0);
return 0;
}
case ExCommandConstants::EX_POP_CHARACTER_SELECTION: {
error("TODO: exCommand EX_POP_CHARACTER_SELECTION: not implemented");
return 0;
}
case ExCommandConstants::EX_CAMERA_TRACKING: {
error("TODO: exCommand EX_CAMERA_TRACKING: not implemented");
return 0;
}
case ExCommandConstants::EX_BUTTON_HOVER_SOUND: {
auto pSound = EntityManager::getSoundDefinition(v, 3);
if (!pSound) {
return sq_throwerror(v, _SC("failed to get sound for EX_BUTTON_HOVER_SOUND"));
}
g_pEngine->getSoundManager().setSoundHover(pSound);
return 0;
}
case ExCommandConstants::EX_RESTART: {
error("TODO: exCommand EX_RESTART: not implemented");
return 0;
}
case ExCommandConstants::EX_IDLE_TIME: {
error("TODO: exCommand EX_IDLE_TIME: not implemented");
return 0;
}
case ExCommandConstants::EX_AUTOSAVE: {
if (g_pEngine->getAutoSave()) {
g_pEngine->saveGame(1);
}
return 0;
}
case ExCommandConstants::EX_AUTOSAVE_STATE: {
SQInteger enabled;
if (SQ_FAILED(sq_getinteger(v, 3, &enabled))) {
return sq_throwerror(v, _SC("Failed to get enabled"));
}
g_pEngine->setAutoSave(enabled != 0);
return 0;
}
case ExCommandConstants::EX_DISABLE_SAVESYSTEM: {
error("TODO: exCommand EX_DISABLE_SAVESYSTEM: not implemented");
return 0;
}
case ExCommandConstants::EX_SHOW_OPTIONS: {
g_pEngine->showOptions(true);
return 0;
}
case ExCommandConstants::EX_OPTIONS_MUSIC: {
error("TODO: exCommand EX_OPTIONS_MUSIC: not implemented");
return 0;
}
case ExCommandConstants::EX_FORCE_TALKIE_TEXT: {
SQInteger enabled;
if (SQ_FAILED(sq_getinteger(v, 3, &enabled))) {
return sq_throwerror(v, _SC("Failed to get enabled"));
}
g_pEngine->getPreferences().setTempPreference(TempPreferenceNames::ForceTalkieText, enabled != 0);
return 0;
}
default:error("TODO: exCommand {}: not implemented", command);
break;
}
return 0;
}
static SQInteger gameTime(HSQUIRRELVM v) {
sq_pushfloat(v, g_pEngine->getTime().getTotalSeconds());
return 1;
}
static SQInteger logEvent(HSQUIRRELVM v) {
auto numArgs = sq_gettop(v);
const SQChar *event = nullptr;
if (SQ_SUCCEEDED(sq_getstring(v, 2, &event))) {
info(event);
}
if (numArgs == 3) {
if (SQ_SUCCEEDED(sq_getstring(v, 3, &event))) {
info(event);
}
}
return 0;
}
static SQInteger logInfo(HSQUIRRELVM v) {
const SQChar *msg = nullptr;
if (SQ_SUCCEEDED(sq_getstring(v, 2, &msg))) {
info(msg);
}
return 0;
}
static SQInteger logWarning(HSQUIRRELVM v) {
const SQChar *msg = nullptr;
if (SQ_SUCCEEDED(sq_getstring(v, 2, &msg))) {
warn(msg);
}
return 0;
}
static SQInteger microTime(HSQUIRRELVM v) {
sq_pushfloat(v, g_pEngine->getTime().getTotalSeconds());
return 1;
}
static SQInteger moveCursorTo(HSQUIRRELVM v) {
SQInteger x;
if (SQ_FAILED(sq_getinteger(v, 2, &x))) {
return sq_throwerror(v, _SC("Failed to get x"));
}
SQInteger y;
if (SQ_FAILED(sq_getinteger(v, 3, &y))) {
return sq_throwerror(v, _SC("Failed to get y"));
}
SQFloat t;
if (SQ_FAILED(sq_getfloat(v, 4, &t))) {
return sq_throwerror(v, _SC("Failed to get time"));
}
// WIP need to be check
// auto pos = g_pEngine->getApplication()->getRenderTarget()->mapCoordsToPixel(glm::vec2(x, y) - g_pEngine->getCamera().getAt());
// TODO: ngf::Mouse::setPosition(pos, g_pEngine->getApplication()->get);
error("moveCursorTo not implemented");
return 0;
}
static SQInteger pushSentence(HSQUIRRELVM v) {
auto numArgs = sq_gettop(v);
SQInteger id;
if (SQ_FAILED(sq_getinteger(v, 2, &id))) {
return sq_throwerror(v, _SC("Failed to get verb id"));
}
if (id == VerbConstants::VERB_DIALOG) {
SQInteger choice;
if (SQ_FAILED(sq_getinteger(v, 3, &choice))) {
return sq_throwerror(v, _SC("Failed to get choice"));
}
g_pEngine->getDialogManager().choose(choice);
return 0;
}
Entity *pObj1{nullptr};
Entity *pObj2{nullptr};
if (numArgs > 2) {
pObj1 = EntityManager::getEntity(v, 3);
if (!pObj1) {
return sq_throwerror(v, _SC("Failed to get obj1"));
}
}
if (numArgs > 3) {
pObj2 = EntityManager::getEntity(v, 4);
if (!pObj2) {
return sq_throwerror(v, _SC("Failed to get obj2"));
}
}
g_pEngine->pushSentence(static_cast<int>(id), pObj1, pObj2);
return 0;
}
static SQInteger stopthread(HSQUIRRELVM v) {
auto type = sq_gettype(v, 2);
if (type == OT_NULL) {
sq_pushinteger(v, 0);
return 1;
}
SQInteger id;
if (SQ_FAILED(sq_getinteger(v, 2, &id))) {
trace("Failed to stopthread: got {} instead", type);
sq_pushinteger(v, 0);
return 1;
}
auto pThread = EntityManager::getThreadFromId(id);
if (!pThread) {
sq_pushinteger(v, 0);
return 1;
}
trace("stopthread {}", id);
pThread->stop();
sq_pushinteger(v, 0);
return 1;
}
static SQInteger startglobalthread(HSQUIRRELVM v) {
return startthread(v, true);
}
static SQInteger startthread(HSQUIRRELVM v) {
return startthread(v, false);
}
static SQInteger startthread(HSQUIRRELVM v, bool global) {
SQInteger size = sq_gettop(v);
HSQOBJECT env_obj;
sq_resetobject(&env_obj);
if (SQ_FAILED(sq_getstackobj(v, 1, &env_obj))) {
return sq_throwerror(v, _SC("Couldn't get environment from stack"));
}
auto vm = ScriptEngine::getVm();
// create thread and store it on the stack
sq_newthread(vm, 1024);
HSQOBJECT thread_obj;
sq_resetobject(&thread_obj);
if (SQ_FAILED(sq_getstackobj(vm, -1, &thread_obj))) {
return sq_throwerror(v, _SC("Couldn't get coroutine thread from stack"));
}
std::vector<HSQOBJECT> args;
for (auto i = 0; i < size - 2; i++) {
HSQOBJECT arg;
sq_resetobject(&arg);
if (SQ_FAILED(sq_getstackobj(v, 3 + i, &arg))) {
return sq_throwerror(v, _SC("Couldn't get coroutine args from stack"));
}
args.push_back(arg);
}
// get the closure
HSQOBJECT closureObj;
sq_resetobject(&closureObj);
if (SQ_FAILED(sq_getstackobj(v, 2, &closureObj))) {
return sq_throwerror(v, _SC("Couldn't get coroutine thread from stack"));
}
const SQChar *name = nullptr;
if (SQ_SUCCEEDED(sq_getclosurename(v, 2))) {
sq_getstring(v, -1, &name);
}
std::string threadName = name ? name : "anonymous";
std::string pSource = _stringval(_closure(closureObj)->_function->_sourcename);
auto line = _closure(closureObj)->_function->_lineinfos->_line;
threadName += ' ' + pSource + '(' + std::to_string(line) + ')';
auto pUniquethread = std::make_unique<Thread>(threadName, global, vm, thread_obj, env_obj, closureObj, args);
sq_pop(vm, 1);
auto pThread = pUniquethread.get();
trace("start thread ({}): {}", threadName, pThread->getId());
if (name) {
sq_pop(v, 1); // pop name
}
sq_pop(v, 1); // pop closure
g_pEngine->addThread(std::move(pUniquethread));
// call the closure in the thread
if (!pThread->call()) {
return sq_throwerror(v, _SC("call failed"));
}
sq_pushinteger(v, pThread->getId());
return 1;
}
static SQInteger breaktime(HSQUIRRELVM v) {
SQFloat time = 0;
if (SQ_FAILED(sq_getfloat(v, 2, &time))) {
return sq_throwerror(v, _SC("failed to get time"));
}
auto pThread = EntityManager::getThreadFromVm(v);
if (!pThread) {
return sq_throwerror(v, _SC("failed to get thread"));
}
pThread->suspend();
g_pEngine->addFunction(std::make_unique<BreakTimeFunction>(pThread->getId(), ngf::TimeSpan::seconds(time)));
return SQ_SUSPEND_FLAG;
}
static SQInteger setPrivatePref(HSQUIRRELVM v) {
const SQChar *key;
if (SQ_FAILED(sq_getstring(v, 2, &key))) {
return sq_throwerror(v, _SC("failed to get key"));
}
auto &achievements = ng::Locator<ng::AchievementManager>::get();
auto type = sq_gettype(v, 3);
if (type == SQObjectType::OT_STRING) {
const SQChar *str = nullptr;
sq_getstring(v, 3, &str);
std::string strValue = str;
achievements.setPrivatePreference(key, strValue);
return 0;
}
if (type == SQObjectType::OT_INTEGER) {
SQInteger integer;
sq_getinteger(v, 3, &integer);
achievements.setPrivatePreference(key, integer);
return 0;
}
if (type == SQObjectType::OT_BOOL) {
SQBool b;
sq_getbool(v, 3, &b);
achievements.setPrivatePreference(key, static_cast<int>(b));
return 0;
}
if (type == SQObjectType::OT_FLOAT) {
SQFloat fl;
sq_getfloat(v, 3, &fl);
achievements.setPrivatePreference(key, fl);
return 0;
}
return 0;
}
static HSQOBJECT toSquirrel(HSQUIRRELVM v, const ngf::GGPackValue &value) {
HSQOBJECT obj;
switch (value.type()) {
case ngf::detail::GGPackValueType::String:obj._type = OT_STRING;
obj._unVal.pString = SQString::Create(v->_sharedstate, value.getString().c_str(), -1);
return obj;
case ngf::detail::GGPackValueType::Integer:obj._type = OT_INTEGER;
obj._unVal.nInteger = value.getInt();
return obj;
case ngf::detail::GGPackValueType::Double:obj._type = OT_FLOAT;
obj._unVal.fFloat = value.getDouble();
return obj;
case ngf::detail::GGPackValueType::Null:obj._type = OT_NULL;
return obj;
default:throw std::runtime_error("Cannot convert this type to squirrel");
}
}
static SQInteger getPrivatePref(HSQUIRRELVM v) {
const SQChar *key;
if (SQ_FAILED(sq_getstring(v, 2, &key))) {
return sq_throwerror(v, _SC("failed to get key"));
}
auto &achievements = ng::Locator<ng::AchievementManager>::get();
auto value = achievements.getPrivatePreference(key);
// key found in preferences ?
if (!value.isNull()) {
sq_pushobject(v, toSquirrel(v, value));
return 1;
}
// we have a default value ?
if (sq_gettop(v) == 3) {
sq_push(v, 3);
return 1;
}
// return null
sq_pushnull(v);
return 1;
}
static SQInteger getUserPref(HSQUIRRELVM v) {
return _getPref(v,
[](auto name, auto value) { return g_pEngine->getPreferences().getUserPreference(name, value); });
}
static SQInteger _getPref(HSQUIRRELVM v,
const std::function<ngf::GGPackValue(const std::string &name,
ngf::GGPackValue value)> &func) {
const SQChar *key;
if (SQ_FAILED(sq_getstring(v, 2, &key))) {
return sq_throwerror(v, _SC("failed to get key"));
}
auto numArgs = sq_gettop(v) - 1;
ngf::GGPackValue defaultValue;
if (numArgs > 1) {
auto type = sq_gettype(v, 3);
if (type == SQObjectType::OT_STRING) {
const SQChar *str = nullptr;
sq_getstring(v, 3, &str);
defaultValue = str;
} else if (type == SQObjectType::OT_INTEGER) {
SQInteger integer;
sq_getinteger(v, 3, &integer);
defaultValue = integer;
} else if (type == SQObjectType::OT_BOOL) {
SQBool b;
sq_getbool(v, 3, &b);
defaultValue = b ? 1 : 0;
} else if (type == SQObjectType::OT_FLOAT) {
SQFloat fl;
sq_getfloat(v, 3, &fl);
defaultValue = fl;
}
}
auto value = func(key, defaultValue);
if (value.isString()) {
sq_pushstring(v, value.getString().data(), -1);
} else if (value.isInteger()) {
sq_pushinteger(v, value.getInt());
} else if (value.isDouble()) {
sq_pushfloat(v, value.getDouble());
} else {
sq_pushnull(v);
}
return 1;
}
static SQInteger removeCallback(HSQUIRRELVM v) {
SQInteger id = 0;
if (SQ_FAILED(sq_getinteger(v, 2, &id))) {
return sq_throwerror(v, _SC("failed to get callback"));
}
g_pEngine->removeCallback(id);
return 0;
}
static SQInteger setAmbientLight(HSQUIRRELVM v) {
SQInteger c = 0;
if (SQ_FAILED(sq_getinteger(v, 2, &c))) {
return sq_throwerror(v, _SC("failed to get color"));
}
auto color = fromRgb(c);
g_pEngine->getRoom()->setAmbientLight(color);
return 0;
}
static SQInteger setUserPref(HSQUIRRELVM v) {
_setPref(v,
[](auto key, auto value) { return g_pEngine->getPreferences().setUserPreference(key, value); },
[](auto key) { return g_pEngine->getPreferences().removeUserPreference(key); });
return 0;
}
static SQInteger _setPref(HSQUIRRELVM v,
const std::function<void(const std::string &, ngf::GGPackValue)> &setPref,
const std::function<void(const std::string &)> &removePref) {
const SQChar *key;
if (SQ_FAILED(sq_getstring(v, 2, &key))) {
return sq_throwerror(v, _SC("failed to get key"));
}
auto type = sq_gettype(v, 3);
if (type == SQObjectType::OT_STRING) {
const SQChar *str = nullptr;
sq_getstring(v, 3, &str);
std::string strValue = str;
setPref(key, Preferences::toGGPackValue(strValue));
return 0;
}
if (type == SQObjectType::OT_INTEGER) {
SQInteger integer;
sq_getinteger(v, 3, &integer);
setPref(key, Preferences::toGGPackValue(static_cast<int>(integer)));
return 0;
}
if (type == SQObjectType::OT_BOOL) {
SQBool b;
sq_getbool(v, 3, &b);
setPref(key, Preferences::toGGPackValue(b != 0));
return 0;
}
if (type == SQObjectType::OT_FLOAT) {
SQFloat fl;
sq_getfloat(v, 3, &fl);
setPref(key, Preferences::toGGPackValue(fl));
return 0;
}
removePref(key);
return 0;
}
static SQInteger include(HSQUIRRELVM v) {
const SQChar *filename = nullptr;
if (SQ_FAILED(sq_getstring(v, 2, &filename))) {
return sq_throwerror(v, "failed to get filename");
}
trace("include {}", filename);
ng::ScriptEngine::executeNutScript(filename);
return 0;
}
static SQInteger inputHUD(HSQUIRRELVM v) {
SQInteger on;
if (SQ_FAILED(sq_getinteger(v, 2, &on))) {
return sq_throwerror(v, _SC("failed to get on"));
}
g_pEngine->setInputHUD(on);
return 0;
}
static SQInteger inputOff(HSQUIRRELVM) {
g_pEngine->setInputActive(false);
return 0;
}
static SQInteger inputOn(HSQUIRRELVM) {
g_pEngine->setInputActive(true);
return 0;
}
static SQInteger inputSilentOff(HSQUIRRELVM) {
g_pEngine->inputSilentOff();
return 0;
}
static SQInteger isInputOn(HSQUIRRELVM v) {
bool isActive = g_pEngine->getInputActive();
sq_pushinteger(v, isActive ? 1 : 0);
return 1;
}
static SQInteger inputState(HSQUIRRELVM v) {
auto numArgs = sq_gettop(v);
if (numArgs == 1) {
auto state = g_pEngine->getInputState();
sq_pushinteger(v, state);
return 1;
} else if (numArgs == 2) {
SQInteger state;
if (SQ_FAILED(sq_getinteger(v, 2, &state))) {
return sq_throwerror(v, _SC("failed to get state"));
}
g_pEngine->setInputState(state);
return 0;
}
error("TODO: inputState: not implemented");
return 0;
}
static SQInteger inputController(HSQUIRRELVM) {
error("TODO: inputController: not implemented");
return 0;
}
static SQInteger inputVerbs(HSQUIRRELVM v) {
SQInteger on;
if (SQ_FAILED(sq_getinteger(v, 2, &on))) {
return sq_throwerror(v, _SC("failed to get isActive"));
}
g_pEngine->setInputVerbs(on);
return 1;
}
static SQInteger is_table(HSQUIRRELVM v) {
sq_pushbool(v, sq_gettype(v, 2) == OT_TABLE ? SQTrue : SQFalse);
return 1;
}
static SQInteger ord(HSQUIRRELVM v) {
const SQChar *letter;
if (SQ_FAILED(sq_getstring(v, 2, &letter))) {
return sq_throwerror(v, "Failed to get letter");
}
sq_pushinteger(v, (SQInteger) letter[0]);
return 1;
}
static SQInteger is_string(HSQUIRRELVM v) {
sq_pushbool(v, sq_gettype(v, 2) == OT_STRING ? SQTrue : SQFalse);
return 1;
}
static SQInteger threadid(HSQUIRRELVM v) {
auto pThread = EntityManager::getThreadFromVm(v);
sq_pushinteger(v, pThread ? pThread->getId() : 0);
return 1;
}
static SQInteger threadpauseable(HSQUIRRELVM v) {
SQInteger threadId = 0;
if (SQ_FAILED(sq_getinteger(v, 2, &threadId))) {
return sq_throwerror(v, _SC("failed to get threadId"));
}
auto pThread = EntityManager::getThreadFromId(threadId);
if (!pThread) {
return 0;
}
SQInteger pauseable = 0;
if (SQ_FAILED(sq_getinteger(v, 3, &pauseable))) {
return sq_throwerror(v, _SC("failed to get pauseable"));
}
pThread->setPauseable(pauseable != 0);
return 0;
}
};
Engine *SystemPack::g_pEngine = nullptr;
} // namespace ng
| 30.455364
| 133
| 0.662238
|
scemino
|
2101892ab21c40fc37c324997eec6e1890e7723d
| 420
|
cpp
|
C++
|
Kaminec/UI/downloadprogressdialog.cpp
|
kaniol-lck/Kaminec
|
bdbb6645035d6124a3772742362e683938b389fb
|
[
"BSD-2-Clause"
] | 23
|
2017-06-23T11:58:27.000Z
|
2022-03-05T06:58:49.000Z
|
Kaminec/UI/downloadprogressdialog.cpp
|
kaniol-lck/Kaminec
|
bdbb6645035d6124a3772742362e683938b389fb
|
[
"BSD-2-Clause"
] | 4
|
2017-12-08T11:41:19.000Z
|
2021-04-03T17:50:39.000Z
|
Kaminec/UI/downloadprogressdialog.cpp
|
kaniol-lck/Kaminec
|
bdbb6645035d6124a3772742362e683938b389fb
|
[
"BSD-2-Clause"
] | 5
|
2019-02-19T13:03:42.000Z
|
2021-11-04T13:58:04.000Z
|
#include "downloadprogressdialog.h"
#include "ui_downloadprogressdialog.h"
#include "download/Downloader.h"
DownloadProgressDialog::DownloadProgressDialog(QWidget *parent) :
QDialog(parent),
ui_(new Ui::DownloadProgressDialog)
{
Downloader::init(this);
ui_->setupUi(this);
ui_->download_treeView->setModel(Downloader::instance()->getModel());
}
DownloadProgressDialog::~DownloadProgressDialog()
{
delete ui_;
}
| 22.105263
| 70
| 0.780952
|
kaniol-lck
|
2101990fd065acffab630677125b2bc8cb5fe0ee
| 43,538
|
inl
|
C++
|
include/Core/CastorUtils/Graphics/PixelFormat.inl
|
DragonJoker/Castor3D
|
ee0b02eeda70cd235a224be306539850e32195f6
|
[
"MIT"
] | 245
|
2015-10-29T14:31:45.000Z
|
2022-03-31T13:04:45.000Z
|
include/Core/CastorUtils/Graphics/PixelFormat.inl
|
DragonJoker/Castor3D
|
ee0b02eeda70cd235a224be306539850e32195f6
|
[
"MIT"
] | 64
|
2016-03-11T19:45:05.000Z
|
2022-03-31T23:58:33.000Z
|
include/Core/CastorUtils/Graphics/PixelFormat.inl
|
DragonJoker/Castor3D
|
ee0b02eeda70cd235a224be306539850e32195f6
|
[
"MIT"
] | 11
|
2018-05-24T09:07:43.000Z
|
2022-03-21T21:05:20.000Z
|
/*
See LICENSE file in root folder
*/
namespace castor
{
template<> struct IsColourFormat< PixelFormat::eUNDEFINED > : public std::false_type {};
template<> struct IsColourFormat< PixelFormat::eD16_UNORM > : public std::false_type {};
template<> struct IsColourFormat< PixelFormat::eX8_D24_UNORM > : public std::false_type {};
template<> struct IsColourFormat< PixelFormat::eD32_SFLOAT > : public std::false_type {};
template<> struct IsColourFormat< PixelFormat::eS8_UINT > : public std::false_type {};
template<> struct IsColourFormat< PixelFormat::eD16_UNORM_S8_UINT > : public std::false_type {};
template<> struct IsColourFormat< PixelFormat::eD24_UNORM_S8_UINT > : public std::false_type {};
template<> struct IsColourFormat< PixelFormat::eD32_SFLOAT_S8_UINT > : public std::false_type {};
template<> struct IsDepthFormat< PixelFormat::eD16_UNORM > : public std::true_type {};
template<> struct IsDepthFormat< PixelFormat::eX8_D24_UNORM > : public std::true_type {};
template<> struct IsDepthFormat< PixelFormat::eD32_SFLOAT > : public std::true_type {};
template<> struct IsDepthFormat< PixelFormat::eD16_UNORM_S8_UINT > : public std::true_type {};
template<> struct IsDepthFormat< PixelFormat::eD24_UNORM_S8_UINT > : public std::true_type {};
template<> struct IsDepthFormat< PixelFormat::eD32_SFLOAT_S8_UINT > : public std::true_type {};
template<> struct IsStencilFormat< PixelFormat::eS8_UINT > : public std::true_type {};
template<> struct IsStencilFormat< PixelFormat::eD16_UNORM_S8_UINT > : public std::true_type {};
template<> struct IsStencilFormat< PixelFormat::eD24_UNORM_S8_UINT > : public std::true_type {};
template<> struct IsStencilFormat< PixelFormat::eD32_SFLOAT_S8_UINT > : public std::true_type {};
template<> struct IsDepthStencilFormat< PixelFormat::eD16_UNORM > : public std::true_type {};
template<> struct IsDepthStencilFormat< PixelFormat::eX8_D24_UNORM > : public std::true_type {};
template<> struct IsDepthStencilFormat< PixelFormat::eD32_SFLOAT > : public std::true_type {};
template<> struct IsDepthStencilFormat< PixelFormat::eS8_UINT > : public std::true_type {};
template<> struct IsDepthStencilFormat< PixelFormat::eD16_UNORM_S8_UINT > : public std::true_type {};
template<> struct IsDepthStencilFormat< PixelFormat::eD24_UNORM_S8_UINT > : public std::true_type {};
template<> struct IsDepthStencilFormat< PixelFormat::eD32_SFLOAT_S8_UINT > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC1_RGB_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC1_RGB_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC1_RGBA_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC1_RGBA_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC2_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC2_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC3_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC3_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC4_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC4_SNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC5_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC5_SNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC6H_UFLOAT_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC6H_SFLOAT_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC7_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eBC7_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eETC2_R8G8B8_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eETC2_R8G8B8_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eETC2_R8G8B8A1_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eETC2_R8G8B8A1_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eETC2_R8G8B8A8_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eETC2_R8G8B8A8_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eEAC_R11_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eEAC_R11_SNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eEAC_R11G11_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eEAC_R11G11_SNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_4x4_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_4x4_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_5x4_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_5x4_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_5x5_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_5x5_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_6x5_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_6x5_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_6x6_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_6x6_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_8x5_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_8x5_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_8x6_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_8x6_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_8x8_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_8x8_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_10x5_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_10x5_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_10x6_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_10x6_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_10x8_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_10x8_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_10x10_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_10x10_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_12x10_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_12x10_SRGB_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_12x12_UNORM_BLOCK > : public std::true_type {};
template<> struct IsCompressed< PixelFormat::eASTC_12x12_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR4G4B4A4_UNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eB4G4R4A4_UNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR5G5B5A1_UNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eB5G5R5A1_UNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR8G8B8A8_UNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR8G8B8A8_USCALED > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR8G8B8A8_UINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR8G8B8A8_SRGB > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eB8G8R8A8_UNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eB8G8R8A8_USCALED > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eB8G8R8A8_UINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eB8G8R8A8_SRGB > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA8B8G8R8_UNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA8B8G8R8_USCALED > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA8B8G8R8_UINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA8B8G8R8_SRGB > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR8G8B8A8_SNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR8G8B8A8_SSCALED > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR8G8B8A8_SINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eB8G8R8A8_SNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eB8G8R8A8_SSCALED > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eB8G8R8A8_SINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA8B8G8R8_SNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA8B8G8R8_SSCALED > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA8B8G8R8_SINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA2R10G10B10_UNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA2R10G10B10_USCALED > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA2R10G10B10_UINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA2B10G10R10_UNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA2B10G10R10_USCALED > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA2B10G10R10_UINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA2R10G10B10_SNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA2R10G10B10_SSCALED > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA2R10G10B10_SINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA2B10G10R10_SNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA2B10G10R10_SSCALED > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eA2B10G10R10_SINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR16G16B16A16_UNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR16G16B16A16_USCALED > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR16G16B16A16_UINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR16G16B16A16_SNORM > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR16G16B16A16_SSCALED > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR16G16B16A16_SINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR16G16B16A16_SFLOAT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR32G32B32A32_UINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR32G32B32A32_SINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR32G32B32A32_SFLOAT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR64G64B64A64_UINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR64G64B64A64_SINT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eR64G64B64A64_SFLOAT > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eBC1_RGBA_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eBC1_RGBA_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eBC2_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eBC2_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eBC3_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eBC3_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eBC7_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eBC7_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eETC2_R8G8B8A1_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eETC2_R8G8B8A1_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eETC2_R8G8B8A8_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eETC2_R8G8B8A8_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_4x4_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_4x4_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_5x4_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_5x4_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_5x5_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_5x5_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_6x5_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_6x5_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_6x6_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_6x6_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_8x5_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_8x5_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_8x6_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_8x6_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_8x8_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_8x8_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_10x5_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_10x5_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_10x6_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_10x6_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_10x8_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_10x8_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_10x10_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_10x10_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_12x10_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_12x10_SRGB_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_12x12_UNORM_BLOCK > : public std::true_type {};
template<> struct HasAlpha< PixelFormat::eASTC_12x12_SRGB_BLOCK > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR4G4_UNORM > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR4G4B4A4_UNORM > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eB4G4R4A4_UNORM > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR5G6B5_UNORM > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eB5G6R5_UNORM > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR5G5B5A1_UNORM > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eB5G5R5A1_UNORM > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eA1R5G5B5_UNORM > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8_UNORM > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8_USCALED > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8_UINT > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8_SRGB > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8G8_UNORM > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8G8_USCALED > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8G8_UINT > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8G8_SRGB > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8G8B8_UNORM > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8G8B8_USCALED > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8G8B8_UINT > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8G8B8_SRGB > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eB8G8R8_UNORM > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eB8G8R8_USCALED > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eB8G8R8_UINT > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eB8G8R8_SRGB > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8G8B8A8_UNORM > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8G8B8A8_USCALED > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8G8B8A8_UINT > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eR8G8B8A8_SRGB > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eB8G8R8A8_UNORM > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eB8G8R8A8_USCALED > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eB8G8R8A8_UINT > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eB8G8R8A8_SRGB > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eA8B8G8R8_UNORM > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eA8B8G8R8_USCALED > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eA8B8G8R8_UINT > : public std::true_type {};
template<> struct Is8UComponents< PixelFormat::eA8B8G8R8_SRGB > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eR8_SNORM > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eR8_SSCALED > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eR8_SINT > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eR8G8_SNORM > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eR8G8_SSCALED > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eR8G8_SINT > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eR8G8B8_SNORM > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eR8G8B8_SSCALED > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eR8G8B8_SINT > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eB8G8R8_SNORM > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eB8G8R8_SSCALED > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eB8G8R8_SINT > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eR8G8B8A8_SNORM > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eR8G8B8A8_SSCALED > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eR8G8B8A8_SINT > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eB8G8R8A8_SNORM > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eB8G8R8A8_SSCALED > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eB8G8R8A8_SINT > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eA8B8G8R8_SNORM > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eA8B8G8R8_SSCALED > : public std::true_type {};
template<> struct Is8SComponents< PixelFormat::eA8B8G8R8_SINT > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eA2R10G10B10_UNORM > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eA2R10G10B10_USCALED > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eA2R10G10B10_UINT > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eA2B10G10R10_UNORM > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eA2B10G10R10_USCALED > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eA2B10G10R10_UINT > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eR16_UNORM > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eR16_USCALED > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eR16_UINT > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eR16G16_UNORM > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eR16G16_USCALED > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eR16G16_UINT > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eR16G16B16_UNORM > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eR16G16B16_USCALED > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eR16G16B16_UINT > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eR16G16B16A16_UNORM > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eR16G16B16A16_USCALED > : public std::true_type {};
template<> struct Is16UComponents< PixelFormat::eR16G16B16A16_UINT > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eA2R10G10B10_SNORM > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eA2R10G10B10_SSCALED > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eA2R10G10B10_SINT > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eA2B10G10R10_SNORM > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eA2B10G10R10_SSCALED > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eA2B10G10R10_SINT > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eR16_SNORM > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eR16_SSCALED > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eR16_SINT > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eR16G16_SNORM > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eR16G16_SSCALED > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eR16G16_SINT > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eR16G16B16_SNORM > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eR16G16B16_SSCALED > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eR16G16B16_SINT > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eR16G16B16A16_SNORM > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eR16G16B16A16_SSCALED > : public std::true_type {};
template<> struct Is16SComponents< PixelFormat::eR16G16B16A16_SINT > : public std::true_type {};
template<> struct Is16FComponents< PixelFormat::eR16_SFLOAT > : public std::true_type {};
template<> struct Is16FComponents< PixelFormat::eR16G16_SFLOAT > : public std::true_type {};
template<> struct Is16FComponents< PixelFormat::eR16G16B16_SFLOAT > : public std::true_type {};
template<> struct Is16FComponents< PixelFormat::eR16G16B16A16_SFLOAT > : public std::true_type {};
template<> struct Is16FComponents< PixelFormat::eB10G11R11_UFLOAT > : public std::true_type {};
template<> struct Is16FComponents< PixelFormat::eE5B9G9R9_UFLOAT > : public std::true_type {};
template<> struct Is32UComponents< PixelFormat::eR32_UINT > : public std::true_type {};
template<> struct Is32UComponents< PixelFormat::eR32G32_UINT > : public std::true_type {};
template<> struct Is32UComponents< PixelFormat::eR32G32B32_UINT > : public std::true_type {};
template<> struct Is32UComponents< PixelFormat::eR32G32B32A32_UINT > : public std::true_type {};
template<> struct Is32SComponents< PixelFormat::eR32_SINT > : public std::true_type {};
template<> struct Is32SComponents< PixelFormat::eR32G32_SINT > : public std::true_type {};
template<> struct Is32SComponents< PixelFormat::eR32G32B32_SINT > : public std::true_type {};
template<> struct Is32SComponents< PixelFormat::eR32G32B32A32_SINT > : public std::true_type {};
template<> struct Is32FComponents< PixelFormat::eR32_SFLOAT > : public std::true_type {};
template<> struct Is32FComponents< PixelFormat::eR32G32_SFLOAT > : public std::true_type {};
template<> struct Is32FComponents< PixelFormat::eR32G32B32_SFLOAT > : public std::true_type {};
template<> struct Is32FComponents< PixelFormat::eR32G32B32A32_SFLOAT > : public std::true_type {};
template<> struct Is64UComponents< PixelFormat::eR64_UINT > : public std::true_type {};
template<> struct Is64UComponents< PixelFormat::eR64G64_UINT > : public std::true_type {};
template<> struct Is64UComponents< PixelFormat::eR64G64B64_UINT > : public std::true_type {};
template<> struct Is64UComponents< PixelFormat::eR64G64B64A64_UINT > : public std::true_type {};
template<> struct Is64SComponents< PixelFormat::eR64_SINT > : public std::true_type {};
template<> struct Is64SComponents< PixelFormat::eR64G64_SINT > : public std::true_type {};
template<> struct Is64SComponents< PixelFormat::eR64G64B64_SINT > : public std::true_type {};
template<> struct Is64SComponents< PixelFormat::eR64G64B64A64_SINT > : public std::true_type {};
template<> struct Is64FComponents< PixelFormat::eR64_SFLOAT > : public std::true_type {};
template<> struct Is64FComponents< PixelFormat::eR64G64_SFLOAT > : public std::true_type {};
template<> struct Is64FComponents< PixelFormat::eR64G64B64_SFLOAT > : public std::true_type {};
template<> struct Is64FComponents< PixelFormat::eR64G64B64A64_SFLOAT > : public std::true_type {};
template<> struct IsD16UComponent< PixelFormat::eD16_UNORM > : public std::true_type {};
template<> struct IsD16UComponent< PixelFormat::eD16_UNORM_S8_UINT > : public std::true_type {};
template<> struct IsD24UComponent< PixelFormat::eX8_D24_UNORM > : public std::true_type {};
template<> struct IsD24UComponent< PixelFormat::eD24_UNORM_S8_UINT > : public std::true_type {};
template<> struct IsD32FComponent< PixelFormat::eD32_SFLOAT > : public std::true_type {};
template<> struct IsD32FComponent< PixelFormat::eD32_SFLOAT_S8_UINT > : public std::true_type {};
template<> struct IsS8UComponent< PixelFormat::eS8_UINT > : public std::true_type {};
template< PixelFormat PFT >
struct SingleComponentT< PFT, std::enable_if_t< is8UComponentsV< PFT > > >
{
static PixelFormat constexpr value = PixelFormat::eR8_UNORM;
};
template< PixelFormat PFT >
struct SingleComponentT< PFT, std::enable_if_t< is8SComponentsV< PFT > > >
{
static PixelFormat constexpr value = PixelFormat::eR8_SNORM;
};
template< PixelFormat PFT >
struct SingleComponentT< PFT, std::enable_if_t< is16UComponentsV< PFT > > >
{
static PixelFormat constexpr value = PixelFormat::eR16_UNORM;
};
template< PixelFormat PFT >
struct SingleComponentT< PFT, std::enable_if_t< is16SComponentsV< PFT > > >
{
static PixelFormat constexpr value = PixelFormat::eR16_SNORM;
};
template< PixelFormat PFT >
struct SingleComponentT< PFT, std::enable_if_t< is16FComponentsV< PFT > > >
{
static PixelFormat constexpr value = PixelFormat::eR16_SFLOAT;
};
template< PixelFormat PFT >
struct SingleComponentT< PFT, std::enable_if_t< is32UComponentsV< PFT > > >
{
static PixelFormat constexpr value = PixelFormat::eR32_UINT;
};
template< PixelFormat PFT >
struct SingleComponentT< PFT, std::enable_if_t< is32SComponentsV< PFT > > >
{
static PixelFormat constexpr value = PixelFormat::eR32_SINT;
};
template< PixelFormat PFT >
struct SingleComponentT< PFT, std::enable_if_t< is32FComponentsV< PFT > > >
{
static PixelFormat constexpr value = PixelFormat::eR32_SFLOAT;
};
template< PixelFormat PFT >
struct SingleComponentT< PFT, std::enable_if_t< is64UComponentsV< PFT > > >
{
static PixelFormat constexpr value = PixelFormat::eR64_UINT;
};
template< PixelFormat PFT >
struct SingleComponentT< PFT, std::enable_if_t< is64SComponentsV< PFT > > >
{
static PixelFormat constexpr value = PixelFormat::eR64_SINT;
};
template< PixelFormat PFT >
struct SingleComponentT< PFT, std::enable_if_t< is64FComponentsV< PFT > > >
{
static PixelFormat constexpr value = PixelFormat::eR64_SFLOAT;
};
template<>
struct LargerTyperT< uint8_t >
{
using Type = uint16_t;
};
template<>
struct LargerTyperT< int8_t >
{
using Type = int16_t;
};
template<>
struct LargerTyperT< uint16_t >
{
using Type = uint32_t;
};
template<>
struct LargerTyperT< int16_t >
{
using Type = int32_t;
};
template<>
struct LargerTyperT< uint32_t >
{
using Type = uint64_t;
};
template<>
struct LargerTyperT< int32_t >
{
using Type = int64_t;
};
template<>
struct LargerTyperT< uint64_t >
{
using Type = uint64_t;
};
template<>
struct LargerTyperT< int64_t >
{
using Type = int64_t;
};
template<>
struct LargerTyperT< float >
{
using Type = double;
};
template<>
struct LargerTyperT< double >
{
using Type = long double;
};
template<>
struct LargerTyperT< long double >
{
using Type = long double;
};
inline constexpr uint8_t getComponentsCount( PixelFormat format )
{
return uint8_t( ashes::getCount( VkFormat( format ) ) );
}
inline constexpr bool hasAlpha( PixelFormat format )
{
bool result = false;
switch ( format )
{
#define CUPF_ENUM_VALUE( name, value, components, alpha, colour, depth, stencil, compressed )\
case PixelFormat::e##name:\
result = alpha;\
break;
#include "CastorUtils/Graphics/PixelFormat.enum"
default:
result = false;
break;
}
return result;
}
inline constexpr bool hasComponent( PixelFormat format
, PixelComponent component )
{
switch ( component )
{
case castor::PixelComponent::eRed:
return getComponentsCount( format ) >= 1
&& !ashes::isDepthOrStencilFormat( VkFormat( format ) );
case castor::PixelComponent::eGreen:
return getComponentsCount( format ) >= 2
&& !ashes::isDepthOrStencilFormat( VkFormat( format ) );
case castor::PixelComponent::eBlue:
return getComponentsCount( format ) >= 3
&& !ashes::isDepthOrStencilFormat( VkFormat( format ) );
case castor::PixelComponent::eAlpha:
return hasAlpha( format );
case castor::PixelComponent::eDepth:
return ashes::isDepthFormat( VkFormat( format ) )
|| ashes::isDepthStencilFormat( VkFormat( format ) );
case castor::PixelComponent::eStencil:
return ashes::isStencilFormat( VkFormat( format ) )
|| ashes::isDepthStencilFormat( VkFormat( format ) );
default:
return false;
}
}
inline constexpr PixelFormat getSingleComponent( PixelFormat format )
{
PixelFormat result = PixelFormat::eUNDEFINED;
switch ( format )
{
#define CUPF_ENUM_VALUE_COLOR( name, value, components, alpha )\
case PixelFormat::e##name:\
result = singleComponentV< PixelFormat::e##name >;\
break;
#include "CastorUtils/Graphics/PixelFormat.enum"
default:
result = PixelFormat::eUNDEFINED;
break;
}
return result;
}
inline constexpr bool isFloatingPoint( PixelFormat format )
{
return format == PixelFormat::eR16G16B16A16_SFLOAT
|| format == PixelFormat::eR16G16B16_SFLOAT
|| format == PixelFormat::eR16G16_SFLOAT
|| format == PixelFormat::eR16_SFLOAT
|| format == PixelFormat::eR32G32B32A32_SFLOAT
|| format == PixelFormat::eR32G32B32_SFLOAT
|| format == PixelFormat::eR32G32_SFLOAT
|| format == PixelFormat::eR32_SFLOAT
|| format == PixelFormat::eR64G64B64A64_SFLOAT
|| format == PixelFormat::eR64G64B64_SFLOAT
|| format == PixelFormat::eR64G64_SFLOAT
|| format == PixelFormat::eB10G11R11_UFLOAT
|| format == PixelFormat::eE5B9G9R9_UFLOAT
|| format == PixelFormat::eR64_SFLOAT
|| format == PixelFormat::eD32_SFLOAT
|| format == PixelFormat::eD32_SFLOAT_S8_UINT
|| format == PixelFormat::eBC6H_UFLOAT_BLOCK
|| format == PixelFormat::eBC6H_SFLOAT_BLOCK;
}
inline constexpr bool isCompressed( PixelFormat format )
{
return format >= PixelFormat::eBC1_RGB_UNORM_BLOCK
&& format <= PixelFormat::eASTC_12x12_SRGB_BLOCK;
}
inline constexpr bool isSRGBFormat( PixelFormat format )
{
return ashes::isSRGBFormat( VkFormat( format ) );
}
inline constexpr bool isRGBFormat( PixelFormat format )
{
return format == PixelFormat::eR5G6B5_UNORM
|| format == PixelFormat::eR8G8B8_UNORM
|| format == PixelFormat::eR8G8B8_SNORM
|| format == PixelFormat::eR8G8B8_USCALED
|| format == PixelFormat::eR8G8B8_SSCALED
|| format == PixelFormat::eR8G8B8_UINT
|| format == PixelFormat::eR8G8B8_SINT
|| format == PixelFormat::eR8G8B8_SRGB
|| format == PixelFormat::eR16G16B16_UNORM
|| format == PixelFormat::eR16G16B16_SNORM
|| format == PixelFormat::eR16G16B16_USCALED
|| format == PixelFormat::eR16G16B16_SSCALED
|| format == PixelFormat::eR16G16B16_UINT
|| format == PixelFormat::eR16G16B16_SINT
|| format == PixelFormat::eR16G16B16_SFLOAT
|| format == PixelFormat::eR32G32B32_UINT
|| format == PixelFormat::eR32G32B32_SINT
|| format == PixelFormat::eR32G32B32_SFLOAT
|| format == PixelFormat::eR64G64B64_UINT
|| format == PixelFormat::eR64G64B64_SINT
|| format == PixelFormat::eR64G64B64_SFLOAT
|| format == PixelFormat::eBC1_RGB_UNORM_BLOCK
|| format == PixelFormat::eBC1_RGB_SRGB_BLOCK
|| format == PixelFormat::eBC6H_UFLOAT_BLOCK
|| format == PixelFormat::eBC6H_SFLOAT_BLOCK
|| format == PixelFormat::eETC2_R8G8B8_UNORM_BLOCK
|| format == PixelFormat::eETC2_R8G8B8_SRGB_BLOCK;
}
inline constexpr bool isBGRFormat( PixelFormat format )
{
return format == PixelFormat::eB5G6R5_UNORM
|| format == PixelFormat::eB8G8R8_UNORM
|| format == PixelFormat::eB8G8R8_SNORM
|| format == PixelFormat::eB8G8R8_USCALED
|| format == PixelFormat::eB8G8R8_SSCALED
|| format == PixelFormat::eB8G8R8_UINT
|| format == PixelFormat::eB8G8R8_SINT
|| format == PixelFormat::eB8G8R8_SRGB
|| format == PixelFormat::eB10G11R11_UFLOAT
|| format == PixelFormat::eE5B9G9R9_UFLOAT;
}
inline constexpr bool isRGBAFormat( PixelFormat format )
{
return format == PixelFormat::eR4G4B4A4_UNORM
|| format == PixelFormat::eR5G5B5A1_UNORM
|| format == PixelFormat::eR8G8B8A8_UNORM
|| format == PixelFormat::eR8G8B8A8_SNORM
|| format == PixelFormat::eR8G8B8A8_USCALED
|| format == PixelFormat::eR8G8B8A8_SSCALED
|| format == PixelFormat::eR8G8B8A8_UINT
|| format == PixelFormat::eR8G8B8A8_SINT
|| format == PixelFormat::eR8G8B8A8_SRGB
|| format == PixelFormat::eR16G16B16A16_UNORM
|| format == PixelFormat::eR16G16B16A16_SNORM
|| format == PixelFormat::eR16G16B16A16_USCALED
|| format == PixelFormat::eR16G16B16A16_SSCALED
|| format == PixelFormat::eR16G16B16A16_UINT
|| format == PixelFormat::eR16G16B16A16_SINT
|| format == PixelFormat::eR16G16B16A16_SFLOAT
|| format == PixelFormat::eR32G32B32A32_UINT
|| format == PixelFormat::eR32G32B32A32_SINT
|| format == PixelFormat::eR32G32B32A32_SFLOAT
|| format == PixelFormat::eR64G64B64A64_UINT
|| format == PixelFormat::eR64G64B64A64_SINT
|| format == PixelFormat::eR64G64B64A64_SFLOAT
|| format == PixelFormat::eBC1_RGBA_UNORM_BLOCK
|| format == PixelFormat::eBC1_RGBA_SRGB_BLOCK
|| format == PixelFormat::eBC7_UNORM_BLOCK
|| format == PixelFormat::eBC7_SRGB_BLOCK
|| format == PixelFormat::eETC2_R8G8B8A1_UNORM_BLOCK
|| format == PixelFormat::eETC2_R8G8B8A1_SRGB_BLOCK
|| format == PixelFormat::eETC2_R8G8B8A8_UNORM_BLOCK
|| format == PixelFormat::eETC2_R8G8B8A8_SRGB_BLOCK;
}
inline constexpr bool isARGBFormat( PixelFormat format )
{
return format == PixelFormat::eA1R5G5B5_UNORM
|| format == PixelFormat::eA2R10G10B10_UNORM
|| format == PixelFormat::eA2R10G10B10_SNORM
|| format == PixelFormat::eA2R10G10B10_USCALED
|| format == PixelFormat::eA2R10G10B10_SSCALED
|| format == PixelFormat::eA2R10G10B10_UINT
|| format == PixelFormat::eA2R10G10B10_SINT;
}
inline constexpr bool isBGRAFormat( PixelFormat format )
{
return format == PixelFormat::eB4G4R4A4_UNORM
|| format == PixelFormat::eB5G5R5A1_UNORM
|| format == PixelFormat::eB8G8R8A8_UNORM
|| format == PixelFormat::eB8G8R8A8_SNORM
|| format == PixelFormat::eB8G8R8A8_USCALED
|| format == PixelFormat::eB8G8R8A8_SSCALED
|| format == PixelFormat::eB8G8R8A8_UINT
|| format == PixelFormat::eB8G8R8A8_SINT
|| format == PixelFormat::eB8G8R8A8_SRGB;
}
inline constexpr bool isABGRFormat( PixelFormat format )
{
return format == PixelFormat::eA8B8G8R8_UNORM
|| format == PixelFormat::eA8B8G8R8_SNORM
|| format == PixelFormat::eA8B8G8R8_USCALED
|| format == PixelFormat::eA8B8G8R8_SSCALED
|| format == PixelFormat::eA8B8G8R8_UINT
|| format == PixelFormat::eA8B8G8R8_SINT
|| format == PixelFormat::eA8B8G8R8_SRGB
|| format == PixelFormat::eA2B10G10R10_UNORM
|| format == PixelFormat::eA2B10G10R10_SNORM
|| format == PixelFormat::eA2B10G10R10_USCALED
|| format == PixelFormat::eA2B10G10R10_SSCALED
|| format == PixelFormat::eA2B10G10R10_UINT
|| format == PixelFormat::eA2B10G10R10_SINT;
}
inline constexpr bool isDepthOrStencilFormat( PixelFormat format )
{
return ashes::isDepthOrStencilFormat( VkFormat( format ) );
}
inline constexpr PixelFormat getPFWithoutAlpha( PixelFormat format )
{
PixelFormat result = PixelFormat::eCount;
switch ( format )
{
case PixelFormat::eR5G5B5A1_UNORM:
result = PixelFormat::eR5G6B5_UNORM;
break;
case PixelFormat::eR8G8B8A8_UNORM:
result = PixelFormat::eR8G8B8_UNORM;
break;
case PixelFormat::eA8B8G8R8_UNORM:
result = PixelFormat::eB8G8R8_UNORM;
break;
case PixelFormat::eR8G8B8A8_SRGB:
result = PixelFormat::eR8G8B8_UNORM;
break;
case PixelFormat::eA8B8G8R8_SRGB:
result = PixelFormat::eB8G8R8_UNORM;
break;
case PixelFormat::eR16G16B16A16_SFLOAT:
result = PixelFormat::eR16G16B16_SFLOAT;
break;
case PixelFormat::eR32G32B32A32_SFLOAT:
result = PixelFormat::eR32G32B32_SFLOAT;
break;
case PixelFormat::eR64G64B64A64_SFLOAT:
result = PixelFormat::eR64G64B64_SFLOAT;
break;
default:
result = format;
break;
}
return result;
}
inline constexpr uint32_t getComponentIndex( PixelComponent component )
{
switch ( component )
{
case castor::PixelComponent::eRed:
return 0u;
case castor::PixelComponent::eGreen:
return 1u;
case castor::PixelComponent::eBlue:
return 2u;
case castor::PixelComponent::eAlpha:
return 3u;
case castor::PixelComponent::eDepth:
return 0u;
case castor::PixelComponent::eStencil:
return 1u;
default:
return 0u;
}
}
inline constexpr uint32_t getComponentIndex( PixelComponent component
, PixelFormat format )
{
if ( isABGRFormat( format ) )
{
switch ( component )
{
case castor::PixelComponent::eAlpha:
return 0u;
case castor::PixelComponent::eBlue:
return 1u;
case castor::PixelComponent::eGreen:
return 2u;
case castor::PixelComponent::eRed:
return 3u;
default:
return 0u;
}
}
else if ( isBGRAFormat( format ) )
{
switch ( component )
{
case castor::PixelComponent::eBlue:
return 0u;
case castor::PixelComponent::eGreen:
return 1u;
case castor::PixelComponent::eRed:
return 2u;
case castor::PixelComponent::eAlpha:
return 3u;
default:
return 0u;
}
}
else if ( isBGRFormat( format ) )
{
switch ( component )
{
case castor::PixelComponent::eBlue:
return 0u;
case castor::PixelComponent::eGreen:
return 1u;
case castor::PixelComponent::eRed:
return 2u;
default:
return 0u;
}
}
else
{
switch ( component )
{
case castor::PixelComponent::eRed:
return 0u;
case castor::PixelComponent::eGreen:
return 1u;
case castor::PixelComponent::eBlue:
return 2u;
case castor::PixelComponent::eAlpha:
return 3u;
case castor::PixelComponent::eDepth:
return 0u;
case castor::PixelComponent::eStencil:
return 1u;
default:
return 0u;
}
}
}
inline constexpr PixelComponent getIndexComponent( uint32_t index
, PixelFormat format )
{
if ( isABGRFormat( format ) )
{
switch ( index )
{
case 0u:
return castor::PixelComponent::eAlpha;
case 1u:
return castor::PixelComponent::eBlue;
case 2u:
return castor::PixelComponent::eGreen;
case 3u:
return castor::PixelComponent::eRed;
default:
return castor::PixelComponent::eRed;
}
}
else if ( isBGRAFormat( format ) )
{
switch ( index )
{
case 0u:
return castor::PixelComponent::eBlue;
case 1u:
return castor::PixelComponent::eGreen;
case 2u:
return castor::PixelComponent::eRed;
case 3u:
return castor::PixelComponent::eAlpha;
default:
return castor::PixelComponent::eRed;
}
}
else if ( isBGRFormat( format ) )
{
switch ( index )
{
case 0u:
return castor::PixelComponent::eBlue;
case 1u:
return castor::PixelComponent::eGreen;
case 2u:
return castor::PixelComponent::eRed;
default:
return castor::PixelComponent::eRed;
}
}
else if ( isDepthOrStencilFormat( format ) )
{
switch ( index )
{
case 0u:
return castor::PixelComponent::eDepth;
case 1u:
return castor::PixelComponent::eStencil;
default:
return castor::PixelComponent::eDepth;
}
}
else
{
switch ( index )
{
case 0u:
return castor::PixelComponent::eRed;
case 1u:
return castor::PixelComponent::eGreen;
case 2u:
return castor::PixelComponent::eBlue;
case 3u:
return castor::PixelComponent::eAlpha;
default:
return castor::PixelComponent::eRed;
}
}
}
}
| 48.591518
| 103
| 0.744086
|
DragonJoker
|
210621fd353b5ea3c3b547e0370df24eb9e42996
| 3,072
|
cpp
|
C++
|
test/views/join_view.cpp
|
cjdb/NanoRange
|
16d33c66c7869e57dd82ff8673eb5172eff1343d
|
[
"BSL-1.0"
] | 323
|
2017-10-09T19:46:26.000Z
|
2022-03-29T10:44:07.000Z
|
test/views/join_view.cpp
|
cjdb/NanoRange
|
16d33c66c7869e57dd82ff8673eb5172eff1343d
|
[
"BSL-1.0"
] | 66
|
2018-05-30T23:54:56.000Z
|
2021-03-26T00:20:57.000Z
|
test/views/join_view.cpp
|
cjdb/NanoRange
|
16d33c66c7869e57dd82ff8673eb5172eff1343d
|
[
"BSL-1.0"
] | 26
|
2018-06-08T14:01:20.000Z
|
2022-02-17T13:31:47.000Z
|
// cmcstl2 - A concept-enabled C++ standard library
//
// Copyright Casey Carter 2016
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Project home: https://github.com/caseycarter/cmcstl2
//
#include <nanorange/views/join.hpp>
#include <nanorange/views/iota.hpp>
#include <nanorange/views/single.hpp>
#include <nanorange/views/transform.hpp>
#include <nanorange/views/filter.hpp>
#include <nanorange/algorithm/count.hpp>
#include <nanorange/algorithm/transform.hpp>
#include <memory>
#include <vector>
#include <string>
#include "../catch.hpp"
#include "../test_utils.hpp"
namespace ranges = nano::ranges;
TEST_CASE("views.join")
{
using namespace ranges;
{
std::vector<std::string> vs{"this","is","his","face"};
join_view jv{vs};
::check_equal(jv, {'t','h','i','s','i','s','h','i','s','f','a','c','e'});
static_assert(bidirectional_range<decltype(jv)>);
static_assert(bidirectional_range<const decltype(jv)>);
static_assert(common_range<decltype(jv)>);
static_assert(common_range<const decltype(jv)>);
}
{
auto rng = views::iota(0,4)
| views::transform([](int i) {return views::iota(0,i);})
| views::join;
::check_equal(rng, {0,0,1,0,1,2});
static_assert(input_range<decltype(rng)>);
static_assert(!range<const decltype(rng)>);
static_assert(!forward_range<decltype(rng)>);
static_assert(!common_range<decltype(rng)>);
}
{
auto rng = views::iota(0,4)
| views::transform([](int i) {return views::iota(0,i);})
| views::filter([](auto){ return true; })
| views::join;
::check_equal(rng, {0,0,1,0,1,2});
static_assert(input_range<decltype(rng)>);
static_assert(!range<const decltype(rng)>);
static_assert(!forward_range<decltype(rng)>);
static_assert(!common_range<decltype(rng)>);
}
{
// https://github.com/ericniebler/stl2/issues/604
auto rng0 = views::iota(0, 4)
| views::transform([](int i) { return views::iota(0, i); });
auto rng1 = ref_view{rng0};
static_assert(random_access_range<decltype(rng1)>);
static_assert(range<const decltype(rng1)>);
static_assert(common_range<decltype(rng1)>);
static_assert(random_access_range<range_reference_t<decltype(rng1)>>);
static_assert(detail::simple_view<decltype(rng1)>);
static_assert(!std::is_reference_v<range_reference_t<decltype(rng1)>>);
auto rng2 = rng1 | views::join;
::check_equal(rng2, {0,0,1,0,1,2});
static_assert(input_range<decltype(rng2)>);
static_assert(!range<const decltype(rng2)>);
static_assert(!forward_range<decltype(rng2)>);
static_assert(!common_range<decltype(rng2)>);
}
// Check conversion to string
{
const std::vector<std::string> vec{"the", "quick", "brown", "fox"};
auto rng = vec | views::join;
static_assert(common_range<decltype(rng)>);
const std::string out(rng.begin(), rng.end());
CHECK(out == "thequickbrownfox");
}
{
auto rng = views::single(std::vector{1, 2, 3}) | views::join;
::check_equal(rng, {1, 2, 3});
}
}
| 32
| 75
| 0.690755
|
cjdb
|
210d76c7e8597faf01bf3b801e610030a7462797
| 288
|
cpp
|
C++
|
Pbinfo/Factorial2.cpp
|
Al3x76/cpp
|
08a0977d777e63e0d36d87fcdea777de154697b7
|
[
"MIT"
] | 7
|
2019-01-06T19:10:14.000Z
|
2021-10-16T06:41:23.000Z
|
Pbinfo/Factorial2.cpp
|
Al3x76/cpp
|
08a0977d777e63e0d36d87fcdea777de154697b7
|
[
"MIT"
] | null | null | null |
Pbinfo/Factorial2.cpp
|
Al3x76/cpp
|
08a0977d777e63e0d36d87fcdea777de154697b7
|
[
"MIT"
] | 6
|
2019-01-06T19:17:30.000Z
|
2020-02-12T22:29:17.000Z
|
#include <iostream>
using namespace std;
int det(int n){
int rez=1, k=1, prec;
while(rez<=n){
prec=rez;
rez=rez*k;
k++;
}
if(n-prec<=rez-n) return prec;
return rez;
}
int main()
{
int n;
cin>>n;
cout<<det(n);
return 0;
}
| 10.666667
| 34
| 0.482639
|
Al3x76
|
210ff1d18230b2f4ea1a78ef193e3bc65157b212
| 1,921
|
cpp
|
C++
|
05-Thresholding-AOT/threshold.cpp
|
booleangabs/Halide
|
b1ff2d23f1bcffde753759891ce1b45c4efaa4e0
|
[
"MIT"
] | null | null | null |
05-Thresholding-AOT/threshold.cpp
|
booleangabs/Halide
|
b1ff2d23f1bcffde753759891ce1b45c4efaa4e0
|
[
"MIT"
] | null | null | null |
05-Thresholding-AOT/threshold.cpp
|
booleangabs/Halide
|
b1ff2d23f1bcffde753759891ce1b45c4efaa4e0
|
[
"MIT"
] | null | null | null |
/*
g++ -fno-rtti -std=c++17 threshold.cpp -o threshold -I$HALIDE_ROOT/include \
-I$HALIDE_ROOT/tools -Iinclude -L$HALIDE_ROOT/lib -lHalide -lz -ldl \
-lpthread
*/
#include <iostream>
#include <fstream>
#include "Halide.h"
#include "constants.hpp"
using namespace Halide;
using namespace Halide::ConciseCasts;
using namespace Constants;
int main(int argc, char **argv) {
Func threshold_binary("threshold_binary");
Func threshold_binary_inv("threshold_binary_inv");
Func threshold_to_zero("threshold_to_zero");
Func threshold_to_zero_inv("threshold_to_zero_inv");
Var x("x"), y("y");
ImageParam input(type_of<uint8_t>(), 2, "input");
Param<int> threshold("threshold");
threshold_binary(x, y) = u8(select(input(x, y) >= threshold, 255, 0));
threshold_binary_inv(x, y) = u8(select(input(x, y) >= threshold, 0, 255));
threshold_to_zero(x, y) = u8(select(input(x, y) >= threshold, input(x, y), 0));
threshold_to_zero_inv(x, y) = u8(select(input(x, y) >= threshold, 0, input(x, y)));
int vectorSize = get_host_target().natural_vector_size(input.type());
threshold_binary.vectorize(x, vectorSize).parallel(y);
threshold_binary_inv.vectorize(x, vectorSize).parallel(y);
threshold_to_zero.vectorize(x, vectorSize).parallel(y);
threshold_to_zero_inv.vectorize(x, vectorSize).parallel(y);
Func functions[4] = {threshold_binary, threshold_binary_inv,
threshold_to_zero, threshold_to_zero_inv};
std::ofstream header("include/threshold.h");
for (Func fn : functions) {
string name = fn.name();
fn.compile_to_static_library("include/" + name, {input, threshold}, name);
header << "#include \"" + name + ".h\"" << std::endl;
}
header.close();
std::system("mv include/*.a lib/");
std::cout << "Halide pipeline compiled, but not yet run." << std::endl;
return 0;
}
| 36.245283
| 88
| 0.665799
|
booleangabs
|
21117033d5fef57bbd906d3404b64bc228f2f882
| 29,693
|
cpp
|
C++
|
test/test_arrayView.cpp
|
abbyssoul/libsolace
|
390c3094af1837715787c33297720bf514f04710
|
[
"Apache-2.0"
] | 18
|
2016-05-30T23:46:27.000Z
|
2022-01-11T18:20:28.000Z
|
test/test_arrayView.cpp
|
abbyssoul/libsolace
|
390c3094af1837715787c33297720bf514f04710
|
[
"Apache-2.0"
] | 4
|
2017-09-12T13:32:28.000Z
|
2019-10-21T10:36:18.000Z
|
test/test_arrayView.cpp
|
abbyssoul/libsolace
|
390c3094af1837715787c33297720bf514f04710
|
[
"Apache-2.0"
] | 5
|
2017-11-24T19:34:06.000Z
|
2019-10-18T14:24:12.000Z
|
/*
* Copyright 2016 Ivan Ryabov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*******************************************************************************
* libSolace Unit Test Suit
* @file test/test_arrayView.cpp
* @brief Test set of Solace::ArrayView
******************************************************************************/
#include <solace/arrayView.hpp> // Class being tested.
#include <gtest/gtest.h>
#include "mockTypes.hpp"
using namespace Solace;
template <typename T, size_t N>
typename ArrayView<T>::size_type nativeArrayLength(const T (& SOLACE_UNUSED(t))[N]) { return N; }
template <typename T, size_t N, typename F>
T* generateTestArray(T (&carray)[N], F generator) {
for (size_t i = 0; i < N; ++i) {
carray[i] = generator(i);
}
return carray;
}
int fillOdd(size_t i) {
return static_cast<int>(2*i) - 1;
}
int fillEven(size_t i) {
static constexpr int bias = 2928;
return 2*static_cast<int>(i) + bias;
}
template <typename T>
std::ostream& operator<< (std::ostream& ostr, const Solace::ArrayView<T>& a) {
ostr << '[';
for (typename Solace::ArrayView<T>::size_type end = a.size(), i = 0; i < end; ++i) {
ostr << a[i];
if (i < end - 1) {
ostr << ',' << ' ';
}
}
ostr << ']';
return ostr;
}
struct MisalignedType {
byte b;
uint32 u32;
uint64 u64;
};
class TestArrayView : public ::testing::Test {
protected:
static const ArrayView<int>::size_type ZERO;
static const ArrayView<int>::size_type TEST_SIZE_0;
static const ArrayView<int>::size_type TEST_SIZE_1;
struct NonPodStruct {
static ArrayView<int>::size_type TotalCount;
static const int IVALUE_DEFAULT;
static const char* STR_DEFAULT;
int iValue;
std::string str;
virtual ~NonPodStruct() {
--TotalCount;
}
NonPodStruct(int i, const char* inStr) :
iValue(i), str(inStr)
{
++TotalCount;
}
NonPodStruct(int i, std::string&& inStr) :
iValue(i), str(mv(inStr))
{
++TotalCount;
}
NonPodStruct() : iValue(IVALUE_DEFAULT), str(STR_DEFAULT)
{
++TotalCount;
}
NonPodStruct(NonPodStruct&& other) : iValue(other.iValue), str(mv(other.str))
{
++TotalCount;
}
NonPodStruct(const NonPodStruct& other) : iValue(other.iValue), str(other.str)
{
++TotalCount;
}
NonPodStruct& operator= (const NonPodStruct& rhs) {
iValue = rhs.iValue;
str = rhs.str;
return (*this);
}
NonPodStruct& operator= (NonPodStruct&& rhs) {
iValue = mv(rhs.iValue);
str = mv(rhs.str);
return (*this);
}
bool operator== (const NonPodStruct& other) const {
return iValue == other.iValue && str == other.str;
}
};
struct DerivedNonPodStruct : public NonPodStruct {
float fValue;
~DerivedNonPodStruct() override = default;
DerivedNonPodStruct() :
NonPodStruct(312, "Derived String"), fValue(3.1415f)
{
}
DerivedNonPodStruct(int x, float f, const char* inStr) :
NonPodStruct(x, inStr), fValue(f)
{
}
};
static NonPodStruct fillOddNonPods(size_t i) {
auto const index = static_cast<int>(i)*2 - 1;
auto str = std::string("Some Odd string: ") + std::to_string(index);
return NonPodStruct(index, mv(str));
}
static NonPodStruct fillEvenNonPods(size_t i) {
auto const index = static_cast<int>(i)*2 + 1;
auto str = std::string("Some Event string: ") + std::to_string(index);
return NonPodStruct(index, mv(str));
}
template<typename T>
class NonPodGuard {
public:
~NonPodGuard() {
for (size_t i = 0; i < _size; ++i) {
reinterpret_cast<T*>(_mem + i * sizeof(T))->~T();
}
}
NonPodGuard(byte* mem, size_t size) :
_mem(mem),
_size(size)
{
for (size_t i = 0; i < _size; ++i) {
new ((_mem + i * sizeof(T))) T();
}
}
private:
byte* _mem;
size_t _size;
};
public:
void SetUp() override {
// TODO(abbyssoul): Debug::BeginMemCheck();
EXPECT_EQ(ZERO, NonPodStruct::TotalCount);
EXPECT_EQ(0, SometimesConstructable::InstanceCount);
}
void TearDown() override {
// TODO(abbyssoul): Debug::EndMemCheck();
EXPECT_EQ(ZERO, NonPodStruct::TotalCount);
EXPECT_EQ(0, SometimesConstructable::InstanceCount);
}
};
TEST_F(TestArrayView, testEmpty) {
{
const ArrayView<int> empty_array;
EXPECT_TRUE(empty_array.empty());
EXPECT_EQ(ZERO, empty_array.size());
EXPECT_EQ(empty_array.begin(), empty_array.end());
EXPECT_EQ(nullptr, empty_array);
}
{
const ArrayView<NonPodStruct> empty_array(nullptr);
EXPECT_TRUE(empty_array.empty());
EXPECT_EQ(ZERO, empty_array.size());
EXPECT_EQ(empty_array.begin(), empty_array.end());
EXPECT_EQ(nullptr, empty_array);
}
{
const ArrayView<DerivedNonPodStruct> empty_array;
EXPECT_TRUE(empty_array.empty());
EXPECT_EQ(ZERO, empty_array.size());
EXPECT_EQ(empty_array.begin(), empty_array.end());
EXPECT_EQ(nullptr, empty_array);
}
}
TEST_F(TestArrayView, testConstructionFromMemoryResource) {
byte buffer[32]; // 32 bytes is 8 u32.
EXPECT_EQ(32U, arrayView(buffer).size());
EXPECT_EQ(8U, arrayView(reinterpret_cast<uint32*>(buffer), sizeof (buffer) / sizeof (uint32)).size());
}
TEST_F(TestArrayView, testCopyConstruction) {
int src[16];
const ArrayView<int>::size_type srcSize = sizeof(src) / sizeof(int);
generateTestArray(src, fillOdd);
ArrayView<int> a2(src);
EXPECT_TRUE(!a2.empty());
EXPECT_EQ(srcSize, a2.size());
// Create a copy:
ArrayView<int> a1(a2);
EXPECT_TRUE(!a1.empty());
EXPECT_EQ(a1.size(), a2.size());
// Check that the data is the same:
for (ArrayView<int>::size_type i = 0; i < a1.size(); ++i) {
EXPECT_EQ(static_cast<int>(2*i) - 1, a1[i]);
}
// Check that changing values in the original C-array changes ArrayView values:
auto newGen = [](size_t i) { return static_cast<int>(2*i + 3); };
generateTestArray(src, newGen);
EXPECT_EQ(a1.size(), a2.size());
// Check that the data is the same:
for (ArrayView<int>::size_type i = 0; i < a1.size(); ++i) {
EXPECT_EQ(newGen(i), a1[i]);
EXPECT_EQ(newGen(i), a2[i]);
}
}
TEST_F(TestArrayView, testCopy) {
{
int src[16];
generateTestArray(src, fillOdd);
ArrayView<int> a1;
ArrayView<int> a2(src);
EXPECT_TRUE(a1.empty());
EXPECT_TRUE(!a2.empty());
// Copy arrays
a1 = a2;
EXPECT_TRUE(!a1.empty());
EXPECT_TRUE(!a2.empty());
EXPECT_EQ(a1.size(), a2.size());
for (ArrayView<int>::size_type i = 0; i < a1.size(); ++i) {
EXPECT_EQ(fillOdd(i), a1[i]);
}
// Make sure that if underlaying memory changed - this is reflected in arrayView:
generateTestArray(src, fillEven);
for (ArrayView<int>::size_type i = 0; i < a1.size(); ++i) {
EXPECT_EQ(fillEven(i), a1[i]);
EXPECT_EQ(fillEven(i), a2[i]);
}
}
}
TEST_F(TestArrayView, dataTypesFitness) {
byte buf[sizeof(SimpleType)];
auto arr = arrayView<SimpleType>(wrapMemory(buf));
ASSERT_EQ(1U, arr.size());
arr[0].y = 3;
EXPECT_EQ(3, arr[0].y);
}
TEST_F(TestArrayView, dataTypeNotFitting) {
byte buf[sizeof(SimpleType) + sizeof(SimpleType) /2];
auto arr = arrayView<SimpleType>(wrapMemory(buf));
ASSERT_EQ(1U, arr.size());
arr[0].y = 3;
EXPECT_EQ(3, arr[0].y);
}
/*
TEST_F(TestArrayView, testBasics) {
ArrayView<uint> array(TEST_SIZE_0);
EXPECT_TRUE(!array.empty());
EXPECT_EQ(TEST_SIZE_0, array.size());
for (auto i = ZERO, end = array.size(); i < end; ++i) {
EXPECT_EQ(0U, array[i]);
}
uint count = 0;
for (auto i = array.begin(), end = array.end(); i != end; ++i) {
EXPECT_EQ(0U, *i);
*i = count++;
}
EXPECT_EQ(static_cast<ArrayView<uint>::size_type>(count), array.size());
for (auto i = ZERO, end = array.size(); i < end; ++i) {
EXPECT_EQ(static_cast<uint>(i), array[i]);
}
// TODO(abbyssoul): Test access pass end!!
}
TEST_F(TestArrayView, testString) {
ArrayView<String> array(TEST_SIZE_0);
EXPECT_TRUE(!array.empty());
EXPECT_EQ(TEST_SIZE_0, array.size());
for (auto i = ZERO, end = array.size(); i < end; ++i) {
EXPECT_EQ(String::Empty, array[i]);
}
auto count = ZERO;
for (auto& i : array) {
EXPECT_TRUE(i.empty());
i = "Item " + std::to_string(count++);
}
EXPECT_EQ(count, array.size());
for (auto i = ZERO, end = array.size(); i < end; ++i) {
EXPECT_EQ(String("Item " + std::to_string(i)), array[i]);
}
}
TEST_F(TestArrayView, testNonPods) {
EXPECT_EQ(ZERO, NonPodStruct::TotalCount);
{
ArrayView<NonPodStruct> array(TEST_SIZE_1);
EXPECT_EQ(TEST_SIZE_1, array.size());
EXPECT_EQ(NonPodStruct::TotalCount, array.size());
for (auto i = ZERO, end = array.size(); i < end; ++i) {
EXPECT_EQ(NonPodStruct::IVALUE_DEFAULT, array[i].iValue);
EXPECT_EQ(NonPodStruct::STR_DEFAULT, array[i].str);
}
decltype(NonPodStruct::iValue) count = ZERO;
for (auto &i : array) {
EXPECT_EQ(NonPodStruct::IVALUE_DEFAULT, i.iValue);
EXPECT_EQ(NonPodStruct::STR_DEFAULT, i.str);
i.iValue = count++;
i.str = "Item " + std::to_string(i.iValue);
}
EXPECT_EQ(static_cast<ArrayView<NonPodStruct>::size_type>(count), array.size());
for (auto i = ZERO, end = array.size(); i < end; ++i) {
EXPECT_EQ(static_cast<int>(i), array[i].iValue);
EXPECT_EQ(String("Item " + std::to_string(i)), array[i].str);
}
}
EXPECT_EQ(ZERO, NonPodStruct::TotalCount);
}
TEST_F(TestArrayView, testInitializerList) {
{
const int native_array[] = {0, 1, 2, 3};
const ArrayView<int> array = {0, 1, 2, 3};
EXPECT_EQ(nativeArrayLength(native_array), array.size());
for (auto i = ZERO, end = array.size(); i < end; ++i) {
EXPECT_EQ(native_array[i], array[i]);
}
}
{
const String native_array[] = {"Abc", "", "dfe", "_xyz3"};
const ArrayView<String> array = {"Abc", "", "dfe", "_xyz3"};
EXPECT_EQ(nativeArrayLength(native_array), array.size());
for (auto i = ZERO, end = array.size(); i < end; ++i) {
EXPECT_EQ(native_array[i], array[i]);
}
}
EXPECT_EQ(ZERO, NonPodStruct::TotalCount);
{
const NonPodStruct native_array[] = {
NonPodStruct(0, "yyyz"),
NonPodStruct(),
NonPodStruct(-321, "yyx"),
NonPodStruct(990, "x^hhf")
};
EXPECT_EQ(nativeArrayLength(native_array), NonPodStruct::TotalCount);
const ArrayView<NonPodStruct> array = {
NonPodStruct(0, "yyyz"),
NonPodStruct(),
NonPodStruct(-321, "yyx"),
NonPodStruct(990, "x^hhf")
};
EXPECT_EQ(nativeArrayLength(native_array), array.size());
EXPECT_EQ(nativeArrayLength(native_array) + array.size(), NonPodStruct::TotalCount);
for (auto i = ZERO, end = array.size(); i < end; ++i) {
EXPECT_EQ(native_array[i].iValue, array[i].iValue);
EXPECT_EQ(native_array[i].str, array[i].str);
}
}
EXPECT_EQ(ZERO, NonPodStruct::TotalCount);
}
TEST_F(TestArrayView, testFromNativeConvertion) {
{
const int native_array[] = {0, 1, 2, 3};
const ArrayView<int> array(nativeArrayLength(native_array), native_array);
EXPECT_EQ(nativeArrayLength(native_array), array.size());
for (auto i = ZERO, end = array.size(); i < end; ++i) {
EXPECT_EQ(native_array[i], array[i]);
}
}
{
const String native_array[] = {"Abc", "", "dfe", "_xyz3"};
const ArrayView<String> array(nativeArrayLength(native_array), native_array);
EXPECT_EQ(nativeArrayLength(native_array), array.size());
for (auto i = ZERO, end = array.size(); i < end; ++i) {
EXPECT_EQ(native_array[i], array[i]);
}
}
{
const NonPodStruct native_array[] = {
NonPodStruct(0, "yyyz"),
NonPodStruct(),
NonPodStruct(-321, "yyx"),
NonPodStruct(990, "x^hhf")
};
const ArrayView<NonPodStruct> array(nativeArrayLength(native_array), native_array);
EXPECT_EQ(nativeArrayLength(native_array), array.size());
for (auto i = ZERO, end = array.size(); i < end; ++i) {
EXPECT_EQ(native_array[i].iValue, array[i].iValue);
EXPECT_EQ(native_array[i].str, array[i].str);
}
}
}
template <typename T>
ArrayView<T> moveArray(std::initializer_list<T> list) {
return {list};
}
TEST_F(TestArrayView, testMoveAssignment) {
{// Test on integral types
ArrayView<int> array(0);
EXPECT_TRUE(array.empty());
EXPECT_EQ(ZERO, array.size());
array = moveArray<int>({1, 2, 3});
EXPECT_TRUE(!array.empty());
const int src1[] = {1, 2, 3};
EXPECT_EQ(3, array.size());
for (auto i = ZERO, end = array.size(); i < end; ++i) {
EXPECT_EQ(src1[i], array[i]);
}
}
{ // Test on strings types
ArrayView<String> array(0);
EXPECT_TRUE(array.empty());
array = moveArray<String>({"tasrd", "", "hhha", "asd"});
EXPECT_TRUE(!array.empty());
const String src[] = {"tasrd", "", "hhha", "asd"};
EXPECT_EQ(4, array.size());
for (auto i = ZERO, end = array.size(); i < end; ++i) {
EXPECT_EQ(src[i], array[i]);
}
}
{ // Test on non-pod types
ArrayView<NonPodStruct> array(0);
const NonPodStruct src[] = {
NonPodStruct(0, "yyyz"),
NonPodStruct(),
NonPodStruct(-321, "yyx"),
NonPodStruct(990, "x^hhf")
};
EXPECT_TRUE(array.empty());
array = moveArray<NonPodStruct>({
NonPodStruct(0, "yyyz"),
NonPodStruct(),
NonPodStruct(-321, "yyx"),
NonPodStruct(990, "x^hhf")
});
EXPECT_TRUE(!array.empty());
EXPECT_EQ(4, array.size());
for (auto i = ZERO, end = array.size(); i < end; ++i) {
EXPECT_EQ(src[i].iValue, array[i].iValue);
EXPECT_EQ(src[i].str, array[i].str);
}
}
}
*/
TEST_F(TestArrayView, testEquals_EmptyArray) {
ArrayView<int> emptyArray;
EXPECT_TRUE(emptyArray == nullptr);
EXPECT_TRUE(!(emptyArray != nullptr));
EXPECT_TRUE(emptyArray.equals(emptyArray));
{ // Check that array views of the same memory are equal:
ArrayView<int> differenEmptyArray;
EXPECT_TRUE(emptyArray.equals(differenEmptyArray));
EXPECT_TRUE(differenEmptyArray.equals(emptyArray));
EXPECT_TRUE(emptyArray == differenEmptyArray);
EXPECT_TRUE(differenEmptyArray == emptyArray);
EXPECT_TRUE(!(emptyArray != differenEmptyArray));
EXPECT_TRUE(!(differenEmptyArray != emptyArray));
}
}
TEST_F(TestArrayView, testEquals_IntegralType) {
int src[32];
generateTestArray(src, fillOdd);
auto array = arrayView(src);
// Make sure it is not equals empty array if it is not empty
EXPECT_TRUE(!array.equals(ArrayView<int>()));
EXPECT_TRUE(!(array == ArrayView<int>()));
EXPECT_TRUE(!(array == nullptr));
EXPECT_TRUE(array != ArrayView<int>());
EXPECT_TRUE(array != nullptr);
// Self equality is important
EXPECT_TRUE(array.equals(array));
{ // Check that array views of the same memory are equal:
ArrayView<int> arraySharingMemory(src);
EXPECT_TRUE(array.equals(arraySharingMemory));
EXPECT_TRUE(arraySharingMemory.equals(array));
EXPECT_TRUE(array == arraySharingMemory);
EXPECT_TRUE(arraySharingMemory == array);
EXPECT_TRUE(!(array != arraySharingMemory));
EXPECT_TRUE(!(arraySharingMemory != array));
}
{ // Unrelated memory buffer array equals by value:
byte byteSrc[32 * sizeof (int)];
ArrayView<int> arrayBytes(wrapMemory(byteSrc));
arrayBytes.fill(fillOdd);
EXPECT_TRUE(array.equals(arrayBytes));
EXPECT_TRUE(arrayBytes.equals(array));
EXPECT_TRUE(array == arrayBytes);
EXPECT_TRUE(arrayBytes == array);
EXPECT_TRUE(!(array != arrayBytes));
EXPECT_TRUE(!(arrayBytes != array));
}
{ // Unrelated smaller memory buffer array filled with the same values no equals:
byte byteSrc[24 * sizeof (int)];
ArrayView<int> arrayBytes(wrapMemory(byteSrc));
arrayBytes.fill(fillOdd);
EXPECT_TRUE(!array.equals(arrayBytes));
EXPECT_TRUE(!arrayBytes.equals(array));
EXPECT_TRUE(array != arrayBytes);
EXPECT_TRUE(arrayBytes != array);
EXPECT_TRUE(!(array == arrayBytes));
EXPECT_TRUE(!(arrayBytes == array));
}
{ // Unrelated memory buffer array filled with different values not equal by value:
byte byteSrc[32 * sizeof (int)];
ArrayView<int> arrayBytes(wrapMemory(byteSrc));
arrayBytes.fill(fillEven);
EXPECT_TRUE(!array.equals(arrayBytes));
EXPECT_TRUE(!arrayBytes.equals(array));
EXPECT_TRUE(array != arrayBytes);
EXPECT_TRUE(arrayBytes != array);
EXPECT_TRUE(!(array == arrayBytes));
EXPECT_TRUE(!(arrayBytes == array));
}
}
TEST_F(TestArrayView, testEquals_NonPodType) {
static constexpr size_t kNonPodStruct = 81;
NonPodStruct src[kNonPodStruct];
generateTestArray(src, fillOddNonPods);
auto array = arrayView(src);
// Make sure it is not equals empty array if it is not empty
EXPECT_TRUE(!array.equals(ArrayView<NonPodStruct>()));
EXPECT_TRUE(!(array == ArrayView<NonPodStruct>()));
EXPECT_TRUE(!(array == nullptr));
EXPECT_TRUE(array != ArrayView<NonPodStruct>());
EXPECT_TRUE(array != nullptr);
// Self equality is important
EXPECT_TRUE(array.equals(array));
{ // Check that array views of the same memory are equal:
ArrayView<NonPodStruct> arraySharingMemory(src);
EXPECT_TRUE(array.equals(arraySharingMemory));
EXPECT_TRUE(arraySharingMemory.equals(array));
EXPECT_TRUE(array == arraySharingMemory);
EXPECT_TRUE(arraySharingMemory == array);
EXPECT_TRUE(!(array != arraySharingMemory));
EXPECT_TRUE(!(arraySharingMemory != array));
}
{ // Unrelated memory buffer array equals by value:
byte byteSrc[kNonPodStruct * sizeof(NonPodStruct)];
NonPodGuard<NonPodStruct> guard(byteSrc, kNonPodStruct);
ArrayView<NonPodStruct> arrayBytes(wrapMemory(byteSrc));
arrayBytes.fill(fillOddNonPods);
EXPECT_TRUE(array.equals(arrayBytes));
EXPECT_TRUE(arrayBytes.equals(array));
EXPECT_TRUE(array == arrayBytes);
EXPECT_TRUE(arrayBytes == array);
EXPECT_TRUE(!(array != arrayBytes));
EXPECT_TRUE(!(arrayBytes != array));
}
{ // Unrelated smaller memory buffer array filled with the same values no equals:
static constexpr size_t kOtherNonPodStruct = 112;
byte byteSrc[kOtherNonPodStruct * sizeof(NonPodStruct)];
NonPodGuard<NonPodStruct> guard(byteSrc, kOtherNonPodStruct);
ArrayView<NonPodStruct> arrayBytes(wrapMemory(byteSrc));
arrayBytes.fill(fillOddNonPods);
EXPECT_TRUE(!array.equals(arrayBytes));
EXPECT_TRUE(!arrayBytes.equals(array));
EXPECT_TRUE(array != arrayBytes);
EXPECT_TRUE(arrayBytes != array);
EXPECT_TRUE(!(array == arrayBytes));
EXPECT_TRUE(!(arrayBytes == array));
}
{ // Unrelated memory buffer array filled with different values not equal by value:
byte byteSrc[kNonPodStruct * sizeof(NonPodStruct)];
NonPodGuard<NonPodStruct> guard(byteSrc, kNonPodStruct);
ArrayView<NonPodStruct> arrayBytes(wrapMemory(byteSrc));
arrayBytes.fill(fillEvenNonPods);
EXPECT_TRUE(!array.equals(arrayBytes));
EXPECT_TRUE(!arrayBytes.equals(array));
EXPECT_TRUE(array != arrayBytes);
EXPECT_TRUE(arrayBytes != array);
EXPECT_TRUE(!(array == arrayBytes));
EXPECT_TRUE(!(arrayBytes == array));
}
}
TEST_F(TestArrayView, testIndexOf) {
int src[16];
generateTestArray(src, [](size_t i) { return (2*static_cast<int>(i) - 1); });
auto array = arrayView(src);
{ // Test for existing value:
auto const maybeIndex = array.indexOf(2*4 - 1);
EXPECT_TRUE(maybeIndex.isSome());
EXPECT_EQ(ArrayView<int>::size_type(4), maybeIndex.get());
}
{ // Can we find this sequance? Yes we can
auto const view = ArrayView<SimpleType>(wrapMemory(src));
EXPECT_TRUE(view.indexOf(SimpleType(5, 7, 9)).isSome());
}
{ // Test for non-existing value:
EXPECT_TRUE(array.indexOf(3*4 + 128).isNone());
}
{ // Test empty array contains nothing
EXPECT_TRUE(ArrayView<int>().indexOf(2*3 - 1).isNone());
}
{ // Can we find this sequance? Nope
auto const view = ArrayView<SimpleType>(wrapMemory(src));
EXPECT_TRUE(view.indexOf(SimpleType(3, 2, 1)).isNone());
}
}
TEST_F(TestArrayView, testContains) {
{ // Test empty array contains nothing
EXPECT_TRUE(!ArrayView<int>().contains(2*3 - 1));
}
int src[24];
generateTestArray(src, [](size_t i) { return static_cast<int>(i)*2 + 3; });
auto array = arrayView(src);
{ // Test for an existing value:
EXPECT_TRUE(array.contains(2*9 + 3));
}
{ // Test for non-existing value:
EXPECT_TRUE(!array.contains(-41));
}
{ // Can we find this sequance? Yes we can
auto const view = ArrayView<SimpleType>(wrapMemory(src));
EXPECT_TRUE(view.contains(SimpleType(15, 17, 19)));
}
}
TEST_F(TestArrayView, testFillWithConstValue) {
int src[24];
auto array = arrayView(src);
array.fill(42);
for (auto const i : array) {
EXPECT_EQ(42, i);
}
}
TEST_F(TestArrayView, testFillWithConstExplosiveValue) {
EXPECT_EQ(0, SometimesConstructable::InstanceCount);
{
static constexpr size_t kNonPodStruct = 24;
byte src[kNonPodStruct * sizeof (SometimesConstructable)];
SometimesConstructable::BlowUpEveryInstance = 0;
NonPodGuard<SometimesConstructable> guard(src, kNonPodStruct);
SometimesConstructable::BlowUpEveryInstance = 9;
ArrayView<SometimesConstructable> array(wrapMemory(src));
// This should not throw as we don't create any new instances apart from +1 used as a temp template
array.fill(SometimesConstructable(99));
EXPECT_EQ(static_cast<int>(kNonPodStruct), SometimesConstructable::InstanceCount);
for (int i = 0; i < SometimesConstructable::InstanceCount; ++i) {
EXPECT_EQ(99, array[i].someValue);
}
}
EXPECT_EQ(0, SometimesConstructable::InstanceCount);
}
TEST_F(TestArrayView, testFillWithGenerator) {
int src[24];
auto array = arrayView(src);
array.fill([](ArrayView<int>::size_type i) { return static_cast<int>(i)*2 - 187; });
for (ArrayView<int>::size_type i = 0; i < array.size(); ++i) {
EXPECT_EQ(static_cast<int>(i)*2 - 187, array[i]);
}
}
TEST_F(TestArrayView, slice) {
int src[24];
auto array = arrayView(src);
array.fill([](ArrayView<int>::size_type i) { return static_cast<int>(i); });
EXPECT_EQ(array.size(), array.slice(0, array.size()).size());
EXPECT_EQ(array, array.slice(0, array.size()));
auto halfView = array.slice(12, 22);
EXPECT_EQ(10U, halfView.size());
for (ArrayView<int>::size_type i = 0; i < halfView.size(); ++i) {
EXPECT_EQ(static_cast<int>(12 + i), halfView[i]);
}
EXPECT_TRUE(array.slice(12, 12).empty());
EXPECT_TRUE(array.slice(128, 300).empty());
EXPECT_EQ(14U, array.slice(10, 300).size());
EXPECT_TRUE(array.slice(128, 21).empty());
EXPECT_TRUE(array.slice(21, 7).empty());
}
TEST_F(TestArrayView, testFillWithGeneratorOfExplosiveValue) {
EXPECT_EQ(0, SometimesConstructable::InstanceCount);
{
static constexpr size_t kNonPodStruct = 81;
byte src[kNonPodStruct * sizeof(SometimesConstructable)];
SometimesConstructable::BlowUpEveryInstance = 0;
NonPodGuard<SometimesConstructable> guard(src, kNonPodStruct);
SometimesConstructable::BlowUpEveryInstance = 13;
ArrayView<SometimesConstructable> array(wrapMemory(src));
// This should not throw as we don't create any new instances apart from +1 used as a temp template
array.fill([](size_t i ) { return SometimesConstructable(fillOdd(i)); });
EXPECT_EQ(static_cast<int>(kNonPodStruct), SometimesConstructable::InstanceCount);
for (int i = 0; i < SometimesConstructable::InstanceCount; ++i) {
EXPECT_EQ(fillOdd(i), array[i].someValue);
}
}
// Make sure that after the array has been destroyed no instances of SometimesConstructable exist.
EXPECT_EQ(0, SometimesConstructable::InstanceCount);
}
TEST_F(TestArrayView, testForEach_byValue) {
int baseArray[] = {1, 2, 3, 4, 5, 6};
const ArrayView<int> array{baseArray};
int acc = 0;
array.forEach([&acc](int x) {
acc += x;
});
EXPECT_EQ(21, acc);
}
TEST_F(TestArrayView, testForEach_byConstRef) {
EXPECT_EQ(0, SimpleType::InstanceCount);
{
SimpleType baseArray[] = {{3, 2, 1}, {2, 1, 3}, {0, -1, 2}, {-1, 0, -4}};
const ArrayView<SimpleType> array{baseArray};
SimpleType acc;
array.forEach([&acc](const SimpleType& x) {
acc.x += x.x;
acc.y += x.y;
acc.z += x.z;
});
EXPECT_EQ(SimpleType(4, 2, 2), acc);
}
EXPECT_EQ(0, SimpleType::InstanceCount);
}
TEST_F(TestArrayView, testForEach_byValueConversion) {
int baseArray[] = {1, 2, 3, 4, 5, 6};
const ArrayView<int> array{baseArray};
double acc = 0;
array.forEach([&acc](double x) {
acc += x;
});
EXPECT_FLOAT_EQ(21.0, acc);
}
TEST_F(TestArrayView, testForEachIndexed) {
int baseArray[] = {1, 2, 3, 4, 5, 6};
const ArrayView<int> array{baseArray};
bool allEq = true;
array.forEach([&allEq](ArrayView<int>::size_type i, uint x) {
allEq &= (i + 1 == x);
});
EXPECT_EQ(true, allEq);
}
TEST_F(TestArrayView, sizeNarrowing) {
byte buffer[sizeof (MisalignedType) * 3 + sizeof (MisalignedType) / 2];
// FIXME: Maybe we should return Err() in this case as it is a narrowing
auto value = arrayView<MisalignedType>(wrapMemory(buffer));
ASSERT_EQ(3U, value.size());
}
TEST_F(TestArrayView, viewConstPointerList) {
SimpleType list[] = { {3, 2, 1}, {0, -1, -2} };
auto array = arrayView(std::begin(list), std::end(list));
EXPECT_EQ(2U, array.size());
EXPECT_EQ(1, array[0].z);
EXPECT_EQ(0, array[1].x);
}
/*
TEST_F(TestArrayView, testMap) {
DerivedNonPodStruct baseArray[] = {
DerivedNonPodStruct(32, 2.4, "hello"),
DerivedNonPodStruct(-24, 2.4, " "),
DerivedNonPodStruct(10, 2.4, "world")
};
const ArrayView<DerivedNonPodStruct> array{baseArray};
{
auto r = array.map([](const DerivedNonPodStruct& content) {
return content.iValue;
});
EXPECT_EQ(array.size(), r.size());
for (ArrayView<int>::size_type i = 0; i < array.size(); ++i) {
EXPECT_EQ(r[i], array[i].iValue);
}
}
{
auto r = array.map([](const DerivedNonPodStruct& content) {
return content.str;
});
EXPECT_EQ(array.size(), r.size());
for (ArrayView<int>::size_type i = 0; i < array.size(); ++i) {
EXPECT_EQ(r[i], array[i].str);
}
}
}
*/
const ArrayView<int>::size_type TestArrayView::ZERO = 0;
const ArrayView<int>::size_type TestArrayView::TEST_SIZE_0 = 7;
const ArrayView<int>::size_type TestArrayView::TEST_SIZE_1 = 35;
const int TestArrayView::NonPodStruct::IVALUE_DEFAULT = -123;
const char* TestArrayView::NonPodStruct::STR_DEFAULT = "Deafult TestArrayView::NonPodStruct::STR_DEFAULT";
ArrayView<int>::size_type TestArrayView::NonPodStruct::TotalCount = 0;
| 29.428147
| 107
| 0.600815
|
abbyssoul
|
211330ec98d24dc742e50b6e762222b91edaeb1f
| 35,409
|
cpp
|
C++
|
image/morton.cpp
|
embree/embree-benchmark-protoray
|
c495b85cfe1ac66c0addc0f38245149b82a32c77
|
[
"Apache-2.0"
] | 9
|
2017-10-09T12:53:17.000Z
|
2021-12-07T00:12:12.000Z
|
image/morton.cpp
|
embree/embree-benchmark-protoray
|
c495b85cfe1ac66c0addc0f38245149b82a32c77
|
[
"Apache-2.0"
] | 2
|
2018-01-20T15:32:05.000Z
|
2019-02-24T19:43:35.000Z
|
image/morton.cpp
|
embree/embree-benchmark-protoray
|
c495b85cfe1ac66c0addc0f38245149b82a32c77
|
[
"Apache-2.0"
] | 3
|
2017-07-31T21:54:48.000Z
|
2019-02-24T19:45:31.000Z
|
// ======================================================================== //
// Copyright 2015-2018 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// you may not use this file except in compliance with the License. //
// You may obtain a copy of the License at //
// //
// http://www.apache.org/licenses/LICENSE-2.0 //
// //
// Unless required by applicable law or agreed to in writing, software //
// distributed under the License is distributed on an "AS IS" BASIS, //
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. //
// See the License for the specific language governing permissions and //
// limitations under the License. //
// ======================================================================== //
#include "sys/memory.h"
#include "morton.h"
namespace prt {
ALIGNED_CACHE const int mortonTableX[] =
{
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
0, 1, 0, 1, 2, 3, 2, 3, 0, 1, 0, 1, 2, 3, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, 4, 5, 4, 5, 6, 7, 6, 7,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
8, 9, 8, 9, 10, 11, 10, 11, 8, 9, 8, 9, 10, 11, 10, 11, 12, 13, 12, 13, 14, 15, 14, 15, 12, 13, 12, 13, 14, 15, 14, 15,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
16, 17, 16, 17, 18, 19, 18, 19, 16, 17, 16, 17, 18, 19, 18, 19, 20, 21, 20, 21, 22, 23, 22, 23, 20, 21, 20, 21, 22, 23, 22, 23,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
24, 25, 24, 25, 26, 27, 26, 27, 24, 25, 24, 25, 26, 27, 26, 27, 28, 29, 28, 29, 30, 31, 30, 31, 28, 29, 28, 29, 30, 31, 30, 31,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
32, 33, 32, 33, 34, 35, 34, 35, 32, 33, 32, 33, 34, 35, 34, 35, 36, 37, 36, 37, 38, 39, 38, 39, 36, 37, 36, 37, 38, 39, 38, 39,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
40, 41, 40, 41, 42, 43, 42, 43, 40, 41, 40, 41, 42, 43, 42, 43, 44, 45, 44, 45, 46, 47, 46, 47, 44, 45, 44, 45, 46, 47, 46, 47,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
48, 49, 48, 49, 50, 51, 50, 51, 48, 49, 48, 49, 50, 51, 50, 51, 52, 53, 52, 53, 54, 55, 54, 55, 52, 53, 52, 53, 54, 55, 54, 55,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
56, 57, 56, 57, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 60, 61, 60, 61, 62, 63, 62, 63, 60, 61, 60, 61, 62, 63, 62, 63,
};
ALIGNED_CACHE const int mortonTableY[] =
{
0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3, 0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3,
4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7, 4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7,
0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3, 0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3,
4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7, 4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7,
8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11, 8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11,
12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15, 12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15,
8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11, 8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11,
12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15, 12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15,
0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3, 0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3,
4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7, 4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7,
0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3, 0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3,
4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7, 4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7,
8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11, 8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11,
12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15, 12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15,
8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11, 8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11,
12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15, 12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15,
16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19, 16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19,
20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23, 20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23,
16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19, 16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19,
20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23, 20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23,
24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27, 24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27,
28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31, 28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31,
24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27, 24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27,
28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31, 28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31,
16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19, 16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19,
20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23, 20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23,
16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19, 16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19,
20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23, 20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23,
24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27, 24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27,
28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31, 28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31,
24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27, 24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27,
28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31, 28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31,
0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3, 0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3,
4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7, 4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7,
0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3, 0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3,
4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7, 4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7,
8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11, 8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11,
12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15, 12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15,
8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11, 8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11,
12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15, 12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15,
0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3, 0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3,
4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7, 4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7,
0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3, 0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 3, 3,
4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7, 4, 4, 5, 5, 4, 4, 5, 5, 6, 6, 7, 7, 6, 6, 7, 7,
8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11, 8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11,
12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15, 12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15,
8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11, 8, 8, 9, 9, 8, 8, 9, 9, 10, 10, 11, 11, 10, 10, 11, 11,
12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15, 12, 12, 13, 13, 12, 12, 13, 13, 14, 14, 15, 15, 14, 14, 15, 15,
16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19, 16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19,
20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23, 20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23,
16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19, 16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19,
20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23, 20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23,
24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27, 24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27,
28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31, 28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31,
24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27, 24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27,
28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31, 28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31,
16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19, 16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19,
20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23, 20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23,
16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19, 16, 16, 17, 17, 16, 16, 17, 17, 18, 18, 19, 19, 18, 18, 19, 19,
20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23, 20, 20, 21, 21, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 23, 23,
24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27, 24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27,
28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31, 28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31,
24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27, 24, 24, 25, 25, 24, 24, 25, 25, 26, 26, 27, 27, 26, 26, 27, 27,
28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31, 28, 28, 29, 29, 28, 28, 29, 29, 30, 30, 31, 31, 30, 30, 31, 31,
32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35, 32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35,
36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39, 36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39,
32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35, 32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35,
36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39, 36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39,
40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43, 40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43,
44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47, 44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47,
40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43, 40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43,
44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47, 44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47,
32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35, 32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35,
36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39, 36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39,
32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35, 32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35,
36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39, 36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39,
40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43, 40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43,
44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47, 44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47,
40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43, 40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43,
44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47, 44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47,
48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51, 48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51,
52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55, 52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55,
48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51, 48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51,
52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55, 52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55,
56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59, 56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59,
60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63, 60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63,
56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59, 56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59,
60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63, 60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63,
48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51, 48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51,
52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55, 52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55,
48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51, 48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51,
52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55, 52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55,
56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59, 56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59,
60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63, 60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63,
56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59, 56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59,
60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63, 60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63,
32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35, 32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35,
36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39, 36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39,
32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35, 32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35,
36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39, 36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39,
40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43, 40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43,
44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47, 44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47,
40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43, 40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43,
44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47, 44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47,
32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35, 32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35,
36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39, 36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39,
32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35, 32, 32, 33, 33, 32, 32, 33, 33, 34, 34, 35, 35, 34, 34, 35, 35,
36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39, 36, 36, 37, 37, 36, 36, 37, 37, 38, 38, 39, 39, 38, 38, 39, 39,
40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43, 40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43,
44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47, 44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47,
40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43, 40, 40, 41, 41, 40, 40, 41, 41, 42, 42, 43, 43, 42, 42, 43, 43,
44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47, 44, 44, 45, 45, 44, 44, 45, 45, 46, 46, 47, 47, 46, 46, 47, 47,
48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51, 48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51,
52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55, 52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55,
48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51, 48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51,
52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55, 52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55,
56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59, 56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59,
60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63, 60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63,
56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59, 56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59,
60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63, 60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63,
48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51, 48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51,
52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55, 52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55,
48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51, 48, 48, 49, 49, 48, 48, 49, 49, 50, 50, 51, 51, 50, 50, 51, 51,
52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55, 52, 52, 53, 53, 52, 52, 53, 53, 54, 54, 55, 55, 54, 54, 55, 55,
56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59, 56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59,
60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63, 60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63,
56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59, 56, 56, 57, 57, 56, 56, 57, 57, 58, 58, 59, 59, 58, 58, 59, 59,
60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63, 60, 60, 61, 61, 60, 60, 61, 61, 62, 62, 63, 63, 62, 62, 63, 63,
};
} // namespace prt
| 123.376307
| 132
| 0.442656
|
embree
|
2120173a0587f287a761b9ae9adf0ca7b7269042
| 4,339
|
cpp
|
C++
|
TuranEditor/EditorSource/FileSystem/EditorFileSystem_Core.cpp
|
furkanxdgs4/TuranEngine
|
77e71fc4075d7cf1648dc73981088abb36a920d1
|
[
"Apache-2.0"
] | 6
|
2020-05-01T16:26:27.000Z
|
2021-10-05T02:39:41.000Z
|
TuranEditor/EditorSource/FileSystem/EditorFileSystem_Core.cpp
|
furkanxdgs4/TuranEngine
|
77e71fc4075d7cf1648dc73981088abb36a920d1
|
[
"Apache-2.0"
] | null | null | null |
TuranEditor/EditorSource/FileSystem/EditorFileSystem_Core.cpp
|
furkanxdgs4/TuranEngine
|
77e71fc4075d7cf1648dc73981088abb36a920d1
|
[
"Apache-2.0"
] | null | null | null |
#include "EditorFileSystem_Core.h"
#include "TuranAPI/Profiler/Profiler_Core.h"
//Data Formats created by Flatbuffers!
#include <flatbuffers/flatbuffers.h>
#include "TuranAPI/FileSystem/DataFormats/GameResource_generated.h"
using namespace Editor::File_System;
using namespace TuranAPI::File_System;
const char* GameContentList_PATH = "C:/dev/TuranEngine/TuranEditor/File_List.enginecont";
TuranAPI::File_System::FileList_Resource Editor_FileSystem::GameContentList_onDisk(GameContentList_PATH);
Editor_FileSystem* Editor_FileSystem::SELF = new Editor_FileSystem;
GameContent::File_Type Convert_to_GameCont_Type(TuranAPI::TuranAPI_ENUMs resource_type);
void Editor_FileSystem::Add_Content_toFileList(TuranAPI::File_System::Resource_Type* Resource) {
TuranAPI::LOG_STATUS("Adding a Game Content to List! Name: " + Resource->NAME + " ID: " + to_string(Resource->ID) + " PATH: " + Resource->PATH);
GameContentList_onDisk.Get_ContentListVector()->push_back(Resource);
FileSystem::Write_a_Resource_toDisk(&GameContentList_onDisk);
FileSystem::Write_a_Resource_toDisk(Resource);
TuranAPI::LOG_STATUS("Added the Game Content to List successfully!");
}
void Editor_FileSystem::Remove_Content_fromFileList(unsigned int index) {
TuranAPI::LOG_STATUS("Removing a Game Content from the List! List Index: " + to_string(index));
Resource_Type* Resource = ((*GameContentList_onDisk.Get_ContentListVector())[index]);
FileSystem::Delete_File(Resource->PATH);
//Clear all of the loaded resources from the memory
delete Resource;
Resource = nullptr;
GameContentList_onDisk.Get_ContentListVector()->erase(index);
Write_a_Resource_toDisk(&GameContentList_onDisk, true);
TuranAPI::LOG_STATUS("Removed the Game Content from the List successfully!");
}
const Vector<TuranAPI::File_System::Resource_Type*>* Editor_FileSystem::Get_Const_FileListContentVector() {
return GameContentList_onDisk.Get_ContentListVector();
}
unsigned int Editor_FileSystem::Get_LengthOf_FileListContentVector() {
return GameContentList_onDisk.Get_ContentListVector()->size();
}
void Editor_FileSystem::Start_EditorFileSystem() {
TuranAPI::LOG_STATUS("Starting the Editor FileSystem!");
SELF = new Editor_FileSystem;
}
void Editor_FileSystem::Load_FileListContents_fromDisk() {
TuranAPI::LOG_STATUS("Started to load Game Contents!");
TuranAPI::File_System::FileSystem::Load_Resources_fromFileList(&GameContentList_onDisk);
TuranAPI::LOG_STATUS("Finished loading Game Contents!");
}
void Editor_FileSystem::Clear_FileListContents() {
TuranAPI::LOG_STATUS("Clearing the Game Contents!");
for (size_t i = 0; i < GameContentList_onDisk.Get_ContentListVector()->size(); i++) {
Resource_Type* RESOURCE = (*GameContentList_onDisk.Get_ContentListVector())[i];
const char* PATH = RESOURCE->PATH;
FileSystem::Delete_File(PATH);
//Clear all of the loaded resources from the memory
delete RESOURCE;
RESOURCE = nullptr;
}
//Clear all of the loaded resource references!
GameContentList_onDisk.Get_ContentListVector()->clear();
FileSystem::Write_a_Resource_toDisk(&GameContentList_onDisk);
TuranAPI::LOG_STATUS("Cleared the Game Contents!");
}
GameContent::File_Type Convert_to_GameCont_Type(TuranAPI::TuranAPI_ENUMs resource_type) {
switch (resource_type) {
case TuranAPI::TuranAPI_ENUMs::STATIC_MODEL_RESOURCE:
return GameContent::File_Type_Static_Model;
case TuranAPI::TuranAPI_ENUMs::MATERIAL_TYPE_RESOURCE:
return GameContent::File_Type_Material_Type;
case TuranAPI::TuranAPI_ENUMs::TEXTURE_RESOURCE:
return GameContent::File_Type_Texture;
default:
TuranAPI::LOG_CRASHING("Intended resource type isn't found in FileList!");
return GameContent::File_Type_ERROR;
}
}
TuranAPI::File_System::Resource_Type* Editor_FileSystem::Get_GameContent_byName(const char* NAME) {
for (size_t i = 0; i < GameContentList_onDisk.Get_ContentListVector()->size(); i++) {
Resource_Type* RESOURCE = (*GameContentList_onDisk.Get_ContentListVector())[i];
if (RESOURCE->NAME == NAME) {
return RESOURCE;
}
}
}
TuranAPI::File_System::Resource_Type* Editor_FileSystem::Get_GameContent_byID(unsigned int ID) {
for (size_t i = 0; i < GameContentList_onDisk.Get_ContentListVector()->size(); i++) {
Resource_Type* RESOURCE = (*GameContentList_onDisk.Get_ContentListVector())[i];
if (RESOURCE->ID == ID) {
return RESOURCE;
}
}
}
| 38.39823
| 145
| 0.790966
|
furkanxdgs4
|
2121c46ac61de34534dca43cefe84886632e3b30
| 16,224
|
cpp
|
C++
|
eraepub/src/FootnotesPrinter.cpp
|
Mimars-Project/OpenReadEra-20.03.26
|
8db0c096e681947d02fa15c3eaa283e389ccf8a9
|
[
"FTL"
] | null | null | null |
eraepub/src/FootnotesPrinter.cpp
|
Mimars-Project/OpenReadEra-20.03.26
|
8db0c096e681947d02fa15c3eaa283e389ccf8a9
|
[
"FTL"
] | null | null | null |
eraepub/src/FootnotesPrinter.cpp
|
Mimars-Project/OpenReadEra-20.03.26
|
8db0c096e681947d02fa15c3eaa283e389ccf8a9
|
[
"FTL"
] | 1
|
2021-07-21T07:50:33.000Z
|
2021-07-21T07:50:33.000Z
|
/*
* Copyright (C) 2013-2020 READERA LLC
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Developers: ReadEra Team (2013-2020), Tarasus (2018-2020).
*/
#include "include/crconfig.h"
#include "include/FootnotesPrinter.h"
void FootnotesPrinter::PrintLinkNode(ldomNode *node)
{
if (node->hasAttribute(attr_href))
{
lString16 href = node->getHRef();
if (href != lString16::empty_str)
{
writer_->OnTagOpen(L"", L"a");
writer_->OnAttribute(L"", L"href", href.c_str());
writer_->OnAttribute(L"", L"class", L"link_valid");
recurseNodesToPrint(node);
writer_->OnTagClose(L"", L"a");
}
}
else
{
writer_->OnTagOpen(L"", L"a");
recurseNodesToPrint(node);
writer_->OnTagClose(L"", L"a");
}
}
void FootnotesPrinter::PrintTextNode(ldomNode *node)
{
if(this->textcounter_ >= NOTES_HIDDEN_MAX_LEN)
{
return;
}
lString16 text = node->getText();
int txtlen = text.length();
writer_->OnTagOpen(L"", L"span");
if(this->textcounter_ + txtlen >= NOTES_HIDDEN_MAX_LEN)
{
txtlen = NOTES_HIDDEN_MAX_LEN - this->textcounter_;
writer_->OnText(text.c_str(), txtlen, 0);
writer_->OnText(L"...", 3, 0);
lString16 href = main_href_;
if (href != lString16::empty_str)
{
writer_->OnTagOpen(L"", L"a");
writer_->OnAttribute(L"", L"href", href.c_str());
writer_->OnAttribute(L"", L"class", L"link_valid");
writer_->OnText(L">>>", 3, 0);
writer_->OnTagClose(L"", L"a");
}
}
else
{
writer_->OnText(text.c_str(), txtlen, 0);
}
writer_->OnTagClose(L"", L"span");
this->textcounter_ += txtlen ;
//CRLog::error("<text> [%s] </text>", LCSTR(text));
//CRLog::error("TEXT nodepath = %s", LCSTR(node->getXPath()));
return;
}
void FootnotesPrinter::recurseNodesToPrint(ldomNode *node)
{
if (this->textcounter_>NOTES_HIDDEN_MAX_LEN)
{
return;
}
if (node->isNull())
{
CRLog::error("node is null");
return;
}
if(node->hasAttribute(attr_id))
{
if(node->getAttributeValue(attr_id) == NOTES_HIDDEN_ID)
{
return;
}
}
//CRLog::error("node to recurse = %s",LCSTR(node->getXPath()));
for (int i = 0; i < node->getChildCount(); i++)
{
ldomNode *child = node->getChildNode(i);
if (child->getText() == lString16::empty_str)
{
continue;
}
lString16 childname = child->getNodeName();
if (child->isText())
{
this->PrintTextNode(child);
}
else if (child->isNodeName("a"))
{
lString16 text = child->getText();
if(text.startsWith("["))
{
text = text.substr(1);
}
if( text.endsWith("]"))
{
text = text.substr(0,text.length()-1);
}
int num;
if (text.DigitsOnly() && text.atoi(num))
{
continue;
}
PrintLinkNode(child);
}
else if (child->isNodeName("title"))
{
//skip all title tags including their content
}
else
{
//CRLog::error("<%s>",LCSTR(child->getNodeName()));
writer_->OnTagOpen(L"", childname.c_str());
recurseNodesToPrint(child);
writer_->OnTagClose(L"", childname.c_str());
//CRLog::error("ELEMENT nodepath = %s",LCSTR(node->getXPath()));
//CRLog::error("</%s>",LCSTR(child->getNodeName()));
}
if (this->textcounter_>NOTES_HIDDEN_MAX_LEN)
{
return;
}
}
}
ldomNode * FootnotesPrinter::FindTextInNode(ldomNode *node)
{
if (node == NULL)
{
return NULL;
}
for (int i = 0; i < node->getChildCount(); i++)
{
ldomNode *child = node->getChildNode(i);
lString16 text = child->getText();
//CRLog::error("node = %s",LCSTR(node->getXPath()));
//CRLog::error("text = %s",LCSTR(text));
if (text.length() == 0)
{
continue;
}
text = text.ReplaceUnusualSpaces();
if(text.startsWith("[") || text.startsWith(" "))
{
text = text.substr(1);
}
if( text.endsWith("]") || text.endsWith(" "))
{
text = text.substr(0,text.length()-1);
}
if(text.length()==0)
{
continue;
}
int num;
if (text.DigitsOnly() && text.atoi(num))
{
//CRLog::error("num = %d",num);
continue;
}
//text is not a number
return child;
}
return NULL;
}
ldomNode * FootnotesPrinter::FindTextInParents(ldomNode *node)
{
if (node == NULL)
{
return NULL;
}
//CRLog::error("node path = %s",LCSTR(node->getXPath()));
if (node->isNodeName("FictionBook") || node->isNodeName("DocFragment"))
{
return NULL;
}
int index = node->getNodeIndex();
ldomNode *parent = node->getParentNode();
if (parent == NULL)
{
return NULL;
}
for (int i = index + 1; i < parent->getChildCount(); i++)
{
ldomNode *child = parent->getChildNode(i);
lString16 text = child->getText();
if (text.length() == 0)
{
continue;
}
text = text.ReplaceUnusualSpaces();
if(text.startsWith("[") || text.startsWith(" "))
{
text = text.substr(1);
}
if( text.endsWith("]") || text.endsWith(" "))
{
text = text.substr(0,text.length()-1);
}
if(text.length()==0)
{
continue;
}
int num;
if (text.DigitsOnly() && text.atoi(num))
{
//CRLog::error("num = %d",num);
continue;
}
//text is not a number
return child;
}
return FindTextInParents(parent);
}
bool FootnotesPrinter::NodeContainsNextNote(ldomNode *node, lString16 nextId)
{
for (int i = 0; i < node->getChildCount(); i++)
{
ldomNode *child = node->getChildNode(i);
if (child->isNodeName("a"))
{
if (nextId.empty())
{
return false;
}
if (child->hasAttribute(attr_id))
{
if (child->getAttributeValue(attr_id) == nextId)
{
return true;
}
}
if (child->getText().empty())
{
return true;
}
}
else
{
return NodeContainsNextNote(child, nextId);
}
}
return false;
}
bool FootnotesPrinter::NodeIsBreak(ldomNode *node, lString16 nextId)
{
lString16 text = node->getText();
if (text.empty())
{
return true;
}
int num;
if (text.DigitsOnly() && text.atoi(num))
{
return true;
}
if(node->hasAttribute(attr_id))
{
if(node->getAttributeValue(attr_id) == NOTES_HIDDEN_ID)
{
return true;
}
}
if (node->isNodeName("pagebreak"))
{
return true;
}
if (NodeContainsNextNote(node, nextId))
{
return true;
}
return false;
}
void FootnotesPrinter::PrintNum(lString16 num, lString16 id)
{
writer_->OnTagOpen(L"", L"title");
writer_->OnText(num.c_str(), num.length(), 0);
writer_->OnTagClose(L"", L"title");
}
void Epub3NotesPrinter::PrintNum(lString16 num, lString16 id)
{
writer_->OnTagOpen(L"", L"title");
writer_->OnTagOpen(L"", L"a");
writer_->OnAttribute(L"",L"class",L"link_valid");
lString16 idtemp = (id.startsWith("#")? id : "#"+id );
writer_->OnAttribute(L"", L"href", idtemp.c_str());
writer_->OnText(num.c_str(), num.length(), 0);
writer_->OnTagClose(L"", L"a");
writer_->OnTagClose(L"", L"title");
}
bool FootnotesPrinter::PrintLinksList(LVArray<LinkStruct> LinksList)
{
//CRLog::error("PRINTER");
StrMap map;
this->PrintHeader();
for (int i = 0; i < LinksList.length(); i++)
{
this->textcounter_ = 0;
//CRLog::error("New node to print");
LinkStruct currlink = LinksList.get(i);
LinkStruct nextlink = (i+1<LinksList.length())? LinksList.get(i+1) : LinkStruct();
lString16 nextid;
if(!this->PrintIsAllowed(currlink.href_))
{
continue;
}
if (!nextlink.href_.empty())
{
nextid = (nextlink.href_.startsWith("#")) ? nextlink.href_.substr(1) : nextlink.href_;
}
lString16 num = lString16::itoa(currlink.num_) + lString16(" ");
lString16 href = (currlink.href_.startsWith("#")) ? currlink.href_.substr(1) : currlink.href_;
this->main_href_ = lString16("#") + href;
if(map.find(href.getHash())!=map.end())
{
continue;
}
map[href.getHash()]=href;
ldomNode *node = doc_->getElementById(href.c_str());
if (node == NULL)
{
CRLog::error("Failed to get node from href = %s, skipping", LCSTR(href));
continue;
}
if (node->isText())
{
CRLog::error("Node is Text, skipping");
continue;
}
if(node->isNodeName("DocFragment"))
{
continue;
}
if(this->hidden_)
{
href = href + lString16("_note");
}
ldomNode *found;
if (node->isNodeName("section"))
{
//fb2, epub structure
writer_->OnTagOpen(L"", L"section");
writer_->OnAttribute(L"", L"id", href.c_str());
writer_->OnTagOpen(L"", L"p");
this->PrintNum(num, currlink.id_);
recurseNodesToPrint(node);
writer_->OnTagClose(L"", L"p");
writer_->OnTagClose(L"", L"section");
}
else
{
found = FindTextInNode(node);
if (found == NULL)
{
found = FindTextInParents(node);
}
if (found == NULL)
{
continue;
}
int index = found->getNodeIndex();
ldomNode *parent = found->getParentNode();
if (parent == NULL)
{
return NULL;
}
writer_->OnTagOpen(L"", L"section");
writer_->OnAttribute(L"", L"id", href.c_str());
this->PrintNum(num, currlink.id_);
writer_->OnTagOpen(L"", L"p");
if(found->isText())
{
lString16 text = found->getText();
this->textcounter_ += text.length();
while (text.firstChar() == L' ' || text.firstChar() == L'.' || text.firstChar() == 0x00A0)
{
text = text.substr(1);
}
if (text.length() > 0)
{
writer_->OnTagOpen(L"", L"span");
writer_->OnText(text.c_str(), text.length(), 0);
writer_->OnTagClose(L"", L"span");
}
}
else if (found->isNodeName("a"))
{
lString16 text = found->getText();
if(text.startsWith("[") || text.startsWith(".") ||text.startsWith(" "))
{
text = text.substr(1);
}
if( text.endsWith("]") || text.endsWith(".") || text.endsWith(" "))
{
text = text.substr(0,text.length()-1);
}
int num;
if (!(text.DigitsOnly() && text.atoi(num)))
{
PrintLinkNode(found);
}
}
else
{
writer_->OnTagOpen(L"", found->getNodeName().c_str());
recurseNodesToPrint(found);
writer_->OnTagClose(L"", found->getNodeName().c_str());
}
//process next brothers of "found" node, until next link node
for (int i = index + 1; i < parent->getChildCount(); i++)
{
if (this->textcounter_ > NOTES_HIDDEN_MAX_LEN)
{
break;
}
ldomNode *child = parent->getChildNode(i);
if (NodeIsBreak(child,nextid))
{
//CRLog::debug("CHILD IS BREAK = %s",LCSTR(child->getXPath()));
break;
}
//CRLog::error("child path = %s",LCSTR(child->getXPath()));
if(child->isText())
{
lString16 text = child->getText();
this->textcounter_ += text.length();
writer_->OnTagOpen(L"", L"span");
writer_->OnText(text.c_str(), text.length(),0);
writer_->OnTagClose(L"", L"span");
}
else if(child->isNodeName("a"))
{
PrintLinkNode(child);
}
else
{
//text is not a number
//CRLog::error("on child tag [%d] [%s]",child->getText().length(), LCSTR(child->getNodeName()));
if (this->textcounter_ < NOTES_HIDDEN_MAX_LEN)
{
writer_->OnTagOpen(L"", child->getNodeName().c_str());
recurseNodesToPrint(child);
writer_->OnTagClose(L"", child->getNodeName().c_str());
}
}
}
writer_->OnTagClose(L"", L"p");
writer_->OnTagClose(L"", L"section");
}
}
writer_->OnTagClose(L"", L"body");
//writer_.OnTagOpen(L"", L"NoteFragment");
return true;
}
void FootnotesPrinter::PrintHeader()
{
writer_->OnTagOpenNoAttr(L"", L"FictionBook");
writer_->OnTagOpenNoAttr(L"", L"FictionBook");
writer_->OnTagOpen(L"", L"body");
lString16 space("\u200b");
writer_->OnAttribute(L"", L"name", L"notes_hidden");
writer_->OnAttribute(L"", L"id", NOTES_HIDDEN_ID); // used in LDocView::GetpagesCount() for hiding all the footnotes pages.
writer_->OnTagOpenNoAttr(L"", L"h1");
writer_->OnText(space.c_str(), space.length(), 0); // h1 adds new page break
writer_->OnTagClose(L"", L"h1");
writer_->OnTagOpenNoAttr(L"", L"div");
writer_->OnText(space.c_str(), space.length(), 0); // h1 adds new page break
writer_->OnTagClose(L"", L"div");
writer_->OnTagOpenNoAttr(L"", L"h1");
writer_->OnText(title_.c_str(), title_.length(), 0); // footnotes header text
writer_->OnTagClose(L"", L"h1");
}
void Epub3NotesPrinter::PrintHeader()
{
writer_->OnTagOpenNoAttr(L"", L"FictionBook");
writer_->OnTagOpenNoAttr(L"", L"FictionBook");
writer_->OnTagOpen(L"", L"body");
lString16 space("\u200b");
writer_->OnAttribute(L"", L"name", L"notes");
writer_->OnTagOpenNoAttr(L"", L"h1");
writer_->OnText(title_.c_str(), title_.length(), 0); // footnotes header text
writer_->OnTagClose(L"", L"h1");
}
bool Epub3NotesPrinter::PrintIsAllowed(lString16 href)
{
if (AsidesMap_.find(href.getHash()) != AsidesMap_.end())
{
return true;
}
return false;
}
| 29.605839
| 127
| 0.503328
|
Mimars-Project
|
212ee4a8edde606e2c5074049224af2b097d3d9b
| 631
|
cpp
|
C++
|
Source/Cars/Game/CarsPlayerController.cpp
|
xxzivadxx/Cars
|
60384193b10322e57af1f5ac4706c92b679b06d6
|
[
"MIT"
] | null | null | null |
Source/Cars/Game/CarsPlayerController.cpp
|
xxzivadxx/Cars
|
60384193b10322e57af1f5ac4706c92b679b06d6
|
[
"MIT"
] | null | null | null |
Source/Cars/Game/CarsPlayerController.cpp
|
xxzivadxx/Cars
|
60384193b10322e57af1f5ac4706c92b679b06d6
|
[
"MIT"
] | null | null | null |
// Fill out your copyright notice in the Description page of Project Settings.
#include "CarsPlayerController.h"
#include "Game/GameCamera.h"
#include "Game/Car.h"
ACarsPlayerController::ACarsPlayerController(const class FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
bAutoManageActiveCameraTarget = false;
}
void ACarsPlayerController::BeginPlay()
{
Super::BeginPlay();
SetInputMode(FInputModeGameAndUI());
}
void ACarsPlayerController::SetPawn(APawn* pPawn)
{
Super::SetPawn(pPawn);
ACar* pCar = Cast<ACar>(GetPawn());
if (pCar)
{
pCar->SetupPlayerInputComponent(InputComponent);
}
}
| 23.37037
| 122
| 0.762282
|
xxzivadxx
|
212efb08704ef9afac4077650f6db5106e9d82ab
| 6,806
|
hpp
|
C++
|
src/infer/adaptive.hpp
|
divad-nhok/obsidian_fork
|
e5bee2b706f78249564f06c88a18be086b17c895
|
[
"MIT"
] | 2
|
2021-03-08T16:28:45.000Z
|
2022-03-04T14:55:59.000Z
|
src/infer/adaptive.hpp
|
divad-nhok/obsidian_fork
|
e5bee2b706f78249564f06c88a18be086b17c895
|
[
"MIT"
] | 1
|
2018-08-16T00:46:58.000Z
|
2018-08-16T00:46:58.000Z
|
src/infer/adaptive.hpp
|
divad-nhok/obsidian_fork
|
e5bee2b706f78249564f06c88a18be086b17c895
|
[
"MIT"
] | 2
|
2018-02-26T01:03:13.000Z
|
2021-02-01T02:31:37.000Z
|
//!
//! Contains the implementation of an adaptive proposal function
//!
//! \file infer/adaptive.hpp
//! \author Darren Shen
//! \date 2014
//! \license Affero General Public License version 3 or later
//! \copyright (c) 2014, NICTA
//!
#pragma once
#include <random>
#include <functional>
#include <Eigen/Core>
#include "prior/world.hpp"
#include "prior/prior.hpp"
#include "distrib/multigaussian.hpp"
#include <iostream>
#include <glog/logging.h>
namespace stateline
{
namespace mcmc
{
//! A function to bounce the MCMC proposal off the hard boundaries.
//! This allows the proposal to always move around without getting stuck at
//! 'walls'
//!
//! \param val The proposed value
//! \param min The minimum bound of theta
//! \param max The maximum bound of theta
//! \returns The new bounced theta definitely in the bounds
//!
Eigen::VectorXd bouncyBounds(const Eigen::VectorXd& val,const Eigen::VectorXd& min, const Eigen::VectorXd& max)
{
Eigen::VectorXd delta = max - min;
Eigen::VectorXd result = val;
Eigen::Matrix<bool, Eigen::Dynamic, 1> tooBig = (val.array() > max.array());
Eigen::Matrix<bool, Eigen::Dynamic, 1> tooSmall = (val.array() < min.array());
for (uint i=0; i< result.size(); i++)
{
bool big = tooBig(i);
bool small = tooSmall(i);
if (big)
{
double overstep = val(i)-max(i);
int nSteps = (int)(overstep / delta(i));
double stillToGo = overstep - nSteps*delta(i);
if (nSteps % 2 == 0)
result(i) = max(i) - stillToGo;
else
result(i) = min(i) + stillToGo;
}
if (small)
{
double understep = min(i) - val(i);
int nSteps = (int)(understep / delta(i));
double stillToGo = understep - nSteps*delta(i);
if (nSteps % 2 == 0)
result(i) = min(i) + stillToGo;
else
result(i) = max(i) - stillToGo;
}
}
return result;
}
//! An adaptive Gaussian proposal function. It randomly varies each value in
//! the state according to a Gaussian distribution whose variance changes
//! depending on the acceptance ratio of a chain. It also bounces of the
//! walls of the hard boundaries given so as not to get stuck in corners.
//!
//! \param state The current state of the chain
//! \param sigma The standard deviation of the distribution (step size of the proposal)
//! \param qcovL A dummy variable to maintain consistent prototypes w/other proposals
//! \param min The minimum bound of theta
//! \param max The maximum bound of theta
//! \returns The new proposed theta
//!
Eigen::VectorXd adaptiveGaussianProposal(const Eigen::VectorXd &state, double sigma,
const Eigen::MatrixXd& qcovL, const Eigen::VectorXd& min, const Eigen::VectorXd& max)
{
// Random number generators
static std::random_device rd;
static std::mt19937 generator(rd());
static std::normal_distribution<> rand; // Standard normal
// Vary each paramater according to a Gaussian distribution
Eigen::VectorXd proposal(state.rows());
for (int i = 0; i < proposal.rows(); i++)
proposal(i) = state(i) + rand(generator) * sigma;
//return bouncyBounds(proposal, min, max);
return proposal;
};
//! RS 2018/03/09: A multivariate Gaussian proposal function.
//! It turns out random walk proposals made from a Gaussian with correlated
//! components won't satisfy detailed balance if made across a reflection
//! boundary, so it's important that we NOT do this, and instead just set
//! the world prior probability to zero in order to auto-reject the state.
//!
//! \param state The current state of the chain
//! \param sigma Scaling parameter (step size) to apply to chain covariance
//! \param qcovL Cholesky factor of the covariance of a multivariate Gaussian
//! \returns The new proposed theta
//!
Eigen::VectorXd multiGaussianProposal(
const Eigen::VectorXd &state, double sigma, const Eigen::MatrixXd& qcovL)
{
// Random number generators
static std::random_device rd;
static std::mt19937 generator(rd());
static std::normal_distribution<> rand; // Standard normal
// Draw from a multivariate Gaussian scaled to unit determinant
uint nDims = qcovL.rows();
Eigen::VectorXd zero_mean = 0.0*state;
double logdetq = qcovL.diagonal().array().log().sum();
double iScale = exp(-logdetq / nDims);
VLOG(4) << "logdetq = " << logdetq << ", iScale = " << iScale;
Eigen::VectorXd randnDraws(nDims);
for (uint i = 0; i < nDims; i++)
randnDraws(i) = rand(generator);
Eigen::VectorXd myprop = state + sigma * iScale * qcovL * randnDraws;
return myprop;
};
//! Crank-Nicolson proposal function.
//!
//! \param state The current state of the chain
//! \param sigma The standard deviation of the distribution (step size of the proposal)
//! \param qcov A dummy variable to maintain consistent prototypes w/other proposals
//! \param prior The prior from which we should draw
//! \returns The new proposed theta
//!
Eigen::VectorXd crankNicolsonProposal(const Eigen::VectorXd &state, double sigma,
const Eigen::MatrixXd& qcov, obsidian::GlobalPrior& prior
)
{
// Random number generators
static std::random_device rd;
static std::mt19937 generator(rd());
static std::normal_distribution<> rand; // Standard normal
// RS 2018/04/19: Transform sigma to the Crank-Nicholson "step size"
// parameter rho. This will allow the chains to adapt the step size.
// While technically 0 < rho < 1, mapping -1 < rho < 1 should be good
// enough since the sign of rho won't affect the proposal density.
double F = exp(sigma);
double rho = (F - 1.0/F)/(F + 1.0/F);
Eigen::VectorXd proposal(state.rows());
Eigen::VectorXd epsilon_vec = prior.sample(generator);
for (int i = 0; i < proposal.rows(); i++) {
double epsilon = epsilon_vec(i);
proposal(i) = std::sqrt(1 - rho*rho)*state(i) + rho*epsilon;
}
return proposal;
};
double gaussianProposalPDF(
const Eigen::VectorXd& theta, const double sigma,
const Eigen::VectorXd& thetaMins, const Eigen::VectorXd& thetaMaxs
)
{
double n = theta.size();
Eigen::MatrixXd Sigma = Eigen::MatrixXd::Identity(n, n) * sigma;
obsidian::distrib::MultiGaussian input(theta, Sigma);
double density = obsidian::distrib::logPDF(theta, input, thetaMins, thetaMaxs);
return density;
};
}
}
| 37.395604
| 115
| 0.633118
|
divad-nhok
|
2132795b60e847ad22b39936c9b5b4b22d994e71
| 2,638
|
cpp
|
C++
|
MircClient/CDialog.cpp
|
asad82/Network-Messenger
|
c74c0fb6745925c5008fedeb3e62494718c1fcf6
|
[
"MIT"
] | null | null | null |
MircClient/CDialog.cpp
|
asad82/Network-Messenger
|
c74c0fb6745925c5008fedeb3e62494718c1fcf6
|
[
"MIT"
] | null | null | null |
MircClient/CDialog.cpp
|
asad82/Network-Messenger
|
c74c0fb6745925c5008fedeb3e62494718c1fcf6
|
[
"MIT"
] | null | null | null |
// CDialog.cpp : implementation file
//
#include "stdafx.h"
#include "Client.h"
#include "CDialog.h"
#include "ClientDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern CClientDlg * m_DlgPtr;
/////////////////////////////////////////////////////////////////////////////
// CCDialog dialog
CCDialog::CCDialog(CWnd* pParent /*=NULL*/)
: CDialog(CCDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CCDialog)
m_Message = _T("");
//}}AFX_DATA_INIT
}
void CCDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCDialog)
DDX_Control(pDX, IDC_MESSAGESLIST, m_List1);
DDX_Text(pDX, IDC_EDITMESSAGE, m_Message);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCDialog, CDialog)
//{{AFX_MSG_MAP(CCDialog)
ON_BN_CLICKED(IDC_BUTTONSEND, OnButtonsend)
ON_BN_CLICKED(IDC_SELECTFILE, OnSelectfile)
ON_BN_CLICKED(IDC_SENDFILE, OnSendfile)
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCDialog message handlers
void CCDialog::OnOK()
{
// TODO: Add extra validation here
//CDialog::OnOK();
}
void CCDialog::OnButtonsend()
{
// TODO: Add your control notification handler code here
UpdateData(true);
m_ConnectionSocket.Send(m_Message,m_Message.GetLength());
CString str;
str.Format("%s",m_Message);
m_List1.AddString(str);
m_Message="";
UpdateData(false);
}
void CCDialog::OnSelectfile()
{
// TODO: Add your control notification handler code here
CFileDialog fileDialog(true);
fileName="";
if(fileDialog.DoModal()==IDOK)
{
fileName = fileDialog.GetFileName();
filePathName=fileDialog.GetPathName();
//fileName+='\\';
}
}// end of function
void CCDialog::OnSendfile()
{
// TODO: Add your control notification handler code here
CString peerAddress;
UINT peerPort;
m_fConnectionSocket.Create();
m_DlgPtr->ccChat.m_ConnectionSocket.GetPeerName(peerAddress,peerPort);
if(m_fConnectionSocket.Connect(peerAddress,1500))
{
//AfxMessageBox("Client Connected");
}
filePtr1.Open(filePathName,CFile::modeRead,NULL);
DWORD length = filePtr1.GetLength();
char * buf;
buf = new char[length];
filePtr1.Read(buf,length);
m_fConnectionSocket.Send(buf,length);
filePtr1.Close();
m_fConnectionSocket.Close();
}
int CCDialog::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CDialog::OnCreate(lpCreateStruct) == -1)
return -1;
// TODO: Add your specialized creation code here
return 0;
}
| 21.104
| 78
| 0.6558
|
asad82
|
213392361655037900037ea9e3a90c1705e97e2b
| 1,022
|
hpp
|
C++
|
third_party/misc/ArchFP/GridLayout.hpp
|
jesec/livehd
|
1a82dbea1d86dbd1511de588609de320aa4ef6ed
|
[
"BSD-3-Clause"
] | 115
|
2019-09-28T13:39:41.000Z
|
2022-03-24T11:08:53.000Z
|
third_party/misc/ArchFP/GridLayout.hpp
|
jesec/livehd
|
1a82dbea1d86dbd1511de588609de320aa4ef6ed
|
[
"BSD-3-Clause"
] | 113
|
2019-10-08T23:51:29.000Z
|
2021-12-12T06:47:38.000Z
|
third_party/misc/ArchFP/GridLayout.hpp
|
jesec/livehd
|
1a82dbea1d86dbd1511de588609de320aa4ef6ed
|
[
"BSD-3-Clause"
] | 44
|
2019-09-28T07:53:21.000Z
|
2022-02-13T23:21:12.000Z
|
#pragma once
#include "FPContainer.hpp"
#include "floorplan.hpp"
// Here is the simplest possible layout manager.
// It takes a collection of identical objects, and lays them out in a grid.
// It tries to get them into a rectangle as close to the specified aspect ratio.
// TODO Consider adding an aspect ratio layout algorithm that is more aggressive.
// Presumably this would see if the grid can be made closer to the desired AR
// by adding blank components when needed.
class gridLayout : public FPContainer {
// Store the calculated x and y counts of components in the grid.
int xCount;
int yCount;
public:
gridLayout(unsigned int rsize);
bool layout(FPOptimization opt, double targetAR = 1.0);
void outputHotSpotLayout(std::ostream& o, double startX = 0.0, double startY = 0.0);
virtual unsigned int outputLGraphLayout(Node_tree& tree, Tree_index tidx, double startX = 0.0, double startY = 0.0);
// A grid handles its counts different than other components?
};
| 40.88
| 118
| 0.727006
|
jesec
|
2134b008b1fa601d43e6e45916130f9b590e9b86
| 883
|
hpp
|
C++
|
src/geometry/include/geometry/trace.hpp
|
snailbaron/rooms
|
03496c3cd30e2020e1b0f1ad7d96bfba4e000eaa
|
[
"MIT"
] | null | null | null |
src/geometry/include/geometry/trace.hpp
|
snailbaron/rooms
|
03496c3cd30e2020e1b0f1ad7d96bfba4e000eaa
|
[
"MIT"
] | null | null | null |
src/geometry/include/geometry/trace.hpp
|
snailbaron/rooms
|
03496c3cd30e2020e1b0f1ad7d96bfba4e000eaa
|
[
"MIT"
] | null | null | null |
#pragma once
#include "geometry/point.hpp"
#include "geometry/vector.hpp"
#include <cmath>
#include <limits>
namespace geometry {
template <class T>
struct TraceResult {
operator bool() const
{
return std::isfinite(distance);
}
T distance;
Vector<T> normal;
};
template <class T>
TraceResult<T> traceCircle(
const Point<T>& origin,
const Vector<T>& lookDirection,
const Point<T>& center,
const T& r)
{
auto d = cross(lookDirection, center - origin);
if (std::abs(d) > r) {
return {std::numeric_limits<T>::infinity(), {}};
}
auto centerToLineVector = d * ort(lookDirection);
auto incomingVector = -std::sqrt(r * r - d * d) * lookDirection;
auto radialVector = centerToLineVector + incomingVector;
return {norm(center + radialVector - origin), normalize(radialVector)};
}
} // namespace geometry
| 21.02381
| 75
| 0.651189
|
snailbaron
|
2136013c8354c764ffbb5870e1cc9763f2d61d4a
| 1,059
|
cpp
|
C++
|
3DCellularAutomaton/ColorGradient.cpp
|
koldavid/3d-cellular-automaton
|
3ab202a7e8447f5cfd6a7f69d13e754bf487ac27
|
[
"MIT"
] | 5
|
2020-03-07T10:45:29.000Z
|
2021-12-23T14:23:02.000Z
|
3DCellularAutomaton/ColorGradient.cpp
|
koldavid/3d-cellular-automaton
|
3ab202a7e8447f5cfd6a7f69d13e754bf487ac27
|
[
"MIT"
] | null | null | null |
3DCellularAutomaton/ColorGradient.cpp
|
koldavid/3d-cellular-automaton
|
3ab202a7e8447f5cfd6a7f69d13e754bf487ac27
|
[
"MIT"
] | null | null | null |
#include "ColorGradient.h"
#include <sstream>
#include <iostream>
ColorGradient::ColorGradient() :
colors({glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0)})
{
}
ColorGradient::ColorGradient(std::string line)
{
std::stringstream ss(line);
int index = 0;
for (std::string color; ss >> color; index++) {
colors[index] = parseHexadecimalColor(color);
}
}
ColorGradient::~ColorGradient()
{
}
std::array<glm::vec3, 11>& ColorGradient::data()
{
return colors;
}
glm::vec3 ColorGradient::parseHexadecimalColor(std::string strColor)
{
if (strColor[0] == '#') {
strColor = strColor.substr(1, 6);
}
int color = std::strtol(strColor.c_str(), NULL, 16);
return glm::vec3(
((color & 0xFF0000) >> 16)/256.0f,
((color & 0x00FF00) >> 8)/256.0f,
(color & 0x0000FF)/256.0f);
}
| 18.910714
| 68
| 0.595845
|
koldavid
|
21433516707287a2907d51afb55ea080ade94ff5
| 341
|
cpp
|
C++
|
libvermilion/core/src/Buffer.cpp
|
Jojojoppe/vermilion
|
2bfe545c5f2c02e11d96940c191bac6f6c491843
|
[
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | null | null | null |
libvermilion/core/src/Buffer.cpp
|
Jojojoppe/vermilion
|
2bfe545c5f2c02e11d96940c191bac6f6c491843
|
[
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | null | null | null |
libvermilion/core/src/Buffer.cpp
|
Jojojoppe/vermilion
|
2bfe545c5f2c02e11d96940c191bac6f6c491843
|
[
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | null | null | null |
#include "Buffer.hpp"
Vermilion::Core::BufferLayoutElement::BufferLayoutElement(std::string name, unsigned int count, unsigned int size, bool normalized){
this->name = name;
this->count = count;
this->normalized = normalized;
this->size = size*count;
this->offset = 0;
this->type = BUFFER_LAYOUT_ELEMENT_TYPE_NONE;
}
| 34.1
| 132
| 0.709677
|
Jojojoppe
|
21468b701e4d806c7916a7687c2937c81beb591d
| 10,984
|
cpp
|
C++
|
code/Networking.cpp
|
enwi/LED-Christmas-Tree
|
77514b5ec41076f4c8c8736006ec10a392835984
|
[
"MIT"
] | 5
|
2021-12-01T18:06:32.000Z
|
2022-01-04T11:38:21.000Z
|
code/Networking.cpp
|
enwi/LED-Christmas-Tree
|
77514b5ec41076f4c8c8736006ec10a392835984
|
[
"MIT"
] | 6
|
2021-12-23T22:10:37.000Z
|
2022-02-01T20:40:32.000Z
|
code/Networking.cpp
|
enwi/LED-Christmas-Tree
|
77514b5ec41076f4c8c8736006ec10a392835984
|
[
"MIT"
] | 3
|
2021-12-12T00:25:37.000Z
|
2022-01-04T11:38:26.000Z
|
#include "Networking.h"
#include "webui/cpp/build.html.gz.h"
void Networking::initWifi()
{
if (isInitialized)
{
DEBUGLN("Wifi already initialized, should not be called again");
return;
}
else if (WiFi.status() == WL_CONNECTED)
{
DEBUGLN("Wifi auto connected");
isInitialized = true;
}
NetworkConfig& wifi = config.getNetworkConfig();
// Does not work without issues
// if (wifi.apEnabled && wifi.clientEnabled)
//{
// WiFi.mode(WIFI_AP_STA);
//}
if (wifi.clientEnabled && !isInitialized)
{
DEBUGLN("Init wifi client");
startClient();
}
else if (wifi.apEnabled)
{
DEBUGLN("Init wifi AP");
startAccessPoint();
}
if (!config.getNetworkConfig().wifiEnabled)
{
config.getNetworkConfig().wifiEnabled = true;
config.saveConfig();
}
isInitialized = true;
}
void Networking::initServer(TreeLight& light)
{
server.on(
"/ota", HTTP_POST, [](AsyncWebServerRequest* request) { request->send(200); },
[this](AsyncWebServerRequest* request, const String& filename, size_t index, uint8_t* data, size_t len,
bool final) { handleOTAUpload(request, filename, index, data, len, final); });
server.on(
"/api/status", HTTP_GET, [&light, this](AsyncWebServerRequest* request) { handleStatusApi(request, &light); });
server.on("/api/config", HTTP_GET, [this](AsyncWebServerRequest* r) { handleConfigApiGet(r); });
AsyncCallbackJsonWebHandler* handlerSetLeds = new AsyncCallbackJsonWebHandler("/api/set_leds",
[&light, this](AsyncWebServerRequest* request, JsonVariant& json) { handleSetLedsApi(request, json, light); });
server.addHandler(handlerSetLeds);
AsyncCallbackJsonWebHandler* handlerSetConfig = new AsyncCallbackJsonWebHandler("/api/config",
[this](AsyncWebServerRequest* request, JsonVariant& json) { handleConfigApiPost(request, json); });
server.addHandler(handlerSetConfig);
auto indexHandler = [this](AsyncWebServerRequest* r) { handleIndex(r); };
server.on("/", HTTP_GET, indexHandler);
server.on("/home", HTTP_GET, indexHandler);
server.on("/config", HTTP_GET, indexHandler);
// captive portal
auto handleCaptivePortal = [this](AsyncWebServerRequest* request) { captivePortal(request); };
// Android captive portal. Maybe not needed. Might be handled by notFound handler.
server.on("/generate_204", HTTP_GET, handleCaptivePortal);
// Microsoft captive portal. Maybe not needed. Might be handled by notFound handler.
server.on("/fwlink", HTTP_GET, handleCaptivePortal);
server.onNotFound(handleCaptivePortal);
server.begin();
}
void Networking::stop()
{
// server.end();
WiFi.mode(WIFI_SHUTDOWN, &savedState);
// Save off state for reboot
config.getNetworkConfig().wifiEnabled = false;
config.saveConfig();
DEBUGLN("Wifi stopped");
}
void Networking::resume()
{
WiFi.mode(WIFI_RESUME, &savedState);
config.getNetworkConfig().wifiEnabled = true;
config.saveConfig();
DEBUGLN("Resuming wifi");
if (handleClientFailsafe())
{
// server.begin();
DEBUGLN("Wifi resumed");
}
else
{
DEBUGLN("Could not reconnect after resume");
}
}
void Networking::initOrResume(TreeLight& light)
{
if (!isInitialized)
{
initWifi();
initServer(light);
}
else
{
resume();
}
}
void Networking::getStatusJsonString(JsonObject& output)
{
auto&& networking = output.createNestedObject("network");
networking["mac"] = deviceMAC;
bool client_enabled = config.getNetworkConfig().clientEnabled;
auto&& wifi_client = networking.createNestedObject("wifi_client");
wifi_client["status"] = client_enabled ? (WiFi.isConnected() ? "connected" : "enabled") : "disabled";
wifi_client["ip"] = WiFi.localIP();
wifi_client["netmask"] = WiFi.subnetMask();
wifi_client["dns"] = WiFi.dnsIP();
auto&& wifi_ap = networking.createNestedObject("wifi_ap");
wifi_ap["status"] = client_enabled ? "disabled" : "enabled";
wifi_ap["ip"] = WiFi.softAPIP();
}
void Networking::handleOTAUpload(
AsyncWebServerRequest* request, const String& filename, size_t index, uint8_t* data, size_t len, bool final)
{
if (!index)
{
DEBUGLN("UploadStart");
// calculate sketch space required for the update, for ESP32 use the max constant
#if defined(ESP32)
if (!Update.begin(UPDATE_SIZE_UNKNOWN))
#else
const uint32_t maxSketchSpace = (ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000;
if (!Update.begin(maxSketchSpace))
#endif
{
// start with max available size
Update.printError(Serial);
}
#if defined(ESP8266)
Update.runAsync(true);
#endif
}
if (len)
{
Update.write(data, len);
}
// if the final flag is set then this is the last frame of data
if (final)
{
if (Update.end(true))
{
// true to set the size to the current progress
DEBUGLN("Update Success, \nRebooting...");
ESP.restart();
}
else
{
Update.printError(Serial);
}
}
}
void Networking::handleIndex(AsyncWebServerRequest* request)
{
AsyncWebServerResponse* response
= request->beginResponse_P(200, F("text/html"), build_html_gz_start, build_html_gz_size);
response->addHeader(F("Content-Encoding"), F("gzip"));
request->send(response);
}
void Networking::handleStatusApi(AsyncWebServerRequest* request, TreeLight* light)
{
DynamicJsonDocument output(3000);
auto&& obj = output.to<JsonObject>();
obj["uptime"] = millis() / 1000;
obj["heap_free"] = ESP.getFreeHeap();
getStatusJsonString(obj);
mqtt.getStatusJsonString(obj);
light->getStatusJsonString(obj);
String buffer;
buffer.reserve(512);
serializeJson(output, buffer);
request->send(200, "application/json", buffer);
}
void Networking::handleConfigApiGet(AsyncWebServerRequest* request)
{
String buffer;
buffer.reserve(512);
StaticJsonDocument<1024> document;
config.createJson(document);
auto&& w = document["wifi"];
w.remove("client_password");
w.remove("ap_password");
w["client_has_password"] = config.getNetworkConfig().clientPassword.length() != 0;
w["ap_has_password"] = config.getNetworkConfig().apPassword.length() != 0;
auto&& m = document["mqtt"];
m.remove("has_password");
serializeJson(document, buffer);
request->send(200, "application/json", buffer);
}
void Networking::handleConfigApiPost(AsyncWebServerRequest* request, JsonVariant& json)
{
DEBUGLN("Received new config");
JsonObject&& data = json.as<JsonObject>();
NetworkConfig& wifi = config.getNetworkConfig();
bool changed = wifi.tryUpdate(data["wifi"]);
MqttConfig& mqtt = config.getMqttConfig();
changed |= mqtt.tryUpdate(data["mqtt"]);
if (changed)
{
config.saveConfig();
}
else
{
DEBUGLN("Config did not change");
}
AsyncWebServerResponse* response = request->beginResponse(200, "text/plain", "OK");
request->send(response);
if (changed)
{
restartESP = true;
}
}
void Networking::handleSetLedsApi(AsyncWebServerRequest* request, JsonVariant& json, TreeLight& light)
{
AsyncResponseStream* response = request->beginResponseStream("text/html");
JsonObject&& data = json.as<JsonObject>();
light.setBrightnessLevel(data["brightness"]);
light.setSpeed(static_cast<Speed>((uint8_t)data["speed"]));
light.setEffect(static_cast<EffectType>((uint8_t)data["effect"]));
light.setColorSelection((uint8_t)data["color"]);
response->print("OK");
request->send(response);
}
bool Networking::isIp(const String& str)
{
for (size_t i = 0; i < str.length(); i++)
{
int c = str.charAt(i);
if (c != '.' && (c < '0' || c > '9'))
{
return false;
}
}
return true;
}
bool Networking::shouldEnableWifiOnStartup()
{
return config.getNetworkConfig().wifiEnabled;
}
void Networking::update()
{
// handle DNS
dnsServer.processNextRequest();
if (restartESP)
{
ESP.restart();
}
}
bool Networking::captivePortal(AsyncWebServerRequest* request)
{
if (ON_STA_FILTER(request))
{
// DEBUGLN(F("Captive STA Filter"));
return false; // only serve captive portal in AP mode
}
if (!request->hasHeader("Host"))
{
// DEBUGLN(F("Captive Host header missing"));
return false;
}
const String hostHeader = request->getHeader("Host")->value();
if (isIp(hostHeader) || hostHeader.indexOf(HOSTNAME) >= 0)
{
// DEBUG(F("Captive Host Filter: "));
// DEBUGLN(hostHeader);
return false;
}
DEBUGLN(F("Captive portal"));
AsyncWebServerResponse* response = request->beginResponse(302);
response->addHeader(F("Location"), F("http://192.168.4.1"));
request->send(response);
return true;
}
bool Networking::handleClientFailsafe()
{
unsigned long start = millis();
while (WiFi.status() != WL_CONNECTED)
{
DEBUG('.');
// TODO: Make async and remove delay
delay(1000);
if (millis() - start > 15000)
{
DEBUGLN();
DEBUGLN("Failed, enabling AP");
startAccessPoint(false);
return false;
}
}
return true;
}
void Networking::startClient()
{
DEBUGLN("Using wifi in client mode");
const NetworkConfig& wifi = config.getNetworkConfig();
if (!wifi.dhcpEnabled)
{
DEBUGLN("Using static ip");
if (!WiFi.config(wifi.clientIp, wifi.clientGateway, wifi.clientMask, wifi.clientDns))
{
DEBUGLN("STA Failed to configure");
}
}
else
{
DEBUGLN("Using DHCP");
}
WiFi.persistent(true);
WiFi.mode(WIFI_STA);
WiFi.begin(wifi.clientSsid, wifi.clientPassword);
DEBUG("Connecting to WiFi ..");
if (handleClientFailsafe())
{
DEBUG("Connected: ");
DEBUGLN(WiFi.localIP());
WiFi.setAutoConnect(false);
WiFi.setAutoReconnect(true);
}
}
void Networking::startAccessPoint(bool persistent)
{
const NetworkConfig& wifi = config.getNetworkConfig();
DEBUGLN("Using wifi in ap mode");
WiFi.persistent(persistent);
WiFi.mode(WIFI_AP);
WiFi.softAPConfig(AP_IP, AP_IP, AP_NETMASK);
if (wifi.apPassword.length() == 0)
{
WiFi.softAP(wifi.apSsid);
DEBUGLN("Starting open AP");
}
else
{
WiFi.softAP(wifi.apSsid, wifi.apPassword);
DEBUGLN("Starting protected AP");
}
// captive portal
DEBUGLN("Starting DNS server");
dnsServer.setErrorReplyCode(DNSReplyCode::NoError);
dnsServer.start(53, "*", WiFi.softAPIP());
}
| 26.790244
| 119
| 0.635743
|
enwi
|
21590b42f90ecd23d88b7e8c90e8d0140635eda5
| 3,275
|
cpp
|
C++
|
source/XmlReaderErrors.cpp
|
kitsilanosoftware/UTFXml
|
513bc6a5df2d8af88ed6936cf007419bab243797
|
[
"BSD-3-Clause"
] | 2
|
2016-11-09T18:45:45.000Z
|
2021-11-25T14:19:34.000Z
|
source/XmlReaderErrors.cpp
|
kitsilanosoftware/UTFXml
|
513bc6a5df2d8af88ed6936cf007419bab243797
|
[
"BSD-3-Clause"
] | null | null | null |
source/XmlReaderErrors.cpp
|
kitsilanosoftware/UTFXml
|
513bc6a5df2d8af88ed6936cf007419bab243797
|
[
"BSD-3-Clause"
] | 2
|
2016-10-22T17:04:12.000Z
|
2021-11-25T14:19:36.000Z
|
/*
Copyright (C) 2009, 2010, 2012 Electronic Arts, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of Electronic Arts, Inc. ("EA") nor the names of
its contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY ELECTRONIC ARTS AND ITS CONTRIBUTORS "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL ELECTRONIC ARTS OR ITS CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <UTFXml/XmlReader.h>
namespace EA {
namespace XML {
UTFXML_API const char * GetXmlReaderResultString( XmlReader::ResultCode rc ) {
switch (int( rc )) {
case XmlReader::kSuccess:
return "success";
case XmlReader::kErrorRead:
return "read error";
case XmlReader::kErrorNoMemory:
return "out of memory";
case XmlReader::kErrorUnknownEncoding:
return "unknown character encoding";
case XmlReader::kErrorIncorrectEncoding:
return "invalid encoded character";
case XmlReader::kErrorPartialChar:
return "incomplete encoded character";
case XmlReader::kErrorRecursionDepthExceeded:
return "recursion depth exceeded";
case XmlReader::kErrorSyntax:
return "syntax error";
case XmlReader::kErrorInvalidToken:
return "invalid token";
case XmlReader::kErrorUnclosedToken:
return "unclosed token";
case XmlReader::kErrorUndefinedEntity:
return "undefined entity";
case XmlReader::kErrorBadCharRef:
return "bad character reference";
case XmlReader::kErrorMissingSemicolon:
return "missing semicolon in entity reference";
case XmlReader::kErrorCantDefineEntitiesOnceParsing:
return "can't define entities after document parsing has begin";
case XmlReader::kErrorIncompletePI:
return "incomplete processing instruction";
default:
return "unknown error";
}
}
} // namespace XML
} // namespace EA
| 33.762887
| 84
| 0.691298
|
kitsilanosoftware
|
2159a8cf582b5a76a0bb6937cd8a9d59a533f250
| 1,467
|
hpp
|
C++
|
include/Hash/Hotp.hpp
|
rhymu8354/Hash
|
35e0ec07343d81dd1ae4e13be168b60b2ad50101
|
[
"MIT"
] | null | null | null |
include/Hash/Hotp.hpp
|
rhymu8354/Hash
|
35e0ec07343d81dd1ae4e13be168b60b2ad50101
|
[
"MIT"
] | null | null | null |
include/Hash/Hotp.hpp
|
rhymu8354/Hash
|
35e0ec07343d81dd1ae4e13be168b60b2ad50101
|
[
"MIT"
] | null | null | null |
#pragma once
/**
* @file Hotp.hpp
*
* This module declares the Hotp function used to generate one-time only
* passwords based on the HMAC (Hash-based Message Authentication Code)
* algorithm.
*
* © 2019 by Richard Walters
*/
#include "Templates.hpp"
#include <stddef.h>
#include <stdint.h>
#include <string>
namespace Hash {
/**
* Generate a one-time password using the HMAC (Hash-based Message
* Authentication Code) algorithm with the given hash function,
* block size, shared secret, and counter value, according to
* the HOTP (HMAC-Based One-Time Password) algorithm defined
* in [RFC 4226](https://tools.ietf.org/html/rfc4226).
*
* @param[in] hashFunction
* This is the hash function to use to compute digests.
*
* @param[in] blockSize
* This is the block size of the given hash function, in bytes.
*
* @param[in] secret
* This is the shared secret to use to generate the one-time password.
*
* @param[in] count
* This is the counter value to use to generate the one-time password.
*
* @param[in] digits
* This is the number of digits to produce for the one-time password.
*
* @return
* The generated one-time password is returned.
*/
int Hotp(
HashFunction hashFunction,
size_t blockSize,
const std::string& secret,
uint64_t count,
size_t digits
);
}
| 26.672727
| 78
| 0.633265
|
rhymu8354
|
215df0d32d4b4c2fdceb8ca6727b7e3863cca137
| 1,542
|
hpp
|
C++
|
src/gpu/vuk/Wrappers/SwapResource.hpp
|
awwdev/rts
|
705a45e654ec48ebcfc9cfe5cef348025b11bccc
|
[
"MIT"
] | 6
|
2021-02-02T04:26:32.000Z
|
2022-01-11T19:00:33.000Z
|
src/gpu/vuk/Wrappers/SwapResource.hpp
|
awwdev/rts
|
705a45e654ec48ebcfc9cfe5cef348025b11bccc
|
[
"MIT"
] | 1
|
2021-07-21T15:21:28.000Z
|
2021-07-21T15:21:28.000Z
|
src/gpu/vuk/Wrappers/SwapResource.hpp
|
awwdev/rts
|
705a45e654ec48ebcfc9cfe5cef348025b11bccc
|
[
"MIT"
] | 1
|
2021-12-27T16:03:45.000Z
|
2021-12-27T16:03:45.000Z
|
#pragma once
#include "gpu/vuk/Context/Context.hpp"
#include "com/Array.hpp"
///////////////////////////////////////////////////////////
namespace rts::gpu::vuk {
///////////////////////////////////////////////////////////
template<typename T>
using SwapResource = com::Array<T, 4>;
///////////////////////////////////////////////////////////
#define IF(obj) if constexpr(std::is_same_v<T, obj>)
///////////////////////////////////////////////////////////
template<typename T>
void DestroySwapResource(SwapResource<T>& swapResource)
{
auto destroyFn = [](auto& element)
{
IF (VkFramebuffer)
vkDestroyFramebuffer(g_devicePtr, element, GetVkAlloc());
IF (VkImageView)
vkDestroyImageView(g_devicePtr, element, GetVkAlloc());
IF (VkSemaphore)
vkDestroySemaphore(g_devicePtr, element, GetVkAlloc());
IF (VkFence)
vkDestroyFence(g_devicePtr, element, GetVkAlloc());
IF (VkDescriptorSetLayout)
vkDestroyDescriptorSetLayout(g_devicePtr, element, GetVkAlloc());
if constexpr (requires { typename std::decay_t<decltype(element)>::SWAP_DESTROY; })
element.Destroy();
};
FOR_ARRAY(swapResource, i)
{
destroyFn(swapResource[i]);
swapResource[i] = {};
}
swapResource.count = 0;
}
///////////////////////////////////////////////////////////
#undef IF
///////////////////////////////////////////////////////////
}//ns
| 28.036364
| 91
| 0.466926
|
awwdev
|
215ee4d345dd008235f82440d116842b74e68c07
| 1,947
|
cpp
|
C++
|
SDLOpenGL/src/Cursor.cpp
|
Exo-Engine/lib-Exo-Renderer
|
f94c4c27232b76dc31722d2c31817b8a734bd89c
|
[
"MIT"
] | null | null | null |
SDLOpenGL/src/Cursor.cpp
|
Exo-Engine/lib-Exo-Renderer
|
f94c4c27232b76dc31722d2c31817b8a734bd89c
|
[
"MIT"
] | null | null | null |
SDLOpenGL/src/Cursor.cpp
|
Exo-Engine/lib-Exo-Renderer
|
f94c4c27232b76dc31722d2c31817b8a734bd89c
|
[
"MIT"
] | null | null | null |
/*
* MIT License
*
* Copyright (c) 2020 Gaëtan Dezeiraud and Ribault Paul
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#include "Cursor.h"
#include "RendererSDLOpenGL.h"
#include "Image.h"
using namespace ExoRenderer;
using namespace ExoRendererSDLOpenGL;
Cursor::Cursor()
: ICursor()
{ }
Cursor::~Cursor()
{ }
void Cursor::update(void)
{
if (_state != CursorState::HIDDEN)
{
if (_pImage)
_pImage->setPosition(RendererSDLOpenGL::Get().getMouse()->x, RendererSDLOpenGL::Get().getMouse()->y);
}
}
// Setters
void Cursor::setCursorTexture(const std::shared_ptr<ITexture> &texture)
{
if (_pImage)
delete _pImage;
_pImage = new Image(texture, RendererSDLOpenGL::Get().getUIScaleFactor(), RendererSDLOpenGL::Get().getWindow()->getWidth(), RendererSDLOpenGL::Get().getWindow()->getHeight());
_pImage->setScale(false);
_pImage->setLocalAnchor(AnchorPoint::TOP_LEFT);
_pImage->setSize(12, 12);
}
| 32.45
| 176
| 0.744735
|
Exo-Engine
|
21626439b1844a560c880a58a2414a0311dbba8e
| 2,799
|
cc
|
C++
|
src/util/mpsc_queue_test.cc
|
krockot/ipcz
|
6a6ebe43c2cb86882b0df9bf888dc5d34037f015
|
[
"BSD-3-Clause"
] | null | null | null |
src/util/mpsc_queue_test.cc
|
krockot/ipcz
|
6a6ebe43c2cb86882b0df9bf888dc5d34037f015
|
[
"BSD-3-Clause"
] | null | null | null |
src/util/mpsc_queue_test.cc
|
krockot/ipcz
|
6a6ebe43c2cb86882b0df9bf888dc5d34037f015
|
[
"BSD-3-Clause"
] | null | null | null |
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "util/mpsc_queue.h"
#include <cstddef>
#include <cstdint>
#include <memory>
#include <thread>
#include <vector>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/abseil-cpp/absl/base/macros.h"
#include "third_party/abseil-cpp/absl/synchronization/notification.h"
#include "third_party/abseil-cpp/absl/types/span.h"
namespace ipcz {
namespace {
using MpscQueueTest = testing::Test;
constexpr size_t kNumProducers = 4;
constexpr size_t kNumElementsPerProducer = 5000;
constexpr size_t kNumElementsTotal = kNumProducers * kNumElementsPerProducer;
constexpr size_t kQueueLength = 64;
using TestQueue = MpscQueue<size_t>;
class MpscQueueClient;
TEST_F(MpscQueueTest, Basic) {
std::vector<uint8_t> memory(TestQueue::ComputeSpaceRequiredFor(kQueueLength));
TestQueue queue(absl::MakeSpan(memory));
queue.InitializeRegion();
std::unique_ptr<std::thread> producers[kNumProducers];
for (size_t i = 0; i < kNumProducers; ++i) {
producers[i] = std::make_unique<std::thread>([id = i, &queue] {
for (size_t i = 0; i < kNumElementsPerProducer; ++i) {
while (!queue.Push(i * kNumProducers + id))
;
}
});
}
std::vector<size_t> elements(kNumElementsTotal);
for (size_t& element : elements) {
while (!queue.Peek())
;
element = *queue.Peek();
queue.Pop();
}
for (auto& thread : producers) {
thread->join();
}
// Verify that we popped exactly the right number of unique values, i.e.
// exactly one of each number in the range [0, kNumElementsTotal).
std::vector<bool> popped(kNumElementsTotal);
size_t num_unique_values_received = 0;
for (size_t i = 0; i < kNumElementsTotal; ++i) {
size_t value = elements[i];
if (!popped[value]) {
++num_unique_values_received;
popped[value] = true;
}
}
EXPECT_EQ(kNumElementsTotal, num_unique_values_received);
}
TEST_F(MpscQueueTest, Peek) {
uint8_t page[4096];
MpscQueue<int> queue(page);
queue.InitializeRegion();
EXPECT_EQ(nullptr, queue.Peek());
ASSERT_TRUE(queue.Push(42));
ASSERT_NE(nullptr, queue.Peek());
EXPECT_EQ(42, *queue.Peek());
EXPECT_EQ(42, *queue.Peek());
EXPECT_TRUE(queue.Pop());
EXPECT_EQ(nullptr, queue.Peek());
ASSERT_TRUE(queue.Push(43));
ASSERT_NE(nullptr, queue.Peek());
EXPECT_EQ(43, *queue.Peek());
ASSERT_TRUE(queue.Push(44));
ASSERT_NE(nullptr, queue.Peek());
EXPECT_EQ(43, *queue.Peek());
EXPECT_TRUE(queue.Pop());
ASSERT_NE(nullptr, queue.Peek());
EXPECT_EQ(44, *queue.Peek());
EXPECT_TRUE(queue.Pop());
EXPECT_EQ(nullptr, queue.Peek());
}
} // namespace
} // namespace ipcz
| 26.913462
| 80
| 0.694891
|
krockot
|
216641c06755d4550745aa88b2ed6f8ffe043f5e
| 582
|
cpp
|
C++
|
main.cpp
|
alexarse/Words
|
7cc01acaa04c5976e0269d24963142e643cdba1b
|
[
"MIT"
] | null | null | null |
main.cpp
|
alexarse/Words
|
7cc01acaa04c5976e0269d24963142e643cdba1b
|
[
"MIT"
] | 4
|
2018-05-02T14:50:02.000Z
|
2018-05-02T14:50:23.000Z
|
main.cpp
|
alxarsenault/Words
|
7cc01acaa04c5976e0269d24963142e643cdba1b
|
[
"MIT"
] | 1
|
2017-04-20T19:38:38.000Z
|
2017-04-20T19:38:38.000Z
|
#include <iostream>
#include <string>
#include "CMain.h"
using namespace std;
int main(int argc, char* argv[])
{
m_DEBUG[D_FLOW] << "PROGRAM START" << endl;
CMain cmain;
cmain.init(argc, argv);
CMap* m = cmain.GetMap();
cmain.GetCAnalysis()->PrintSorted(m_DEBUG[D_OUT1]);
ATT_MARKOV_T* markov = (ATT_MARKOV_T*)m->GetWordAttribute("Markov");
m_DEBUG[D_OUT2] << "ATTRIBUTE MARKOV : " << markov->GetValue() << endl;
//CDataBase data_base(mymap);
//data_base.SaveData("cdb");
//data_base.ReadData("cdb");
m_DEBUG[D_FLOW] << "PROGRAM END" << endl;
return 0;
}
| 18.774194
| 72
| 0.668385
|
alexarse
|
2166bcac2e61e6e92a96593e48aca0ac908181a7
| 46
|
hpp
|
C++
|
src/boost_type_traits_has_operator.hpp
|
miathedev/BoostForArduino
|
919621dcd0c157094bed4df752b583ba6ea6409e
|
[
"BSL-1.0"
] | 10
|
2018-03-17T00:58:42.000Z
|
2021-07-06T02:48:49.000Z
|
src/boost_type_traits_has_operator.hpp
|
miathedev/BoostForArduino
|
919621dcd0c157094bed4df752b583ba6ea6409e
|
[
"BSL-1.0"
] | 2
|
2021-03-26T15:17:35.000Z
|
2021-05-20T23:55:08.000Z
|
src/boost_type_traits_has_operator.hpp
|
miathedev/BoostForArduino
|
919621dcd0c157094bed4df752b583ba6ea6409e
|
[
"BSL-1.0"
] | 4
|
2019-05-28T21:06:37.000Z
|
2021-07-06T03:06:52.000Z
|
#include <boost/type_traits/has_operator.hpp>
| 23
| 45
| 0.826087
|
miathedev
|
216ec97a45f3c6e720c46c2e1e4aedd02d91cbda
| 953
|
hpp
|
C++
|
engine/GUI/widgets/RectWidget.hpp
|
isonil/survival
|
ecb59af9fcbb35b9c28fd4fe29a4628f046165c8
|
[
"MIT"
] | 1
|
2017-05-12T10:12:41.000Z
|
2017-05-12T10:12:41.000Z
|
engine/GUI/widgets/RectWidget.hpp
|
isonil/Survival
|
ecb59af9fcbb35b9c28fd4fe29a4628f046165c8
|
[
"MIT"
] | null | null | null |
engine/GUI/widgets/RectWidget.hpp
|
isonil/Survival
|
ecb59af9fcbb35b9c28fd4fe29a4628f046165c8
|
[
"MIT"
] | 1
|
2019-01-09T04:05:36.000Z
|
2019-01-09T04:05:36.000Z
|
#ifndef ENGINE_GUI_RECT_WIDGET_HPP
#define ENGINE_GUI_RECT_WIDGET_HPP
#include "Widget.hpp"
#include "../../util/Color.hpp"
#include <memory>
#include <functional>
namespace engine
{
namespace GUI
{
class IGUITexture;
class RectWidget : public Widget
{
public:
RectWidget(WidgetContainer *parent, const std::shared_ptr <IGUIRenderer> &renderer, const IntRect &rect);
void update(const AppTime &time, bool nonOccludedMouseOver) override;
void draw() const override;
bool anyNonInternalChildWidgets() const override;
void setColor(const Color &color);
void setColors(const Color &color_top, const Color &color_bot);
void setColors(const Color &color_topLeft, const Color &color_topRight, const Color &color_botRight, const Color &color_botLeft);
private:
Color m_color_topLeft, m_color_topRight, m_color_botRight, m_color_botLeft;
};
} // namespace GUI
} // namespace engine
#endif // ENGINE_GUI_RECT_WIDGET_HPP
| 24.435897
| 133
| 0.764953
|
isonil
|
216f71eca3ebf7033a361a2d71b7cdf950605c22
| 1,251
|
cpp
|
C++
|
Engine/ArgumentsParser.cpp
|
Const-me/MicroScript
|
0f0c3c995e1d059114b5e40ea06fdfdea27a1165
|
[
"MIT"
] | null | null | null |
Engine/ArgumentsParser.cpp
|
Const-me/MicroScript
|
0f0c3c995e1d059114b5e40ea06fdfdea27a1165
|
[
"MIT"
] | null | null | null |
Engine/ArgumentsParser.cpp
|
Const-me/MicroScript
|
0f0c3c995e1d059114b5e40ea06fdfdea27a1165
|
[
"MIT"
] | null | null | null |
#include "stdafx.h"
#include "ArgumentsParser.h"
using namespace MicroScript;
HRESULT ArgumentsParser::start()
{
if( nullptr == m_begin )
return E_POINTER;
m_next = m_begin;
CHECK( advanceTo( '(' ) );
m_next++;
return S_OK;
}
HRESULT ArgumentsParser::next( const char** begin, size_t &length )
{
CHECK( advance() );
*begin = m_next;
while( true )
{
if( m_next >= m_end )
return E_INVALIDARG;
const char c = *m_next;
switch( c )
{
case ',':
length = m_next - *begin;
m_next++;
return skipTrailingSpaces( begin, length );
case ')':
length = m_next - *begin;
if( length <= 0 )
return E_INVALIDARG;
return skipTrailingSpaces( begin, length );
}
// Handle escape sequences, "\,", "\)", "\\"
if( c == '\\' )
{
const char nextChar = peek();
if( nextChar == ',' || nextChar == ')' || nextChar == '\\' )
{
m_next += 2;
continue;
}
return E_INVALIDARG;
}
m_next++;
}
return E_FAIL;
}
HRESULT ArgumentsParser::skipTrailingSpaces( const char** begin, size_t &length )
{
while( length > 0 && isWhitespace( ( *begin )[ length - 1 ] ) )
length--;
return S_OK;
}
HRESULT ArgumentsParser::finish()
{
CHECK( advance() );
return ( ')' == *m_next ) ? S_OK : E_INVALIDARG;
}
| 18.954545
| 81
| 0.602718
|
Const-me
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.